@elevenlabs/convai-widget-core 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +822 -819
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var J = (e, t, n) =>
|
|
4
|
-
import
|
|
1
|
+
var Uo = Object.defineProperty;
|
|
2
|
+
var Ho = (e, t, n) => t in e ? Uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var J = (e, t, n) => Ho(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import jo from "preact-custom-element";
|
|
5
5
|
import { jsx as h, jsxs as I, Fragment as wt } from "preact/jsx-runtime";
|
|
6
6
|
import * as u from "preact/compat";
|
|
7
|
-
import Ne, { memo as
|
|
7
|
+
import Ne, { memo as sr, useContext as Yo, createContext as pe, useMemo as Re, useRef as we, useEffect as Oe, useState as be, useCallback as Te, forwardRef as Xo, useLayoutEffect as Ko } from "preact/compat";
|
|
8
8
|
import { signal as le, computed as xe, useComputed as X, useSignal as ue, useSignalEffect as ze } from "@preact/signals";
|
|
9
|
-
import { Conversation as
|
|
9
|
+
import { Conversation as Go } from "@elevenlabs/client";
|
|
10
10
|
import { clsx as j } from "clsx";
|
|
11
|
-
import { jsx as k, jsxs as
|
|
11
|
+
import { jsx as k, jsxs as Nt, Fragment as mn } from "preact/compat/jsx-runtime";
|
|
12
12
|
function Qe(e) {
|
|
13
13
|
return e ? e === "true" ? !0 : e === "false" ? !1 : null : null;
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const rn = [
|
|
16
16
|
"variant",
|
|
17
17
|
"placement",
|
|
18
18
|
"override-config",
|
|
@@ -35,37 +35,37 @@ const nn = [
|
|
|
35
35
|
"transcript",
|
|
36
36
|
"text-input",
|
|
37
37
|
"text-contents"
|
|
38
|
-
], Go = '@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}.inline-flex{display:inline-flex}.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}:host,:root{--el-base: #ffffff;--el-base-hover: #f9fafb;--el-base-active: #f3f4f6;--el-base-border: #e5e7eb;--el-base-subtle: #6b7280;--el-base-primary: #000000;--el-base-error: #ef4444;--el-accent: #000000;--el-accent-hover: #1f2937;--el-accent-active: #374151;--el-accent-border: #4b5563;--el-accent-subtle: #6b7280;--el-accent-primary: #ffffff;--el-overlay-padding: 32px;--el-button-radius: 18px;--el-input-radius: 10px;--el-bubble-radius: 15px;--el-sheet-radius: calc(var(--el-button-radius) + 6px);--el-compact-sheet-radius: calc(var(--el-button-radius) + 12px);--el-dropdown-sheet-radius: calc(var(--el-input-radius) + 6px)}.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)}', Zo = ir(function() {
|
|
39
|
-
return /* @__PURE__ */ h("style", { children:
|
|
38
|
+
], Zo = '@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}:host,:root{--el-base: #ffffff;--el-base-hover: #f9fafb;--el-base-active: #f3f4f6;--el-base-border: #e5e7eb;--el-base-subtle: #6b7280;--el-base-primary: #000000;--el-base-error: #ef4444;--el-accent: #000000;--el-accent-hover: #1f2937;--el-accent-active: #374151;--el-accent-border: #4b5563;--el-accent-subtle: #6b7280;--el-accent-primary: #ffffff;--el-overlay-padding: 32px;--el-button-radius: 18px;--el-input-radius: 10px;--el-bubble-radius: 15px;--el-sheet-radius: calc(var(--el-button-radius) + 6px);--el-compact-sheet-radius: calc(var(--el-button-radius) + 12px);--el-dropdown-sheet-radius: calc(var(--el-input-radius) + 6px)}.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)}', qo = sr(function() {
|
|
39
|
+
return /* @__PURE__ */ h("style", { children: Zo });
|
|
40
40
|
});
|
|
41
41
|
function he(e) {
|
|
42
|
-
const t =
|
|
42
|
+
const t = Yo(e);
|
|
43
43
|
if (t == null)
|
|
44
44
|
throw new Error(
|
|
45
45
|
`${e.displayName} cannot be used outside of provider`
|
|
46
46
|
);
|
|
47
47
|
return t;
|
|
48
48
|
}
|
|
49
|
-
const
|
|
50
|
-
function
|
|
49
|
+
const lr = pe(null);
|
|
50
|
+
function Qo({
|
|
51
51
|
value: e,
|
|
52
52
|
children: t
|
|
53
53
|
}) {
|
|
54
54
|
const n = Re(
|
|
55
55
|
() => Object.fromEntries(
|
|
56
|
-
|
|
56
|
+
rn.map((r) => [r, le(e[r])])
|
|
57
57
|
),
|
|
58
58
|
[]
|
|
59
59
|
);
|
|
60
|
-
return
|
|
60
|
+
return rn.forEach((r) => {
|
|
61
61
|
n[r].value = e[r];
|
|
62
|
-
}), /* @__PURE__ */ h(
|
|
62
|
+
}), /* @__PURE__ */ h(lr.Provider, { value: n, children: t });
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
return he(
|
|
64
|
+
function Jo() {
|
|
65
|
+
return he(lr);
|
|
66
66
|
}
|
|
67
67
|
function H(e) {
|
|
68
|
-
return
|
|
68
|
+
return Jo()[e];
|
|
69
69
|
}
|
|
70
70
|
const pt = {
|
|
71
71
|
en: { name: "English", flagCode: "us", languageCode: "en" },
|
|
@@ -105,14 +105,14 @@ const pt = {
|
|
|
105
105
|
no: { name: "Norsk", flagCode: "no", languageCode: "no" },
|
|
106
106
|
vi: { name: "Tiếng Việt", flagCode: "vn", languageCode: "vi" }
|
|
107
107
|
};
|
|
108
|
-
function
|
|
108
|
+
function Yt(e) {
|
|
109
109
|
return Object.keys(pt).includes(e ?? "");
|
|
110
110
|
}
|
|
111
|
-
const
|
|
112
|
-
function
|
|
113
|
-
return
|
|
111
|
+
const Dn = ["tiny", "compact", "full"];
|
|
112
|
+
function ea(e) {
|
|
113
|
+
return Dn.includes(e) ? e : Dn[0];
|
|
114
114
|
}
|
|
115
|
-
const
|
|
115
|
+
const ta = [
|
|
116
116
|
"top-left",
|
|
117
117
|
"top",
|
|
118
118
|
"top-right",
|
|
@@ -120,10 +120,10 @@ const ea = [
|
|
|
120
120
|
"bottom",
|
|
121
121
|
"bottom-right"
|
|
122
122
|
];
|
|
123
|
-
function
|
|
124
|
-
return
|
|
123
|
+
function na(e) {
|
|
124
|
+
return ta.includes(e) ? e : "bottom-right";
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const cr = {
|
|
127
127
|
main_label: "Need help?",
|
|
128
128
|
start_call: "Start a call",
|
|
129
129
|
start_chat: "Start a chat",
|
|
@@ -149,14 +149,14 @@ const lr = {
|
|
|
149
149
|
conversation_id: "ID",
|
|
150
150
|
error_occurred: "An error occurred",
|
|
151
151
|
copy_id: "Copy ID"
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
),
|
|
155
|
-
function
|
|
152
|
+
}, ra = Object.keys(
|
|
153
|
+
cr
|
|
154
|
+
), ur = pe(null);
|
|
155
|
+
function oa({
|
|
156
156
|
children: e
|
|
157
157
|
}) {
|
|
158
158
|
const t = H("server-location"), n = Re(() => {
|
|
159
|
-
const r = xe(() =>
|
|
159
|
+
const r = xe(() => aa(t.value));
|
|
160
160
|
return {
|
|
161
161
|
location: r,
|
|
162
162
|
serverUrl: xe(
|
|
@@ -167,12 +167,12 @@ function ra({
|
|
|
167
167
|
)
|
|
168
168
|
};
|
|
169
169
|
}, []);
|
|
170
|
-
return /* @__PURE__ */ h(
|
|
170
|
+
return /* @__PURE__ */ h(ur.Provider, { value: n, children: e });
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
return he(
|
|
172
|
+
function dr() {
|
|
173
|
+
return he(ur);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function aa(e = "us") {
|
|
176
176
|
switch (e) {
|
|
177
177
|
case "us":
|
|
178
178
|
case "global":
|
|
@@ -183,8 +183,8 @@ function oa(e = "us") {
|
|
|
183
183
|
), "us";
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
function
|
|
186
|
+
const fr = pe(null);
|
|
187
|
+
function ia({ children: e }) {
|
|
188
188
|
const t = Q(), n = X(
|
|
189
189
|
() => t.value.mic_muting_enabled ?? !1
|
|
190
190
|
), r = ue(!1), o = Re(
|
|
@@ -203,13 +203,13 @@ function aa({ children: e }) {
|
|
|
203
203
|
}),
|
|
204
204
|
[]
|
|
205
205
|
);
|
|
206
|
-
return /* @__PURE__ */ h(
|
|
206
|
+
return /* @__PURE__ */ h(fr.Provider, { value: o, children: e });
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return he(
|
|
208
|
+
function pr() {
|
|
209
|
+
return he(fr);
|
|
210
210
|
}
|
|
211
|
-
const
|
|
212
|
-
function
|
|
211
|
+
const hr = pe(null);
|
|
212
|
+
function sa({
|
|
213
213
|
children: e
|
|
214
214
|
}) {
|
|
215
215
|
const { language: t } = rt(), n = H("override-prompt"), r = H("override-first-message"), o = H("override-voice-id"), a = H("override-text-only"), i = X(() => ({
|
|
@@ -235,7 +235,7 @@ function ia({
|
|
|
235
235
|
`[ConversationalAI] Cannot parse dynamic-variables: ${m == null ? void 0 : m.message}`
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
|
-
}), { webSocketUrl: c } =
|
|
238
|
+
}), { webSocketUrl: c } = dr(), d = H("agent-id"), p = H("signed-url"), g = wn(), v = X(() => {
|
|
239
239
|
const m = {
|
|
240
240
|
dynamicVariables: l.value,
|
|
241
241
|
overrides: i.value,
|
|
@@ -254,18 +254,18 @@ function ia({
|
|
|
254
254
|
), null);
|
|
255
255
|
});
|
|
256
256
|
return v.value ? /* @__PURE__ */ h(
|
|
257
|
-
|
|
257
|
+
hr.Provider,
|
|
258
258
|
{
|
|
259
259
|
value: v,
|
|
260
260
|
children: e
|
|
261
261
|
}
|
|
262
262
|
) : null;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
return he(
|
|
264
|
+
function la() {
|
|
265
|
+
return he(hr);
|
|
266
266
|
}
|
|
267
|
-
const
|
|
268
|
-
function
|
|
267
|
+
const vr = pe(null);
|
|
268
|
+
function ca({ children: e }) {
|
|
269
269
|
const t = Q(), n = Re(() => {
|
|
270
270
|
const r = t.peek().terms_key, o = r ? !!localStorage.getItem(r) : !1, a = le(!1), i = le(o), s = xe(
|
|
271
271
|
() => !t.value.terms_html || i.value
|
|
@@ -289,14 +289,14 @@ function la({ children: e }) {
|
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
}, []);
|
|
292
|
-
return /* @__PURE__ */ h(
|
|
292
|
+
return /* @__PURE__ */ h(vr.Provider, { value: n, children: e });
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
return he(
|
|
294
|
+
function Bt() {
|
|
295
|
+
return he(vr);
|
|
296
296
|
}
|
|
297
|
-
const
|
|
298
|
-
function
|
|
299
|
-
const t =
|
|
297
|
+
const gr = pe(null);
|
|
298
|
+
function ua({ children: e }) {
|
|
299
|
+
const t = da();
|
|
300
300
|
return ze(() => {
|
|
301
301
|
if (t.conversationTextOnly.value === !0) {
|
|
302
302
|
t.transcript.value;
|
|
@@ -311,16 +311,17 @@ function ca({ children: e }) {
|
|
|
311
311
|
clearTimeout(n);
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
|
-
}), /* @__PURE__ */ h(
|
|
314
|
+
}), /* @__PURE__ */ h(gr.Provider, { value: t, children: e });
|
|
315
315
|
}
|
|
316
316
|
function ne() {
|
|
317
|
-
return he(
|
|
317
|
+
return he(gr);
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
const e = we(null), t = we(null), n = Q(), r =
|
|
319
|
+
function da() {
|
|
320
|
+
const e = we(null), t = we(null), n = Q(), r = wr(), o = Bt(), a = la(), { isMuted: i } = pr();
|
|
321
321
|
return ze(() => {
|
|
322
|
-
var
|
|
323
|
-
|
|
322
|
+
var l;
|
|
323
|
+
const s = i.value;
|
|
324
|
+
(l = e == null ? void 0 : e.current) == null || l.setMicMuted(s);
|
|
324
325
|
}), Oe(() => () => {
|
|
325
326
|
var s;
|
|
326
327
|
(s = e.current) == null || s.endSession();
|
|
@@ -346,7 +347,7 @@ function ua() {
|
|
|
346
347
|
let y = structuredClone(a.peek());
|
|
347
348
|
x && n.value.supports_text_only && (y.textOnly = !0, n.value.text_only || (y.overrides ?? (y.overrides = {}), (E = y.overrides).conversation ?? (E.conversation = {}), y.overrides.conversation.textOnly = !0));
|
|
348
349
|
try {
|
|
349
|
-
y =
|
|
350
|
+
y = fa(b, y);
|
|
350
351
|
} catch (T) {
|
|
351
352
|
console.error(
|
|
352
353
|
"[ConversationalAI] Error triggering call event:",
|
|
@@ -363,7 +364,7 @@ function ua() {
|
|
|
363
364
|
}
|
|
364
365
|
] : [];
|
|
365
366
|
try {
|
|
366
|
-
if (t.current =
|
|
367
|
+
if (t.current = Go.startSession({
|
|
367
368
|
...y,
|
|
368
369
|
onModeChange: (C) => {
|
|
369
370
|
c.value = C.mode;
|
|
@@ -403,7 +404,7 @@ function ua() {
|
|
|
403
404
|
C.message
|
|
404
405
|
));
|
|
405
406
|
}
|
|
406
|
-
}), e.current = await t.current,
|
|
407
|
+
}), e.current = await t.current, e.current.setMicMuted(i.peek()), x) {
|
|
407
408
|
const C = e.current;
|
|
408
409
|
setTimeout(() => C.sendUserMessage(x), 100);
|
|
409
410
|
}
|
|
@@ -459,7 +460,7 @@ function ua() {
|
|
|
459
460
|
};
|
|
460
461
|
}, [a, i]);
|
|
461
462
|
}
|
|
462
|
-
function
|
|
463
|
+
function fa(e, t) {
|
|
463
464
|
try {
|
|
464
465
|
const n = new CustomEvent("elevenlabs-convai:call", {
|
|
465
466
|
bubbles: !0,
|
|
@@ -471,11 +472,11 @@ function da(e, t) {
|
|
|
471
472
|
return console.error("[ConversationalAI] Could not trigger call event:", n), t;
|
|
472
473
|
}
|
|
473
474
|
}
|
|
474
|
-
const
|
|
475
|
+
const mr = pe(
|
|
475
476
|
null
|
|
476
477
|
);
|
|
477
|
-
function
|
|
478
|
-
const { serverUrl: t } =
|
|
478
|
+
function pa({ children: e }) {
|
|
479
|
+
const { serverUrl: t } = dr(), n = H("agent-id"), r = H("override-config"), o = ue(null);
|
|
479
480
|
ze(() => {
|
|
480
481
|
if (r.value)
|
|
481
482
|
try {
|
|
@@ -494,7 +495,7 @@ function fa({ children: e }) {
|
|
|
494
495
|
return;
|
|
495
496
|
}
|
|
496
497
|
const v = new AbortController();
|
|
497
|
-
return
|
|
498
|
+
return ha(n.value, t.value, v.signal).then((m) => {
|
|
498
499
|
v.signal.aborted || (o.value = m);
|
|
499
500
|
}).catch((m) => {
|
|
500
501
|
console.error(
|
|
@@ -510,30 +511,30 @@ function fa({ children: e }) {
|
|
|
510
511
|
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;
|
|
511
512
|
return {
|
|
512
513
|
...o.value,
|
|
513
|
-
variant:
|
|
514
|
-
placement:
|
|
514
|
+
variant: ea(v),
|
|
515
|
+
placement: na(m),
|
|
515
516
|
terms_key: f,
|
|
516
517
|
mic_muting_enabled: !w && b,
|
|
517
518
|
transcript_enabled: w || x,
|
|
518
519
|
text_input_enabled: w || y
|
|
519
520
|
};
|
|
520
521
|
});
|
|
521
|
-
return g.value ? /* @__PURE__ */ h(
|
|
522
|
+
return g.value ? /* @__PURE__ */ h(mr.Provider, { value: g, children: e }) : null;
|
|
522
523
|
}
|
|
523
524
|
function Q() {
|
|
524
|
-
return he(
|
|
525
|
+
return he(mr);
|
|
525
526
|
}
|
|
526
|
-
function
|
|
527
|
+
function wn() {
|
|
527
528
|
const e = H("override-text-only"), t = Q();
|
|
528
529
|
return X(
|
|
529
530
|
() => Qe(e.value) ?? t.value.text_only ?? !1
|
|
530
531
|
);
|
|
531
532
|
}
|
|
532
|
-
function
|
|
533
|
-
const e =
|
|
533
|
+
function zt() {
|
|
534
|
+
const e = wn(), { conversationTextOnly: t } = ne();
|
|
534
535
|
return X(() => t.value ?? e.value);
|
|
535
536
|
}
|
|
536
|
-
function
|
|
537
|
+
function wr() {
|
|
537
538
|
const e = H("override-first-message"), t = Q(), { language: n } = rt();
|
|
538
539
|
return X(
|
|
539
540
|
() => {
|
|
@@ -542,7 +543,7 @@ function mr() {
|
|
|
542
543
|
}
|
|
543
544
|
);
|
|
544
545
|
}
|
|
545
|
-
async function
|
|
546
|
+
async function ha(e, t, n) {
|
|
546
547
|
const o = await (await fetch(
|
|
547
548
|
`${t}/v1/convai/agents/${e}/widget`,
|
|
548
549
|
{
|
|
@@ -553,22 +554,22 @@ async function pa(e, t, n) {
|
|
|
553
554
|
throw new Error("Response does not contain widget_config");
|
|
554
555
|
return o.widget_config;
|
|
555
556
|
}
|
|
556
|
-
const
|
|
557
|
-
function
|
|
557
|
+
const br = pe(null);
|
|
558
|
+
function va({
|
|
558
559
|
children: e
|
|
559
560
|
}) {
|
|
560
561
|
const t = Q(), n = H("language"), r = H("override-language"), o = ue(
|
|
561
562
|
n.peek() ?? t.peek().language
|
|
562
563
|
), a = X(
|
|
563
564
|
() => (t.value.supported_language_overrides ?? []).filter(
|
|
564
|
-
|
|
565
|
+
Yt
|
|
565
566
|
)
|
|
566
567
|
), i = X(
|
|
567
568
|
() => a.value.map((l) => pt[l]).sort((l, c) => l.name.localeCompare(c.name))
|
|
568
569
|
), s = Re(
|
|
569
570
|
() => ({
|
|
570
571
|
language: xe(
|
|
571
|
-
() =>
|
|
572
|
+
() => Yt(r.value) ? pt[r.value] : Yt(o.value) && a.value.includes(o.value) ? pt[o.value] : pt[t.value.language]
|
|
572
573
|
),
|
|
573
574
|
setLanguage: (l) => {
|
|
574
575
|
o.value = l;
|
|
@@ -578,13 +579,13 @@ function ha({
|
|
|
578
579
|
}),
|
|
579
580
|
[]
|
|
580
581
|
);
|
|
581
|
-
return /* @__PURE__ */ h(
|
|
582
|
+
return /* @__PURE__ */ h(br.Provider, { value: s, children: e });
|
|
582
583
|
}
|
|
583
584
|
function rt() {
|
|
584
|
-
return he(
|
|
585
|
+
return he(br);
|
|
585
586
|
}
|
|
586
|
-
const
|
|
587
|
-
function
|
|
587
|
+
const xr = pe(null);
|
|
588
|
+
function ga({ children: e }) {
|
|
588
589
|
const t = Q(), { language: n } = rt(), r = H("text-contents"), o = X(() => {
|
|
589
590
|
try {
|
|
590
591
|
if (r.value) {
|
|
@@ -597,23 +598,23 @@ function va({ children: e }) {
|
|
|
597
598
|
}
|
|
598
599
|
return {};
|
|
599
600
|
}), a = Re(() => Object.fromEntries(
|
|
600
|
-
|
|
601
|
+
ra.map((i) => [
|
|
601
602
|
i,
|
|
602
603
|
xe(
|
|
603
604
|
() => {
|
|
604
605
|
var s, l, c, d;
|
|
605
|
-
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]) ??
|
|
606
|
+
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]) ?? cr[i];
|
|
606
607
|
}
|
|
607
608
|
)
|
|
608
609
|
])
|
|
609
610
|
), []);
|
|
610
|
-
return /* @__PURE__ */ h(
|
|
611
|
+
return /* @__PURE__ */ h(xr.Provider, { value: a, children: e });
|
|
611
612
|
}
|
|
612
613
|
function re() {
|
|
613
|
-
return he(
|
|
614
|
+
return he(xr);
|
|
614
615
|
}
|
|
615
|
-
const
|
|
616
|
-
function
|
|
616
|
+
const yr = pe(null);
|
|
617
|
+
function ma({ children: e }) {
|
|
617
618
|
const t = Q(), n = H("avatar-image-url"), r = H("avatar-orb-color-1"), o = H("avatar-orb-color-2"), a = ue(""), i = X(() => n.value ? {
|
|
618
619
|
type: "image",
|
|
619
620
|
url: n.value
|
|
@@ -631,60 +632,60 @@ function ga({ children: e }) {
|
|
|
631
632
|
return i.value.url;
|
|
632
633
|
}
|
|
633
634
|
}), l = Re(() => ({ config: i, previewUrl: s, canvasUrl: a }), []);
|
|
634
|
-
return /* @__PURE__ */ h(
|
|
635
|
+
return /* @__PURE__ */ h(yr.Provider, { value: l, children: e });
|
|
635
636
|
}
|
|
636
|
-
function
|
|
637
|
-
return he(
|
|
637
|
+
function bn() {
|
|
638
|
+
return he(yr);
|
|
638
639
|
}
|
|
639
|
-
const
|
|
640
|
+
const Cr = pe(null);
|
|
640
641
|
function yt({ children: e, ...t }) {
|
|
641
642
|
const [n, r] = be(null);
|
|
642
|
-
return /* @__PURE__ */ h("div", { ref: r, ...t, children: n && /* @__PURE__ */ h(
|
|
643
|
+
return /* @__PURE__ */ h("div", { ref: r, ...t, children: n && /* @__PURE__ */ h(Cr.Provider, { value: n, children: e }) });
|
|
643
644
|
}
|
|
644
|
-
function
|
|
645
|
-
return he(
|
|
645
|
+
function wa() {
|
|
646
|
+
return he(Cr);
|
|
646
647
|
}
|
|
647
|
-
function
|
|
648
|
+
function xn(e) {
|
|
648
649
|
return e && typeof e == "object" && "peek" in e;
|
|
649
650
|
}
|
|
650
|
-
function
|
|
651
|
-
const t =
|
|
651
|
+
function ba(e) {
|
|
652
|
+
const t = xn(e), n = ue(t ? e.peek() : e);
|
|
652
653
|
return t ? e : (n.value = e, n);
|
|
653
654
|
}
|
|
654
|
-
function
|
|
655
|
-
return
|
|
655
|
+
function Sr(e) {
|
|
656
|
+
return xn(e) ? e.value : e;
|
|
656
657
|
}
|
|
657
|
-
function
|
|
658
|
-
return
|
|
658
|
+
function xa(e) {
|
|
659
|
+
return xn(e) ? e.peek() : e;
|
|
659
660
|
}
|
|
660
|
-
function
|
|
661
|
+
function Bn(e, t) {
|
|
661
662
|
if (typeof e == "function")
|
|
662
663
|
return e(t);
|
|
663
664
|
e != null && (e.current = t);
|
|
664
665
|
}
|
|
665
|
-
function
|
|
666
|
+
function Er(...e) {
|
|
666
667
|
return (t) => {
|
|
667
668
|
let n = !1;
|
|
668
669
|
const r = e.map((o) => {
|
|
669
|
-
const a =
|
|
670
|
+
const a = Bn(o, t);
|
|
670
671
|
return !n && typeof a == "function" && (n = !0), a;
|
|
671
672
|
});
|
|
672
673
|
if (n)
|
|
673
674
|
return () => {
|
|
674
675
|
for (let o = 0; o < r.length; o++) {
|
|
675
676
|
const a = r[o];
|
|
676
|
-
typeof a == "function" ? a() :
|
|
677
|
+
typeof a == "function" ? a() : Bn(e[o], null);
|
|
677
678
|
}
|
|
678
679
|
};
|
|
679
680
|
};
|
|
680
681
|
}
|
|
681
682
|
function Z(...e) {
|
|
682
|
-
return u.useCallback(
|
|
683
|
+
return u.useCallback(Er(...e), e);
|
|
683
684
|
}
|
|
684
685
|
// @__NO_SIDE_EFFECTS__
|
|
685
686
|
function vt(e) {
|
|
686
|
-
const t = /* @__PURE__ */
|
|
687
|
-
const { children: a, ...i } = r, s = u.Children.toArray(a), l = s.find(
|
|
687
|
+
const t = /* @__PURE__ */ ya(e), n = u.forwardRef((r, o) => {
|
|
688
|
+
const { children: a, ...i } = r, s = u.Children.toArray(a), l = s.find(Sa);
|
|
688
689
|
if (l) {
|
|
689
690
|
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);
|
|
690
691
|
return /* @__PURE__ */ k(t, { ...i, ref: o, children: u.isValidElement(c) ? u.cloneElement(c, void 0, d) : null });
|
|
@@ -693,24 +694,24 @@ function vt(e) {
|
|
|
693
694
|
});
|
|
694
695
|
return n.displayName = `${e}.Slot`, n;
|
|
695
696
|
}
|
|
696
|
-
var
|
|
697
|
+
var kr = /* @__PURE__ */ vt("Slot");
|
|
697
698
|
// @__NO_SIDE_EFFECTS__
|
|
698
|
-
function
|
|
699
|
+
function ya(e) {
|
|
699
700
|
const t = u.forwardRef((n, r) => {
|
|
700
701
|
const { children: o, ...a } = n;
|
|
701
702
|
if (u.isValidElement(o)) {
|
|
702
|
-
const i =
|
|
703
|
-
return o.type !== u.Fragment && (s.ref = r ?
|
|
703
|
+
const i = ka(o), s = Ea(a, o.props);
|
|
704
|
+
return o.type !== u.Fragment && (s.ref = r ? Er(r, i) : i), u.cloneElement(o, s);
|
|
704
705
|
}
|
|
705
706
|
return u.Children.count(o) > 1 ? u.Children.only(null) : null;
|
|
706
707
|
});
|
|
707
708
|
return t.displayName = `${e}.SlotClone`, t;
|
|
708
709
|
}
|
|
709
|
-
var
|
|
710
|
-
function
|
|
711
|
-
return u.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
710
|
+
var Ca = Symbol("radix.slottable");
|
|
711
|
+
function Sa(e) {
|
|
712
|
+
return u.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ca;
|
|
712
713
|
}
|
|
713
|
-
function
|
|
714
|
+
function Ea(e, t) {
|
|
714
715
|
const n = { ...t };
|
|
715
716
|
for (const r in t) {
|
|
716
717
|
const o = e[r], a = t[r];
|
|
@@ -720,22 +721,22 @@ function Sa(e, t) {
|
|
|
720
721
|
}
|
|
721
722
|
return { ...e, ...n };
|
|
722
723
|
}
|
|
723
|
-
function
|
|
724
|
+
function ka(e) {
|
|
724
725
|
var r, o;
|
|
725
726
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
726
727
|
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);
|
|
727
728
|
}
|
|
728
|
-
const
|
|
729
|
-
function
|
|
730
|
-
const e = ue(
|
|
729
|
+
const Xt = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
730
|
+
function Tr() {
|
|
731
|
+
const e = ue(Xt.matches);
|
|
731
732
|
return Oe(() => {
|
|
732
733
|
const t = (n) => {
|
|
733
734
|
e.value = n.matches;
|
|
734
735
|
};
|
|
735
|
-
return
|
|
736
|
+
return Xt.addEventListener("change", t), () => Xt.removeEventListener("change", t);
|
|
736
737
|
}, []), e;
|
|
737
738
|
}
|
|
738
|
-
function
|
|
739
|
+
function Ar({ onStart: e, onEnd: t }) {
|
|
739
740
|
const n = we();
|
|
740
741
|
n.current ?? (n.current = /* @__PURE__ */ new Set());
|
|
741
742
|
const r = we(e);
|
|
@@ -761,29 +762,29 @@ function Tr({ onStart: e, onEnd: t }) {
|
|
|
761
762
|
};
|
|
762
763
|
}
|
|
763
764
|
function ce(e) {
|
|
764
|
-
const t =
|
|
765
|
+
const t = Tr().value ? Ta : Aa;
|
|
765
766
|
return /* @__PURE__ */ h(t, { ...e });
|
|
766
767
|
}
|
|
767
|
-
function
|
|
768
|
-
return
|
|
768
|
+
function Ta({ active: e, ...t }) {
|
|
769
|
+
return Sr(e) ? /* @__PURE__ */ h(kr, { "data-shown": !0, ...t }) : null;
|
|
769
770
|
}
|
|
770
|
-
function
|
|
771
|
+
function Aa({
|
|
771
772
|
active: e,
|
|
772
773
|
initial: t = e,
|
|
773
774
|
...n
|
|
774
775
|
}) {
|
|
775
|
-
const r =
|
|
776
|
+
const r = ba(e), o = ue(xa(t));
|
|
776
777
|
ze(() => {
|
|
777
778
|
r.value && (o.value = r.value);
|
|
778
779
|
});
|
|
779
|
-
const { handlers: a } =
|
|
780
|
+
const { handlers: a } = Ar({
|
|
780
781
|
onEnd: () => {
|
|
781
782
|
o.value = r.value;
|
|
782
783
|
}
|
|
783
784
|
});
|
|
784
|
-
return !r.value && !o.value ? null : /* @__PURE__ */ h(
|
|
785
|
+
return !r.value && !o.value ? null : /* @__PURE__ */ h(kr, { "data-shown": r.value && o.value, ...a, ...n });
|
|
785
786
|
}
|
|
786
|
-
const
|
|
787
|
+
const Pa = `#version 300 es
|
|
787
788
|
precision highp float;
|
|
788
789
|
|
|
789
790
|
uniform float uTime;
|
|
@@ -947,7 +948,7 @@ void main() {
|
|
|
947
948
|
|
|
948
949
|
outColor = color;
|
|
949
950
|
}
|
|
950
|
-
`,
|
|
951
|
+
`, Ra = `#version 300 es
|
|
951
952
|
precision highp float;
|
|
952
953
|
|
|
953
954
|
in vec2 position;
|
|
@@ -958,7 +959,7 @@ void main() {
|
|
|
958
959
|
vUv = position * 0.5 + 0.5;
|
|
959
960
|
gl_Position = vec4(position, 0, 1);
|
|
960
961
|
}
|
|
961
|
-
`,
|
|
962
|
+
`, zn = 0, Ia = new Float32Array([
|
|
962
963
|
-1,
|
|
963
964
|
1,
|
|
964
965
|
-1,
|
|
@@ -967,7 +968,7 @@ void main() {
|
|
|
967
968
|
1,
|
|
968
969
|
1,
|
|
969
970
|
-1
|
|
970
|
-
]),
|
|
971
|
+
]), Na = "https://storage.googleapis.com/eleven-public-cdn/images/perlin-noise.png", ge = class ge {
|
|
971
972
|
constructor(t) {
|
|
972
973
|
J(this, "gl");
|
|
973
974
|
J(this, "program");
|
|
@@ -1002,7 +1003,7 @@ void main() {
|
|
|
1002
1003
|
depth: !1,
|
|
1003
1004
|
stencil: !1
|
|
1004
1005
|
});
|
|
1005
|
-
this.gl = n, this.program = this.setupProgram(
|
|
1006
|
+
this.gl = n, this.program = this.setupProgram(Pa, Ra);
|
|
1006
1007
|
const r = n.createTexture();
|
|
1007
1008
|
n.bindTexture(n.TEXTURE_2D, r), n.texImage2D(
|
|
1008
1009
|
n.TEXTURE_2D,
|
|
@@ -1014,9 +1015,9 @@ void main() {
|
|
|
1014
1015
|
n.RGBA,
|
|
1015
1016
|
n.UNSIGNED_BYTE,
|
|
1016
1017
|
new Uint8Array([128, 128, 128, 255])
|
|
1017
|
-
), ge.noiseImage || (ge.noiseImage = new Image(), ge.noiseImage.crossOrigin = "anonymous", ge.noiseImage.src =
|
|
1018
|
+
), ge.noiseImage || (ge.noiseImage = new Image(), ge.noiseImage.crossOrigin = "anonymous", ge.noiseImage.src = Na), ge.noiseImage.complete ? this.copyNoiseImage() : ge.noiseImage.addEventListener("load", this.copyNoiseImage);
|
|
1018
1019
|
const o = n.createBuffer();
|
|
1019
|
-
n.bindBuffer(n.ARRAY_BUFFER, o), n.bufferData(n.ARRAY_BUFFER,
|
|
1020
|
+
n.bindBuffer(n.ARRAY_BUFFER, o), n.bufferData(n.ARRAY_BUFFER, Ia, n.STATIC_DRAW), n.vertexAttribPointer(zn, 2, n.FLOAT, !1, 0, 0), n.enableVertexAttribArray(zn), this.updateColors("#2792DC", "#9CE6E6"), this.resizeObserver = new ResizeObserver((i) => {
|
|
1020
1021
|
const s = i[0], l = s.devicePixelContentBoxSize ? s.devicePixelContentBoxSize[0] : s.contentBoxSize[0];
|
|
1021
1022
|
t.width = Math.min(512, l.inlineSize), t.height = Math.min(512, l.blockSize), this.updateViewport();
|
|
1022
1023
|
});
|
|
@@ -1084,13 +1085,13 @@ void main() {
|
|
|
1084
1085
|
}
|
|
1085
1086
|
};
|
|
1086
1087
|
J(ge, "noiseImage");
|
|
1087
|
-
let
|
|
1088
|
-
const
|
|
1088
|
+
let on = ge;
|
|
1089
|
+
const _a = {
|
|
1089
1090
|
sm: "w-9 h-9",
|
|
1090
1091
|
lg: "w-48 h-48"
|
|
1091
1092
|
};
|
|
1092
1093
|
function ot({ size: e = "sm", className: t }) {
|
|
1093
|
-
const { getInputVolume: n, getOutputVolume: r, isSpeaking: o, isDisconnected: a } = ne(), { config: i } =
|
|
1094
|
+
const { getInputVolume: n, getOutputVolume: r, isSpeaking: o, isDisconnected: a } = ne(), { config: i } = bn(), s = we(null), l = we(null);
|
|
1094
1095
|
ze(() => {
|
|
1095
1096
|
if (a.value) {
|
|
1096
1097
|
s.current.style.transform = "", l.current.style.transform = "";
|
|
@@ -1108,7 +1109,7 @@ function ot({ size: e = "sm", className: t }) {
|
|
|
1108
1109
|
const c = X(() => ({
|
|
1109
1110
|
backgroundImage: i.value.type === "image" ? `url(${i.value.url})` : i.value.type === "url" ? `url(${i.value.custom_url})` : void 0
|
|
1110
1111
|
}));
|
|
1111
|
-
return /* @__PURE__ */ I("div", { className: j("relative shrink-0",
|
|
1112
|
+
return /* @__PURE__ */ I("div", { className: j("relative shrink-0", _a[e], t), children: [
|
|
1112
1113
|
/* @__PURE__ */ h(
|
|
1113
1114
|
"div",
|
|
1114
1115
|
{
|
|
@@ -1123,7 +1124,7 @@ function ot({ size: e = "sm", className: t }) {
|
|
|
1123
1124
|
style: c,
|
|
1124
1125
|
className: "absolute inset-0 rounded-full overflow-hidden bg-base bg-cover",
|
|
1125
1126
|
children: i.value.type === "orb" && /* @__PURE__ */ h(
|
|
1126
|
-
|
|
1127
|
+
Oa,
|
|
1127
1128
|
{
|
|
1128
1129
|
color1: i.value.color_1,
|
|
1129
1130
|
color2: i.value.color_2
|
|
@@ -1133,15 +1134,15 @@ function ot({ size: e = "sm", className: t }) {
|
|
|
1133
1134
|
)
|
|
1134
1135
|
] });
|
|
1135
1136
|
}
|
|
1136
|
-
function
|
|
1137
|
-
const { canvasUrl: n } =
|
|
1137
|
+
function Oa({ color1: e, color2: t }) {
|
|
1138
|
+
const { canvasUrl: n } = bn(), [r, o] = be(null);
|
|
1138
1139
|
Oe(() => {
|
|
1139
1140
|
r && (r.updateColors(e, t), r.render(), n.value = r.toDataURL());
|
|
1140
1141
|
}, [r, e, t]);
|
|
1141
1142
|
const a = Te(
|
|
1142
1143
|
(i) => {
|
|
1143
1144
|
if (i) {
|
|
1144
|
-
const s = new
|
|
1145
|
+
const s = new on(i);
|
|
1145
1146
|
return o(s), () => s.dispose();
|
|
1146
1147
|
} else
|
|
1147
1148
|
o(null);
|
|
@@ -1150,32 +1151,32 @@ function _a({ color1: e, color2: t }) {
|
|
|
1150
1151
|
);
|
|
1151
1152
|
return /* @__PURE__ */ h("canvas", { className: "w-full h-full", ref: a });
|
|
1152
1153
|
}
|
|
1153
|
-
const
|
|
1154
|
-
phone:
|
|
1155
|
-
"phone-off":
|
|
1156
|
-
chat:
|
|
1157
|
-
mic:
|
|
1158
|
-
"mic-off":
|
|
1159
|
-
check:
|
|
1160
|
-
"chevron-down":
|
|
1161
|
-
"chevron-up":
|
|
1162
|
-
},
|
|
1154
|
+
const Ma = {
|
|
1155
|
+
phone: Da,
|
|
1156
|
+
"phone-off": Ba,
|
|
1157
|
+
chat: za,
|
|
1158
|
+
mic: Fa,
|
|
1159
|
+
"mic-off": Va,
|
|
1160
|
+
check: Ua,
|
|
1161
|
+
"chevron-down": Wa,
|
|
1162
|
+
"chevron-up": $a
|
|
1163
|
+
}, La = {
|
|
1163
1164
|
sm: "text-xs",
|
|
1164
1165
|
md: "text-lg"
|
|
1165
1166
|
};
|
|
1166
1167
|
function Je({ name: e, size: t = "md", className: n }) {
|
|
1167
|
-
const r =
|
|
1168
|
+
const r = Ma[e];
|
|
1168
1169
|
return /* @__PURE__ */ h(
|
|
1169
1170
|
"slot",
|
|
1170
1171
|
{
|
|
1171
1172
|
name: `icon-${e}`,
|
|
1172
|
-
className: j("flex",
|
|
1173
|
+
className: j("flex", La[t], n),
|
|
1173
1174
|
"aria-hidden": !0,
|
|
1174
1175
|
children: /* @__PURE__ */ h(r, {})
|
|
1175
1176
|
}
|
|
1176
1177
|
);
|
|
1177
1178
|
}
|
|
1178
|
-
function
|
|
1179
|
+
function Da(e) {
|
|
1179
1180
|
return /* @__PURE__ */ h(
|
|
1180
1181
|
"svg",
|
|
1181
1182
|
{
|
|
@@ -1189,7 +1190,7 @@ function La(e) {
|
|
|
1189
1190
|
}
|
|
1190
1191
|
);
|
|
1191
1192
|
}
|
|
1192
|
-
function
|
|
1193
|
+
function Ba(e) {
|
|
1193
1194
|
return /* @__PURE__ */ I(
|
|
1194
1195
|
"svg",
|
|
1195
1196
|
{
|
|
@@ -1206,7 +1207,7 @@ function Da(e) {
|
|
|
1206
1207
|
}
|
|
1207
1208
|
);
|
|
1208
1209
|
}
|
|
1209
|
-
function
|
|
1210
|
+
function za(e) {
|
|
1210
1211
|
return /* @__PURE__ */ h(
|
|
1211
1212
|
"svg",
|
|
1212
1213
|
{
|
|
@@ -1227,7 +1228,7 @@ function Ba(e) {
|
|
|
1227
1228
|
}
|
|
1228
1229
|
);
|
|
1229
1230
|
}
|
|
1230
|
-
function
|
|
1231
|
+
function Fa(e) {
|
|
1231
1232
|
return /* @__PURE__ */ I(
|
|
1232
1233
|
"svg",
|
|
1233
1234
|
{
|
|
@@ -1244,7 +1245,7 @@ function za(e) {
|
|
|
1244
1245
|
}
|
|
1245
1246
|
);
|
|
1246
1247
|
}
|
|
1247
|
-
function
|
|
1248
|
+
function Va(e) {
|
|
1248
1249
|
return /* @__PURE__ */ I(
|
|
1249
1250
|
"svg",
|
|
1250
1251
|
{
|
|
@@ -1261,7 +1262,7 @@ function Fa(e) {
|
|
|
1261
1262
|
}
|
|
1262
1263
|
);
|
|
1263
1264
|
}
|
|
1264
|
-
function
|
|
1265
|
+
function Wa(e) {
|
|
1265
1266
|
return /* @__PURE__ */ h(
|
|
1266
1267
|
"svg",
|
|
1267
1268
|
{
|
|
@@ -1279,7 +1280,7 @@ function Va(e) {
|
|
|
1279
1280
|
}
|
|
1280
1281
|
);
|
|
1281
1282
|
}
|
|
1282
|
-
function
|
|
1283
|
+
function $a(e) {
|
|
1283
1284
|
return /* @__PURE__ */ h(
|
|
1284
1285
|
"svg",
|
|
1285
1286
|
{
|
|
@@ -1297,7 +1298,7 @@ function Wa(e) {
|
|
|
1297
1298
|
}
|
|
1298
1299
|
);
|
|
1299
1300
|
}
|
|
1300
|
-
function
|
|
1301
|
+
function Ua(e) {
|
|
1301
1302
|
return /* @__PURE__ */ h(
|
|
1302
1303
|
"svg",
|
|
1303
1304
|
{
|
|
@@ -1316,10 +1317,10 @@ function $a(e) {
|
|
|
1316
1317
|
);
|
|
1317
1318
|
}
|
|
1318
1319
|
function ke(e) {
|
|
1319
|
-
const t =
|
|
1320
|
+
const t = Tr().value ? Ha : ja;
|
|
1320
1321
|
return /* @__PURE__ */ h(t, { ...e });
|
|
1321
1322
|
}
|
|
1322
|
-
function
|
|
1323
|
+
function Ha({
|
|
1323
1324
|
visible: e,
|
|
1324
1325
|
className: t,
|
|
1325
1326
|
grow: n,
|
|
@@ -1328,7 +1329,7 @@ function Ua({
|
|
|
1328
1329
|
}) {
|
|
1329
1330
|
return e ? /* @__PURE__ */ h("div", { className: j(n && "grow", t), ...o }) : null;
|
|
1330
1331
|
}
|
|
1331
|
-
function
|
|
1332
|
+
function ja({
|
|
1332
1333
|
visible: e,
|
|
1333
1334
|
children: t,
|
|
1334
1335
|
className: n,
|
|
@@ -1364,7 +1365,7 @@ function Ha({
|
|
|
1364
1365
|
o
|
|
1365
1366
|
// node's content changed
|
|
1366
1367
|
]);
|
|
1367
|
-
const { transitioning: m, handlers: f } =
|
|
1368
|
+
const { transitioning: m, handlers: f } = Ar({
|
|
1368
1369
|
onEnd: () => {
|
|
1369
1370
|
e ? (l.style.width = "", l.style.height = "") : s(!1);
|
|
1370
1371
|
}
|
|
@@ -1396,10 +1397,10 @@ function Ha({
|
|
|
1396
1397
|
}
|
|
1397
1398
|
);
|
|
1398
1399
|
}
|
|
1399
|
-
const
|
|
1400
|
+
const Ya = {
|
|
1400
1401
|
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",
|
|
1401
1402
|
secondary: "text-base-primary border border-base-border bg-base hover:bg-base-hover active:bg-base-active"
|
|
1402
|
-
}, Me =
|
|
1403
|
+
}, Me = Xo(
|
|
1403
1404
|
function({
|
|
1404
1405
|
variant: t = "secondary",
|
|
1405
1406
|
children: n,
|
|
@@ -1416,7 +1417,7 @@ const ja = {
|
|
|
1416
1417
|
ref: l,
|
|
1417
1418
|
className: j(
|
|
1418
1419
|
"h-9 flex px-2.5 text-sm items-center transition-colors justify-center rounded-button duration-200 focus-ring overflow-hidden select-none",
|
|
1419
|
-
|
|
1420
|
+
Ya[t],
|
|
1420
1421
|
c && "min-w-9",
|
|
1421
1422
|
o
|
|
1422
1423
|
),
|
|
@@ -1440,11 +1441,11 @@ const ja = {
|
|
|
1440
1441
|
);
|
|
1441
1442
|
}
|
|
1442
1443
|
);
|
|
1443
|
-
function
|
|
1444
|
+
function an({
|
|
1444
1445
|
className: e,
|
|
1445
1446
|
...t
|
|
1446
1447
|
}) {
|
|
1447
|
-
const { status: n, isSpeaking: r } = ne(), o =
|
|
1448
|
+
const { status: n, isSpeaking: r } = ne(), o = zt(), a = re(), i = X(
|
|
1448
1449
|
() => n.value !== "connected" ? a.connecting_status.value : o.value ? a.chatting_status.value : r.value ? a.speaking_status.value : a.listening_status.value
|
|
1449
1450
|
), [s, l] = be(i.peek());
|
|
1450
1451
|
return ze(() => {
|
|
@@ -1469,7 +1470,7 @@ function on({
|
|
|
1469
1470
|
}
|
|
1470
1471
|
);
|
|
1471
1472
|
}
|
|
1472
|
-
function
|
|
1473
|
+
function Fn(e, [t, n]) {
|
|
1473
1474
|
return Math.min(n, Math.max(t, e));
|
|
1474
1475
|
}
|
|
1475
1476
|
function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
@@ -1478,7 +1479,7 @@ function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
1478
1479
|
return t == null ? void 0 : t(o);
|
|
1479
1480
|
};
|
|
1480
1481
|
}
|
|
1481
|
-
function
|
|
1482
|
+
function yn(e, t = []) {
|
|
1482
1483
|
let n = [];
|
|
1483
1484
|
function r(a, i) {
|
|
1484
1485
|
const s = u.createContext(i), l = n.length;
|
|
@@ -1508,9 +1509,9 @@ function xn(e, t = []) {
|
|
|
1508
1509
|
);
|
|
1509
1510
|
};
|
|
1510
1511
|
};
|
|
1511
|
-
return o.scopeName = e, [r,
|
|
1512
|
+
return o.scopeName = e, [r, Xa(o, ...t)];
|
|
1512
1513
|
}
|
|
1513
|
-
function
|
|
1514
|
+
function Xa(...e) {
|
|
1514
1515
|
const t = e[0];
|
|
1515
1516
|
if (e.length === 1) return t;
|
|
1516
1517
|
const n = () => {
|
|
@@ -1528,8 +1529,8 @@ function Ya(...e) {
|
|
|
1528
1529
|
};
|
|
1529
1530
|
return n.scopeName = t.scopeName, n;
|
|
1530
1531
|
}
|
|
1531
|
-
function
|
|
1532
|
-
const t = e + "CollectionProvider", [n, r] =
|
|
1532
|
+
function Ka(e) {
|
|
1533
|
+
const t = e + "CollectionProvider", [n, r] = yn(t), [o, a] = n(
|
|
1533
1534
|
t,
|
|
1534
1535
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
1535
1536
|
), i = (f) => {
|
|
@@ -1568,12 +1569,12 @@ function Xa(e) {
|
|
|
1568
1569
|
r
|
|
1569
1570
|
];
|
|
1570
1571
|
}
|
|
1571
|
-
var
|
|
1572
|
-
function
|
|
1573
|
-
const t = u.useContext(
|
|
1572
|
+
var Ga = u.createContext(void 0);
|
|
1573
|
+
function Za(e) {
|
|
1574
|
+
const t = u.useContext(Ga);
|
|
1574
1575
|
return e || t || "ltr";
|
|
1575
1576
|
}
|
|
1576
|
-
var
|
|
1577
|
+
var qa = [
|
|
1577
1578
|
"a",
|
|
1578
1579
|
"button",
|
|
1579
1580
|
"div",
|
|
@@ -1591,14 +1592,14 @@ var Za = [
|
|
|
1591
1592
|
"span",
|
|
1592
1593
|
"svg",
|
|
1593
1594
|
"ul"
|
|
1594
|
-
], K =
|
|
1595
|
+
], K = qa.reduce((e, t) => {
|
|
1595
1596
|
const n = /* @__PURE__ */ vt(`Primitive.${t}`), r = u.forwardRef((o, a) => {
|
|
1596
1597
|
const { asChild: i, ...s } = o, l = i ? n : t;
|
|
1597
1598
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ k(l, { ...s, ref: a });
|
|
1598
1599
|
});
|
|
1599
1600
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
1600
1601
|
}, {});
|
|
1601
|
-
function
|
|
1602
|
+
function Qa(e, t) {
|
|
1602
1603
|
e && u.flushSync(() => e.dispatchEvent(t));
|
|
1603
1604
|
}
|
|
1604
1605
|
function $e(e) {
|
|
@@ -1610,7 +1611,7 @@ function $e(e) {
|
|
|
1610
1611
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
1611
1612
|
}, []);
|
|
1612
1613
|
}
|
|
1613
|
-
function
|
|
1614
|
+
function Ja(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
1614
1615
|
const n = $e(e);
|
|
1615
1616
|
u.useEffect(() => {
|
|
1616
1617
|
const r = (o) => {
|
|
@@ -1619,11 +1620,11 @@ function Qa(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1619
1620
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
1620
1621
|
}, [n, t]);
|
|
1621
1622
|
}
|
|
1622
|
-
var
|
|
1623
|
+
var ei = "DismissableLayer", sn = "dismissableLayer.update", ti = "dismissableLayer.pointerDownOutside", ni = "dismissableLayer.focusOutside", Vn, Pr = u.createContext({
|
|
1623
1624
|
layers: /* @__PURE__ */ new Set(),
|
|
1624
1625
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
1625
1626
|
branches: /* @__PURE__ */ new Set()
|
|
1626
|
-
}),
|
|
1627
|
+
}), Rr = u.forwardRef(
|
|
1627
1628
|
(e, t) => {
|
|
1628
1629
|
const {
|
|
1629
1630
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -1633,25 +1634,25 @@ var Ja = "DismissableLayer", an = "dismissableLayer.update", ei = "dismissableLa
|
|
|
1633
1634
|
onInteractOutside: i,
|
|
1634
1635
|
onDismiss: s,
|
|
1635
1636
|
...l
|
|
1636
|
-
} = e, c = u.useContext(
|
|
1637
|
+
} = e, c = u.useContext(Pr), [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 = ai((C) => {
|
|
1637
1638
|
const P = C.target, O = [...c.branches].some((M) => M.contains(P));
|
|
1638
1639
|
!S || O || (o == null || o(C), i == null || i(C), C.defaultPrevented || s == null || s());
|
|
1639
|
-
}, g), T =
|
|
1640
|
+
}, g), T = ii((C) => {
|
|
1640
1641
|
const P = C.target;
|
|
1641
1642
|
[...c.branches].some((M) => M.contains(P)) || (a == null || a(C), i == null || i(C), C.defaultPrevented || s == null || s());
|
|
1642
1643
|
}, g);
|
|
1643
|
-
return
|
|
1644
|
+
return Ja((C) => {
|
|
1644
1645
|
x === c.layers.size - 1 && (r == null || r(C), !C.defaultPrevented && s && (C.preventDefault(), s()));
|
|
1645
1646
|
}, g), u.useEffect(() => {
|
|
1646
1647
|
if (d)
|
|
1647
|
-
return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
1648
|
-
n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents =
|
|
1648
|
+
return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (Vn = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(d)), c.layers.add(d), Wn(), () => {
|
|
1649
|
+
n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Vn);
|
|
1649
1650
|
};
|
|
1650
1651
|
}, [d, g, n, c]), u.useEffect(() => () => {
|
|
1651
|
-
d && (c.layers.delete(d), c.layersWithOutsidePointerEventsDisabled.delete(d),
|
|
1652
|
+
d && (c.layers.delete(d), c.layersWithOutsidePointerEventsDisabled.delete(d), Wn());
|
|
1652
1653
|
}, [d, c]), u.useEffect(() => {
|
|
1653
1654
|
const C = () => v({});
|
|
1654
|
-
return document.addEventListener(
|
|
1655
|
+
return document.addEventListener(sn, C), () => document.removeEventListener(sn, C);
|
|
1655
1656
|
}, []), /* @__PURE__ */ k(
|
|
1656
1657
|
K.div,
|
|
1657
1658
|
{
|
|
@@ -1671,9 +1672,9 @@ var Ja = "DismissableLayer", an = "dismissableLayer.update", ei = "dismissableLa
|
|
|
1671
1672
|
);
|
|
1672
1673
|
}
|
|
1673
1674
|
);
|
|
1674
|
-
|
|
1675
|
-
var
|
|
1676
|
-
const n = u.useContext(
|
|
1675
|
+
Rr.displayName = ei;
|
|
1676
|
+
var ri = "DismissableLayerBranch", oi = u.forwardRef((e, t) => {
|
|
1677
|
+
const n = u.useContext(Pr), r = u.useRef(null), o = Z(t, r);
|
|
1677
1678
|
return u.useEffect(() => {
|
|
1678
1679
|
const a = r.current;
|
|
1679
1680
|
if (a)
|
|
@@ -1682,16 +1683,16 @@ var ni = "DismissableLayerBranch", ri = u.forwardRef((e, t) => {
|
|
|
1682
1683
|
};
|
|
1683
1684
|
}, [n.branches]), /* @__PURE__ */ k(K.div, { ...e, ref: o });
|
|
1684
1685
|
});
|
|
1685
|
-
|
|
1686
|
-
function
|
|
1686
|
+
oi.displayName = ri;
|
|
1687
|
+
function ai(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
1687
1688
|
const n = $e(e), r = u.useRef(!1), o = u.useRef(() => {
|
|
1688
1689
|
});
|
|
1689
1690
|
return u.useEffect(() => {
|
|
1690
1691
|
const a = (s) => {
|
|
1691
1692
|
if (s.target && !r.current) {
|
|
1692
1693
|
let l = function() {
|
|
1693
|
-
|
|
1694
|
-
|
|
1694
|
+
Ir(
|
|
1695
|
+
ti,
|
|
1695
1696
|
n,
|
|
1696
1697
|
c,
|
|
1697
1698
|
{ discrete: !0 }
|
|
@@ -1713,11 +1714,11 @@ function oi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1713
1714
|
onPointerDownCapture: () => r.current = !0
|
|
1714
1715
|
};
|
|
1715
1716
|
}
|
|
1716
|
-
function
|
|
1717
|
+
function ii(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
1717
1718
|
const n = $e(e), r = u.useRef(!1);
|
|
1718
1719
|
return u.useEffect(() => {
|
|
1719
1720
|
const o = (a) => {
|
|
1720
|
-
a.target && !r.current &&
|
|
1721
|
+
a.target && !r.current && Ir(ni, n, { originalEvent: a }, {
|
|
1721
1722
|
discrete: !1
|
|
1722
1723
|
});
|
|
1723
1724
|
};
|
|
@@ -1727,28 +1728,28 @@ function ai(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1727
1728
|
onBlurCapture: () => r.current = !1
|
|
1728
1729
|
};
|
|
1729
1730
|
}
|
|
1730
|
-
function
|
|
1731
|
-
const e = new CustomEvent(
|
|
1731
|
+
function Wn() {
|
|
1732
|
+
const e = new CustomEvent(sn);
|
|
1732
1733
|
document.dispatchEvent(e);
|
|
1733
1734
|
}
|
|
1734
|
-
function
|
|
1735
|
+
function Ir(e, t, n, { discrete: r }) {
|
|
1735
1736
|
const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
1736
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
1737
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? Qa(o, a) : o.dispatchEvent(a);
|
|
1737
1738
|
}
|
|
1738
|
-
var
|
|
1739
|
-
function
|
|
1739
|
+
var Kt = 0;
|
|
1740
|
+
function si() {
|
|
1740
1741
|
u.useEffect(() => {
|
|
1741
1742
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
1742
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
1743
|
-
|
|
1743
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? $n()), document.body.insertAdjacentElement("beforeend", e[1] ?? $n()), Kt++, () => {
|
|
1744
|
+
Kt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Kt--;
|
|
1744
1745
|
};
|
|
1745
1746
|
}, []);
|
|
1746
1747
|
}
|
|
1747
|
-
function
|
|
1748
|
+
function $n() {
|
|
1748
1749
|
const e = document.createElement("span");
|
|
1749
1750
|
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;
|
|
1750
1751
|
}
|
|
1751
|
-
var
|
|
1752
|
+
var Gt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", Un = { bubbles: !1, cancelable: !0 }, li = "FocusScope", Nr = u.forwardRef((e, t) => {
|
|
1752
1753
|
const {
|
|
1753
1754
|
loop: n = !1,
|
|
1754
1755
|
trapped: r = !1,
|
|
@@ -1787,16 +1788,16 @@ var Kt = "focusScope.autoFocusOnMount", Gt = "focusScope.autoFocusOnUnmount", $n
|
|
|
1787
1788
|
}
|
|
1788
1789
|
}, [r, s, v.paused]), u.useEffect(() => {
|
|
1789
1790
|
if (s) {
|
|
1790
|
-
|
|
1791
|
+
jn.add(v);
|
|
1791
1792
|
const f = document.activeElement;
|
|
1792
1793
|
if (!s.contains(f)) {
|
|
1793
|
-
const b = new CustomEvent(
|
|
1794
|
-
s.addEventListener(
|
|
1794
|
+
const b = new CustomEvent(Gt, Un);
|
|
1795
|
+
s.addEventListener(Gt, c), s.dispatchEvent(b), b.defaultPrevented || (ci(hi(_r(s)), { select: !0 }), document.activeElement === f && _e(s));
|
|
1795
1796
|
}
|
|
1796
1797
|
return () => {
|
|
1797
|
-
s.removeEventListener(
|
|
1798
|
-
const b = new CustomEvent(
|
|
1799
|
-
s.addEventListener(
|
|
1798
|
+
s.removeEventListener(Gt, c), setTimeout(() => {
|
|
1799
|
+
const b = new CustomEvent(Zt, Un);
|
|
1800
|
+
s.addEventListener(Zt, d), s.dispatchEvent(b), b.defaultPrevented || _e(f ?? document.body, { select: !0 }), s.removeEventListener(Zt, d), jn.remove(v);
|
|
1800
1801
|
}, 0);
|
|
1801
1802
|
};
|
|
1802
1803
|
}
|
|
@@ -1806,7 +1807,7 @@ var Kt = "focusScope.autoFocusOnMount", Gt = "focusScope.autoFocusOnUnmount", $n
|
|
|
1806
1807
|
if (!n && !r || v.paused) return;
|
|
1807
1808
|
const w = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, b = document.activeElement;
|
|
1808
1809
|
if (w && b) {
|
|
1809
|
-
const x = f.currentTarget, [y, S] =
|
|
1810
|
+
const x = f.currentTarget, [y, S] = ui(x);
|
|
1810
1811
|
y && S ? !f.shiftKey && b === S ? (f.preventDefault(), n && _e(y, { select: !0 })) : f.shiftKey && b === y && (f.preventDefault(), n && _e(S, { select: !0 })) : b === x && f.preventDefault();
|
|
1811
1812
|
}
|
|
1812
1813
|
},
|
|
@@ -1814,17 +1815,17 @@ var Kt = "focusScope.autoFocusOnMount", Gt = "focusScope.autoFocusOnUnmount", $n
|
|
|
1814
1815
|
);
|
|
1815
1816
|
return /* @__PURE__ */ k(K.div, { tabIndex: -1, ...i, ref: g, onKeyDown: m });
|
|
1816
1817
|
});
|
|
1817
|
-
|
|
1818
|
-
function
|
|
1818
|
+
Nr.displayName = li;
|
|
1819
|
+
function ci(e, { select: t = !1 } = {}) {
|
|
1819
1820
|
const n = document.activeElement;
|
|
1820
1821
|
for (const r of e)
|
|
1821
1822
|
if (_e(r, { select: t }), document.activeElement !== n) return;
|
|
1822
1823
|
}
|
|
1823
|
-
function
|
|
1824
|
-
const t =
|
|
1824
|
+
function ui(e) {
|
|
1825
|
+
const t = _r(e), n = Hn(t, e), r = Hn(t.reverse(), e);
|
|
1825
1826
|
return [n, r];
|
|
1826
1827
|
}
|
|
1827
|
-
function
|
|
1828
|
+
function _r(e) {
|
|
1828
1829
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
1829
1830
|
acceptNode: (r) => {
|
|
1830
1831
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -1834,11 +1835,11 @@ function Nr(e) {
|
|
|
1834
1835
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
1835
1836
|
return t;
|
|
1836
1837
|
}
|
|
1837
|
-
function
|
|
1838
|
+
function Hn(e, t) {
|
|
1838
1839
|
for (const n of e)
|
|
1839
|
-
if (!
|
|
1840
|
+
if (!di(n, { upTo: t })) return n;
|
|
1840
1841
|
}
|
|
1841
|
-
function
|
|
1842
|
+
function di(e, { upTo: t }) {
|
|
1842
1843
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1843
1844
|
for (; e; ) {
|
|
1844
1845
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -1847,58 +1848,58 @@ function ui(e, { upTo: t }) {
|
|
|
1847
1848
|
}
|
|
1848
1849
|
return !1;
|
|
1849
1850
|
}
|
|
1850
|
-
function
|
|
1851
|
+
function fi(e) {
|
|
1851
1852
|
return e instanceof HTMLInputElement && "select" in e;
|
|
1852
1853
|
}
|
|
1853
1854
|
function _e(e, { select: t = !1 } = {}) {
|
|
1854
1855
|
if (e && e.focus) {
|
|
1855
1856
|
const n = document.activeElement;
|
|
1856
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
1857
|
+
e.focus({ preventScroll: !0 }), e !== n && fi(e) && t && e.select();
|
|
1857
1858
|
}
|
|
1858
1859
|
}
|
|
1859
|
-
var
|
|
1860
|
-
function
|
|
1860
|
+
var jn = pi();
|
|
1861
|
+
function pi() {
|
|
1861
1862
|
let e = [];
|
|
1862
1863
|
return {
|
|
1863
1864
|
add(t) {
|
|
1864
1865
|
const n = e[0];
|
|
1865
|
-
t !== n && (n == null || n.pause()), e =
|
|
1866
|
+
t !== n && (n == null || n.pause()), e = Yn(e, t), e.unshift(t);
|
|
1866
1867
|
},
|
|
1867
1868
|
remove(t) {
|
|
1868
1869
|
var n;
|
|
1869
|
-
e =
|
|
1870
|
+
e = Yn(e, t), (n = e[0]) == null || n.resume();
|
|
1870
1871
|
}
|
|
1871
1872
|
};
|
|
1872
1873
|
}
|
|
1873
|
-
function
|
|
1874
|
+
function Yn(e, t) {
|
|
1874
1875
|
const n = [...e], r = n.indexOf(t);
|
|
1875
1876
|
return r !== -1 && n.splice(r, 1), n;
|
|
1876
1877
|
}
|
|
1877
|
-
function
|
|
1878
|
+
function hi(e) {
|
|
1878
1879
|
return e.filter((t) => t.tagName !== "A");
|
|
1879
1880
|
}
|
|
1880
1881
|
var te = globalThis != null && globalThis.document ? u.useLayoutEffect : () => {
|
|
1881
|
-
},
|
|
1882
|
-
}),
|
|
1883
|
-
function
|
|
1884
|
-
const [t, n] = u.useState(
|
|
1882
|
+
}, vi = u[" useId ".trim().toString()] || (() => {
|
|
1883
|
+
}), gi = 0;
|
|
1884
|
+
function Cn(e) {
|
|
1885
|
+
const [t, n] = u.useState(vi());
|
|
1885
1886
|
return te(() => {
|
|
1886
|
-
n((r) => r ?? String(
|
|
1887
|
+
n((r) => r ?? String(gi++));
|
|
1887
1888
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
1888
1889
|
}
|
|
1889
|
-
const
|
|
1890
|
+
const mi = ["top", "right", "bottom", "left"], Le = Math.min, ae = Math.max, _t = Math.round, Ct = Math.floor, ye = (e) => ({
|
|
1890
1891
|
x: e,
|
|
1891
1892
|
y: e
|
|
1892
|
-
}),
|
|
1893
|
+
}), wi = {
|
|
1893
1894
|
left: "right",
|
|
1894
1895
|
right: "left",
|
|
1895
1896
|
bottom: "top",
|
|
1896
1897
|
top: "bottom"
|
|
1897
|
-
},
|
|
1898
|
+
}, bi = {
|
|
1898
1899
|
start: "end",
|
|
1899
1900
|
end: "start"
|
|
1900
1901
|
};
|
|
1901
|
-
function
|
|
1902
|
+
function ln(e, t, n) {
|
|
1902
1903
|
return ae(e, Le(t, n));
|
|
1903
1904
|
}
|
|
1904
1905
|
function Ae(e, t) {
|
|
@@ -1910,32 +1911,32 @@ function Pe(e) {
|
|
|
1910
1911
|
function at(e) {
|
|
1911
1912
|
return e.split("-")[1];
|
|
1912
1913
|
}
|
|
1913
|
-
function
|
|
1914
|
+
function Sn(e) {
|
|
1914
1915
|
return e === "x" ? "y" : "x";
|
|
1915
1916
|
}
|
|
1916
|
-
function
|
|
1917
|
+
function En(e) {
|
|
1917
1918
|
return e === "y" ? "height" : "width";
|
|
1918
1919
|
}
|
|
1919
1920
|
function De(e) {
|
|
1920
1921
|
return ["top", "bottom"].includes(Pe(e)) ? "y" : "x";
|
|
1921
1922
|
}
|
|
1922
|
-
function
|
|
1923
|
-
return
|
|
1923
|
+
function kn(e) {
|
|
1924
|
+
return Sn(De(e));
|
|
1924
1925
|
}
|
|
1925
|
-
function
|
|
1926
|
+
function xi(e, t, n) {
|
|
1926
1927
|
n === void 0 && (n = !1);
|
|
1927
|
-
const r = at(e), o =
|
|
1928
|
+
const r = at(e), o = kn(e), a = En(o);
|
|
1928
1929
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1929
|
-
return t.reference[a] > t.floating[a] && (i =
|
|
1930
|
+
return t.reference[a] > t.floating[a] && (i = Ot(i)), [i, Ot(i)];
|
|
1930
1931
|
}
|
|
1931
|
-
function
|
|
1932
|
-
const t =
|
|
1933
|
-
return [
|
|
1932
|
+
function yi(e) {
|
|
1933
|
+
const t = Ot(e);
|
|
1934
|
+
return [cn(e), t, cn(t)];
|
|
1934
1935
|
}
|
|
1935
|
-
function
|
|
1936
|
-
return e.replace(/start|end/g, (t) =>
|
|
1936
|
+
function cn(e) {
|
|
1937
|
+
return e.replace(/start|end/g, (t) => bi[t]);
|
|
1937
1938
|
}
|
|
1938
|
-
function
|
|
1939
|
+
function Ci(e, t, n) {
|
|
1939
1940
|
const r = ["left", "right"], o = ["right", "left"], a = ["top", "bottom"], i = ["bottom", "top"];
|
|
1940
1941
|
switch (e) {
|
|
1941
1942
|
case "top":
|
|
@@ -1948,15 +1949,15 @@ function yi(e, t, n) {
|
|
|
1948
1949
|
return [];
|
|
1949
1950
|
}
|
|
1950
1951
|
}
|
|
1951
|
-
function
|
|
1952
|
+
function Si(e, t, n, r) {
|
|
1952
1953
|
const o = at(e);
|
|
1953
|
-
let a =
|
|
1954
|
-
return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(
|
|
1954
|
+
let a = Ci(Pe(e), n === "start", r);
|
|
1955
|
+
return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(cn)))), a;
|
|
1955
1956
|
}
|
|
1956
|
-
function
|
|
1957
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1957
|
+
function Ot(e) {
|
|
1958
|
+
return e.replace(/left|right|bottom|top/g, (t) => wi[t]);
|
|
1958
1959
|
}
|
|
1959
|
-
function
|
|
1960
|
+
function Ei(e) {
|
|
1960
1961
|
return {
|
|
1961
1962
|
top: 0,
|
|
1962
1963
|
right: 0,
|
|
@@ -1965,15 +1966,15 @@ function Si(e) {
|
|
|
1965
1966
|
...e
|
|
1966
1967
|
};
|
|
1967
1968
|
}
|
|
1968
|
-
function
|
|
1969
|
-
return typeof e != "number" ?
|
|
1969
|
+
function Or(e) {
|
|
1970
|
+
return typeof e != "number" ? Ei(e) : {
|
|
1970
1971
|
top: e,
|
|
1971
1972
|
right: e,
|
|
1972
1973
|
bottom: e,
|
|
1973
1974
|
left: e
|
|
1974
1975
|
};
|
|
1975
1976
|
}
|
|
1976
|
-
function
|
|
1977
|
+
function Mt(e) {
|
|
1977
1978
|
const {
|
|
1978
1979
|
x: t,
|
|
1979
1980
|
y: n,
|
|
@@ -1991,12 +1992,12 @@ function Ot(e) {
|
|
|
1991
1992
|
y: n
|
|
1992
1993
|
};
|
|
1993
1994
|
}
|
|
1994
|
-
function
|
|
1995
|
+
function Xn(e, t, n) {
|
|
1995
1996
|
let {
|
|
1996
1997
|
reference: r,
|
|
1997
1998
|
floating: o
|
|
1998
1999
|
} = e;
|
|
1999
|
-
const a = De(t), i =
|
|
2000
|
+
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;
|
|
2000
2001
|
let v;
|
|
2001
2002
|
switch (l) {
|
|
2002
2003
|
case "top":
|
|
@@ -2039,7 +2040,7 @@ function Yn(e, t, n) {
|
|
|
2039
2040
|
}
|
|
2040
2041
|
return v;
|
|
2041
2042
|
}
|
|
2042
|
-
const
|
|
2043
|
+
const ki = async (e, t, n) => {
|
|
2043
2044
|
const {
|
|
2044
2045
|
placement: r = "bottom",
|
|
2045
2046
|
strategy: o = "absolute",
|
|
@@ -2053,7 +2054,7 @@ const Ei = async (e, t, n) => {
|
|
|
2053
2054
|
}), {
|
|
2054
2055
|
x: d,
|
|
2055
2056
|
y: p
|
|
2056
|
-
} =
|
|
2057
|
+
} = Xn(c, r, l), g = r, v = {}, m = 0;
|
|
2057
2058
|
for (let f = 0; f < s.length; f++) {
|
|
2058
2059
|
const {
|
|
2059
2060
|
name: w,
|
|
@@ -2090,7 +2091,7 @@ const Ei = async (e, t, n) => {
|
|
|
2090
2091
|
}) : E.rects), {
|
|
2091
2092
|
x: d,
|
|
2092
2093
|
y: p
|
|
2093
|
-
} =
|
|
2094
|
+
} = Xn(c, g, l)), f = -1);
|
|
2094
2095
|
}
|
|
2095
2096
|
return {
|
|
2096
2097
|
x: d,
|
|
@@ -2116,7 +2117,7 @@ async function gt(e, t) {
|
|
|
2116
2117
|
elementContext: p = "floating",
|
|
2117
2118
|
altBoundary: g = !1,
|
|
2118
2119
|
padding: v = 0
|
|
2119
|
-
} = Ae(t, e), m =
|
|
2120
|
+
} = Ae(t, e), m = Or(v), w = s[g ? p === "floating" ? "reference" : "floating" : p], b = Mt(await a.getClippingRect({
|
|
2120
2121
|
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)),
|
|
2121
2122
|
boundary: c,
|
|
2122
2123
|
rootBoundary: d,
|
|
@@ -2132,7 +2133,7 @@ async function gt(e, t) {
|
|
|
2132
2133
|
} : {
|
|
2133
2134
|
x: 1,
|
|
2134
2135
|
y: 1
|
|
2135
|
-
}, E =
|
|
2136
|
+
}, E = Mt(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
2136
2137
|
elements: s,
|
|
2137
2138
|
rect: x,
|
|
2138
2139
|
offsetParent: y,
|
|
@@ -2145,7 +2146,7 @@ async function gt(e, t) {
|
|
|
2145
2146
|
right: (E.right - b.right + m.right) / S.x
|
|
2146
2147
|
};
|
|
2147
2148
|
}
|
|
2148
|
-
const
|
|
2149
|
+
const Ti = (e) => ({
|
|
2149
2150
|
name: "arrow",
|
|
2150
2151
|
options: e,
|
|
2151
2152
|
async fn(t) {
|
|
@@ -2163,13 +2164,13 @@ const ki = (e) => ({
|
|
|
2163
2164
|
} = Ae(e, t) || {};
|
|
2164
2165
|
if (c == null)
|
|
2165
2166
|
return {};
|
|
2166
|
-
const p =
|
|
2167
|
+
const p = Or(d), g = {
|
|
2167
2168
|
x: n,
|
|
2168
2169
|
y: r
|
|
2169
|
-
}, v =
|
|
2170
|
+
}, 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));
|
|
2170
2171
|
let C = T ? T[y] : 0;
|
|
2171
2172
|
(!C || !await (i.isElement == null ? void 0 : i.isElement(T))) && (C = s.floating[y] || a.floating[m]);
|
|
2172
|
-
const P = S / 2 - E / 2, O = C / 2 - f[m] / 2 - 1, M = Le(p[b], O), V = Le(p[x], O), W = M, D = C - f[m] - V, _ = C / 2 - f[m] / 2 + P, Y =
|
|
2173
|
+
const P = S / 2 - E / 2, O = C / 2 - f[m] / 2 - 1, M = Le(p[b], O), V = Le(p[x], O), W = M, D = C - f[m] - V, _ = C / 2 - f[m] / 2 + P, Y = ln(W, _, D), N = !l.arrow && at(o) != null && _ !== Y && a.reference[m] / 2 - (_ < W ? M : V) - f[m] / 2 < 0, L = N ? _ < W ? _ - W : _ - D : 0;
|
|
2173
2174
|
return {
|
|
2174
2175
|
[v]: g[v] + L,
|
|
2175
2176
|
data: {
|
|
@@ -2182,7 +2183,7 @@ const ki = (e) => ({
|
|
|
2182
2183
|
reset: N
|
|
2183
2184
|
};
|
|
2184
2185
|
}
|
|
2185
|
-
}),
|
|
2186
|
+
}), Ai = function(e) {
|
|
2186
2187
|
return e === void 0 && (e = {}), {
|
|
2187
2188
|
name: "flip",
|
|
2188
2189
|
options: e,
|
|
@@ -2206,12 +2207,12 @@ const ki = (e) => ({
|
|
|
2206
2207
|
} = Ae(e, t);
|
|
2207
2208
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
2208
2209
|
return {};
|
|
2209
|
-
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 ? [
|
|
2210
|
-
!g && T && E.push(...
|
|
2210
|
+
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)] : yi(s)), T = m !== "none";
|
|
2211
|
+
!g && T && E.push(...Si(s, f, m, S));
|
|
2211
2212
|
const C = [s, ...E], P = await gt(t, w), O = [];
|
|
2212
2213
|
let M = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
2213
2214
|
if (d && O.push(P[b]), p) {
|
|
2214
|
-
const _ =
|
|
2215
|
+
const _ = xi(o, i, S);
|
|
2215
2216
|
O.push(P[_[0]], P[_[1]]);
|
|
2216
2217
|
}
|
|
2217
2218
|
if (M = [...M, {
|
|
@@ -2262,7 +2263,7 @@ const ki = (e) => ({
|
|
|
2262
2263
|
}
|
|
2263
2264
|
};
|
|
2264
2265
|
};
|
|
2265
|
-
function
|
|
2266
|
+
function Kn(e, t) {
|
|
2266
2267
|
return {
|
|
2267
2268
|
top: e.top - t.height,
|
|
2268
2269
|
right: e.right - t.width,
|
|
@@ -2270,10 +2271,10 @@ function Xn(e, t) {
|
|
|
2270
2271
|
left: e.left - t.width
|
|
2271
2272
|
};
|
|
2272
2273
|
}
|
|
2273
|
-
function
|
|
2274
|
-
return
|
|
2274
|
+
function Gn(e) {
|
|
2275
|
+
return mi.some((t) => e[t] >= 0);
|
|
2275
2276
|
}
|
|
2276
|
-
const
|
|
2277
|
+
const Pi = function(e) {
|
|
2277
2278
|
return e === void 0 && (e = {}), {
|
|
2278
2279
|
name: "hide",
|
|
2279
2280
|
options: e,
|
|
@@ -2289,11 +2290,11 @@ const Ai = function(e) {
|
|
|
2289
2290
|
const a = await gt(t, {
|
|
2290
2291
|
...o,
|
|
2291
2292
|
elementContext: "reference"
|
|
2292
|
-
}), i =
|
|
2293
|
+
}), i = Kn(a, n.reference);
|
|
2293
2294
|
return {
|
|
2294
2295
|
data: {
|
|
2295
2296
|
referenceHiddenOffsets: i,
|
|
2296
|
-
referenceHidden:
|
|
2297
|
+
referenceHidden: Gn(i)
|
|
2297
2298
|
}
|
|
2298
2299
|
};
|
|
2299
2300
|
}
|
|
@@ -2301,11 +2302,11 @@ const Ai = function(e) {
|
|
|
2301
2302
|
const a = await gt(t, {
|
|
2302
2303
|
...o,
|
|
2303
2304
|
altBoundary: !0
|
|
2304
|
-
}), i =
|
|
2305
|
+
}), i = Kn(a, n.floating);
|
|
2305
2306
|
return {
|
|
2306
2307
|
data: {
|
|
2307
2308
|
escapedOffsets: i,
|
|
2308
|
-
escaped:
|
|
2309
|
+
escaped: Gn(i)
|
|
2309
2310
|
}
|
|
2310
2311
|
};
|
|
2311
2312
|
}
|
|
@@ -2315,7 +2316,7 @@ const Ai = function(e) {
|
|
|
2315
2316
|
}
|
|
2316
2317
|
};
|
|
2317
2318
|
};
|
|
2318
|
-
async function
|
|
2319
|
+
async function Ri(e, t) {
|
|
2319
2320
|
const {
|
|
2320
2321
|
placement: n,
|
|
2321
2322
|
platform: r,
|
|
@@ -2342,7 +2343,7 @@ async function Pi(e, t) {
|
|
|
2342
2343
|
y: v * d
|
|
2343
2344
|
};
|
|
2344
2345
|
}
|
|
2345
|
-
const
|
|
2346
|
+
const Ii = function(e) {
|
|
2346
2347
|
return e === void 0 && (e = 0), {
|
|
2347
2348
|
name: "offset",
|
|
2348
2349
|
options: e,
|
|
@@ -2353,7 +2354,7 @@ const Ri = function(e) {
|
|
|
2353
2354
|
y: a,
|
|
2354
2355
|
placement: i,
|
|
2355
2356
|
middlewareData: s
|
|
2356
|
-
} = t, l = await
|
|
2357
|
+
} = t, l = await Ri(t, e);
|
|
2357
2358
|
return i === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
|
|
2358
2359
|
x: o + l.x,
|
|
2359
2360
|
y: a + l.y,
|
|
@@ -2364,7 +2365,7 @@ const Ri = function(e) {
|
|
|
2364
2365
|
};
|
|
2365
2366
|
}
|
|
2366
2367
|
};
|
|
2367
|
-
},
|
|
2368
|
+
}, Ni = function(e) {
|
|
2368
2369
|
return e === void 0 && (e = {}), {
|
|
2369
2370
|
name: "shift",
|
|
2370
2371
|
options: e,
|
|
@@ -2392,15 +2393,15 @@ const Ri = function(e) {
|
|
|
2392
2393
|
} = Ae(e, t), c = {
|
|
2393
2394
|
x: n,
|
|
2394
2395
|
y: r
|
|
2395
|
-
}, d = await gt(t, l), p = De(Pe(o)), g =
|
|
2396
|
+
}, d = await gt(t, l), p = De(Pe(o)), g = Sn(p);
|
|
2396
2397
|
let v = c[g], m = c[p];
|
|
2397
2398
|
if (a) {
|
|
2398
2399
|
const w = g === "y" ? "top" : "left", b = g === "y" ? "bottom" : "right", x = v + d[w], y = v - d[b];
|
|
2399
|
-
v =
|
|
2400
|
+
v = ln(x, v, y);
|
|
2400
2401
|
}
|
|
2401
2402
|
if (i) {
|
|
2402
2403
|
const w = p === "y" ? "top" : "left", b = p === "y" ? "bottom" : "right", x = m + d[w], y = m - d[b];
|
|
2403
|
-
m =
|
|
2404
|
+
m = ln(x, m, y);
|
|
2404
2405
|
}
|
|
2405
2406
|
const f = s.fn({
|
|
2406
2407
|
...t,
|
|
@@ -2420,7 +2421,7 @@ const Ri = function(e) {
|
|
|
2420
2421
|
};
|
|
2421
2422
|
}
|
|
2422
2423
|
};
|
|
2423
|
-
},
|
|
2424
|
+
}, _i = function(e) {
|
|
2424
2425
|
return e === void 0 && (e = {}), {
|
|
2425
2426
|
options: e,
|
|
2426
2427
|
fn(t) {
|
|
@@ -2437,7 +2438,7 @@ const Ri = function(e) {
|
|
|
2437
2438
|
} = Ae(e, t), d = {
|
|
2438
2439
|
x: n,
|
|
2439
2440
|
y: r
|
|
2440
|
-
}, p = De(o), g =
|
|
2441
|
+
}, p = De(o), g = Sn(p);
|
|
2441
2442
|
let v = d[g], m = d[p];
|
|
2442
2443
|
const f = Ae(s, t), w = typeof f == "number" ? {
|
|
2443
2444
|
mainAxis: f,
|
|
@@ -2462,7 +2463,7 @@ const Ri = function(e) {
|
|
|
2462
2463
|
};
|
|
2463
2464
|
}
|
|
2464
2465
|
};
|
|
2465
|
-
},
|
|
2466
|
+
}, Oi = function(e) {
|
|
2466
2467
|
return e === void 0 && (e = {}), {
|
|
2467
2468
|
name: "size",
|
|
2468
2469
|
options: e,
|
|
@@ -2503,11 +2504,11 @@ const Ri = function(e) {
|
|
|
2503
2504
|
}
|
|
2504
2505
|
};
|
|
2505
2506
|
};
|
|
2506
|
-
function
|
|
2507
|
+
function Ft() {
|
|
2507
2508
|
return typeof window < "u";
|
|
2508
2509
|
}
|
|
2509
2510
|
function it(e) {
|
|
2510
|
-
return
|
|
2511
|
+
return Mr(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2511
2512
|
}
|
|
2512
2513
|
function ie(e) {
|
|
2513
2514
|
var t;
|
|
@@ -2515,19 +2516,19 @@ function ie(e) {
|
|
|
2515
2516
|
}
|
|
2516
2517
|
function Se(e) {
|
|
2517
2518
|
var t;
|
|
2518
|
-
return (t = (
|
|
2519
|
+
return (t = (Mr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
2519
2520
|
}
|
|
2520
|
-
function
|
|
2521
|
-
return
|
|
2521
|
+
function Mr(e) {
|
|
2522
|
+
return Ft() ? e instanceof Node || e instanceof ie(e).Node : !1;
|
|
2522
2523
|
}
|
|
2523
2524
|
function de(e) {
|
|
2524
|
-
return
|
|
2525
|
+
return Ft() ? e instanceof Element || e instanceof ie(e).Element : !1;
|
|
2525
2526
|
}
|
|
2526
2527
|
function Ce(e) {
|
|
2527
|
-
return
|
|
2528
|
+
return Ft() ? e instanceof HTMLElement || e instanceof ie(e).HTMLElement : !1;
|
|
2528
2529
|
}
|
|
2529
|
-
function
|
|
2530
|
-
return !
|
|
2530
|
+
function Zn(e) {
|
|
2531
|
+
return !Ft() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ie(e).ShadowRoot;
|
|
2531
2532
|
}
|
|
2532
2533
|
function bt(e) {
|
|
2533
2534
|
const {
|
|
@@ -2538,10 +2539,10 @@ function bt(e) {
|
|
|
2538
2539
|
} = fe(e);
|
|
2539
2540
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
2540
2541
|
}
|
|
2541
|
-
function
|
|
2542
|
+
function Mi(e) {
|
|
2542
2543
|
return ["table", "td", "th"].includes(it(e));
|
|
2543
2544
|
}
|
|
2544
|
-
function
|
|
2545
|
+
function Vt(e) {
|
|
2545
2546
|
return [":popover-open", ":modal"].some((t) => {
|
|
2546
2547
|
try {
|
|
2547
2548
|
return e.matches(t);
|
|
@@ -2550,22 +2551,22 @@ function Ft(e) {
|
|
|
2550
2551
|
}
|
|
2551
2552
|
});
|
|
2552
2553
|
}
|
|
2553
|
-
function
|
|
2554
|
-
const t =
|
|
2554
|
+
function Tn(e) {
|
|
2555
|
+
const t = An(), n = de(e) ? fe(e) : e;
|
|
2555
2556
|
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));
|
|
2556
2557
|
}
|
|
2557
|
-
function
|
|
2558
|
+
function Li(e) {
|
|
2558
2559
|
let t = Be(e);
|
|
2559
2560
|
for (; Ce(t) && !nt(t); ) {
|
|
2560
|
-
if (
|
|
2561
|
+
if (Tn(t))
|
|
2561
2562
|
return t;
|
|
2562
|
-
if (
|
|
2563
|
+
if (Vt(t))
|
|
2563
2564
|
return null;
|
|
2564
2565
|
t = Be(t);
|
|
2565
2566
|
}
|
|
2566
2567
|
return null;
|
|
2567
2568
|
}
|
|
2568
|
-
function
|
|
2569
|
+
function An() {
|
|
2569
2570
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2570
2571
|
}
|
|
2571
2572
|
function nt(e) {
|
|
@@ -2574,7 +2575,7 @@ function nt(e) {
|
|
|
2574
2575
|
function fe(e) {
|
|
2575
2576
|
return ie(e).getComputedStyle(e);
|
|
2576
2577
|
}
|
|
2577
|
-
function
|
|
2578
|
+
function Wt(e) {
|
|
2578
2579
|
return de(e) ? {
|
|
2579
2580
|
scrollLeft: e.scrollLeft,
|
|
2580
2581
|
scrollTop: e.scrollTop
|
|
@@ -2590,112 +2591,112 @@ function Be(e) {
|
|
|
2590
2591
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
2591
2592
|
e.assignedSlot || // DOM Element detected.
|
|
2592
2593
|
e.parentNode || // ShadowRoot detected.
|
|
2593
|
-
|
|
2594
|
+
Zn(e) && e.host || // Fallback.
|
|
2594
2595
|
Se(e)
|
|
2595
2596
|
);
|
|
2596
|
-
return
|
|
2597
|
+
return Zn(t) ? t.host : t;
|
|
2597
2598
|
}
|
|
2598
|
-
function
|
|
2599
|
+
function Lr(e) {
|
|
2599
2600
|
const t = Be(e);
|
|
2600
|
-
return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ce(t) && bt(t) ? t :
|
|
2601
|
+
return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ce(t) && bt(t) ? t : Lr(t);
|
|
2601
2602
|
}
|
|
2602
2603
|
function mt(e, t, n) {
|
|
2603
2604
|
var r;
|
|
2604
2605
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2605
|
-
const o =
|
|
2606
|
+
const o = Lr(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = ie(o);
|
|
2606
2607
|
if (a) {
|
|
2607
|
-
const s =
|
|
2608
|
+
const s = un(i);
|
|
2608
2609
|
return t.concat(i, i.visualViewport || [], bt(o) ? o : [], s && n ? mt(s) : []);
|
|
2609
2610
|
}
|
|
2610
2611
|
return t.concat(o, mt(o, [], n));
|
|
2611
2612
|
}
|
|
2612
|
-
function
|
|
2613
|
+
function un(e) {
|
|
2613
2614
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2614
2615
|
}
|
|
2615
|
-
function
|
|
2616
|
+
function Dr(e) {
|
|
2616
2617
|
const t = fe(e);
|
|
2617
2618
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
2618
|
-
const o = Ce(e), a = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, s =
|
|
2619
|
+
const o = Ce(e), a = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, s = _t(n) !== a || _t(r) !== i;
|
|
2619
2620
|
return s && (n = a, r = i), {
|
|
2620
2621
|
width: n,
|
|
2621
2622
|
height: r,
|
|
2622
2623
|
$: s
|
|
2623
2624
|
};
|
|
2624
2625
|
}
|
|
2625
|
-
function
|
|
2626
|
+
function Pn(e) {
|
|
2626
2627
|
return de(e) ? e : e.contextElement;
|
|
2627
2628
|
}
|
|
2628
2629
|
function et(e) {
|
|
2629
|
-
const t =
|
|
2630
|
+
const t = Pn(e);
|
|
2630
2631
|
if (!Ce(t))
|
|
2631
2632
|
return ye(1);
|
|
2632
2633
|
const n = t.getBoundingClientRect(), {
|
|
2633
2634
|
width: r,
|
|
2634
2635
|
height: o,
|
|
2635
2636
|
$: a
|
|
2636
|
-
} =
|
|
2637
|
-
let i = (a ?
|
|
2637
|
+
} = Dr(t);
|
|
2638
|
+
let i = (a ? _t(n.width) : n.width) / r, s = (a ? _t(n.height) : n.height) / o;
|
|
2638
2639
|
return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
2639
2640
|
x: i,
|
|
2640
2641
|
y: s
|
|
2641
2642
|
};
|
|
2642
2643
|
}
|
|
2643
|
-
const
|
|
2644
|
-
function
|
|
2644
|
+
const Di = /* @__PURE__ */ ye(0);
|
|
2645
|
+
function Br(e) {
|
|
2645
2646
|
const t = ie(e);
|
|
2646
|
-
return !
|
|
2647
|
+
return !An() || !t.visualViewport ? Di : {
|
|
2647
2648
|
x: t.visualViewport.offsetLeft,
|
|
2648
2649
|
y: t.visualViewport.offsetTop
|
|
2649
2650
|
};
|
|
2650
2651
|
}
|
|
2651
|
-
function
|
|
2652
|
+
function Bi(e, t, n) {
|
|
2652
2653
|
return t === void 0 && (t = !1), !n || t && n !== ie(e) ? !1 : t;
|
|
2653
2654
|
}
|
|
2654
2655
|
function Ue(e, t, n, r) {
|
|
2655
2656
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
2656
|
-
const o = e.getBoundingClientRect(), a =
|
|
2657
|
+
const o = e.getBoundingClientRect(), a = Pn(e);
|
|
2657
2658
|
let i = ye(1);
|
|
2658
2659
|
t && (r ? de(r) && (i = et(r)) : i = et(e));
|
|
2659
|
-
const s =
|
|
2660
|
+
const s = Bi(a, n, r) ? Br(a) : ye(0);
|
|
2660
2661
|
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;
|
|
2661
2662
|
if (a) {
|
|
2662
2663
|
const g = ie(a), v = r && de(r) ? ie(r) : r;
|
|
2663
|
-
let m = g, f =
|
|
2664
|
+
let m = g, f = un(m);
|
|
2664
2665
|
for (; f && r && v !== m; ) {
|
|
2665
2666
|
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;
|
|
2666
|
-
l *= w.x, c *= w.y, d *= w.x, p *= w.y, l += y, c += S, m = ie(f), f =
|
|
2667
|
+
l *= w.x, c *= w.y, d *= w.x, p *= w.y, l += y, c += S, m = ie(f), f = un(m);
|
|
2667
2668
|
}
|
|
2668
2669
|
}
|
|
2669
|
-
return
|
|
2670
|
+
return Mt({
|
|
2670
2671
|
width: d,
|
|
2671
2672
|
height: p,
|
|
2672
2673
|
x: l,
|
|
2673
2674
|
y: c
|
|
2674
2675
|
});
|
|
2675
2676
|
}
|
|
2676
|
-
function
|
|
2677
|
-
const n =
|
|
2677
|
+
function Rn(e, t) {
|
|
2678
|
+
const n = Wt(e).scrollLeft;
|
|
2678
2679
|
return t ? t.left + n : Ue(Se(e)).left + n;
|
|
2679
2680
|
}
|
|
2680
|
-
function
|
|
2681
|
+
function zr(e, t, n) {
|
|
2681
2682
|
n === void 0 && (n = !1);
|
|
2682
2683
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
2683
2684
|
// RTL <body> scrollbar.
|
|
2684
|
-
|
|
2685
|
+
Rn(e, r)
|
|
2685
2686
|
)), a = r.top + t.scrollTop;
|
|
2686
2687
|
return {
|
|
2687
2688
|
x: o,
|
|
2688
2689
|
y: a
|
|
2689
2690
|
};
|
|
2690
2691
|
}
|
|
2691
|
-
function
|
|
2692
|
+
function zi(e) {
|
|
2692
2693
|
let {
|
|
2693
2694
|
elements: t,
|
|
2694
2695
|
rect: n,
|
|
2695
2696
|
offsetParent: r,
|
|
2696
2697
|
strategy: o
|
|
2697
2698
|
} = e;
|
|
2698
|
-
const a = o === "fixed", i = Se(r), s = t ?
|
|
2699
|
+
const a = o === "fixed", i = Se(r), s = t ? Vt(t.floating) : !1;
|
|
2699
2700
|
if (r === i || s && a)
|
|
2700
2701
|
return n;
|
|
2701
2702
|
let l = {
|
|
@@ -2703,11 +2704,11 @@ function Bi(e) {
|
|
|
2703
2704
|
scrollTop: 0
|
|
2704
2705
|
}, c = ye(1);
|
|
2705
2706
|
const d = ye(0), p = Ce(r);
|
|
2706
|
-
if ((p || !p && !a) && ((it(r) !== "body" || bt(i)) && (l =
|
|
2707
|
+
if ((p || !p && !a) && ((it(r) !== "body" || bt(i)) && (l = Wt(r)), Ce(r))) {
|
|
2707
2708
|
const v = Ue(r);
|
|
2708
2709
|
c = et(r), d.x = v.x + r.clientLeft, d.y = v.y + r.clientTop;
|
|
2709
2710
|
}
|
|
2710
|
-
const g = i && !p && !a ?
|
|
2711
|
+
const g = i && !p && !a ? zr(i, l, !0) : ye(0);
|
|
2711
2712
|
return {
|
|
2712
2713
|
width: n.width * c.x,
|
|
2713
2714
|
height: n.height * c.y,
|
|
@@ -2715,12 +2716,12 @@ function Bi(e) {
|
|
|
2715
2716
|
y: n.y * c.y - l.scrollTop * c.y + d.y + g.y
|
|
2716
2717
|
};
|
|
2717
2718
|
}
|
|
2718
|
-
function
|
|
2719
|
+
function Fi(e) {
|
|
2719
2720
|
return Array.from(e.getClientRects());
|
|
2720
2721
|
}
|
|
2721
|
-
function
|
|
2722
|
-
const t = Se(e), n =
|
|
2723
|
-
let i = -n.scrollLeft +
|
|
2722
|
+
function Vi(e) {
|
|
2723
|
+
const t = Se(e), n = Wt(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);
|
|
2724
|
+
let i = -n.scrollLeft + Rn(e);
|
|
2724
2725
|
const s = -n.scrollTop;
|
|
2725
2726
|
return fe(r).direction === "rtl" && (i += ae(t.clientWidth, r.clientWidth) - o), {
|
|
2726
2727
|
width: o,
|
|
@@ -2729,12 +2730,12 @@ function Fi(e) {
|
|
|
2729
2730
|
y: s
|
|
2730
2731
|
};
|
|
2731
2732
|
}
|
|
2732
|
-
function
|
|
2733
|
+
function Wi(e, t) {
|
|
2733
2734
|
const n = ie(e), r = Se(e), o = n.visualViewport;
|
|
2734
2735
|
let a = r.clientWidth, i = r.clientHeight, s = 0, l = 0;
|
|
2735
2736
|
if (o) {
|
|
2736
2737
|
a = o.width, i = o.height;
|
|
2737
|
-
const c =
|
|
2738
|
+
const c = An();
|
|
2738
2739
|
(!c || c && t === "fixed") && (s = o.offsetLeft, l = o.offsetTop);
|
|
2739
2740
|
}
|
|
2740
2741
|
return {
|
|
@@ -2744,7 +2745,7 @@ function Vi(e, t) {
|
|
|
2744
2745
|
y: l
|
|
2745
2746
|
};
|
|
2746
2747
|
}
|
|
2747
|
-
function
|
|
2748
|
+
function $i(e, t) {
|
|
2748
2749
|
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;
|
|
2749
2750
|
return {
|
|
2750
2751
|
width: i,
|
|
@@ -2753,16 +2754,16 @@ function Wi(e, t) {
|
|
|
2753
2754
|
y: c
|
|
2754
2755
|
};
|
|
2755
2756
|
}
|
|
2756
|
-
function
|
|
2757
|
+
function qn(e, t, n) {
|
|
2757
2758
|
let r;
|
|
2758
2759
|
if (t === "viewport")
|
|
2759
|
-
r =
|
|
2760
|
+
r = Wi(e, n);
|
|
2760
2761
|
else if (t === "document")
|
|
2761
|
-
r =
|
|
2762
|
+
r = Vi(Se(e));
|
|
2762
2763
|
else if (de(t))
|
|
2763
|
-
r =
|
|
2764
|
+
r = $i(t, n);
|
|
2764
2765
|
else {
|
|
2765
|
-
const o =
|
|
2766
|
+
const o = Br(e);
|
|
2766
2767
|
r = {
|
|
2767
2768
|
x: t.x - o.x,
|
|
2768
2769
|
y: t.y - o.y,
|
|
@@ -2770,13 +2771,13 @@ function Zn(e, t, n) {
|
|
|
2770
2771
|
height: t.height
|
|
2771
2772
|
};
|
|
2772
2773
|
}
|
|
2773
|
-
return
|
|
2774
|
+
return Mt(r);
|
|
2774
2775
|
}
|
|
2775
|
-
function
|
|
2776
|
+
function Fr(e, t) {
|
|
2776
2777
|
const n = Be(e);
|
|
2777
|
-
return n === t || !de(n) || nt(n) ? !1 : fe(n).position === "fixed" ||
|
|
2778
|
+
return n === t || !de(n) || nt(n) ? !1 : fe(n).position === "fixed" || Fr(n, t);
|
|
2778
2779
|
}
|
|
2779
|
-
function
|
|
2780
|
+
function Ui(e, t) {
|
|
2780
2781
|
const n = t.get(e);
|
|
2781
2782
|
if (n)
|
|
2782
2783
|
return n;
|
|
@@ -2784,22 +2785,22 @@ function $i(e, t) {
|
|
|
2784
2785
|
const a = fe(e).position === "fixed";
|
|
2785
2786
|
let i = a ? Be(e) : e;
|
|
2786
2787
|
for (; de(i) && !nt(i); ) {
|
|
2787
|
-
const s = fe(i), l =
|
|
2788
|
-
!l && s.position === "fixed" && (o = null), (a ? !l && !o : !l && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || bt(i) && !l &&
|
|
2788
|
+
const s = fe(i), l = Tn(i);
|
|
2789
|
+
!l && s.position === "fixed" && (o = null), (a ? !l && !o : !l && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || bt(i) && !l && Fr(e, i)) ? r = r.filter((d) => d !== i) : o = s, i = Be(i);
|
|
2789
2790
|
}
|
|
2790
2791
|
return t.set(e, r), r;
|
|
2791
2792
|
}
|
|
2792
|
-
function
|
|
2793
|
+
function Hi(e) {
|
|
2793
2794
|
let {
|
|
2794
2795
|
element: t,
|
|
2795
2796
|
boundary: n,
|
|
2796
2797
|
rootBoundary: r,
|
|
2797
2798
|
strategy: o
|
|
2798
2799
|
} = e;
|
|
2799
|
-
const i = [...n === "clippingAncestors" ?
|
|
2800
|
-
const p =
|
|
2800
|
+
const i = [...n === "clippingAncestors" ? Vt(t) ? [] : Ui(t, this._c) : [].concat(n), r], s = i[0], l = i.reduce((c, d) => {
|
|
2801
|
+
const p = qn(t, d, o);
|
|
2801
2802
|
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;
|
|
2802
|
-
},
|
|
2803
|
+
}, qn(t, s, o));
|
|
2803
2804
|
return {
|
|
2804
2805
|
width: l.right - l.left,
|
|
2805
2806
|
height: l.bottom - l.top,
|
|
@@ -2807,17 +2808,17 @@ function Ui(e) {
|
|
|
2807
2808
|
y: l.top
|
|
2808
2809
|
};
|
|
2809
2810
|
}
|
|
2810
|
-
function
|
|
2811
|
+
function ji(e) {
|
|
2811
2812
|
const {
|
|
2812
2813
|
width: t,
|
|
2813
2814
|
height: n
|
|
2814
|
-
} =
|
|
2815
|
+
} = Dr(e);
|
|
2815
2816
|
return {
|
|
2816
2817
|
width: t,
|
|
2817
2818
|
height: n
|
|
2818
2819
|
};
|
|
2819
2820
|
}
|
|
2820
|
-
function
|
|
2821
|
+
function Yi(e, t, n) {
|
|
2821
2822
|
const r = Ce(t), o = Se(t), a = n === "fixed", i = Ue(e, !0, a, t);
|
|
2822
2823
|
let s = {
|
|
2823
2824
|
scrollLeft: 0,
|
|
@@ -2825,11 +2826,11 @@ function ji(e, t, n) {
|
|
|
2825
2826
|
};
|
|
2826
2827
|
const l = ye(0);
|
|
2827
2828
|
if (r || !r && !a)
|
|
2828
|
-
if ((it(t) !== "body" || bt(o)) && (s =
|
|
2829
|
+
if ((it(t) !== "body" || bt(o)) && (s = Wt(t)), r) {
|
|
2829
2830
|
const g = Ue(t, !0, a, t);
|
|
2830
2831
|
l.x = g.x + t.clientLeft, l.y = g.y + t.clientTop;
|
|
2831
|
-
} else o && (l.x =
|
|
2832
|
-
const c = o && !r && !a ?
|
|
2832
|
+
} else o && (l.x = Rn(o));
|
|
2833
|
+
const c = o && !r && !a ? zr(o, s) : ye(0), d = i.left + s.scrollLeft - l.x - c.x, p = i.top + s.scrollTop - l.y - c.y;
|
|
2833
2834
|
return {
|
|
2834
2835
|
x: d,
|
|
2835
2836
|
y: p,
|
|
@@ -2837,10 +2838,10 @@ function ji(e, t, n) {
|
|
|
2837
2838
|
height: i.height
|
|
2838
2839
|
};
|
|
2839
2840
|
}
|
|
2840
|
-
function
|
|
2841
|
+
function qt(e) {
|
|
2841
2842
|
return fe(e).position === "static";
|
|
2842
2843
|
}
|
|
2843
|
-
function
|
|
2844
|
+
function Qn(e, t) {
|
|
2844
2845
|
if (!Ce(e) || fe(e).position === "fixed")
|
|
2845
2846
|
return null;
|
|
2846
2847
|
if (t)
|
|
@@ -2848,28 +2849,28 @@ function qn(e, t) {
|
|
|
2848
2849
|
let n = e.offsetParent;
|
|
2849
2850
|
return Se(e) === n && (n = n.ownerDocument.body), n;
|
|
2850
2851
|
}
|
|
2851
|
-
function
|
|
2852
|
+
function Vr(e, t) {
|
|
2852
2853
|
const n = ie(e);
|
|
2853
|
-
if (
|
|
2854
|
+
if (Vt(e))
|
|
2854
2855
|
return n;
|
|
2855
2856
|
if (!Ce(e)) {
|
|
2856
2857
|
let o = Be(e);
|
|
2857
2858
|
for (; o && !nt(o); ) {
|
|
2858
|
-
if (de(o) && !
|
|
2859
|
+
if (de(o) && !qt(o))
|
|
2859
2860
|
return o;
|
|
2860
2861
|
o = Be(o);
|
|
2861
2862
|
}
|
|
2862
2863
|
return n;
|
|
2863
2864
|
}
|
|
2864
|
-
let r =
|
|
2865
|
-
for (; r &&
|
|
2866
|
-
r =
|
|
2867
|
-
return r && nt(r) &&
|
|
2865
|
+
let r = Qn(e, t);
|
|
2866
|
+
for (; r && Mi(r) && qt(r); )
|
|
2867
|
+
r = Qn(r, t);
|
|
2868
|
+
return r && nt(r) && qt(r) && !Tn(r) ? n : r || Li(e) || n;
|
|
2868
2869
|
}
|
|
2869
|
-
const
|
|
2870
|
-
const t = this.getOffsetParent ||
|
|
2870
|
+
const Xi = async function(e) {
|
|
2871
|
+
const t = this.getOffsetParent || Vr, n = this.getDimensions, r = await n(e.floating);
|
|
2871
2872
|
return {
|
|
2872
|
-
reference:
|
|
2873
|
+
reference: Yi(e.reference, await t(e.floating), e.strategy),
|
|
2873
2874
|
floating: {
|
|
2874
2875
|
x: 0,
|
|
2875
2876
|
y: 0,
|
|
@@ -2878,25 +2879,25 @@ const Yi = async function(e) {
|
|
|
2878
2879
|
}
|
|
2879
2880
|
};
|
|
2880
2881
|
};
|
|
2881
|
-
function
|
|
2882
|
+
function Ki(e) {
|
|
2882
2883
|
return fe(e).direction === "rtl";
|
|
2883
2884
|
}
|
|
2884
|
-
const
|
|
2885
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
2885
|
+
const Gi = {
|
|
2886
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: zi,
|
|
2886
2887
|
getDocumentElement: Se,
|
|
2887
|
-
getClippingRect:
|
|
2888
|
-
getOffsetParent:
|
|
2889
|
-
getElementRects:
|
|
2890
|
-
getClientRects:
|
|
2891
|
-
getDimensions:
|
|
2888
|
+
getClippingRect: Hi,
|
|
2889
|
+
getOffsetParent: Vr,
|
|
2890
|
+
getElementRects: Xi,
|
|
2891
|
+
getClientRects: Fi,
|
|
2892
|
+
getDimensions: ji,
|
|
2892
2893
|
getScale: et,
|
|
2893
2894
|
isElement: de,
|
|
2894
|
-
isRTL:
|
|
2895
|
+
isRTL: Ki
|
|
2895
2896
|
};
|
|
2896
|
-
function
|
|
2897
|
+
function Wr(e, t) {
|
|
2897
2898
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2898
2899
|
}
|
|
2899
|
-
function
|
|
2900
|
+
function Zi(e, t) {
|
|
2900
2901
|
let n = null, r;
|
|
2901
2902
|
const o = Se(e);
|
|
2902
2903
|
function a() {
|
|
@@ -2927,7 +2928,7 @@ function Gi(e, t) {
|
|
|
2927
2928
|
i(!1, 1e-7);
|
|
2928
2929
|
}, 1e3);
|
|
2929
2930
|
}
|
|
2930
|
-
C === 1 && !
|
|
2931
|
+
C === 1 && !Wr(c, e.getBoundingClientRect()) && i(), S = !1;
|
|
2931
2932
|
}
|
|
2932
2933
|
try {
|
|
2933
2934
|
n = new IntersectionObserver(E, {
|
|
@@ -2942,7 +2943,7 @@ function Gi(e, t) {
|
|
|
2942
2943
|
}
|
|
2943
2944
|
return i(!0), a;
|
|
2944
2945
|
}
|
|
2945
|
-
function
|
|
2946
|
+
function qi(e, t, n, r) {
|
|
2946
2947
|
r === void 0 && (r = {});
|
|
2947
2948
|
const {
|
|
2948
2949
|
ancestorScroll: o = !0,
|
|
@@ -2950,13 +2951,13 @@ function Zi(e, t, n, r) {
|
|
|
2950
2951
|
elementResize: i = typeof ResizeObserver == "function",
|
|
2951
2952
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
2952
2953
|
animationFrame: l = !1
|
|
2953
|
-
} = r, c =
|
|
2954
|
+
} = r, c = Pn(e), d = o || a ? [...c ? mt(c) : [], ...mt(t)] : [];
|
|
2954
2955
|
d.forEach((b) => {
|
|
2955
2956
|
o && b.addEventListener("scroll", n, {
|
|
2956
2957
|
passive: !0
|
|
2957
2958
|
}), a && b.addEventListener("resize", n);
|
|
2958
2959
|
});
|
|
2959
|
-
const p = c && s ?
|
|
2960
|
+
const p = c && s ? Zi(c, n) : null;
|
|
2960
2961
|
let g = -1, v = null;
|
|
2961
2962
|
i && (v = new ResizeObserver((b) => {
|
|
2962
2963
|
let [x] = b;
|
|
@@ -2969,7 +2970,7 @@ function Zi(e, t, n, r) {
|
|
|
2969
2970
|
l && w();
|
|
2970
2971
|
function w() {
|
|
2971
2972
|
const b = Ue(e);
|
|
2972
|
-
f && !
|
|
2973
|
+
f && !Wr(f, b) && n(), f = b, m = requestAnimationFrame(w);
|
|
2973
2974
|
}
|
|
2974
2975
|
return n(), () => {
|
|
2975
2976
|
var b;
|
|
@@ -2978,21 +2979,21 @@ function Zi(e, t, n, r) {
|
|
|
2978
2979
|
}), p == null || p(), (b = v) == null || b.disconnect(), v = null, l && cancelAnimationFrame(m);
|
|
2979
2980
|
};
|
|
2980
2981
|
}
|
|
2981
|
-
const
|
|
2982
|
+
const Qi = Ii, Ji = Ni, es = Ai, ts = Oi, ns = Pi, Jn = Ti, rs = _i, os = (e, t, n) => {
|
|
2982
2983
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
2983
|
-
platform:
|
|
2984
|
+
platform: Gi,
|
|
2984
2985
|
...n
|
|
2985
2986
|
}, a = {
|
|
2986
2987
|
...o.platform,
|
|
2987
2988
|
_c: r
|
|
2988
2989
|
};
|
|
2989
|
-
return
|
|
2990
|
+
return ki(e, t, {
|
|
2990
2991
|
...o,
|
|
2991
2992
|
platform: a
|
|
2992
2993
|
});
|
|
2993
2994
|
};
|
|
2994
|
-
var
|
|
2995
|
-
function
|
|
2995
|
+
var Pt = typeof document < "u" ? Ko : Oe;
|
|
2996
|
+
function Lt(e, t) {
|
|
2996
2997
|
if (e === t)
|
|
2997
2998
|
return !0;
|
|
2998
2999
|
if (typeof e != typeof t)
|
|
@@ -3004,7 +3005,7 @@ function Mt(e, t) {
|
|
|
3004
3005
|
if (Array.isArray(e)) {
|
|
3005
3006
|
if (n = e.length, n !== t.length) return !1;
|
|
3006
3007
|
for (r = n; r-- !== 0; )
|
|
3007
|
-
if (!
|
|
3008
|
+
if (!Lt(e[r], t[r]))
|
|
3008
3009
|
return !1;
|
|
3009
3010
|
return !0;
|
|
3010
3011
|
}
|
|
@@ -3015,27 +3016,27 @@ function Mt(e, t) {
|
|
|
3015
3016
|
return !1;
|
|
3016
3017
|
for (r = n; r-- !== 0; ) {
|
|
3017
3018
|
const a = o[r];
|
|
3018
|
-
if (!(a === "_owner" && e.$$typeof) && !
|
|
3019
|
+
if (!(a === "_owner" && e.$$typeof) && !Lt(e[a], t[a]))
|
|
3019
3020
|
return !1;
|
|
3020
3021
|
}
|
|
3021
3022
|
return !0;
|
|
3022
3023
|
}
|
|
3023
3024
|
return e !== e && t !== t;
|
|
3024
3025
|
}
|
|
3025
|
-
function
|
|
3026
|
+
function $r(e) {
|
|
3026
3027
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
3027
3028
|
}
|
|
3028
|
-
function
|
|
3029
|
-
const n =
|
|
3029
|
+
function er(e, t) {
|
|
3030
|
+
const n = $r(e);
|
|
3030
3031
|
return Math.round(t * n) / n;
|
|
3031
3032
|
}
|
|
3032
|
-
function
|
|
3033
|
+
function Qt(e) {
|
|
3033
3034
|
const t = u.useRef(e);
|
|
3034
|
-
return
|
|
3035
|
+
return Pt(() => {
|
|
3035
3036
|
t.current = e;
|
|
3036
3037
|
}), t;
|
|
3037
3038
|
}
|
|
3038
|
-
function
|
|
3039
|
+
function as(e) {
|
|
3039
3040
|
e === void 0 && (e = {});
|
|
3040
3041
|
const {
|
|
3041
3042
|
placement: t = "bottom",
|
|
@@ -3057,12 +3058,12 @@ function os(e) {
|
|
|
3057
3058
|
middlewareData: {},
|
|
3058
3059
|
isPositioned: !1
|
|
3059
3060
|
}), [g, v] = u.useState(r);
|
|
3060
|
-
|
|
3061
|
+
Lt(g, r) || v(r);
|
|
3061
3062
|
const [m, f] = u.useState(null), [w, b] = u.useState(null), x = u.useCallback((R) => {
|
|
3062
3063
|
R !== T.current && (T.current = R, f(R));
|
|
3063
3064
|
}, []), y = u.useCallback((R) => {
|
|
3064
3065
|
R !== C.current && (C.current = R, b(R));
|
|
3065
|
-
}, []), S = a || m, E = i || w, T = u.useRef(null), C = u.useRef(null), P = u.useRef(d), O = l != null, M =
|
|
3066
|
+
}, []), S = a || m, E = i || w, T = u.useRef(null), C = u.useRef(null), P = u.useRef(d), O = l != null, M = Qt(l), V = Qt(o), W = Qt(c), D = u.useCallback(() => {
|
|
3066
3067
|
if (!T.current || !C.current)
|
|
3067
3068
|
return;
|
|
3068
3069
|
const R = {
|
|
@@ -3070,7 +3071,7 @@ function os(e) {
|
|
|
3070
3071
|
strategy: n,
|
|
3071
3072
|
middleware: g
|
|
3072
3073
|
};
|
|
3073
|
-
V.current && (R.platform = V.current),
|
|
3074
|
+
V.current && (R.platform = V.current), os(T.current, C.current, R).then(($) => {
|
|
3074
3075
|
const ee = {
|
|
3075
3076
|
...$,
|
|
3076
3077
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -3079,21 +3080,21 @@ function os(e) {
|
|
|
3079
3080
|
// setting it to `true` when `open === false` (must be specified).
|
|
3080
3081
|
isPositioned: W.current !== !1
|
|
3081
3082
|
};
|
|
3082
|
-
_.current && !
|
|
3083
|
+
_.current && !Lt(P.current, ee) && (P.current = ee, u.flushSync(() => {
|
|
3083
3084
|
p(ee);
|
|
3084
3085
|
}));
|
|
3085
3086
|
});
|
|
3086
3087
|
}, [g, t, n, V, W]);
|
|
3087
|
-
|
|
3088
|
+
Pt(() => {
|
|
3088
3089
|
c === !1 && P.current.isPositioned && (P.current.isPositioned = !1, p((R) => ({
|
|
3089
3090
|
...R,
|
|
3090
3091
|
isPositioned: !1
|
|
3091
3092
|
})));
|
|
3092
3093
|
}, [c]);
|
|
3093
3094
|
const _ = u.useRef(!1);
|
|
3094
|
-
|
|
3095
|
+
Pt(() => (_.current = !0, () => {
|
|
3095
3096
|
_.current = !1;
|
|
3096
|
-
}), []),
|
|
3097
|
+
}), []), Pt(() => {
|
|
3097
3098
|
if (S && (T.current = S), E && (C.current = E), S && E) {
|
|
3098
3099
|
if (M.current)
|
|
3099
3100
|
return M.current(S, E, D);
|
|
@@ -3116,11 +3117,11 @@ function os(e) {
|
|
|
3116
3117
|
};
|
|
3117
3118
|
if (!N.floating)
|
|
3118
3119
|
return R;
|
|
3119
|
-
const $ =
|
|
3120
|
+
const $ = er(N.floating, d.x), ee = er(N.floating, d.y);
|
|
3120
3121
|
return s ? {
|
|
3121
3122
|
...R,
|
|
3122
3123
|
transform: "translate(" + $ + "px, " + ee + "px)",
|
|
3123
|
-
|
|
3124
|
+
...$r(N.floating) >= 1.5 && {
|
|
3124
3125
|
willChange: "transform"
|
|
3125
3126
|
}
|
|
3126
3127
|
} : {
|
|
@@ -3137,7 +3138,7 @@ function os(e) {
|
|
|
3137
3138
|
floatingStyles: L
|
|
3138
3139
|
}), [d, D, Y, N, L]);
|
|
3139
3140
|
}
|
|
3140
|
-
const
|
|
3141
|
+
const is = (e) => {
|
|
3141
3142
|
function t(n) {
|
|
3142
3143
|
return {}.hasOwnProperty.call(n, "current");
|
|
3143
3144
|
}
|
|
@@ -3149,26 +3150,23 @@ const as = (e) => {
|
|
|
3149
3150
|
element: r,
|
|
3150
3151
|
padding: o
|
|
3151
3152
|
} = typeof e == "function" ? e(n) : e;
|
|
3152
|
-
return r && t(r) ? r.current != null ?
|
|
3153
|
+
return r && t(r) ? r.current != null ? Jn({
|
|
3153
3154
|
element: r.current,
|
|
3154
3155
|
padding: o
|
|
3155
|
-
}).fn(n) : {} : r ?
|
|
3156
|
+
}).fn(n) : {} : r ? Jn({
|
|
3156
3157
|
element: r,
|
|
3157
3158
|
padding: o
|
|
3158
3159
|
}).fn(n) : {};
|
|
3159
3160
|
}
|
|
3160
3161
|
};
|
|
3161
|
-
},
|
|
3162
|
-
...qi(e),
|
|
3163
|
-
options: [e, t]
|
|
3164
|
-
}), ss = (e, t) => ({
|
|
3162
|
+
}, ss = (e, t) => ({
|
|
3165
3163
|
...Qi(e),
|
|
3166
3164
|
options: [e, t]
|
|
3167
3165
|
}), ls = (e, t) => ({
|
|
3168
|
-
...
|
|
3166
|
+
...Ji(e),
|
|
3169
3167
|
options: [e, t]
|
|
3170
3168
|
}), cs = (e, t) => ({
|
|
3171
|
-
...
|
|
3169
|
+
...rs(e),
|
|
3172
3170
|
options: [e, t]
|
|
3173
3171
|
}), us = (e, t) => ({
|
|
3174
3172
|
...es(e),
|
|
@@ -3177,10 +3175,13 @@ const as = (e) => {
|
|
|
3177
3175
|
...ts(e),
|
|
3178
3176
|
options: [e, t]
|
|
3179
3177
|
}), fs = (e, t) => ({
|
|
3180
|
-
...
|
|
3178
|
+
...ns(e),
|
|
3179
|
+
options: [e, t]
|
|
3180
|
+
}), ps = (e, t) => ({
|
|
3181
|
+
...is(e),
|
|
3181
3182
|
options: [e, t]
|
|
3182
3183
|
});
|
|
3183
|
-
var
|
|
3184
|
+
var hs = "Arrow", Ur = u.forwardRef((e, t) => {
|
|
3184
3185
|
const { children: n, width: r = 10, height: o = 5, ...a } = e;
|
|
3185
3186
|
return /* @__PURE__ */ k(
|
|
3186
3187
|
K.svg,
|
|
@@ -3195,9 +3196,9 @@ var ps = "Arrow", $r = u.forwardRef((e, t) => {
|
|
|
3195
3196
|
}
|
|
3196
3197
|
);
|
|
3197
3198
|
});
|
|
3198
|
-
|
|
3199
|
-
var
|
|
3200
|
-
function
|
|
3199
|
+
Ur.displayName = hs;
|
|
3200
|
+
var vs = Ur;
|
|
3201
|
+
function gs(e) {
|
|
3201
3202
|
const [t, n] = u.useState(void 0);
|
|
3202
3203
|
return te(() => {
|
|
3203
3204
|
if (e) {
|
|
@@ -3219,21 +3220,21 @@ function vs(e) {
|
|
|
3219
3220
|
n(void 0);
|
|
3220
3221
|
}, [e]), t;
|
|
3221
3222
|
}
|
|
3222
|
-
var
|
|
3223
|
+
var In = "Popper", [Hr, jr] = yn(In), [ms, Yr] = Hr(In), Xr = (e) => {
|
|
3223
3224
|
const { __scopePopper: t, children: n } = e, [r, o] = u.useState(null);
|
|
3224
|
-
return /* @__PURE__ */ k(
|
|
3225
|
+
return /* @__PURE__ */ k(ms, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
3225
3226
|
};
|
|
3226
|
-
|
|
3227
|
-
var
|
|
3227
|
+
Xr.displayName = In;
|
|
3228
|
+
var Kr = "PopperAnchor", Gr = u.forwardRef(
|
|
3228
3229
|
(e, t) => {
|
|
3229
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, a =
|
|
3230
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, a = Yr(Kr, n), i = u.useRef(null), s = Z(t, i);
|
|
3230
3231
|
return u.useEffect(() => {
|
|
3231
3232
|
a.onAnchorChange((r == null ? void 0 : r.current) || i.current);
|
|
3232
3233
|
}), r ? null : /* @__PURE__ */ k(K.div, { ...o, ref: s });
|
|
3233
3234
|
}
|
|
3234
3235
|
);
|
|
3235
|
-
|
|
3236
|
-
var
|
|
3236
|
+
Gr.displayName = Kr;
|
|
3237
|
+
var Nn = "PopperContent", [ws, bs] = Hr(Nn), Zr = u.forwardRef(
|
|
3237
3238
|
(e, t) => {
|
|
3238
3239
|
var A, U, q, F, B, z;
|
|
3239
3240
|
const {
|
|
@@ -3251,42 +3252,42 @@ var In = "PopperContent", [ms, ws] = Ur(In), Gr = u.forwardRef(
|
|
|
3251
3252
|
updatePositionStrategy: v = "optimized",
|
|
3252
3253
|
onPlaced: m,
|
|
3253
3254
|
...f
|
|
3254
|
-
} = e, w =
|
|
3255
|
+
} = e, w = Yr(Nn, n), [b, x] = u.useState(null), y = Z(t, (oe) => x(oe)), [S, E] = u.useState(null), T = gs(S), C = (T == null ? void 0 : T.width) ?? 0, P = (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], W = V.length > 0, D = {
|
|
3255
3256
|
padding: M,
|
|
3256
|
-
boundary: V.filter(
|
|
3257
|
+
boundary: V.filter(ys),
|
|
3257
3258
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
3258
3259
|
altBoundary: W
|
|
3259
|
-
}, { refs: _, floatingStyles: Y, placement: N, isPositioned: L, middlewareData: R } =
|
|
3260
|
+
}, { refs: _, floatingStyles: Y, placement: N, isPositioned: L, middlewareData: R } = as({
|
|
3260
3261
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
3261
3262
|
strategy: "fixed",
|
|
3262
3263
|
placement: O,
|
|
3263
|
-
whileElementsMounted: (...oe) =>
|
|
3264
|
+
whileElementsMounted: (...oe) => qi(...oe, {
|
|
3264
3265
|
animationFrame: v === "always"
|
|
3265
3266
|
}),
|
|
3266
3267
|
elements: {
|
|
3267
3268
|
reference: w.anchor
|
|
3268
3269
|
},
|
|
3269
3270
|
middleware: [
|
|
3270
|
-
|
|
3271
|
-
l &&
|
|
3271
|
+
ss({ mainAxis: o + P, alignmentAxis: i }),
|
|
3272
|
+
l && ls({
|
|
3272
3273
|
mainAxis: !0,
|
|
3273
3274
|
crossAxis: !1,
|
|
3274
|
-
limiter: p === "partial" ?
|
|
3275
|
+
limiter: p === "partial" ? cs() : void 0,
|
|
3275
3276
|
...D
|
|
3276
3277
|
}),
|
|
3277
|
-
l &&
|
|
3278
|
-
|
|
3278
|
+
l && us({ ...D }),
|
|
3279
|
+
ds({
|
|
3279
3280
|
...D,
|
|
3280
3281
|
apply: ({ elements: oe, rects: ve, availableWidth: ut, availableHeight: dt }) => {
|
|
3281
|
-
const { width: ft, height:
|
|
3282
|
-
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", `${
|
|
3282
|
+
const { width: ft, height: $o } = ve.reference, xt = oe.floating.style;
|
|
3283
|
+
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", `${$o}px`);
|
|
3283
3284
|
}
|
|
3284
3285
|
}),
|
|
3285
|
-
S &&
|
|
3286
|
-
|
|
3287
|
-
g &&
|
|
3286
|
+
S && ps({ element: S, padding: s }),
|
|
3287
|
+
Cs({ arrowWidth: C, arrowHeight: P }),
|
|
3288
|
+
g && fs({ strategy: "referenceHidden", ...D })
|
|
3288
3289
|
]
|
|
3289
|
-
}), [$, ee] =
|
|
3290
|
+
}), [$, ee] = Jr(N), Ee = $e(m);
|
|
3290
3291
|
te(() => {
|
|
3291
3292
|
L && (Ee == null || Ee());
|
|
3292
3293
|
}, [L, Ee]);
|
|
@@ -3318,7 +3319,7 @@ var In = "PopperContent", [ms, ws] = Ur(In), Gr = u.forwardRef(
|
|
|
3318
3319
|
},
|
|
3319
3320
|
dir: e.dir,
|
|
3320
3321
|
children: /* @__PURE__ */ k(
|
|
3321
|
-
|
|
3322
|
+
ws,
|
|
3322
3323
|
{
|
|
3323
3324
|
scope: n,
|
|
3324
3325
|
placedSide: $,
|
|
@@ -3347,14 +3348,14 @@ var In = "PopperContent", [ms, ws] = Ur(In), Gr = u.forwardRef(
|
|
|
3347
3348
|
);
|
|
3348
3349
|
}
|
|
3349
3350
|
);
|
|
3350
|
-
|
|
3351
|
-
var
|
|
3351
|
+
Zr.displayName = Nn;
|
|
3352
|
+
var qr = "PopperArrow", xs = {
|
|
3352
3353
|
top: "bottom",
|
|
3353
3354
|
right: "left",
|
|
3354
3355
|
bottom: "top",
|
|
3355
3356
|
left: "right"
|
|
3356
|
-
},
|
|
3357
|
-
const { __scopePopper: r, ...o } = t, a =
|
|
3357
|
+
}, Qr = u.forwardRef(function(t, n) {
|
|
3358
|
+
const { __scopePopper: r, ...o } = t, a = bs(qr, r), i = xs[a.placedSide];
|
|
3358
3359
|
return (
|
|
3359
3360
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
3360
3361
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -3383,7 +3384,7 @@ var Zr = "PopperArrow", bs = {
|
|
|
3383
3384
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
3384
3385
|
},
|
|
3385
3386
|
children: /* @__PURE__ */ k(
|
|
3386
|
-
|
|
3387
|
+
vs,
|
|
3387
3388
|
{
|
|
3388
3389
|
...o,
|
|
3389
3390
|
ref: n,
|
|
@@ -3398,41 +3399,41 @@ var Zr = "PopperArrow", bs = {
|
|
|
3398
3399
|
)
|
|
3399
3400
|
);
|
|
3400
3401
|
});
|
|
3401
|
-
|
|
3402
|
-
function
|
|
3402
|
+
Qr.displayName = qr;
|
|
3403
|
+
function ys(e) {
|
|
3403
3404
|
return e !== null;
|
|
3404
3405
|
}
|
|
3405
|
-
var
|
|
3406
|
+
var Cs = (e) => ({
|
|
3406
3407
|
name: "transformOrigin",
|
|
3407
3408
|
options: e,
|
|
3408
3409
|
fn(t) {
|
|
3409
3410
|
var w, b, x;
|
|
3410
|
-
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] =
|
|
3411
|
+
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] = Jr(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;
|
|
3411
3412
|
let m = "", f = "";
|
|
3412
3413
|
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 } };
|
|
3413
3414
|
}
|
|
3414
3415
|
});
|
|
3415
|
-
function
|
|
3416
|
+
function Jr(e) {
|
|
3416
3417
|
const [t, n = "center"] = e.split("-");
|
|
3417
3418
|
return [t, n];
|
|
3418
3419
|
}
|
|
3419
|
-
var
|
|
3420
|
+
var Ss = Xr, Es = Gr, ks = Zr, Ts = Qr, As = "Portal", eo = u.forwardRef((e, t) => {
|
|
3420
3421
|
var s;
|
|
3421
3422
|
const { container: n, ...r } = e, [o, a] = u.useState(!1);
|
|
3422
3423
|
te(() => a(!0), []);
|
|
3423
3424
|
const i = n || o && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
|
|
3424
3425
|
return i ? Ne.createPortal(/* @__PURE__ */ k(K.div, { ...r, ref: t }), i) : null;
|
|
3425
3426
|
});
|
|
3426
|
-
|
|
3427
|
-
var
|
|
3428
|
-
function
|
|
3427
|
+
eo.displayName = As;
|
|
3428
|
+
var Ps = u[" useInsertionEffect ".trim().toString()] || te;
|
|
3429
|
+
function tr({
|
|
3429
3430
|
prop: e,
|
|
3430
3431
|
defaultProp: t,
|
|
3431
3432
|
onChange: n = () => {
|
|
3432
3433
|
},
|
|
3433
3434
|
caller: r
|
|
3434
3435
|
}) {
|
|
3435
|
-
const [o, a, i] =
|
|
3436
|
+
const [o, a, i] = Rs({
|
|
3436
3437
|
defaultProp: t,
|
|
3437
3438
|
onChange: n
|
|
3438
3439
|
}), s = e !== void 0, l = s ? e : o;
|
|
@@ -3449,7 +3450,7 @@ function er({
|
|
|
3449
3450
|
(d) => {
|
|
3450
3451
|
var p;
|
|
3451
3452
|
if (s) {
|
|
3452
|
-
const g =
|
|
3453
|
+
const g = Is(d) ? d(e) : d;
|
|
3453
3454
|
g !== e && ((p = i.current) == null || p.call(i, g));
|
|
3454
3455
|
} else
|
|
3455
3456
|
a(d);
|
|
@@ -3458,26 +3459,26 @@ function er({
|
|
|
3458
3459
|
);
|
|
3459
3460
|
return [l, c];
|
|
3460
3461
|
}
|
|
3461
|
-
function
|
|
3462
|
+
function Rs({
|
|
3462
3463
|
defaultProp: e,
|
|
3463
3464
|
onChange: t
|
|
3464
3465
|
}) {
|
|
3465
3466
|
const [n, r] = u.useState(e), o = u.useRef(n), a = u.useRef(t);
|
|
3466
|
-
return
|
|
3467
|
+
return Ps(() => {
|
|
3467
3468
|
a.current = t;
|
|
3468
3469
|
}, [t]), u.useEffect(() => {
|
|
3469
3470
|
var i;
|
|
3470
3471
|
o.current !== n && ((i = a.current) == null || i.call(a, n), o.current = n);
|
|
3471
3472
|
}, [n, o]), [n, r, a];
|
|
3472
3473
|
}
|
|
3473
|
-
function
|
|
3474
|
+
function Is(e) {
|
|
3474
3475
|
return typeof e == "function";
|
|
3475
3476
|
}
|
|
3476
|
-
function
|
|
3477
|
+
function Ns(e) {
|
|
3477
3478
|
const t = u.useRef({ value: e, previous: e });
|
|
3478
3479
|
return u.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
3479
3480
|
}
|
|
3480
|
-
var
|
|
3481
|
+
var to = Object.freeze({
|
|
3481
3482
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
3482
3483
|
position: "absolute",
|
|
3483
3484
|
border: 0,
|
|
@@ -3489,35 +3490,35 @@ var eo = Object.freeze({
|
|
|
3489
3490
|
clip: "rect(0, 0, 0, 0)",
|
|
3490
3491
|
whiteSpace: "nowrap",
|
|
3491
3492
|
wordWrap: "normal"
|
|
3492
|
-
}),
|
|
3493
|
+
}), _s = "VisuallyHidden", Os = u.forwardRef(
|
|
3493
3494
|
(e, t) => /* @__PURE__ */ k(
|
|
3494
3495
|
K.span,
|
|
3495
3496
|
{
|
|
3496
3497
|
...e,
|
|
3497
3498
|
ref: t,
|
|
3498
|
-
style: { ...
|
|
3499
|
+
style: { ...to, ...e.style }
|
|
3499
3500
|
}
|
|
3500
3501
|
)
|
|
3501
3502
|
);
|
|
3502
|
-
|
|
3503
|
-
var
|
|
3503
|
+
Os.displayName = _s;
|
|
3504
|
+
var Ms = function(e) {
|
|
3504
3505
|
if (typeof document > "u")
|
|
3505
3506
|
return null;
|
|
3506
3507
|
var t = Array.isArray(e) ? e[0] : e;
|
|
3507
3508
|
return t.ownerDocument.body;
|
|
3508
|
-
}, Xe = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {},
|
|
3509
|
-
return e && (e.host ||
|
|
3510
|
-
},
|
|
3509
|
+
}, Xe = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {}, Jt = 0, no = function(e) {
|
|
3510
|
+
return e && (e.host || no(e.parentNode));
|
|
3511
|
+
}, Ls = function(e, t) {
|
|
3511
3512
|
return t.map(function(n) {
|
|
3512
3513
|
if (e.contains(n))
|
|
3513
3514
|
return n;
|
|
3514
|
-
var r =
|
|
3515
|
+
var r = no(n);
|
|
3515
3516
|
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
3516
3517
|
}).filter(function(n) {
|
|
3517
3518
|
return !!n;
|
|
3518
3519
|
});
|
|
3519
|
-
},
|
|
3520
|
-
var o =
|
|
3520
|
+
}, Ds = function(e, t, n, r) {
|
|
3521
|
+
var o = Ls(t, Array.isArray(e) ? e : [e]);
|
|
3521
3522
|
Et[n] || (Et[n] = /* @__PURE__ */ new WeakMap());
|
|
3522
3523
|
var a = Et[n], i = [], s = /* @__PURE__ */ new Set(), l = new Set(o), c = function(p) {
|
|
3523
3524
|
!p || s.has(p) || (s.add(p), c(p.parentNode));
|
|
@@ -3536,16 +3537,16 @@ var Os = function(e) {
|
|
|
3536
3537
|
}
|
|
3537
3538
|
});
|
|
3538
3539
|
};
|
|
3539
|
-
return d(t), s.clear(),
|
|
3540
|
+
return d(t), s.clear(), Jt++, function() {
|
|
3540
3541
|
i.forEach(function(p) {
|
|
3541
3542
|
var g = Xe.get(p) - 1, v = a.get(p) - 1;
|
|
3542
3543
|
Xe.set(p, g), a.set(p, v), g || (St.has(p) || p.removeAttribute(r), St.delete(p)), v || p.removeAttribute(n);
|
|
3543
|
-
}),
|
|
3544
|
+
}), Jt--, Jt || (Xe = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {});
|
|
3544
3545
|
};
|
|
3545
|
-
},
|
|
3546
|
+
}, Bs = function(e, t, n) {
|
|
3546
3547
|
n === void 0 && (n = "data-aria-hidden");
|
|
3547
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
3548
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))),
|
|
3548
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = Ms(e);
|
|
3549
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Ds(r, o, n, "aria-hidden")) : function() {
|
|
3549
3550
|
return null;
|
|
3550
3551
|
};
|
|
3551
3552
|
}, me = function() {
|
|
@@ -3557,7 +3558,7 @@ var Os = function(e) {
|
|
|
3557
3558
|
return t;
|
|
3558
3559
|
}, me.apply(this, arguments);
|
|
3559
3560
|
};
|
|
3560
|
-
function
|
|
3561
|
+
function ro(e, t) {
|
|
3561
3562
|
var n = {};
|
|
3562
3563
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3563
3564
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3565,16 +3566,16 @@ function no(e, t) {
|
|
|
3565
3566
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
3566
3567
|
return n;
|
|
3567
3568
|
}
|
|
3568
|
-
function
|
|
3569
|
+
function zs(e, t, n) {
|
|
3569
3570
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
|
|
3570
3571
|
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
3571
3572
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
3572
3573
|
}
|
|
3573
|
-
var
|
|
3574
|
-
function
|
|
3574
|
+
var Rt = "right-scroll-bar-position", It = "width-before-scroll-bar", Fs = "with-scroll-bars-hidden", Vs = "--removed-body-scroll-bar-size";
|
|
3575
|
+
function en(e, t) {
|
|
3575
3576
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
3576
3577
|
}
|
|
3577
|
-
function
|
|
3578
|
+
function Ws(e, t) {
|
|
3578
3579
|
var n = be(function() {
|
|
3579
3580
|
return {
|
|
3580
3581
|
// value
|
|
@@ -3595,31 +3596,31 @@ function Vs(e, t) {
|
|
|
3595
3596
|
})[0];
|
|
3596
3597
|
return n.callback = t, n.facade;
|
|
3597
3598
|
}
|
|
3598
|
-
var
|
|
3599
|
-
function
|
|
3600
|
-
var n =
|
|
3599
|
+
var $s = typeof window < "u" ? u.useLayoutEffect : u.useEffect, nr = /* @__PURE__ */ new WeakMap();
|
|
3600
|
+
function Us(e, t) {
|
|
3601
|
+
var n = Ws(null, function(r) {
|
|
3601
3602
|
return e.forEach(function(o) {
|
|
3602
|
-
return
|
|
3603
|
+
return en(o, r);
|
|
3603
3604
|
});
|
|
3604
3605
|
});
|
|
3605
|
-
return
|
|
3606
|
-
var r =
|
|
3606
|
+
return $s(function() {
|
|
3607
|
+
var r = nr.get(n);
|
|
3607
3608
|
if (r) {
|
|
3608
3609
|
var o = new Set(r), a = new Set(e), i = n.current;
|
|
3609
3610
|
o.forEach(function(s) {
|
|
3610
|
-
a.has(s) ||
|
|
3611
|
+
a.has(s) || en(s, null);
|
|
3611
3612
|
}), a.forEach(function(s) {
|
|
3612
|
-
o.has(s) ||
|
|
3613
|
+
o.has(s) || en(s, i);
|
|
3613
3614
|
});
|
|
3614
3615
|
}
|
|
3615
|
-
|
|
3616
|
+
nr.set(n, e);
|
|
3616
3617
|
}, [e]), n;
|
|
3617
3618
|
}
|
|
3618
|
-
function
|
|
3619
|
+
function Hs(e) {
|
|
3619
3620
|
return e;
|
|
3620
3621
|
}
|
|
3621
|
-
function
|
|
3622
|
-
t === void 0 && (t =
|
|
3622
|
+
function js(e, t) {
|
|
3623
|
+
t === void 0 && (t = Hs);
|
|
3623
3624
|
var n = [], r = !1, o = {
|
|
3624
3625
|
read: function() {
|
|
3625
3626
|
if (r)
|
|
@@ -3673,13 +3674,13 @@ function Hs(e, t) {
|
|
|
3673
3674
|
};
|
|
3674
3675
|
return o;
|
|
3675
3676
|
}
|
|
3676
|
-
function
|
|
3677
|
+
function Ys(e) {
|
|
3677
3678
|
e === void 0 && (e = {});
|
|
3678
|
-
var t =
|
|
3679
|
+
var t = js(null);
|
|
3679
3680
|
return t.options = me({ async: !0, ssr: !1 }, e), t;
|
|
3680
3681
|
}
|
|
3681
|
-
var
|
|
3682
|
-
var t = e.sideCar, n =
|
|
3682
|
+
var oo = function(e) {
|
|
3683
|
+
var t = e.sideCar, n = ro(e, ["sideCar"]);
|
|
3683
3684
|
if (!t)
|
|
3684
3685
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
3685
3686
|
var r = t.read();
|
|
@@ -3687,64 +3688,64 @@ var ro = function(e) {
|
|
|
3687
3688
|
throw new Error("Sidecar medium not found");
|
|
3688
3689
|
return u.createElement(r, me({}, n));
|
|
3689
3690
|
};
|
|
3690
|
-
|
|
3691
|
-
function
|
|
3692
|
-
return e.useMedium(t),
|
|
3691
|
+
oo.isSideCarExport = !0;
|
|
3692
|
+
function Xs(e, t) {
|
|
3693
|
+
return e.useMedium(t), oo;
|
|
3693
3694
|
}
|
|
3694
|
-
var
|
|
3695
|
-
},
|
|
3695
|
+
var ao = Ys(), tn = function() {
|
|
3696
|
+
}, $t = u.forwardRef(function(e, t) {
|
|
3696
3697
|
var n = u.useRef(null), r = u.useState({
|
|
3697
|
-
onScrollCapture:
|
|
3698
|
-
onWheelCapture:
|
|
3699
|
-
onTouchMoveCapture:
|
|
3700
|
-
}), 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 =
|
|
3698
|
+
onScrollCapture: tn,
|
|
3699
|
+
onWheelCapture: tn,
|
|
3700
|
+
onTouchMoveCapture: tn
|
|
3701
|
+
}), 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 = ro(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = g, E = Us([n, t]), T = me(me({}, y), o);
|
|
3701
3702
|
return u.createElement(
|
|
3702
3703
|
u.Fragment,
|
|
3703
3704
|
null,
|
|
3704
|
-
d && u.createElement(S, { sideCar:
|
|
3705
|
+
d && u.createElement(S, { sideCar: ao, removeScrollBar: c, shards: p, noIsolation: v, inert: m, setCallbacks: a, allowPinchZoom: !!f, lockRef: n, gapMode: x }),
|
|
3705
3706
|
i ? u.cloneElement(u.Children.only(s), me(me({}, T), { ref: E })) : u.createElement(b, me({}, T, { className: l, ref: E }), s)
|
|
3706
3707
|
);
|
|
3707
3708
|
});
|
|
3708
|
-
|
|
3709
|
+
$t.defaultProps = {
|
|
3709
3710
|
enabled: !0,
|
|
3710
3711
|
removeScrollBar: !0,
|
|
3711
3712
|
inert: !1
|
|
3712
3713
|
};
|
|
3713
|
-
|
|
3714
|
-
fullWidth:
|
|
3715
|
-
zeroRight:
|
|
3714
|
+
$t.classNames = {
|
|
3715
|
+
fullWidth: It,
|
|
3716
|
+
zeroRight: Rt
|
|
3716
3717
|
};
|
|
3717
|
-
var
|
|
3718
|
+
var Ks = function() {
|
|
3718
3719
|
if (typeof __webpack_nonce__ < "u")
|
|
3719
3720
|
return __webpack_nonce__;
|
|
3720
3721
|
};
|
|
3721
|
-
function
|
|
3722
|
+
function Gs() {
|
|
3722
3723
|
if (!document)
|
|
3723
3724
|
return null;
|
|
3724
3725
|
var e = document.createElement("style");
|
|
3725
3726
|
e.type = "text/css";
|
|
3726
|
-
var t =
|
|
3727
|
+
var t = Ks();
|
|
3727
3728
|
return t && e.setAttribute("nonce", t), e;
|
|
3728
3729
|
}
|
|
3729
|
-
function
|
|
3730
|
+
function Zs(e, t) {
|
|
3730
3731
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
3731
3732
|
}
|
|
3732
|
-
function
|
|
3733
|
+
function qs(e) {
|
|
3733
3734
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
3734
3735
|
t.appendChild(e);
|
|
3735
3736
|
}
|
|
3736
|
-
var
|
|
3737
|
+
var Qs = function() {
|
|
3737
3738
|
var e = 0, t = null;
|
|
3738
3739
|
return {
|
|
3739
3740
|
add: function(n) {
|
|
3740
|
-
e == 0 && (t =
|
|
3741
|
+
e == 0 && (t = Gs()) && (Zs(t, n), qs(t)), e++;
|
|
3741
3742
|
},
|
|
3742
3743
|
remove: function() {
|
|
3743
3744
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
3744
3745
|
}
|
|
3745
3746
|
};
|
|
3746
|
-
},
|
|
3747
|
-
var e =
|
|
3747
|
+
}, Js = function() {
|
|
3748
|
+
var e = Qs();
|
|
3748
3749
|
return function(t, n) {
|
|
3749
3750
|
u.useEffect(function() {
|
|
3750
3751
|
return e.add(t), function() {
|
|
@@ -3752,36 +3753,36 @@ var qs = function() {
|
|
|
3752
3753
|
};
|
|
3753
3754
|
}, [t && n]);
|
|
3754
3755
|
};
|
|
3755
|
-
},
|
|
3756
|
-
var e =
|
|
3756
|
+
}, io = function() {
|
|
3757
|
+
var e = Js(), t = function(n) {
|
|
3757
3758
|
var r = n.styles, o = n.dynamic;
|
|
3758
3759
|
return e(r, o), null;
|
|
3759
3760
|
};
|
|
3760
3761
|
return t;
|
|
3761
|
-
},
|
|
3762
|
+
}, el = {
|
|
3762
3763
|
left: 0,
|
|
3763
3764
|
top: 0,
|
|
3764
3765
|
right: 0,
|
|
3765
3766
|
gap: 0
|
|
3766
|
-
},
|
|
3767
|
+
}, nn = function(e) {
|
|
3767
3768
|
return parseInt(e || "", 10) || 0;
|
|
3768
|
-
}, el = function(e) {
|
|
3769
|
-
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
3770
|
-
return [tn(n), tn(r), tn(o)];
|
|
3771
3769
|
}, tl = function(e) {
|
|
3770
|
+
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
3771
|
+
return [nn(n), nn(r), nn(o)];
|
|
3772
|
+
}, nl = function(e) {
|
|
3772
3773
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
3773
|
-
return
|
|
3774
|
-
var t =
|
|
3774
|
+
return el;
|
|
3775
|
+
var t = tl(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
3775
3776
|
return {
|
|
3776
3777
|
left: t[0],
|
|
3777
3778
|
top: t[1],
|
|
3778
3779
|
right: t[2],
|
|
3779
3780
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
3780
3781
|
};
|
|
3781
|
-
},
|
|
3782
|
+
}, rl = io(), tt = "data-scroll-locked", ol = function(e, t, n, r) {
|
|
3782
3783
|
var o = e.left, a = e.top, i = e.right, s = e.gap;
|
|
3783
3784
|
return n === void 0 && (n = "margin"), `
|
|
3784
|
-
.`.concat(
|
|
3785
|
+
.`.concat(Fs, ` {
|
|
3785
3786
|
overflow: hidden `).concat(r, `;
|
|
3786
3787
|
padding-right: `).concat(s, "px ").concat(r, `;
|
|
3787
3788
|
}
|
|
@@ -3802,108 +3803,108 @@ var qs = function() {
|
|
|
3802
3803
|
].filter(Boolean).join(""), `
|
|
3803
3804
|
}
|
|
3804
3805
|
|
|
3805
|
-
.`).concat(
|
|
3806
|
+
.`).concat(Rt, ` {
|
|
3806
3807
|
right: `).concat(s, "px ").concat(r, `;
|
|
3807
3808
|
}
|
|
3808
3809
|
|
|
3809
|
-
.`).concat(
|
|
3810
|
+
.`).concat(It, ` {
|
|
3810
3811
|
margin-right: `).concat(s, "px ").concat(r, `;
|
|
3811
3812
|
}
|
|
3812
3813
|
|
|
3813
|
-
.`).concat(
|
|
3814
|
+
.`).concat(Rt, " .").concat(Rt, ` {
|
|
3814
3815
|
right: 0 `).concat(r, `;
|
|
3815
3816
|
}
|
|
3816
3817
|
|
|
3817
|
-
.`).concat(
|
|
3818
|
+
.`).concat(It, " .").concat(It, ` {
|
|
3818
3819
|
margin-right: 0 `).concat(r, `;
|
|
3819
3820
|
}
|
|
3820
3821
|
|
|
3821
3822
|
body[`).concat(tt, `] {
|
|
3822
|
-
`).concat(
|
|
3823
|
+
`).concat(Vs, ": ").concat(s, `px;
|
|
3823
3824
|
}
|
|
3824
3825
|
`);
|
|
3825
|
-
},
|
|
3826
|
+
}, rr = function() {
|
|
3826
3827
|
var e = parseInt(document.body.getAttribute(tt) || "0", 10);
|
|
3827
3828
|
return isFinite(e) ? e : 0;
|
|
3828
|
-
},
|
|
3829
|
+
}, al = function() {
|
|
3829
3830
|
u.useEffect(function() {
|
|
3830
|
-
return document.body.setAttribute(tt, (
|
|
3831
|
-
var e =
|
|
3831
|
+
return document.body.setAttribute(tt, (rr() + 1).toString()), function() {
|
|
3832
|
+
var e = rr() - 1;
|
|
3832
3833
|
e <= 0 ? document.body.removeAttribute(tt) : document.body.setAttribute(tt, e.toString());
|
|
3833
3834
|
};
|
|
3834
3835
|
}, []);
|
|
3835
|
-
},
|
|
3836
|
+
}, il = function(e) {
|
|
3836
3837
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
3837
|
-
|
|
3838
|
+
al();
|
|
3838
3839
|
var a = u.useMemo(function() {
|
|
3839
|
-
return
|
|
3840
|
+
return nl(o);
|
|
3840
3841
|
}, [o]);
|
|
3841
|
-
return u.createElement(
|
|
3842
|
-
},
|
|
3842
|
+
return u.createElement(rl, { styles: ol(a, !t, o, n ? "" : "!important") });
|
|
3843
|
+
}, dn = !1;
|
|
3843
3844
|
if (typeof window < "u")
|
|
3844
3845
|
try {
|
|
3845
3846
|
var kt = Object.defineProperty({}, "passive", {
|
|
3846
3847
|
get: function() {
|
|
3847
|
-
return
|
|
3848
|
+
return dn = !0, !0;
|
|
3848
3849
|
}
|
|
3849
3850
|
});
|
|
3850
3851
|
window.addEventListener("test", kt, kt), window.removeEventListener("test", kt, kt);
|
|
3851
3852
|
} catch {
|
|
3852
|
-
|
|
3853
|
+
dn = !1;
|
|
3853
3854
|
}
|
|
3854
|
-
var Ke =
|
|
3855
|
+
var Ke = dn ? { passive: !1 } : !1, sl = function(e) {
|
|
3855
3856
|
return e.tagName === "TEXTAREA";
|
|
3856
|
-
},
|
|
3857
|
+
}, so = function(e, t) {
|
|
3857
3858
|
if (!(e instanceof Element))
|
|
3858
3859
|
return !1;
|
|
3859
3860
|
var n = window.getComputedStyle(e);
|
|
3860
3861
|
return (
|
|
3861
3862
|
// not-not-scrollable
|
|
3862
3863
|
n[t] !== "hidden" && // contains scroll inside self
|
|
3863
|
-
!(n.overflowY === n.overflowX && !
|
|
3864
|
+
!(n.overflowY === n.overflowX && !sl(e) && n[t] === "visible")
|
|
3864
3865
|
);
|
|
3865
|
-
}, sl = function(e) {
|
|
3866
|
-
return io(e, "overflowY");
|
|
3867
3866
|
}, ll = function(e) {
|
|
3868
|
-
return
|
|
3869
|
-
},
|
|
3867
|
+
return so(e, "overflowY");
|
|
3868
|
+
}, cl = function(e) {
|
|
3869
|
+
return so(e, "overflowX");
|
|
3870
|
+
}, or = function(e, t) {
|
|
3870
3871
|
var n = t.ownerDocument, r = t;
|
|
3871
3872
|
do {
|
|
3872
3873
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
3873
|
-
var o =
|
|
3874
|
+
var o = lo(e, r);
|
|
3874
3875
|
if (o) {
|
|
3875
|
-
var a =
|
|
3876
|
+
var a = co(e, r), i = a[1], s = a[2];
|
|
3876
3877
|
if (i > s)
|
|
3877
3878
|
return !0;
|
|
3878
3879
|
}
|
|
3879
3880
|
r = r.parentNode;
|
|
3880
3881
|
} while (r && r !== n.body);
|
|
3881
3882
|
return !1;
|
|
3882
|
-
},
|
|
3883
|
+
}, ul = function(e) {
|
|
3883
3884
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
3884
3885
|
return [
|
|
3885
3886
|
t,
|
|
3886
3887
|
n,
|
|
3887
3888
|
r
|
|
3888
3889
|
];
|
|
3889
|
-
},
|
|
3890
|
+
}, dl = function(e) {
|
|
3890
3891
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
3891
3892
|
return [
|
|
3892
3893
|
t,
|
|
3893
3894
|
n,
|
|
3894
3895
|
r
|
|
3895
3896
|
];
|
|
3896
|
-
}, so = function(e, t) {
|
|
3897
|
-
return e === "v" ? sl(t) : ll(t);
|
|
3898
3897
|
}, lo = function(e, t) {
|
|
3899
|
-
return e === "v" ?
|
|
3900
|
-
},
|
|
3898
|
+
return e === "v" ? ll(t) : cl(t);
|
|
3899
|
+
}, co = function(e, t) {
|
|
3900
|
+
return e === "v" ? ul(t) : dl(t);
|
|
3901
|
+
}, fl = function(e, t) {
|
|
3901
3902
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
3902
|
-
},
|
|
3903
|
-
var a =
|
|
3903
|
+
}, pl = function(e, t, n, r, o) {
|
|
3904
|
+
var a = fl(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, l = t.contains(s), c = !1, d = i > 0, p = 0, g = 0;
|
|
3904
3905
|
do {
|
|
3905
|
-
var v =
|
|
3906
|
-
(m || b) &&
|
|
3906
|
+
var v = co(e, s), m = v[0], f = v[1], w = v[2], b = f - w - a * m;
|
|
3907
|
+
(m || b) && lo(e, s) && (p += b, g += m), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
|
|
3907
3908
|
} while (
|
|
3908
3909
|
// portaled content
|
|
3909
3910
|
!l && s !== document.body || // self content
|
|
@@ -3912,26 +3913,26 @@ var Ke = un ? { passive: !1 } : !1, il = function(e) {
|
|
|
3912
3913
|
return (d && Math.abs(p) < 1 || !d && Math.abs(g) < 1) && (c = !0), c;
|
|
3913
3914
|
}, Tt = function(e) {
|
|
3914
3915
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
3915
|
-
}, or = function(e) {
|
|
3916
|
-
return [e.deltaX, e.deltaY];
|
|
3917
3916
|
}, ar = function(e) {
|
|
3917
|
+
return [e.deltaX, e.deltaY];
|
|
3918
|
+
}, ir = function(e) {
|
|
3918
3919
|
return e && "current" in e ? e.current : e;
|
|
3919
|
-
},
|
|
3920
|
+
}, hl = function(e, t) {
|
|
3920
3921
|
return e[0] === t[0] && e[1] === t[1];
|
|
3921
|
-
},
|
|
3922
|
+
}, vl = function(e) {
|
|
3922
3923
|
return `
|
|
3923
3924
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
3924
3925
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
3925
3926
|
`);
|
|
3926
|
-
},
|
|
3927
|
-
function
|
|
3928
|
-
var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(
|
|
3927
|
+
}, gl = 0, Ge = [];
|
|
3928
|
+
function ml(e) {
|
|
3929
|
+
var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(gl++)[0], a = u.useState(io)[0], i = u.useRef(e);
|
|
3929
3930
|
u.useEffect(function() {
|
|
3930
3931
|
i.current = e;
|
|
3931
3932
|
}, [e]), u.useEffect(function() {
|
|
3932
3933
|
if (e.inert) {
|
|
3933
3934
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
3934
|
-
var f =
|
|
3935
|
+
var f = zs([e.lockRef.current], (e.shards || []).map(ir), !0).filter(Boolean);
|
|
3935
3936
|
return f.forEach(function(w) {
|
|
3936
3937
|
return w.classList.add("allow-interactivity-".concat(o));
|
|
3937
3938
|
}), function() {
|
|
@@ -3947,34 +3948,34 @@ function gl(e) {
|
|
|
3947
3948
|
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";
|
|
3948
3949
|
if ("touches" in f && C === "h" && T.type === "range")
|
|
3949
3950
|
return !1;
|
|
3950
|
-
var P =
|
|
3951
|
+
var P = or(C, T);
|
|
3951
3952
|
if (!P)
|
|
3952
3953
|
return !0;
|
|
3953
|
-
if (P ? E = C : (E = C === "v" ? "h" : "v", P =
|
|
3954
|
+
if (P ? E = C : (E = C === "v" ? "h" : "v", P = or(C, T)), !P)
|
|
3954
3955
|
return !1;
|
|
3955
3956
|
if (!r.current && "changedTouches" in f && (y || S) && (r.current = E), !E)
|
|
3956
3957
|
return !0;
|
|
3957
3958
|
var O = r.current || E;
|
|
3958
|
-
return
|
|
3959
|
+
return pl(O, w, f, O === "h" ? y : S);
|
|
3959
3960
|
}, []), l = u.useCallback(function(f) {
|
|
3960
3961
|
var w = f;
|
|
3961
3962
|
if (!(!Ge.length || Ge[Ge.length - 1] !== a)) {
|
|
3962
|
-
var b = "deltaY" in w ?
|
|
3963
|
-
return E.name === w.type && (E.target === w.target || w.target === E.shadowParent) &&
|
|
3963
|
+
var b = "deltaY" in w ? ar(w) : Tt(w), x = t.current.filter(function(E) {
|
|
3964
|
+
return E.name === w.type && (E.target === w.target || w.target === E.shadowParent) && hl(E.delta, b);
|
|
3964
3965
|
})[0];
|
|
3965
3966
|
if (x && x.should) {
|
|
3966
3967
|
w.cancelable && w.preventDefault();
|
|
3967
3968
|
return;
|
|
3968
3969
|
}
|
|
3969
3970
|
if (!x) {
|
|
3970
|
-
var y = (i.current.shards || []).map(
|
|
3971
|
+
var y = (i.current.shards || []).map(ir).filter(Boolean).filter(function(E) {
|
|
3971
3972
|
return E.contains(w.target);
|
|
3972
3973
|
}), S = y.length > 0 ? s(w, y[0]) : !i.current.noIsolation;
|
|
3973
3974
|
S && w.cancelable && w.preventDefault();
|
|
3974
3975
|
}
|
|
3975
3976
|
}
|
|
3976
3977
|
}, []), c = u.useCallback(function(f, w, b, x) {
|
|
3977
|
-
var y = { name: f, delta: w, target: b, should: x, shadowParent:
|
|
3978
|
+
var y = { name: f, delta: w, target: b, should: x, shadowParent: wl(b) };
|
|
3978
3979
|
t.current.push(y), setTimeout(function() {
|
|
3979
3980
|
t.current = t.current.filter(function(S) {
|
|
3980
3981
|
return S !== y;
|
|
@@ -3983,7 +3984,7 @@ function gl(e) {
|
|
|
3983
3984
|
}, []), d = u.useCallback(function(f) {
|
|
3984
3985
|
n.current = Tt(f), r.current = void 0;
|
|
3985
3986
|
}, []), p = u.useCallback(function(f) {
|
|
3986
|
-
c(f.type,
|
|
3987
|
+
c(f.type, ar(f), f.target, s(f, e.lockRef.current));
|
|
3987
3988
|
}, []), g = u.useCallback(function(f) {
|
|
3988
3989
|
c(f.type, Tt(f), f.target, s(f, e.lockRef.current));
|
|
3989
3990
|
}, []);
|
|
@@ -4002,24 +4003,24 @@ function gl(e) {
|
|
|
4002
4003
|
return u.createElement(
|
|
4003
4004
|
u.Fragment,
|
|
4004
4005
|
null,
|
|
4005
|
-
m ? u.createElement(a, { styles:
|
|
4006
|
-
v ? u.createElement(
|
|
4006
|
+
m ? u.createElement(a, { styles: vl(o) }) : null,
|
|
4007
|
+
v ? u.createElement(il, { gapMode: e.gapMode }) : null
|
|
4007
4008
|
);
|
|
4008
4009
|
}
|
|
4009
|
-
function
|
|
4010
|
+
function wl(e) {
|
|
4010
4011
|
for (var t = null; e !== null; )
|
|
4011
4012
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
4012
4013
|
return t;
|
|
4013
4014
|
}
|
|
4014
|
-
const
|
|
4015
|
-
var
|
|
4016
|
-
return u.createElement(
|
|
4015
|
+
const bl = Xs(ao, ml);
|
|
4016
|
+
var uo = u.forwardRef(function(e, t) {
|
|
4017
|
+
return u.createElement($t, me({}, e, { ref: t, sideCar: bl }));
|
|
4017
4018
|
});
|
|
4018
|
-
|
|
4019
|
-
var
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
]),
|
|
4019
|
+
uo.classNames = $t.classNames;
|
|
4020
|
+
var xl = [" ", "Enter", "ArrowUp", "ArrowDown"], yl = [" ", "Enter"], He = "Select", [Ut, Ht, Cl] = Ka(He), [st, Rc] = yn(He, [
|
|
4021
|
+
Cl,
|
|
4022
|
+
jr
|
|
4023
|
+
]), jt = jr(), [Sl, Fe] = st(He), [El, kl] = st(He), fo = (e) => {
|
|
4023
4024
|
const {
|
|
4024
4025
|
__scopeSelect: t,
|
|
4025
4026
|
children: n,
|
|
@@ -4035,19 +4036,19 @@ var bl = [" ", "Enter", "ArrowUp", "ArrowDown"], xl = [" ", "Enter"], He = "Sele
|
|
|
4035
4036
|
disabled: g,
|
|
4036
4037
|
required: v,
|
|
4037
4038
|
form: m
|
|
4038
|
-
} = e, f =
|
|
4039
|
+
} = e, f = jt(t), [w, b] = u.useState(null), [x, y] = u.useState(null), [S, E] = u.useState(!1), T = Za(c), [C, P] = tr({
|
|
4039
4040
|
prop: r,
|
|
4040
4041
|
defaultProp: o ?? !1,
|
|
4041
4042
|
onChange: a,
|
|
4042
4043
|
caller: He
|
|
4043
|
-
}), [O, M] =
|
|
4044
|
+
}), [O, M] = tr({
|
|
4044
4045
|
prop: i,
|
|
4045
4046
|
defaultProp: s,
|
|
4046
4047
|
onChange: l,
|
|
4047
4048
|
caller: He
|
|
4048
4049
|
}), V = u.useRef(null), W = w ? m || !!w.closest("form") : !0, [D, _] = u.useState(/* @__PURE__ */ new Set()), Y = Array.from(D).map((N) => N.props.value).join(";");
|
|
4049
|
-
return /* @__PURE__ */ k(
|
|
4050
|
-
|
|
4050
|
+
return /* @__PURE__ */ k(Ss, { ...f, children: /* @__PURE__ */ Nt(
|
|
4051
|
+
Sl,
|
|
4051
4052
|
{
|
|
4052
4053
|
required: v,
|
|
4053
4054
|
scope: t,
|
|
@@ -4057,7 +4058,7 @@ var bl = [" ", "Enter", "ArrowUp", "ArrowDown"], xl = [" ", "Enter"], He = "Sele
|
|
|
4057
4058
|
onValueNodeChange: y,
|
|
4058
4059
|
valueNodeHasChildren: S,
|
|
4059
4060
|
onValueNodeHasChildrenChange: E,
|
|
4060
|
-
contentId:
|
|
4061
|
+
contentId: Cn(),
|
|
4061
4062
|
value: O,
|
|
4062
4063
|
onValueChange: M,
|
|
4063
4064
|
open: C,
|
|
@@ -4066,8 +4067,8 @@ var bl = [" ", "Enter", "ArrowUp", "ArrowDown"], xl = [" ", "Enter"], He = "Sele
|
|
|
4066
4067
|
triggerPointerDownPosRef: V,
|
|
4067
4068
|
disabled: g,
|
|
4068
4069
|
children: [
|
|
4069
|
-
/* @__PURE__ */ k(
|
|
4070
|
-
|
|
4070
|
+
/* @__PURE__ */ k(Ut.Provider, { scope: t, children: /* @__PURE__ */ k(
|
|
4071
|
+
El,
|
|
4071
4072
|
{
|
|
4072
4073
|
scope: e.__scopeSelect,
|
|
4073
4074
|
onNativeOptionAdd: u.useCallback((N) => {
|
|
@@ -4082,8 +4083,8 @@ var bl = [" ", "Enter", "ArrowUp", "ArrowDown"], xl = [" ", "Enter"], He = "Sele
|
|
|
4082
4083
|
children: n
|
|
4083
4084
|
}
|
|
4084
4085
|
) }),
|
|
4085
|
-
W ? /* @__PURE__ */
|
|
4086
|
-
|
|
4086
|
+
W ? /* @__PURE__ */ Nt(
|
|
4087
|
+
Oo,
|
|
4087
4088
|
{
|
|
4088
4089
|
"aria-hidden": !0,
|
|
4089
4090
|
required: v,
|
|
@@ -4105,11 +4106,11 @@ var bl = [" ", "Enter", "ArrowUp", "ArrowDown"], xl = [" ", "Enter"], He = "Sele
|
|
|
4105
4106
|
}
|
|
4106
4107
|
) });
|
|
4107
4108
|
};
|
|
4108
|
-
|
|
4109
|
-
var
|
|
4109
|
+
fo.displayName = He;
|
|
4110
|
+
var po = "SelectTrigger", ho = u.forwardRef(
|
|
4110
4111
|
(e, t) => {
|
|
4111
|
-
const { __scopeSelect: n, disabled: r = !1, ...o } = e, a =
|
|
4112
|
-
const w = c().filter((y) => !y.disabled), b = w.find((y) => y.value === i.value), x =
|
|
4112
|
+
const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = jt(n), i = Fe(po, n), s = i.disabled || r, l = Z(t, i.onTriggerChange), c = Ht(n), d = u.useRef("touch"), [p, g, v] = Lo((f) => {
|
|
4113
|
+
const w = c().filter((y) => !y.disabled), b = w.find((y) => y.value === i.value), x = Do(w, f, b);
|
|
4113
4114
|
x !== void 0 && i.onValueChange(x.value);
|
|
4114
4115
|
}), m = (f) => {
|
|
4115
4116
|
s || (i.onOpenChange(!0), v()), f && (i.triggerPointerDownPosRef.current = {
|
|
@@ -4117,7 +4118,7 @@ var fo = "SelectTrigger", po = u.forwardRef(
|
|
|
4117
4118
|
y: Math.round(f.pageY)
|
|
4118
4119
|
});
|
|
4119
4120
|
};
|
|
4120
|
-
return /* @__PURE__ */ k(
|
|
4121
|
+
return /* @__PURE__ */ k(Es, { asChild: !0, ...a, children: /* @__PURE__ */ k(
|
|
4121
4122
|
K.button,
|
|
4122
4123
|
{
|
|
4123
4124
|
type: "button",
|
|
@@ -4130,7 +4131,7 @@ var fo = "SelectTrigger", po = u.forwardRef(
|
|
|
4130
4131
|
"data-state": i.open ? "open" : "closed",
|
|
4131
4132
|
disabled: s,
|
|
4132
4133
|
"data-disabled": s ? "" : void 0,
|
|
4133
|
-
"data-placeholder":
|
|
4134
|
+
"data-placeholder": Mo(i.value) ? "" : void 0,
|
|
4134
4135
|
...o,
|
|
4135
4136
|
ref: l,
|
|
4136
4137
|
onClick: G(o.onClick, (f) => {
|
|
@@ -4143,16 +4144,16 @@ var fo = "SelectTrigger", po = u.forwardRef(
|
|
|
4143
4144
|
}),
|
|
4144
4145
|
onKeyDown: G(o.onKeyDown, (f) => {
|
|
4145
4146
|
const w = p.current !== "";
|
|
4146
|
-
!(f.ctrlKey || f.altKey || f.metaKey) && f.key.length === 1 && g(f.key), !(w && f.key === " ") &&
|
|
4147
|
+
!(f.ctrlKey || f.altKey || f.metaKey) && f.key.length === 1 && g(f.key), !(w && f.key === " ") && xl.includes(f.key) && (m(), f.preventDefault());
|
|
4147
4148
|
})
|
|
4148
4149
|
}
|
|
4149
4150
|
) });
|
|
4150
4151
|
}
|
|
4151
4152
|
);
|
|
4152
|
-
|
|
4153
|
-
var
|
|
4153
|
+
ho.displayName = po;
|
|
4154
|
+
var vo = "SelectValue", Tl = u.forwardRef(
|
|
4154
4155
|
(e, t) => {
|
|
4155
|
-
const { __scopeSelect: n, className: r, style: o, children: a, placeholder: i = "", ...s } = e, l = Fe(
|
|
4156
|
+
const { __scopeSelect: n, className: r, style: o, children: a, placeholder: i = "", ...s } = e, l = Fe(vo, n), { onValueNodeHasChildrenChange: c } = l, d = a !== void 0, p = Z(t, l.onValueNodeChange);
|
|
4156
4157
|
return te(() => {
|
|
4157
4158
|
c(d);
|
|
4158
4159
|
}, [c, d]), /* @__PURE__ */ k(
|
|
@@ -4161,22 +4162,22 @@ var ho = "SelectValue", kl = u.forwardRef(
|
|
|
4161
4162
|
...s,
|
|
4162
4163
|
ref: p,
|
|
4163
4164
|
style: { pointerEvents: "none" },
|
|
4164
|
-
children:
|
|
4165
|
+
children: Mo(l.value) ? /* @__PURE__ */ k(mn, { children: i }) : a
|
|
4165
4166
|
}
|
|
4166
4167
|
);
|
|
4167
4168
|
}
|
|
4168
4169
|
);
|
|
4169
|
-
|
|
4170
|
-
var
|
|
4170
|
+
Tl.displayName = vo;
|
|
4171
|
+
var Al = "SelectIcon", go = u.forwardRef(
|
|
4171
4172
|
(e, t) => {
|
|
4172
4173
|
const { __scopeSelect: n, children: r, ...o } = e;
|
|
4173
4174
|
return /* @__PURE__ */ k(K.span, { "aria-hidden": !0, ...o, ref: t, children: r || "▼" });
|
|
4174
4175
|
}
|
|
4175
4176
|
);
|
|
4176
|
-
vo.displayName = Tl;
|
|
4177
|
-
var Al = "SelectPortal", go = (e) => /* @__PURE__ */ k(Jr, { asChild: !0, ...e });
|
|
4178
4177
|
go.displayName = Al;
|
|
4179
|
-
var
|
|
4178
|
+
var Pl = "SelectPortal", mo = (e) => /* @__PURE__ */ k(eo, { asChild: !0, ...e });
|
|
4179
|
+
mo.displayName = Pl;
|
|
4180
|
+
var je = "SelectContent", wo = u.forwardRef(
|
|
4180
4181
|
(e, t) => {
|
|
4181
4182
|
const n = Fe(je, e.__scopeSelect), [r, o] = u.useState();
|
|
4182
4183
|
if (te(() => {
|
|
@@ -4184,15 +4185,15 @@ var je = "SelectContent", mo = u.forwardRef(
|
|
|
4184
4185
|
}, []), !n.open) {
|
|
4185
4186
|
const a = r;
|
|
4186
4187
|
return a ? u.createPortal(
|
|
4187
|
-
/* @__PURE__ */ k(
|
|
4188
|
+
/* @__PURE__ */ k(bo, { scope: e.__scopeSelect, children: /* @__PURE__ */ k(Ut.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ k("div", { children: e.children }) }) }),
|
|
4188
4189
|
a
|
|
4189
4190
|
) : null;
|
|
4190
4191
|
}
|
|
4191
|
-
return /* @__PURE__ */ k(
|
|
4192
|
+
return /* @__PURE__ */ k(xo, { ...e, ref: t });
|
|
4192
4193
|
}
|
|
4193
4194
|
);
|
|
4194
|
-
|
|
4195
|
-
var se = 10, [
|
|
4195
|
+
wo.displayName = je;
|
|
4196
|
+
var se = 10, [bo, Ve] = st(je), Rl = "SelectContentImpl", Il = /* @__PURE__ */ vt("SelectContent.RemoveScroll"), xo = u.forwardRef(
|
|
4196
4197
|
(e, t) => {
|
|
4197
4198
|
const {
|
|
4198
4199
|
__scopeSelect: n,
|
|
@@ -4216,10 +4217,10 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
|
|
|
4216
4217
|
...b
|
|
4217
4218
|
} = e, x = Fe(je, n), [y, S] = u.useState(null), [E, T] = u.useState(null), C = Z(t, (A) => S(A)), [P, O] = u.useState(null), [M, V] = u.useState(
|
|
4218
4219
|
null
|
|
4219
|
-
), W =
|
|
4220
|
+
), W = Ht(n), [D, _] = u.useState(!1), Y = u.useRef(!1);
|
|
4220
4221
|
u.useEffect(() => {
|
|
4221
|
-
if (y) return
|
|
4222
|
-
}, [y]),
|
|
4222
|
+
if (y) return Bs(y);
|
|
4223
|
+
}, [y]), si();
|
|
4223
4224
|
const N = u.useCallback(
|
|
4224
4225
|
(A) => {
|
|
4225
4226
|
const [U, ...q] = W().map((z) => z.ref.current), [F] = q.slice(-1), B = document.activeElement;
|
|
@@ -4257,8 +4258,8 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
|
|
|
4257
4258
|
window.removeEventListener("blur", A), window.removeEventListener("resize", A);
|
|
4258
4259
|
};
|
|
4259
4260
|
}, [R]);
|
|
4260
|
-
const [ee, Ee] =
|
|
4261
|
-
const U = W().filter((B) => !B.disabled), q = U.find((B) => B.ref.current === document.activeElement), F =
|
|
4261
|
+
const [ee, Ee] = Lo((A) => {
|
|
4262
|
+
const U = W().filter((B) => !B.disabled), q = U.find((B) => B.ref.current === document.activeElement), F = Do(U, A, q);
|
|
4262
4263
|
F && setTimeout(() => F.ref.current.focus());
|
|
4263
4264
|
}), lt = u.useCallback(
|
|
4264
4265
|
(A, U, q) => {
|
|
@@ -4272,7 +4273,7 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
|
|
|
4272
4273
|
(x.value !== void 0 && x.value === U || F) && V(A);
|
|
4273
4274
|
},
|
|
4274
4275
|
[x.value]
|
|
4275
|
-
), Ye = r === "popper" ?
|
|
4276
|
+
), Ye = r === "popper" ? fn : yo, We = Ye === fn ? {
|
|
4276
4277
|
side: s,
|
|
4277
4278
|
sideOffset: l,
|
|
4278
4279
|
align: c,
|
|
@@ -4285,7 +4286,7 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
|
|
|
4285
4286
|
avoidCollisions: w
|
|
4286
4287
|
} : {};
|
|
4287
4288
|
return /* @__PURE__ */ k(
|
|
4288
|
-
|
|
4289
|
+
bo,
|
|
4289
4290
|
{
|
|
4290
4291
|
scope: n,
|
|
4291
4292
|
content: y,
|
|
@@ -4300,8 +4301,8 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
|
|
|
4300
4301
|
position: r,
|
|
4301
4302
|
isPositioned: D,
|
|
4302
4303
|
searchRef: ee,
|
|
4303
|
-
children: /* @__PURE__ */ k(
|
|
4304
|
-
|
|
4304
|
+
children: /* @__PURE__ */ k(uo, { as: Il, allowPinchZoom: !0, children: /* @__PURE__ */ k(
|
|
4305
|
+
Nr,
|
|
4305
4306
|
{
|
|
4306
4307
|
asChild: !0,
|
|
4307
4308
|
trapped: x.open,
|
|
@@ -4313,7 +4314,7 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
|
|
|
4313
4314
|
(U = x.trigger) == null || U.focus({ preventScroll: !0 }), A.preventDefault();
|
|
4314
4315
|
}),
|
|
4315
4316
|
children: /* @__PURE__ */ k(
|
|
4316
|
-
|
|
4317
|
+
Rr,
|
|
4317
4318
|
{
|
|
4318
4319
|
asChild: !0,
|
|
4319
4320
|
disableOutsidePointerEvents: !0,
|
|
@@ -4362,13 +4363,13 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
|
|
|
4362
4363
|
);
|
|
4363
4364
|
}
|
|
4364
4365
|
);
|
|
4365
|
-
|
|
4366
|
-
var
|
|
4367
|
-
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 =
|
|
4366
|
+
xo.displayName = Rl;
|
|
4367
|
+
var Nl = "SelectItemAlignedPosition", yo = u.forwardRef((e, t) => {
|
|
4368
|
+
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(() => {
|
|
4368
4369
|
if (a.trigger && a.valueNode && s && c && f && w && b) {
|
|
4369
4370
|
const C = a.trigger.getBoundingClientRect(), P = c.getBoundingClientRect(), O = a.valueNode.getBoundingClientRect(), M = b.getBoundingClientRect();
|
|
4370
4371
|
if (a.dir !== "rtl") {
|
|
4371
|
-
const B = M.left - P.left, z = O.left - B, oe = C.left - z, ve = C.width + oe, ut = Math.max(ve, P.width), dt = window.innerWidth - se, ft =
|
|
4372
|
+
const B = M.left - P.left, z = O.left - B, oe = C.left - z, ve = C.width + oe, ut = Math.max(ve, P.width), dt = window.innerWidth - se, ft = Fn(z, [
|
|
4372
4373
|
se,
|
|
4373
4374
|
// Prevents the content from going off the starting edge of the
|
|
4374
4375
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -4379,7 +4380,7 @@ var Il = "SelectItemAlignedPosition", xo = u.forwardRef((e, t) => {
|
|
|
4379
4380
|
]);
|
|
4380
4381
|
s.style.minWidth = ve + "px", s.style.left = ft + "px";
|
|
4381
4382
|
} else {
|
|
4382
|
-
const B = P.right - M.right, z = window.innerWidth - O.right - B, oe = window.innerWidth - C.right - z, ve = C.width + oe, ut = Math.max(ve, P.width), dt = window.innerWidth - se, ft =
|
|
4383
|
+
const B = P.right - M.right, z = window.innerWidth - O.right - B, oe = window.innerWidth - C.right - z, ve = C.width + oe, ut = Math.max(ve, P.width), dt = window.innerWidth - se, ft = Fn(z, [
|
|
4383
4384
|
se,
|
|
4384
4385
|
Math.max(se, dt - ut)
|
|
4385
4386
|
]);
|
|
@@ -4431,7 +4432,7 @@ var Il = "SelectItemAlignedPosition", xo = u.forwardRef((e, t) => {
|
|
|
4431
4432
|
[y, x]
|
|
4432
4433
|
);
|
|
4433
4434
|
return /* @__PURE__ */ k(
|
|
4434
|
-
|
|
4435
|
+
Ol,
|
|
4435
4436
|
{
|
|
4436
4437
|
scope: n,
|
|
4437
4438
|
contentWrapper: s,
|
|
@@ -4467,16 +4468,16 @@ var Il = "SelectItemAlignedPosition", xo = u.forwardRef((e, t) => {
|
|
|
4467
4468
|
}
|
|
4468
4469
|
);
|
|
4469
4470
|
});
|
|
4470
|
-
|
|
4471
|
-
var
|
|
4471
|
+
yo.displayName = Nl;
|
|
4472
|
+
var _l = "SelectPopperPosition", fn = u.forwardRef((e, t) => {
|
|
4472
4473
|
const {
|
|
4473
4474
|
__scopeSelect: n,
|
|
4474
4475
|
align: r = "start",
|
|
4475
4476
|
collisionPadding: o = se,
|
|
4476
4477
|
...a
|
|
4477
|
-
} = e, i =
|
|
4478
|
+
} = e, i = jt(n);
|
|
4478
4479
|
return /* @__PURE__ */ k(
|
|
4479
|
-
|
|
4480
|
+
ks,
|
|
4480
4481
|
{
|
|
4481
4482
|
...i,
|
|
4482
4483
|
...a,
|
|
@@ -4496,11 +4497,11 @@ var Nl = "SelectPopperPosition", dn = u.forwardRef((e, t) => {
|
|
|
4496
4497
|
}
|
|
4497
4498
|
);
|
|
4498
4499
|
});
|
|
4499
|
-
|
|
4500
|
-
var [
|
|
4500
|
+
fn.displayName = _l;
|
|
4501
|
+
var [Ol, _n] = st(je, {}), pn = "SelectViewport", Co = u.forwardRef(
|
|
4501
4502
|
(e, t) => {
|
|
4502
|
-
const { __scopeSelect: n, nonce: r, ...o } = e, a = Ve(
|
|
4503
|
-
return /* @__PURE__ */
|
|
4503
|
+
const { __scopeSelect: n, nonce: r, ...o } = e, a = Ve(pn, n), i = _n(pn, n), s = Z(t, a.onViewportChange), l = u.useRef(0);
|
|
4504
|
+
return /* @__PURE__ */ Nt(mn, { children: [
|
|
4504
4505
|
/* @__PURE__ */ k(
|
|
4505
4506
|
"style",
|
|
4506
4507
|
{
|
|
@@ -4510,7 +4511,7 @@ var [_l, Nn] = st(je, {}), fn = "SelectViewport", yo = u.forwardRef(
|
|
|
4510
4511
|
nonce: r
|
|
4511
4512
|
}
|
|
4512
4513
|
),
|
|
4513
|
-
/* @__PURE__ */ k(
|
|
4514
|
+
/* @__PURE__ */ k(Ut.Slot, { scope: n, children: /* @__PURE__ */ k(
|
|
4514
4515
|
K.div,
|
|
4515
4516
|
{
|
|
4516
4517
|
"data-radix-select-viewport": "",
|
|
@@ -4549,22 +4550,22 @@ var [_l, Nn] = st(je, {}), fn = "SelectViewport", yo = u.forwardRef(
|
|
|
4549
4550
|
] });
|
|
4550
4551
|
}
|
|
4551
4552
|
);
|
|
4552
|
-
|
|
4553
|
-
var
|
|
4553
|
+
Co.displayName = pn;
|
|
4554
|
+
var So = "SelectGroup", [Ml, Ll] = st(So), Dl = u.forwardRef(
|
|
4554
4555
|
(e, t) => {
|
|
4555
|
-
const { __scopeSelect: n, ...r } = e, o =
|
|
4556
|
-
return /* @__PURE__ */ k(
|
|
4556
|
+
const { __scopeSelect: n, ...r } = e, o = Cn();
|
|
4557
|
+
return /* @__PURE__ */ k(Ml, { scope: n, id: o, children: /* @__PURE__ */ k(K.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
|
|
4557
4558
|
}
|
|
4558
4559
|
);
|
|
4559
|
-
|
|
4560
|
-
var
|
|
4560
|
+
Dl.displayName = So;
|
|
4561
|
+
var Eo = "SelectLabel", Bl = u.forwardRef(
|
|
4561
4562
|
(e, t) => {
|
|
4562
|
-
const { __scopeSelect: n, ...r } = e, o =
|
|
4563
|
+
const { __scopeSelect: n, ...r } = e, o = Ll(Eo, n);
|
|
4563
4564
|
return /* @__PURE__ */ k(K.div, { id: o.id, ...r, ref: t });
|
|
4564
4565
|
}
|
|
4565
4566
|
);
|
|
4566
|
-
|
|
4567
|
-
var
|
|
4567
|
+
Bl.displayName = Eo;
|
|
4568
|
+
var Dt = "SelectItem", [zl, ko] = st(Dt), To = u.forwardRef(
|
|
4568
4569
|
(e, t) => {
|
|
4569
4570
|
const {
|
|
4570
4571
|
__scopeSelect: n,
|
|
@@ -4572,13 +4573,13 @@ var Lt = "SelectItem", [Bl, Eo] = st(Lt), ko = u.forwardRef(
|
|
|
4572
4573
|
disabled: o = !1,
|
|
4573
4574
|
textValue: a,
|
|
4574
4575
|
...i
|
|
4575
|
-
} = e, s = Fe(
|
|
4576
|
+
} = 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(
|
|
4576
4577
|
t,
|
|
4577
4578
|
(x) => {
|
|
4578
4579
|
var y;
|
|
4579
4580
|
return (y = l.itemRefCallback) == null ? void 0 : y.call(l, x, r, o);
|
|
4580
4581
|
}
|
|
4581
|
-
), f =
|
|
4582
|
+
), f = Cn(), w = u.useRef("touch"), b = () => {
|
|
4582
4583
|
o || (s.onValueChange(r), s.onOpenChange(!1));
|
|
4583
4584
|
};
|
|
4584
4585
|
if (r === "")
|
|
@@ -4586,7 +4587,7 @@ var Lt = "SelectItem", [Bl, Eo] = st(Lt), ko = u.forwardRef(
|
|
|
4586
4587
|
"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."
|
|
4587
4588
|
);
|
|
4588
4589
|
return /* @__PURE__ */ k(
|
|
4589
|
-
|
|
4590
|
+
zl,
|
|
4590
4591
|
{
|
|
4591
4592
|
scope: n,
|
|
4592
4593
|
value: r,
|
|
@@ -4597,7 +4598,7 @@ var Lt = "SelectItem", [Bl, Eo] = st(Lt), ko = u.forwardRef(
|
|
|
4597
4598
|
p((y) => y || ((x == null ? void 0 : x.textContent) ?? "").trim());
|
|
4598
4599
|
}, []),
|
|
4599
4600
|
children: /* @__PURE__ */ k(
|
|
4600
|
-
|
|
4601
|
+
Ut.ItemSlot,
|
|
4601
4602
|
{
|
|
4602
4603
|
scope: n,
|
|
4603
4604
|
value: r,
|
|
@@ -4637,7 +4638,7 @@ var Lt = "SelectItem", [Bl, Eo] = st(Lt), ko = u.forwardRef(
|
|
|
4637
4638
|
}),
|
|
4638
4639
|
onKeyDown: G(i.onKeyDown, (x) => {
|
|
4639
4640
|
var S;
|
|
4640
|
-
((S = l.searchRef) == null ? void 0 : S.current) !== "" && x.key === " " || (
|
|
4641
|
+
((S = l.searchRef) == null ? void 0 : S.current) !== "" && x.key === " " || (yl.includes(x.key) && b(), x.key === " " && x.preventDefault());
|
|
4641
4642
|
})
|
|
4642
4643
|
}
|
|
4643
4644
|
)
|
|
@@ -4647,10 +4648,10 @@ var Lt = "SelectItem", [Bl, Eo] = st(Lt), ko = u.forwardRef(
|
|
|
4647
4648
|
);
|
|
4648
4649
|
}
|
|
4649
4650
|
);
|
|
4650
|
-
|
|
4651
|
-
var ht = "SelectItemText",
|
|
4651
|
+
To.displayName = Dt;
|
|
4652
|
+
var ht = "SelectItemText", Ao = u.forwardRef(
|
|
4652
4653
|
(e, t) => {
|
|
4653
|
-
const { __scopeSelect: n, className: r, style: o, ...a } = e, i = Fe(ht, n), s = Ve(ht, n), l =
|
|
4654
|
+
const { __scopeSelect: n, className: r, style: o, ...a } = e, i = Fe(ht, n), s = Ve(ht, n), l = ko(ht, n), c = kl(ht, n), [d, p] = u.useState(null), g = Z(
|
|
4654
4655
|
t,
|
|
4655
4656
|
(b) => p(b),
|
|
4656
4657
|
l.onItemTextChange,
|
|
@@ -4662,22 +4663,22 @@ var ht = "SelectItemText", To = u.forwardRef(
|
|
|
4662
4663
|
() => /* @__PURE__ */ k("option", { value: l.value, disabled: l.disabled, children: v }, l.value),
|
|
4663
4664
|
[l.disabled, l.value, v]
|
|
4664
4665
|
), { onNativeOptionAdd: f, onNativeOptionRemove: w } = c;
|
|
4665
|
-
return te(() => (f(m), () => w(m)), [f, w, m]), /* @__PURE__ */
|
|
4666
|
+
return te(() => (f(m), () => w(m)), [f, w, m]), /* @__PURE__ */ Nt(mn, { children: [
|
|
4666
4667
|
/* @__PURE__ */ k(K.span, { id: l.textId, ...a, ref: g }),
|
|
4667
4668
|
l.isSelected && i.valueNode && !i.valueNodeHasChildren ? u.createPortal(a.children, i.valueNode) : null
|
|
4668
4669
|
] });
|
|
4669
4670
|
}
|
|
4670
4671
|
);
|
|
4671
|
-
|
|
4672
|
-
var
|
|
4672
|
+
Ao.displayName = ht;
|
|
4673
|
+
var Po = "SelectItemIndicator", Ro = u.forwardRef(
|
|
4673
4674
|
(e, t) => {
|
|
4674
4675
|
const { __scopeSelect: n, ...r } = e;
|
|
4675
|
-
return
|
|
4676
|
+
return ko(Po, n).isSelected ? /* @__PURE__ */ k(K.span, { "aria-hidden": !0, ...r, ref: t }) : null;
|
|
4676
4677
|
}
|
|
4677
4678
|
);
|
|
4678
|
-
|
|
4679
|
-
var
|
|
4680
|
-
const n = Ve(
|
|
4679
|
+
Ro.displayName = Po;
|
|
4680
|
+
var hn = "SelectScrollUpButton", Io = u.forwardRef((e, t) => {
|
|
4681
|
+
const n = Ve(hn, e.__scopeSelect), r = _n(hn, e.__scopeSelect), [o, a] = u.useState(!1), i = Z(t, r.onScrollButtonChange);
|
|
4681
4682
|
return te(() => {
|
|
4682
4683
|
if (n.viewport && n.isPositioned) {
|
|
4683
4684
|
let s = function() {
|
|
@@ -4688,7 +4689,7 @@ var pn = "SelectScrollUpButton", Ro = u.forwardRef((e, t) => {
|
|
|
4688
4689
|
return s(), l.addEventListener("scroll", s), () => l.removeEventListener("scroll", s);
|
|
4689
4690
|
}
|
|
4690
4691
|
}, [n.viewport, n.isPositioned]), o ? /* @__PURE__ */ k(
|
|
4691
|
-
|
|
4692
|
+
_o,
|
|
4692
4693
|
{
|
|
4693
4694
|
...e,
|
|
4694
4695
|
ref: i,
|
|
@@ -4699,9 +4700,9 @@ var pn = "SelectScrollUpButton", Ro = u.forwardRef((e, t) => {
|
|
|
4699
4700
|
}
|
|
4700
4701
|
) : null;
|
|
4701
4702
|
});
|
|
4702
|
-
|
|
4703
|
-
var
|
|
4704
|
-
const n = Ve(
|
|
4703
|
+
Io.displayName = hn;
|
|
4704
|
+
var vn = "SelectScrollDownButton", No = u.forwardRef((e, t) => {
|
|
4705
|
+
const n = Ve(vn, e.__scopeSelect), r = _n(vn, e.__scopeSelect), [o, a] = u.useState(!1), i = Z(t, r.onScrollButtonChange);
|
|
4705
4706
|
return te(() => {
|
|
4706
4707
|
if (n.viewport && n.isPositioned) {
|
|
4707
4708
|
let s = function() {
|
|
@@ -4712,7 +4713,7 @@ var hn = "SelectScrollDownButton", Io = u.forwardRef((e, t) => {
|
|
|
4712
4713
|
return s(), l.addEventListener("scroll", s), () => l.removeEventListener("scroll", s);
|
|
4713
4714
|
}
|
|
4714
4715
|
}, [n.viewport, n.isPositioned]), o ? /* @__PURE__ */ k(
|
|
4715
|
-
|
|
4716
|
+
_o,
|
|
4716
4717
|
{
|
|
4717
4718
|
...e,
|
|
4718
4719
|
ref: i,
|
|
@@ -4723,9 +4724,9 @@ var hn = "SelectScrollDownButton", Io = u.forwardRef((e, t) => {
|
|
|
4723
4724
|
}
|
|
4724
4725
|
) : null;
|
|
4725
4726
|
});
|
|
4726
|
-
|
|
4727
|
-
var
|
|
4728
|
-
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, a = Ve("SelectScrollButton", n), i = u.useRef(null), s =
|
|
4727
|
+
No.displayName = vn;
|
|
4728
|
+
var _o = u.forwardRef((e, t) => {
|
|
4729
|
+
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, a = Ve("SelectScrollButton", n), i = u.useRef(null), s = Ht(n), l = u.useCallback(() => {
|
|
4729
4730
|
i.current !== null && (window.clearInterval(i.current), i.current = null);
|
|
4730
4731
|
}, []);
|
|
4731
4732
|
return u.useEffect(() => () => l(), [l]), te(() => {
|
|
@@ -4751,23 +4752,23 @@ var No = u.forwardRef((e, t) => {
|
|
|
4751
4752
|
})
|
|
4752
4753
|
}
|
|
4753
4754
|
);
|
|
4754
|
-
}),
|
|
4755
|
+
}), Fl = "SelectSeparator", Vl = u.forwardRef(
|
|
4755
4756
|
(e, t) => {
|
|
4756
4757
|
const { __scopeSelect: n, ...r } = e;
|
|
4757
4758
|
return /* @__PURE__ */ k(K.div, { "aria-hidden": !0, ...r, ref: t });
|
|
4758
4759
|
}
|
|
4759
4760
|
);
|
|
4760
|
-
|
|
4761
|
-
var
|
|
4761
|
+
Vl.displayName = Fl;
|
|
4762
|
+
var gn = "SelectArrow", Wl = u.forwardRef(
|
|
4762
4763
|
(e, t) => {
|
|
4763
|
-
const { __scopeSelect: n, ...r } = e, o =
|
|
4764
|
-
return a.open && i.position === "popper" ? /* @__PURE__ */ k(
|
|
4764
|
+
const { __scopeSelect: n, ...r } = e, o = jt(n), a = Fe(gn, n), i = Ve(gn, n);
|
|
4765
|
+
return a.open && i.position === "popper" ? /* @__PURE__ */ k(Ts, { ...o, ...r, ref: t }) : null;
|
|
4765
4766
|
}
|
|
4766
4767
|
);
|
|
4767
|
-
|
|
4768
|
-
var
|
|
4768
|
+
Wl.displayName = gn;
|
|
4769
|
+
var $l = "SelectBubbleInput", Oo = u.forwardRef(
|
|
4769
4770
|
({ __scopeSelect: e, value: t, ...n }, r) => {
|
|
4770
|
-
const o = u.useRef(null), a = Z(r, o), i =
|
|
4771
|
+
const o = u.useRef(null), a = Z(r, o), i = Ns(t);
|
|
4771
4772
|
return u.useEffect(() => {
|
|
4772
4773
|
const s = o.current;
|
|
4773
4774
|
if (!s) return;
|
|
@@ -4783,18 +4784,18 @@ var Wl = "SelectBubbleInput", _o = u.forwardRef(
|
|
|
4783
4784
|
K.select,
|
|
4784
4785
|
{
|
|
4785
4786
|
...n,
|
|
4786
|
-
style: { ...
|
|
4787
|
+
style: { ...to, ...n.style },
|
|
4787
4788
|
ref: a,
|
|
4788
4789
|
defaultValue: t
|
|
4789
4790
|
}
|
|
4790
4791
|
);
|
|
4791
4792
|
}
|
|
4792
4793
|
);
|
|
4793
|
-
|
|
4794
|
-
function
|
|
4794
|
+
Oo.displayName = $l;
|
|
4795
|
+
function Mo(e) {
|
|
4795
4796
|
return e === "" || e === void 0;
|
|
4796
4797
|
}
|
|
4797
|
-
function
|
|
4798
|
+
function Lo(e) {
|
|
4798
4799
|
const t = $e(e), n = u.useRef(""), r = u.useRef(0), o = u.useCallback(
|
|
4799
4800
|
(i) => {
|
|
4800
4801
|
const s = n.current + i;
|
|
@@ -4808,24 +4809,24 @@ function Mo(e) {
|
|
|
4808
4809
|
}, []);
|
|
4809
4810
|
return u.useEffect(() => () => window.clearTimeout(r.current), []), [n, o, a];
|
|
4810
4811
|
}
|
|
4811
|
-
function
|
|
4812
|
+
function Do(e, t, n) {
|
|
4812
4813
|
const o = t.length > 1 && Array.from(t).every((c) => c === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
|
|
4813
|
-
let i =
|
|
4814
|
+
let i = Ul(e, Math.max(a, 0));
|
|
4814
4815
|
o.length === 1 && (i = i.filter((c) => c !== n));
|
|
4815
4816
|
const l = i.find(
|
|
4816
4817
|
(c) => c.textValue.toLowerCase().startsWith(o.toLowerCase())
|
|
4817
4818
|
);
|
|
4818
4819
|
return l !== n ? l : void 0;
|
|
4819
4820
|
}
|
|
4820
|
-
function
|
|
4821
|
+
function Ul(e, t) {
|
|
4821
4822
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
4822
4823
|
}
|
|
4823
|
-
var
|
|
4824
|
-
const
|
|
4824
|
+
var Hl = fo, Bo = ho, zo = go, jl = mo, Yl = wo, Xl = Co, Kl = To, Gl = Ao, Zl = Ro, ql = Io, Ql = No;
|
|
4825
|
+
const Jl = {
|
|
4825
4826
|
sm: "w-4 h-4",
|
|
4826
4827
|
md: "w-6 h-6"
|
|
4827
4828
|
};
|
|
4828
|
-
function
|
|
4829
|
+
function On({
|
|
4829
4830
|
size: e = "md",
|
|
4830
4831
|
flagCode: t,
|
|
4831
4832
|
className: n,
|
|
@@ -4836,7 +4837,7 @@ function _n({
|
|
|
4836
4837
|
{
|
|
4837
4838
|
className: j(
|
|
4838
4839
|
"rounded-full object-cover",
|
|
4839
|
-
|
|
4840
|
+
Jl[e],
|
|
4840
4841
|
n
|
|
4841
4842
|
),
|
|
4842
4843
|
src: `https://storage.googleapis.com/eleven-public-cdn/images/flags/circle-flags/${t}.svg`,
|
|
@@ -4845,10 +4846,10 @@ function _n({
|
|
|
4845
4846
|
}
|
|
4846
4847
|
);
|
|
4847
4848
|
}
|
|
4848
|
-
function
|
|
4849
|
-
const [n, r] = be(!1), { language: o, setLanguage: a, options: i } = rt(), s =
|
|
4849
|
+
function Fo({ children: e, ...t }) {
|
|
4850
|
+
const [n, r] = be(!1), { language: o, setLanguage: a, options: i } = rt(), s = wa();
|
|
4850
4851
|
return /* @__PURE__ */ I(
|
|
4851
|
-
|
|
4852
|
+
Hl,
|
|
4852
4853
|
{
|
|
4853
4854
|
open: n,
|
|
4854
4855
|
value: o.value.languageCode,
|
|
@@ -4860,8 +4861,8 @@ function zo({ children: e, ...t }) {
|
|
|
4860
4861
|
},
|
|
4861
4862
|
children: [
|
|
4862
4863
|
e,
|
|
4863
|
-
/* @__PURE__ */ h(
|
|
4864
|
-
|
|
4864
|
+
/* @__PURE__ */ h(jl, { container: s, children: /* @__PURE__ */ I(
|
|
4865
|
+
Yl,
|
|
4865
4866
|
{
|
|
4866
4867
|
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",
|
|
4867
4868
|
position: "popper",
|
|
@@ -4873,21 +4874,21 @@ function zo({ children: e, ...t }) {
|
|
|
4873
4874
|
onEscapeKeyDown: () => r(!1),
|
|
4874
4875
|
...t,
|
|
4875
4876
|
children: [
|
|
4876
|
-
/* @__PURE__ */ h(
|
|
4877
|
-
/* @__PURE__ */ h(
|
|
4878
|
-
|
|
4877
|
+
/* @__PURE__ */ h(ql, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-up" }) }),
|
|
4878
|
+
/* @__PURE__ */ h(Xl, { className: "p-1.5", children: i.value.map((l) => /* @__PURE__ */ I(
|
|
4879
|
+
Kl,
|
|
4879
4880
|
{
|
|
4880
4881
|
value: l.languageCode,
|
|
4881
4882
|
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",
|
|
4882
4883
|
children: [
|
|
4883
|
-
/* @__PURE__ */ h(
|
|
4884
|
-
/* @__PURE__ */ h(
|
|
4885
|
-
/* @__PURE__ */ h(
|
|
4884
|
+
/* @__PURE__ */ h(On, { flagCode: l.flagCode }),
|
|
4885
|
+
/* @__PURE__ */ h(Gl, { children: l.name }),
|
|
4886
|
+
/* @__PURE__ */ h(Zl, { className: "text-base-primary p-1.5 -mr-1.5 ml-auto", children: /* @__PURE__ */ h(Je, { size: "sm", name: "check" }) })
|
|
4886
4887
|
]
|
|
4887
4888
|
},
|
|
4888
4889
|
l.languageCode
|
|
4889
4890
|
)) }),
|
|
4890
|
-
/* @__PURE__ */ h(
|
|
4891
|
+
/* @__PURE__ */ h(Ql, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
|
|
4891
4892
|
]
|
|
4892
4893
|
}
|
|
4893
4894
|
) })
|
|
@@ -4895,13 +4896,13 @@ function zo({ children: e, ...t }) {
|
|
|
4895
4896
|
}
|
|
4896
4897
|
);
|
|
4897
4898
|
}
|
|
4898
|
-
function
|
|
4899
|
+
function ec({
|
|
4899
4900
|
className: e,
|
|
4900
4901
|
...t
|
|
4901
4902
|
}) {
|
|
4902
4903
|
const n = re(), { language: r, showPicker: o } = rt();
|
|
4903
|
-
return o.value ? /* @__PURE__ */ h(
|
|
4904
|
-
|
|
4904
|
+
return o.value ? /* @__PURE__ */ h(Fo, { align: "center", children: /* @__PURE__ */ I(
|
|
4905
|
+
Bo,
|
|
4905
4906
|
{
|
|
4906
4907
|
className: j(
|
|
4907
4908
|
"h-9 min-w-max rounded-button focus-ring px-2 flex gap-2 items-center text-base-primary bg-base hover:bg-base-hover active:bg-base-active font-medium",
|
|
@@ -4910,14 +4911,14 @@ function Jl({
|
|
|
4910
4911
|
"aria-label": n.change_language,
|
|
4911
4912
|
...t,
|
|
4912
4913
|
children: [
|
|
4913
|
-
/* @__PURE__ */ h(
|
|
4914
|
+
/* @__PURE__ */ h(On, { size: "sm", flagCode: r.value.flagCode }),
|
|
4914
4915
|
r.value.name,
|
|
4915
|
-
/* @__PURE__ */ h(
|
|
4916
|
+
/* @__PURE__ */ h(zo, { className: "text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
|
|
4916
4917
|
]
|
|
4917
4918
|
}
|
|
4918
4919
|
) }) : null;
|
|
4919
4920
|
}
|
|
4920
|
-
function
|
|
4921
|
+
function tc({
|
|
4921
4922
|
className: e,
|
|
4922
4923
|
...t
|
|
4923
4924
|
}) {
|
|
@@ -4932,11 +4933,11 @@ function ec({
|
|
|
4932
4933
|
}
|
|
4933
4934
|
);
|
|
4934
4935
|
}
|
|
4935
|
-
function
|
|
4936
|
+
function Mn({
|
|
4936
4937
|
visible: e,
|
|
4937
4938
|
...t
|
|
4938
4939
|
}) {
|
|
4939
|
-
const n = re(), { isMuted: r, isMutingEnabled: o, setIsMuted: a } =
|
|
4940
|
+
const n = re(), { isMuted: r, isMutingEnabled: o, setIsMuted: a } = pr(), i = Te(() => {
|
|
4940
4941
|
a(!r.peek());
|
|
4941
4942
|
}, [a]);
|
|
4942
4943
|
return o.value ? /* @__PURE__ */ h(ke, { visible: e, className: "p-1", children: /* @__PURE__ */ h(
|
|
@@ -4950,7 +4951,7 @@ function On({
|
|
|
4950
4951
|
}
|
|
4951
4952
|
) }) : null;
|
|
4952
4953
|
}
|
|
4953
|
-
function
|
|
4954
|
+
function Ln({
|
|
4954
4955
|
iconOnly: e,
|
|
4955
4956
|
isDisconnected: t,
|
|
4956
4957
|
children: n,
|
|
@@ -4969,11 +4970,11 @@ function Mn({
|
|
|
4969
4970
|
}
|
|
4970
4971
|
);
|
|
4971
4972
|
}
|
|
4972
|
-
function
|
|
4973
|
+
function nc({
|
|
4973
4974
|
showTranscript: e,
|
|
4974
4975
|
scrollPinned: t
|
|
4975
4976
|
}) {
|
|
4976
|
-
const [n, r] = be(""), o =
|
|
4977
|
+
const [n, r] = be(""), o = zt(), { text_input_enabled: a } = Q().value, i = re(), {
|
|
4977
4978
|
isDisconnected: s,
|
|
4978
4979
|
status: l,
|
|
4979
4980
|
startSession: c,
|
|
@@ -4983,7 +4984,7 @@ function tc({
|
|
|
4983
4984
|
} = ne();
|
|
4984
4985
|
return /* @__PURE__ */ I("div", { className: "shrink-0 overflow-hidden flex p-3 items-end justify-end", children: [
|
|
4985
4986
|
a && /* @__PURE__ */ h(
|
|
4986
|
-
|
|
4987
|
+
tc,
|
|
4987
4988
|
{
|
|
4988
4989
|
rows: 1,
|
|
4989
4990
|
"aria-label": i.input_label,
|
|
@@ -4998,14 +4999,14 @@ function tc({
|
|
|
4998
4999
|
}
|
|
4999
5000
|
),
|
|
5000
5001
|
/* @__PURE__ */ I("div", { className: "flex h-11 items-center", children: [
|
|
5001
|
-
/* @__PURE__ */ h(
|
|
5002
|
+
/* @__PURE__ */ h(Mn, { visible: !o.value && !s.value }),
|
|
5002
5003
|
/* @__PURE__ */ h(
|
|
5003
5004
|
ke,
|
|
5004
5005
|
{
|
|
5005
5006
|
visible: !o.value && (!s.value || e),
|
|
5006
5007
|
className: "p-1",
|
|
5007
5008
|
children: /* @__PURE__ */ h(
|
|
5008
|
-
|
|
5009
|
+
Ln,
|
|
5009
5010
|
{
|
|
5010
5011
|
iconOnly: !s.value,
|
|
5011
5012
|
isDisconnected: s.value,
|
|
@@ -5018,11 +5019,11 @@ function tc({
|
|
|
5018
5019
|
] })
|
|
5019
5020
|
] });
|
|
5020
5021
|
}
|
|
5021
|
-
function
|
|
5022
|
+
function rc({
|
|
5022
5023
|
entry: e,
|
|
5023
5024
|
animateIn: t
|
|
5024
5025
|
}) {
|
|
5025
|
-
const n = re(), { previewUrl: r } =
|
|
5026
|
+
const n = re(), { previewUrl: r } = bn(), { lastId: o } = ne();
|
|
5026
5027
|
return /* @__PURE__ */ h(ce, { initial: !t, active: !0, children: e.type === "message" ? /* @__PURE__ */ I(
|
|
5027
5028
|
"div",
|
|
5028
5029
|
{
|
|
@@ -5074,8 +5075,8 @@ function nc({
|
|
|
5074
5075
|
] })
|
|
5075
5076
|
] }) });
|
|
5076
5077
|
}
|
|
5077
|
-
const
|
|
5078
|
-
function
|
|
5078
|
+
const oc = 16;
|
|
5079
|
+
function ac({ scrollPinned: e, transcript: t }) {
|
|
5079
5080
|
const n = we(null), r = (a) => {
|
|
5080
5081
|
var i;
|
|
5081
5082
|
(i = n.current) == null || i.scrollTo({
|
|
@@ -5092,11 +5093,11 @@ function oc({ scrollPinned: e, transcript: t }) {
|
|
|
5092
5093
|
{
|
|
5093
5094
|
ref: n,
|
|
5094
5095
|
onScroll: (a) => {
|
|
5095
|
-
e.value = a.currentTarget.scrollTop >= a.currentTarget.scrollHeight - a.currentTarget.clientHeight -
|
|
5096
|
+
e.value = a.currentTarget.scrollTop >= a.currentTarget.scrollHeight - a.currentTarget.clientHeight - oc;
|
|
5096
5097
|
},
|
|
5097
5098
|
className: "px-4 pb-3 grow flex flex-col gap-3 overflow-x-hidden overflow-y-auto",
|
|
5098
5099
|
children: t.value.map((a, i) => /* @__PURE__ */ h(
|
|
5099
|
-
|
|
5100
|
+
rc,
|
|
5100
5101
|
{
|
|
5101
5102
|
entry: a,
|
|
5102
5103
|
animateIn: !o.current
|
|
@@ -5106,7 +5107,7 @@ function oc({ scrollPinned: e, transcript: t }) {
|
|
|
5106
5107
|
}
|
|
5107
5108
|
);
|
|
5108
5109
|
}
|
|
5109
|
-
const
|
|
5110
|
+
const ic = {
|
|
5110
5111
|
"top-left": "origin-top-left",
|
|
5111
5112
|
top: "origin-top",
|
|
5112
5113
|
"top-right": "origin-top-right",
|
|
@@ -5114,8 +5115,8 @@ const ac = {
|
|
|
5114
5115
|
"bottom-right": "origin-bottom-right",
|
|
5115
5116
|
bottom: "origin-bottom"
|
|
5116
5117
|
};
|
|
5117
|
-
function
|
|
5118
|
-
const t = re(), n =
|
|
5118
|
+
function sc({ open: e }) {
|
|
5119
|
+
const t = re(), n = wn(), r = zt(), o = Q(), a = o.value.placement, { isDisconnected: i, startSession: s, transcript: l, conversationIndex: c } = ne(), d = wr(), p = X(() => {
|
|
5119
5120
|
var m;
|
|
5120
5121
|
return n.value || r.value ? !d.value || !n.value ? l.value : [
|
|
5121
5122
|
{
|
|
@@ -5136,29 +5137,29 @@ function ic({ open: e }) {
|
|
|
5136
5137
|
className: j(
|
|
5137
5138
|
"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]",
|
|
5138
5139
|
"transition-[transform,opacity] duration-200 data-hidden:scale-90 data-hidden:opacity-0",
|
|
5139
|
-
|
|
5140
|
+
ic[a],
|
|
5140
5141
|
a.startsWith("top") ? "top-20" : "bottom-20"
|
|
5141
5142
|
),
|
|
5142
5143
|
children: [
|
|
5143
5144
|
/* @__PURE__ */ I("div", { className: "bg-base shrink-0 flex gap-2 p-4 items-start", children: [
|
|
5144
5145
|
/* @__PURE__ */ h("div", { className: "relative w-16 h-16" }),
|
|
5145
|
-
/* @__PURE__ */ h(ce, { active: g && !i.value, children: /* @__PURE__ */ h(
|
|
5146
|
+
/* @__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" }) })
|
|
5146
5147
|
] }),
|
|
5147
5148
|
/* @__PURE__ */ h(
|
|
5148
|
-
|
|
5149
|
+
ac,
|
|
5149
5150
|
{
|
|
5150
5151
|
transcript: p,
|
|
5151
5152
|
scrollPinned: v
|
|
5152
5153
|
}
|
|
5153
5154
|
),
|
|
5154
5155
|
/* @__PURE__ */ h(
|
|
5155
|
-
|
|
5156
|
+
nc,
|
|
5156
5157
|
{
|
|
5157
5158
|
scrollPinned: v,
|
|
5158
5159
|
showTranscript: g
|
|
5159
5160
|
}
|
|
5160
5161
|
),
|
|
5161
|
-
/* @__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(
|
|
5162
|
+
/* @__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(ec, {}) }) }),
|
|
5162
5163
|
/* @__PURE__ */ I(
|
|
5163
5164
|
"div",
|
|
5164
5165
|
{
|
|
@@ -5183,7 +5184,7 @@ function ic({ open: e }) {
|
|
|
5183
5184
|
) })
|
|
5184
5185
|
}
|
|
5185
5186
|
),
|
|
5186
|
-
/* @__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(
|
|
5187
|
+
/* @__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, {}) }) })
|
|
5187
5188
|
]
|
|
5188
5189
|
}
|
|
5189
5190
|
)
|
|
@@ -5191,8 +5192,8 @@ function ic({ open: e }) {
|
|
|
5191
5192
|
}
|
|
5192
5193
|
) });
|
|
5193
5194
|
}
|
|
5194
|
-
function
|
|
5195
|
-
const t =
|
|
5195
|
+
function Vo({ expanded: e }) {
|
|
5196
|
+
const t = zt(), n = Q().value.variant, { isDisconnected: r } = ne(), o = re(), a = Te(() => {
|
|
5196
5197
|
e.value = !e.value;
|
|
5197
5198
|
}, [e]);
|
|
5198
5199
|
return /* @__PURE__ */ I(wt, { children: [
|
|
@@ -5210,11 +5211,11 @@ function Fo({ expanded: e }) {
|
|
|
5210
5211
|
grow: n !== "tiny",
|
|
5211
5212
|
visible: !t.value && !e.value && !r.value,
|
|
5212
5213
|
className: "p-1",
|
|
5213
|
-
children: /* @__PURE__ */ h(
|
|
5214
|
+
children: /* @__PURE__ */ h(Ln, { iconOnly: !0, isDisconnected: !1 })
|
|
5214
5215
|
}
|
|
5215
5216
|
),
|
|
5216
5217
|
/* @__PURE__ */ h(
|
|
5217
|
-
|
|
5218
|
+
Mn,
|
|
5218
5219
|
{
|
|
5219
5220
|
visible: !t.value && !e.value && !r.value
|
|
5220
5221
|
}
|
|
@@ -5236,7 +5237,7 @@ function Fo({ expanded: e }) {
|
|
|
5236
5237
|
) })
|
|
5237
5238
|
] });
|
|
5238
5239
|
}
|
|
5239
|
-
function
|
|
5240
|
+
function lc({
|
|
5240
5241
|
expanded: e,
|
|
5241
5242
|
className: t,
|
|
5242
5243
|
...n
|
|
@@ -5263,12 +5264,12 @@ function sc({
|
|
|
5263
5264
|
] })
|
|
5264
5265
|
}
|
|
5265
5266
|
),
|
|
5266
|
-
/* @__PURE__ */ h("div", { className: "flex items-center", children: /* @__PURE__ */ h(
|
|
5267
|
+
/* @__PURE__ */ h("div", { className: "flex items-center", children: /* @__PURE__ */ h(Vo, { expanded: e }) })
|
|
5267
5268
|
]
|
|
5268
5269
|
}
|
|
5269
5270
|
);
|
|
5270
5271
|
}
|
|
5271
|
-
function
|
|
5272
|
+
function cc({
|
|
5272
5273
|
expanded: e,
|
|
5273
5274
|
className: t,
|
|
5274
5275
|
...n
|
|
@@ -5280,15 +5281,15 @@ function lc({
|
|
|
5280
5281
|
...n,
|
|
5281
5282
|
children: [
|
|
5282
5283
|
/* @__PURE__ */ h(ke, { visible: !e.value, className: "p-1", children: /* @__PURE__ */ h(ot, {}) }),
|
|
5283
|
-
/* @__PURE__ */ h(
|
|
5284
|
+
/* @__PURE__ */ h(Vo, { expanded: e })
|
|
5284
5285
|
]
|
|
5285
5286
|
}
|
|
5286
5287
|
);
|
|
5287
5288
|
}
|
|
5288
|
-
function
|
|
5289
|
+
function uc({ visible: e, className: t, ...n }) {
|
|
5289
5290
|
const r = re(), { language: o, showPicker: a } = rt();
|
|
5290
|
-
return a.value ? /* @__PURE__ */ h(ke, { visible: e, className: "p-1", children: /* @__PURE__ */ h(
|
|
5291
|
-
|
|
5291
|
+
return a.value ? /* @__PURE__ */ h(ke, { visible: e, className: "p-1", children: /* @__PURE__ */ h(Fo, { children: /* @__PURE__ */ I(
|
|
5292
|
+
Bo,
|
|
5292
5293
|
{
|
|
5293
5294
|
className: j(
|
|
5294
5295
|
"h-9 min-w-max border border-base-border rounded-button focus-ring px-1.5 flex gap-1 items-center transition-colors duration-200 hover:bg-base-hover active:bg-base-active",
|
|
@@ -5297,17 +5298,17 @@ function cc({ visible: e, className: t, ...n }) {
|
|
|
5297
5298
|
"aria-label": r.change_language,
|
|
5298
5299
|
...n,
|
|
5299
5300
|
children: [
|
|
5300
|
-
/* @__PURE__ */ h(
|
|
5301
|
-
/* @__PURE__ */ h(
|
|
5301
|
+
/* @__PURE__ */ h(On, { flagCode: o.value.flagCode }),
|
|
5302
|
+
/* @__PURE__ */ h(zo, { className: "px-1 text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
|
|
5302
5303
|
]
|
|
5303
5304
|
}
|
|
5304
5305
|
) }) }) : null;
|
|
5305
5306
|
}
|
|
5306
|
-
function
|
|
5307
|
+
function Wo() {
|
|
5307
5308
|
const e = Q().value.variant, { isDisconnected: t, status: n } = ne();
|
|
5308
5309
|
return /* @__PURE__ */ I(wt, { children: [
|
|
5309
5310
|
/* @__PURE__ */ h(
|
|
5310
|
-
|
|
5311
|
+
Ln,
|
|
5311
5312
|
{
|
|
5312
5313
|
isDisconnected: t.value,
|
|
5313
5314
|
iconOnly: e === "tiny",
|
|
@@ -5315,11 +5316,11 @@ function Vo() {
|
|
|
5315
5316
|
disabled: n.value === "disconnecting" || n.value === "connecting"
|
|
5316
5317
|
}
|
|
5317
5318
|
),
|
|
5318
|
-
/* @__PURE__ */ h(
|
|
5319
|
-
/* @__PURE__ */ h(
|
|
5319
|
+
/* @__PURE__ */ h(uc, { visible: t.value }),
|
|
5320
|
+
/* @__PURE__ */ h(Mn, { visible: !t.value })
|
|
5320
5321
|
] });
|
|
5321
5322
|
}
|
|
5322
|
-
function
|
|
5323
|
+
function dc({
|
|
5323
5324
|
className: e,
|
|
5324
5325
|
...t
|
|
5325
5326
|
}) {
|
|
@@ -5338,13 +5339,13 @@ function uc({
|
|
|
5338
5339
|
children: r.main_label
|
|
5339
5340
|
}
|
|
5340
5341
|
),
|
|
5341
|
-
/* @__PURE__ */ h(ce, { active: !n.value, children: /* @__PURE__ */ h(
|
|
5342
|
+
/* @__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" }) })
|
|
5342
5343
|
] })
|
|
5343
5344
|
] }),
|
|
5344
|
-
/* @__PURE__ */ h("div", { className: "flex items-center", children: /* @__PURE__ */ h(
|
|
5345
|
+
/* @__PURE__ */ h("div", { className: "flex items-center", children: /* @__PURE__ */ h(Wo, {}) })
|
|
5345
5346
|
] });
|
|
5346
5347
|
}
|
|
5347
|
-
function
|
|
5348
|
+
function fc({
|
|
5348
5349
|
className: e,
|
|
5349
5350
|
...t
|
|
5350
5351
|
}) {
|
|
@@ -5355,17 +5356,17 @@ function dc({
|
|
|
5355
5356
|
...t,
|
|
5356
5357
|
children: [
|
|
5357
5358
|
/* @__PURE__ */ h(ot, { className: "mx-1" }),
|
|
5358
|
-
/* @__PURE__ */ h(
|
|
5359
|
+
/* @__PURE__ */ h(Wo, {})
|
|
5359
5360
|
]
|
|
5360
5361
|
}
|
|
5361
5362
|
);
|
|
5362
5363
|
}
|
|
5363
|
-
function
|
|
5364
|
-
const n = Q().value.variant, r =
|
|
5364
|
+
function pc({ expandable: e, expanded: t }) {
|
|
5365
|
+
const n = Q().value.variant, r = Bt(), { isDisconnected: o } = ne(), a = Te(async () => {
|
|
5365
5366
|
await r.requestTerms(), t.value = !t.peek();
|
|
5366
5367
|
}, [t]), i = n === "full";
|
|
5367
5368
|
return e ? /* @__PURE__ */ h(
|
|
5368
|
-
i ?
|
|
5369
|
+
i ? lc : cc,
|
|
5369
5370
|
{
|
|
5370
5371
|
expanded: t,
|
|
5371
5372
|
className: j(
|
|
@@ -5374,10 +5375,10 @@ function fc({ expandable: e, expanded: t }) {
|
|
|
5374
5375
|
),
|
|
5375
5376
|
onClick: o.value || t.value ? a : void 0
|
|
5376
5377
|
}
|
|
5377
|
-
) : /* @__PURE__ */ h(i ?
|
|
5378
|
+
) : /* @__PURE__ */ h(i ? dc : fc, { className: "bg-base shadow-md pointer-events-auto overflow-hidden" });
|
|
5378
5379
|
}
|
|
5379
|
-
function
|
|
5380
|
-
const e = re(), t = Q(), { dismissTerms: n, acceptTerms: r } =
|
|
5380
|
+
function hc() {
|
|
5381
|
+
const e = re(), t = Q(), { dismissTerms: n, acceptTerms: r } = Bt();
|
|
5381
5382
|
return /* @__PURE__ */ I("div", { className: "max-w-[400px] flex flex-col gap-2 bg-base shadow-md pointer-events-auto rounded-sheet p-3 text-sm", children: [
|
|
5382
5383
|
/* @__PURE__ */ h(
|
|
5383
5384
|
"div",
|
|
@@ -5392,7 +5393,7 @@ function pc() {
|
|
|
5392
5393
|
] })
|
|
5393
5394
|
] });
|
|
5394
5395
|
}
|
|
5395
|
-
function
|
|
5396
|
+
function vc({ copyText: e, children: t }) {
|
|
5396
5397
|
const n = re(), [r, o] = be(!1);
|
|
5397
5398
|
Oe(() => {
|
|
5398
5399
|
if (r) {
|
|
@@ -5405,12 +5406,12 @@ function hc({ copyText: e, children: t }) {
|
|
|
5405
5406
|
}
|
|
5406
5407
|
}, [r]);
|
|
5407
5408
|
const a = Te(() => {
|
|
5408
|
-
const i =
|
|
5409
|
+
const i = Sr(e);
|
|
5409
5410
|
i && (navigator.clipboard.writeText(i), o(!0));
|
|
5410
5411
|
}, []);
|
|
5411
5412
|
return /* @__PURE__ */ h(Me, { onClick: a, children: r ? n.copied : t });
|
|
5412
5413
|
}
|
|
5413
|
-
function
|
|
5414
|
+
function gc({ sawError: e }) {
|
|
5414
5415
|
const t = re(), { error: n, lastId: r } = ne(), o = Te(() => {
|
|
5415
5416
|
e.value = !0;
|
|
5416
5417
|
}, []);
|
|
@@ -5428,12 +5429,12 @@ function vc({ sawError: e }) {
|
|
|
5428
5429
|
] })
|
|
5429
5430
|
] }),
|
|
5430
5431
|
/* @__PURE__ */ I("div", { className: "flex justify-end gap-2", children: [
|
|
5431
|
-
/* @__PURE__ */ h(
|
|
5432
|
+
/* @__PURE__ */ h(vc, { copyText: r, children: t.copy_id }),
|
|
5432
5433
|
/* @__PURE__ */ h(Me, { variant: "primary", onClick: o, children: "Close" })
|
|
5433
5434
|
] })
|
|
5434
5435
|
] });
|
|
5435
5436
|
}
|
|
5436
|
-
function
|
|
5437
|
+
function mc() {
|
|
5437
5438
|
const e = Q();
|
|
5438
5439
|
return e.value.disable_banner ? null : /* @__PURE__ */ I(
|
|
5439
5440
|
"p",
|
|
@@ -5465,20 +5466,22 @@ const Ze = {
|
|
|
5465
5466
|
}, qe = {
|
|
5466
5467
|
top: "flex-col-reverse justify-end",
|
|
5467
5468
|
bottom: "flex-col justify-end"
|
|
5468
|
-
},
|
|
5469
|
+
}, wc = {
|
|
5469
5470
|
"top-left": `${qe.top} ${Ze.left}`,
|
|
5470
5471
|
top: `${qe.top} ${Ze.center}`,
|
|
5471
5472
|
"top-right": `${qe.top} ${Ze.right}`,
|
|
5472
5473
|
"bottom-left": `${qe.bottom} ${Ze.left}`,
|
|
5473
5474
|
bottom: `${qe.bottom} ${Ze.center}`,
|
|
5474
5475
|
"bottom-right": `${qe.bottom} ${Ze.right}`
|
|
5475
|
-
},
|
|
5476
|
-
|
|
5476
|
+
}, At = {
|
|
5477
|
+
display: "none"
|
|
5478
|
+
}, bc = sr(function() {
|
|
5479
|
+
const t = ue(!1), n = Q(), r = ue(!1), { error: o } = ne(), a = Bt(), i = X(
|
|
5477
5480
|
() => n.value.transcript_enabled || n.value.text_input_enabled
|
|
5478
5481
|
), s = X(
|
|
5479
5482
|
() => j(
|
|
5480
|
-
"overlay flex transition-opacity duration-200 data-hidden:opacity-0",
|
|
5481
|
-
|
|
5483
|
+
"overlay !flex transition-opacity duration-200 data-hidden:opacity-0",
|
|
5484
|
+
wc[n.value.placement]
|
|
5482
5485
|
)
|
|
5483
5486
|
);
|
|
5484
5487
|
ze(() => {
|
|
@@ -5486,26 +5489,26 @@ const Ze = {
|
|
|
5486
5489
|
});
|
|
5487
5490
|
const l = X(() => !i.value && o.value && !r.value ? "error" : !a.termsAccepted.value && a.termsShown.value ? "terms" : "conversation"), c = X(() => l.value === "error"), d = X(() => l.value === "terms"), p = X(() => l.value === "conversation");
|
|
5488
5491
|
return /* @__PURE__ */ I(wt, { children: [
|
|
5489
|
-
/* @__PURE__ */ h(ce, { initial: !1, active: p, children: /* @__PURE__ */ I(yt, { className: s, children: [
|
|
5490
|
-
i.value && /* @__PURE__ */ h(
|
|
5491
|
-
/* @__PURE__ */ h(
|
|
5492
|
+
/* @__PURE__ */ h(ce, { initial: !1, active: p, children: /* @__PURE__ */ I(yt, { className: s, style: At, children: [
|
|
5493
|
+
i.value && /* @__PURE__ */ h(sc, { open: t }),
|
|
5494
|
+
/* @__PURE__ */ h(pc, { expandable: i.value, expanded: t })
|
|
5492
5495
|
] }) }),
|
|
5493
|
-
/* @__PURE__ */ h(ce, { initial: !1, active: d, children: /* @__PURE__ */ h(yt, { className: s, children: /* @__PURE__ */ h(
|
|
5494
|
-
/* @__PURE__ */ h(ce, { initial: !1, active: c, children: /* @__PURE__ */ h(yt, { className: s, children: /* @__PURE__ */ h(
|
|
5495
|
-
/* @__PURE__ */ h(yt, { className: s, children: /* @__PURE__ */ h(
|
|
5496
|
+
/* @__PURE__ */ h(ce, { initial: !1, active: d, children: /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(hc, {}) }) }),
|
|
5497
|
+
/* @__PURE__ */ h(ce, { initial: !1, active: c, children: /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(gc, { sawError: r }) }) }),
|
|
5498
|
+
/* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(mc, {}) })
|
|
5496
5499
|
] });
|
|
5497
5500
|
});
|
|
5498
|
-
function
|
|
5499
|
-
return /* @__PURE__ */ h(
|
|
5500
|
-
/* @__PURE__ */ h(
|
|
5501
|
-
/* @__PURE__ */ h(
|
|
5501
|
+
function xc(e) {
|
|
5502
|
+
return /* @__PURE__ */ h(Qo, { value: e, children: /* @__PURE__ */ h(oa, { children: /* @__PURE__ */ h(pa, { children: /* @__PURE__ */ h(ca, { children: /* @__PURE__ */ h(va, { children: /* @__PURE__ */ h(ia, { children: /* @__PURE__ */ h(sa, { children: /* @__PURE__ */ h(ua, { children: /* @__PURE__ */ h(ga, { children: /* @__PURE__ */ I(ma, { children: [
|
|
5503
|
+
/* @__PURE__ */ h(qo, {}),
|
|
5504
|
+
/* @__PURE__ */ h(bc, {})
|
|
5502
5505
|
] }) }) }) }) }) }) }) }) }) });
|
|
5503
5506
|
}
|
|
5504
|
-
function
|
|
5505
|
-
|
|
5507
|
+
function Ic(e = "elevenlabs-convai") {
|
|
5508
|
+
jo(xc, e, [...rn], {
|
|
5506
5509
|
shadow: !0
|
|
5507
5510
|
});
|
|
5508
5511
|
}
|
|
5509
5512
|
export {
|
|
5510
|
-
|
|
5513
|
+
Ic as registerWidget
|
|
5511
5514
|
};
|