@elevenlabs/convai-widget-core 0.0.10 → 0.0.12

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.js CHANGED
@@ -4,12 +4,12 @@ var J = (e, t, n) => jo(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import Yo from "preact-custom-element";
5
5
  import { jsx as h, jsxs as P, Fragment as wt } from "preact/jsx-runtime";
6
6
  import * as u from "preact/compat";
7
- import _e, { useContext as Xo, createContext as pe, useMemo as Re, useRef as we, useEffect as Oe, memo as sr, useState as be, useCallback as Te, forwardRef as Ko, useLayoutEffect as Go } from "preact/compat";
8
- import { signal as le, computed as xe, useSignal as ue, useComputed as Y, useSignalEffect as ze } from "@preact/signals";
7
+ import _e, { useContext as Xo, createContext as he, useMemo as Ie, useRef as be, useEffect as Oe, memo as sr, useState as ke, useCallback as le, forwardRef as Ko, useLayoutEffect as Go } from "preact/compat";
8
+ import { signal as de, computed as xe, useSignal as ce, useComputed as Y, useSignalEffect as ze } from "@preact/signals";
9
9
  import { Conversation as Zo } from "@elevenlabs/client";
10
10
  import { clsx as j } from "clsx";
11
11
  import { jsx as k, jsxs as _t, Fragment as mn } from "preact/compat/jsx-runtime";
12
- function Qe(e) {
12
+ function Je(e) {
13
13
  return e ? e === "true" ? !0 : e === "false" ? !1 : null : null;
14
14
  }
15
15
  const rn = [
@@ -35,7 +35,7 @@ const rn = [
35
35
  "transcript",
36
36
  "text-input",
37
37
  "text-contents"
38
- ], qo = '@import"https://fonts.googleapis.com/css2?family=Inter:wght@400,500&display=swap";*,: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:currentColor}: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}}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-3{bottom:-12px}.bottom-0{bottom:0}.bottom-20{bottom:80px}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:16px}.right-0{right:0}.top-0{top:0}.top-1\\/2{top:50%}.top-20{top:80px}.top-4{top:16px}.z-1{z-index:1}.z-10{z-index:10}.m-1{margin:4px}.-mx-0\\.5{margin-left:-2px;margin-right:-2px}.mx-1{margin-left:4px;margin-right:4px}.-mr-1\\.5{margin-right:-6px}.ml-auto{margin-left:auto}.mt-2{margin-top:8px}.block{display:block}.inline{display:inline}.\\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.h-11{height:44px}.h-16{height:64px}.h-4{height:16px}.h-48{height:192px}.h-5{height:20px}.h-6{height:24px}.h-9{height:36px}.h-\\[calc\\(100\\%-80px\\)\\]{height:calc(100% - 80px)}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[550px\\]{max-height:550px}.max-h-\\[8lh\\]{max-height:8lh}.max-h-\\[min\\(384px\\,var\\(--radix-select-content-available-height\\)\\)\\]{max-height:min(384px,var(--radix-select-content-available-height))}.min-h-min{min-height:-moz-min-content;min-height:min-content}.w-16{width:64px}.w-4{width:16px}.w-48{width:192px}.w-5{width:20px}.w-6{width:24px}.w-64{width:256px}.w-9{width:36px}.w-full{width:100%}.w-screen{width:100vw}.\\!min-w-60{min-width:240px!important}.min-w-0{min-width:0px}.min-w-60{min-width:240px}.min-w-9{min-width:36px}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-64{max-width:256px}.max-w-\\[400px\\]{max-width:400px}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-bottom-left{transform-origin:bottom left}.origin-bottom-right{transform-origin:bottom right}.origin-top{transform-origin:top}.origin-top-left{transform-origin:top left}.origin-top-right{transform-origin:top right}.-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))}.-translate-y-\\[calc\\(var\\(--el-overlay-padding\\)\\)\\]{--tw-translate-y: calc(calc(var(--el-overlay-padding)) * -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))}.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))}.translate-y-\\[calc\\(var\\(--el-overlay-padding\\)\\)\\]{--tw-translate-y: calc(var(--el-overlay-padding));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-full{--tw-translate-y: 100%;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))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 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))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;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))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;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))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;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))}.scale-\\[0\\.333\\]{--tw-scale-x: .333;--tw-scale-y: .333;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))}.transform{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))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-1{gap:4px}.gap-2{gap:8px}.gap-2\\.5{gap:10px}.gap-3{gap:12px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded-\\[calc\\(var\\(--el-button-radius\\)\\+4px\\)\\]{border-radius:calc(var(--el-button-radius) + 4px)}.rounded-bubble{border-radius:var(--el-bubble-radius)}.rounded-button{border-radius:var(--el-button-radius)}.rounded-compact-sheet{border-radius:var(--el-compact-sheet-radius)}.rounded-dropdown-sheet{border-radius:var(--el-dropdown-sheet-radius)}.rounded-full{border-radius:9999px}.rounded-input{border-radius:var(--el-input-radius)}.rounded-sheet{border-radius:var(--el-sheet-radius)}.rounded-bl-\\[calc\\(var\\(--el-bubble-radius\\)\\/3\\)\\]{border-bottom-left-radius:calc(var(--el-bubble-radius) / 3)}.border{border-width:1px}.border-accent{border-color:var(--el-accent)}.border-base-border{border-color:var(--el-base-border)}.bg-accent{background-color:var(--el-accent)}.bg-base{background-color:var(--el-base)}.bg-base-active{background-color:var(--el-base-active)}.bg-base-border{background-color:var(--el-base-border)}.bg-base-hover{background-color:var(--el-base-hover)}.bg-cover{background-size:cover}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:4px}.p-1\\.5{padding:6px}.p-2{padding:8px}.p-3{padding:12px}.p-4{padding:16px}.px-1{padding-left:4px;padding-right:4px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.px-2\\.5{padding-left:10px;padding-right:10px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-8{padding-left:32px;padding-right:32px}.py-1\\.5{padding-top:6px;padding-bottom:6px}.py-2\\.5{padding-top:10px;padding-bottom:10px}.py-\\[calc\\(theme\\(spacing\\.2\\)-1px\\)\\]{padding-top:7px;padding-bottom:7px}.pb-1{padding-bottom:4px}.pb-3{padding-bottom:12px}.pl-16{padding-left:64px}.pr-16{padding-right:64px}.pr-3{padding-right:12px}.pt-1{padding-top:4px}.text-center{text-align:center}.text-\\[10px\\]{font-size:10px}.text-lg{font-size:18px;line-height:26px}.text-md{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.text-xs{font-size:12px;line-height:16px}.font-medium{font-weight:500}.text-accent-primary{color:var(--el-accent-primary)}.text-base-error{color:var(--el-base-error)}.text-base-primary{color:var(--el-base-primary)}.text-base-subtle{color:var(--el-base-subtle)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-30{opacity:.3}.shadow-lg{--tw-shadow: 0 2px 40px 1px rgba(0, 0, 0, .12);--tw-shadow-colored: 0 2px 40px 1px 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-md{--tw-shadow: 0 2px 24px 1px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 24px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-radius\\]{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[margin\\]{transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,width\\,height\\,transform\\,flex-grow\\]{transition-property:opacity,width,height,transform,flex-grow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,left\\,top\\]{transition-property:transform,left,top;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;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}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.overlay{position:absolute;inset:var(--el-overlay-padding);right:calc(var(--el-overlay-padding) + var(--removed-body-scroll-bar-size, 0px))}.focus-ring{--tw-ring-color: var(--el-accent);--tw-ring-offset-width: 2px;--tw-ring-offset-color: var(--el-base)}.focus-ring:focus-visible{outline:2px solid transparent;outline-offset:2px;--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(2px + 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)}.animate-text{background-image:linear-gradient(75deg,var(--el-base-primary),var(--el-base-subtle),var(--el-base-primary),var(--el-base-subtle));background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:TextAnimation 2s linear infinite}@keyframes TextAnimation{0%{background-position:0 0}to{background-position:100% 0}}.\\!terms h6,.terms h6{font-size:12px;line-height:16px;font-weight:500;color:var(--el-base-primary)}.\\!terms h5,.terms h5{font-size:14px;line-height:20px;font-weight:500;color:var(--el-base-primary)}.\\!terms h4,.terms h4{font-size:16px;line-height:24px;font-weight:500;color:var(--el-base-primary)}.\\!terms h3,.terms h3{font-size:18px;line-height:26px;font-weight:500;color:var(--el-base-primary)}.\\!terms h2,.terms h2{font-size:20px;line-height:28px;font-weight:500;color:var(--el-base-primary)}.\\!terms h2,.terms h2{font-size:24px;line-height:30px;font-weight:500;color:var(--el-base-primary)}.\\[field-sizing\\:content\\]{field-sizing:content}.\\[line-height\\:var\\(--el-overlay-padding\\)\\]{line-height:var(--el-overlay-padding)}.\\[overflow-wrap\\:break-word\\]{overflow-wrap:break-word}.dev-host,:host{pointer-events:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;font-size:16px;line-height:24px;color:var(--el-base-primary);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;scrollbar-color:#e5e7eb transparent}.placeholder\\:text-base-subtle::-moz-placeholder{color:var(--el-base-subtle)}.placeholder\\:text-base-subtle::placeholder{color:var(--el-base-subtle)}.hover\\:border-accent-hover:hover{border-color:var(--el-accent-hover)}.hover\\:bg-accent-hover:hover{background-color:var(--el-accent-hover)}.hover\\:bg-base-hover:hover{background-color:var(--el-base-hover)}.hover\\:opacity-50:hover{opacity:.5}.focus-visible\\:underline-offset-2:focus-visible{text-underline-offset:2px}.focus-visible\\:opacity-100:focus-visible{opacity:1}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\\:border-accent-active:active{border-color:var(--el-accent-active)}.active\\:bg-accent-active:active{background-color:var(--el-accent-active)}.active\\:bg-base-active:active{background-color:var(--el-base-active)}.data-hidden\\:-translate-y-4[data-shown=false]{--tw-translate-y: -16px;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))}.data-hidden\\:translate-y-2[data-shown=false]{--tw-translate-y: 8px;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))}.data-hidden\\:scale-100[data-shown=false]{--tw-scale-x: 1;--tw-scale-y: 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))}.data-hidden\\:scale-75[data-shown=false]{--tw-scale-x: .75;--tw-scale-y: .75;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))}.data-hidden\\:scale-90[data-shown=false]{--tw-scale-x: .9;--tw-scale-y: .9;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))}.data-hidden\\:opacity-0[data-shown=false]{opacity:0}.data-\\[highlighted\\]\\:bg-base-active[data-highlighted]{background-color:var(--el-base-active)}', Dn = ["tiny", "compact", "full"];
38
+ ], qo = '@import"https://fonts.googleapis.com/css2?family=Inter:wght@400,500&display=swap";*,: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:currentColor}: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}}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-3{bottom:-12px}.bottom-0{bottom:0}.bottom-1{bottom:4px}.bottom-20{bottom:80px}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:16px}.right-0{right:0}.right-1{right:4px}.top-0{top:0}.top-1\\/2{top:50%}.top-20{top:80px}.top-4{top:16px}.z-1{z-index:1}.z-10{z-index:10}.m-1{margin:4px}.-mx-0\\.5{margin-left:-2px;margin-right:-2px}.mx-1{margin-left:4px;margin-right:4px}.-mr-1\\.5{margin-right:-6px}.ml-auto{margin-left:auto}.mt-2{margin-top:8px}.block{display:block}.inline{display:inline}.\\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.h-11{height:44px}.h-16{height:64px}.h-4{height:16px}.h-48{height:192px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-9{height:36px}.h-\\[calc\\(100\\%-80px\\)\\]{height:calc(100% - 80px)}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[550px\\]{max-height:550px}.max-h-\\[8lh\\]{max-height:8lh}.max-h-\\[min\\(384px\\,var\\(--radix-select-content-available-height\\)\\)\\]{max-height:min(384px,var(--radix-select-content-available-height))}.min-h-min{min-height:-moz-min-content;min-height:min-content}.w-16{width:64px}.w-4{width:16px}.w-48{width:192px}.w-5{width:20px}.w-6{width:24px}.w-64{width:256px}.w-7{width:28px}.w-9{width:36px}.w-full{width:100%}.w-screen{width:100vw}.\\!min-w-60{min-width:240px!important}.min-w-0{min-width:0px}.min-w-60{min-width:240px}.min-w-9{min-width:36px}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-64{max-width:256px}.max-w-\\[400px\\]{max-width:400px}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-bottom-left{transform-origin:bottom left}.origin-bottom-right{transform-origin:bottom right}.origin-top{transform-origin:top}.origin-top-left{transform-origin:top left}.origin-top-right{transform-origin:top right}.-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))}.-translate-y-\\[calc\\(var\\(--el-overlay-padding\\)\\)\\]{--tw-translate-y: calc(calc(var(--el-overlay-padding)) * -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))}.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))}.translate-y-\\[calc\\(var\\(--el-overlay-padding\\)\\)\\]{--tw-translate-y: calc(var(--el-overlay-padding));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-full{--tw-translate-y: 100%;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))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 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))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;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))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;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))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;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))}.scale-\\[0\\.333\\]{--tw-scale-x: .333;--tw-scale-y: .333;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))}.transform{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))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-1{gap:4px}.gap-2{gap:8px}.gap-2\\.5{gap:10px}.gap-3{gap:12px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded-\\[calc\\(var\\(--el-button-radius\\)\\+4px\\)\\]{border-radius:calc(var(--el-button-radius) + 4px)}.rounded-bubble{border-radius:var(--el-bubble-radius)}.rounded-button{border-radius:var(--el-button-radius)}.rounded-compact-sheet{border-radius:var(--el-compact-sheet-radius)}.rounded-dropdown-sheet{border-radius:var(--el-dropdown-sheet-radius)}.rounded-full{border-radius:9999px}.rounded-input{border-radius:var(--el-input-radius)}.rounded-sheet{border-radius:var(--el-sheet-radius)}.rounded-bl-\\[calc\\(var\\(--el-bubble-radius\\)\\/3\\)\\]{border-bottom-left-radius:calc(var(--el-bubble-radius) / 3)}.border{border-width:1px}.border-accent{border-color:var(--el-accent)}.border-base-border{border-color:var(--el-base-border)}.bg-accent{background-color:var(--el-accent)}.bg-base{background-color:var(--el-base)}.bg-base-active{background-color:var(--el-base-active)}.bg-base-border{background-color:var(--el-base-border)}.bg-base-hover{background-color:var(--el-base-hover)}.bg-cover{background-size:cover}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:4px}.p-1\\.5{padding:6px}.p-2{padding:8px}.p-3{padding:12px}.p-4{padding:16px}.px-1{padding-left:4px;padding-right:4px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.px-2\\.5{padding-left:10px;padding-right:10px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-8{padding-left:32px;padding-right:32px}.py-1\\.5{padding-top:6px;padding-bottom:6px}.py-2\\.5{padding-top:10px;padding-bottom:10px}.py-\\[calc\\(theme\\(spacing\\.2\\)-1px\\)\\]{padding-top:7px;padding-bottom:7px}.pb-1{padding-bottom:4px}.pb-3{padding-bottom:12px}.pl-16{padding-left:64px}.pr-16{padding-right:64px}.pr-3{padding-right:12px}.pr-9{padding-right:36px}.pt-1{padding-top:4px}.text-center{text-align:center}.text-\\[10px\\]{font-size:10px}.text-lg{font-size:18px;line-height:26px}.text-md{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.text-xs{font-size:12px;line-height:16px}.font-medium{font-weight:500}.text-accent-primary{color:var(--el-accent-primary)}.text-base-error{color:var(--el-base-error)}.text-base-primary{color:var(--el-base-primary)}.text-base-subtle{color:var(--el-base-subtle)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-30{opacity:.3}.shadow-lg{--tw-shadow: 0 2px 40px 1px rgba(0, 0, 0, .12);--tw-shadow-colored: 0 2px 40px 1px 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-md{--tw-shadow: 0 2px 24px 1px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 24px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-radius\\]{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[margin\\]{transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,width\\,height\\,transform\\,flex-grow\\]{transition-property:opacity,width,height,transform,flex-grow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,left\\,top\\]{transition-property:transform,left,top;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;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}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.overlay{position:absolute;inset:var(--el-overlay-padding);right:calc(var(--el-overlay-padding) + var(--removed-body-scroll-bar-size, 0px))}.focus-ring{--tw-ring-color: var(--el-accent);--tw-ring-offset-width: 2px;--tw-ring-offset-color: var(--el-base)}.focus-ring:focus-visible{outline:2px solid transparent;outline-offset:2px;--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(2px + 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)}.animate-text{background-image:linear-gradient(75deg,var(--el-base-primary),var(--el-base-subtle),var(--el-base-primary),var(--el-base-subtle));background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:TextAnimation 2s linear infinite}@keyframes TextAnimation{0%{background-position:0 0}to{background-position:100% 0}}.\\!terms h6,.terms h6{font-size:12px;line-height:16px;font-weight:500;color:var(--el-base-primary)}.\\!terms h5,.terms h5{font-size:14px;line-height:20px;font-weight:500;color:var(--el-base-primary)}.\\!terms h4,.terms h4{font-size:16px;line-height:24px;font-weight:500;color:var(--el-base-primary)}.\\!terms h3,.terms h3{font-size:18px;line-height:26px;font-weight:500;color:var(--el-base-primary)}.\\!terms h2,.terms h2{font-size:20px;line-height:28px;font-weight:500;color:var(--el-base-primary)}.\\!terms h2,.terms h2{font-size:24px;line-height:30px;font-weight:500;color:var(--el-base-primary)}.\\[field-sizing\\:content\\]{field-sizing:content}.\\[line-height\\:var\\(--el-overlay-padding\\)\\]{line-height:var(--el-overlay-padding)}.\\[overflow-wrap\\:break-word\\]{overflow-wrap:break-word}.dev-host,:host{pointer-events:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;font-size:16px;line-height:24px;color:var(--el-base-primary);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;scrollbar-color:#e5e7eb transparent}.placeholder\\:text-base-subtle::-moz-placeholder{color:var(--el-base-subtle)}.placeholder\\:text-base-subtle::placeholder{color:var(--el-base-subtle)}.hover\\:border-accent-hover:hover{border-color:var(--el-accent-hover)}.hover\\:bg-accent-hover:hover{background-color:var(--el-accent-hover)}.hover\\:bg-base-hover:hover{background-color:var(--el-base-hover)}.hover\\:opacity-50:hover{opacity:.5}.focus-visible\\:underline-offset-2:focus-visible{text-underline-offset:2px}.focus-visible\\:opacity-100:focus-visible{opacity:1}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\\:border-accent-active:active{border-color:var(--el-accent-active)}.active\\:bg-accent-active:active{background-color:var(--el-accent-active)}.active\\:bg-base-active:active{background-color:var(--el-base-active)}.data-hidden\\:-translate-y-4[data-shown=false]{--tw-translate-y: -16px;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))}.data-hidden\\:translate-y-2[data-shown=false]{--tw-translate-y: 8px;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))}.data-hidden\\:scale-100[data-shown=false]{--tw-scale-x: 1;--tw-scale-y: 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))}.data-hidden\\:scale-75[data-shown=false]{--tw-scale-x: .75;--tw-scale-y: .75;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))}.data-hidden\\:scale-90[data-shown=false]{--tw-scale-x: .9;--tw-scale-y: .9;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))}.data-hidden\\:opacity-0[data-shown=false]{opacity:0}.data-\\[highlighted\\]\\:bg-base-active[data-highlighted]{background-color:var(--el-base-active)}', Dn = ["tiny", "compact", "full"];
39
39
  function Qo(e) {
40
40
  return Dn.includes(e) ? e : Dn[0];
41
41
  }
@@ -54,6 +54,7 @@ const lr = {
54
54
  main_label: "Need help?",
55
55
  start_call: "Start a call",
56
56
  start_chat: "Start a chat",
57
+ send_message: "Send",
57
58
  new_call: "New call",
58
59
  end_call: "End",
59
60
  mute_microphone: "Mute microphone",
@@ -105,6 +106,7 @@ const lr = {
105
106
  function ra(e = "us") {
106
107
  switch (e) {
107
108
  case "eu-residency":
109
+ case "in-residency":
108
110
  case "us":
109
111
  case "global":
110
112
  return e;
@@ -114,7 +116,7 @@ function ra(e = "us") {
114
116
  ), "us";
115
117
  }
116
118
  }
117
- function he(e) {
119
+ function ve(e) {
118
120
  const t = Xo(e);
119
121
  if (t == null)
120
122
  throw new Error(
@@ -122,14 +124,14 @@ function he(e) {
122
124
  );
123
125
  return t;
124
126
  }
125
- const ur = pe(null);
127
+ const ur = he(null);
126
128
  function oa({
127
129
  value: e,
128
130
  children: t
129
131
  }) {
130
- const n = Re(
132
+ const n = Ie(
131
133
  () => Object.fromEntries(
132
- rn.map((r) => [r, le(e[r])])
134
+ rn.map((r) => [r, de(e[r])])
133
135
  ),
134
136
  []
135
137
  );
@@ -138,23 +140,25 @@ function oa({
138
140
  }), /* @__PURE__ */ h(ur.Provider, { value: n, children: t });
139
141
  }
140
142
  function aa() {
141
- return he(ur);
143
+ return ve(ur);
142
144
  }
143
145
  function H(e) {
144
146
  return aa()[e];
145
147
  }
146
- const dr = pe(null);
148
+ const dr = he(null);
147
149
  function ia({
148
150
  children: e
149
151
  }) {
150
- const t = H("server-location"), n = Re(() => {
152
+ const t = H("server-location"), n = Ie(() => {
151
153
  const r = xe(() => ra(t.value)), o = {
152
154
  us: "https://api.us.elevenlabs.io",
153
155
  "eu-residency": "https://api.eu.residency.elevenlabs.io",
156
+ "in-residency": "https://api.in.residency.elevenlabs.io",
154
157
  global: "https://api.elevenlabs.io"
155
158
  }, a = {
156
159
  us: "wss://api.us.elevenlabs.io",
157
160
  "eu-residency": "wss://api.eu.residency.elevenlabs.io",
161
+ "in-residency": "wss://api.in.residency.elevenlabs.io",
158
162
  global: "wss://api.elevenlabs.io"
159
163
  };
160
164
  return {
@@ -166,7 +170,7 @@ function ia({
166
170
  return /* @__PURE__ */ h(dr.Provider, { value: n, children: e });
167
171
  }
168
172
  function fr() {
169
- return he(dr);
173
+ return ve(dr);
170
174
  }
171
175
  const pt = {
172
176
  en: { name: "English", flagCode: "us", languageCode: "en" },
@@ -209,11 +213,11 @@ const pt = {
209
213
  function Yt(e) {
210
214
  return Object.keys(pt).includes(e ?? "");
211
215
  }
212
- const pr = pe(null);
216
+ const pr = he(null);
213
217
  function sa({
214
218
  children: e
215
219
  }) {
216
- const t = q(), n = H("language"), r = H("override-language"), o = ue(
220
+ const t = q(), n = H("language"), r = H("override-language"), o = ce(
217
221
  n.peek() ?? t.peek().language
218
222
  ), a = Y(
219
223
  () => (t.value.supported_language_overrides ?? []).filter(
@@ -221,7 +225,7 @@ function sa({
221
225
  )
222
226
  ), i = Y(
223
227
  () => a.value.map((l) => pt[l]).sort((l, c) => l.name.localeCompare(c.name))
224
- ), s = Re(
228
+ ), s = Ie(
225
229
  () => ({
226
230
  language: xe(
227
231
  () => Yt(r.value) ? pt[r.value] : Yt(o.value) && a.value.includes(o.value) ? pt[o.value] : pt[t.value.language]
@@ -237,13 +241,13 @@ function sa({
237
241
  return /* @__PURE__ */ h(pr.Provider, { value: s, children: e });
238
242
  }
239
243
  function rt() {
240
- return he(pr);
244
+ return ve(pr);
241
245
  }
242
- const hr = pe(null);
246
+ const hr = he(null);
243
247
  function la({ children: e }) {
244
248
  const t = q(), n = Y(
245
249
  () => t.value.mic_muting_enabled ?? !1
246
- ), r = ue(!1), o = Re(
250
+ ), r = ce(!1), o = Ie(
247
251
  () => ({
248
252
  isMuted: xe(
249
253
  () => n.value ? r.value : (
@@ -262,9 +266,9 @@ function la({ children: e }) {
262
266
  return /* @__PURE__ */ h(hr.Provider, { value: o, children: e });
263
267
  }
264
268
  function vr() {
265
- return he(hr);
269
+ return ve(hr);
266
270
  }
267
- const gr = pe(null);
271
+ const gr = he(null);
268
272
  function ca({
269
273
  children: e
270
274
  }) {
@@ -280,7 +284,7 @@ function ca({
280
284
  voiceId: o.value
281
285
  },
282
286
  conversation: {
283
- textOnly: Qe(a.value) ?? void 0
287
+ textOnly: Je(a.value) ?? void 0
284
288
  }
285
289
  })), s = H("dynamic-variables"), l = Y(() => {
286
290
  if (s.value)
@@ -291,15 +295,15 @@ function ca({
291
295
  `[ConversationalAI] Cannot parse dynamic-variables: ${m == null ? void 0 : m.message}`
292
296
  );
293
297
  }
294
- }), { webSocketUrl: c } = fr(), d = H("agent-id"), p = H("signed-url"), g = wn(), v = Y(() => {
298
+ }), { webSocketUrl: c } = fr(), f = H("agent-id"), p = H("signed-url"), g = wn(), w = Y(() => {
295
299
  const m = {
296
300
  dynamicVariables: l.value,
297
301
  overrides: i.value,
298
302
  connectionDelay: { default: 300 },
299
303
  textOnly: g.value
300
304
  };
301
- return d.value ? {
302
- agentId: d.value,
305
+ return f.value ? {
306
+ agentId: f.value,
303
307
  origin: c.value,
304
308
  ...m
305
309
  } : p.value ? {
@@ -309,21 +313,21 @@ function ca({
309
313
  "[ConversationalAI] Either agent-id or signed-url is required"
310
314
  ), null);
311
315
  });
312
- return v.value ? /* @__PURE__ */ h(
316
+ return w.value ? /* @__PURE__ */ h(
313
317
  gr.Provider,
314
318
  {
315
- value: v,
319
+ value: w,
316
320
  children: e
317
321
  }
318
322
  ) : null;
319
323
  }
320
324
  function ua() {
321
- return he(gr);
325
+ return ve(gr);
322
326
  }
323
- const mr = pe(null);
327
+ const mr = he(null);
324
328
  function da({ children: e }) {
325
- const t = q(), n = Re(() => {
326
- const r = t.peek().terms_key, o = r ? !!localStorage.getItem(r) : !1, a = le(!1), i = le(o), s = xe(
329
+ const t = q(), n = Ie(() => {
330
+ const r = t.peek().terms_key, o = r ? !!localStorage.getItem(r) : !1, a = de(!1), i = de(o), s = xe(
327
331
  () => !t.value.terms_html || i.value
328
332
  );
329
333
  let l = [];
@@ -336,11 +340,11 @@ function da({ children: e }) {
336
340
  acceptTerms: () => {
337
341
  i.value = !0, a.value = !1;
338
342
  const c = t.peek().terms_key;
339
- c && localStorage.setItem(c, "true"), l.forEach((d) => d.resolve()), l = [];
343
+ c && localStorage.setItem(c, "true"), l.forEach((f) => f.resolve()), l = [];
340
344
  },
341
345
  requestTerms: async () => {
342
- s.peek() || (a.value = !0, await new Promise((c, d) => {
343
- l.push({ resolve: c, reject: d });
346
+ s.peek() || (a.value = !0, await new Promise((c, f) => {
347
+ l.push({ resolve: c, reject: f });
344
348
  }));
345
349
  }
346
350
  };
@@ -348,9 +352,9 @@ function da({ children: e }) {
348
352
  return /* @__PURE__ */ h(mr.Provider, { value: n, children: e });
349
353
  }
350
354
  function Bt() {
351
- return he(mr);
355
+ return ve(mr);
352
356
  }
353
- const wr = pe(null);
357
+ const wr = he(null);
354
358
  function fa({ children: e }) {
355
359
  const t = pa();
356
360
  return ze(() => {
@@ -370,10 +374,10 @@ function fa({ children: e }) {
370
374
  }), /* @__PURE__ */ h(wr.Provider, { value: t, children: e });
371
375
  }
372
376
  function ne() {
373
- return he(wr);
377
+ return ve(wr);
374
378
  }
375
379
  function pa() {
376
- const e = we(null), t = we(null), n = q(), r = xr(), o = Bt(), a = ua(), { isMuted: i } = vr();
380
+ const e = be(null), t = be(null), n = q(), r = xr(), o = Bt(), a = ua(), { isMuted: i } = vr();
377
381
  return ze(() => {
378
382
  var l;
379
383
  const s = i.value;
@@ -381,18 +385,18 @@ function pa() {
381
385
  }), Oe(() => () => {
382
386
  var s;
383
387
  (s = e.current) == null || s.endSession();
384
- }, []), Re(() => {
385
- const s = le("disconnected"), l = xe(() => s.value === "disconnected"), c = le("listening"), d = xe(() => c.value === "speaking"), p = le(null), g = le(null), v = le(!1), m = le([]), f = le(0), w = le(null);
388
+ }, []), Ie(() => {
389
+ const s = de("disconnected"), l = xe(() => s.value === "disconnected"), c = de("listening"), f = xe(() => c.value === "speaking"), p = de(null), g = de(null), w = de(!1), m = de([]), d = de(0), v = de(null);
386
390
  return {
387
391
  status: s,
388
- isSpeaking: d,
392
+ isSpeaking: f,
389
393
  mode: c,
390
394
  isDisconnected: l,
391
395
  lastId: g,
392
396
  error: p,
393
- canSendFeedback: v,
394
- conversationIndex: f,
395
- conversationTextOnly: w,
397
+ canSendFeedback: w,
398
+ conversationIndex: d,
399
+ conversationTextOnly: v,
396
400
  transcript: m,
397
401
  startSession: async (b, x) => {
398
402
  var S, E;
@@ -410,13 +414,13 @@ function pa() {
410
414
  T
411
415
  );
412
416
  }
413
- w.value = y.textOnly ?? !1, m.value = x ? [
417
+ v.value = y.textOnly ?? !1, m.value = x ? [
414
418
  {
415
419
  type: "message",
416
420
  role: "user",
417
421
  message: x,
418
422
  isText: !0,
419
- conversationIndex: f.peek()
423
+ conversationIndex: d.peek()
420
424
  }
421
425
  ] : [];
422
426
  try {
@@ -429,33 +433,33 @@ function pa() {
429
433
  s.value = C.status;
430
434
  },
431
435
  onCanSendFeedbackChange: (C) => {
432
- v.value = C.canSendFeedback;
436
+ w.value = C.canSendFeedback;
433
437
  },
434
- onMessage: ({ source: C, message: R }) => {
435
- w.peek() === !0 && C === "ai" && R === r.peek() || (m.value = [
438
+ onMessage: ({ source: C, message: I }) => {
439
+ v.peek() === !0 && C === "ai" && I === r.peek() || (m.value = [
436
440
  ...m.value,
437
441
  {
438
442
  type: "message",
439
443
  role: C,
440
- message: R,
444
+ message: I,
441
445
  isText: !1,
442
- conversationIndex: f.peek()
446
+ conversationIndex: d.peek()
443
447
  }
444
448
  ]);
445
449
  },
446
450
  onDisconnect: (C) => {
447
- w.value = null, m.value = [
451
+ v.value = null, m.value = [
448
452
  ...m.value,
449
453
  C.reason === "error" ? {
450
454
  type: "error",
451
455
  message: C.message,
452
- conversationIndex: f.peek()
456
+ conversationIndex: d.peek()
453
457
  } : {
454
458
  type: "disconnection",
455
459
  role: C.reason === "user" ? "user" : "ai",
456
- conversationIndex: f.peek()
460
+ conversationIndex: d.peek()
457
461
  }
458
- ], f.value++, C.reason === "error" && (p.value = C.message, console.error(
462
+ ], d.value++, C.reason === "error" && (p.value = C.message, console.error(
459
463
  "[ConversationalAI] Disconnected due to an error:",
460
464
  C.message
461
465
  ));
@@ -473,7 +477,7 @@ function pa() {
473
477
  {
474
478
  type: "error",
475
479
  message: C,
476
- conversationIndex: f.peek()
480
+ conversationIndex: d.peek()
477
481
  }
478
482
  ];
479
483
  } finally {
@@ -505,7 +509,7 @@ function pa() {
505
509
  role: "user",
506
510
  message: b,
507
511
  isText: !0,
508
- conversationIndex: f.peek()
512
+ conversationIndex: d.peek()
509
513
  }
510
514
  ];
511
515
  },
@@ -528,11 +532,11 @@ function ha(e, t) {
528
532
  return console.error("[ConversationalAI] Could not trigger call event:", n), t;
529
533
  }
530
534
  }
531
- const br = pe(
535
+ const br = he(
532
536
  null
533
537
  );
534
538
  function va({ children: e }) {
535
- const { serverUrl: t } = fr(), n = H("agent-id"), r = H("override-config"), o = ue(null);
539
+ const { serverUrl: t } = fr(), n = H("agent-id"), r = H("override-config"), o = ce(null);
536
540
  ze(() => {
537
541
  if (r.value)
538
542
  try {
@@ -550,40 +554,40 @@ function va({ children: e }) {
550
554
  o.value = null;
551
555
  return;
552
556
  }
553
- const v = new AbortController();
554
- return ga(n.value, t.value, v.signal).then((m) => {
555
- v.signal.aborted || (o.value = m);
557
+ const w = new AbortController();
558
+ return ga(n.value, t.value, w.signal).then((m) => {
559
+ w.signal.aborted || (o.value = m);
556
560
  }).catch((m) => {
557
561
  console.error(
558
562
  `[ConversationalAI] Cannot fetch config for agent ${n.value}: ${m == null ? void 0 : m.message}`
559
- ), v.signal.aborted || (o.value = null);
563
+ ), w.signal.aborted || (o.value = null);
560
564
  }), () => {
561
- v.abort();
565
+ w.abort();
562
566
  };
563
567
  });
564
- const a = H("variant"), i = H("placement"), s = H("terms-key"), l = H("mic-muting"), c = H("transcript"), d = H("text-input"), p = H("override-text-only"), g = Y(() => {
568
+ const a = H("variant"), i = H("placement"), s = H("terms-key"), l = H("mic-muting"), c = H("transcript"), f = H("text-input"), p = H("override-text-only"), g = Y(() => {
565
569
  if (!o.value)
566
570
  return null;
567
- const v = a.value ?? o.value.variant, m = i.value ?? o.value.placement, f = s.value ?? o.value.terms_key, w = Qe(p.value) ?? o.value.text_only ?? !1, b = Qe(l.value) ?? o.value.mic_muting_enabled, x = Qe(c.value) ?? o.value.transcript_enabled, y = Qe(d.value) ?? o.value.text_input_enabled;
571
+ const w = a.value ?? o.value.variant, m = i.value ?? o.value.placement, d = s.value ?? o.value.terms_key, v = Je(p.value) ?? o.value.text_only ?? !1, b = Je(l.value) ?? o.value.mic_muting_enabled, x = Je(c.value) ?? o.value.transcript_enabled, y = Je(f.value) ?? o.value.text_input_enabled;
568
572
  return {
569
573
  ...o.value,
570
- variant: Qo(v),
574
+ variant: Qo(w),
571
575
  placement: ea(m),
572
- terms_key: f,
573
- mic_muting_enabled: !w && b,
574
- transcript_enabled: w || x,
575
- text_input_enabled: w || y
576
+ terms_key: d,
577
+ mic_muting_enabled: !v && b,
578
+ transcript_enabled: v || x,
579
+ text_input_enabled: v || y
576
580
  };
577
581
  });
578
582
  return g.value ? /* @__PURE__ */ h(br.Provider, { value: g, children: e }) : null;
579
583
  }
580
584
  function q() {
581
- return he(br);
585
+ return ve(br);
582
586
  }
583
587
  function wn() {
584
588
  const e = H("override-text-only"), t = q();
585
589
  return Y(
586
- () => Qe(e.value) ?? t.value.text_only ?? !1
590
+ () => Je(e.value) ?? t.value.text_only ?? !1
587
591
  );
588
592
  }
589
593
  function zt() {
@@ -631,7 +635,7 @@ function wa(e) {
631
635
  function ba(e) {
632
636
  return typeof e == "number" ? `${e}px` : e;
633
637
  }
634
- const yr = pe(null);
638
+ const yr = he(null);
635
639
  function xa({ children: e }) {
636
640
  const t = q(), { language: n } = rt(), r = H("text-contents"), o = Y(() => {
637
641
  try {
@@ -644,13 +648,13 @@ function xa({ children: e }) {
644
648
  console.error("[ConversationalAI] Cannot parse text-contents:", i);
645
649
  }
646
650
  return {};
647
- }), a = Re(() => Object.fromEntries(
651
+ }), a = Ie(() => Object.fromEntries(
648
652
  ta.map((i) => [
649
653
  i,
650
654
  xe(
651
655
  () => {
652
- var s, l, c, d;
653
- return o.value[i] ?? ((c = (l = (s = t.value.language_presets) == null ? void 0 : s[n.value.languageCode]) == null ? void 0 : l.text_contents) == null ? void 0 : c[i]) ?? ((d = t.value.text_contents) == null ? void 0 : d[i]) ?? lr[i];
656
+ var s, l, c, f;
657
+ return o.value[i] ?? ((c = (l = (s = t.value.language_presets) == null ? void 0 : s[n.value.languageCode]) == null ? void 0 : l.text_contents) == null ? void 0 : c[i]) ?? ((f = t.value.text_contents) == null ? void 0 : f[i]) ?? lr[i];
654
658
  }
655
659
  )
656
660
  ])
@@ -658,11 +662,11 @@ function xa({ children: e }) {
658
662
  return /* @__PURE__ */ h(yr.Provider, { value: a, children: e });
659
663
  }
660
664
  function re() {
661
- return he(yr);
665
+ return ve(yr);
662
666
  }
663
- const Cr = pe(null);
667
+ const Cr = he(null);
664
668
  function ya({ children: e }) {
665
- const t = q(), n = H("avatar-image-url"), r = H("avatar-orb-color-1"), o = H("avatar-orb-color-2"), a = ue(""), i = Y(() => n.value ? {
669
+ const t = q(), n = H("avatar-image-url"), r = H("avatar-orb-color-1"), o = H("avatar-orb-color-2"), a = ce(""), i = Y(() => n.value ? {
666
670
  type: "image",
667
671
  url: n.value
668
672
  } : r.value && o.value ? {
@@ -678,25 +682,25 @@ function ya({ children: e }) {
678
682
  case "image":
679
683
  return i.value.url;
680
684
  }
681
- }), l = Re(() => ({ config: i, previewUrl: s, canvasUrl: a }), []);
685
+ }), l = Ie(() => ({ config: i, previewUrl: s, canvasUrl: a }), []);
682
686
  return /* @__PURE__ */ h(Cr.Provider, { value: l, children: e });
683
687
  }
684
688
  function bn() {
685
- return he(Cr);
689
+ return ve(Cr);
686
690
  }
687
- const Sr = pe(null);
691
+ const Sr = he(null);
688
692
  function yt({ children: e, ...t }) {
689
- const [n, r] = be(null);
693
+ const [n, r] = ke(null);
690
694
  return /* @__PURE__ */ h("div", { ref: r, ...t, children: n && /* @__PURE__ */ h(Sr.Provider, { value: n, children: e }) });
691
695
  }
692
696
  function Ca() {
693
- return he(Sr);
697
+ return ve(Sr);
694
698
  }
695
699
  function xn(e) {
696
700
  return e && typeof e == "object" && "peek" in e;
697
701
  }
698
702
  function Sa(e) {
699
- const t = xn(e), n = ue(t ? e.peek() : e);
703
+ const t = xn(e), n = ce(t ? e.peek() : e);
700
704
  return t ? e : (n.value = e, n);
701
705
  }
702
706
  function Er(e) {
@@ -734,8 +738,8 @@ function vt(e) {
734
738
  const t = /* @__PURE__ */ ka(e), n = u.forwardRef((r, o) => {
735
739
  const { children: a, ...i } = r, s = u.Children.toArray(a), l = s.find(Aa);
736
740
  if (l) {
737
- const c = l.props.children, d = s.map((p) => p === l ? u.Children.count(c) > 1 ? u.Children.only(null) : u.isValidElement(c) ? c.props.children : null : p);
738
- return /* @__PURE__ */ k(t, { ...i, ref: o, children: u.isValidElement(c) ? u.cloneElement(c, void 0, d) : null });
741
+ const c = l.props.children, f = s.map((p) => p === l ? u.Children.count(c) > 1 ? u.Children.only(null) : u.isValidElement(c) ? c.props.children : null : p);
742
+ return /* @__PURE__ */ k(t, { ...i, ref: o, children: u.isValidElement(c) ? u.cloneElement(c, void 0, f) : null });
739
743
  }
740
744
  return /* @__PURE__ */ k(t, { ...i, ref: o, children: a });
741
745
  });
@@ -747,7 +751,7 @@ function ka(e) {
747
751
  const t = u.forwardRef((n, r) => {
748
752
  const { children: o, ...a } = n;
749
753
  if (u.isValidElement(o)) {
750
- const i = Ra(o), s = Pa(a, o.props);
754
+ const i = Ia(o), s = Pa(a, o.props);
751
755
  return o.type !== u.Fragment && (s.ref = r ? kr(r, i) : i), u.cloneElement(o, s);
752
756
  }
753
757
  return u.Children.count(o) > 1 ? u.Children.only(null) : null;
@@ -768,14 +772,14 @@ function Pa(e, t) {
768
772
  }
769
773
  return { ...e, ...n };
770
774
  }
771
- function Ra(e) {
775
+ function Ia(e) {
772
776
  var r, o;
773
777
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
774
778
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
775
779
  }
776
780
  const Xt = window.matchMedia("(prefers-reduced-motion: reduce)");
777
781
  function Ar() {
778
- const e = ue(Xt.matches);
782
+ const e = ce(Xt.matches);
779
783
  return Oe(() => {
780
784
  const t = (n) => {
781
785
  e.value = n.matches;
@@ -784,21 +788,21 @@ function Ar() {
784
788
  }, []), e;
785
789
  }
786
790
  function Pr({ onStart: e, onEnd: t }) {
787
- const n = we();
791
+ const n = be();
788
792
  n.current ?? (n.current = /* @__PURE__ */ new Set());
789
- const r = we(e);
793
+ const r = be(e);
790
794
  r.current = e;
791
- const o = we(t);
795
+ const o = be(t);
792
796
  o.current = t;
793
- const a = ue(!1), i = Te(
797
+ const a = ce(!1), i = le(
794
798
  (l) => {
795
- var c, d;
796
- l.target === l.currentTarget && ((c = n.current) == null || c.add(l.propertyName), a.peek() || (a.value = !0, (d = r.current) == null || d.call(r)));
799
+ var c, f;
800
+ l.target === l.currentTarget && ((c = n.current) == null || c.add(l.propertyName), a.peek() || (a.value = !0, (f = r.current) == null || f.call(r)));
797
801
  },
798
802
  []
799
- ), s = Te((l) => {
800
- var c, d, p;
801
- l.target === l.currentTarget && ((c = n.current) == null || c.delete(l.propertyName), (d = n.current) != null && d.size || (a.value = !1, (p = o.current) == null || p.call(o)));
803
+ ), s = le((l) => {
804
+ var c, f, p;
805
+ l.target === l.currentTarget && ((c = n.current) == null || c.delete(l.propertyName), (f = n.current) != null && f.size || (a.value = !1, (p = o.current) == null || p.call(o)));
802
806
  }, []);
803
807
  return {
804
808
  transitioning: a,
@@ -808,11 +812,11 @@ function Pr({ onStart: e, onEnd: t }) {
808
812
  }
809
813
  };
810
814
  }
811
- function ce(e) {
812
- const t = Ar().value ? Ia : _a;
815
+ function se(e) {
816
+ const t = Ar().value ? Ra : _a;
813
817
  return /* @__PURE__ */ h(t, { ...e });
814
818
  }
815
- function Ia({ active: e, ...t }) {
819
+ function Ra({ active: e, ...t }) {
816
820
  return Er(e) ? /* @__PURE__ */ h(Tr, { "data-shown": !0, ...t }) : null;
817
821
  }
818
822
  function _a({
@@ -820,7 +824,7 @@ function _a({
820
824
  initial: t = e,
821
825
  ...n
822
826
  }) {
823
- const r = Sa(e), o = ue(Ea(t));
827
+ const r = Sa(e), o = ce(Ea(t));
824
828
  ze(() => {
825
829
  r.value && (o.value = r.value);
826
830
  });
@@ -1015,7 +1019,7 @@ void main() {
1015
1019
  1,
1016
1020
  1,
1017
1021
  -1
1018
- ]), La = "https://storage.googleapis.com/eleven-public-cdn/images/perlin-noise.png", ge = class ge {
1022
+ ]), La = "https://storage.googleapis.com/eleven-public-cdn/images/perlin-noise.png", me = class me {
1019
1023
  constructor(t) {
1020
1024
  J(this, "gl");
1021
1025
  J(this, "program");
@@ -1034,7 +1038,7 @@ void main() {
1034
1038
  this.gl.RGBA,
1035
1039
  this.gl.RGBA,
1036
1040
  this.gl.UNSIGNED_BYTE,
1037
- ge.noiseImage
1041
+ me.noiseImage
1038
1042
  ), this.gl.generateMipmap(this.gl.TEXTURE_2D));
1039
1043
  });
1040
1044
  J(this, "toDataURL", () => this.gl.canvas.toDataURL("image/png"));
@@ -1062,7 +1066,7 @@ void main() {
1062
1066
  n.RGBA,
1063
1067
  n.UNSIGNED_BYTE,
1064
1068
  new Uint8Array([128, 128, 128, 255])
1065
- ), ge.noiseImage || (ge.noiseImage = new Image(), ge.noiseImage.crossOrigin = "anonymous", ge.noiseImage.src = La), ge.noiseImage.complete ? this.copyNoiseImage() : ge.noiseImage.addEventListener("load", this.copyNoiseImage);
1069
+ ), me.noiseImage || (me.noiseImage = new Image(), me.noiseImage.crossOrigin = "anonymous", me.noiseImage.src = La), me.noiseImage.complete ? this.copyNoiseImage() : me.noiseImage.addEventListener("load", this.copyNoiseImage);
1066
1070
  const o = n.createBuffer();
1067
1071
  n.bindBuffer(n.ARRAY_BUFFER, o), n.bufferData(n.ARRAY_BUFFER, Ma, n.STATIC_DRAW), n.vertexAttribPointer(zn, 2, n.FLOAT, !1, 0, 0), n.enableVertexAttribArray(zn), this.updateColors("#2792DC", "#9CE6E6"), this.resizeObserver = new ResizeObserver((i) => {
1068
1072
  const s = i[0], l = s.devicePixelContentBoxSize ? s.devicePixelContentBoxSize[0] : s.contentBoxSize[0];
@@ -1131,26 +1135,26 @@ void main() {
1131
1135
  return this.gl.shaderSource(r, n), this.gl.compileShader(r), this.gl.getShaderParameter(r, this.gl.COMPILE_STATUS) ? r : (this.gl.deleteShader(r), null);
1132
1136
  }
1133
1137
  };
1134
- J(ge, "noiseImage");
1135
- let on = ge;
1138
+ J(me, "noiseImage");
1139
+ let on = me;
1136
1140
  const Da = {
1137
1141
  sm: "w-9 h-9",
1138
1142
  lg: "w-48 h-48"
1139
1143
  };
1140
1144
  function ot({ size: e = "sm", className: t }) {
1141
- const { getInputVolume: n, getOutputVolume: r, isSpeaking: o, isDisconnected: a } = ne(), { config: i } = bn(), s = we(null), l = we(null);
1145
+ const { getInputVolume: n, getOutputVolume: r, isSpeaking: o, isDisconnected: a } = ne(), { config: i } = bn(), s = be(null), l = be(null);
1142
1146
  ze(() => {
1143
1147
  if (a.value) {
1144
1148
  s.current.style.transform = "", l.current.style.transform = "";
1145
1149
  return;
1146
1150
  }
1147
- let d;
1151
+ let f;
1148
1152
  function p() {
1149
- const g = n(), v = r(), m = o.peek() ? 1 : 1 - g * 0.4, f = o.peek() ? 1 + v * 0.4 : 1;
1150
- s.current.style.transform = `scale(${f})`, l.current.style.transform = `scale(${m})`, d = requestAnimationFrame(p);
1153
+ const g = n(), w = r(), m = o.peek() ? 1 : 1 - g * 0.4, d = o.peek() ? 1 + w * 0.4 : 1;
1154
+ s.current.style.transform = `scale(${d})`, l.current.style.transform = `scale(${m})`, f = requestAnimationFrame(p);
1151
1155
  }
1152
1156
  return p(), () => {
1153
- cancelAnimationFrame(d);
1157
+ cancelAnimationFrame(f);
1154
1158
  };
1155
1159
  });
1156
1160
  const c = Y(() => ({
@@ -1182,11 +1186,11 @@ function ot({ size: e = "sm", className: t }) {
1182
1186
  ] });
1183
1187
  }
1184
1188
  function Ba({ color1: e, color2: t }) {
1185
- const { canvasUrl: n } = bn(), [r, o] = be(null);
1189
+ const { canvasUrl: n } = bn(), [r, o] = ke(null);
1186
1190
  Oe(() => {
1187
1191
  r && (r.updateColors(e, t), r.render(), n.value = r.toDataURL());
1188
1192
  }, [r, e, t]);
1189
- const a = Te(
1193
+ const a = le(
1190
1194
  (i) => {
1191
1195
  if (i) {
1192
1196
  const s = new on(i);
@@ -1206,12 +1210,13 @@ const za = {
1206
1210
  "mic-off": Ha,
1207
1211
  check: Xa,
1208
1212
  "chevron-down": ja,
1209
- "chevron-up": Ya
1213
+ "chevron-up": Ya,
1214
+ send: Ka
1210
1215
  }, Fa = {
1211
1216
  sm: "text-xs",
1212
1217
  md: "text-lg"
1213
1218
  };
1214
- function Je({ name: e, size: t = "md", className: n }) {
1219
+ function We({ name: e, size: t = "md", className: n }) {
1215
1220
  const r = za[e];
1216
1221
  return /* @__PURE__ */ h(
1217
1222
  "slot",
@@ -1363,11 +1368,31 @@ function Xa(e) {
1363
1368
  }
1364
1369
  );
1365
1370
  }
1366
- function ke(e) {
1367
- const t = Ar().value ? Ka : Ga;
1371
+ function Ka(e) {
1372
+ return /* @__PURE__ */ h(
1373
+ "svg",
1374
+ {
1375
+ xmlns: "http://www.w3.org/2000/svg",
1376
+ height: "1em",
1377
+ width: "1em",
1378
+ viewBox: "0 0 20 20",
1379
+ fill: "currentColor",
1380
+ ...e,
1381
+ children: /* @__PURE__ */ h(
1382
+ "path",
1383
+ {
1384
+ d: "M2.59413 5.1485C2.04 3.39377 3.86657 1.83482 5.51245 2.65776L16.47 8.13653C18.0055 8.90429 18.0055 11.0955 16.47 11.8633L5.51245 17.3421C3.86656 18.165 2.04 16.6061 2.59413 14.8513L3.86297 10.8333H7.50006C7.9603 10.8333 8.33339 10.4602 8.33339 10C8.33339 9.53976 7.9603 9.16667 7.50006 9.16667H3.86302L2.59413 5.1485Z",
1385
+ fill: "black"
1386
+ }
1387
+ )
1388
+ }
1389
+ );
1390
+ }
1391
+ function Te(e) {
1392
+ const t = Ar().value ? Ga : Za;
1368
1393
  return /* @__PURE__ */ h(t, { ...e });
1369
1394
  }
1370
- function Ka({
1395
+ function Ga({
1371
1396
  visible: e,
1372
1397
  className: t,
1373
1398
  grow: n,
@@ -1376,7 +1401,7 @@ function Ka({
1376
1401
  }) {
1377
1402
  return e ? /* @__PURE__ */ h("div", { className: j(n && "grow", t), ...o }) : null;
1378
1403
  }
1379
- function Ga({
1404
+ function Za({
1380
1405
  visible: e,
1381
1406
  children: t,
1382
1407
  className: n,
@@ -1384,14 +1409,14 @@ function Ga({
1384
1409
  dep: o,
1385
1410
  ...a
1386
1411
  }) {
1387
- const [i, s] = be(e), [l, c] = be(null), [d, p] = be(null), g = we(t);
1412
+ const [i, s] = ke(e), [l, c] = ke(null), [f, p] = ke(null), g = be(t);
1388
1413
  e && (g.current = t);
1389
- const v = Te((w) => {
1390
- c(w), w && !e && (w.style.width = "0px", w.style.height = "0px");
1414
+ const w = le((v) => {
1415
+ c(v), v && !e && (v.style.width = "0px", v.style.height = "0px");
1391
1416
  }, []);
1392
1417
  Oe(() => {
1393
- d && (d.style.transition = "none", d.style.opacity = "0", d.offsetWidth, d.style.transition = "", d.style.opacity = "");
1394
- }, [o]), Re(() => {
1418
+ f && (f.style.transition = "none", f.style.opacity = "0", f.offsetWidth, f.style.transition = "", f.style.opacity = "");
1419
+ }, [o]), Ie(() => {
1395
1420
  l && (l.style.width = `${l.offsetWidth}px`, l.style.height = `${l.offsetHeight}px`);
1396
1421
  }, [
1397
1422
  l,
@@ -1400,19 +1425,19 @@ function Ga({
1400
1425
  o
1401
1426
  // node's content changed
1402
1427
  ]), Oe(() => {
1403
- if (!l || !d) return;
1428
+ if (!l || !f) return;
1404
1429
  e && s(!0);
1405
- const w = e ? d.offsetWidth : 0, b = e ? d.offsetHeight : 0;
1406
- l.style.width = !e || l.offsetWidth !== w ? `${w}px` : "", l.style.height = !e || l.offsetHeight !== b ? `${b}px` : "";
1430
+ const v = e ? f.offsetWidth : 0, b = e ? f.offsetHeight : 0;
1431
+ l.style.width = !e || l.offsetWidth !== v ? `${v}px` : "", l.style.height = !e || l.offsetHeight !== b ? `${b}px` : "";
1407
1432
  }, [
1408
1433
  l,
1409
- d,
1434
+ f,
1410
1435
  e,
1411
1436
  // node's visibility changed
1412
1437
  o
1413
1438
  // node's content changed
1414
1439
  ]);
1415
- const { transitioning: m, handlers: f } = Pr({
1440
+ const { transitioning: m, handlers: d } = Pr({
1416
1441
  onEnd: () => {
1417
1442
  e ? (l.style.width = "", l.style.height = "") : s(!1);
1418
1443
  }
@@ -1420,14 +1445,14 @@ function Ga({
1420
1445
  return /* @__PURE__ */ h(
1421
1446
  "div",
1422
1447
  {
1423
- ref: v,
1448
+ ref: w,
1424
1449
  className: j(
1425
1450
  "relative inline-flex shrink-0 justify-center items-center transition-[opacity,width,height,transform,flex-grow] duration-200 min-w-0",
1426
1451
  !e && "opacity-0 scale-75",
1427
1452
  e && r && "grow",
1428
1453
  e && i && !m.value && "z-1"
1429
1454
  ),
1430
- ...f,
1455
+ ...d,
1431
1456
  children: /* @__PURE__ */ h(
1432
1457
  "div",
1433
1458
  {
@@ -1444,7 +1469,7 @@ function Ga({
1444
1469
  }
1445
1470
  );
1446
1471
  }
1447
- const Za = {
1472
+ const qa = {
1448
1473
  primary: "text-accent-primary border border-accent bg-accent hover:border-accent-hover hover:bg-accent-hover active:border-accent-active active:bg-accent-active",
1449
1474
  secondary: "text-base-primary border border-base-border bg-base hover:bg-base-hover active:bg-base-active"
1450
1475
  }, Me = Ko(
@@ -1464,7 +1489,7 @@ const Za = {
1464
1489
  ref: l,
1465
1490
  className: j(
1466
1491
  "h-9 flex px-2.5 text-sm items-center transition-colors justify-center rounded-button duration-200 focus-ring overflow-hidden select-none",
1467
- Za[t],
1492
+ qa[t],
1468
1493
  c && "min-w-9",
1469
1494
  o
1470
1495
  ),
@@ -1472,7 +1497,7 @@ const Za = {
1472
1497
  ...s,
1473
1498
  children: [
1474
1499
  r && /* @__PURE__ */ h(
1475
- Je,
1500
+ We,
1476
1501
  {
1477
1502
  className: j(
1478
1503
  "transition-[margin] duration-200",
@@ -1482,7 +1507,7 @@ const Za = {
1482
1507
  name: r
1483
1508
  }
1484
1509
  ),
1485
- /* @__PURE__ */ h(ke, { visible: !!n, dep: n, children: /* @__PURE__ */ h("span", { className: "block whitespace-nowrap max-w-64 truncate px-1.5", children: n }) })
1510
+ /* @__PURE__ */ h(Te, { visible: !!n, dep: n, children: /* @__PURE__ */ h("span", { className: "block whitespace-nowrap max-w-64 truncate px-1.5", children: n }) })
1486
1511
  ]
1487
1512
  }
1488
1513
  );
@@ -1494,16 +1519,16 @@ function an({
1494
1519
  }) {
1495
1520
  const { status: n, isSpeaking: r } = ne(), o = zt(), a = re(), i = Y(
1496
1521
  () => n.value !== "connected" ? a.connecting_status.value : o.value ? a.chatting_status.value : r.value ? a.speaking_status.value : a.listening_status.value
1497
- ), [s, l] = be(i.peek());
1522
+ ), [s, l] = ke(i.peek());
1498
1523
  return ze(() => {
1499
1524
  const c = i.value;
1500
1525
  if (n.value === "connected" && r.value)
1501
1526
  l(c);
1502
1527
  else {
1503
- const d = setTimeout(() => {
1528
+ const f = setTimeout(() => {
1504
1529
  l(c);
1505
1530
  }, 500);
1506
- return () => clearTimeout(d);
1531
+ return () => clearTimeout(f);
1507
1532
  }
1508
1533
  }), /* @__PURE__ */ h(
1509
1534
  "div",
@@ -1513,7 +1538,7 @@ function an({
1513
1538
  e
1514
1539
  ),
1515
1540
  ...t,
1516
- children: /* @__PURE__ */ h(ce, { initial: !1, active: !0, children: /* @__PURE__ */ h("div", { className: "animate-text whitespace-nowrap transition-[opacity,transform] ease-out duration-200 data-hidden:opacity-0 transform data-hidden:translate-y-2", children: s }) }, s)
1541
+ children: /* @__PURE__ */ h(se, { initial: !1, active: !0, children: /* @__PURE__ */ h("div", { className: "animate-text whitespace-nowrap transition-[opacity,transform] ease-out duration-200 data-hidden:opacity-0 transform data-hidden:translate-y-2", children: s }) }, s)
1517
1542
  }
1518
1543
  );
1519
1544
  }
@@ -1533,18 +1558,18 @@ function yn(e, t = []) {
1533
1558
  n = [...n, i];
1534
1559
  const c = (p) => {
1535
1560
  var b;
1536
- const { scope: g, children: v, ...m } = p, f = ((b = g == null ? void 0 : g[e]) == null ? void 0 : b[l]) || s, w = u.useMemo(() => m, Object.values(m));
1537
- return /* @__PURE__ */ k(f.Provider, { value: w, children: v });
1561
+ const { scope: g, children: w, ...m } = p, d = ((b = g == null ? void 0 : g[e]) == null ? void 0 : b[l]) || s, v = u.useMemo(() => m, Object.values(m));
1562
+ return /* @__PURE__ */ k(d.Provider, { value: v, children: w });
1538
1563
  };
1539
1564
  c.displayName = a + "Provider";
1540
- function d(p, g) {
1541
- var f;
1542
- const v = ((f = g == null ? void 0 : g[e]) == null ? void 0 : f[l]) || s, m = u.useContext(v);
1565
+ function f(p, g) {
1566
+ var d;
1567
+ const w = ((d = g == null ? void 0 : g[e]) == null ? void 0 : d[l]) || s, m = u.useContext(w);
1543
1568
  if (m) return m;
1544
1569
  if (i !== void 0) return i;
1545
1570
  throw new Error(`\`${p}\` must be used within \`${a}\``);
1546
1571
  }
1547
- return [c, d];
1572
+ return [c, f];
1548
1573
  }
1549
1574
  const o = () => {
1550
1575
  const a = n.map((i) => u.createContext(i));
@@ -1556,9 +1581,9 @@ function yn(e, t = []) {
1556
1581
  );
1557
1582
  };
1558
1583
  };
1559
- return o.scopeName = e, [r, qa(o, ...t)];
1584
+ return o.scopeName = e, [r, Qa(o, ...t)];
1560
1585
  }
1561
- function qa(...e) {
1586
+ function Qa(...e) {
1562
1587
  const t = e[0];
1563
1588
  if (e.length === 1) return t;
1564
1589
  const n = () => {
@@ -1576,52 +1601,52 @@ function qa(...e) {
1576
1601
  };
1577
1602
  return n.scopeName = t.scopeName, n;
1578
1603
  }
1579
- function Qa(e) {
1604
+ function Ja(e) {
1580
1605
  const t = e + "CollectionProvider", [n, r] = yn(t), [o, a] = n(
1581
1606
  t,
1582
1607
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
1583
- ), i = (f) => {
1584
- const { scope: w, children: b } = f, x = _e.useRef(null), y = _e.useRef(/* @__PURE__ */ new Map()).current;
1585
- return /* @__PURE__ */ k(o, { scope: w, itemMap: y, collectionRef: x, children: b });
1608
+ ), i = (d) => {
1609
+ const { scope: v, children: b } = d, x = _e.useRef(null), y = _e.useRef(/* @__PURE__ */ new Map()).current;
1610
+ return /* @__PURE__ */ k(o, { scope: v, itemMap: y, collectionRef: x, children: b });
1586
1611
  };
1587
1612
  i.displayName = t;
1588
1613
  const s = e + "CollectionSlot", l = /* @__PURE__ */ vt(s), c = _e.forwardRef(
1589
- (f, w) => {
1590
- const { scope: b, children: x } = f, y = a(s, b), S = Z(w, y.collectionRef);
1614
+ (d, v) => {
1615
+ const { scope: b, children: x } = d, y = a(s, b), S = Z(v, y.collectionRef);
1591
1616
  return /* @__PURE__ */ k(l, { ref: S, children: x });
1592
1617
  }
1593
1618
  );
1594
1619
  c.displayName = s;
1595
- const d = e + "CollectionItemSlot", p = "data-radix-collection-item", g = /* @__PURE__ */ vt(d), v = _e.forwardRef(
1596
- (f, w) => {
1597
- const { scope: b, children: x, ...y } = f, S = _e.useRef(null), E = Z(w, S), T = a(d, b);
1620
+ const f = e + "CollectionItemSlot", p = "data-radix-collection-item", g = /* @__PURE__ */ vt(f), w = _e.forwardRef(
1621
+ (d, v) => {
1622
+ const { scope: b, children: x, ...y } = d, S = _e.useRef(null), E = Z(v, S), T = a(f, b);
1598
1623
  return _e.useEffect(() => (T.itemMap.set(S, { ref: S, ...y }), () => void T.itemMap.delete(S))), /* @__PURE__ */ k(g, { [p]: "", ref: E, children: x });
1599
1624
  }
1600
1625
  );
1601
- v.displayName = d;
1602
- function m(f) {
1603
- const w = a(e + "CollectionConsumer", f);
1626
+ w.displayName = f;
1627
+ function m(d) {
1628
+ const v = a(e + "CollectionConsumer", d);
1604
1629
  return _e.useCallback(() => {
1605
- const x = w.collectionRef.current;
1630
+ const x = v.collectionRef.current;
1606
1631
  if (!x) return [];
1607
1632
  const y = Array.from(x.querySelectorAll(`[${p}]`));
1608
- return Array.from(w.itemMap.values()).sort(
1633
+ return Array.from(v.itemMap.values()).sort(
1609
1634
  (T, C) => y.indexOf(T.ref.current) - y.indexOf(C.ref.current)
1610
1635
  );
1611
- }, [w.collectionRef, w.itemMap]);
1636
+ }, [v.collectionRef, v.itemMap]);
1612
1637
  }
1613
1638
  return [
1614
- { Provider: i, Slot: c, ItemSlot: v },
1639
+ { Provider: i, Slot: c, ItemSlot: w },
1615
1640
  m,
1616
1641
  r
1617
1642
  ];
1618
1643
  }
1619
- var Ja = u.createContext(void 0);
1620
- function ei(e) {
1621
- const t = u.useContext(Ja);
1644
+ var ei = u.createContext(void 0);
1645
+ function ti(e) {
1646
+ const t = u.useContext(ei);
1622
1647
  return e || t || "ltr";
1623
1648
  }
1624
- var ti = [
1649
+ var ni = [
1625
1650
  "a",
1626
1651
  "button",
1627
1652
  "div",
@@ -1639,17 +1664,17 @@ var ti = [
1639
1664
  "span",
1640
1665
  "svg",
1641
1666
  "ul"
1642
- ], K = ti.reduce((e, t) => {
1667
+ ], K = ni.reduce((e, t) => {
1643
1668
  const n = /* @__PURE__ */ vt(`Primitive.${t}`), r = u.forwardRef((o, a) => {
1644
1669
  const { asChild: i, ...s } = o, l = i ? n : t;
1645
1670
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ k(l, { ...s, ref: a });
1646
1671
  });
1647
1672
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
1648
1673
  }, {});
1649
- function ni(e, t) {
1674
+ function ri(e, t) {
1650
1675
  e && u.flushSync(() => e.dispatchEvent(t));
1651
1676
  }
1652
- function We(e) {
1677
+ function Ue(e) {
1653
1678
  const t = u.useRef(e);
1654
1679
  return u.useEffect(() => {
1655
1680
  t.current = e;
@@ -1658,8 +1683,8 @@ function We(e) {
1658
1683
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
1659
1684
  }, []);
1660
1685
  }
1661
- function ri(e, t = globalThis == null ? void 0 : globalThis.document) {
1662
- const n = We(e);
1686
+ function oi(e, t = globalThis == null ? void 0 : globalThis.document) {
1687
+ const n = Ue(e);
1663
1688
  u.useEffect(() => {
1664
1689
  const r = (o) => {
1665
1690
  o.key === "Escape" && n(o);
@@ -1667,11 +1692,11 @@ function ri(e, t = globalThis == null ? void 0 : globalThis.document) {
1667
1692
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
1668
1693
  }, [n, t]);
1669
1694
  }
1670
- var oi = "DismissableLayer", sn = "dismissableLayer.update", ai = "dismissableLayer.pointerDownOutside", ii = "dismissableLayer.focusOutside", Vn, Rr = u.createContext({
1695
+ var ai = "DismissableLayer", sn = "dismissableLayer.update", ii = "dismissableLayer.pointerDownOutside", si = "dismissableLayer.focusOutside", Vn, Ir = u.createContext({
1671
1696
  layers: /* @__PURE__ */ new Set(),
1672
1697
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
1673
1698
  branches: /* @__PURE__ */ new Set()
1674
- }), Ir = u.forwardRef(
1699
+ }), Rr = u.forwardRef(
1675
1700
  (e, t) => {
1676
1701
  const {
1677
1702
  disableOutsidePointerEvents: n = !1,
@@ -1681,24 +1706,24 @@ var oi = "DismissableLayer", sn = "dismissableLayer.update", ai = "dismissableLa
1681
1706
  onInteractOutside: i,
1682
1707
  onDismiss: s,
1683
1708
  ...l
1684
- } = e, c = u.useContext(Rr), [d, p] = u.useState(null), g = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = u.useState({}), m = Z(t, (C) => p(C)), f = Array.from(c.layers), [w] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(w), x = d ? f.indexOf(d) : -1, y = c.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= b, E = ci((C) => {
1685
- const R = C.target, O = [...c.branches].some((M) => M.contains(R));
1709
+ } = e, c = u.useContext(Ir), [f, p] = u.useState(null), g = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, w] = u.useState({}), m = Z(t, (C) => p(C)), d = Array.from(c.layers), [v] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), b = d.indexOf(v), x = f ? d.indexOf(f) : -1, y = c.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= b, E = ui((C) => {
1710
+ const I = C.target, O = [...c.branches].some((M) => M.contains(I));
1686
1711
  !S || O || (o == null || o(C), i == null || i(C), C.defaultPrevented || s == null || s());
1687
- }, g), T = ui((C) => {
1688
- const R = C.target;
1689
- [...c.branches].some((M) => M.contains(R)) || (a == null || a(C), i == null || i(C), C.defaultPrevented || s == null || s());
1712
+ }, g), T = di((C) => {
1713
+ const I = C.target;
1714
+ [...c.branches].some((M) => M.contains(I)) || (a == null || a(C), i == null || i(C), C.defaultPrevented || s == null || s());
1690
1715
  }, g);
1691
- return ri((C) => {
1716
+ return oi((C) => {
1692
1717
  x === c.layers.size - 1 && (r == null || r(C), !C.defaultPrevented && s && (C.preventDefault(), s()));
1693
1718
  }, g), u.useEffect(() => {
1694
- if (d)
1695
- return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (Vn = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(d)), c.layers.add(d), $n(), () => {
1719
+ if (f)
1720
+ return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (Vn = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(f)), c.layers.add(f), $n(), () => {
1696
1721
  n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Vn);
1697
1722
  };
1698
- }, [d, g, n, c]), u.useEffect(() => () => {
1699
- d && (c.layers.delete(d), c.layersWithOutsidePointerEventsDisabled.delete(d), $n());
1700
- }, [d, c]), u.useEffect(() => {
1701
- const C = () => v({});
1723
+ }, [f, g, n, c]), u.useEffect(() => () => {
1724
+ f && (c.layers.delete(f), c.layersWithOutsidePointerEventsDisabled.delete(f), $n());
1725
+ }, [f, c]), u.useEffect(() => {
1726
+ const C = () => w({});
1702
1727
  return document.addEventListener(sn, C), () => document.removeEventListener(sn, C);
1703
1728
  }, []), /* @__PURE__ */ k(
1704
1729
  K.div,
@@ -1719,9 +1744,9 @@ var oi = "DismissableLayer", sn = "dismissableLayer.update", ai = "dismissableLa
1719
1744
  );
1720
1745
  }
1721
1746
  );
1722
- Ir.displayName = oi;
1723
- var si = "DismissableLayerBranch", li = u.forwardRef((e, t) => {
1724
- const n = u.useContext(Rr), r = u.useRef(null), o = Z(t, r);
1747
+ Rr.displayName = ai;
1748
+ var li = "DismissableLayerBranch", ci = u.forwardRef((e, t) => {
1749
+ const n = u.useContext(Ir), r = u.useRef(null), o = Z(t, r);
1725
1750
  return u.useEffect(() => {
1726
1751
  const a = r.current;
1727
1752
  if (a)
@@ -1730,16 +1755,16 @@ var si = "DismissableLayerBranch", li = u.forwardRef((e, t) => {
1730
1755
  };
1731
1756
  }, [n.branches]), /* @__PURE__ */ k(K.div, { ...e, ref: o });
1732
1757
  });
1733
- li.displayName = si;
1734
- function ci(e, t = globalThis == null ? void 0 : globalThis.document) {
1735
- const n = We(e), r = u.useRef(!1), o = u.useRef(() => {
1758
+ ci.displayName = li;
1759
+ function ui(e, t = globalThis == null ? void 0 : globalThis.document) {
1760
+ const n = Ue(e), r = u.useRef(!1), o = u.useRef(() => {
1736
1761
  });
1737
1762
  return u.useEffect(() => {
1738
1763
  const a = (s) => {
1739
1764
  if (s.target && !r.current) {
1740
1765
  let l = function() {
1741
1766
  _r(
1742
- ai,
1767
+ ii,
1743
1768
  n,
1744
1769
  c,
1745
1770
  { discrete: !0 }
@@ -1761,11 +1786,11 @@ function ci(e, t = globalThis == null ? void 0 : globalThis.document) {
1761
1786
  onPointerDownCapture: () => r.current = !0
1762
1787
  };
1763
1788
  }
1764
- function ui(e, t = globalThis == null ? void 0 : globalThis.document) {
1765
- const n = We(e), r = u.useRef(!1);
1789
+ function di(e, t = globalThis == null ? void 0 : globalThis.document) {
1790
+ const n = Ue(e), r = u.useRef(!1);
1766
1791
  return u.useEffect(() => {
1767
1792
  const o = (a) => {
1768
- a.target && !r.current && _r(ii, n, { originalEvent: a }, {
1793
+ a.target && !r.current && _r(si, n, { originalEvent: a }, {
1769
1794
  discrete: !1
1770
1795
  });
1771
1796
  };
@@ -1781,10 +1806,10 @@ function $n() {
1781
1806
  }
1782
1807
  function _r(e, t, n, { discrete: r }) {
1783
1808
  const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
1784
- t && o.addEventListener(e, t, { once: !0 }), r ? ni(o, a) : o.dispatchEvent(a);
1809
+ t && o.addEventListener(e, t, { once: !0 }), r ? ri(o, a) : o.dispatchEvent(a);
1785
1810
  }
1786
1811
  var Kt = 0;
1787
- function di() {
1812
+ function fi() {
1788
1813
  u.useEffect(() => {
1789
1814
  const e = document.querySelectorAll("[data-radix-focus-guard]");
1790
1815
  return document.body.insertAdjacentElement("afterbegin", e[0] ?? Wn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Wn()), Kt++, () => {
@@ -1796,14 +1821,14 @@ function Wn() {
1796
1821
  const e = document.createElement("span");
1797
1822
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
1798
1823
  }
1799
- var Gt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", Un = { bubbles: !1, cancelable: !0 }, fi = "FocusScope", Nr = u.forwardRef((e, t) => {
1824
+ var Gt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", Un = { bubbles: !1, cancelable: !0 }, pi = "FocusScope", Nr = u.forwardRef((e, t) => {
1800
1825
  const {
1801
1826
  loop: n = !1,
1802
1827
  trapped: r = !1,
1803
1828
  onMountAutoFocus: o,
1804
1829
  onUnmountAutoFocus: a,
1805
1830
  ...i
1806
- } = e, [s, l] = u.useState(null), c = We(o), d = We(a), p = u.useRef(null), g = Z(t, (f) => l(f)), v = u.useRef({
1831
+ } = e, [s, l] = u.useState(null), c = Ue(o), f = Ue(a), p = u.useRef(null), g = Z(t, (d) => l(d)), w = u.useRef({
1807
1832
  paused: !1,
1808
1833
  pause() {
1809
1834
  this.paused = !0;
@@ -1814,12 +1839,12 @@ var Gt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", Un
1814
1839
  }).current;
1815
1840
  u.useEffect(() => {
1816
1841
  if (r) {
1817
- let f = function(y) {
1818
- if (v.paused || !s) return;
1842
+ let d = function(y) {
1843
+ if (w.paused || !s) return;
1819
1844
  const S = y.target;
1820
1845
  s.contains(S) ? p.current = S : Ne(p.current, { select: !0 });
1821
- }, w = function(y) {
1822
- if (v.paused || !s) return;
1846
+ }, v = function(y) {
1847
+ if (w.paused || !s) return;
1823
1848
  const S = y.relatedTarget;
1824
1849
  S !== null && (s.contains(S) || Ne(p.current, { select: !0 }));
1825
1850
  }, b = function(y) {
@@ -1827,48 +1852,48 @@ var Gt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", Un
1827
1852
  for (const E of y)
1828
1853
  E.removedNodes.length > 0 && Ne(s);
1829
1854
  };
1830
- document.addEventListener("focusin", f), document.addEventListener("focusout", w);
1855
+ document.addEventListener("focusin", d), document.addEventListener("focusout", v);
1831
1856
  const x = new MutationObserver(b);
1832
1857
  return s && x.observe(s, { childList: !0, subtree: !0 }), () => {
1833
- document.removeEventListener("focusin", f), document.removeEventListener("focusout", w), x.disconnect();
1858
+ document.removeEventListener("focusin", d), document.removeEventListener("focusout", v), x.disconnect();
1834
1859
  };
1835
1860
  }
1836
- }, [r, s, v.paused]), u.useEffect(() => {
1861
+ }, [r, s, w.paused]), u.useEffect(() => {
1837
1862
  if (s) {
1838
- jn.add(v);
1839
- const f = document.activeElement;
1840
- if (!s.contains(f)) {
1863
+ jn.add(w);
1864
+ const d = document.activeElement;
1865
+ if (!s.contains(d)) {
1841
1866
  const b = new CustomEvent(Gt, Un);
1842
- s.addEventListener(Gt, c), s.dispatchEvent(b), b.defaultPrevented || (pi(wi(Or(s)), { select: !0 }), document.activeElement === f && Ne(s));
1867
+ s.addEventListener(Gt, c), s.dispatchEvent(b), b.defaultPrevented || (hi(bi(Or(s)), { select: !0 }), document.activeElement === d && Ne(s));
1843
1868
  }
1844
1869
  return () => {
1845
1870
  s.removeEventListener(Gt, c), setTimeout(() => {
1846
1871
  const b = new CustomEvent(Zt, Un);
1847
- s.addEventListener(Zt, d), s.dispatchEvent(b), b.defaultPrevented || Ne(f ?? document.body, { select: !0 }), s.removeEventListener(Zt, d), jn.remove(v);
1872
+ s.addEventListener(Zt, f), s.dispatchEvent(b), b.defaultPrevented || Ne(d ?? document.body, { select: !0 }), s.removeEventListener(Zt, f), jn.remove(w);
1848
1873
  }, 0);
1849
1874
  };
1850
1875
  }
1851
- }, [s, c, d, v]);
1876
+ }, [s, c, f, w]);
1852
1877
  const m = u.useCallback(
1853
- (f) => {
1854
- if (!n && !r || v.paused) return;
1855
- const w = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, b = document.activeElement;
1856
- if (w && b) {
1857
- const x = f.currentTarget, [y, S] = hi(x);
1858
- y && S ? !f.shiftKey && b === S ? (f.preventDefault(), n && Ne(y, { select: !0 })) : f.shiftKey && b === y && (f.preventDefault(), n && Ne(S, { select: !0 })) : b === x && f.preventDefault();
1878
+ (d) => {
1879
+ if (!n && !r || w.paused) return;
1880
+ const v = d.key === "Tab" && !d.altKey && !d.ctrlKey && !d.metaKey, b = document.activeElement;
1881
+ if (v && b) {
1882
+ const x = d.currentTarget, [y, S] = vi(x);
1883
+ y && S ? !d.shiftKey && b === S ? (d.preventDefault(), n && Ne(y, { select: !0 })) : d.shiftKey && b === y && (d.preventDefault(), n && Ne(S, { select: !0 })) : b === x && d.preventDefault();
1859
1884
  }
1860
1885
  },
1861
- [n, r, v.paused]
1886
+ [n, r, w.paused]
1862
1887
  );
1863
1888
  return /* @__PURE__ */ k(K.div, { tabIndex: -1, ...i, ref: g, onKeyDown: m });
1864
1889
  });
1865
- Nr.displayName = fi;
1866
- function pi(e, { select: t = !1 } = {}) {
1890
+ Nr.displayName = pi;
1891
+ function hi(e, { select: t = !1 } = {}) {
1867
1892
  const n = document.activeElement;
1868
1893
  for (const r of e)
1869
1894
  if (Ne(r, { select: t }), document.activeElement !== n) return;
1870
1895
  }
1871
- function hi(e) {
1896
+ function vi(e) {
1872
1897
  const t = Or(e), n = Hn(t, e), r = Hn(t.reverse(), e);
1873
1898
  return [n, r];
1874
1899
  }
@@ -1884,9 +1909,9 @@ function Or(e) {
1884
1909
  }
1885
1910
  function Hn(e, t) {
1886
1911
  for (const n of e)
1887
- if (!vi(n, { upTo: t })) return n;
1912
+ if (!gi(n, { upTo: t })) return n;
1888
1913
  }
1889
- function vi(e, { upTo: t }) {
1914
+ function gi(e, { upTo: t }) {
1890
1915
  if (getComputedStyle(e).visibility === "hidden") return !0;
1891
1916
  for (; e; ) {
1892
1917
  if (t !== void 0 && e === t) return !1;
@@ -1895,17 +1920,17 @@ function vi(e, { upTo: t }) {
1895
1920
  }
1896
1921
  return !1;
1897
1922
  }
1898
- function gi(e) {
1923
+ function mi(e) {
1899
1924
  return e instanceof HTMLInputElement && "select" in e;
1900
1925
  }
1901
1926
  function Ne(e, { select: t = !1 } = {}) {
1902
1927
  if (e && e.focus) {
1903
1928
  const n = document.activeElement;
1904
- e.focus({ preventScroll: !0 }), e !== n && gi(e) && t && e.select();
1929
+ e.focus({ preventScroll: !0 }), e !== n && mi(e) && t && e.select();
1905
1930
  }
1906
1931
  }
1907
- var jn = mi();
1908
- function mi() {
1932
+ var jn = wi();
1933
+ function wi() {
1909
1934
  let e = [];
1910
1935
  return {
1911
1936
  add(t) {
@@ -1922,27 +1947,27 @@ function Yn(e, t) {
1922
1947
  const n = [...e], r = n.indexOf(t);
1923
1948
  return r !== -1 && n.splice(r, 1), n;
1924
1949
  }
1925
- function wi(e) {
1950
+ function bi(e) {
1926
1951
  return e.filter((t) => t.tagName !== "A");
1927
1952
  }
1928
1953
  var te = globalThis != null && globalThis.document ? u.useLayoutEffect : () => {
1929
- }, bi = u[" useId ".trim().toString()] || (() => {
1930
- }), xi = 0;
1954
+ }, xi = u[" useId ".trim().toString()] || (() => {
1955
+ }), yi = 0;
1931
1956
  function Cn(e) {
1932
- const [t, n] = u.useState(bi());
1957
+ const [t, n] = u.useState(xi());
1933
1958
  return te(() => {
1934
- n((r) => r ?? String(xi++));
1959
+ n((r) => r ?? String(yi++));
1935
1960
  }, [e]), e || (t ? `radix-${t}` : "");
1936
1961
  }
1937
- const yi = ["top", "right", "bottom", "left"], Le = Math.min, ae = Math.max, Nt = Math.round, Ct = Math.floor, ye = (e) => ({
1962
+ const Ci = ["top", "right", "bottom", "left"], Le = Math.min, ae = Math.max, Nt = Math.round, Ct = Math.floor, ye = (e) => ({
1938
1963
  x: e,
1939
1964
  y: e
1940
- }), Ci = {
1965
+ }), Si = {
1941
1966
  left: "right",
1942
1967
  right: "left",
1943
1968
  bottom: "top",
1944
1969
  top: "bottom"
1945
- }, Si = {
1970
+ }, Ei = {
1946
1971
  start: "end",
1947
1972
  end: "start"
1948
1973
  };
@@ -1970,20 +1995,20 @@ function De(e) {
1970
1995
  function kn(e) {
1971
1996
  return Sn(De(e));
1972
1997
  }
1973
- function Ei(e, t, n) {
1998
+ function ki(e, t, n) {
1974
1999
  n === void 0 && (n = !1);
1975
2000
  const r = at(e), o = kn(e), a = En(o);
1976
2001
  let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
1977
2002
  return t.reference[a] > t.floating[a] && (i = Ot(i)), [i, Ot(i)];
1978
2003
  }
1979
- function ki(e) {
2004
+ function Ti(e) {
1980
2005
  const t = Ot(e);
1981
2006
  return [cn(e), t, cn(t)];
1982
2007
  }
1983
2008
  function cn(e) {
1984
- return e.replace(/start|end/g, (t) => Si[t]);
2009
+ return e.replace(/start|end/g, (t) => Ei[t]);
1985
2010
  }
1986
- function Ti(e, t, n) {
2011
+ function Ai(e, t, n) {
1987
2012
  const r = ["left", "right"], o = ["right", "left"], a = ["top", "bottom"], i = ["bottom", "top"];
1988
2013
  switch (e) {
1989
2014
  case "top":
@@ -1996,15 +2021,15 @@ function Ti(e, t, n) {
1996
2021
  return [];
1997
2022
  }
1998
2023
  }
1999
- function Ai(e, t, n, r) {
2024
+ function Pi(e, t, n, r) {
2000
2025
  const o = at(e);
2001
- let a = Ti(Pe(e), n === "start", r);
2026
+ let a = Ai(Pe(e), n === "start", r);
2002
2027
  return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(cn)))), a;
2003
2028
  }
2004
2029
  function Ot(e) {
2005
- return e.replace(/left|right|bottom|top/g, (t) => Ci[t]);
2030
+ return e.replace(/left|right|bottom|top/g, (t) => Si[t]);
2006
2031
  }
2007
- function Pi(e) {
2032
+ function Ii(e) {
2008
2033
  return {
2009
2034
  top: 0,
2010
2035
  right: 0,
@@ -2014,7 +2039,7 @@ function Pi(e) {
2014
2039
  };
2015
2040
  }
2016
2041
  function Mr(e) {
2017
- return typeof e != "number" ? Pi(e) : {
2042
+ return typeof e != "number" ? Ii(e) : {
2018
2043
  top: e,
2019
2044
  right: e,
2020
2045
  bottom: e,
@@ -2044,48 +2069,48 @@ function Xn(e, t, n) {
2044
2069
  reference: r,
2045
2070
  floating: o
2046
2071
  } = e;
2047
- const a = De(t), i = kn(t), s = En(i), l = Pe(t), c = a === "y", d = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, g = r[s] / 2 - o[s] / 2;
2048
- let v;
2072
+ const a = De(t), i = kn(t), s = En(i), l = Pe(t), c = a === "y", f = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, g = r[s] / 2 - o[s] / 2;
2073
+ let w;
2049
2074
  switch (l) {
2050
2075
  case "top":
2051
- v = {
2052
- x: d,
2076
+ w = {
2077
+ x: f,
2053
2078
  y: r.y - o.height
2054
2079
  };
2055
2080
  break;
2056
2081
  case "bottom":
2057
- v = {
2058
- x: d,
2082
+ w = {
2083
+ x: f,
2059
2084
  y: r.y + r.height
2060
2085
  };
2061
2086
  break;
2062
2087
  case "right":
2063
- v = {
2088
+ w = {
2064
2089
  x: r.x + r.width,
2065
2090
  y: p
2066
2091
  };
2067
2092
  break;
2068
2093
  case "left":
2069
- v = {
2094
+ w = {
2070
2095
  x: r.x - o.width,
2071
2096
  y: p
2072
2097
  };
2073
2098
  break;
2074
2099
  default:
2075
- v = {
2100
+ w = {
2076
2101
  x: r.x,
2077
2102
  y: r.y
2078
2103
  };
2079
2104
  }
2080
2105
  switch (at(t)) {
2081
2106
  case "start":
2082
- v[i] -= g * (n && c ? -1 : 1);
2107
+ w[i] -= g * (n && c ? -1 : 1);
2083
2108
  break;
2084
2109
  case "end":
2085
- v[i] += g * (n && c ? -1 : 1);
2110
+ w[i] += g * (n && c ? -1 : 1);
2086
2111
  break;
2087
2112
  }
2088
- return v;
2113
+ return w;
2089
2114
  }
2090
2115
  const Ri = async (e, t, n) => {
2091
2116
  const {
@@ -2099,25 +2124,25 @@ const Ri = async (e, t, n) => {
2099
2124
  floating: t,
2100
2125
  strategy: o
2101
2126
  }), {
2102
- x: d,
2127
+ x: f,
2103
2128
  y: p
2104
- } = Xn(c, r, l), g = r, v = {}, m = 0;
2105
- for (let f = 0; f < s.length; f++) {
2129
+ } = Xn(c, r, l), g = r, w = {}, m = 0;
2130
+ for (let d = 0; d < s.length; d++) {
2106
2131
  const {
2107
- name: w,
2132
+ name: v,
2108
2133
  fn: b
2109
- } = s[f], {
2134
+ } = s[d], {
2110
2135
  x,
2111
2136
  y,
2112
2137
  data: S,
2113
2138
  reset: E
2114
2139
  } = await b({
2115
- x: d,
2140
+ x: f,
2116
2141
  y: p,
2117
2142
  initialPlacement: r,
2118
2143
  placement: g,
2119
2144
  strategy: o,
2120
- middlewareData: v,
2145
+ middlewareData: w,
2121
2146
  rects: c,
2122
2147
  platform: i,
2123
2148
  elements: {
@@ -2125,10 +2150,10 @@ const Ri = async (e, t, n) => {
2125
2150
  floating: t
2126
2151
  }
2127
2152
  });
2128
- d = x ?? d, p = y ?? p, v = {
2129
- ...v,
2130
- [w]: {
2131
- ...v[w],
2153
+ f = x ?? f, p = y ?? p, w = {
2154
+ ...w,
2155
+ [v]: {
2156
+ ...w[v],
2132
2157
  ...S
2133
2158
  }
2134
2159
  }, E && m <= 50 && (m++, typeof E == "object" && (E.placement && (g = E.placement), E.rects && (c = E.rects === !0 ? await i.getElementRects({
@@ -2136,16 +2161,16 @@ const Ri = async (e, t, n) => {
2136
2161
  floating: t,
2137
2162
  strategy: o
2138
2163
  }) : E.rects), {
2139
- x: d,
2164
+ x: f,
2140
2165
  y: p
2141
- } = Xn(c, g, l)), f = -1);
2166
+ } = Xn(c, g, l)), d = -1);
2142
2167
  }
2143
2168
  return {
2144
- x: d,
2169
+ x: f,
2145
2170
  y: p,
2146
2171
  placement: g,
2147
2172
  strategy: o,
2148
- middlewareData: v
2173
+ middlewareData: w
2149
2174
  };
2150
2175
  };
2151
2176
  async function gt(e, t) {
@@ -2160,14 +2185,14 @@ async function gt(e, t) {
2160
2185
  strategy: l
2161
2186
  } = e, {
2162
2187
  boundary: c = "clippingAncestors",
2163
- rootBoundary: d = "viewport",
2188
+ rootBoundary: f = "viewport",
2164
2189
  elementContext: p = "floating",
2165
2190
  altBoundary: g = !1,
2166
- padding: v = 0
2167
- } = Ae(t, e), m = Mr(v), w = s[g ? p === "floating" ? "reference" : "floating" : p], b = Mt(await a.getClippingRect({
2168
- element: (n = await (a.isElement == null ? void 0 : a.isElement(w))) == null || n ? w : w.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
2191
+ padding: w = 0
2192
+ } = Ae(t, e), m = Mr(w), v = s[g ? p === "floating" ? "reference" : "floating" : p], b = Mt(await a.getClippingRect({
2193
+ element: (n = await (a.isElement == null ? void 0 : a.isElement(v))) == null || n ? v : v.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
2169
2194
  boundary: c,
2170
- rootBoundary: d,
2195
+ rootBoundary: f,
2171
2196
  strategy: l
2172
2197
  })), x = p === "floating" ? {
2173
2198
  x: r,
@@ -2193,7 +2218,7 @@ async function gt(e, t) {
2193
2218
  right: (E.right - b.right + m.right) / S.x
2194
2219
  };
2195
2220
  }
2196
- const Ii = (e) => ({
2221
+ const _i = (e) => ({
2197
2222
  name: "arrow",
2198
2223
  options: e,
2199
2224
  async fn(t) {
@@ -2207,21 +2232,21 @@ const Ii = (e) => ({
2207
2232
  middlewareData: l
2208
2233
  } = t, {
2209
2234
  element: c,
2210
- padding: d = 0
2235
+ padding: f = 0
2211
2236
  } = Ae(e, t) || {};
2212
2237
  if (c == null)
2213
2238
  return {};
2214
- const p = Mr(d), g = {
2239
+ const p = Mr(f), g = {
2215
2240
  x: n,
2216
2241
  y: r
2217
- }, v = kn(o), m = En(v), f = await i.getDimensions(c), w = v === "y", b = w ? "top" : "left", x = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", S = a.reference[m] + a.reference[v] - g[v] - a.floating[m], E = g[v] - a.reference[v], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
2242
+ }, w = kn(o), m = En(w), d = await i.getDimensions(c), v = w === "y", b = v ? "top" : "left", x = v ? "bottom" : "right", y = v ? "clientHeight" : "clientWidth", S = a.reference[m] + a.reference[w] - g[w] - a.floating[m], E = g[w] - a.reference[w], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
2218
2243
  let C = T ? T[y] : 0;
2219
2244
  (!C || !await (i.isElement == null ? void 0 : i.isElement(T))) && (C = s.floating[y] || a.floating[m]);
2220
- const R = S / 2 - E / 2, O = C / 2 - f[m] / 2 - 1, M = Le(p[b], O), V = Le(p[x], O), $ = M, D = C - f[m] - V, N = C / 2 - f[m] / 2 + R, X = ln($, N, D), _ = !l.arrow && at(o) != null && N !== X && a.reference[m] / 2 - (N < $ ? M : V) - f[m] / 2 < 0, L = _ ? N < $ ? N - $ : N - D : 0;
2245
+ const I = S / 2 - E / 2, O = C / 2 - d[m] / 2 - 1, M = Le(p[b], O), V = Le(p[x], O), $ = M, D = C - d[m] - V, N = C / 2 - d[m] / 2 + I, X = ln($, N, D), _ = !l.arrow && at(o) != null && N !== X && a.reference[m] / 2 - (N < $ ? M : V) - d[m] / 2 < 0, L = _ ? N < $ ? N - $ : N - D : 0;
2221
2246
  return {
2222
- [v]: g[v] + L,
2247
+ [w]: g[w] + L,
2223
2248
  data: {
2224
- [v]: X,
2249
+ [w]: X,
2225
2250
  centerOffset: N - X - L,
2226
2251
  ..._ && {
2227
2252
  alignmentOffset: L
@@ -2230,7 +2255,7 @@ const Ii = (e) => ({
2230
2255
  reset: _
2231
2256
  };
2232
2257
  }
2233
- }), _i = function(e) {
2258
+ }), Ni = function(e) {
2234
2259
  return e === void 0 && (e = {}), {
2235
2260
  name: "flip",
2236
2261
  options: e,
@@ -2244,23 +2269,23 @@ const Ii = (e) => ({
2244
2269
  platform: l,
2245
2270
  elements: c
2246
2271
  } = t, {
2247
- mainAxis: d = !0,
2272
+ mainAxis: f = !0,
2248
2273
  crossAxis: p = !0,
2249
2274
  fallbackPlacements: g,
2250
- fallbackStrategy: v = "bestFit",
2275
+ fallbackStrategy: w = "bestFit",
2251
2276
  fallbackAxisSideDirection: m = "none",
2252
- flipAlignment: f = !0,
2253
- ...w
2277
+ flipAlignment: d = !0,
2278
+ ...v
2254
2279
  } = Ae(e, t);
2255
2280
  if ((n = a.arrow) != null && n.alignmentOffset)
2256
2281
  return {};
2257
- const b = Pe(o), x = De(s), y = Pe(s) === s, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (y || !f ? [Ot(s)] : ki(s)), T = m !== "none";
2258
- !g && T && E.push(...Ai(s, f, m, S));
2259
- const C = [s, ...E], R = await gt(t, w), O = [];
2282
+ const b = Pe(o), x = De(s), y = Pe(s) === s, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (y || !d ? [Ot(s)] : Ti(s)), T = m !== "none";
2283
+ !g && T && E.push(...Pi(s, d, m, S));
2284
+ const C = [s, ...E], I = await gt(t, v), O = [];
2260
2285
  let M = ((r = a.flip) == null ? void 0 : r.overflows) || [];
2261
- if (d && O.push(R[b]), p) {
2262
- const N = Ei(o, i, S);
2263
- O.push(R[N[0]], R[N[1]]);
2286
+ if (f && O.push(I[b]), p) {
2287
+ const N = ki(o, i, S);
2288
+ O.push(I[N[0]], I[N[1]]);
2264
2289
  }
2265
2290
  if (M = [...M, {
2266
2291
  placement: o,
@@ -2278,20 +2303,20 @@ const Ii = (e) => ({
2278
2303
  placement: X
2279
2304
  }
2280
2305
  };
2281
- let _ = ($ = M.filter((L) => L.overflows[0] <= 0).sort((L, I) => L.overflows[1] - I.overflows[1])[0]) == null ? void 0 : $.placement;
2306
+ let _ = ($ = M.filter((L) => L.overflows[0] <= 0).sort((L, R) => L.overflows[1] - R.overflows[1])[0]) == null ? void 0 : $.placement;
2282
2307
  if (!_)
2283
- switch (v) {
2308
+ switch (w) {
2284
2309
  case "bestFit": {
2285
2310
  var D;
2286
- const L = (D = M.filter((I) => {
2311
+ const L = (D = M.filter((R) => {
2287
2312
  if (T) {
2288
- const W = De(I.placement);
2313
+ const W = De(R.placement);
2289
2314
  return W === x || // Create a bias to the `y` side axis due to horizontal
2290
2315
  // reading directions favoring greater width.
2291
2316
  W === "y";
2292
2317
  }
2293
2318
  return !0;
2294
- }).map((I) => [I.placement, I.overflows.filter((W) => W > 0).reduce((W, ee) => W + ee, 0)]).sort((I, W) => I[1] - W[1])[0]) == null ? void 0 : D[0];
2319
+ }).map((R) => [R.placement, R.overflows.filter((W) => W > 0).reduce((W, ee) => W + ee, 0)]).sort((R, W) => R[1] - W[1])[0]) == null ? void 0 : D[0];
2295
2320
  L && (_ = L);
2296
2321
  break;
2297
2322
  }
@@ -2319,9 +2344,9 @@ function Kn(e, t) {
2319
2344
  };
2320
2345
  }
2321
2346
  function Gn(e) {
2322
- return yi.some((t) => e[t] >= 0);
2347
+ return Ci.some((t) => e[t] >= 0);
2323
2348
  }
2324
- const Ni = function(e) {
2349
+ const Oi = function(e) {
2325
2350
  return e === void 0 && (e = {}), {
2326
2351
  name: "hide",
2327
2352
  options: e,
@@ -2363,15 +2388,15 @@ const Ni = function(e) {
2363
2388
  }
2364
2389
  };
2365
2390
  };
2366
- async function Oi(e, t) {
2391
+ async function Mi(e, t) {
2367
2392
  const {
2368
2393
  placement: n,
2369
2394
  platform: r,
2370
2395
  elements: o
2371
- } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = Pe(n), s = at(n), l = De(n) === "y", c = ["left", "top"].includes(i) ? -1 : 1, d = a && l ? -1 : 1, p = Ae(t, e);
2396
+ } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = Pe(n), s = at(n), l = De(n) === "y", c = ["left", "top"].includes(i) ? -1 : 1, f = a && l ? -1 : 1, p = Ae(t, e);
2372
2397
  let {
2373
2398
  mainAxis: g,
2374
- crossAxis: v,
2399
+ crossAxis: w,
2375
2400
  alignmentAxis: m
2376
2401
  } = typeof p == "number" ? {
2377
2402
  mainAxis: p,
@@ -2382,15 +2407,15 @@ async function Oi(e, t) {
2382
2407
  crossAxis: p.crossAxis || 0,
2383
2408
  alignmentAxis: p.alignmentAxis
2384
2409
  };
2385
- return s && typeof m == "number" && (v = s === "end" ? m * -1 : m), l ? {
2386
- x: v * d,
2410
+ return s && typeof m == "number" && (w = s === "end" ? m * -1 : m), l ? {
2411
+ x: w * f,
2387
2412
  y: g * c
2388
2413
  } : {
2389
2414
  x: g * c,
2390
- y: v * d
2415
+ y: w * f
2391
2416
  };
2392
2417
  }
2393
- const Mi = function(e) {
2418
+ const Li = function(e) {
2394
2419
  return e === void 0 && (e = 0), {
2395
2420
  name: "offset",
2396
2421
  options: e,
@@ -2401,7 +2426,7 @@ const Mi = function(e) {
2401
2426
  y: a,
2402
2427
  placement: i,
2403
2428
  middlewareData: s
2404
- } = t, l = await Oi(t, e);
2429
+ } = t, l = await Mi(t, e);
2405
2430
  return i === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
2406
2431
  x: o + l.x,
2407
2432
  y: a + l.y,
@@ -2412,7 +2437,7 @@ const Mi = function(e) {
2412
2437
  };
2413
2438
  }
2414
2439
  };
2415
- }, Li = function(e) {
2440
+ }, Di = function(e) {
2416
2441
  return e === void 0 && (e = {}), {
2417
2442
  name: "shift",
2418
2443
  options: e,
@@ -2425,11 +2450,11 @@ const Mi = function(e) {
2425
2450
  mainAxis: a = !0,
2426
2451
  crossAxis: i = !1,
2427
2452
  limiter: s = {
2428
- fn: (w) => {
2453
+ fn: (v) => {
2429
2454
  let {
2430
2455
  x: b,
2431
2456
  y: x
2432
- } = w;
2457
+ } = v;
2433
2458
  return {
2434
2459
  x: b,
2435
2460
  y: x
@@ -2440,26 +2465,26 @@ const Mi = function(e) {
2440
2465
  } = Ae(e, t), c = {
2441
2466
  x: n,
2442
2467
  y: r
2443
- }, d = await gt(t, l), p = De(Pe(o)), g = Sn(p);
2444
- let v = c[g], m = c[p];
2468
+ }, f = await gt(t, l), p = De(Pe(o)), g = Sn(p);
2469
+ let w = c[g], m = c[p];
2445
2470
  if (a) {
2446
- const w = g === "y" ? "top" : "left", b = g === "y" ? "bottom" : "right", x = v + d[w], y = v - d[b];
2447
- v = ln(x, v, y);
2471
+ const v = g === "y" ? "top" : "left", b = g === "y" ? "bottom" : "right", x = w + f[v], y = w - f[b];
2472
+ w = ln(x, w, y);
2448
2473
  }
2449
2474
  if (i) {
2450
- const w = p === "y" ? "top" : "left", b = p === "y" ? "bottom" : "right", x = m + d[w], y = m - d[b];
2475
+ const v = p === "y" ? "top" : "left", b = p === "y" ? "bottom" : "right", x = m + f[v], y = m - f[b];
2451
2476
  m = ln(x, m, y);
2452
2477
  }
2453
- const f = s.fn({
2478
+ const d = s.fn({
2454
2479
  ...t,
2455
- [g]: v,
2480
+ [g]: w,
2456
2481
  [p]: m
2457
2482
  });
2458
2483
  return {
2459
- ...f,
2484
+ ...d,
2460
2485
  data: {
2461
- x: f.x - n,
2462
- y: f.y - r,
2486
+ x: d.x - n,
2487
+ y: d.y - r,
2463
2488
  enabled: {
2464
2489
  [g]: a,
2465
2490
  [p]: i
@@ -2468,7 +2493,7 @@ const Mi = function(e) {
2468
2493
  };
2469
2494
  }
2470
2495
  };
2471
- }, Di = function(e) {
2496
+ }, Bi = function(e) {
2472
2497
  return e === void 0 && (e = {}), {
2473
2498
  options: e,
2474
2499
  fn(t) {
@@ -2482,35 +2507,35 @@ const Mi = function(e) {
2482
2507
  offset: s = 0,
2483
2508
  mainAxis: l = !0,
2484
2509
  crossAxis: c = !0
2485
- } = Ae(e, t), d = {
2510
+ } = Ae(e, t), f = {
2486
2511
  x: n,
2487
2512
  y: r
2488
2513
  }, p = De(o), g = Sn(p);
2489
- let v = d[g], m = d[p];
2490
- const f = Ae(s, t), w = typeof f == "number" ? {
2491
- mainAxis: f,
2514
+ let w = f[g], m = f[p];
2515
+ const d = Ae(s, t), v = typeof d == "number" ? {
2516
+ mainAxis: d,
2492
2517
  crossAxis: 0
2493
2518
  } : {
2494
2519
  mainAxis: 0,
2495
2520
  crossAxis: 0,
2496
- ...f
2521
+ ...d
2497
2522
  };
2498
2523
  if (l) {
2499
- const y = g === "y" ? "height" : "width", S = a.reference[g] - a.floating[y] + w.mainAxis, E = a.reference[g] + a.reference[y] - w.mainAxis;
2500
- v < S ? v = S : v > E && (v = E);
2524
+ const y = g === "y" ? "height" : "width", S = a.reference[g] - a.floating[y] + v.mainAxis, E = a.reference[g] + a.reference[y] - v.mainAxis;
2525
+ w < S ? w = S : w > E && (w = E);
2501
2526
  }
2502
2527
  if (c) {
2503
2528
  var b, x;
2504
- const y = g === "y" ? "width" : "height", S = ["top", "left"].includes(Pe(o)), E = a.reference[p] - a.floating[y] + (S && ((b = i.offset) == null ? void 0 : b[p]) || 0) + (S ? 0 : w.crossAxis), T = a.reference[p] + a.reference[y] + (S ? 0 : ((x = i.offset) == null ? void 0 : x[p]) || 0) - (S ? w.crossAxis : 0);
2529
+ const y = g === "y" ? "width" : "height", S = ["top", "left"].includes(Pe(o)), E = a.reference[p] - a.floating[y] + (S && ((b = i.offset) == null ? void 0 : b[p]) || 0) + (S ? 0 : v.crossAxis), T = a.reference[p] + a.reference[y] + (S ? 0 : ((x = i.offset) == null ? void 0 : x[p]) || 0) - (S ? v.crossAxis : 0);
2505
2530
  m < E ? m = E : m > T && (m = T);
2506
2531
  }
2507
2532
  return {
2508
- [g]: v,
2533
+ [g]: w,
2509
2534
  [p]: m
2510
2535
  };
2511
2536
  }
2512
2537
  };
2513
- }, Bi = function(e) {
2538
+ }, zi = function(e) {
2514
2539
  return e === void 0 && (e = {}), {
2515
2540
  name: "size",
2516
2541
  options: e,
@@ -2525,25 +2550,25 @@ const Mi = function(e) {
2525
2550
  apply: l = () => {
2526
2551
  },
2527
2552
  ...c
2528
- } = Ae(e, t), d = await gt(t, c), p = Pe(o), g = at(o), v = De(o) === "y", {
2553
+ } = Ae(e, t), f = await gt(t, c), p = Pe(o), g = at(o), w = De(o) === "y", {
2529
2554
  width: m,
2530
- height: f
2555
+ height: d
2531
2556
  } = a.floating;
2532
- let w, b;
2533
- p === "top" || p === "bottom" ? (w = p, b = g === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (b = p, w = g === "end" ? "top" : "bottom");
2534
- const x = f - d.top - d.bottom, y = m - d.left - d.right, S = Le(f - d[w], x), E = Le(m - d[b], y), T = !t.middlewareData.shift;
2535
- let C = S, R = E;
2536
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = x), T && !g) {
2537
- const M = ae(d.left, 0), V = ae(d.right, 0), $ = ae(d.top, 0), D = ae(d.bottom, 0);
2538
- v ? R = m - 2 * (M !== 0 || V !== 0 ? M + V : ae(d.left, d.right)) : C = f - 2 * ($ !== 0 || D !== 0 ? $ + D : ae(d.top, d.bottom));
2557
+ let v, b;
2558
+ p === "top" || p === "bottom" ? (v = p, b = g === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (b = p, v = g === "end" ? "top" : "bottom");
2559
+ const x = d - f.top - f.bottom, y = m - f.left - f.right, S = Le(d - f[v], x), E = Le(m - f[b], y), T = !t.middlewareData.shift;
2560
+ let C = S, I = E;
2561
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (I = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = x), T && !g) {
2562
+ const M = ae(f.left, 0), V = ae(f.right, 0), $ = ae(f.top, 0), D = ae(f.bottom, 0);
2563
+ w ? I = m - 2 * (M !== 0 || V !== 0 ? M + V : ae(f.left, f.right)) : C = d - 2 * ($ !== 0 || D !== 0 ? $ + D : ae(f.top, f.bottom));
2539
2564
  }
2540
2565
  await l({
2541
2566
  ...t,
2542
- availableWidth: R,
2567
+ availableWidth: I,
2543
2568
  availableHeight: C
2544
2569
  });
2545
2570
  const O = await i.getDimensions(s.floating);
2546
- return m !== O.width || f !== O.height ? {
2571
+ return m !== O.width || d !== O.height ? {
2547
2572
  reset: {
2548
2573
  rects: !0
2549
2574
  }
@@ -2568,7 +2593,7 @@ function Se(e) {
2568
2593
  function Lr(e) {
2569
2594
  return Ft() ? e instanceof Node || e instanceof ie(e).Node : !1;
2570
2595
  }
2571
- function de(e) {
2596
+ function fe(e) {
2572
2597
  return Ft() ? e instanceof Element || e instanceof ie(e).Element : !1;
2573
2598
  }
2574
2599
  function Ce(e) {
@@ -2583,10 +2608,10 @@ function bt(e) {
2583
2608
  overflowX: n,
2584
2609
  overflowY: r,
2585
2610
  display: o
2586
- } = fe(e);
2611
+ } = pe(e);
2587
2612
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
2588
2613
  }
2589
- function zi(e) {
2614
+ function Fi(e) {
2590
2615
  return ["table", "td", "th"].includes(it(e));
2591
2616
  }
2592
2617
  function Vt(e) {
@@ -2599,10 +2624,10 @@ function Vt(e) {
2599
2624
  });
2600
2625
  }
2601
2626
  function Tn(e) {
2602
- const t = An(), n = de(e) ? fe(e) : e;
2627
+ const t = An(), n = fe(e) ? pe(e) : e;
2603
2628
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
2604
2629
  }
2605
- function Fi(e) {
2630
+ function Vi(e) {
2606
2631
  let t = Be(e);
2607
2632
  for (; Ce(t) && !nt(t); ) {
2608
2633
  if (Tn(t))
@@ -2619,11 +2644,11 @@ function An() {
2619
2644
  function nt(e) {
2620
2645
  return ["html", "body", "#document"].includes(it(e));
2621
2646
  }
2622
- function fe(e) {
2647
+ function pe(e) {
2623
2648
  return ie(e).getComputedStyle(e);
2624
2649
  }
2625
2650
  function $t(e) {
2626
- return de(e) ? {
2651
+ return fe(e) ? {
2627
2652
  scrollLeft: e.scrollLeft,
2628
2653
  scrollTop: e.scrollTop
2629
2654
  } : {
@@ -2661,7 +2686,7 @@ function un(e) {
2661
2686
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2662
2687
  }
2663
2688
  function Br(e) {
2664
- const t = fe(e);
2689
+ const t = pe(e);
2665
2690
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
2666
2691
  const o = Ce(e), a = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, s = Nt(n) !== a || Nt(r) !== i;
2667
2692
  return s && (n = a, r = i), {
@@ -2671,7 +2696,7 @@ function Br(e) {
2671
2696
  };
2672
2697
  }
2673
2698
  function Pn(e) {
2674
- return de(e) ? e : e.contextElement;
2699
+ return fe(e) ? e : e.contextElement;
2675
2700
  }
2676
2701
  function et(e) {
2677
2702
  const t = Pn(e);
@@ -2688,55 +2713,55 @@ function et(e) {
2688
2713
  y: s
2689
2714
  };
2690
2715
  }
2691
- const Vi = /* @__PURE__ */ ye(0);
2716
+ const $i = /* @__PURE__ */ ye(0);
2692
2717
  function zr(e) {
2693
2718
  const t = ie(e);
2694
- return !An() || !t.visualViewport ? Vi : {
2719
+ return !An() || !t.visualViewport ? $i : {
2695
2720
  x: t.visualViewport.offsetLeft,
2696
2721
  y: t.visualViewport.offsetTop
2697
2722
  };
2698
2723
  }
2699
- function $i(e, t, n) {
2724
+ function Wi(e, t, n) {
2700
2725
  return t === void 0 && (t = !1), !n || t && n !== ie(e) ? !1 : t;
2701
2726
  }
2702
- function Ue(e, t, n, r) {
2727
+ function He(e, t, n, r) {
2703
2728
  t === void 0 && (t = !1), n === void 0 && (n = !1);
2704
2729
  const o = e.getBoundingClientRect(), a = Pn(e);
2705
2730
  let i = ye(1);
2706
- t && (r ? de(r) && (i = et(r)) : i = et(e));
2707
- const s = $i(a, n, r) ? zr(a) : ye(0);
2708
- let l = (o.left + s.x) / i.x, c = (o.top + s.y) / i.y, d = o.width / i.x, p = o.height / i.y;
2731
+ t && (r ? fe(r) && (i = et(r)) : i = et(e));
2732
+ const s = Wi(a, n, r) ? zr(a) : ye(0);
2733
+ let l = (o.left + s.x) / i.x, c = (o.top + s.y) / i.y, f = o.width / i.x, p = o.height / i.y;
2709
2734
  if (a) {
2710
- const g = ie(a), v = r && de(r) ? ie(r) : r;
2711
- let m = g, f = un(m);
2712
- for (; f && r && v !== m; ) {
2713
- const w = et(f), b = f.getBoundingClientRect(), x = fe(f), y = b.left + (f.clientLeft + parseFloat(x.paddingLeft)) * w.x, S = b.top + (f.clientTop + parseFloat(x.paddingTop)) * w.y;
2714
- l *= w.x, c *= w.y, d *= w.x, p *= w.y, l += y, c += S, m = ie(f), f = un(m);
2735
+ const g = ie(a), w = r && fe(r) ? ie(r) : r;
2736
+ let m = g, d = un(m);
2737
+ for (; d && r && w !== m; ) {
2738
+ const v = et(d), b = d.getBoundingClientRect(), x = pe(d), y = b.left + (d.clientLeft + parseFloat(x.paddingLeft)) * v.x, S = b.top + (d.clientTop + parseFloat(x.paddingTop)) * v.y;
2739
+ l *= v.x, c *= v.y, f *= v.x, p *= v.y, l += y, c += S, m = ie(d), d = un(m);
2715
2740
  }
2716
2741
  }
2717
2742
  return Mt({
2718
- width: d,
2743
+ width: f,
2719
2744
  height: p,
2720
2745
  x: l,
2721
2746
  y: c
2722
2747
  });
2723
2748
  }
2724
- function Rn(e, t) {
2749
+ function In(e, t) {
2725
2750
  const n = $t(e).scrollLeft;
2726
- return t ? t.left + n : Ue(Se(e)).left + n;
2751
+ return t ? t.left + n : He(Se(e)).left + n;
2727
2752
  }
2728
2753
  function Fr(e, t, n) {
2729
2754
  n === void 0 && (n = !1);
2730
2755
  const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
2731
2756
  // RTL <body> scrollbar.
2732
- Rn(e, r)
2757
+ In(e, r)
2733
2758
  )), a = r.top + t.scrollTop;
2734
2759
  return {
2735
2760
  x: o,
2736
2761
  y: a
2737
2762
  };
2738
2763
  }
2739
- function Wi(e) {
2764
+ function Ui(e) {
2740
2765
  let {
2741
2766
  elements: t,
2742
2767
  rect: n,
@@ -2750,34 +2775,34 @@ function Wi(e) {
2750
2775
  scrollLeft: 0,
2751
2776
  scrollTop: 0
2752
2777
  }, c = ye(1);
2753
- const d = ye(0), p = Ce(r);
2778
+ const f = ye(0), p = Ce(r);
2754
2779
  if ((p || !p && !a) && ((it(r) !== "body" || bt(i)) && (l = $t(r)), Ce(r))) {
2755
- const v = Ue(r);
2756
- c = et(r), d.x = v.x + r.clientLeft, d.y = v.y + r.clientTop;
2780
+ const w = He(r);
2781
+ c = et(r), f.x = w.x + r.clientLeft, f.y = w.y + r.clientTop;
2757
2782
  }
2758
2783
  const g = i && !p && !a ? Fr(i, l, !0) : ye(0);
2759
2784
  return {
2760
2785
  width: n.width * c.x,
2761
2786
  height: n.height * c.y,
2762
- x: n.x * c.x - l.scrollLeft * c.x + d.x + g.x,
2763
- y: n.y * c.y - l.scrollTop * c.y + d.y + g.y
2787
+ x: n.x * c.x - l.scrollLeft * c.x + f.x + g.x,
2788
+ y: n.y * c.y - l.scrollTop * c.y + f.y + g.y
2764
2789
  };
2765
2790
  }
2766
- function Ui(e) {
2791
+ function Hi(e) {
2767
2792
  return Array.from(e.getClientRects());
2768
2793
  }
2769
- function Hi(e) {
2794
+ function ji(e) {
2770
2795
  const t = Se(e), n = $t(e), r = e.ownerDocument.body, o = ae(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = ae(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2771
- let i = -n.scrollLeft + Rn(e);
2796
+ let i = -n.scrollLeft + In(e);
2772
2797
  const s = -n.scrollTop;
2773
- return fe(r).direction === "rtl" && (i += ae(t.clientWidth, r.clientWidth) - o), {
2798
+ return pe(r).direction === "rtl" && (i += ae(t.clientWidth, r.clientWidth) - o), {
2774
2799
  width: o,
2775
2800
  height: a,
2776
2801
  x: i,
2777
2802
  y: s
2778
2803
  };
2779
2804
  }
2780
- function ji(e, t) {
2805
+ function Yi(e, t) {
2781
2806
  const n = ie(e), r = Se(e), o = n.visualViewport;
2782
2807
  let a = r.clientWidth, i = r.clientHeight, s = 0, l = 0;
2783
2808
  if (o) {
@@ -2792,8 +2817,8 @@ function ji(e, t) {
2792
2817
  y: l
2793
2818
  };
2794
2819
  }
2795
- function Yi(e, t) {
2796
- const n = Ue(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = Ce(e) ? et(e) : ye(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, l = o * a.x, c = r * a.y;
2820
+ function Xi(e, t) {
2821
+ const n = He(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = Ce(e) ? et(e) : ye(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, l = o * a.x, c = r * a.y;
2797
2822
  return {
2798
2823
  width: i,
2799
2824
  height: s,
@@ -2804,11 +2829,11 @@ function Yi(e, t) {
2804
2829
  function qn(e, t, n) {
2805
2830
  let r;
2806
2831
  if (t === "viewport")
2807
- r = ji(e, n);
2832
+ r = Yi(e, n);
2808
2833
  else if (t === "document")
2809
- r = Hi(Se(e));
2810
- else if (de(t))
2811
- r = Yi(t, n);
2834
+ r = ji(Se(e));
2835
+ else if (fe(t))
2836
+ r = Xi(t, n);
2812
2837
  else {
2813
2838
  const o = zr(e);
2814
2839
  r = {
@@ -2822,30 +2847,30 @@ function qn(e, t, n) {
2822
2847
  }
2823
2848
  function Vr(e, t) {
2824
2849
  const n = Be(e);
2825
- return n === t || !de(n) || nt(n) ? !1 : fe(n).position === "fixed" || Vr(n, t);
2850
+ return n === t || !fe(n) || nt(n) ? !1 : pe(n).position === "fixed" || Vr(n, t);
2826
2851
  }
2827
- function Xi(e, t) {
2852
+ function Ki(e, t) {
2828
2853
  const n = t.get(e);
2829
2854
  if (n)
2830
2855
  return n;
2831
- let r = mt(e, [], !1).filter((s) => de(s) && it(s) !== "body"), o = null;
2832
- const a = fe(e).position === "fixed";
2856
+ let r = mt(e, [], !1).filter((s) => fe(s) && it(s) !== "body"), o = null;
2857
+ const a = pe(e).position === "fixed";
2833
2858
  let i = a ? Be(e) : e;
2834
- for (; de(i) && !nt(i); ) {
2835
- const s = fe(i), l = Tn(i);
2836
- !l && s.position === "fixed" && (o = null), (a ? !l && !o : !l && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || bt(i) && !l && Vr(e, i)) ? r = r.filter((d) => d !== i) : o = s, i = Be(i);
2859
+ for (; fe(i) && !nt(i); ) {
2860
+ const s = pe(i), l = Tn(i);
2861
+ !l && s.position === "fixed" && (o = null), (a ? !l && !o : !l && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || bt(i) && !l && Vr(e, i)) ? r = r.filter((f) => f !== i) : o = s, i = Be(i);
2837
2862
  }
2838
2863
  return t.set(e, r), r;
2839
2864
  }
2840
- function Ki(e) {
2865
+ function Gi(e) {
2841
2866
  let {
2842
2867
  element: t,
2843
2868
  boundary: n,
2844
2869
  rootBoundary: r,
2845
2870
  strategy: o
2846
2871
  } = e;
2847
- const i = [...n === "clippingAncestors" ? Vt(t) ? [] : Xi(t, this._c) : [].concat(n), r], s = i[0], l = i.reduce((c, d) => {
2848
- const p = qn(t, d, o);
2872
+ const i = [...n === "clippingAncestors" ? Vt(t) ? [] : Ki(t, this._c) : [].concat(n), r], s = i[0], l = i.reduce((c, f) => {
2873
+ const p = qn(t, f, o);
2849
2874
  return c.top = ae(p.top, c.top), c.right = Le(p.right, c.right), c.bottom = Le(p.bottom, c.bottom), c.left = ae(p.left, c.left), c;
2850
2875
  }, qn(t, s, o));
2851
2876
  return {
@@ -2855,7 +2880,7 @@ function Ki(e) {
2855
2880
  y: l.top
2856
2881
  };
2857
2882
  }
2858
- function Gi(e) {
2883
+ function Zi(e) {
2859
2884
  const {
2860
2885
  width: t,
2861
2886
  height: n
@@ -2865,8 +2890,8 @@ function Gi(e) {
2865
2890
  height: n
2866
2891
  };
2867
2892
  }
2868
- function Zi(e, t, n) {
2869
- const r = Ce(t), o = Se(t), a = n === "fixed", i = Ue(e, !0, a, t);
2893
+ function qi(e, t, n) {
2894
+ const r = Ce(t), o = Se(t), a = n === "fixed", i = He(e, !0, a, t);
2870
2895
  let s = {
2871
2896
  scrollLeft: 0,
2872
2897
  scrollTop: 0
@@ -2874,22 +2899,22 @@ function Zi(e, t, n) {
2874
2899
  const l = ye(0);
2875
2900
  if (r || !r && !a)
2876
2901
  if ((it(t) !== "body" || bt(o)) && (s = $t(t)), r) {
2877
- const g = Ue(t, !0, a, t);
2902
+ const g = He(t, !0, a, t);
2878
2903
  l.x = g.x + t.clientLeft, l.y = g.y + t.clientTop;
2879
- } else o && (l.x = Rn(o));
2880
- const c = o && !r && !a ? Fr(o, s) : ye(0), d = i.left + s.scrollLeft - l.x - c.x, p = i.top + s.scrollTop - l.y - c.y;
2904
+ } else o && (l.x = In(o));
2905
+ const c = o && !r && !a ? Fr(o, s) : ye(0), f = i.left + s.scrollLeft - l.x - c.x, p = i.top + s.scrollTop - l.y - c.y;
2881
2906
  return {
2882
- x: d,
2907
+ x: f,
2883
2908
  y: p,
2884
2909
  width: i.width,
2885
2910
  height: i.height
2886
2911
  };
2887
2912
  }
2888
2913
  function qt(e) {
2889
- return fe(e).position === "static";
2914
+ return pe(e).position === "static";
2890
2915
  }
2891
2916
  function Qn(e, t) {
2892
- if (!Ce(e) || fe(e).position === "fixed")
2917
+ if (!Ce(e) || pe(e).position === "fixed")
2893
2918
  return null;
2894
2919
  if (t)
2895
2920
  return t(e);
@@ -2903,21 +2928,21 @@ function $r(e, t) {
2903
2928
  if (!Ce(e)) {
2904
2929
  let o = Be(e);
2905
2930
  for (; o && !nt(o); ) {
2906
- if (de(o) && !qt(o))
2931
+ if (fe(o) && !qt(o))
2907
2932
  return o;
2908
2933
  o = Be(o);
2909
2934
  }
2910
2935
  return n;
2911
2936
  }
2912
2937
  let r = Qn(e, t);
2913
- for (; r && zi(r) && qt(r); )
2938
+ for (; r && Fi(r) && qt(r); )
2914
2939
  r = Qn(r, t);
2915
- return r && nt(r) && qt(r) && !Tn(r) ? n : r || Fi(e) || n;
2940
+ return r && nt(r) && qt(r) && !Tn(r) ? n : r || Vi(e) || n;
2916
2941
  }
2917
- const qi = async function(e) {
2942
+ const Qi = async function(e) {
2918
2943
  const t = this.getOffsetParent || $r, n = this.getDimensions, r = await n(e.floating);
2919
2944
  return {
2920
- reference: Zi(e.reference, await t(e.floating), e.strategy),
2945
+ reference: qi(e.reference, await t(e.floating), e.strategy),
2921
2946
  floating: {
2922
2947
  x: 0,
2923
2948
  y: 0,
@@ -2926,25 +2951,25 @@ const qi = async function(e) {
2926
2951
  }
2927
2952
  };
2928
2953
  };
2929
- function Qi(e) {
2930
- return fe(e).direction === "rtl";
2954
+ function Ji(e) {
2955
+ return pe(e).direction === "rtl";
2931
2956
  }
2932
- const Ji = {
2933
- convertOffsetParentRelativeRectToViewportRelativeRect: Wi,
2957
+ const es = {
2958
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ui,
2934
2959
  getDocumentElement: Se,
2935
- getClippingRect: Ki,
2960
+ getClippingRect: Gi,
2936
2961
  getOffsetParent: $r,
2937
- getElementRects: qi,
2938
- getClientRects: Ui,
2939
- getDimensions: Gi,
2962
+ getElementRects: Qi,
2963
+ getClientRects: Hi,
2964
+ getDimensions: Zi,
2940
2965
  getScale: et,
2941
- isElement: de,
2942
- isRTL: Qi
2966
+ isElement: fe,
2967
+ isRTL: Ji
2943
2968
  };
2944
2969
  function Wr(e, t) {
2945
2970
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2946
2971
  }
2947
- function es(e, t) {
2972
+ function ts(e, t) {
2948
2973
  let n = null, r;
2949
2974
  const o = Se(e);
2950
2975
  function a() {
@@ -2954,15 +2979,15 @@ function es(e, t) {
2954
2979
  function i(s, l) {
2955
2980
  s === void 0 && (s = !1), l === void 0 && (l = 1), a();
2956
2981
  const c = e.getBoundingClientRect(), {
2957
- left: d,
2982
+ left: f,
2958
2983
  top: p,
2959
2984
  width: g,
2960
- height: v
2985
+ height: w
2961
2986
  } = c;
2962
- if (s || t(), !g || !v)
2987
+ if (s || t(), !g || !w)
2963
2988
  return;
2964
- const m = Ct(p), f = Ct(o.clientWidth - (d + g)), w = Ct(o.clientHeight - (p + v)), b = Ct(d), y = {
2965
- rootMargin: -m + "px " + -f + "px " + -w + "px " + -b + "px",
2989
+ const m = Ct(p), d = Ct(o.clientWidth - (f + g)), v = Ct(o.clientHeight - (p + w)), b = Ct(f), y = {
2990
+ rootMargin: -m + "px " + -d + "px " + -v + "px " + -b + "px",
2966
2991
  threshold: ae(0, Le(1, l)) || 1
2967
2992
  };
2968
2993
  let S = !0;
@@ -2990,7 +3015,7 @@ function es(e, t) {
2990
3015
  }
2991
3016
  return i(!0), a;
2992
3017
  }
2993
- function ts(e, t, n, r) {
3018
+ function ns(e, t, n, r) {
2994
3019
  r === void 0 && (r = {});
2995
3020
  const {
2996
3021
  ancestorScroll: o = !0,
@@ -2998,37 +3023,37 @@ function ts(e, t, n, r) {
2998
3023
  elementResize: i = typeof ResizeObserver == "function",
2999
3024
  layoutShift: s = typeof IntersectionObserver == "function",
3000
3025
  animationFrame: l = !1
3001
- } = r, c = Pn(e), d = o || a ? [...c ? mt(c) : [], ...mt(t)] : [];
3002
- d.forEach((b) => {
3026
+ } = r, c = Pn(e), f = o || a ? [...c ? mt(c) : [], ...mt(t)] : [];
3027
+ f.forEach((b) => {
3003
3028
  o && b.addEventListener("scroll", n, {
3004
3029
  passive: !0
3005
3030
  }), a && b.addEventListener("resize", n);
3006
3031
  });
3007
- const p = c && s ? es(c, n) : null;
3008
- let g = -1, v = null;
3009
- i && (v = new ResizeObserver((b) => {
3032
+ const p = c && s ? ts(c, n) : null;
3033
+ let g = -1, w = null;
3034
+ i && (w = new ResizeObserver((b) => {
3010
3035
  let [x] = b;
3011
- x && x.target === c && v && (v.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
3036
+ x && x.target === c && w && (w.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
3012
3037
  var y;
3013
- (y = v) == null || y.observe(t);
3038
+ (y = w) == null || y.observe(t);
3014
3039
  })), n();
3015
- }), c && !l && v.observe(c), v.observe(t));
3016
- let m, f = l ? Ue(e) : null;
3017
- l && w();
3018
- function w() {
3019
- const b = Ue(e);
3020
- f && !Wr(f, b) && n(), f = b, m = requestAnimationFrame(w);
3040
+ }), c && !l && w.observe(c), w.observe(t));
3041
+ let m, d = l ? He(e) : null;
3042
+ l && v();
3043
+ function v() {
3044
+ const b = He(e);
3045
+ d && !Wr(d, b) && n(), d = b, m = requestAnimationFrame(v);
3021
3046
  }
3022
3047
  return n(), () => {
3023
3048
  var b;
3024
- d.forEach((x) => {
3049
+ f.forEach((x) => {
3025
3050
  o && x.removeEventListener("scroll", n), a && x.removeEventListener("resize", n);
3026
- }), p == null || p(), (b = v) == null || b.disconnect(), v = null, l && cancelAnimationFrame(m);
3051
+ }), p == null || p(), (b = w) == null || b.disconnect(), w = null, l && cancelAnimationFrame(m);
3027
3052
  };
3028
3053
  }
3029
- const ns = Mi, rs = Li, os = _i, as = Bi, is = Ni, Jn = Ii, ss = Di, ls = (e, t, n) => {
3054
+ const rs = Li, os = Di, as = Ni, is = zi, ss = Oi, Jn = _i, ls = Bi, cs = (e, t, n) => {
3030
3055
  const r = /* @__PURE__ */ new Map(), o = {
3031
- platform: Ji,
3056
+ platform: es,
3032
3057
  ...n
3033
3058
  }, a = {
3034
3059
  ...o.platform,
@@ -3083,7 +3108,7 @@ function Qt(e) {
3083
3108
  t.current = e;
3084
3109
  }), t;
3085
3110
  }
3086
- function cs(e) {
3111
+ function us(e) {
3087
3112
  e === void 0 && (e = {});
3088
3113
  const {
3089
3114
  placement: t = "bottom",
@@ -3097,28 +3122,28 @@ function cs(e) {
3097
3122
  transform: s = !0,
3098
3123
  whileElementsMounted: l,
3099
3124
  open: c
3100
- } = e, [d, p] = u.useState({
3125
+ } = e, [f, p] = u.useState({
3101
3126
  x: 0,
3102
3127
  y: 0,
3103
3128
  strategy: n,
3104
3129
  placement: t,
3105
3130
  middlewareData: {},
3106
3131
  isPositioned: !1
3107
- }), [g, v] = u.useState(r);
3108
- Lt(g, r) || v(r);
3109
- const [m, f] = u.useState(null), [w, b] = u.useState(null), x = u.useCallback((I) => {
3110
- I !== T.current && (T.current = I, f(I));
3111
- }, []), y = u.useCallback((I) => {
3112
- I !== C.current && (C.current = I, b(I));
3113
- }, []), S = a || m, E = i || w, T = u.useRef(null), C = u.useRef(null), R = u.useRef(d), O = l != null, M = Qt(l), V = Qt(o), $ = Qt(c), D = u.useCallback(() => {
3132
+ }), [g, w] = u.useState(r);
3133
+ Lt(g, r) || w(r);
3134
+ const [m, d] = u.useState(null), [v, b] = u.useState(null), x = u.useCallback((R) => {
3135
+ R !== T.current && (T.current = R, d(R));
3136
+ }, []), y = u.useCallback((R) => {
3137
+ R !== C.current && (C.current = R, b(R));
3138
+ }, []), S = a || m, E = i || v, T = u.useRef(null), C = u.useRef(null), I = u.useRef(f), O = l != null, M = Qt(l), V = Qt(o), $ = Qt(c), D = u.useCallback(() => {
3114
3139
  if (!T.current || !C.current)
3115
3140
  return;
3116
- const I = {
3141
+ const R = {
3117
3142
  placement: t,
3118
3143
  strategy: n,
3119
3144
  middleware: g
3120
3145
  };
3121
- V.current && (I.platform = V.current), ls(T.current, C.current, I).then((W) => {
3146
+ V.current && (R.platform = V.current), cs(T.current, C.current, R).then((W) => {
3122
3147
  const ee = {
3123
3148
  ...W,
3124
3149
  // The floating element's position may be recomputed while it's closed
@@ -3127,14 +3152,14 @@ function cs(e) {
3127
3152
  // setting it to `true` when `open === false` (must be specified).
3128
3153
  isPositioned: $.current !== !1
3129
3154
  };
3130
- N.current && !Lt(R.current, ee) && (R.current = ee, u.flushSync(() => {
3155
+ N.current && !Lt(I.current, ee) && (I.current = ee, u.flushSync(() => {
3131
3156
  p(ee);
3132
3157
  }));
3133
3158
  });
3134
3159
  }, [g, t, n, V, $]);
3135
3160
  Pt(() => {
3136
- c === !1 && R.current.isPositioned && (R.current.isPositioned = !1, p((I) => ({
3137
- ...I,
3161
+ c === !1 && I.current.isPositioned && (I.current.isPositioned = !1, p((R) => ({
3162
+ ...R,
3138
3163
  isPositioned: !1
3139
3164
  })));
3140
3165
  }, [c]);
@@ -3157,16 +3182,16 @@ function cs(e) {
3157
3182
  reference: S,
3158
3183
  floating: E
3159
3184
  }), [S, E]), L = u.useMemo(() => {
3160
- const I = {
3185
+ const R = {
3161
3186
  position: n,
3162
3187
  left: 0,
3163
3188
  top: 0
3164
3189
  };
3165
3190
  if (!_.floating)
3166
- return I;
3167
- const W = er(_.floating, d.x), ee = er(_.floating, d.y);
3191
+ return R;
3192
+ const W = er(_.floating, f.x), ee = er(_.floating, f.y);
3168
3193
  return s ? {
3169
- ...I,
3194
+ ...R,
3170
3195
  transform: "translate(" + W + "px, " + ee + "px)",
3171
3196
  ...Ur(_.floating) >= 1.5 && {
3172
3197
  willChange: "transform"
@@ -3176,16 +3201,16 @@ function cs(e) {
3176
3201
  left: W,
3177
3202
  top: ee
3178
3203
  };
3179
- }, [n, s, _.floating, d.x, d.y]);
3204
+ }, [n, s, _.floating, f.x, f.y]);
3180
3205
  return u.useMemo(() => ({
3181
- ...d,
3206
+ ...f,
3182
3207
  update: D,
3183
3208
  refs: X,
3184
3209
  elements: _,
3185
3210
  floatingStyles: L
3186
- }), [d, D, X, _, L]);
3211
+ }), [f, D, X, _, L]);
3187
3212
  }
3188
- const us = (e) => {
3213
+ const ds = (e) => {
3189
3214
  function t(n) {
3190
3215
  return {}.hasOwnProperty.call(n, "current");
3191
3216
  }
@@ -3206,17 +3231,14 @@ const us = (e) => {
3206
3231
  }).fn(n) : {};
3207
3232
  }
3208
3233
  };
3209
- }, ds = (e, t) => ({
3210
- ...ns(e),
3211
- options: [e, t]
3212
- }), fs = (e, t) => ({
3234
+ }, fs = (e, t) => ({
3213
3235
  ...rs(e),
3214
3236
  options: [e, t]
3215
3237
  }), ps = (e, t) => ({
3216
- ...ss(e),
3238
+ ...os(e),
3217
3239
  options: [e, t]
3218
3240
  }), hs = (e, t) => ({
3219
- ...os(e),
3241
+ ...ls(e),
3220
3242
  options: [e, t]
3221
3243
  }), vs = (e, t) => ({
3222
3244
  ...as(e),
@@ -3225,10 +3247,13 @@ const us = (e) => {
3225
3247
  ...is(e),
3226
3248
  options: [e, t]
3227
3249
  }), ms = (e, t) => ({
3228
- ...us(e),
3250
+ ...ss(e),
3251
+ options: [e, t]
3252
+ }), ws = (e, t) => ({
3253
+ ...ds(e),
3229
3254
  options: [e, t]
3230
3255
  });
3231
- var ws = "Arrow", Hr = u.forwardRef((e, t) => {
3256
+ var bs = "Arrow", Hr = u.forwardRef((e, t) => {
3232
3257
  const { children: n, width: r = 10, height: o = 5, ...a } = e;
3233
3258
  return /* @__PURE__ */ k(
3234
3259
  K.svg,
@@ -3243,9 +3268,9 @@ var ws = "Arrow", Hr = u.forwardRef((e, t) => {
3243
3268
  }
3244
3269
  );
3245
3270
  });
3246
- Hr.displayName = ws;
3247
- var bs = Hr;
3248
- function xs(e) {
3271
+ Hr.displayName = bs;
3272
+ var xs = Hr;
3273
+ function ys(e) {
3249
3274
  const [t, n] = u.useState(void 0);
3250
3275
  return te(() => {
3251
3276
  if (e) {
@@ -3267,11 +3292,11 @@ function xs(e) {
3267
3292
  n(void 0);
3268
3293
  }, [e]), t;
3269
3294
  }
3270
- var In = "Popper", [jr, Yr] = yn(In), [ys, Xr] = jr(In), Kr = (e) => {
3295
+ var Rn = "Popper", [jr, Yr] = yn(Rn), [Cs, Xr] = jr(Rn), Kr = (e) => {
3271
3296
  const { __scopePopper: t, children: n } = e, [r, o] = u.useState(null);
3272
- return /* @__PURE__ */ k(ys, { scope: t, anchor: r, onAnchorChange: o, children: n });
3297
+ return /* @__PURE__ */ k(Cs, { scope: t, anchor: r, onAnchorChange: o, children: n });
3273
3298
  };
3274
- Kr.displayName = In;
3299
+ Kr.displayName = Rn;
3275
3300
  var Gr = "PopperAnchor", Zr = u.forwardRef(
3276
3301
  (e, t) => {
3277
3302
  const { __scopePopper: n, virtualRef: r, ...o } = e, a = Xr(Gr, n), i = u.useRef(null), s = Z(t, i);
@@ -3281,7 +3306,7 @@ var Gr = "PopperAnchor", Zr = u.forwardRef(
3281
3306
  }
3282
3307
  );
3283
3308
  Zr.displayName = Gr;
3284
- var _n = "PopperContent", [Cs, Ss] = jr(_n), qr = u.forwardRef(
3309
+ var _n = "PopperContent", [Ss, Es] = jr(_n), qr = u.forwardRef(
3285
3310
  (e, t) => {
3286
3311
  var A, U, Q, F, B, z;
3287
3312
  const {
@@ -3293,52 +3318,52 @@ var _n = "PopperContent", [Cs, Ss] = jr(_n), qr = u.forwardRef(
3293
3318
  arrowPadding: s = 0,
3294
3319
  avoidCollisions: l = !0,
3295
3320
  collisionBoundary: c = [],
3296
- collisionPadding: d = 0,
3321
+ collisionPadding: f = 0,
3297
3322
  sticky: p = "partial",
3298
3323
  hideWhenDetached: g = !1,
3299
- updatePositionStrategy: v = "optimized",
3324
+ updatePositionStrategy: w = "optimized",
3300
3325
  onPlaced: m,
3301
- ...f
3302
- } = e, w = Xr(_n, n), [b, x] = u.useState(null), y = Z(t, (oe) => x(oe)), [S, E] = u.useState(null), T = xs(S), C = (T == null ? void 0 : T.width) ?? 0, R = (T == null ? void 0 : T.height) ?? 0, O = r + (a !== "center" ? "-" + a : ""), M = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, V = Array.isArray(c) ? c : [c], $ = V.length > 0, D = {
3326
+ ...d
3327
+ } = e, v = Xr(_n, n), [b, x] = u.useState(null), y = Z(t, (oe) => x(oe)), [S, E] = u.useState(null), T = ys(S), C = (T == null ? void 0 : T.width) ?? 0, I = (T == null ? void 0 : T.height) ?? 0, O = r + (a !== "center" ? "-" + a : ""), M = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, V = Array.isArray(c) ? c : [c], $ = V.length > 0, D = {
3303
3328
  padding: M,
3304
- boundary: V.filter(ks),
3329
+ boundary: V.filter(Ts),
3305
3330
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
3306
3331
  altBoundary: $
3307
- }, { refs: N, floatingStyles: X, placement: _, isPositioned: L, middlewareData: I } = cs({
3332
+ }, { refs: N, floatingStyles: X, placement: _, isPositioned: L, middlewareData: R } = us({
3308
3333
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
3309
3334
  strategy: "fixed",
3310
3335
  placement: O,
3311
- whileElementsMounted: (...oe) => ts(...oe, {
3312
- animationFrame: v === "always"
3336
+ whileElementsMounted: (...oe) => ns(...oe, {
3337
+ animationFrame: w === "always"
3313
3338
  }),
3314
3339
  elements: {
3315
- reference: w.anchor
3340
+ reference: v.anchor
3316
3341
  },
3317
3342
  middleware: [
3318
- ds({ mainAxis: o + R, alignmentAxis: i }),
3319
- l && fs({
3343
+ fs({ mainAxis: o + I, alignmentAxis: i }),
3344
+ l && ps({
3320
3345
  mainAxis: !0,
3321
3346
  crossAxis: !1,
3322
- limiter: p === "partial" ? ps() : void 0,
3347
+ limiter: p === "partial" ? hs() : void 0,
3323
3348
  ...D
3324
3349
  }),
3325
- l && hs({ ...D }),
3326
- vs({
3350
+ l && vs({ ...D }),
3351
+ gs({
3327
3352
  ...D,
3328
- apply: ({ elements: oe, rects: ve, availableWidth: ut, availableHeight: dt }) => {
3329
- const { width: ft, height: Uo } = ve.reference, xt = oe.floating.style;
3353
+ apply: ({ elements: oe, rects: ge, availableWidth: ut, availableHeight: dt }) => {
3354
+ const { width: ft, height: Uo } = ge.reference, xt = oe.floating.style;
3330
3355
  xt.setProperty("--radix-popper-available-width", `${ut}px`), xt.setProperty("--radix-popper-available-height", `${dt}px`), xt.setProperty("--radix-popper-anchor-width", `${ft}px`), xt.setProperty("--radix-popper-anchor-height", `${Uo}px`);
3331
3356
  }
3332
3357
  }),
3333
- S && ms({ element: S, padding: s }),
3334
- Ts({ arrowWidth: C, arrowHeight: R }),
3335
- g && gs({ strategy: "referenceHidden", ...D })
3358
+ S && ws({ element: S, padding: s }),
3359
+ As({ arrowWidth: C, arrowHeight: I }),
3360
+ g && ms({ strategy: "referenceHidden", ...D })
3336
3361
  ]
3337
- }), [W, ee] = eo(_), Ee = We(m);
3362
+ }), [W, ee] = eo(_), Ee = Ue(m);
3338
3363
  te(() => {
3339
3364
  L && (Ee == null || Ee());
3340
3365
  }, [L, Ee]);
3341
- const lt = (A = I.arrow) == null ? void 0 : A.x, ct = (U = I.arrow) == null ? void 0 : U.y, Ie = ((Q = I.arrow) == null ? void 0 : Q.centerOffset) !== 0, [Ye, $e] = u.useState();
3366
+ const lt = (A = R.arrow) == null ? void 0 : A.x, ct = (U = R.arrow) == null ? void 0 : U.y, Re = ((Q = R.arrow) == null ? void 0 : Q.centerOffset) !== 0, [Xe, $e] = u.useState();
3342
3367
  return te(() => {
3343
3368
  b && $e(window.getComputedStyle(b).zIndex);
3344
3369
  }, [b]), /* @__PURE__ */ k(
@@ -3351,38 +3376,38 @@ var _n = "PopperContent", [Cs, Ss] = jr(_n), qr = u.forwardRef(
3351
3376
  transform: L ? X.transform : "translate(0, -200%)",
3352
3377
  // keep off the page when measuring
3353
3378
  minWidth: "max-content",
3354
- zIndex: Ye,
3379
+ zIndex: Xe,
3355
3380
  "--radix-popper-transform-origin": [
3356
- (F = I.transformOrigin) == null ? void 0 : F.x,
3357
- (B = I.transformOrigin) == null ? void 0 : B.y
3381
+ (F = R.transformOrigin) == null ? void 0 : F.x,
3382
+ (B = R.transformOrigin) == null ? void 0 : B.y
3358
3383
  ].join(" "),
3359
3384
  // hide the content if using the hide middleware and should be hidden
3360
3385
  // set visibility to hidden and disable pointer events so the UI behaves
3361
3386
  // as if the PopperContent isn't there at all
3362
- ...((z = I.hide) == null ? void 0 : z.referenceHidden) && {
3387
+ ...((z = R.hide) == null ? void 0 : z.referenceHidden) && {
3363
3388
  visibility: "hidden",
3364
3389
  pointerEvents: "none"
3365
3390
  }
3366
3391
  },
3367
3392
  dir: e.dir,
3368
3393
  children: /* @__PURE__ */ k(
3369
- Cs,
3394
+ Ss,
3370
3395
  {
3371
3396
  scope: n,
3372
3397
  placedSide: W,
3373
3398
  onArrowChange: E,
3374
3399
  arrowX: lt,
3375
3400
  arrowY: ct,
3376
- shouldHideArrow: Ie,
3401
+ shouldHideArrow: Re,
3377
3402
  children: /* @__PURE__ */ k(
3378
3403
  K.div,
3379
3404
  {
3380
3405
  "data-side": W,
3381
3406
  "data-align": ee,
3382
- ...f,
3407
+ ...d,
3383
3408
  ref: y,
3384
3409
  style: {
3385
- ...f.style,
3410
+ ...d.style,
3386
3411
  // if the PopperContent hasn't been placed yet (not all measurements done)
3387
3412
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
3388
3413
  animation: L ? void 0 : "none"
@@ -3396,13 +3421,13 @@ var _n = "PopperContent", [Cs, Ss] = jr(_n), qr = u.forwardRef(
3396
3421
  }
3397
3422
  );
3398
3423
  qr.displayName = _n;
3399
- var Qr = "PopperArrow", Es = {
3424
+ var Qr = "PopperArrow", ks = {
3400
3425
  top: "bottom",
3401
3426
  right: "left",
3402
3427
  bottom: "top",
3403
3428
  left: "right"
3404
3429
  }, Jr = u.forwardRef(function(t, n) {
3405
- const { __scopePopper: r, ...o } = t, a = Ss(Qr, r), i = Es[a.placedSide];
3430
+ const { __scopePopper: r, ...o } = t, a = Es(Qr, r), i = ks[a.placedSide];
3406
3431
  return (
3407
3432
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
3408
3433
  // doesn't report size as we'd expect on SVG elements.
@@ -3431,7 +3456,7 @@ var Qr = "PopperArrow", Es = {
3431
3456
  visibility: a.shouldHideArrow ? "hidden" : void 0
3432
3457
  },
3433
3458
  children: /* @__PURE__ */ k(
3434
- bs,
3459
+ xs,
3435
3460
  {
3436
3461
  ...o,
3437
3462
  ref: n,
@@ -3447,32 +3472,32 @@ var Qr = "PopperArrow", Es = {
3447
3472
  );
3448
3473
  });
3449
3474
  Jr.displayName = Qr;
3450
- function ks(e) {
3475
+ function Ts(e) {
3451
3476
  return e !== null;
3452
3477
  }
3453
- var Ts = (e) => ({
3478
+ var As = (e) => ({
3454
3479
  name: "transformOrigin",
3455
3480
  options: e,
3456
3481
  fn(t) {
3457
- var w, b, x;
3458
- const { placement: n, rects: r, middlewareData: o } = t, i = ((w = o.arrow) == null ? void 0 : w.centerOffset) !== 0, s = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [c, d] = eo(n), p = { start: "0%", center: "50%", end: "100%" }[d], g = (((b = o.arrow) == null ? void 0 : b.x) ?? 0) + s / 2, v = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + l / 2;
3459
- let m = "", f = "";
3460
- return c === "bottom" ? (m = i ? p : `${g}px`, f = `${-l}px`) : c === "top" ? (m = i ? p : `${g}px`, f = `${r.floating.height + l}px`) : c === "right" ? (m = `${-l}px`, f = i ? p : `${v}px`) : c === "left" && (m = `${r.floating.width + l}px`, f = i ? p : `${v}px`), { data: { x: m, y: f } };
3482
+ var v, b, x;
3483
+ const { placement: n, rects: r, middlewareData: o } = t, i = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, s = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [c, f] = eo(n), p = { start: "0%", center: "50%", end: "100%" }[f], g = (((b = o.arrow) == null ? void 0 : b.x) ?? 0) + s / 2, w = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + l / 2;
3484
+ let m = "", d = "";
3485
+ return c === "bottom" ? (m = i ? p : `${g}px`, d = `${-l}px`) : c === "top" ? (m = i ? p : `${g}px`, d = `${r.floating.height + l}px`) : c === "right" ? (m = `${-l}px`, d = i ? p : `${w}px`) : c === "left" && (m = `${r.floating.width + l}px`, d = i ? p : `${w}px`), { data: { x: m, y: d } };
3461
3486
  }
3462
3487
  });
3463
3488
  function eo(e) {
3464
3489
  const [t, n = "center"] = e.split("-");
3465
3490
  return [t, n];
3466
3491
  }
3467
- var As = Kr, Ps = Zr, Rs = qr, Is = Jr, _s = "Portal", to = u.forwardRef((e, t) => {
3492
+ var Ps = Kr, Is = Zr, Rs = qr, _s = Jr, Ns = "Portal", to = u.forwardRef((e, t) => {
3468
3493
  var s;
3469
3494
  const { container: n, ...r } = e, [o, a] = u.useState(!1);
3470
3495
  te(() => a(!0), []);
3471
3496
  const i = n || o && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
3472
3497
  return i ? _e.createPortal(/* @__PURE__ */ k(K.div, { ...r, ref: t }), i) : null;
3473
3498
  });
3474
- to.displayName = _s;
3475
- var Ns = u[" useInsertionEffect ".trim().toString()] || te;
3499
+ to.displayName = Ns;
3500
+ var Os = u[" useInsertionEffect ".trim().toString()] || te;
3476
3501
  function tr({
3477
3502
  prop: e,
3478
3503
  defaultProp: t,
@@ -3480,48 +3505,48 @@ function tr({
3480
3505
  },
3481
3506
  caller: r
3482
3507
  }) {
3483
- const [o, a, i] = Os({
3508
+ const [o, a, i] = Ms({
3484
3509
  defaultProp: t,
3485
3510
  onChange: n
3486
3511
  }), s = e !== void 0, l = s ? e : o;
3487
3512
  {
3488
- const d = u.useRef(e !== void 0);
3513
+ const f = u.useRef(e !== void 0);
3489
3514
  u.useEffect(() => {
3490
- const p = d.current;
3515
+ const p = f.current;
3491
3516
  p !== s && console.warn(
3492
3517
  `${r} is changing from ${p ? "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.`
3493
- ), d.current = s;
3518
+ ), f.current = s;
3494
3519
  }, [s, r]);
3495
3520
  }
3496
3521
  const c = u.useCallback(
3497
- (d) => {
3522
+ (f) => {
3498
3523
  var p;
3499
3524
  if (s) {
3500
- const g = Ms(d) ? d(e) : d;
3525
+ const g = Ls(f) ? f(e) : f;
3501
3526
  g !== e && ((p = i.current) == null || p.call(i, g));
3502
3527
  } else
3503
- a(d);
3528
+ a(f);
3504
3529
  },
3505
3530
  [s, e, a, i]
3506
3531
  );
3507
3532
  return [l, c];
3508
3533
  }
3509
- function Os({
3534
+ function Ms({
3510
3535
  defaultProp: e,
3511
3536
  onChange: t
3512
3537
  }) {
3513
3538
  const [n, r] = u.useState(e), o = u.useRef(n), a = u.useRef(t);
3514
- return Ns(() => {
3539
+ return Os(() => {
3515
3540
  a.current = t;
3516
3541
  }, [t]), u.useEffect(() => {
3517
3542
  var i;
3518
3543
  o.current !== n && ((i = a.current) == null || i.call(a, n), o.current = n);
3519
3544
  }, [n, o]), [n, r, a];
3520
3545
  }
3521
- function Ms(e) {
3546
+ function Ls(e) {
3522
3547
  return typeof e == "function";
3523
3548
  }
3524
- function Ls(e) {
3549
+ function Ds(e) {
3525
3550
  const t = u.useRef({ value: e, previous: e });
3526
3551
  return u.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
3527
3552
  }
@@ -3537,7 +3562,7 @@ var no = Object.freeze({
3537
3562
  clip: "rect(0, 0, 0, 0)",
3538
3563
  whiteSpace: "nowrap",
3539
3564
  wordWrap: "normal"
3540
- }), Ds = "VisuallyHidden", Bs = u.forwardRef(
3565
+ }), Bs = "VisuallyHidden", zs = u.forwardRef(
3541
3566
  (e, t) => /* @__PURE__ */ k(
3542
3567
  K.span,
3543
3568
  {
@@ -3547,15 +3572,15 @@ var no = Object.freeze({
3547
3572
  }
3548
3573
  )
3549
3574
  );
3550
- Bs.displayName = Ds;
3551
- var zs = function(e) {
3575
+ zs.displayName = Bs;
3576
+ var Fs = function(e) {
3552
3577
  if (typeof document > "u")
3553
3578
  return null;
3554
3579
  var t = Array.isArray(e) ? e[0] : e;
3555
3580
  return t.ownerDocument.body;
3556
- }, Xe = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {}, Jt = 0, ro = function(e) {
3581
+ }, Ke = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {}, Jt = 0, ro = function(e) {
3557
3582
  return e && (e.host || ro(e.parentNode));
3558
- }, Fs = function(e, t) {
3583
+ }, Vs = function(e, t) {
3559
3584
  return t.map(function(n) {
3560
3585
  if (e.contains(n))
3561
3586
  return n;
@@ -3564,46 +3589,46 @@ var zs = function(e) {
3564
3589
  }).filter(function(n) {
3565
3590
  return !!n;
3566
3591
  });
3567
- }, Vs = function(e, t, n, r) {
3568
- var o = Fs(t, Array.isArray(e) ? e : [e]);
3592
+ }, $s = function(e, t, n, r) {
3593
+ var o = Vs(t, Array.isArray(e) ? e : [e]);
3569
3594
  Et[n] || (Et[n] = /* @__PURE__ */ new WeakMap());
3570
3595
  var a = Et[n], i = [], s = /* @__PURE__ */ new Set(), l = new Set(o), c = function(p) {
3571
3596
  !p || s.has(p) || (s.add(p), c(p.parentNode));
3572
3597
  };
3573
3598
  o.forEach(c);
3574
- var d = function(p) {
3599
+ var f = function(p) {
3575
3600
  !p || l.has(p) || Array.prototype.forEach.call(p.children, function(g) {
3576
3601
  if (s.has(g))
3577
- d(g);
3602
+ f(g);
3578
3603
  else
3579
3604
  try {
3580
- var v = g.getAttribute(r), m = v !== null && v !== "false", f = (Xe.get(g) || 0) + 1, w = (a.get(g) || 0) + 1;
3581
- Xe.set(g, f), a.set(g, w), i.push(g), f === 1 && m && St.set(g, !0), w === 1 && g.setAttribute(n, "true"), m || g.setAttribute(r, "true");
3605
+ var w = g.getAttribute(r), m = w !== null && w !== "false", d = (Ke.get(g) || 0) + 1, v = (a.get(g) || 0) + 1;
3606
+ Ke.set(g, d), a.set(g, v), i.push(g), d === 1 && m && St.set(g, !0), v === 1 && g.setAttribute(n, "true"), m || g.setAttribute(r, "true");
3582
3607
  } catch (b) {
3583
3608
  console.error("aria-hidden: cannot operate on ", g, b);
3584
3609
  }
3585
3610
  });
3586
3611
  };
3587
- return d(t), s.clear(), Jt++, function() {
3612
+ return f(t), s.clear(), Jt++, function() {
3588
3613
  i.forEach(function(p) {
3589
- var g = Xe.get(p) - 1, v = a.get(p) - 1;
3590
- Xe.set(p, g), a.set(p, v), g || (St.has(p) || p.removeAttribute(r), St.delete(p)), v || p.removeAttribute(n);
3591
- }), Jt--, Jt || (Xe = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {});
3614
+ var g = Ke.get(p) - 1, w = a.get(p) - 1;
3615
+ Ke.set(p, g), a.set(p, w), g || (St.has(p) || p.removeAttribute(r), St.delete(p)), w || p.removeAttribute(n);
3616
+ }), Jt--, Jt || (Ke = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {});
3592
3617
  };
3593
- }, $s = function(e, t, n) {
3618
+ }, Ws = function(e, t, n) {
3594
3619
  n === void 0 && (n = "data-aria-hidden");
3595
- var r = Array.from(Array.isArray(e) ? e : [e]), o = zs(e);
3596
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Vs(r, o, n, "aria-hidden")) : function() {
3620
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = Fs(e);
3621
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), $s(r, o, n, "aria-hidden")) : function() {
3597
3622
  return null;
3598
3623
  };
3599
- }, me = function() {
3600
- return me = Object.assign || function(t) {
3624
+ }, we = function() {
3625
+ return we = Object.assign || function(t) {
3601
3626
  for (var n, r = 1, o = arguments.length; r < o; r++) {
3602
3627
  n = arguments[r];
3603
3628
  for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
3604
3629
  }
3605
3630
  return t;
3606
- }, me.apply(this, arguments);
3631
+ }, we.apply(this, arguments);
3607
3632
  };
3608
3633
  function oo(e, t) {
3609
3634
  var n = {};
@@ -3613,17 +3638,17 @@ function oo(e, t) {
3613
3638
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
3614
3639
  return n;
3615
3640
  }
3616
- function Ws(e, t, n) {
3641
+ function Us(e, t, n) {
3617
3642
  if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
3618
3643
  (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
3619
3644
  return e.concat(a || Array.prototype.slice.call(t));
3620
3645
  }
3621
- var Rt = "right-scroll-bar-position", It = "width-before-scroll-bar", Us = "with-scroll-bars-hidden", Hs = "--removed-body-scroll-bar-size";
3646
+ var It = "right-scroll-bar-position", Rt = "width-before-scroll-bar", Hs = "with-scroll-bars-hidden", js = "--removed-body-scroll-bar-size";
3622
3647
  function en(e, t) {
3623
3648
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
3624
3649
  }
3625
- function js(e, t) {
3626
- var n = be(function() {
3650
+ function Ys(e, t) {
3651
+ var n = ke(function() {
3627
3652
  return {
3628
3653
  // value
3629
3654
  value: e,
@@ -3643,14 +3668,14 @@ function js(e, t) {
3643
3668
  })[0];
3644
3669
  return n.callback = t, n.facade;
3645
3670
  }
3646
- var Ys = typeof window < "u" ? u.useLayoutEffect : u.useEffect, nr = /* @__PURE__ */ new WeakMap();
3647
- function Xs(e, t) {
3648
- var n = js(null, function(r) {
3671
+ var Xs = typeof window < "u" ? u.useLayoutEffect : u.useEffect, nr = /* @__PURE__ */ new WeakMap();
3672
+ function Ks(e, t) {
3673
+ var n = Ys(null, function(r) {
3649
3674
  return e.forEach(function(o) {
3650
3675
  return en(o, r);
3651
3676
  });
3652
3677
  });
3653
- return Ys(function() {
3678
+ return Xs(function() {
3654
3679
  var r = nr.get(n);
3655
3680
  if (r) {
3656
3681
  var o = new Set(r), a = new Set(e), i = n.current;
@@ -3663,11 +3688,11 @@ function Xs(e, t) {
3663
3688
  nr.set(n, e);
3664
3689
  }, [e]), n;
3665
3690
  }
3666
- function Ks(e) {
3691
+ function Gs(e) {
3667
3692
  return e;
3668
3693
  }
3669
- function Gs(e, t) {
3670
- t === void 0 && (t = Ks);
3694
+ function Zs(e, t) {
3695
+ t === void 0 && (t = Gs);
3671
3696
  var n = [], r = !1, o = {
3672
3697
  read: function() {
3673
3698
  if (r)
@@ -3704,27 +3729,27 @@ function Gs(e, t) {
3704
3729
  n = [], s.forEach(a), i = n;
3705
3730
  }
3706
3731
  var l = function() {
3707
- var d = i;
3708
- i = [], d.forEach(a);
3732
+ var f = i;
3733
+ i = [], f.forEach(a);
3709
3734
  }, c = function() {
3710
3735
  return Promise.resolve().then(l);
3711
3736
  };
3712
3737
  c(), n = {
3713
- push: function(d) {
3714
- i.push(d), c();
3738
+ push: function(f) {
3739
+ i.push(f), c();
3715
3740
  },
3716
- filter: function(d) {
3717
- return i = i.filter(d), n;
3741
+ filter: function(f) {
3742
+ return i = i.filter(f), n;
3718
3743
  }
3719
3744
  };
3720
3745
  }
3721
3746
  };
3722
3747
  return o;
3723
3748
  }
3724
- function Zs(e) {
3749
+ function qs(e) {
3725
3750
  e === void 0 && (e = {});
3726
- var t = Gs(null);
3727
- return t.options = me({ async: !0, ssr: !1 }, e), t;
3751
+ var t = Zs(null);
3752
+ return t.options = we({ async: !0, ssr: !1 }, e), t;
3728
3753
  }
3729
3754
  var ao = function(e) {
3730
3755
  var t = e.sideCar, n = oo(e, ["sideCar"]);
@@ -3733,24 +3758,24 @@ var ao = function(e) {
3733
3758
  var r = t.read();
3734
3759
  if (!r)
3735
3760
  throw new Error("Sidecar medium not found");
3736
- return u.createElement(r, me({}, n));
3761
+ return u.createElement(r, we({}, n));
3737
3762
  };
3738
3763
  ao.isSideCarExport = !0;
3739
- function qs(e, t) {
3764
+ function Qs(e, t) {
3740
3765
  return e.useMedium(t), ao;
3741
3766
  }
3742
- var io = Zs(), tn = function() {
3767
+ var io = qs(), tn = function() {
3743
3768
  }, Wt = u.forwardRef(function(e, t) {
3744
3769
  var n = u.useRef(null), r = u.useState({
3745
3770
  onScrollCapture: tn,
3746
3771
  onWheelCapture: tn,
3747
3772
  onTouchMoveCapture: tn
3748
- }), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, d = e.enabled, p = e.shards, g = e.sideCar, v = e.noIsolation, m = e.inert, f = e.allowPinchZoom, w = e.as, b = w === void 0 ? "div" : w, x = e.gapMode, y = oo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = g, E = Xs([n, t]), T = me(me({}, y), o);
3773
+ }), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, w = e.noIsolation, m = e.inert, d = e.allowPinchZoom, v = e.as, b = v === void 0 ? "div" : v, x = e.gapMode, y = oo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = g, E = Ks([n, t]), T = we(we({}, y), o);
3749
3774
  return u.createElement(
3750
3775
  u.Fragment,
3751
3776
  null,
3752
- d && u.createElement(S, { sideCar: io, removeScrollBar: c, shards: p, noIsolation: v, inert: m, setCallbacks: a, allowPinchZoom: !!f, lockRef: n, gapMode: x }),
3753
- i ? u.cloneElement(u.Children.only(s), me(me({}, T), { ref: E })) : u.createElement(b, me({}, T, { className: l, ref: E }), s)
3777
+ f && u.createElement(S, { sideCar: io, removeScrollBar: c, shards: p, noIsolation: w, inert: m, setCallbacks: a, allowPinchZoom: !!d, lockRef: n, gapMode: x }),
3778
+ i ? u.cloneElement(u.Children.only(s), we(we({}, T), { ref: E })) : u.createElement(b, we({}, T, { className: l, ref: E }), s)
3754
3779
  );
3755
3780
  });
3756
3781
  Wt.defaultProps = {
@@ -3759,40 +3784,40 @@ Wt.defaultProps = {
3759
3784
  inert: !1
3760
3785
  };
3761
3786
  Wt.classNames = {
3762
- fullWidth: It,
3763
- zeroRight: Rt
3787
+ fullWidth: Rt,
3788
+ zeroRight: It
3764
3789
  };
3765
- var Qs = function() {
3790
+ var Js = function() {
3766
3791
  if (typeof __webpack_nonce__ < "u")
3767
3792
  return __webpack_nonce__;
3768
3793
  };
3769
- function Js() {
3794
+ function el() {
3770
3795
  if (!document)
3771
3796
  return null;
3772
3797
  var e = document.createElement("style");
3773
3798
  e.type = "text/css";
3774
- var t = Qs();
3799
+ var t = Js();
3775
3800
  return t && e.setAttribute("nonce", t), e;
3776
3801
  }
3777
- function el(e, t) {
3802
+ function tl(e, t) {
3778
3803
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
3779
3804
  }
3780
- function tl(e) {
3805
+ function nl(e) {
3781
3806
  var t = document.head || document.getElementsByTagName("head")[0];
3782
3807
  t.appendChild(e);
3783
3808
  }
3784
- var nl = function() {
3809
+ var rl = function() {
3785
3810
  var e = 0, t = null;
3786
3811
  return {
3787
3812
  add: function(n) {
3788
- e == 0 && (t = Js()) && (el(t, n), tl(t)), e++;
3813
+ e == 0 && (t = el()) && (tl(t, n), nl(t)), e++;
3789
3814
  },
3790
3815
  remove: function() {
3791
3816
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
3792
3817
  }
3793
3818
  };
3794
- }, rl = function() {
3795
- var e = nl();
3819
+ }, ol = function() {
3820
+ var e = rl();
3796
3821
  return function(t, n) {
3797
3822
  u.useEffect(function() {
3798
3823
  return e.add(t), function() {
@@ -3801,35 +3826,35 @@ var nl = function() {
3801
3826
  }, [t && n]);
3802
3827
  };
3803
3828
  }, so = function() {
3804
- var e = rl(), t = function(n) {
3829
+ var e = ol(), t = function(n) {
3805
3830
  var r = n.styles, o = n.dynamic;
3806
3831
  return e(r, o), null;
3807
3832
  };
3808
3833
  return t;
3809
- }, ol = {
3834
+ }, al = {
3810
3835
  left: 0,
3811
3836
  top: 0,
3812
3837
  right: 0,
3813
3838
  gap: 0
3814
3839
  }, nn = function(e) {
3815
3840
  return parseInt(e || "", 10) || 0;
3816
- }, al = function(e) {
3841
+ }, il = function(e) {
3817
3842
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
3818
3843
  return [nn(n), nn(r), nn(o)];
3819
- }, il = function(e) {
3844
+ }, sl = function(e) {
3820
3845
  if (e === void 0 && (e = "margin"), typeof window > "u")
3821
- return ol;
3822
- var t = al(e), n = document.documentElement.clientWidth, r = window.innerWidth;
3846
+ return al;
3847
+ var t = il(e), n = document.documentElement.clientWidth, r = window.innerWidth;
3823
3848
  return {
3824
3849
  left: t[0],
3825
3850
  top: t[1],
3826
3851
  right: t[2],
3827
3852
  gap: Math.max(0, r - n + t[2] - t[0])
3828
3853
  };
3829
- }, sl = so(), tt = "data-scroll-locked", ll = function(e, t, n, r) {
3854
+ }, ll = so(), tt = "data-scroll-locked", cl = function(e, t, n, r) {
3830
3855
  var o = e.left, a = e.top, i = e.right, s = e.gap;
3831
3856
  return n === void 0 && (n = "margin"), `
3832
- .`.concat(Us, ` {
3857
+ .`.concat(Hs, ` {
3833
3858
  overflow: hidden `).concat(r, `;
3834
3859
  padding-right: `).concat(s, "px ").concat(r, `;
3835
3860
  }
@@ -3850,43 +3875,43 @@ var nl = function() {
3850
3875
  ].filter(Boolean).join(""), `
3851
3876
  }
3852
3877
 
3853
- .`).concat(Rt, ` {
3878
+ .`).concat(It, ` {
3854
3879
  right: `).concat(s, "px ").concat(r, `;
3855
3880
  }
3856
3881
 
3857
- .`).concat(It, ` {
3882
+ .`).concat(Rt, ` {
3858
3883
  margin-right: `).concat(s, "px ").concat(r, `;
3859
3884
  }
3860
3885
 
3861
- .`).concat(Rt, " .").concat(Rt, ` {
3886
+ .`).concat(It, " .").concat(It, ` {
3862
3887
  right: 0 `).concat(r, `;
3863
3888
  }
3864
3889
 
3865
- .`).concat(It, " .").concat(It, ` {
3890
+ .`).concat(Rt, " .").concat(Rt, ` {
3866
3891
  margin-right: 0 `).concat(r, `;
3867
3892
  }
3868
3893
 
3869
3894
  body[`).concat(tt, `] {
3870
- `).concat(Hs, ": ").concat(s, `px;
3895
+ `).concat(js, ": ").concat(s, `px;
3871
3896
  }
3872
3897
  `);
3873
3898
  }, rr = function() {
3874
3899
  var e = parseInt(document.body.getAttribute(tt) || "0", 10);
3875
3900
  return isFinite(e) ? e : 0;
3876
- }, cl = function() {
3901
+ }, ul = function() {
3877
3902
  u.useEffect(function() {
3878
3903
  return document.body.setAttribute(tt, (rr() + 1).toString()), function() {
3879
3904
  var e = rr() - 1;
3880
3905
  e <= 0 ? document.body.removeAttribute(tt) : document.body.setAttribute(tt, e.toString());
3881
3906
  };
3882
3907
  }, []);
3883
- }, ul = function(e) {
3908
+ }, dl = function(e) {
3884
3909
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
3885
- cl();
3910
+ ul();
3886
3911
  var a = u.useMemo(function() {
3887
- return il(o);
3912
+ return sl(o);
3888
3913
  }, [o]);
3889
- return u.createElement(sl, { styles: ll(a, !t, o, n ? "" : "!important") });
3914
+ return u.createElement(ll, { styles: cl(a, !t, o, n ? "" : "!important") });
3890
3915
  }, dn = !1;
3891
3916
  if (typeof window < "u")
3892
3917
  try {
@@ -3899,7 +3924,7 @@ if (typeof window < "u")
3899
3924
  } catch {
3900
3925
  dn = !1;
3901
3926
  }
3902
- var Ke = dn ? { passive: !1 } : !1, dl = function(e) {
3927
+ var Ge = dn ? { passive: !1 } : !1, fl = function(e) {
3903
3928
  return e.tagName === "TEXTAREA";
3904
3929
  }, lo = function(e, t) {
3905
3930
  if (!(e instanceof Element))
@@ -3908,11 +3933,11 @@ var Ke = dn ? { passive: !1 } : !1, dl = function(e) {
3908
3933
  return (
3909
3934
  // not-not-scrollable
3910
3935
  n[t] !== "hidden" && // contains scroll inside self
3911
- !(n.overflowY === n.overflowX && !dl(e) && n[t] === "visible")
3936
+ !(n.overflowY === n.overflowX && !fl(e) && n[t] === "visible")
3912
3937
  );
3913
- }, fl = function(e) {
3914
- return lo(e, "overflowY");
3915
3938
  }, pl = function(e) {
3939
+ return lo(e, "overflowY");
3940
+ }, hl = function(e) {
3916
3941
  return lo(e, "overflowX");
3917
3942
  }, or = function(e, t) {
3918
3943
  var n = t.ownerDocument, r = t;
@@ -3927,14 +3952,14 @@ var Ke = dn ? { passive: !1 } : !1, dl = function(e) {
3927
3952
  r = r.parentNode;
3928
3953
  } while (r && r !== n.body);
3929
3954
  return !1;
3930
- }, hl = function(e) {
3955
+ }, vl = function(e) {
3931
3956
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
3932
3957
  return [
3933
3958
  t,
3934
3959
  n,
3935
3960
  r
3936
3961
  ];
3937
- }, vl = function(e) {
3962
+ }, gl = function(e) {
3938
3963
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
3939
3964
  return [
3940
3965
  t,
@@ -3942,132 +3967,132 @@ var Ke = dn ? { passive: !1 } : !1, dl = function(e) {
3942
3967
  r
3943
3968
  ];
3944
3969
  }, co = function(e, t) {
3945
- return e === "v" ? fl(t) : pl(t);
3970
+ return e === "v" ? pl(t) : hl(t);
3946
3971
  }, uo = function(e, t) {
3947
- return e === "v" ? hl(t) : vl(t);
3948
- }, gl = function(e, t) {
3972
+ return e === "v" ? vl(t) : gl(t);
3973
+ }, ml = function(e, t) {
3949
3974
  return e === "h" && t === "rtl" ? -1 : 1;
3950
- }, ml = function(e, t, n, r, o) {
3951
- var a = gl(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, l = t.contains(s), c = !1, d = i > 0, p = 0, g = 0;
3975
+ }, wl = function(e, t, n, r, o) {
3976
+ var a = ml(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, l = t.contains(s), c = !1, f = i > 0, p = 0, g = 0;
3952
3977
  do {
3953
- var v = uo(e, s), m = v[0], f = v[1], w = v[2], b = f - w - a * m;
3978
+ var w = uo(e, s), m = w[0], d = w[1], v = w[2], b = d - v - a * m;
3954
3979
  (m || b) && co(e, s) && (p += b, g += m), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
3955
3980
  } while (
3956
3981
  // portaled content
3957
3982
  !l && s !== document.body || // self content
3958
3983
  l && (t.contains(s) || t === s)
3959
3984
  );
3960
- return (d && Math.abs(p) < 1 || !d && Math.abs(g) < 1) && (c = !0), c;
3985
+ return (f && Math.abs(p) < 1 || !f && Math.abs(g) < 1) && (c = !0), c;
3961
3986
  }, Tt = function(e) {
3962
3987
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3963
3988
  }, ar = function(e) {
3964
3989
  return [e.deltaX, e.deltaY];
3965
3990
  }, ir = function(e) {
3966
3991
  return e && "current" in e ? e.current : e;
3967
- }, wl = function(e, t) {
3992
+ }, bl = function(e, t) {
3968
3993
  return e[0] === t[0] && e[1] === t[1];
3969
- }, bl = function(e) {
3994
+ }, xl = function(e) {
3970
3995
  return `
3971
3996
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
3972
3997
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
3973
3998
  `);
3974
- }, xl = 0, Ge = [];
3975
- function yl(e) {
3976
- var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(xl++)[0], a = u.useState(so)[0], i = u.useRef(e);
3999
+ }, yl = 0, Ze = [];
4000
+ function Cl(e) {
4001
+ var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(yl++)[0], a = u.useState(so)[0], i = u.useRef(e);
3977
4002
  u.useEffect(function() {
3978
4003
  i.current = e;
3979
4004
  }, [e]), u.useEffect(function() {
3980
4005
  if (e.inert) {
3981
4006
  document.body.classList.add("block-interactivity-".concat(o));
3982
- var f = Ws([e.lockRef.current], (e.shards || []).map(ir), !0).filter(Boolean);
3983
- return f.forEach(function(w) {
3984
- return w.classList.add("allow-interactivity-".concat(o));
4007
+ var d = Us([e.lockRef.current], (e.shards || []).map(ir), !0).filter(Boolean);
4008
+ return d.forEach(function(v) {
4009
+ return v.classList.add("allow-interactivity-".concat(o));
3985
4010
  }), function() {
3986
- document.body.classList.remove("block-interactivity-".concat(o)), f.forEach(function(w) {
3987
- return w.classList.remove("allow-interactivity-".concat(o));
4011
+ document.body.classList.remove("block-interactivity-".concat(o)), d.forEach(function(v) {
4012
+ return v.classList.remove("allow-interactivity-".concat(o));
3988
4013
  });
3989
4014
  };
3990
4015
  }
3991
4016
  }, [e.inert, e.lockRef.current, e.shards]);
3992
- var s = u.useCallback(function(f, w) {
3993
- if ("touches" in f && f.touches.length === 2 || f.type === "wheel" && f.ctrlKey)
4017
+ var s = u.useCallback(function(d, v) {
4018
+ if ("touches" in d && d.touches.length === 2 || d.type === "wheel" && d.ctrlKey)
3994
4019
  return !i.current.allowPinchZoom;
3995
- var b = Tt(f), x = n.current, y = "deltaX" in f ? f.deltaX : x[0] - b[0], S = "deltaY" in f ? f.deltaY : x[1] - b[1], E, T = f.target, C = Math.abs(y) > Math.abs(S) ? "h" : "v";
3996
- if ("touches" in f && C === "h" && T.type === "range")
4020
+ var b = Tt(d), x = n.current, y = "deltaX" in d ? d.deltaX : x[0] - b[0], S = "deltaY" in d ? d.deltaY : x[1] - b[1], E, T = d.target, C = Math.abs(y) > Math.abs(S) ? "h" : "v";
4021
+ if ("touches" in d && C === "h" && T.type === "range")
3997
4022
  return !1;
3998
- var R = or(C, T);
3999
- if (!R)
4023
+ var I = or(C, T);
4024
+ if (!I)
4000
4025
  return !0;
4001
- if (R ? E = C : (E = C === "v" ? "h" : "v", R = or(C, T)), !R)
4026
+ if (I ? E = C : (E = C === "v" ? "h" : "v", I = or(C, T)), !I)
4002
4027
  return !1;
4003
- if (!r.current && "changedTouches" in f && (y || S) && (r.current = E), !E)
4028
+ if (!r.current && "changedTouches" in d && (y || S) && (r.current = E), !E)
4004
4029
  return !0;
4005
4030
  var O = r.current || E;
4006
- return ml(O, w, f, O === "h" ? y : S);
4007
- }, []), l = u.useCallback(function(f) {
4008
- var w = f;
4009
- if (!(!Ge.length || Ge[Ge.length - 1] !== a)) {
4010
- var b = "deltaY" in w ? ar(w) : Tt(w), x = t.current.filter(function(E) {
4011
- return E.name === w.type && (E.target === w.target || w.target === E.shadowParent) && wl(E.delta, b);
4031
+ return wl(O, v, d, O === "h" ? y : S);
4032
+ }, []), l = u.useCallback(function(d) {
4033
+ var v = d;
4034
+ if (!(!Ze.length || Ze[Ze.length - 1] !== a)) {
4035
+ var b = "deltaY" in v ? ar(v) : Tt(v), x = t.current.filter(function(E) {
4036
+ return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && bl(E.delta, b);
4012
4037
  })[0];
4013
4038
  if (x && x.should) {
4014
- w.cancelable && w.preventDefault();
4039
+ v.cancelable && v.preventDefault();
4015
4040
  return;
4016
4041
  }
4017
4042
  if (!x) {
4018
4043
  var y = (i.current.shards || []).map(ir).filter(Boolean).filter(function(E) {
4019
- return E.contains(w.target);
4020
- }), S = y.length > 0 ? s(w, y[0]) : !i.current.noIsolation;
4021
- S && w.cancelable && w.preventDefault();
4044
+ return E.contains(v.target);
4045
+ }), S = y.length > 0 ? s(v, y[0]) : !i.current.noIsolation;
4046
+ S && v.cancelable && v.preventDefault();
4022
4047
  }
4023
4048
  }
4024
- }, []), c = u.useCallback(function(f, w, b, x) {
4025
- var y = { name: f, delta: w, target: b, should: x, shadowParent: Cl(b) };
4049
+ }, []), c = u.useCallback(function(d, v, b, x) {
4050
+ var y = { name: d, delta: v, target: b, should: x, shadowParent: Sl(b) };
4026
4051
  t.current.push(y), setTimeout(function() {
4027
4052
  t.current = t.current.filter(function(S) {
4028
4053
  return S !== y;
4029
4054
  });
4030
4055
  }, 1);
4031
- }, []), d = u.useCallback(function(f) {
4032
- n.current = Tt(f), r.current = void 0;
4033
- }, []), p = u.useCallback(function(f) {
4034
- c(f.type, ar(f), f.target, s(f, e.lockRef.current));
4035
- }, []), g = u.useCallback(function(f) {
4036
- c(f.type, Tt(f), f.target, s(f, e.lockRef.current));
4056
+ }, []), f = u.useCallback(function(d) {
4057
+ n.current = Tt(d), r.current = void 0;
4058
+ }, []), p = u.useCallback(function(d) {
4059
+ c(d.type, ar(d), d.target, s(d, e.lockRef.current));
4060
+ }, []), g = u.useCallback(function(d) {
4061
+ c(d.type, Tt(d), d.target, s(d, e.lockRef.current));
4037
4062
  }, []);
4038
4063
  u.useEffect(function() {
4039
- return Ge.push(a), e.setCallbacks({
4064
+ return Ze.push(a), e.setCallbacks({
4040
4065
  onScrollCapture: p,
4041
4066
  onWheelCapture: p,
4042
4067
  onTouchMoveCapture: g
4043
- }), document.addEventListener("wheel", l, Ke), document.addEventListener("touchmove", l, Ke), document.addEventListener("touchstart", d, Ke), function() {
4044
- Ge = Ge.filter(function(f) {
4045
- return f !== a;
4046
- }), document.removeEventListener("wheel", l, Ke), document.removeEventListener("touchmove", l, Ke), document.removeEventListener("touchstart", d, Ke);
4068
+ }), document.addEventListener("wheel", l, Ge), document.addEventListener("touchmove", l, Ge), document.addEventListener("touchstart", f, Ge), function() {
4069
+ Ze = Ze.filter(function(d) {
4070
+ return d !== a;
4071
+ }), document.removeEventListener("wheel", l, Ge), document.removeEventListener("touchmove", l, Ge), document.removeEventListener("touchstart", f, Ge);
4047
4072
  };
4048
4073
  }, []);
4049
- var v = e.removeScrollBar, m = e.inert;
4074
+ var w = e.removeScrollBar, m = e.inert;
4050
4075
  return u.createElement(
4051
4076
  u.Fragment,
4052
4077
  null,
4053
- m ? u.createElement(a, { styles: bl(o) }) : null,
4054
- v ? u.createElement(ul, { gapMode: e.gapMode }) : null
4078
+ m ? u.createElement(a, { styles: xl(o) }) : null,
4079
+ w ? u.createElement(dl, { gapMode: e.gapMode }) : null
4055
4080
  );
4056
4081
  }
4057
- function Cl(e) {
4082
+ function Sl(e) {
4058
4083
  for (var t = null; e !== null; )
4059
4084
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
4060
4085
  return t;
4061
4086
  }
4062
- const Sl = qs(io, yl);
4087
+ const El = Qs(io, Cl);
4063
4088
  var fo = u.forwardRef(function(e, t) {
4064
- return u.createElement(Wt, me({}, e, { ref: t, sideCar: Sl }));
4089
+ return u.createElement(Wt, we({}, e, { ref: t, sideCar: El }));
4065
4090
  });
4066
4091
  fo.classNames = Wt.classNames;
4067
- var El = [" ", "Enter", "ArrowUp", "ArrowDown"], kl = [" ", "Enter"], He = "Select", [Ut, Ht, Tl] = Qa(He), [st, Oc] = yn(He, [
4068
- Tl,
4092
+ var kl = [" ", "Enter", "ArrowUp", "ArrowDown"], Tl = [" ", "Enter"], je = "Select", [Ut, Ht, Al] = Ja(je), [st, Mc] = yn(je, [
4093
+ Al,
4069
4094
  Yr
4070
- ]), jt = Yr(), [Al, Fe] = st(He), [Pl, Rl] = st(He), po = (e) => {
4095
+ ]), jt = Yr(), [Pl, Fe] = st(je), [Il, Rl] = st(je), po = (e) => {
4071
4096
  const {
4072
4097
  __scopeSelect: t,
4073
4098
  children: n,
@@ -4078,28 +4103,28 @@ var El = [" ", "Enter", "ArrowUp", "ArrowDown"], kl = [" ", "Enter"], He = "Sele
4078
4103
  defaultValue: s,
4079
4104
  onValueChange: l,
4080
4105
  dir: c,
4081
- name: d,
4106
+ name: f,
4082
4107
  autoComplete: p,
4083
4108
  disabled: g,
4084
- required: v,
4109
+ required: w,
4085
4110
  form: m
4086
- } = e, f = jt(t), [w, b] = u.useState(null), [x, y] = u.useState(null), [S, E] = u.useState(!1), T = ei(c), [C, R] = tr({
4111
+ } = e, d = jt(t), [v, b] = u.useState(null), [x, y] = u.useState(null), [S, E] = u.useState(!1), T = ti(c), [C, I] = tr({
4087
4112
  prop: r,
4088
4113
  defaultProp: o ?? !1,
4089
4114
  onChange: a,
4090
- caller: He
4115
+ caller: je
4091
4116
  }), [O, M] = tr({
4092
4117
  prop: i,
4093
4118
  defaultProp: s,
4094
4119
  onChange: l,
4095
- caller: He
4096
- }), V = u.useRef(null), $ = w ? m || !!w.closest("form") : !0, [D, N] = u.useState(/* @__PURE__ */ new Set()), X = Array.from(D).map((_) => _.props.value).join(";");
4097
- return /* @__PURE__ */ k(As, { ...f, children: /* @__PURE__ */ _t(
4098
- Al,
4120
+ caller: je
4121
+ }), V = u.useRef(null), $ = v ? m || !!v.closest("form") : !0, [D, N] = u.useState(/* @__PURE__ */ new Set()), X = Array.from(D).map((_) => _.props.value).join(";");
4122
+ return /* @__PURE__ */ k(Ps, { ...d, children: /* @__PURE__ */ _t(
4123
+ Pl,
4099
4124
  {
4100
- required: v,
4125
+ required: w,
4101
4126
  scope: t,
4102
- trigger: w,
4127
+ trigger: v,
4103
4128
  onTriggerChange: b,
4104
4129
  valueNode: x,
4105
4130
  onValueNodeChange: y,
@@ -4109,13 +4134,13 @@ var El = [" ", "Enter", "ArrowUp", "ArrowDown"], kl = [" ", "Enter"], He = "Sele
4109
4134
  value: O,
4110
4135
  onValueChange: M,
4111
4136
  open: C,
4112
- onOpenChange: R,
4137
+ onOpenChange: I,
4113
4138
  dir: T,
4114
4139
  triggerPointerDownPosRef: V,
4115
4140
  disabled: g,
4116
4141
  children: [
4117
4142
  /* @__PURE__ */ k(Ut.Provider, { scope: t, children: /* @__PURE__ */ k(
4118
- Pl,
4143
+ Il,
4119
4144
  {
4120
4145
  scope: e.__scopeSelect,
4121
4146
  onNativeOptionAdd: u.useCallback((_) => {
@@ -4123,8 +4148,8 @@ var El = [" ", "Enter", "ArrowUp", "ArrowDown"], kl = [" ", "Enter"], He = "Sele
4123
4148
  }, []),
4124
4149
  onNativeOptionRemove: u.useCallback((_) => {
4125
4150
  N((L) => {
4126
- const I = new Set(L);
4127
- return I.delete(_), I;
4151
+ const R = new Set(L);
4152
+ return R.delete(_), R;
4128
4153
  });
4129
4154
  }, []),
4130
4155
  children: n
@@ -4134,9 +4159,9 @@ var El = [" ", "Enter", "ArrowUp", "ArrowDown"], kl = [" ", "Enter"], He = "Sele
4134
4159
  Mo,
4135
4160
  {
4136
4161
  "aria-hidden": !0,
4137
- required: v,
4162
+ required: w,
4138
4163
  tabIndex: -1,
4139
- name: d,
4164
+ name: f,
4140
4165
  autoComplete: p,
4141
4166
  value: O,
4142
4167
  onChange: (_) => M(_.target.value),
@@ -4153,19 +4178,19 @@ var El = [" ", "Enter", "ArrowUp", "ArrowDown"], kl = [" ", "Enter"], He = "Sele
4153
4178
  }
4154
4179
  ) });
4155
4180
  };
4156
- po.displayName = He;
4181
+ po.displayName = je;
4157
4182
  var ho = "SelectTrigger", vo = u.forwardRef(
4158
4183
  (e, t) => {
4159
- const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = jt(n), i = Fe(ho, n), s = i.disabled || r, l = Z(t, i.onTriggerChange), c = Ht(n), d = u.useRef("touch"), [p, g, v] = Do((f) => {
4160
- const w = c().filter((y) => !y.disabled), b = w.find((y) => y.value === i.value), x = Bo(w, f, b);
4184
+ const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = jt(n), i = Fe(ho, n), s = i.disabled || r, l = Z(t, i.onTriggerChange), c = Ht(n), f = u.useRef("touch"), [p, g, w] = Do((d) => {
4185
+ const v = c().filter((y) => !y.disabled), b = v.find((y) => y.value === i.value), x = Bo(v, d, b);
4161
4186
  x !== void 0 && i.onValueChange(x.value);
4162
- }), m = (f) => {
4163
- s || (i.onOpenChange(!0), v()), f && (i.triggerPointerDownPosRef.current = {
4164
- x: Math.round(f.pageX),
4165
- y: Math.round(f.pageY)
4187
+ }), m = (d) => {
4188
+ s || (i.onOpenChange(!0), w()), d && (i.triggerPointerDownPosRef.current = {
4189
+ x: Math.round(d.pageX),
4190
+ y: Math.round(d.pageY)
4166
4191
  });
4167
4192
  };
4168
- return /* @__PURE__ */ k(Ps, { asChild: !0, ...a, children: /* @__PURE__ */ k(
4193
+ return /* @__PURE__ */ k(Is, { asChild: !0, ...a, children: /* @__PURE__ */ k(
4169
4194
  K.button,
4170
4195
  {
4171
4196
  type: "button",
@@ -4181,29 +4206,29 @@ var ho = "SelectTrigger", vo = u.forwardRef(
4181
4206
  "data-placeholder": Lo(i.value) ? "" : void 0,
4182
4207
  ...o,
4183
4208
  ref: l,
4184
- onClick: G(o.onClick, (f) => {
4185
- f.currentTarget.focus(), d.current !== "mouse" && m(f);
4209
+ onClick: G(o.onClick, (d) => {
4210
+ d.currentTarget.focus(), f.current !== "mouse" && m(d);
4186
4211
  }),
4187
- onPointerDown: G(o.onPointerDown, (f) => {
4188
- d.current = f.pointerType;
4189
- const w = f.target;
4190
- w.hasPointerCapture(f.pointerId) && w.releasePointerCapture(f.pointerId), f.button === 0 && f.ctrlKey === !1 && f.pointerType === "mouse" && (m(f), f.preventDefault());
4212
+ onPointerDown: G(o.onPointerDown, (d) => {
4213
+ f.current = d.pointerType;
4214
+ const v = d.target;
4215
+ v.hasPointerCapture(d.pointerId) && v.releasePointerCapture(d.pointerId), d.button === 0 && d.ctrlKey === !1 && d.pointerType === "mouse" && (m(d), d.preventDefault());
4191
4216
  }),
4192
- onKeyDown: G(o.onKeyDown, (f) => {
4193
- const w = p.current !== "";
4194
- !(f.ctrlKey || f.altKey || f.metaKey) && f.key.length === 1 && g(f.key), !(w && f.key === " ") && El.includes(f.key) && (m(), f.preventDefault());
4217
+ onKeyDown: G(o.onKeyDown, (d) => {
4218
+ const v = p.current !== "";
4219
+ !(d.ctrlKey || d.altKey || d.metaKey) && d.key.length === 1 && g(d.key), !(v && d.key === " ") && kl.includes(d.key) && (m(), d.preventDefault());
4195
4220
  })
4196
4221
  }
4197
4222
  ) });
4198
4223
  }
4199
4224
  );
4200
4225
  vo.displayName = ho;
4201
- var go = "SelectValue", Il = u.forwardRef(
4226
+ var go = "SelectValue", _l = u.forwardRef(
4202
4227
  (e, t) => {
4203
- const { __scopeSelect: n, className: r, style: o, children: a, placeholder: i = "", ...s } = e, l = Fe(go, n), { onValueNodeHasChildrenChange: c } = l, d = a !== void 0, p = Z(t, l.onValueNodeChange);
4228
+ const { __scopeSelect: n, className: r, style: o, children: a, placeholder: i = "", ...s } = e, l = Fe(go, n), { onValueNodeHasChildrenChange: c } = l, f = a !== void 0, p = Z(t, l.onValueNodeChange);
4204
4229
  return te(() => {
4205
- c(d);
4206
- }, [c, d]), /* @__PURE__ */ k(
4230
+ c(f);
4231
+ }, [c, f]), /* @__PURE__ */ k(
4207
4232
  K.span,
4208
4233
  {
4209
4234
  ...s,
@@ -4214,19 +4239,19 @@ var go = "SelectValue", Il = u.forwardRef(
4214
4239
  );
4215
4240
  }
4216
4241
  );
4217
- Il.displayName = go;
4218
- var _l = "SelectIcon", mo = u.forwardRef(
4242
+ _l.displayName = go;
4243
+ var Nl = "SelectIcon", mo = u.forwardRef(
4219
4244
  (e, t) => {
4220
4245
  const { __scopeSelect: n, children: r, ...o } = e;
4221
4246
  return /* @__PURE__ */ k(K.span, { "aria-hidden": !0, ...o, ref: t, children: r || "▼" });
4222
4247
  }
4223
4248
  );
4224
- mo.displayName = _l;
4225
- var Nl = "SelectPortal", wo = (e) => /* @__PURE__ */ k(to, { asChild: !0, ...e });
4226
- wo.displayName = Nl;
4227
- var je = "SelectContent", bo = u.forwardRef(
4249
+ mo.displayName = Nl;
4250
+ var Ol = "SelectPortal", wo = (e) => /* @__PURE__ */ k(to, { asChild: !0, ...e });
4251
+ wo.displayName = Ol;
4252
+ var Ye = "SelectContent", bo = u.forwardRef(
4228
4253
  (e, t) => {
4229
- const n = Fe(je, e.__scopeSelect), [r, o] = u.useState();
4254
+ const n = Fe(Ye, e.__scopeSelect), [r, o] = u.useState();
4230
4255
  if (te(() => {
4231
4256
  o(new DocumentFragment());
4232
4257
  }, []), !n.open) {
@@ -4239,8 +4264,8 @@ var je = "SelectContent", bo = u.forwardRef(
4239
4264
  return /* @__PURE__ */ k(yo, { ...e, ref: t });
4240
4265
  }
4241
4266
  );
4242
- bo.displayName = je;
4243
- var se = 10, [xo, Ve] = st(je), Ol = "SelectContentImpl", Ml = /* @__PURE__ */ vt("SelectContent.RemoveScroll"), yo = u.forwardRef(
4267
+ bo.displayName = Ye;
4268
+ var ue = 10, [xo, Ve] = st(Ye), Ml = "SelectContentImpl", Ll = /* @__PURE__ */ vt("SelectContent.RemoveScroll"), yo = u.forwardRef(
4244
4269
  (e, t) => {
4245
4270
  const {
4246
4271
  __scopeSelect: n,
@@ -4253,21 +4278,21 @@ var se = 10, [xo, Ve] = st(je), Ol = "SelectContentImpl", Ml = /* @__PURE__ */ v
4253
4278
  side: s,
4254
4279
  sideOffset: l,
4255
4280
  align: c,
4256
- alignOffset: d,
4281
+ alignOffset: f,
4257
4282
  arrowPadding: p,
4258
4283
  collisionBoundary: g,
4259
- collisionPadding: v,
4284
+ collisionPadding: w,
4260
4285
  sticky: m,
4261
- hideWhenDetached: f,
4262
- avoidCollisions: w,
4286
+ hideWhenDetached: d,
4287
+ avoidCollisions: v,
4263
4288
  //
4264
4289
  ...b
4265
- } = e, x = Fe(je, n), [y, S] = u.useState(null), [E, T] = u.useState(null), C = Z(t, (A) => S(A)), [R, O] = u.useState(null), [M, V] = u.useState(
4290
+ } = e, x = Fe(Ye, n), [y, S] = u.useState(null), [E, T] = u.useState(null), C = Z(t, (A) => S(A)), [I, O] = u.useState(null), [M, V] = u.useState(
4266
4291
  null
4267
4292
  ), $ = Ht(n), [D, N] = u.useState(!1), X = u.useRef(!1);
4268
4293
  u.useEffect(() => {
4269
- if (y) return $s(y);
4270
- }, [y]), di();
4294
+ if (y) return Ws(y);
4295
+ }, [y]), fi();
4271
4296
  const _ = u.useCallback(
4272
4297
  (A) => {
4273
4298
  const [U, ...Q] = $().map((z) => z.ref.current), [F] = Q.slice(-1), B = document.activeElement;
@@ -4276,13 +4301,13 @@ var se = 10, [xo, Ve] = st(je), Ol = "SelectContentImpl", Ml = /* @__PURE__ */ v
4276
4301
  },
4277
4302
  [$, E]
4278
4303
  ), L = u.useCallback(
4279
- () => _([R, y]),
4280
- [_, R, y]
4304
+ () => _([I, y]),
4305
+ [_, I, y]
4281
4306
  );
4282
4307
  u.useEffect(() => {
4283
4308
  D && L();
4284
4309
  }, [D, L]);
4285
- const { onOpenChange: I, triggerPointerDownPosRef: W } = x;
4310
+ const { onOpenChange: R, triggerPointerDownPosRef: W } = x;
4286
4311
  u.useEffect(() => {
4287
4312
  if (y) {
4288
4313
  let A = { x: 0, y: 0 };
@@ -4293,18 +4318,18 @@ var se = 10, [xo, Ve] = st(je), Ol = "SelectContentImpl", Ml = /* @__PURE__ */ v
4293
4318
  y: Math.abs(Math.round(F.pageY) - (((z = W.current) == null ? void 0 : z.y) ?? 0))
4294
4319
  };
4295
4320
  }, Q = (F) => {
4296
- A.x <= 10 && A.y <= 10 ? F.preventDefault() : y.contains(F.target) || I(!1), document.removeEventListener("pointermove", U), W.current = null;
4321
+ A.x <= 10 && A.y <= 10 ? F.preventDefault() : y.contains(F.target) || R(!1), document.removeEventListener("pointermove", U), W.current = null;
4297
4322
  };
4298
4323
  return W.current !== null && (document.addEventListener("pointermove", U), document.addEventListener("pointerup", Q, { capture: !0, once: !0 })), () => {
4299
4324
  document.removeEventListener("pointermove", U), document.removeEventListener("pointerup", Q, { capture: !0 });
4300
4325
  };
4301
4326
  }
4302
- }, [y, I, W]), u.useEffect(() => {
4303
- const A = () => I(!1);
4327
+ }, [y, R, W]), u.useEffect(() => {
4328
+ const A = () => R(!1);
4304
4329
  return window.addEventListener("blur", A), window.addEventListener("resize", A), () => {
4305
4330
  window.removeEventListener("blur", A), window.removeEventListener("resize", A);
4306
4331
  };
4307
- }, [I]);
4332
+ }, [R]);
4308
4333
  const [ee, Ee] = Do((A) => {
4309
4334
  const U = $().filter((B) => !B.disabled), Q = U.find((B) => B.ref.current === document.activeElement), F = Bo(U, A, Q);
4310
4335
  F && setTimeout(() => F.ref.current.focus());
@@ -4314,23 +4339,23 @@ var se = 10, [xo, Ve] = st(je), Ol = "SelectContentImpl", Ml = /* @__PURE__ */ v
4314
4339
  (x.value !== void 0 && x.value === U || F) && (O(A), F && (X.current = !0));
4315
4340
  },
4316
4341
  [x.value]
4317
- ), ct = u.useCallback(() => y == null ? void 0 : y.focus(), [y]), Ie = u.useCallback(
4342
+ ), ct = u.useCallback(() => y == null ? void 0 : y.focus(), [y]), Re = u.useCallback(
4318
4343
  (A, U, Q) => {
4319
4344
  const F = !X.current && !Q;
4320
4345
  (x.value !== void 0 && x.value === U || F) && V(A);
4321
4346
  },
4322
4347
  [x.value]
4323
- ), Ye = r === "popper" ? fn : Co, $e = Ye === fn ? {
4348
+ ), Xe = r === "popper" ? fn : Co, $e = Xe === fn ? {
4324
4349
  side: s,
4325
4350
  sideOffset: l,
4326
4351
  align: c,
4327
- alignOffset: d,
4352
+ alignOffset: f,
4328
4353
  arrowPadding: p,
4329
4354
  collisionBoundary: g,
4330
- collisionPadding: v,
4355
+ collisionPadding: w,
4331
4356
  sticky: m,
4332
- hideWhenDetached: f,
4333
- avoidCollisions: w
4357
+ hideWhenDetached: d,
4358
+ avoidCollisions: v
4334
4359
  } : {};
4335
4360
  return /* @__PURE__ */ k(
4336
4361
  xo,
@@ -4340,15 +4365,15 @@ var se = 10, [xo, Ve] = st(je), Ol = "SelectContentImpl", Ml = /* @__PURE__ */ v
4340
4365
  viewport: E,
4341
4366
  onViewportChange: T,
4342
4367
  itemRefCallback: lt,
4343
- selectedItem: R,
4368
+ selectedItem: I,
4344
4369
  onItemLeave: ct,
4345
- itemTextRefCallback: Ie,
4370
+ itemTextRefCallback: Re,
4346
4371
  focusSelectedItem: L,
4347
4372
  selectedItemText: M,
4348
4373
  position: r,
4349
4374
  isPositioned: D,
4350
4375
  searchRef: ee,
4351
- children: /* @__PURE__ */ k(fo, { as: Ml, allowPinchZoom: !0, children: /* @__PURE__ */ k(
4376
+ children: /* @__PURE__ */ k(fo, { as: Ll, allowPinchZoom: !0, children: /* @__PURE__ */ k(
4352
4377
  Nr,
4353
4378
  {
4354
4379
  asChild: !0,
@@ -4361,7 +4386,7 @@ var se = 10, [xo, Ve] = st(je), Ol = "SelectContentImpl", Ml = /* @__PURE__ */ v
4361
4386
  (U = x.trigger) == null || U.focus({ preventScroll: !0 }), A.preventDefault();
4362
4387
  }),
4363
4388
  children: /* @__PURE__ */ k(
4364
- Ir,
4389
+ Rr,
4365
4390
  {
4366
4391
  asChild: !0,
4367
4392
  disableOutsidePointerEvents: !0,
@@ -4370,7 +4395,7 @@ var se = 10, [xo, Ve] = st(je), Ol = "SelectContentImpl", Ml = /* @__PURE__ */ v
4370
4395
  onFocusOutside: (A) => A.preventDefault(),
4371
4396
  onDismiss: () => x.onOpenChange(!1),
4372
4397
  children: /* @__PURE__ */ k(
4373
- Ye,
4398
+ Xe,
4374
4399
  {
4375
4400
  role: "listbox",
4376
4401
  id: x.contentId,
@@ -4410,50 +4435,50 @@ var se = 10, [xo, Ve] = st(je), Ol = "SelectContentImpl", Ml = /* @__PURE__ */ v
4410
4435
  );
4411
4436
  }
4412
4437
  );
4413
- yo.displayName = Ol;
4414
- var Ll = "SelectItemAlignedPosition", Co = u.forwardRef((e, t) => {
4415
- const { __scopeSelect: n, onPlaced: r, ...o } = e, a = Fe(je, n), i = Ve(je, n), [s, l] = u.useState(null), [c, d] = u.useState(null), p = Z(t, (C) => d(C)), g = Ht(n), v = u.useRef(!1), m = u.useRef(!0), { viewport: f, selectedItem: w, selectedItemText: b, focusSelectedItem: x } = i, y = u.useCallback(() => {
4416
- if (a.trigger && a.valueNode && s && c && f && w && b) {
4417
- const C = a.trigger.getBoundingClientRect(), R = c.getBoundingClientRect(), O = a.valueNode.getBoundingClientRect(), M = b.getBoundingClientRect();
4438
+ yo.displayName = Ml;
4439
+ var Dl = "SelectItemAlignedPosition", Co = u.forwardRef((e, t) => {
4440
+ const { __scopeSelect: n, onPlaced: r, ...o } = e, a = Fe(Ye, n), i = Ve(Ye, n), [s, l] = u.useState(null), [c, f] = u.useState(null), p = Z(t, (C) => f(C)), g = Ht(n), w = u.useRef(!1), m = u.useRef(!0), { viewport: d, selectedItem: v, selectedItemText: b, focusSelectedItem: x } = i, y = u.useCallback(() => {
4441
+ if (a.trigger && a.valueNode && s && c && d && v && b) {
4442
+ const C = a.trigger.getBoundingClientRect(), I = c.getBoundingClientRect(), O = a.valueNode.getBoundingClientRect(), M = b.getBoundingClientRect();
4418
4443
  if (a.dir !== "rtl") {
4419
- const B = M.left - R.left, z = O.left - B, oe = C.left - z, ve = C.width + oe, ut = Math.max(ve, R.width), dt = window.innerWidth - se, ft = Fn(z, [
4420
- se,
4444
+ const B = M.left - I.left, z = O.left - B, oe = C.left - z, ge = C.width + oe, ut = Math.max(ge, I.width), dt = window.innerWidth - ue, ft = Fn(z, [
4445
+ ue,
4421
4446
  // Prevents the content from going off the starting edge of the
4422
4447
  // viewport. It may still go off the ending edge, but this can be
4423
4448
  // controlled by the user since they may want to manage overflow in a
4424
4449
  // specific way.
4425
4450
  // https://github.com/radix-ui/primitives/issues/2049
4426
- Math.max(se, dt - ut)
4451
+ Math.max(ue, dt - ut)
4427
4452
  ]);
4428
- s.style.minWidth = ve + "px", s.style.left = ft + "px";
4453
+ s.style.minWidth = ge + "px", s.style.left = ft + "px";
4429
4454
  } else {
4430
- const B = R.right - M.right, z = window.innerWidth - O.right - B, oe = window.innerWidth - C.right - z, ve = C.width + oe, ut = Math.max(ve, R.width), dt = window.innerWidth - se, ft = Fn(z, [
4431
- se,
4432
- Math.max(se, dt - ut)
4455
+ const B = I.right - M.right, z = window.innerWidth - O.right - B, oe = window.innerWidth - C.right - z, ge = C.width + oe, ut = Math.max(ge, I.width), dt = window.innerWidth - ue, ft = Fn(z, [
4456
+ ue,
4457
+ Math.max(ue, dt - ut)
4433
4458
  ]);
4434
- s.style.minWidth = ve + "px", s.style.right = ft + "px";
4459
+ s.style.minWidth = ge + "px", s.style.right = ft + "px";
4435
4460
  }
4436
- const V = g(), $ = window.innerHeight - se * 2, D = f.scrollHeight, N = window.getComputedStyle(c), X = parseInt(N.borderTopWidth, 10), _ = parseInt(N.paddingTop, 10), L = parseInt(N.borderBottomWidth, 10), I = parseInt(N.paddingBottom, 10), W = X + _ + D + I + L, ee = Math.min(w.offsetHeight * 5, W), Ee = window.getComputedStyle(f), lt = parseInt(Ee.paddingTop, 10), ct = parseInt(Ee.paddingBottom, 10), Ie = C.top + C.height / 2 - se, Ye = $ - Ie, $e = w.offsetHeight / 2, A = w.offsetTop + $e, U = X + _ + A, Q = W - U;
4437
- if (U <= Ie) {
4438
- const B = V.length > 0 && w === V[V.length - 1].ref.current;
4461
+ const V = g(), $ = window.innerHeight - ue * 2, D = d.scrollHeight, N = window.getComputedStyle(c), X = parseInt(N.borderTopWidth, 10), _ = parseInt(N.paddingTop, 10), L = parseInt(N.borderBottomWidth, 10), R = parseInt(N.paddingBottom, 10), W = X + _ + D + R + L, ee = Math.min(v.offsetHeight * 5, W), Ee = window.getComputedStyle(d), lt = parseInt(Ee.paddingTop, 10), ct = parseInt(Ee.paddingBottom, 10), Re = C.top + C.height / 2 - ue, Xe = $ - Re, $e = v.offsetHeight / 2, A = v.offsetTop + $e, U = X + _ + A, Q = W - U;
4462
+ if (U <= Re) {
4463
+ const B = V.length > 0 && v === V[V.length - 1].ref.current;
4439
4464
  s.style.bottom = "0px";
4440
- const z = c.clientHeight - f.offsetTop - f.offsetHeight, oe = Math.max(
4441
- Ye,
4465
+ const z = c.clientHeight - d.offsetTop - d.offsetHeight, oe = Math.max(
4466
+ Xe,
4442
4467
  $e + // viewport might have padding bottom, include it to avoid a scrollable viewport
4443
4468
  (B ? ct : 0) + z + L
4444
- ), ve = U + oe;
4445
- s.style.height = ve + "px";
4469
+ ), ge = U + oe;
4470
+ s.style.height = ge + "px";
4446
4471
  } else {
4447
- const B = V.length > 0 && w === V[0].ref.current;
4472
+ const B = V.length > 0 && v === V[0].ref.current;
4448
4473
  s.style.top = "0px";
4449
4474
  const oe = Math.max(
4450
- Ie,
4451
- X + f.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
4475
+ Re,
4476
+ X + d.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
4452
4477
  (B ? lt : 0) + $e
4453
4478
  ) + Q;
4454
- s.style.height = oe + "px", f.scrollTop = U - Ie + f.offsetTop;
4479
+ s.style.height = oe + "px", d.scrollTop = U - Re + d.offsetTop;
4455
4480
  }
4456
- s.style.margin = `${se}px 0`, s.style.minHeight = ee + "px", s.style.maxHeight = $ + "px", r == null || r(), requestAnimationFrame(() => v.current = !0);
4481
+ s.style.margin = `${ue}px 0`, s.style.minHeight = ee + "px", s.style.maxHeight = $ + "px", r == null || r(), requestAnimationFrame(() => w.current = !0);
4457
4482
  }
4458
4483
  }, [
4459
4484
  g,
@@ -4461,8 +4486,8 @@ var Ll = "SelectItemAlignedPosition", Co = u.forwardRef((e, t) => {
4461
4486
  a.valueNode,
4462
4487
  s,
4463
4488
  c,
4464
- f,
4465
- w,
4489
+ d,
4490
+ v,
4466
4491
  b,
4467
4492
  a.dir,
4468
4493
  r
@@ -4479,11 +4504,11 @@ var Ll = "SelectItemAlignedPosition", Co = u.forwardRef((e, t) => {
4479
4504
  [y, x]
4480
4505
  );
4481
4506
  return /* @__PURE__ */ k(
4482
- Bl,
4507
+ zl,
4483
4508
  {
4484
4509
  scope: n,
4485
4510
  contentWrapper: s,
4486
- shouldExpandOnScrollRef: v,
4511
+ shouldExpandOnScrollRef: w,
4487
4512
  onScrollButtonChange: T,
4488
4513
  children: /* @__PURE__ */ k(
4489
4514
  "div",
@@ -4515,12 +4540,12 @@ var Ll = "SelectItemAlignedPosition", Co = u.forwardRef((e, t) => {
4515
4540
  }
4516
4541
  );
4517
4542
  });
4518
- Co.displayName = Ll;
4519
- var Dl = "SelectPopperPosition", fn = u.forwardRef((e, t) => {
4543
+ Co.displayName = Dl;
4544
+ var Bl = "SelectPopperPosition", fn = u.forwardRef((e, t) => {
4520
4545
  const {
4521
4546
  __scopeSelect: n,
4522
4547
  align: r = "start",
4523
- collisionPadding: o = se,
4548
+ collisionPadding: o = ue,
4524
4549
  ...a
4525
4550
  } = e, i = jt(n);
4526
4551
  return /* @__PURE__ */ k(
@@ -4544,8 +4569,8 @@ var Dl = "SelectPopperPosition", fn = u.forwardRef((e, t) => {
4544
4569
  }
4545
4570
  );
4546
4571
  });
4547
- fn.displayName = Dl;
4548
- var [Bl, Nn] = st(je, {}), pn = "SelectViewport", So = u.forwardRef(
4572
+ fn.displayName = Bl;
4573
+ var [zl, Nn] = st(Ye, {}), pn = "SelectViewport", So = u.forwardRef(
4549
4574
  (e, t) => {
4550
4575
  const { __scopeSelect: n, nonce: r, ...o } = e, a = Ve(pn, n), i = Nn(pn, n), s = Z(t, a.onViewportChange), l = u.useRef(0);
4551
4576
  return /* @__PURE__ */ _t(mn, { children: [
@@ -4579,18 +4604,18 @@ var [Bl, Nn] = st(je, {}), pn = "SelectViewport", So = u.forwardRef(
4579
4604
  ...o.style
4580
4605
  },
4581
4606
  onScroll: G(o.onScroll, (c) => {
4582
- const d = c.currentTarget, { contentWrapper: p, shouldExpandOnScrollRef: g } = i;
4607
+ const f = c.currentTarget, { contentWrapper: p, shouldExpandOnScrollRef: g } = i;
4583
4608
  if (g != null && g.current && p) {
4584
- const v = Math.abs(l.current - d.scrollTop);
4585
- if (v > 0) {
4586
- const m = window.innerHeight - se * 2, f = parseFloat(p.style.minHeight), w = parseFloat(p.style.height), b = Math.max(f, w);
4609
+ const w = Math.abs(l.current - f.scrollTop);
4610
+ if (w > 0) {
4611
+ const m = window.innerHeight - ue * 2, d = parseFloat(p.style.minHeight), v = parseFloat(p.style.height), b = Math.max(d, v);
4587
4612
  if (b < m) {
4588
- const x = b + v, y = Math.min(m, x), S = x - y;
4589
- p.style.height = y + "px", p.style.bottom === "0px" && (d.scrollTop = S > 0 ? S : 0, p.style.justifyContent = "flex-end");
4613
+ const x = b + w, y = Math.min(m, x), S = x - y;
4614
+ p.style.height = y + "px", p.style.bottom === "0px" && (f.scrollTop = S > 0 ? S : 0, p.style.justifyContent = "flex-end");
4590
4615
  }
4591
4616
  }
4592
4617
  }
4593
- l.current = d.scrollTop;
4618
+ l.current = f.scrollTop;
4594
4619
  })
4595
4620
  }
4596
4621
  ) })
@@ -4598,21 +4623,21 @@ var [Bl, Nn] = st(je, {}), pn = "SelectViewport", So = u.forwardRef(
4598
4623
  }
4599
4624
  );
4600
4625
  So.displayName = pn;
4601
- var Eo = "SelectGroup", [zl, Fl] = st(Eo), Vl = u.forwardRef(
4626
+ var Eo = "SelectGroup", [Fl, Vl] = st(Eo), $l = u.forwardRef(
4602
4627
  (e, t) => {
4603
4628
  const { __scopeSelect: n, ...r } = e, o = Cn();
4604
- return /* @__PURE__ */ k(zl, { scope: n, id: o, children: /* @__PURE__ */ k(K.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
4629
+ return /* @__PURE__ */ k(Fl, { scope: n, id: o, children: /* @__PURE__ */ k(K.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
4605
4630
  }
4606
4631
  );
4607
- Vl.displayName = Eo;
4608
- var ko = "SelectLabel", $l = u.forwardRef(
4632
+ $l.displayName = Eo;
4633
+ var ko = "SelectLabel", Wl = u.forwardRef(
4609
4634
  (e, t) => {
4610
- const { __scopeSelect: n, ...r } = e, o = Fl(ko, n);
4635
+ const { __scopeSelect: n, ...r } = e, o = Vl(ko, n);
4611
4636
  return /* @__PURE__ */ k(K.div, { id: o.id, ...r, ref: t });
4612
4637
  }
4613
4638
  );
4614
- $l.displayName = ko;
4615
- var Dt = "SelectItem", [Wl, To] = st(Dt), Ao = u.forwardRef(
4639
+ Wl.displayName = ko;
4640
+ var Dt = "SelectItem", [Ul, To] = st(Dt), Ao = u.forwardRef(
4616
4641
  (e, t) => {
4617
4642
  const {
4618
4643
  __scopeSelect: n,
@@ -4620,13 +4645,13 @@ var Dt = "SelectItem", [Wl, To] = st(Dt), Ao = u.forwardRef(
4620
4645
  disabled: o = !1,
4621
4646
  textValue: a,
4622
4647
  ...i
4623
- } = e, s = Fe(Dt, n), l = Ve(Dt, n), c = s.value === r, [d, p] = u.useState(a ?? ""), [g, v] = u.useState(!1), m = Z(
4648
+ } = e, s = Fe(Dt, n), l = Ve(Dt, n), c = s.value === r, [f, p] = u.useState(a ?? ""), [g, w] = u.useState(!1), m = Z(
4624
4649
  t,
4625
4650
  (x) => {
4626
4651
  var y;
4627
4652
  return (y = l.itemRefCallback) == null ? void 0 : y.call(l, x, r, o);
4628
4653
  }
4629
- ), f = Cn(), w = u.useRef("touch"), b = () => {
4654
+ ), d = Cn(), v = u.useRef("touch"), b = () => {
4630
4655
  o || (s.onValueChange(r), s.onOpenChange(!1));
4631
4656
  };
4632
4657
  if (r === "")
@@ -4634,12 +4659,12 @@ var Dt = "SelectItem", [Wl, To] = st(Dt), Ao = u.forwardRef(
4634
4659
  "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
4635
4660
  );
4636
4661
  return /* @__PURE__ */ k(
4637
- Wl,
4662
+ Ul,
4638
4663
  {
4639
4664
  scope: n,
4640
4665
  value: r,
4641
4666
  disabled: o,
4642
- textId: f,
4667
+ textId: d,
4643
4668
  isSelected: c,
4644
4669
  onItemTextChange: u.useCallback((x) => {
4645
4670
  p((y) => y || ((x == null ? void 0 : x.textContent) ?? "").trim());
@@ -4650,12 +4675,12 @@ var Dt = "SelectItem", [Wl, To] = st(Dt), Ao = u.forwardRef(
4650
4675
  scope: n,
4651
4676
  value: r,
4652
4677
  disabled: o,
4653
- textValue: d,
4678
+ textValue: f,
4654
4679
  children: /* @__PURE__ */ k(
4655
4680
  K.div,
4656
4681
  {
4657
4682
  role: "option",
4658
- "aria-labelledby": f,
4683
+ "aria-labelledby": d,
4659
4684
  "data-highlighted": g ? "" : void 0,
4660
4685
  "aria-selected": c && g,
4661
4686
  "data-state": c ? "checked" : "unchecked",
@@ -4664,20 +4689,20 @@ var Dt = "SelectItem", [Wl, To] = st(Dt), Ao = u.forwardRef(
4664
4689
  tabIndex: o ? void 0 : -1,
4665
4690
  ...i,
4666
4691
  ref: m,
4667
- onFocus: G(i.onFocus, () => v(!0)),
4668
- onBlur: G(i.onBlur, () => v(!1)),
4692
+ onFocus: G(i.onFocus, () => w(!0)),
4693
+ onBlur: G(i.onBlur, () => w(!1)),
4669
4694
  onClick: G(i.onClick, () => {
4670
- w.current !== "mouse" && b();
4695
+ v.current !== "mouse" && b();
4671
4696
  }),
4672
4697
  onPointerUp: G(i.onPointerUp, () => {
4673
- w.current === "mouse" && b();
4698
+ v.current === "mouse" && b();
4674
4699
  }),
4675
4700
  onPointerDown: G(i.onPointerDown, (x) => {
4676
- w.current = x.pointerType;
4701
+ v.current = x.pointerType;
4677
4702
  }),
4678
4703
  onPointerMove: G(i.onPointerMove, (x) => {
4679
4704
  var y;
4680
- w.current = x.pointerType, o ? (y = l.onItemLeave) == null || y.call(l) : w.current === "mouse" && x.currentTarget.focus({ preventScroll: !0 });
4705
+ v.current = x.pointerType, o ? (y = l.onItemLeave) == null || y.call(l) : v.current === "mouse" && x.currentTarget.focus({ preventScroll: !0 });
4681
4706
  }),
4682
4707
  onPointerLeave: G(i.onPointerLeave, (x) => {
4683
4708
  var y;
@@ -4685,7 +4710,7 @@ var Dt = "SelectItem", [Wl, To] = st(Dt), Ao = u.forwardRef(
4685
4710
  }),
4686
4711
  onKeyDown: G(i.onKeyDown, (x) => {
4687
4712
  var S;
4688
- ((S = l.searchRef) == null ? void 0 : S.current) !== "" && x.key === " " || (kl.includes(x.key) && b(), x.key === " " && x.preventDefault());
4713
+ ((S = l.searchRef) == null ? void 0 : S.current) !== "" && x.key === " " || (Tl.includes(x.key) && b(), x.key === " " && x.preventDefault());
4689
4714
  })
4690
4715
  }
4691
4716
  )
@@ -4698,7 +4723,7 @@ var Dt = "SelectItem", [Wl, To] = st(Dt), Ao = u.forwardRef(
4698
4723
  Ao.displayName = Dt;
4699
4724
  var ht = "SelectItemText", Po = u.forwardRef(
4700
4725
  (e, t) => {
4701
- const { __scopeSelect: n, className: r, style: o, ...a } = e, i = Fe(ht, n), s = Ve(ht, n), l = To(ht, n), c = Rl(ht, n), [d, p] = u.useState(null), g = Z(
4726
+ const { __scopeSelect: n, className: r, style: o, ...a } = e, i = Fe(ht, n), s = Ve(ht, n), l = To(ht, n), c = Rl(ht, n), [f, p] = u.useState(null), g = Z(
4702
4727
  t,
4703
4728
  (b) => p(b),
4704
4729
  l.onItemTextChange,
@@ -4706,24 +4731,24 @@ var ht = "SelectItemText", Po = u.forwardRef(
4706
4731
  var x;
4707
4732
  return (x = s.itemTextRefCallback) == null ? void 0 : x.call(s, b, l.value, l.disabled);
4708
4733
  }
4709
- ), v = d == null ? void 0 : d.textContent, m = u.useMemo(
4710
- () => /* @__PURE__ */ k("option", { value: l.value, disabled: l.disabled, children: v }, l.value),
4711
- [l.disabled, l.value, v]
4712
- ), { onNativeOptionAdd: f, onNativeOptionRemove: w } = c;
4713
- return te(() => (f(m), () => w(m)), [f, w, m]), /* @__PURE__ */ _t(mn, { children: [
4734
+ ), w = f == null ? void 0 : f.textContent, m = u.useMemo(
4735
+ () => /* @__PURE__ */ k("option", { value: l.value, disabled: l.disabled, children: w }, l.value),
4736
+ [l.disabled, l.value, w]
4737
+ ), { onNativeOptionAdd: d, onNativeOptionRemove: v } = c;
4738
+ return te(() => (d(m), () => v(m)), [d, v, m]), /* @__PURE__ */ _t(mn, { children: [
4714
4739
  /* @__PURE__ */ k(K.span, { id: l.textId, ...a, ref: g }),
4715
4740
  l.isSelected && i.valueNode && !i.valueNodeHasChildren ? u.createPortal(a.children, i.valueNode) : null
4716
4741
  ] });
4717
4742
  }
4718
4743
  );
4719
4744
  Po.displayName = ht;
4720
- var Ro = "SelectItemIndicator", Io = u.forwardRef(
4745
+ var Io = "SelectItemIndicator", Ro = u.forwardRef(
4721
4746
  (e, t) => {
4722
4747
  const { __scopeSelect: n, ...r } = e;
4723
- return To(Ro, n).isSelected ? /* @__PURE__ */ k(K.span, { "aria-hidden": !0, ...r, ref: t }) : null;
4748
+ return To(Io, n).isSelected ? /* @__PURE__ */ k(K.span, { "aria-hidden": !0, ...r, ref: t }) : null;
4724
4749
  }
4725
4750
  );
4726
- Io.displayName = Ro;
4751
+ Ro.displayName = Io;
4727
4752
  var hn = "SelectScrollUpButton", _o = u.forwardRef((e, t) => {
4728
4753
  const n = Ve(hn, e.__scopeSelect), r = Nn(hn, e.__scopeSelect), [o, a] = u.useState(!1), i = Z(t, r.onScrollButtonChange);
4729
4754
  return te(() => {
@@ -4753,8 +4778,8 @@ var vn = "SelectScrollDownButton", No = u.forwardRef((e, t) => {
4753
4778
  return te(() => {
4754
4779
  if (n.viewport && n.isPositioned) {
4755
4780
  let s = function() {
4756
- const c = l.scrollHeight - l.clientHeight, d = Math.ceil(l.scrollTop) < c;
4757
- a(d);
4781
+ const c = l.scrollHeight - l.clientHeight, f = Math.ceil(l.scrollTop) < c;
4782
+ a(f);
4758
4783
  };
4759
4784
  const l = n.viewport;
4760
4785
  return s(), l.addEventListener("scroll", s), () => l.removeEventListener("scroll", s);
@@ -4777,9 +4802,9 @@ var Oo = u.forwardRef((e, t) => {
4777
4802
  i.current !== null && (window.clearInterval(i.current), i.current = null);
4778
4803
  }, []);
4779
4804
  return u.useEffect(() => () => l(), [l]), te(() => {
4780
- var d;
4805
+ var f;
4781
4806
  const c = s().find((p) => p.ref.current === document.activeElement);
4782
- (d = c == null ? void 0 : c.ref.current) == null || d.scrollIntoView({ block: "nearest" });
4807
+ (f = c == null ? void 0 : c.ref.current) == null || f.scrollIntoView({ block: "nearest" });
4783
4808
  }, [s]), /* @__PURE__ */ k(
4784
4809
  K.div,
4785
4810
  {
@@ -4799,33 +4824,33 @@ var Oo = u.forwardRef((e, t) => {
4799
4824
  })
4800
4825
  }
4801
4826
  );
4802
- }), Ul = "SelectSeparator", Hl = u.forwardRef(
4827
+ }), Hl = "SelectSeparator", jl = u.forwardRef(
4803
4828
  (e, t) => {
4804
4829
  const { __scopeSelect: n, ...r } = e;
4805
4830
  return /* @__PURE__ */ k(K.div, { "aria-hidden": !0, ...r, ref: t });
4806
4831
  }
4807
4832
  );
4808
- Hl.displayName = Ul;
4809
- var gn = "SelectArrow", jl = u.forwardRef(
4833
+ jl.displayName = Hl;
4834
+ var gn = "SelectArrow", Yl = u.forwardRef(
4810
4835
  (e, t) => {
4811
4836
  const { __scopeSelect: n, ...r } = e, o = jt(n), a = Fe(gn, n), i = Ve(gn, n);
4812
- return a.open && i.position === "popper" ? /* @__PURE__ */ k(Is, { ...o, ...r, ref: t }) : null;
4837
+ return a.open && i.position === "popper" ? /* @__PURE__ */ k(_s, { ...o, ...r, ref: t }) : null;
4813
4838
  }
4814
4839
  );
4815
- jl.displayName = gn;
4816
- var Yl = "SelectBubbleInput", Mo = u.forwardRef(
4840
+ Yl.displayName = gn;
4841
+ var Xl = "SelectBubbleInput", Mo = u.forwardRef(
4817
4842
  ({ __scopeSelect: e, value: t, ...n }, r) => {
4818
- const o = u.useRef(null), a = Z(r, o), i = Ls(t);
4843
+ const o = u.useRef(null), a = Z(r, o), i = Ds(t);
4819
4844
  return u.useEffect(() => {
4820
4845
  const s = o.current;
4821
4846
  if (!s) return;
4822
- const l = window.HTMLSelectElement.prototype, d = Object.getOwnPropertyDescriptor(
4847
+ const l = window.HTMLSelectElement.prototype, f = Object.getOwnPropertyDescriptor(
4823
4848
  l,
4824
4849
  "value"
4825
4850
  ).set;
4826
- if (i !== t && d) {
4851
+ if (i !== t && f) {
4827
4852
  const p = new Event("change", { bubbles: !0 });
4828
- d.call(s, t), s.dispatchEvent(p);
4853
+ f.call(s, t), s.dispatchEvent(p);
4829
4854
  }
4830
4855
  }, [i, t]), /* @__PURE__ */ k(
4831
4856
  K.select,
@@ -4838,12 +4863,12 @@ var Yl = "SelectBubbleInput", Mo = u.forwardRef(
4838
4863
  );
4839
4864
  }
4840
4865
  );
4841
- Mo.displayName = Yl;
4866
+ Mo.displayName = Xl;
4842
4867
  function Lo(e) {
4843
4868
  return e === "" || e === void 0;
4844
4869
  }
4845
4870
  function Do(e) {
4846
- const t = We(e), n = u.useRef(""), r = u.useRef(0), o = u.useCallback(
4871
+ const t = Ue(e), n = u.useRef(""), r = u.useRef(0), o = u.useCallback(
4847
4872
  (i) => {
4848
4873
  const s = n.current + i;
4849
4874
  t(s), function l(c) {
@@ -4858,18 +4883,18 @@ function Do(e) {
4858
4883
  }
4859
4884
  function Bo(e, t, n) {
4860
4885
  const o = t.length > 1 && Array.from(t).every((c) => c === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
4861
- let i = Xl(e, Math.max(a, 0));
4886
+ let i = Kl(e, Math.max(a, 0));
4862
4887
  o.length === 1 && (i = i.filter((c) => c !== n));
4863
4888
  const l = i.find(
4864
4889
  (c) => c.textValue.toLowerCase().startsWith(o.toLowerCase())
4865
4890
  );
4866
4891
  return l !== n ? l : void 0;
4867
4892
  }
4868
- function Xl(e, t) {
4893
+ function Kl(e, t) {
4869
4894
  return e.map((n, r) => e[(t + r) % e.length]);
4870
4895
  }
4871
- var Kl = po, zo = vo, Fo = mo, Gl = wo, Zl = bo, ql = So, Ql = Ao, Jl = Po, ec = Io, tc = _o, nc = No;
4872
- const rc = {
4896
+ var Gl = po, zo = vo, Fo = mo, Zl = wo, ql = bo, Ql = So, Jl = Ao, ec = Po, tc = Ro, nc = _o, rc = No;
4897
+ const oc = {
4873
4898
  sm: "w-4 h-4",
4874
4899
  md: "w-6 h-6"
4875
4900
  };
@@ -4884,7 +4909,7 @@ function On({
4884
4909
  {
4885
4910
  className: j(
4886
4911
  "rounded-full object-cover",
4887
- rc[e],
4912
+ oc[e],
4888
4913
  n
4889
4914
  ),
4890
4915
  src: `https://storage.googleapis.com/eleven-public-cdn/images/flags/circle-flags/${t}.svg`,
@@ -4894,9 +4919,9 @@ function On({
4894
4919
  );
4895
4920
  }
4896
4921
  function Vo({ children: e, ...t }) {
4897
- const [n, r] = be(!1), { language: o, setLanguage: a, options: i } = rt(), s = Ca();
4922
+ const [n, r] = ke(!1), { language: o, setLanguage: a, options: i } = rt(), s = Ca();
4898
4923
  return /* @__PURE__ */ P(
4899
- Kl,
4924
+ Gl,
4900
4925
  {
4901
4926
  open: n,
4902
4927
  value: o.value.languageCode,
@@ -4908,8 +4933,8 @@ function Vo({ children: e, ...t }) {
4908
4933
  },
4909
4934
  children: [
4910
4935
  e,
4911
- /* @__PURE__ */ h(Gl, { container: s, children: /* @__PURE__ */ P(
4912
- Zl,
4936
+ /* @__PURE__ */ h(Zl, { container: s, children: /* @__PURE__ */ P(
4937
+ ql,
4913
4938
  {
4914
4939
  className: "overflow-hidden bg-base border border-base-border rounded-dropdown-sheet max-h-[min(384px,var(--radix-select-content-available-height))] min-w-[var(--radix-select-trigger-width)] z-10",
4915
4940
  position: "popper",
@@ -4921,21 +4946,21 @@ function Vo({ children: e, ...t }) {
4921
4946
  onEscapeKeyDown: () => r(!1),
4922
4947
  ...t,
4923
4948
  children: [
4924
- /* @__PURE__ */ h(tc, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-up" }) }),
4925
- /* @__PURE__ */ h(ql, { className: "p-1.5", children: i.value.map((l) => /* @__PURE__ */ P(
4926
- Ql,
4949
+ /* @__PURE__ */ h(nc, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(We, { size: "sm", name: "chevron-up" }) }),
4950
+ /* @__PURE__ */ h(Ql, { className: "p-1.5", children: i.value.map((l) => /* @__PURE__ */ P(
4951
+ Jl,
4927
4952
  {
4928
4953
  value: l.languageCode,
4929
4954
  className: "flex select-none items-center p-1.5 pr-3 gap-2 cursor-pointer rounded-input relative focus-visible:outline-none data-[highlighted]:bg-base-active text-sm",
4930
4955
  children: [
4931
4956
  /* @__PURE__ */ h(On, { flagCode: l.flagCode }),
4932
- /* @__PURE__ */ h(Jl, { children: l.name }),
4933
- /* @__PURE__ */ h(ec, { className: "text-base-primary p-1.5 -mr-1.5 ml-auto", children: /* @__PURE__ */ h(Je, { size: "sm", name: "check" }) })
4957
+ /* @__PURE__ */ h(ec, { children: l.name }),
4958
+ /* @__PURE__ */ h(tc, { className: "text-base-primary p-1.5 -mr-1.5 ml-auto", children: /* @__PURE__ */ h(We, { size: "sm", name: "check" }) })
4934
4959
  ]
4935
4960
  },
4936
4961
  l.languageCode
4937
4962
  )) }),
4938
- /* @__PURE__ */ h(nc, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
4963
+ /* @__PURE__ */ h(rc, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(We, { size: "sm", name: "chevron-down" }) })
4939
4964
  ]
4940
4965
  }
4941
4966
  ) })
@@ -4943,7 +4968,7 @@ function Vo({ children: e, ...t }) {
4943
4968
  }
4944
4969
  );
4945
4970
  }
4946
- function oc({
4971
+ function ac({
4947
4972
  className: e,
4948
4973
  ...t
4949
4974
  }) {
@@ -4960,12 +4985,12 @@ function oc({
4960
4985
  children: [
4961
4986
  /* @__PURE__ */ h(On, { size: "sm", flagCode: r.value.flagCode }),
4962
4987
  r.value.name,
4963
- /* @__PURE__ */ h(Fo, { className: "text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
4988
+ /* @__PURE__ */ h(Fo, { className: "text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(We, { size: "sm", name: "chevron-down" }) })
4964
4989
  ]
4965
4990
  }
4966
4991
  ) }) : null;
4967
4992
  }
4968
- function ac({
4993
+ function ic({
4969
4994
  className: e,
4970
4995
  ...t
4971
4996
  }) {
@@ -4984,10 +5009,10 @@ function Mn({
4984
5009
  visible: e,
4985
5010
  ...t
4986
5011
  }) {
4987
- const n = re(), { isMuted: r, isMutingEnabled: o, setIsMuted: a } = vr(), i = Te(() => {
5012
+ const n = re(), { isMuted: r, isMutingEnabled: o, setIsMuted: a } = vr(), i = le(() => {
4988
5013
  a(!r.peek());
4989
5014
  }, [a]);
4990
- return o.value ? /* @__PURE__ */ h(ke, { visible: e, className: "p-1", children: /* @__PURE__ */ h(
5015
+ return o.value ? /* @__PURE__ */ h(Te, { visible: e, className: "p-1", children: /* @__PURE__ */ h(
4991
5016
  Me,
4992
5017
  {
4993
5018
  "aria-label": n.mute_microphone,
@@ -5017,48 +5042,74 @@ function Ln({
5017
5042
  }
5018
5043
  );
5019
5044
  }
5020
- function ic({
5045
+ function sc({
5021
5046
  showTranscript: e,
5022
5047
  scrollPinned: t
5023
5048
  }) {
5024
- const [n, r] = be(""), o = zt(), { text_input_enabled: a } = q().value, i = re(), {
5025
- isDisconnected: s,
5026
- status: l,
5027
- startSession: c,
5028
- sendUserMessage: d,
5029
- sendUserActivity: p,
5030
- conversationIndex: g
5031
- } = ne();
5049
+ const n = ce(""), r = zt(), { text_input_enabled: o } = q().value, a = re(), {
5050
+ isDisconnected: i,
5051
+ status: s,
5052
+ startSession: l,
5053
+ sendUserMessage: c,
5054
+ sendUserActivity: f,
5055
+ conversationIndex: p
5056
+ } = ne(), g = le(
5057
+ async (v) => {
5058
+ v.preventDefault();
5059
+ const b = n.value.trim();
5060
+ b && (t.value = !0, n.value = "", i.value ? await l(v.currentTarget, b) : c(b));
5061
+ },
5062
+ [n, t, i, l, c]
5063
+ ), w = le(
5064
+ async (v) => {
5065
+ v.key === "Enter" && !v.shiftKey && await g(v);
5066
+ },
5067
+ [g]
5068
+ ), m = le(
5069
+ (v) => {
5070
+ n.value = v.currentTarget.value;
5071
+ },
5072
+ [n]
5073
+ ), d = Y(() => !!n.value.trim());
5032
5074
  return /* @__PURE__ */ P("div", { className: "shrink-0 overflow-hidden flex p-3 items-end justify-end", children: [
5033
- a && /* @__PURE__ */ h(
5034
- ac,
5035
- {
5036
- rows: 1,
5037
- "aria-label": i.input_label,
5038
- value: n,
5039
- onInput: p,
5040
- onChange: (v) => r(v.currentTarget.value),
5041
- onKeyDown: async (v) => {
5042
- v.key === "Enter" && !v.shiftKey && (v.preventDefault(), n.trim() && (t.value = !0, r(""), s.value ? await c(v.currentTarget, n) : d(n)));
5043
- },
5044
- className: "m-1 grow z-1 max-h-[8lh]",
5045
- placeholder: o.value ? s.value && g.value > 0 ? i.input_placeholder_new_conversation : i.input_placeholder_text_only : i.input_placeholder
5046
- }
5047
- ),
5075
+ o && /* @__PURE__ */ P("div", { className: "relative grow min-w-0 flex z-1 m-1", children: [
5076
+ /* @__PURE__ */ h(
5077
+ ic,
5078
+ {
5079
+ rows: 1,
5080
+ "aria-label": a.input_label,
5081
+ value: n,
5082
+ onInput: f,
5083
+ onChange: m,
5084
+ onKeyDown: w,
5085
+ className: "min-w-0 w-full max-h-[8lh] pr-9",
5086
+ placeholder: r.value ? i.value && p.value > 0 ? a.input_placeholder_new_conversation : a.input_placeholder_text_only : a.input_placeholder
5087
+ }
5088
+ ),
5089
+ /* @__PURE__ */ h(se, { active: d, children: /* @__PURE__ */ h(
5090
+ "button",
5091
+ {
5092
+ "aria-label": a.send_message,
5093
+ className: "absolute right-1 bottom-1 w-7 h-7 flex items-center justify-center hover:bg-base-hover active:bg-base-active rounded-button focus-ring transition-[transform,opacity] duration-200 data-hidden:opacity-0 data-hidden:scale-90",
5094
+ onClick: g,
5095
+ children: /* @__PURE__ */ h(We, { name: "send" })
5096
+ }
5097
+ ) })
5098
+ ] }),
5048
5099
  /* @__PURE__ */ P("div", { className: "flex h-11 items-center", children: [
5049
- /* @__PURE__ */ h(Mn, { visible: !o.value && !s.value }),
5100
+ /* @__PURE__ */ h(Mn, { visible: !r.value && !i.value }),
5050
5101
  /* @__PURE__ */ h(
5051
- ke,
5102
+ Te,
5052
5103
  {
5053
- visible: !o.value && (!s.value || e),
5104
+ visible: !r.value && (!i.value || e),
5054
5105
  className: "p-1",
5055
5106
  children: /* @__PURE__ */ h(
5056
5107
  Ln,
5057
5108
  {
5058
- iconOnly: !s.value,
5059
- isDisconnected: s.value,
5060
- disabled: l.value === "disconnecting" || l.value === "connecting",
5061
- children: i.new_call
5109
+ iconOnly: !i.value,
5110
+ isDisconnected: i.value,
5111
+ disabled: s.value === "disconnecting" || s.value === "connecting",
5112
+ children: a.new_call
5062
5113
  }
5063
5114
  )
5064
5115
  }
@@ -5066,12 +5117,12 @@ function ic({
5066
5117
  ] })
5067
5118
  ] });
5068
5119
  }
5069
- function sc({
5120
+ function lc({
5070
5121
  entry: e,
5071
5122
  animateIn: t
5072
5123
  }) {
5073
5124
  const n = re(), { previewUrl: r } = bn(), { lastId: o } = ne();
5074
- return /* @__PURE__ */ h(ce, { initial: !t, active: !0, children: e.type === "message" ? /* @__PURE__ */ P(
5125
+ return /* @__PURE__ */ h(se, { initial: !t, active: !0, children: e.type === "message" ? /* @__PURE__ */ P(
5075
5126
  "div",
5076
5127
  {
5077
5128
  className: j(
@@ -5122,15 +5173,15 @@ function sc({
5122
5173
  ] })
5123
5174
  ] }) });
5124
5175
  }
5125
- const lc = 16;
5126
- function cc({ scrollPinned: e, transcript: t }) {
5127
- const n = we(null), r = (a) => {
5176
+ const cc = 16;
5177
+ function uc({ scrollPinned: e, transcript: t }) {
5178
+ const n = be(null), r = (a) => {
5128
5179
  var i;
5129
5180
  (i = n.current) == null || i.scrollTo({
5130
5181
  top: n.current.scrollHeight,
5131
5182
  behavior: a ? "smooth" : "instant"
5132
5183
  });
5133
- }, o = we(!0);
5184
+ }, o = be(!0);
5134
5185
  return Oe(() => {
5135
5186
  o.current = !1, r(!1);
5136
5187
  }, []), ze(() => {
@@ -5140,11 +5191,11 @@ function cc({ scrollPinned: e, transcript: t }) {
5140
5191
  {
5141
5192
  ref: n,
5142
5193
  onScroll: (a) => {
5143
- e.value = a.currentTarget.scrollTop >= a.currentTarget.scrollHeight - a.currentTarget.clientHeight - lc;
5194
+ e.value = a.currentTarget.scrollTop >= a.currentTarget.scrollHeight - a.currentTarget.clientHeight - cc;
5144
5195
  },
5145
5196
  className: "px-4 pb-3 grow flex flex-col gap-3 overflow-x-hidden overflow-y-auto",
5146
5197
  children: t.value.map((a, i) => /* @__PURE__ */ h(
5147
- sc,
5198
+ lc,
5148
5199
  {
5149
5200
  entry: a,
5150
5201
  animateIn: !o.current
@@ -5154,7 +5205,7 @@ function cc({ scrollPinned: e, transcript: t }) {
5154
5205
  }
5155
5206
  );
5156
5207
  }
5157
- const uc = {
5208
+ const dc = {
5158
5209
  "top-left": "origin-top-left",
5159
5210
  top: "origin-top",
5160
5211
  "top-right": "origin-top-right",
@@ -5162,51 +5213,51 @@ const uc = {
5162
5213
  "bottom-right": "origin-bottom-right",
5163
5214
  bottom: "origin-bottom"
5164
5215
  };
5165
- function dc({ open: e }) {
5166
- const t = re(), n = wn(), r = zt(), o = q(), a = o.value.placement, { isDisconnected: i, startSession: s, transcript: l, conversationIndex: c } = ne(), d = xr(), p = Y(() => {
5216
+ function fc({ open: e }) {
5217
+ const t = re(), n = wn(), r = zt(), o = q(), a = o.value.placement, { isDisconnected: i, startSession: s, transcript: l, conversationIndex: c } = ne(), f = xr(), p = Y(() => {
5167
5218
  var m;
5168
- return n.value || r.value ? !d.value || !n.value ? l.value : [
5219
+ return n.value || r.value ? !f.value || !n.value ? l.value : [
5169
5220
  {
5170
5221
  type: "message",
5171
5222
  role: "ai",
5172
- message: d.value,
5223
+ message: f.value,
5173
5224
  isText: !0,
5174
5225
  conversationIndex: ((m = l.value[0]) == null ? void 0 : m.conversationIndex) ?? c.peek()
5175
5226
  },
5176
5227
  ...l.value
5177
5228
  ] : o.value.transcript_enabled ? l.value : l.value.filter(
5178
- (f) => f.type !== "message" || f.isText
5229
+ (d) => d.type !== "message" || d.isText
5179
5230
  );
5180
- }), g = p.value.length > 0 || !i.value && o.value.transcript_enabled, v = ue(!0);
5181
- return /* @__PURE__ */ h(ce, { initial: !1, active: e, children: /* @__PURE__ */ P(
5231
+ }), g = p.value.length > 0 || !i.value && o.value.transcript_enabled, w = ce(!0);
5232
+ return /* @__PURE__ */ h(se, { initial: !1, active: e, children: /* @__PURE__ */ P(
5182
5233
  "div",
5183
5234
  {
5184
5235
  className: j(
5185
5236
  "flex flex-col overflow-hidden absolute bg-base shadow-lg pointer-events-auto rounded-sheet w-full max-w-[400px] h-[calc(100%-80px)] max-h-[550px]",
5186
5237
  "transition-[transform,opacity] duration-200 data-hidden:scale-90 data-hidden:opacity-0",
5187
- uc[a],
5238
+ dc[a],
5188
5239
  a.startsWith("top") ? "top-20" : "bottom-20"
5189
5240
  ),
5190
5241
  children: [
5191
5242
  /* @__PURE__ */ P("div", { className: "bg-base shrink-0 flex gap-2 p-4 items-start", children: [
5192
5243
  /* @__PURE__ */ h("div", { className: "relative w-16 h-16" }),
5193
- /* @__PURE__ */ h(ce, { active: g && !i.value, children: /* @__PURE__ */ h(an, { className: "rounded-bl-[calc(var(--el-bubble-radius)/3)] transition-opacity data-hidden:opacity-0" }) })
5244
+ /* @__PURE__ */ h(se, { active: g && !i.value, children: /* @__PURE__ */ h(an, { className: "rounded-bl-[calc(var(--el-bubble-radius)/3)] transition-opacity data-hidden:opacity-0" }) })
5194
5245
  ] }),
5195
5246
  /* @__PURE__ */ h(
5196
- cc,
5247
+ uc,
5197
5248
  {
5198
5249
  transcript: p,
5199
- scrollPinned: v
5250
+ scrollPinned: w
5200
5251
  }
5201
5252
  ),
5202
5253
  /* @__PURE__ */ h(
5203
- ic,
5254
+ sc,
5204
5255
  {
5205
- scrollPinned: v,
5256
+ scrollPinned: w,
5206
5257
  showTranscript: g
5207
5258
  }
5208
5259
  ),
5209
- /* @__PURE__ */ h(ce, { active: !g || i.value, children: /* @__PURE__ */ h("div", { className: "absolute top-0 left-0 right-0 p-4 flex justify-center transition-[opacity,transform] duration-200 data-hidden:opacity-0 data-hidden:-translate-y-4", children: /* @__PURE__ */ h(oc, {}) }) }),
5260
+ /* @__PURE__ */ h(se, { active: !g || i.value, children: /* @__PURE__ */ h("div", { className: "absolute top-0 left-0 right-0 p-4 flex justify-center transition-[opacity,transform] duration-200 data-hidden:opacity-0 data-hidden:-translate-y-4", children: /* @__PURE__ */ h(ac, {}) }) }),
5210
5261
  /* @__PURE__ */ P(
5211
5262
  "div",
5212
5263
  {
@@ -5217,7 +5268,7 @@ function dc({ open: e }) {
5217
5268
  children: [
5218
5269
  /* @__PURE__ */ h(ot, { size: "lg" }),
5219
5270
  /* @__PURE__ */ h(
5220
- ce,
5271
+ se,
5221
5272
  {
5222
5273
  active: !g && i.value && !n.value,
5223
5274
  children: /* @__PURE__ */ h("div", { className: "absolute bottom-0 p-1 rounded-[calc(var(--el-button-radius)+4px)] bg-base left-1/2 -translate-x-1/2 translate-y-1/2 transition-[opacity,transform] data-hidden:opacity-0 data-hidden:scale-100 scale-150", children: /* @__PURE__ */ h(
@@ -5231,7 +5282,7 @@ function dc({ open: e }) {
5231
5282
  ) })
5232
5283
  }
5233
5284
  ),
5234
- /* @__PURE__ */ h(ce, { active: !g && !i.value, children: /* @__PURE__ */ h("div", { className: "absolute -bottom-3 left-1/2 -translate-x-1/2 translate-y-full transition-[opacity,transform] data-hidden:opacity-0 data-hidden:scale-75", children: /* @__PURE__ */ h(an, {}) }) })
5285
+ /* @__PURE__ */ h(se, { active: !g && !i.value, children: /* @__PURE__ */ h("div", { className: "absolute -bottom-3 left-1/2 -translate-x-1/2 translate-y-full transition-[opacity,transform] data-hidden:opacity-0 data-hidden:scale-75", children: /* @__PURE__ */ h(an, {}) }) })
5235
5286
  ]
5236
5287
  }
5237
5288
  )
@@ -5240,12 +5291,12 @@ function dc({ open: e }) {
5240
5291
  ) });
5241
5292
  }
5242
5293
  function $o({ expanded: e }) {
5243
- const t = zt(), n = q().value.variant, { isDisconnected: r } = ne(), o = re(), a = Te(() => {
5294
+ const t = zt(), n = q().value.variant, { isDisconnected: r } = ne(), o = re(), a = le(() => {
5244
5295
  e.value = !e.value;
5245
5296
  }, [e]);
5246
5297
  return /* @__PURE__ */ P(wt, { children: [
5247
5298
  n === "full" && /* @__PURE__ */ h(
5248
- ke,
5299
+ Te,
5249
5300
  {
5250
5301
  visible: !e.value && !r.value,
5251
5302
  className: "p-1",
@@ -5253,7 +5304,7 @@ function $o({ expanded: e }) {
5253
5304
  }
5254
5305
  ),
5255
5306
  /* @__PURE__ */ h(
5256
- ke,
5307
+ Te,
5257
5308
  {
5258
5309
  grow: n !== "tiny",
5259
5310
  visible: !t.value && !e.value && !r.value,
@@ -5267,7 +5318,7 @@ function $o({ expanded: e }) {
5267
5318
  visible: !t.value && !e.value && !r.value
5268
5319
  }
5269
5320
  ),
5270
- /* @__PURE__ */ h(ke, { grow: r.value, visible: !0, className: "p-1", children: /* @__PURE__ */ h(
5321
+ /* @__PURE__ */ h(Te, { grow: r.value, visible: !0, className: "p-1", children: /* @__PURE__ */ h(
5271
5322
  Me,
5272
5323
  {
5273
5324
  className: "w-full",
@@ -5284,7 +5335,7 @@ function $o({ expanded: e }) {
5284
5335
  ) })
5285
5336
  ] });
5286
5337
  }
5287
- function fc({
5338
+ function pc({
5288
5339
  expanded: e,
5289
5340
  className: t,
5290
5341
  ...n
@@ -5301,7 +5352,7 @@ function fc({
5301
5352
  ...n,
5302
5353
  children: [
5303
5354
  /* @__PURE__ */ h(
5304
- ke,
5355
+ Te,
5305
5356
  {
5306
5357
  visible: !e.value && r.value,
5307
5358
  className: "p-1 !min-w-60",
@@ -5316,7 +5367,7 @@ function fc({
5316
5367
  }
5317
5368
  );
5318
5369
  }
5319
- function pc({
5370
+ function hc({
5320
5371
  expanded: e,
5321
5372
  className: t,
5322
5373
  ...n
@@ -5327,15 +5378,15 @@ function pc({
5327
5378
  className: j("rounded-compact-sheet flex items-center p-2", t),
5328
5379
  ...n,
5329
5380
  children: [
5330
- /* @__PURE__ */ h(ke, { visible: !e.value, className: "p-1", children: /* @__PURE__ */ h(ot, {}) }),
5381
+ /* @__PURE__ */ h(Te, { visible: !e.value, className: "p-1", children: /* @__PURE__ */ h(ot, {}) }),
5331
5382
  /* @__PURE__ */ h($o, { expanded: e })
5332
5383
  ]
5333
5384
  }
5334
5385
  );
5335
5386
  }
5336
- function hc({ visible: e, className: t, ...n }) {
5387
+ function vc({ visible: e, className: t, ...n }) {
5337
5388
  const r = re(), { language: o, showPicker: a } = rt();
5338
- return a.value ? /* @__PURE__ */ h(ke, { visible: e, className: "p-1", children: /* @__PURE__ */ h(Vo, { children: /* @__PURE__ */ P(
5389
+ return a.value ? /* @__PURE__ */ h(Te, { visible: e, className: "p-1", children: /* @__PURE__ */ h(Vo, { children: /* @__PURE__ */ P(
5339
5390
  zo,
5340
5391
  {
5341
5392
  className: j(
@@ -5346,7 +5397,7 @@ function hc({ visible: e, className: t, ...n }) {
5346
5397
  ...n,
5347
5398
  children: [
5348
5399
  /* @__PURE__ */ h(On, { flagCode: o.value.flagCode }),
5349
- /* @__PURE__ */ h(Fo, { className: "px-1 text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
5400
+ /* @__PURE__ */ h(Fo, { className: "px-1 text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(We, { size: "sm", name: "chevron-down" }) })
5350
5401
  ]
5351
5402
  }
5352
5403
  ) }) }) : null;
@@ -5363,11 +5414,11 @@ function Wo() {
5363
5414
  disabled: n.value === "disconnecting" || n.value === "connecting"
5364
5415
  }
5365
5416
  ),
5366
- /* @__PURE__ */ h(hc, { visible: t.value }),
5417
+ /* @__PURE__ */ h(vc, { visible: t.value }),
5367
5418
  /* @__PURE__ */ h(Mn, { visible: !t.value })
5368
5419
  ] });
5369
5420
  }
5370
- function vc({
5421
+ function gc({
5371
5422
  className: e,
5372
5423
  ...t
5373
5424
  }) {
@@ -5386,13 +5437,13 @@ function vc({
5386
5437
  children: r.main_label
5387
5438
  }
5388
5439
  ),
5389
- /* @__PURE__ */ h(ce, { active: !n.value, children: /* @__PURE__ */ h(an, { className: "absolute top-1/2 -translate-y-1/2 transition-[transform,opacity] duration-200 data-hidden:opacity-0 data-hidden:scale-90" }) })
5440
+ /* @__PURE__ */ h(se, { active: !n.value, children: /* @__PURE__ */ h(an, { className: "absolute top-1/2 -translate-y-1/2 transition-[transform,opacity] duration-200 data-hidden:opacity-0 data-hidden:scale-90" }) })
5390
5441
  ] })
5391
5442
  ] }),
5392
5443
  /* @__PURE__ */ h("div", { className: "flex items-center", children: /* @__PURE__ */ h(Wo, {}) })
5393
5444
  ] });
5394
5445
  }
5395
- function gc({
5446
+ function mc({
5396
5447
  className: e,
5397
5448
  ...t
5398
5449
  }) {
@@ -5408,12 +5459,12 @@ function gc({
5408
5459
  }
5409
5460
  );
5410
5461
  }
5411
- function mc({ expandable: e, expanded: t }) {
5412
- const n = q().value.variant, r = Bt(), { isDisconnected: o } = ne(), a = Te(async () => {
5462
+ function wc({ expandable: e, expanded: t }) {
5463
+ const n = q().value.variant, r = Bt(), { isDisconnected: o } = ne(), a = le(async () => {
5413
5464
  await r.requestTerms(), t.value = !t.peek();
5414
5465
  }, [t]), i = n === "full";
5415
5466
  return e ? /* @__PURE__ */ h(
5416
- i ? fc : pc,
5467
+ i ? pc : hc,
5417
5468
  {
5418
5469
  expanded: t,
5419
5470
  className: j(
@@ -5422,9 +5473,9 @@ function mc({ expandable: e, expanded: t }) {
5422
5473
  ),
5423
5474
  onClick: o.value || t.value ? a : void 0
5424
5475
  }
5425
- ) : /* @__PURE__ */ h(i ? vc : gc, { className: "bg-base shadow-md pointer-events-auto overflow-hidden" });
5476
+ ) : /* @__PURE__ */ h(i ? gc : mc, { className: "bg-base shadow-md pointer-events-auto overflow-hidden" });
5426
5477
  }
5427
- function wc() {
5478
+ function bc() {
5428
5479
  const e = re(), t = q(), { dismissTerms: n, acceptTerms: r } = Bt();
5429
5480
  return /* @__PURE__ */ P("div", { className: "max-w-[400px] flex flex-col gap-2 bg-base shadow-md pointer-events-auto rounded-sheet p-3 text-sm", children: [
5430
5481
  /* @__PURE__ */ h(
@@ -5440,8 +5491,8 @@ function wc() {
5440
5491
  ] })
5441
5492
  ] });
5442
5493
  }
5443
- function bc({ copyText: e, children: t }) {
5444
- const n = re(), [r, o] = be(!1);
5494
+ function xc({ copyText: e, children: t }) {
5495
+ const n = re(), [r, o] = ke(!1);
5445
5496
  Oe(() => {
5446
5497
  if (r) {
5447
5498
  const i = setTimeout(() => {
@@ -5452,14 +5503,14 @@ function bc({ copyText: e, children: t }) {
5452
5503
  };
5453
5504
  }
5454
5505
  }, [r]);
5455
- const a = Te(() => {
5506
+ const a = le(() => {
5456
5507
  const i = Er(e);
5457
5508
  i && (navigator.clipboard.writeText(i), o(!0));
5458
5509
  }, []);
5459
5510
  return /* @__PURE__ */ h(Me, { onClick: a, children: r ? n.copied : t });
5460
5511
  }
5461
- function xc({ sawError: e }) {
5462
- const t = re(), { error: n, lastId: r } = ne(), o = Te(() => {
5512
+ function yc({ sawError: e }) {
5513
+ const t = re(), { error: n, lastId: r } = ne(), o = le(() => {
5463
5514
  e.value = !0;
5464
5515
  }, []);
5465
5516
  return /* @__PURE__ */ P("div", { className: "max-w-[400px] flex flex-col gap-2 bg-base shadow-md pointer-events-auto rounded-sheet p-3 text-sm", children: [
@@ -5476,12 +5527,12 @@ function xc({ sawError: e }) {
5476
5527
  ] })
5477
5528
  ] }),
5478
5529
  /* @__PURE__ */ P("div", { className: "flex justify-end gap-2", children: [
5479
- /* @__PURE__ */ h(bc, { copyText: r, children: t.copy_id }),
5530
+ /* @__PURE__ */ h(xc, { copyText: r, children: t.copy_id }),
5480
5531
  /* @__PURE__ */ h(Me, { variant: "primary", onClick: o, children: "Close" })
5481
5532
  ] })
5482
5533
  ] });
5483
5534
  }
5484
- function yc() {
5535
+ function Cc() {
5485
5536
  const e = q();
5486
5537
  return e.value.disable_banner ? null : /* @__PURE__ */ P(
5487
5538
  "p",
@@ -5506,56 +5557,56 @@ function yc() {
5506
5557
  }
5507
5558
  );
5508
5559
  }
5509
- const Ze = {
5560
+ const qe = {
5510
5561
  left: "items-start",
5511
5562
  center: "items-center",
5512
5563
  right: "items-end"
5513
- }, qe = {
5564
+ }, Qe = {
5514
5565
  top: "flex-col-reverse justify-end",
5515
5566
  bottom: "flex-col justify-end"
5516
- }, Cc = {
5517
- "top-left": `${qe.top} ${Ze.left}`,
5518
- top: `${qe.top} ${Ze.center}`,
5519
- "top-right": `${qe.top} ${Ze.right}`,
5520
- "bottom-left": `${qe.bottom} ${Ze.left}`,
5521
- bottom: `${qe.bottom} ${Ze.center}`,
5522
- "bottom-right": `${qe.bottom} ${Ze.right}`
5567
+ }, Sc = {
5568
+ "top-left": `${Qe.top} ${qe.left}`,
5569
+ top: `${Qe.top} ${qe.center}`,
5570
+ "top-right": `${Qe.top} ${qe.right}`,
5571
+ "bottom-left": `${Qe.bottom} ${qe.left}`,
5572
+ bottom: `${Qe.bottom} ${qe.center}`,
5573
+ "bottom-right": `${Qe.bottom} ${qe.right}`
5523
5574
  }, At = {
5524
5575
  display: "none"
5525
- }, Sc = sr(function() {
5526
- const t = ue(!1), n = q(), r = ue(!1), { error: o } = ne(), a = Bt(), i = Y(
5576
+ }, Ec = sr(function() {
5577
+ const t = ce(!1), n = q(), r = ce(!1), { error: o } = ne(), a = Bt(), i = Y(
5527
5578
  () => n.value.transcript_enabled || n.value.text_input_enabled
5528
5579
  ), s = Y(
5529
5580
  () => j(
5530
5581
  "overlay !flex transition-opacity duration-200 data-hidden:opacity-0",
5531
- Cc[n.value.placement]
5582
+ Sc[n.value.placement]
5532
5583
  )
5533
5584
  );
5534
5585
  ze(() => {
5535
5586
  o.value && (i.value ? (r.value = !0, t.value = !0) : r.value = !1);
5536
5587
  });
5537
- const l = Y(() => !i.value && o.value && !r.value ? "error" : !a.termsAccepted.value && a.termsShown.value ? "terms" : "conversation"), c = Y(() => l.value === "error"), d = Y(() => l.value === "terms"), p = Y(() => l.value === "conversation");
5588
+ const l = Y(() => !i.value && o.value && !r.value ? "error" : !a.termsAccepted.value && a.termsShown.value ? "terms" : "conversation"), c = Y(() => l.value === "error"), f = Y(() => l.value === "terms"), p = Y(() => l.value === "conversation");
5538
5589
  return /* @__PURE__ */ P(wt, { children: [
5539
- /* @__PURE__ */ h(ce, { initial: !1, active: p, children: /* @__PURE__ */ P(yt, { className: s, style: At, children: [
5540
- i.value && /* @__PURE__ */ h(dc, { open: t }),
5541
- /* @__PURE__ */ h(mc, { expandable: i.value, expanded: t })
5590
+ /* @__PURE__ */ h(se, { initial: !1, active: p, children: /* @__PURE__ */ P(yt, { className: s, style: At, children: [
5591
+ i.value && /* @__PURE__ */ h(fc, { open: t }),
5592
+ /* @__PURE__ */ h(wc, { expandable: i.value, expanded: t })
5542
5593
  ] }) }),
5543
- /* @__PURE__ */ h(ce, { initial: !1, active: d, children: /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(wc, {}) }) }),
5544
- /* @__PURE__ */ h(ce, { initial: !1, active: c, children: /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(xc, { sawError: r }) }) }),
5545
- /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(yc, {}) })
5594
+ /* @__PURE__ */ h(se, { initial: !1, active: f, children: /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(bc, {}) }) }),
5595
+ /* @__PURE__ */ h(se, { initial: !1, active: c, children: /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(yc, { sawError: r }) }) }),
5596
+ /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(Cc, {}) })
5546
5597
  ] });
5547
5598
  });
5548
- function Ec(e) {
5599
+ function kc(e) {
5549
5600
  return /* @__PURE__ */ h(oa, { value: e, children: /* @__PURE__ */ h(ia, { children: /* @__PURE__ */ h(va, { children: /* @__PURE__ */ h(da, { children: /* @__PURE__ */ h(sa, { children: /* @__PURE__ */ h(la, { children: /* @__PURE__ */ h(ca, { children: /* @__PURE__ */ h(fa, { children: /* @__PURE__ */ h(xa, { children: /* @__PURE__ */ P(ya, { children: [
5550
5601
  /* @__PURE__ */ h(ma, {}),
5551
- /* @__PURE__ */ h(Sc, {})
5602
+ /* @__PURE__ */ h(Ec, {})
5552
5603
  ] }) }) }) }) }) }) }) }) }) });
5553
5604
  }
5554
- function Mc(e = "elevenlabs-convai") {
5555
- Yo(Ec, e, [...rn], {
5605
+ function Lc(e = "elevenlabs-convai") {
5606
+ Yo(kc, e, [...rn], {
5556
5607
  shadow: !0
5557
5608
  });
5558
5609
  }
5559
5610
  export {
5560
- Mc as registerWidget
5611
+ Lc as registerWidget
5561
5612
  };