@eloquentai/chat-sdk 0.36.2-dev.2 → 0.36.2-dev.3
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/components/ui/star-rating.d.ts +12 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +249 -249
- package/dist/{skeleton-DnTno2sX.js → skeleton-CA5V4U7J.js} +2431 -2327
- package/dist/skeleton-CA5V4U7J.js.map +1 -0
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
- package/dist/skeleton-DnTno2sX.js.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { L as Mt, c as nt, u as At, g as ct, X as Pt, i as Ot, A as Ut, d as H, e as Ze, f as jt, h as Dt, r as $t, t as Bt, j as Lt, N as at, k as $e, l as Nt, H as Zt, w as ut, m as Kt, s as Vt, n as Wt, o as Ht, E as Ft, p as Jt, S as Gt, C as Yt, T as Xt } from "./skeleton-
|
|
2
|
+
import { L as Mt, c as nt, u as At, g as ct, X as Pt, i as Ot, A as Ut, d as H, e as Ze, f as jt, h as Dt, r as $t, t as Bt, j as Lt, N as at, k as $e, l as Nt, H as Zt, w as ut, m as Kt, s as Vt, n as Wt, o as Ht, E as Ft, p as Jt, S as Gt, C as Yt, T as Xt } from "./skeleton-CA5V4U7J.js";
|
|
3
3
|
import { jsx as C, jsxs as Be, Fragment as Qt } from "react/jsx-runtime";
|
|
4
|
-
import { useState as S, useEffect as F, useMemo as et, useCallback as
|
|
4
|
+
import { useState as S, useEffect as F, useMemo as et, useCallback as v, useRef as N } from "react";
|
|
5
5
|
import { createPortal as tt } from "react-dom";
|
|
6
6
|
import eo from "react-dom/client";
|
|
7
7
|
try {
|
|
8
8
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
9
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
9
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "6c9662aa-6240-4794-aa15-5b38113c44f0", e._sentryDebugIdIdentifier = "sentry-dbid-6c9662aa-6240-4794-aa15-5b38113c44f0");
|
|
10
10
|
} catch {
|
|
11
11
|
}
|
|
12
12
|
if (typeof window < "u") {
|
|
@@ -33,7 +33,7 @@ if (typeof window < "u") {
|
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
const Fe = '/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--eloq-aura-angle:0deg}}}@layer theme{:root,:host{--eloq-font-sans:system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--eloq-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--eloq-color-red-50:oklch(97.1% .013 17.38);--eloq-color-red-200:oklch(88.5% .062 18.334);--eloq-color-red-400:oklch(70.4% .191 22.216);--eloq-color-red-500:oklch(63.7% .237 25.331);--eloq-color-red-800:oklch(44.4% .177 26.899);--eloq-color-amber-50:oklch(98.7% .022 95.277);--eloq-color-amber-200:oklch(92.4% .12 95.746);--eloq-color-amber-400:oklch(82.8% .189 84.429);--eloq-color-amber-500:oklch(76.9% .188 70.08);--eloq-color-amber-800:oklch(47.3% .137 46.201);--eloq-color-yellow-400:oklch(85.2% .199 91.936);--eloq-color-green-50:oklch(98.2% .018 155.826);--eloq-color-green-200:oklch(92.5% .084 155.995);--eloq-color-green-400:oklch(79.2% .209 151.711);--eloq-color-green-500:oklch(72.3% .219 149.579);--eloq-color-green-800:oklch(44.8% .119 151.328);--eloq-color-blue-50:oklch(97% .014 254.604);--eloq-color-blue-200:oklch(88.2% .059 254.128);--eloq-color-blue-400:oklch(70.7% .165 254.624);--eloq-color-blue-500:oklch(62.3% .214 259.815);--eloq-color-blue-800:oklch(42.4% .199 265.638);--eloq-color-gray-200:oklch(92.8% .006 264.531);--eloq-color-gray-300:oklch(87.2% .01 258.338);--eloq-color-gray-400:oklch(70.7% .022 261.325);--eloq-color-gray-500:oklch(55.1% .027 264.364);--eloq-color-gray-600:oklch(44.6% .03 256.802);--eloq-color-black:#000;--eloq-color-white:#fff;--eloq-spacing:.25rem;--eloq-container-xs:20rem;--eloq-text-xs:.75rem;--eloq-text-xs--line-height:calc(1 / .75);--eloq-text-sm:.875rem;--eloq-text-sm--line-height:calc(1.25 / .875);--eloq-text-base:1rem;--eloq-text-base--line-height: 1.5 ;--eloq-text-2xl:1.5rem;--eloq-text-2xl--line-height:calc(2 / 1.5);--eloq-font-weight-medium:500;--eloq-font-weight-semibold:600;--eloq-tracking-tight:-.025em;--eloq-leading-relaxed:1.625;--eloq-radius-md:calc(var(--radius) - 2px);--eloq-radius-lg:var(--radius);--eloq-radius-xl:.75rem;--eloq-radius-2xl:1rem;--eloq-radius-3xl:1.5rem;--eloq-drop-shadow-lg:0 4px 4px #00000026;--eloq-drop-shadow-xl:0 9px 7px #0000001a;--eloq-ease-out:cubic-bezier(0, 0, .2, 1);--eloq-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--eloq-default-transition-duration:.15s;--eloq-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--eloq-default-font-family:var(--eloq-font-sans);--eloq-default-mono-font-family:var(--eloq-font-mono);--eloq-animate-panel-in:panel-in .35s cubic-bezier(.16, 1, .3, 1) both;--eloq-animate-panel-out:panel-out .25s cubic-bezier(.4, 0, 1, 1) both;--eloq-animate-thinking-dot:thinking-dot 1.2s ease-in-out infinite;--eloq-animate-thinking-shimmer:thinking-shimmer 1.8s linear infinite;--eloq-animate-regenerating:regenerating-sweep 1.2s linear infinite;--eloq-animate-text-in:text-in .35s ease-out both;--eloq-animate-message-in:message-in .3s ease-out both;--eloq-animate-slide-up-in:slide-up-in .3s ease-out both}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--eloq-default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--eloq-default-font-feature-settings,normal);font-variation-settings:var(--eloq-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--eloq-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--eloq-default-mono-font-feature-settings,normal);font-variation-settings:var(--eloq-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--background:0 0% 100%;--foreground:0 0% 3.9%;--card:0 0% 100%;--card-foreground:0 0% 3.9%;--popover:0 0% 100%;--popover-foreground:0 0% 3.9%;--primary:267 56% 46%;--primary-foreground:0 0% 98%;--secondary:0 0% 96.1%;--secondary-foreground:0 0% 9%;--muted:0 0% 96.1%;--muted-foreground:0 0% 45.1%;--accent:0 0% 96.1%;--accent-foreground:0 0% 9%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--cream:37.5 44% 96.5%;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%;--radius:.5rem}.dark{--background:262 50% 10%;--foreground:262 5% 90%;--card:262 50% 10%;--card-foreground:262 5% 90%;--popover:262 50% 5%;--popover-foreground:262 5% 90%;--primary:262 62% 70%;--primary-foreground:0 0% 100%;--primary-dark:262 62% 60%;--secondary:262 30% 30%;--secondary-foreground:0 0% 100%;--secondary-dark:262 30% 20%;--secondary-light:262 30% 40%;--tertiary:267 56% 46%;--tertiary-foreground:0 0% 100%;--tertiary-dark:267 38% 25%;--tertiary-light:263 100% 85%;--muted:224 30% 25%;--muted-foreground:262 5% 90%;--accent:224 30% 25%;--accent-foreground:262 5% 100%;--accent-dark:224 30% 15%;--destructive:0 100% 30%;--destructive-foreground:262 5% 90%;--border:0 0% 30%;--input:262 30% 25%;--ring:262 62% 71%;--cream:257 28% 20%;--radius:.5rem;--sidebar-background:var(--background);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--border);--sidebar-ring:var(--ring)}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}}@layer components;@layer utilities{.eloq\\:pointer-events-none{pointer-events:none}.eloq\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.eloq\\:absolute{position:absolute}.eloq\\:relative{position:relative}.eloq\\:inset-0{inset:0}.eloq\\:inset-x-0{inset-inline:0}.eloq\\:top-0{top:0}.eloq\\:top-0\\.5{top:calc(var(--eloq-spacing) * .5)}.eloq\\:-right-\\[9px\\]{right:-9px}.eloq\\:right-0\\.5{right:calc(var(--eloq-spacing) * .5)}.eloq\\:right-2{right:calc(var(--eloq-spacing) * 2)}.eloq\\:right-16{right:calc(var(--eloq-spacing) * 16)}.eloq\\:bottom-0{bottom:0}.eloq\\:bottom-1{bottom:var(--eloq-spacing)}.eloq\\:bottom-2{bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:bottom-10{bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:left-0{left:0}.eloq\\:left-2{left:calc(var(--eloq-spacing) * 2)}.eloq\\:left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.eloq\\:z-10{z-index:10}.eloq\\:z-20{z-index:20}.eloq\\:z-30{z-index:30}.eloq\\:m-0{margin:0}.eloq\\:m-auto{margin:auto}.eloq\\:mx-1{margin-inline:var(--eloq-spacing)}.eloq\\:mx-auto{margin-inline:auto}.eloq\\:my-2{margin-block:calc(var(--eloq-spacing) * 2)}.eloq\\:my-4{margin-block:calc(var(--eloq-spacing) * 4)}.eloq\\:-mt-2{margin-top:calc(var(--eloq-spacing) * -2)}.eloq\\:-mt-6{margin-top:calc(var(--eloq-spacing) * -6)}.eloq\\:-mt-20{margin-top:calc(var(--eloq-spacing) * -20)}.eloq\\:mt-1{margin-top:var(--eloq-spacing)}.eloq\\:mt-2{margin-top:calc(var(--eloq-spacing) * 2)}.eloq\\:mt-10{margin-top:calc(var(--eloq-spacing) * 10)}.eloq\\:mr-1{margin-right:var(--eloq-spacing)}.eloq\\:mr-\\[2px\\]{margin-right:2px}.eloq\\:mb-1{margin-bottom:var(--eloq-spacing)}.eloq\\:mb-3{margin-bottom:calc(var(--eloq-spacing) * 3)}.eloq\\:mb-4{margin-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:mb-10{margin-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:ml-0{margin-left:0}.eloq\\:ml-1{margin-left:var(--eloq-spacing)}.eloq\\:ml-5{margin-left:calc(var(--eloq-spacing) * 5)}.eloq\\:box-content{box-sizing:content-box}.eloq\\:block{display:block}.eloq\\:flex{display:flex}.eloq\\:hidden{display:none}.eloq\\:inline-flex{display:inline-flex}.eloq\\:field-sizing-content{field-sizing:content}.eloq\\:aspect-square{aspect-ratio:1}.eloq\\:h-1{height:var(--eloq-spacing)}.eloq\\:h-2\\.5{height:calc(var(--eloq-spacing) * 2.5)}.eloq\\:h-3{height:calc(var(--eloq-spacing) * 3)}.eloq\\:h-4{height:calc(var(--eloq-spacing) * 4)}.eloq\\:h-5{height:calc(var(--eloq-spacing) * 5)}.eloq\\:h-6{height:calc(var(--eloq-spacing) * 6)}.eloq\\:h-8{height:calc(var(--eloq-spacing) * 8)}.eloq\\:h-10{height:calc(var(--eloq-spacing) * 10)}.eloq\\:h-12{height:calc(var(--eloq-spacing) * 12)}.eloq\\:h-14{height:calc(var(--eloq-spacing) * 14)}.eloq\\:h-16{height:calc(var(--eloq-spacing) * 16)}.eloq\\:h-\\[0\\.42em\\]{height:.42em}.eloq\\:h-\\[160px\\]{height:160px}.eloq\\:h-\\[220px\\]{height:220px}.eloq\\:h-\\[560px\\]{height:560px}.eloq\\:h-\\[600px\\]{height:600px}.eloq\\:h-full{height:100%}.eloq\\:max-h-\\[132px\\]{max-height:132px}.eloq\\:min-h-\\[48px\\]{min-height:48px}.eloq\\:min-h-\\[80px\\]{min-height:80px}.eloq\\:w-2\\.5{width:calc(var(--eloq-spacing) * 2.5)}.eloq\\:w-2\\/3{width:66.6667%}.eloq\\:w-3{width:calc(var(--eloq-spacing) * 3)}.eloq\\:w-4{width:calc(var(--eloq-spacing) * 4)}.eloq\\:w-5{width:calc(var(--eloq-spacing) * 5)}.eloq\\:w-6{width:calc(var(--eloq-spacing) * 6)}.eloq\\:w-8{width:calc(var(--eloq-spacing) * 8)}.eloq\\:w-10{width:calc(var(--eloq-spacing) * 10)}.eloq\\:w-12{width:calc(var(--eloq-spacing) * 12)}.eloq\\:w-14{width:calc(var(--eloq-spacing) * 14)}.eloq\\:w-16{width:calc(var(--eloq-spacing) * 16)}.eloq\\:w-24{width:calc(var(--eloq-spacing) * 24)}.eloq\\:w-32{width:calc(var(--eloq-spacing) * 32)}.eloq\\:w-48{width:calc(var(--eloq-spacing) * 48)}.eloq\\:w-\\[0\\.42em\\]{width:.42em}.eloq\\:w-\\[70\\%\\]{width:70%}.eloq\\:w-\\[320px\\]{width:320px}.eloq\\:w-\\[340px\\]{width:340px}.eloq\\:w-\\[348px\\]{width:348px}.eloq\\:w-\\[380px\\]{width:380px}.eloq\\:w-\\[420px\\]{width:420px}.eloq\\:w-full{width:100%}.eloq\\:max-w-\\[75\\%\\]{max-width:75%}.eloq\\:max-w-\\[88\\%\\]{max-width:88%}.eloq\\:max-w-full{max-width:100%}.eloq\\:max-w-xs{max-width:var(--eloq-container-xs)}.eloq\\:min-w-0{min-width:0}.eloq\\:min-w-min{min-width:min-content}.eloq\\:flex-1{flex:1}.eloq\\:flex-none{flex:none}.eloq\\:flex-shrink-0,.eloq\\:shrink-0{flex-shrink:0}.eloq\\:flex-grow{flex-grow:1}.eloq\\:origin-bottom-right{transform-origin:100% 100%}.eloq\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:translate-x-8{--tw-translate-x:calc(var(--eloq-spacing) * 8);translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:-scale-x-100{--tw-scale-x: -100% ;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:scale-\\[0\\.05\\]{scale:.05}.eloq\\:transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.eloq\\:animate-message-in{animation:var(--eloq-animate-message-in)}.eloq\\:animate-panel-in{animation:var(--eloq-animate-panel-in)}.eloq\\:animate-panel-out{animation:var(--eloq-animate-panel-out)}.eloq\\:animate-pulse{animation:var(--eloq-animate-pulse)}.eloq\\:animate-regenerating{animation:var(--eloq-animate-regenerating)}.eloq\\:animate-slide-up-in{animation:var(--eloq-animate-slide-up-in)}.eloq\\:animate-text-in{animation:var(--eloq-animate-text-in)}.eloq\\:animate-thinking-dot{animation:var(--eloq-animate-thinking-dot)}.eloq\\:animate-thinking-shimmer{animation:var(--eloq-animate-thinking-shimmer)}.eloq\\:cursor-default{cursor:default}.eloq\\:cursor-grab{cursor:grab}.eloq\\:cursor-pointer{cursor:pointer}.eloq\\:touch-none{touch-action:none}.eloq\\:resize-none{resize:none}.eloq\\:list-decimal{list-style-type:decimal}.eloq\\:list-disc{list-style-type:disc}.eloq\\:flex-col{flex-direction:column}.eloq\\:flex-row{flex-direction:row}.eloq\\:flex-wrap{flex-wrap:wrap}.eloq\\:items-center{align-items:center}.eloq\\:items-end{align-items:flex-end}.eloq\\:items-start{align-items:flex-start}.eloq\\:justify-between{justify-content:space-between}.eloq\\:justify-center{justify-content:center}.eloq\\:justify-end{justify-content:flex-end}.eloq\\:justify-start{justify-content:flex-start}.eloq\\:gap-1{gap:var(--eloq-spacing)}.eloq\\:gap-1\\.5{gap:calc(var(--eloq-spacing) * 1.5)}.eloq\\:gap-2{gap:calc(var(--eloq-spacing) * 2)}.eloq\\:gap-3{gap:calc(var(--eloq-spacing) * 3)}.eloq\\:gap-\\[0\\.25em\\]{gap:.25em}:where(.eloq\\:space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.eloq\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--eloq-spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--eloq-spacing) * var(--tw-space-x-reverse));margin-inline-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}.eloq\\:self-end{align-self:flex-end}.eloq\\:self-stretch{align-self:stretch}.eloq\\:overflow-hidden{overflow:hidden}.eloq\\:overflow-x-auto{overflow-x:auto}.eloq\\:rounded-2xl{border-radius:var(--eloq-radius-2xl)}.eloq\\:rounded-3xl{border-radius:var(--eloq-radius-3xl)}.eloq\\:rounded-\\[inherit\\]{border-radius:inherit}.eloq\\:rounded-full{border-radius:3.40282e38px}.eloq\\:rounded-lg{border-radius:var(--eloq-radius-lg)}.eloq\\:rounded-md{border-radius:var(--eloq-radius-md)}.eloq\\:rounded-none{border-radius:0}.eloq\\:rounded-xl{border-radius:var(--eloq-radius-xl)}.eloq\\:rounded-t-2xl{border-top-left-radius:var(--eloq-radius-2xl);border-top-right-radius:var(--eloq-radius-2xl)}.eloq\\:border{border-style:var(--tw-border-style);border-width:1px}.eloq\\:border-0{border-style:var(--tw-border-style);border-width:0}.eloq\\:border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.eloq\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.eloq\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.eloq\\:border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.eloq\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.eloq\\:border-amber-400{border-color:var(--eloq-color-amber-400)}.eloq\\:border-blue-500{border-color:var(--eloq-color-blue-500)}.eloq\\:border-border{border-color:hsl(var(--border))}.eloq\\:border-green-500{border-color:var(--eloq-color-green-500)}.eloq\\:border-input{border-color:hsl(var(--input))}.eloq\\:border-red-500{border-color:var(--eloq-color-red-500)}.eloq\\:border-t-transparent{border-top-color:#0000}.eloq\\:border-l-transparent{border-left-color:#0000}.eloq\\:bg-\\[\\#0a0a0a\\]{background-color:#0a0a0a}.eloq\\:bg-\\[\\#000\\]{background-color:#000}.eloq\\:bg-\\[\\#fff\\]{background-color:#fff}.eloq\\:bg-amber-50{background-color:var(--eloq-color-amber-50)}.eloq\\:bg-background{background-color:hsl(var(--background))}.eloq\\:bg-black\\/20{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/20{background-color:color-mix(in oklab,var(--eloq-color-black) 20%,transparent)}}.eloq\\:bg-black\\/60{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/60{background-color:color-mix(in oklab,var(--eloq-color-black) 60%,transparent)}}.eloq\\:bg-blue-50{background-color:var(--eloq-color-blue-50)}.eloq\\:bg-border{background-color:hsl(var(--border))}.eloq\\:bg-card{background-color:hsl(var(--card))}.eloq\\:bg-cream{background-color:hsl(var(--cream))}.eloq\\:bg-gray-400{background-color:var(--eloq-color-gray-400)}.eloq\\:bg-green-50{background-color:var(--eloq-color-green-50)}.eloq\\:bg-muted{background-color:hsl(var(--muted))}.eloq\\:bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.eloq\\:bg-primary{background-color:hsl(var(--primary))}.eloq\\:bg-red-50{background-color:var(--eloq-color-red-50)}.eloq\\:bg-white,.eloq\\:bg-white\\/20{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-white\\/20{background-color:color-mix(in oklab,var(--eloq-color-white) 20%,transparent)}}.eloq\\:fill-none{fill:none}.eloq\\:fill-yellow-400{fill:var(--eloq-color-yellow-400)}.eloq\\:object-contain{object-fit:contain}.eloq\\:object-cover{object-fit:cover}.eloq\\:p-0{padding:0}.eloq\\:p-0\\.5{padding:calc(var(--eloq-spacing) * .5)}.eloq\\:p-1{padding:var(--eloq-spacing)}.eloq\\:p-1\\.5{padding:calc(var(--eloq-spacing) * 1.5)}.eloq\\:p-2{padding:calc(var(--eloq-spacing) * 2)}.eloq\\:p-3{padding:calc(var(--eloq-spacing) * 3)}.eloq\\:p-4{padding:calc(var(--eloq-spacing) * 4)}.eloq\\:p-6{padding:calc(var(--eloq-spacing) * 6)}.eloq\\:p-\\[1px\\]{padding:1px}.eloq\\:px-0{padding-inline:0}.eloq\\:px-2{padding-inline:calc(var(--eloq-spacing) * 2)}.eloq\\:px-3{padding-inline:calc(var(--eloq-spacing) * 3)}.eloq\\:px-4{padding-inline:calc(var(--eloq-spacing) * 4)}.eloq\\:px-5{padding-inline:calc(var(--eloq-spacing) * 5)}.eloq\\:px-\\[12px\\]{padding-inline:12px}.eloq\\:px-\\[16px\\]{padding-inline:16px}.eloq\\:py-1{padding-block:var(--eloq-spacing)}.eloq\\:py-1\\.5{padding-block:calc(var(--eloq-spacing) * 1.5)}.eloq\\:py-2{padding-block:calc(var(--eloq-spacing) * 2)}.eloq\\:py-3{padding-block:calc(var(--eloq-spacing) * 3)}.eloq\\:py-3\\.5{padding-block:calc(var(--eloq-spacing) * 3.5)}.eloq\\:py-\\[8px\\]{padding-block:8px}.eloq\\:py-\\[12px\\]{padding-block:12px}.eloq\\:pt-0{padding-top:0}.eloq\\:pt-2{padding-top:calc(var(--eloq-spacing) * 2)}.eloq\\:pt-4{padding-top:calc(var(--eloq-spacing) * 4)}.eloq\\:pt-5{padding-top:calc(var(--eloq-spacing) * 5)}.eloq\\:pt-6{padding-top:calc(var(--eloq-spacing) * 6)}.eloq\\:pt-10{padding-top:calc(var(--eloq-spacing) * 10)}.eloq\\:pt-24{padding-top:calc(var(--eloq-spacing) * 24)}.eloq\\:pr-2{padding-right:calc(var(--eloq-spacing) * 2)}.eloq\\:pr-4{padding-right:calc(var(--eloq-spacing) * 4)}.eloq\\:pr-12{padding-right:calc(var(--eloq-spacing) * 12)}.eloq\\:pb-2{padding-bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:pb-4{padding-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:pb-10{padding-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:pb-14{padding-bottom:calc(var(--eloq-spacing) * 14)}.eloq\\:pl-3{padding-left:calc(var(--eloq-spacing) * 3)}.eloq\\:pl-4{padding-left:calc(var(--eloq-spacing) * 4)}.eloq\\:pl-11{padding-left:calc(var(--eloq-spacing) * 11)}.eloq\\:text-center{text-align:center}.eloq\\:text-left{text-align:left}.eloq\\:text-2xl{font-size:var(--eloq-text-2xl);line-height:var(--tw-leading,var(--eloq-text-2xl--line-height))}.eloq\\:text-base{font-size:var(--eloq-text-base);line-height:var(--tw-leading,var(--eloq-text-base--line-height))}.eloq\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}.eloq\\:text-xs{font-size:var(--eloq-text-xs);line-height:var(--tw-leading,var(--eloq-text-xs--line-height))}.eloq\\:text-\\[10px\\]{font-size:10px}.eloq\\:leading-5{--tw-leading:calc(var(--eloq-spacing) * 5);line-height:calc(var(--eloq-spacing) * 5)}.eloq\\:leading-none{--tw-leading:1;line-height:1}.eloq\\:leading-relaxed{--tw-leading:var(--eloq-leading-relaxed);line-height:var(--eloq-leading-relaxed)}.eloq\\:font-medium{--tw-font-weight:var(--eloq-font-weight-medium);font-weight:var(--eloq-font-weight-medium)}.eloq\\:font-semibold{--tw-font-weight:var(--eloq-font-weight-semibold);font-weight:var(--eloq-font-weight-semibold)}.eloq\\:tracking-tight{--tw-tracking:var(--eloq-tracking-tight);letter-spacing:var(--eloq-tracking-tight)}.eloq\\:whitespace-nowrap{white-space:nowrap}.eloq\\:text-\\[\\#000\\]{color:#000}.eloq\\:text-\\[\\#fff\\]{color:#fff}.eloq\\:text-amber-500{color:var(--eloq-color-amber-500)}.eloq\\:text-amber-800{color:var(--eloq-color-amber-800)}.eloq\\:text-blue-500{color:var(--eloq-color-blue-500)}.eloq\\:text-blue-800{color:var(--eloq-color-blue-800)}.eloq\\:text-card-foreground{color:hsl(var(--card-foreground))}.eloq\\:text-destructive{color:hsl(var(--destructive))}.eloq\\:text-foreground{color:hsl(var(--foreground))}.eloq\\:text-gray-300{color:var(--eloq-color-gray-300)}.eloq\\:text-gray-400{color:var(--eloq-color-gray-400)}.eloq\\:text-gray-500{color:var(--eloq-color-gray-500)}.eloq\\:text-green-500{color:var(--eloq-color-green-500)}.eloq\\:text-green-800{color:var(--eloq-color-green-800)}.eloq\\:text-muted{color:hsl(var(--muted))}.eloq\\:text-muted-foreground{color:hsl(var(--muted-foreground))}.eloq\\:text-primary{color:hsl(var(--primary))}.eloq\\:text-primary-foreground{color:hsl(var(--primary-foreground))}.eloq\\:text-red-500{color:var(--eloq-color-red-500)}.eloq\\:text-red-800{color:var(--eloq-color-red-800)}.eloq\\:text-white{color:var(--eloq-color-white)}.eloq\\:text-yellow-400{color:var(--eloq-color-yellow-400)}.eloq\\:italic{font-style:italic}.eloq\\:underline{text-decoration-line:underline}.eloq\\:opacity-0{opacity:0}.eloq\\:opacity-50{opacity:.5}.eloq\\:opacity-70{opacity:.7}.eloq\\:opacity-75{opacity:.75}.eloq\\:opacity-100{opacity:1}.eloq\\:shadow-\\[0_-8px_24px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow:0 -8px 24px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_0_4px_0_rgba\\(0\\,0\\,0\\,0\\.20\\)\\]{--tw-shadow:0 0 4px 0 var(--tw-shadow-color,#0003);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_3px_4px_-2px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0 3px 4px -2px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.eloq\\:outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:outline-offset-2{outline-offset:2px}.eloq\\:outline-transparent{outline-color:#0000}.eloq\\:drop-shadow-lg{--tw-drop-shadow-size:drop-shadow(0 4px 4px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-lg));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,)}.eloq\\:transition-\\[outline-color\\]{transition-property:outline-color;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.eloq\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.eloq\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.eloq\\:duration-500{--tw-duration:.5s;transition-duration:.5s}.eloq\\:ease-out{--tw-ease:var(--eloq-ease-out);transition-timing-function:var(--eloq-ease-out)}.eloq\\:select-none{-webkit-user-select:none;user-select:none}.eloq\\:placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.eloq\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.eloq\\:hover\\:bg-black\\/5:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 5%,transparent)}}.eloq\\:hover\\:bg-black\\/80:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/80:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 80%,transparent)}}.eloq\\:hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.eloq\\:hover\\:text-foreground:hover{color:hsl(var(--foreground))}.eloq\\:hover\\:text-gray-600:hover{color:var(--eloq-color-gray-600)}.eloq\\:hover\\:text-primary:hover{color:hsl(var(--primary))}.eloq\\:hover\\:opacity-80:hover{opacity:.8}.eloq\\:hover\\:opacity-90:hover{opacity:.9}.eloq\\:hover\\:opacity-100:hover{opacity:1}.eloq\\:hover\\:drop-shadow-xl:hover{--tw-drop-shadow-size:drop-shadow(0 9px 7px var(--tw-drop-shadow-color,#0000001a));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-xl));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,)}}.eloq\\:focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-muted:focus-visible{--tw-ring-color:hsl(var(--muted))}.eloq\\:focus-visible\\:ring-primary:focus-visible{--tw-ring-color:hsl(var(--primary))}.eloq\\:focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.eloq\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.eloq\\:active\\:cursor-grabbing:active{cursor:grabbing}.eloq\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.eloq\\:disabled\\:opacity-50:disabled{opacity:.5}@media(prefers-reduced-motion:reduce){.eloq\\:motion-reduce\\:animate-none{animation:none}.eloq\\:motion-reduce\\:opacity-70{opacity:.7}}@media(min-width:40rem){.eloq\\:sm\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}@media(min-width:48rem){.eloq\\:md\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}.eloq\\:dark\\:border:is(.dark *){border-style:var(--tw-border-style);border-width:1px}.eloq\\:dark\\:border-b:is(.dark *){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.eloq\\:dark\\:border-border:is(.dark *){border-color:hsl(var(--border))}.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:var(--eloq-color-amber-400)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-amber-400) 10%,transparent)}}.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:var(--eloq-color-blue-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-blue-500) 10%,transparent)}}.eloq\\:dark\\:bg-card:is(.dark *){background-color:hsl(var(--card))}.eloq\\:dark\\:bg-gray-200:is(.dark *){background-color:var(--eloq-color-gray-200)}.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:var(--eloq-color-green-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-green-500) 10%,transparent)}}.eloq\\:dark\\:bg-muted:is(.dark *){background-color:hsl(var(--muted))}.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:var(--eloq-color-red-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-red-500) 10%,transparent)}}.eloq\\:dark\\:text-amber-200:is(.dark *){color:var(--eloq-color-amber-200)}.eloq\\:dark\\:text-amber-400:is(.dark *){color:var(--eloq-color-amber-400)}.eloq\\:dark\\:text-blue-200:is(.dark *){color:var(--eloq-color-blue-200)}.eloq\\:dark\\:text-blue-400:is(.dark *){color:var(--eloq-color-blue-400)}.eloq\\:dark\\:text-gray-500:is(.dark *){color:var(--eloq-color-gray-500)}.eloq\\:dark\\:text-green-200:is(.dark *){color:var(--eloq-color-green-200)}.eloq\\:dark\\:text-green-400:is(.dark *){color:var(--eloq-color-green-400)}.eloq\\:dark\\:text-muted-foreground:is(.dark *),.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:color-mix(in oklab,hsl(var(--muted-foreground)) 50%,transparent)}}.eloq\\:dark\\:text-red-200:is(.dark *){color:var(--eloq-color-red-200)}.eloq\\:dark\\:text-red-400:is(.dark *){color:var(--eloq-color-red-400)}.eloq\\:dark\\:shadow-none:is(.dark *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:color-mix(in oklab,var(--eloq-color-white) 10%,transparent)}}.eloq\\:dark\\:hover\\:text-gray-300:is(.dark *):hover{color:var(--eloq-color-gray-300)}.eloq\\:dark\\:hover\\:text-primary:is(.dark *):hover{color:hsl(var(--primary))}}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}}body{background-color:#0000}.eloquent-chat{font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.collapse{visibility:unset!important}.eloq-wrap-anywhere{overflow-wrap:anywhere}.eloq-thin-scrollbar{scrollbar-width:thin;scrollbar-color:hsl(var(--border)) transparent}.eloq-thin-scrollbar::-webkit-scrollbar{width:8px;height:8px}.eloq-thin-scrollbar::-webkit-scrollbar-thumb{background-color:hsl(var(--border));border-radius:9999px}.eloq-thin-scrollbar::-webkit-scrollbar-track{background-color:#0000}.eloq-test-mode-stripe{background:repeating-linear-gradient(-45deg,#f6e05e,#f6e05e 10px,#000 10px 20px)}.eloq-thinking-shimmer{--eloq-thinking-base:#9ca3af;--eloq-thinking-highlight:#4b5563;background:linear-gradient(90deg,var(--eloq-thinking-base) 0%,var(--eloq-thinking-base) 35%,var(--eloq-thinking-highlight) 50%,var(--eloq-thinking-base) 65%,var(--eloq-thinking-base) 100%);color:#0000;background-size:200% 100%;-webkit-background-clip:text;background-clip:text}.dark .eloq-thinking-shimmer{--eloq-thinking-base:#6b7280;--eloq-thinking-highlight:#e5e7eb}@media(prefers-reduced-motion:reduce){.eloq-thinking-shimmer{color:var(--eloq-thinking-base);background:0 0}}.eloq-regenerating-text{opacity:.4;transition:opacity .25s ease-out}.eloq-regenerating-sweep{border-radius:inherit;pointer-events:none;background:linear-gradient(100deg,#0000 30%,#ffffff8c,#0000 70%) 0 0/200% 100%;position:absolute;inset:0}.dark .eloq-regenerating-sweep{background-image:linear-gradient(100deg,#0000 30%,#ffffff1f,#0000 70%)}@media(prefers-reduced-motion:reduce){.eloq-regenerating-sweep{display:none}}@property --eloq-aura-angle{syntax:"<angle>";inherits:false;initial-value:0deg}.eloq-aura{--eloq-aura-strong:#9e9e9e;--eloq-aura-soft:#d1d1d1;background:conic-gradient(from var(--eloq-aura-angle),var(--eloq-aura-strong),var(--eloq-aura-soft),var(--eloq-aura-strong));border-radius:9999px;padding:2px;animation:2.6s linear infinite eloq-aura-spin;position:relative}@keyframes eloq-aura-spin{to{--eloq-aura-angle:360deg}}.eloq-aura-shine{border-radius:inherit;pointer-events:none;position:absolute;inset:0;overflow:hidden}.eloq-aura-shine:after{content:"";background:linear-gradient(90deg,#0000,#fffc,#0000);width:18%;position:absolute;top:-20%;bottom:-20%;left:0;transform:translate(-200%)skew(-20deg)}.eloq-aura-shine--active:after{animation:1.1s ease-in-out both eloq-aura-shine-sweep}@keyframes eloq-aura-shine-sweep{0%{transform:translate(-200%)skew(-20deg)}to{transform:translate(700%)skew(-20deg)}}@media(prefers-reduced-motion:reduce){.eloq-aura{animation:none}.eloq-aura-shine:after,.eloq-aura-shine--active:after{opacity:0;animation:none}}@keyframes panel-in{0%{opacity:0;transform:scale(.05)}to{opacity:1;transform:scale(1)}}@keyframes thinking-dot{0%,60%,to{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@keyframes regenerating-sweep{0%{background-position:150% 0}to{background-position:-50% 0}}@keyframes text-in{0%{opacity:0}to{opacity:1}}@keyframes thinking-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes panel-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.05)}}@keyframes message-in{0%{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:translateY(0)}}@keyframes slide-up-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}', to = ".eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}";
|
|
36
|
+
const Fe = '/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--eloq-aura-angle:0deg}}}@layer theme{:root,:host{--eloq-font-sans:system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--eloq-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--eloq-color-red-50:oklch(97.1% .013 17.38);--eloq-color-red-200:oklch(88.5% .062 18.334);--eloq-color-red-400:oklch(70.4% .191 22.216);--eloq-color-red-500:oklch(63.7% .237 25.331);--eloq-color-red-800:oklch(44.4% .177 26.899);--eloq-color-amber-50:oklch(98.7% .022 95.277);--eloq-color-amber-200:oklch(92.4% .12 95.746);--eloq-color-amber-400:oklch(82.8% .189 84.429);--eloq-color-amber-500:oklch(76.9% .188 70.08);--eloq-color-amber-800:oklch(47.3% .137 46.201);--eloq-color-yellow-400:oklch(85.2% .199 91.936);--eloq-color-green-50:oklch(98.2% .018 155.826);--eloq-color-green-200:oklch(92.5% .084 155.995);--eloq-color-green-400:oklch(79.2% .209 151.711);--eloq-color-green-500:oklch(72.3% .219 149.579);--eloq-color-green-800:oklch(44.8% .119 151.328);--eloq-color-blue-50:oklch(97% .014 254.604);--eloq-color-blue-200:oklch(88.2% .059 254.128);--eloq-color-blue-400:oklch(70.7% .165 254.624);--eloq-color-blue-500:oklch(62.3% .214 259.815);--eloq-color-blue-800:oklch(42.4% .199 265.638);--eloq-color-gray-200:oklch(92.8% .006 264.531);--eloq-color-gray-300:oklch(87.2% .01 258.338);--eloq-color-gray-400:oklch(70.7% .022 261.325);--eloq-color-gray-500:oklch(55.1% .027 264.364);--eloq-color-gray-600:oklch(44.6% .03 256.802);--eloq-color-black:#000;--eloq-color-white:#fff;--eloq-spacing:.25rem;--eloq-container-xs:20rem;--eloq-text-xs:.75rem;--eloq-text-xs--line-height:calc(1 / .75);--eloq-text-sm:.875rem;--eloq-text-sm--line-height:calc(1.25 / .875);--eloq-text-base:1rem;--eloq-text-base--line-height: 1.5 ;--eloq-text-2xl:1.5rem;--eloq-text-2xl--line-height:calc(2 / 1.5);--eloq-font-weight-medium:500;--eloq-font-weight-semibold:600;--eloq-tracking-tight:-.025em;--eloq-leading-relaxed:1.625;--eloq-radius-sm:calc(var(--radius) - 4px);--eloq-radius-md:calc(var(--radius) - 2px);--eloq-radius-lg:var(--radius);--eloq-radius-xl:.75rem;--eloq-radius-2xl:1rem;--eloq-radius-3xl:1.5rem;--eloq-drop-shadow-lg:0 4px 4px #00000026;--eloq-drop-shadow-xl:0 9px 7px #0000001a;--eloq-ease-out:cubic-bezier(0, 0, .2, 1);--eloq-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--eloq-default-transition-duration:.15s;--eloq-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--eloq-default-font-family:var(--eloq-font-sans);--eloq-default-mono-font-family:var(--eloq-font-mono);--eloq-animate-panel-in:panel-in .35s cubic-bezier(.16, 1, .3, 1) both;--eloq-animate-panel-out:panel-out .25s cubic-bezier(.4, 0, 1, 1) both;--eloq-animate-thinking-dot:thinking-dot 1.2s ease-in-out infinite;--eloq-animate-thinking-shimmer:thinking-shimmer 1.8s linear infinite;--eloq-animate-regenerating:regenerating-sweep 1.2s linear infinite;--eloq-animate-text-in:text-in .35s ease-out both;--eloq-animate-message-in:message-in .3s ease-out both;--eloq-animate-slide-up-in:slide-up-in .3s ease-out both}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--eloq-default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--eloq-default-font-feature-settings,normal);font-variation-settings:var(--eloq-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--eloq-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--eloq-default-mono-font-feature-settings,normal);font-variation-settings:var(--eloq-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--background:0 0% 100%;--foreground:0 0% 3.9%;--card:0 0% 100%;--card-foreground:0 0% 3.9%;--popover:0 0% 100%;--popover-foreground:0 0% 3.9%;--primary:267 56% 46%;--primary-foreground:0 0% 98%;--secondary:0 0% 96.1%;--secondary-foreground:0 0% 9%;--muted:0 0% 96.1%;--muted-foreground:0 0% 45.1%;--accent:0 0% 96.1%;--accent-foreground:0 0% 9%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--cream:37.5 44% 96.5%;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%;--radius:.5rem}.dark{--background:262 50% 10%;--foreground:262 5% 90%;--card:262 50% 10%;--card-foreground:262 5% 90%;--popover:262 50% 5%;--popover-foreground:262 5% 90%;--primary:262 62% 70%;--primary-foreground:0 0% 100%;--primary-dark:262 62% 60%;--secondary:262 30% 30%;--secondary-foreground:0 0% 100%;--secondary-dark:262 30% 20%;--secondary-light:262 30% 40%;--tertiary:267 56% 46%;--tertiary-foreground:0 0% 100%;--tertiary-dark:267 38% 25%;--tertiary-light:263 100% 85%;--muted:224 30% 25%;--muted-foreground:262 5% 90%;--accent:224 30% 25%;--accent-foreground:262 5% 100%;--accent-dark:224 30% 15%;--destructive:0 100% 30%;--destructive-foreground:262 5% 90%;--border:0 0% 30%;--input:262 30% 25%;--ring:262 62% 71%;--cream:257 28% 20%;--radius:.5rem;--sidebar-background:var(--background);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--border);--sidebar-ring:var(--ring)}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}}@layer components;@layer utilities{.eloq\\:pointer-events-none{pointer-events:none}.eloq\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.eloq\\:absolute{position:absolute}.eloq\\:relative{position:relative}.eloq\\:inset-0{inset:0}.eloq\\:inset-x-0{inset-inline:0}.eloq\\:top-0{top:0}.eloq\\:top-0\\.5{top:calc(var(--eloq-spacing) * .5)}.eloq\\:-right-\\[9px\\]{right:-9px}.eloq\\:right-0\\.5{right:calc(var(--eloq-spacing) * .5)}.eloq\\:right-2{right:calc(var(--eloq-spacing) * 2)}.eloq\\:right-16{right:calc(var(--eloq-spacing) * 16)}.eloq\\:bottom-0{bottom:0}.eloq\\:bottom-1{bottom:var(--eloq-spacing)}.eloq\\:bottom-2{bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:bottom-10{bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:left-0{left:0}.eloq\\:left-2{left:calc(var(--eloq-spacing) * 2)}.eloq\\:left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.eloq\\:z-10{z-index:10}.eloq\\:z-20{z-index:20}.eloq\\:z-30{z-index:30}.eloq\\:m-0{margin:0}.eloq\\:m-auto{margin:auto}.eloq\\:mx-1{margin-inline:var(--eloq-spacing)}.eloq\\:mx-auto{margin-inline:auto}.eloq\\:my-2{margin-block:calc(var(--eloq-spacing) * 2)}.eloq\\:my-4{margin-block:calc(var(--eloq-spacing) * 4)}.eloq\\:-mt-2{margin-top:calc(var(--eloq-spacing) * -2)}.eloq\\:-mt-6{margin-top:calc(var(--eloq-spacing) * -6)}.eloq\\:-mt-20{margin-top:calc(var(--eloq-spacing) * -20)}.eloq\\:mt-1{margin-top:var(--eloq-spacing)}.eloq\\:mt-2{margin-top:calc(var(--eloq-spacing) * 2)}.eloq\\:mt-10{margin-top:calc(var(--eloq-spacing) * 10)}.eloq\\:mr-1{margin-right:var(--eloq-spacing)}.eloq\\:mr-\\[2px\\]{margin-right:2px}.eloq\\:mb-1{margin-bottom:var(--eloq-spacing)}.eloq\\:mb-3{margin-bottom:calc(var(--eloq-spacing) * 3)}.eloq\\:mb-4{margin-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:mb-10{margin-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:ml-0{margin-left:0}.eloq\\:ml-1{margin-left:var(--eloq-spacing)}.eloq\\:ml-5{margin-left:calc(var(--eloq-spacing) * 5)}.eloq\\:box-content{box-sizing:content-box}.eloq\\:block{display:block}.eloq\\:flex{display:flex}.eloq\\:hidden{display:none}.eloq\\:inline-flex{display:inline-flex}.eloq\\:field-sizing-content{field-sizing:content}.eloq\\:aspect-square{aspect-ratio:1}.eloq\\:h-1{height:var(--eloq-spacing)}.eloq\\:h-2\\.5{height:calc(var(--eloq-spacing) * 2.5)}.eloq\\:h-3{height:calc(var(--eloq-spacing) * 3)}.eloq\\:h-4{height:calc(var(--eloq-spacing) * 4)}.eloq\\:h-5{height:calc(var(--eloq-spacing) * 5)}.eloq\\:h-6{height:calc(var(--eloq-spacing) * 6)}.eloq\\:h-8{height:calc(var(--eloq-spacing) * 8)}.eloq\\:h-10{height:calc(var(--eloq-spacing) * 10)}.eloq\\:h-12{height:calc(var(--eloq-spacing) * 12)}.eloq\\:h-14{height:calc(var(--eloq-spacing) * 14)}.eloq\\:h-16{height:calc(var(--eloq-spacing) * 16)}.eloq\\:h-\\[0\\.42em\\]{height:.42em}.eloq\\:h-\\[160px\\]{height:160px}.eloq\\:h-\\[220px\\]{height:220px}.eloq\\:h-\\[560px\\]{height:560px}.eloq\\:h-\\[600px\\]{height:600px}.eloq\\:h-full{height:100%}.eloq\\:max-h-\\[132px\\]{max-height:132px}.eloq\\:min-h-\\[48px\\]{min-height:48px}.eloq\\:min-h-\\[80px\\]{min-height:80px}.eloq\\:w-2\\.5{width:calc(var(--eloq-spacing) * 2.5)}.eloq\\:w-2\\/3{width:66.6667%}.eloq\\:w-3{width:calc(var(--eloq-spacing) * 3)}.eloq\\:w-4{width:calc(var(--eloq-spacing) * 4)}.eloq\\:w-5{width:calc(var(--eloq-spacing) * 5)}.eloq\\:w-6{width:calc(var(--eloq-spacing) * 6)}.eloq\\:w-8{width:calc(var(--eloq-spacing) * 8)}.eloq\\:w-10{width:calc(var(--eloq-spacing) * 10)}.eloq\\:w-12{width:calc(var(--eloq-spacing) * 12)}.eloq\\:w-14{width:calc(var(--eloq-spacing) * 14)}.eloq\\:w-16{width:calc(var(--eloq-spacing) * 16)}.eloq\\:w-24{width:calc(var(--eloq-spacing) * 24)}.eloq\\:w-32{width:calc(var(--eloq-spacing) * 32)}.eloq\\:w-48{width:calc(var(--eloq-spacing) * 48)}.eloq\\:w-\\[0\\.42em\\]{width:.42em}.eloq\\:w-\\[70\\%\\]{width:70%}.eloq\\:w-\\[320px\\]{width:320px}.eloq\\:w-\\[340px\\]{width:340px}.eloq\\:w-\\[348px\\]{width:348px}.eloq\\:w-\\[380px\\]{width:380px}.eloq\\:w-\\[420px\\]{width:420px}.eloq\\:w-full{width:100%}.eloq\\:max-w-\\[75\\%\\]{max-width:75%}.eloq\\:max-w-\\[88\\%\\]{max-width:88%}.eloq\\:max-w-full{max-width:100%}.eloq\\:max-w-xs{max-width:var(--eloq-container-xs)}.eloq\\:min-w-0{min-width:0}.eloq\\:min-w-min{min-width:min-content}.eloq\\:flex-1{flex:1}.eloq\\:flex-none{flex:none}.eloq\\:flex-shrink-0,.eloq\\:shrink-0{flex-shrink:0}.eloq\\:flex-grow{flex-grow:1}.eloq\\:origin-bottom-right{transform-origin:100% 100%}.eloq\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:translate-x-8{--tw-translate-x:calc(var(--eloq-spacing) * 8);translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:-scale-x-100{--tw-scale-x: -100% ;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:scale-\\[0\\.05\\]{scale:.05}.eloq\\:transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.eloq\\:animate-message-in{animation:var(--eloq-animate-message-in)}.eloq\\:animate-panel-in{animation:var(--eloq-animate-panel-in)}.eloq\\:animate-panel-out{animation:var(--eloq-animate-panel-out)}.eloq\\:animate-pulse{animation:var(--eloq-animate-pulse)}.eloq\\:animate-regenerating{animation:var(--eloq-animate-regenerating)}.eloq\\:animate-slide-up-in{animation:var(--eloq-animate-slide-up-in)}.eloq\\:animate-text-in{animation:var(--eloq-animate-text-in)}.eloq\\:animate-thinking-dot{animation:var(--eloq-animate-thinking-dot)}.eloq\\:animate-thinking-shimmer{animation:var(--eloq-animate-thinking-shimmer)}.eloq\\:cursor-default{cursor:default}.eloq\\:cursor-grab{cursor:grab}.eloq\\:cursor-pointer{cursor:pointer}.eloq\\:touch-none{touch-action:none}.eloq\\:resize-none{resize:none}.eloq\\:list-decimal{list-style-type:decimal}.eloq\\:list-disc{list-style-type:disc}.eloq\\:flex-col{flex-direction:column}.eloq\\:flex-row{flex-direction:row}.eloq\\:flex-wrap{flex-wrap:wrap}.eloq\\:items-center{align-items:center}.eloq\\:items-end{align-items:flex-end}.eloq\\:items-start{align-items:flex-start}.eloq\\:justify-between{justify-content:space-between}.eloq\\:justify-center{justify-content:center}.eloq\\:justify-end{justify-content:flex-end}.eloq\\:justify-start{justify-content:flex-start}.eloq\\:gap-1{gap:var(--eloq-spacing)}.eloq\\:gap-1\\.5{gap:calc(var(--eloq-spacing) * 1.5)}.eloq\\:gap-2{gap:calc(var(--eloq-spacing) * 2)}.eloq\\:gap-3{gap:calc(var(--eloq-spacing) * 3)}.eloq\\:gap-\\[0\\.25em\\]{gap:.25em}:where(.eloq\\:space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.eloq\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--eloq-spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--eloq-spacing) * var(--tw-space-x-reverse));margin-inline-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}.eloq\\:self-end{align-self:flex-end}.eloq\\:self-stretch{align-self:stretch}.eloq\\:overflow-hidden{overflow:hidden}.eloq\\:overflow-x-auto{overflow-x:auto}.eloq\\:rounded-2xl{border-radius:var(--eloq-radius-2xl)}.eloq\\:rounded-3xl{border-radius:var(--eloq-radius-3xl)}.eloq\\:rounded-\\[inherit\\]{border-radius:inherit}.eloq\\:rounded-full{border-radius:3.40282e38px}.eloq\\:rounded-lg{border-radius:var(--eloq-radius-lg)}.eloq\\:rounded-md{border-radius:var(--eloq-radius-md)}.eloq\\:rounded-none{border-radius:0}.eloq\\:rounded-sm{border-radius:var(--eloq-radius-sm)}.eloq\\:rounded-xl{border-radius:var(--eloq-radius-xl)}.eloq\\:rounded-t-2xl{border-top-left-radius:var(--eloq-radius-2xl);border-top-right-radius:var(--eloq-radius-2xl)}.eloq\\:border{border-style:var(--tw-border-style);border-width:1px}.eloq\\:border-0{border-style:var(--tw-border-style);border-width:0}.eloq\\:border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.eloq\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.eloq\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.eloq\\:border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.eloq\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.eloq\\:border-amber-400{border-color:var(--eloq-color-amber-400)}.eloq\\:border-blue-500{border-color:var(--eloq-color-blue-500)}.eloq\\:border-border{border-color:hsl(var(--border))}.eloq\\:border-green-500{border-color:var(--eloq-color-green-500)}.eloq\\:border-input{border-color:hsl(var(--input))}.eloq\\:border-red-500{border-color:var(--eloq-color-red-500)}.eloq\\:border-t-transparent{border-top-color:#0000}.eloq\\:border-l-transparent{border-left-color:#0000}.eloq\\:bg-\\[\\#0a0a0a\\]{background-color:#0a0a0a}.eloq\\:bg-\\[\\#000\\]{background-color:#000}.eloq\\:bg-\\[\\#fff\\]{background-color:#fff}.eloq\\:bg-amber-50{background-color:var(--eloq-color-amber-50)}.eloq\\:bg-background{background-color:hsl(var(--background))}.eloq\\:bg-black\\/20{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/20{background-color:color-mix(in oklab,var(--eloq-color-black) 20%,transparent)}}.eloq\\:bg-black\\/60{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/60{background-color:color-mix(in oklab,var(--eloq-color-black) 60%,transparent)}}.eloq\\:bg-blue-50{background-color:var(--eloq-color-blue-50)}.eloq\\:bg-border{background-color:hsl(var(--border))}.eloq\\:bg-card{background-color:hsl(var(--card))}.eloq\\:bg-cream{background-color:hsl(var(--cream))}.eloq\\:bg-gray-400{background-color:var(--eloq-color-gray-400)}.eloq\\:bg-green-50{background-color:var(--eloq-color-green-50)}.eloq\\:bg-muted{background-color:hsl(var(--muted))}.eloq\\:bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.eloq\\:bg-primary{background-color:hsl(var(--primary))}.eloq\\:bg-red-50{background-color:var(--eloq-color-red-50)}.eloq\\:bg-white,.eloq\\:bg-white\\/20{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-white\\/20{background-color:color-mix(in oklab,var(--eloq-color-white) 20%,transparent)}}.eloq\\:fill-none{fill:none}.eloq\\:fill-yellow-400{fill:var(--eloq-color-yellow-400)}.eloq\\:object-contain{object-fit:contain}.eloq\\:object-cover{object-fit:cover}.eloq\\:p-0{padding:0}.eloq\\:p-0\\.5{padding:calc(var(--eloq-spacing) * .5)}.eloq\\:p-1{padding:var(--eloq-spacing)}.eloq\\:p-1\\.5{padding:calc(var(--eloq-spacing) * 1.5)}.eloq\\:p-2{padding:calc(var(--eloq-spacing) * 2)}.eloq\\:p-3{padding:calc(var(--eloq-spacing) * 3)}.eloq\\:p-4{padding:calc(var(--eloq-spacing) * 4)}.eloq\\:p-6{padding:calc(var(--eloq-spacing) * 6)}.eloq\\:p-\\[1px\\]{padding:1px}.eloq\\:px-0{padding-inline:0}.eloq\\:px-2{padding-inline:calc(var(--eloq-spacing) * 2)}.eloq\\:px-3{padding-inline:calc(var(--eloq-spacing) * 3)}.eloq\\:px-4{padding-inline:calc(var(--eloq-spacing) * 4)}.eloq\\:px-5{padding-inline:calc(var(--eloq-spacing) * 5)}.eloq\\:px-\\[12px\\]{padding-inline:12px}.eloq\\:px-\\[16px\\]{padding-inline:16px}.eloq\\:py-1{padding-block:var(--eloq-spacing)}.eloq\\:py-1\\.5{padding-block:calc(var(--eloq-spacing) * 1.5)}.eloq\\:py-2{padding-block:calc(var(--eloq-spacing) * 2)}.eloq\\:py-3{padding-block:calc(var(--eloq-spacing) * 3)}.eloq\\:py-3\\.5{padding-block:calc(var(--eloq-spacing) * 3.5)}.eloq\\:py-\\[8px\\]{padding-block:8px}.eloq\\:py-\\[12px\\]{padding-block:12px}.eloq\\:pt-0{padding-top:0}.eloq\\:pt-2{padding-top:calc(var(--eloq-spacing) * 2)}.eloq\\:pt-4{padding-top:calc(var(--eloq-spacing) * 4)}.eloq\\:pt-5{padding-top:calc(var(--eloq-spacing) * 5)}.eloq\\:pt-6{padding-top:calc(var(--eloq-spacing) * 6)}.eloq\\:pt-10{padding-top:calc(var(--eloq-spacing) * 10)}.eloq\\:pt-24{padding-top:calc(var(--eloq-spacing) * 24)}.eloq\\:pr-2{padding-right:calc(var(--eloq-spacing) * 2)}.eloq\\:pr-4{padding-right:calc(var(--eloq-spacing) * 4)}.eloq\\:pr-12{padding-right:calc(var(--eloq-spacing) * 12)}.eloq\\:pb-2{padding-bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:pb-4{padding-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:pb-10{padding-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:pb-14{padding-bottom:calc(var(--eloq-spacing) * 14)}.eloq\\:pl-3{padding-left:calc(var(--eloq-spacing) * 3)}.eloq\\:pl-4{padding-left:calc(var(--eloq-spacing) * 4)}.eloq\\:pl-11{padding-left:calc(var(--eloq-spacing) * 11)}.eloq\\:text-center{text-align:center}.eloq\\:text-left{text-align:left}.eloq\\:text-2xl{font-size:var(--eloq-text-2xl);line-height:var(--tw-leading,var(--eloq-text-2xl--line-height))}.eloq\\:text-base{font-size:var(--eloq-text-base);line-height:var(--tw-leading,var(--eloq-text-base--line-height))}.eloq\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}.eloq\\:text-xs{font-size:var(--eloq-text-xs);line-height:var(--tw-leading,var(--eloq-text-xs--line-height))}.eloq\\:text-\\[10px\\]{font-size:10px}.eloq\\:leading-5{--tw-leading:calc(var(--eloq-spacing) * 5);line-height:calc(var(--eloq-spacing) * 5)}.eloq\\:leading-none{--tw-leading:1;line-height:1}.eloq\\:leading-relaxed{--tw-leading:var(--eloq-leading-relaxed);line-height:var(--eloq-leading-relaxed)}.eloq\\:font-medium{--tw-font-weight:var(--eloq-font-weight-medium);font-weight:var(--eloq-font-weight-medium)}.eloq\\:font-semibold{--tw-font-weight:var(--eloq-font-weight-semibold);font-weight:var(--eloq-font-weight-semibold)}.eloq\\:tracking-tight{--tw-tracking:var(--eloq-tracking-tight);letter-spacing:var(--eloq-tracking-tight)}.eloq\\:whitespace-nowrap{white-space:nowrap}.eloq\\:text-\\[\\#000\\]{color:#000}.eloq\\:text-\\[\\#fff\\]{color:#fff}.eloq\\:text-amber-500{color:var(--eloq-color-amber-500)}.eloq\\:text-amber-800{color:var(--eloq-color-amber-800)}.eloq\\:text-blue-500{color:var(--eloq-color-blue-500)}.eloq\\:text-blue-800{color:var(--eloq-color-blue-800)}.eloq\\:text-card-foreground{color:hsl(var(--card-foreground))}.eloq\\:text-destructive{color:hsl(var(--destructive))}.eloq\\:text-foreground{color:hsl(var(--foreground))}.eloq\\:text-gray-300{color:var(--eloq-color-gray-300)}.eloq\\:text-gray-400{color:var(--eloq-color-gray-400)}.eloq\\:text-gray-500{color:var(--eloq-color-gray-500)}.eloq\\:text-green-500{color:var(--eloq-color-green-500)}.eloq\\:text-green-800{color:var(--eloq-color-green-800)}.eloq\\:text-muted{color:hsl(var(--muted))}.eloq\\:text-muted-foreground{color:hsl(var(--muted-foreground))}.eloq\\:text-primary{color:hsl(var(--primary))}.eloq\\:text-primary-foreground{color:hsl(var(--primary-foreground))}.eloq\\:text-red-500{color:var(--eloq-color-red-500)}.eloq\\:text-red-800{color:var(--eloq-color-red-800)}.eloq\\:text-white{color:var(--eloq-color-white)}.eloq\\:text-yellow-400{color:var(--eloq-color-yellow-400)}.eloq\\:italic{font-style:italic}.eloq\\:underline{text-decoration-line:underline}.eloq\\:opacity-0{opacity:0}.eloq\\:opacity-50{opacity:.5}.eloq\\:opacity-70{opacity:.7}.eloq\\:opacity-75{opacity:.75}.eloq\\:opacity-100{opacity:1}.eloq\\:shadow-\\[0_-8px_24px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow:0 -8px 24px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_0_4px_0_rgba\\(0\\,0\\,0\\,0\\.20\\)\\]{--tw-shadow:0 0 4px 0 var(--tw-shadow-color,#0003);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_3px_4px_-2px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0 3px 4px -2px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.eloq\\:outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:outline-offset-2{outline-offset:2px}.eloq\\:outline-transparent{outline-color:#0000}.eloq\\:drop-shadow-lg{--tw-drop-shadow-size:drop-shadow(0 4px 4px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-lg));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,)}.eloq\\:transition-\\[outline-color\\]{transition-property:outline-color;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.eloq\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.eloq\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.eloq\\:duration-500{--tw-duration:.5s;transition-duration:.5s}.eloq\\:ease-out{--tw-ease:var(--eloq-ease-out);transition-timing-function:var(--eloq-ease-out)}.eloq\\:select-none{-webkit-user-select:none;user-select:none}.eloq\\:placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.eloq\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.eloq\\:hover\\:bg-black\\/5:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 5%,transparent)}}.eloq\\:hover\\:bg-black\\/80:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/80:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 80%,transparent)}}.eloq\\:hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.eloq\\:hover\\:text-foreground:hover{color:hsl(var(--foreground))}.eloq\\:hover\\:text-gray-600:hover{color:var(--eloq-color-gray-600)}.eloq\\:hover\\:text-primary:hover{color:hsl(var(--primary))}.eloq\\:hover\\:opacity-80:hover{opacity:.8}.eloq\\:hover\\:opacity-90:hover{opacity:.9}.eloq\\:hover\\:opacity-100:hover{opacity:1}.eloq\\:hover\\:drop-shadow-xl:hover{--tw-drop-shadow-size:drop-shadow(0 9px 7px var(--tw-drop-shadow-color,#0000001a));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-xl));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,)}}.eloq\\:focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-muted:focus-visible{--tw-ring-color:hsl(var(--muted))}.eloq\\:focus-visible\\:ring-primary:focus-visible{--tw-ring-color:hsl(var(--primary))}.eloq\\:focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.eloq\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.eloq\\:active\\:cursor-grabbing:active{cursor:grabbing}.eloq\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.eloq\\:disabled\\:opacity-50:disabled{opacity:.5}.eloq\\:has-focus-visible\\:outline-2:has(:focus-visible){outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:has-focus-visible\\:outline-offset-1:has(:focus-visible){outline-offset:1px}.eloq\\:has-focus-visible\\:outline-ring:has(:focus-visible){outline-color:hsl(var(--ring))}@media(prefers-reduced-motion:reduce){.eloq\\:motion-reduce\\:animate-none{animation:none}.eloq\\:motion-reduce\\:opacity-70{opacity:.7}}@media(min-width:40rem){.eloq\\:sm\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}@media(min-width:48rem){.eloq\\:md\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}.eloq\\:dark\\:border:is(.dark *){border-style:var(--tw-border-style);border-width:1px}.eloq\\:dark\\:border-b:is(.dark *){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.eloq\\:dark\\:border-border:is(.dark *){border-color:hsl(var(--border))}.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:var(--eloq-color-amber-400)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-amber-400) 10%,transparent)}}.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:var(--eloq-color-blue-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-blue-500) 10%,transparent)}}.eloq\\:dark\\:bg-card:is(.dark *){background-color:hsl(var(--card))}.eloq\\:dark\\:bg-gray-200:is(.dark *){background-color:var(--eloq-color-gray-200)}.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:var(--eloq-color-green-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-green-500) 10%,transparent)}}.eloq\\:dark\\:bg-muted:is(.dark *){background-color:hsl(var(--muted))}.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:var(--eloq-color-red-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-red-500) 10%,transparent)}}.eloq\\:dark\\:text-amber-200:is(.dark *){color:var(--eloq-color-amber-200)}.eloq\\:dark\\:text-amber-400:is(.dark *){color:var(--eloq-color-amber-400)}.eloq\\:dark\\:text-blue-200:is(.dark *){color:var(--eloq-color-blue-200)}.eloq\\:dark\\:text-blue-400:is(.dark *){color:var(--eloq-color-blue-400)}.eloq\\:dark\\:text-gray-500:is(.dark *){color:var(--eloq-color-gray-500)}.eloq\\:dark\\:text-green-200:is(.dark *){color:var(--eloq-color-green-200)}.eloq\\:dark\\:text-green-400:is(.dark *){color:var(--eloq-color-green-400)}.eloq\\:dark\\:text-muted-foreground:is(.dark *),.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:color-mix(in oklab,hsl(var(--muted-foreground)) 50%,transparent)}}.eloq\\:dark\\:text-red-200:is(.dark *){color:var(--eloq-color-red-200)}.eloq\\:dark\\:text-red-400:is(.dark *){color:var(--eloq-color-red-400)}.eloq\\:dark\\:shadow-none:is(.dark *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:color-mix(in oklab,var(--eloq-color-white) 10%,transparent)}}.eloq\\:dark\\:hover\\:text-gray-300:is(.dark *):hover{color:var(--eloq-color-gray-300)}.eloq\\:dark\\:hover\\:text-primary:is(.dark *):hover{color:hsl(var(--primary))}}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}}body{background-color:#0000}.eloquent-chat{font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.collapse{visibility:unset!important}.eloq-wrap-anywhere{overflow-wrap:anywhere}.eloq-thin-scrollbar{scrollbar-width:thin;scrollbar-color:hsl(var(--border)) transparent}.eloq-thin-scrollbar::-webkit-scrollbar{width:8px;height:8px}.eloq-thin-scrollbar::-webkit-scrollbar-thumb{background-color:hsl(var(--border));border-radius:9999px}.eloq-thin-scrollbar::-webkit-scrollbar-track{background-color:#0000}.eloq-test-mode-stripe{background:repeating-linear-gradient(-45deg,#f6e05e,#f6e05e 10px,#000 10px 20px)}.eloq-thinking-shimmer{--eloq-thinking-base:#9ca3af;--eloq-thinking-highlight:#4b5563;background:linear-gradient(90deg,var(--eloq-thinking-base) 0%,var(--eloq-thinking-base) 35%,var(--eloq-thinking-highlight) 50%,var(--eloq-thinking-base) 65%,var(--eloq-thinking-base) 100%);color:#0000;background-size:200% 100%;-webkit-background-clip:text;background-clip:text}.dark .eloq-thinking-shimmer{--eloq-thinking-base:#6b7280;--eloq-thinking-highlight:#e5e7eb}@media(prefers-reduced-motion:reduce){.eloq-thinking-shimmer{color:var(--eloq-thinking-base);background:0 0}}.eloq-regenerating-text{opacity:.4;transition:opacity .25s ease-out}.eloq-regenerating-sweep{border-radius:inherit;pointer-events:none;background:linear-gradient(100deg,#0000 30%,#ffffff8c,#0000 70%) 0 0/200% 100%;position:absolute;inset:0}.dark .eloq-regenerating-sweep{background-image:linear-gradient(100deg,#0000 30%,#ffffff1f,#0000 70%)}@media(prefers-reduced-motion:reduce){.eloq-regenerating-sweep{display:none}}@property --eloq-aura-angle{syntax:"<angle>";inherits:false;initial-value:0deg}.eloq-aura{--eloq-aura-strong:#9e9e9e;--eloq-aura-soft:#d1d1d1;background:conic-gradient(from var(--eloq-aura-angle),var(--eloq-aura-strong),var(--eloq-aura-soft),var(--eloq-aura-strong));border-radius:9999px;padding:2px;animation:2.6s linear infinite eloq-aura-spin;position:relative}@keyframes eloq-aura-spin{to{--eloq-aura-angle:360deg}}.eloq-aura-shine{border-radius:inherit;pointer-events:none;position:absolute;inset:0;overflow:hidden}.eloq-aura-shine:after{content:"";background:linear-gradient(90deg,#0000,#fffc,#0000);width:18%;position:absolute;top:-20%;bottom:-20%;left:0;transform:translate(-200%)skew(-20deg)}.eloq-aura-shine--active:after{animation:1.1s ease-in-out both eloq-aura-shine-sweep}@keyframes eloq-aura-shine-sweep{0%{transform:translate(-200%)skew(-20deg)}to{transform:translate(700%)skew(-20deg)}}@media(prefers-reduced-motion:reduce){.eloq-aura{animation:none}.eloq-aura-shine:after,.eloq-aura-shine--active:after{opacity:0;animation:none}}@keyframes panel-in{0%{opacity:0;transform:scale(.05)}to{opacity:1;transform:scale(1)}}@keyframes thinking-dot{0%,60%,to{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@keyframes regenerating-sweep{0%{background-position:150% 0}to{background-position:-50% 0}}@keyframes text-in{0%{opacity:0}to{opacity:1}}@keyframes thinking-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes panel-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.05)}}@keyframes message-in{0%{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:translateY(0)}}@keyframes slide-up-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}', to = ".eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}";
|
|
37
37
|
function oo({
|
|
38
38
|
toggleBubble: e,
|
|
39
39
|
isDarkMode: t = !1
|
|
@@ -77,13 +77,13 @@ function no({
|
|
|
77
77
|
u("visible");
|
|
78
78
|
}, 50);
|
|
79
79
|
let d;
|
|
80
|
-
const
|
|
80
|
+
const h = setTimeout(() => {
|
|
81
81
|
u("exiting"), d = setTimeout(() => {
|
|
82
82
|
o();
|
|
83
83
|
}, 300);
|
|
84
84
|
}, n);
|
|
85
85
|
return () => {
|
|
86
|
-
clearTimeout(l), clearTimeout(
|
|
86
|
+
clearTimeout(l), clearTimeout(h), clearTimeout(d);
|
|
87
87
|
};
|
|
88
88
|
} else {
|
|
89
89
|
u("exiting");
|
|
@@ -237,7 +237,7 @@ function it({ appId: e }) {
|
|
|
237
237
|
messages: []
|
|
238
238
|
}),
|
|
239
239
|
[]
|
|
240
|
-
), r =
|
|
240
|
+
), r = v(() => {
|
|
241
241
|
try {
|
|
242
242
|
if (!Te) return o;
|
|
243
243
|
const i = localStorage.getItem(t);
|
|
@@ -248,24 +248,24 @@ function it({ appId: e }) {
|
|
|
248
248
|
i
|
|
249
249
|
), o;
|
|
250
250
|
}
|
|
251
|
-
}, [t, o]), n =
|
|
251
|
+
}, [t, o]), n = v(() => {
|
|
252
252
|
try {
|
|
253
253
|
const i = r();
|
|
254
254
|
return i.lastActivity ? Date.now() - i.lastActivity > uo : !0;
|
|
255
255
|
} catch (i) {
|
|
256
256
|
return console.error("Error checking conversation expiration:", i), !0;
|
|
257
257
|
}
|
|
258
|
-
}, [r]), a =
|
|
259
|
-
(i, l, d,
|
|
258
|
+
}, [r]), a = v(
|
|
259
|
+
(i, l, d, h, p) => {
|
|
260
260
|
try {
|
|
261
261
|
if (!Te) return;
|
|
262
262
|
const f = {
|
|
263
263
|
conversationId: i,
|
|
264
264
|
userId: l,
|
|
265
|
-
deviceId:
|
|
266
|
-
messages:
|
|
265
|
+
deviceId: h,
|
|
266
|
+
messages: ho(d),
|
|
267
267
|
lastActivity: Date.now(),
|
|
268
|
-
chatToken:
|
|
268
|
+
chatToken: p
|
|
269
269
|
};
|
|
270
270
|
localStorage.setItem(t, JSON.stringify(f));
|
|
271
271
|
} catch (f) {
|
|
@@ -273,7 +273,7 @@ function it({ appId: e }) {
|
|
|
273
273
|
}
|
|
274
274
|
},
|
|
275
275
|
[t]
|
|
276
|
-
), c =
|
|
276
|
+
), c = v(() => {
|
|
277
277
|
try {
|
|
278
278
|
if (!Te) return;
|
|
279
279
|
const i = r();
|
|
@@ -287,7 +287,7 @@ function it({ appId: e }) {
|
|
|
287
287
|
i
|
|
288
288
|
);
|
|
289
289
|
}
|
|
290
|
-
}, [t, r]), s =
|
|
290
|
+
}, [t, r]), s = v(() => {
|
|
291
291
|
try {
|
|
292
292
|
if (!Te) return;
|
|
293
293
|
const i = localStorage.getItem(t);
|
|
@@ -308,7 +308,7 @@ function it({ appId: e }) {
|
|
|
308
308
|
i
|
|
309
309
|
);
|
|
310
310
|
}
|
|
311
|
-
}, [t, o]), u =
|
|
311
|
+
}, [t, o]), u = v(() => {
|
|
312
312
|
try {
|
|
313
313
|
if (!Te) return;
|
|
314
314
|
const i = r();
|
|
@@ -326,22 +326,22 @@ function it({ appId: e }) {
|
|
|
326
326
|
markChatClosed: c
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function ho(e) {
|
|
330
330
|
return e.flatMap((t) => {
|
|
331
331
|
if (!t.attachments) return [t];
|
|
332
332
|
const o = t.attachments.filter((r) => Ot(r.url)).map(({ url: r, mimeType: n, name: a }) => ({ url: r, mimeType: n, name: a }));
|
|
333
333
|
return o.length > 0 ? [{ ...t, attachments: o }] : t.content ? [{ ...t, attachments: void 0 }] : [];
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
|
-
const
|
|
337
|
-
function
|
|
336
|
+
const po = "aws-appsync-event-ws", fo = 15e3, go = 3e5, mo = 5e3, bo = 1;
|
|
337
|
+
function vo(e) {
|
|
338
338
|
const t = new URL(e);
|
|
339
339
|
return /\.appsync-api\.[\w-]+\.amazonaws\.com(\.cn)?$/.test(t.hostname) && (t.hostname = t.hostname.replace(
|
|
340
340
|
".appsync-api.",
|
|
341
341
|
".appsync-realtime-api."
|
|
342
342
|
)), t.protocol = "wss:", t.pathname = `${t.pathname.replace(/\/$/, "")}/realtime`, t.toString();
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function wo(e, t) {
|
|
345
345
|
const o = new URL(e).host;
|
|
346
346
|
return "authorizationToken" in t ? { Authorization: t.authorizationToken, host: o } : { "x-api-key": t.apiKey, host: o };
|
|
347
347
|
}
|
|
@@ -359,41 +359,41 @@ function yo(e) {
|
|
|
359
359
|
onEvent: n,
|
|
360
360
|
onDisconnect: a,
|
|
361
361
|
createWebSocket: c = (l, d) => new WebSocket(l, d)
|
|
362
|
-
} = e, s =
|
|
362
|
+
} = e, s = wo(t, o), u = vo(t), i = crypto.randomUUID();
|
|
363
363
|
return new Promise((l, d) => {
|
|
364
|
-
let
|
|
364
|
+
let h;
|
|
365
365
|
try {
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
h = c(u, [
|
|
367
|
+
po,
|
|
368
368
|
qo(s)
|
|
369
369
|
]);
|
|
370
370
|
} catch (b) {
|
|
371
371
|
d(b instanceof Error ? b : new Error(String(b)));
|
|
372
372
|
return;
|
|
373
373
|
}
|
|
374
|
-
let
|
|
374
|
+
let p = "connecting", f = !1, g = go, R = Date.now(), w = null, z = null;
|
|
375
375
|
const A = () => {
|
|
376
|
-
|
|
376
|
+
w && (clearTimeout(w), w = null), z && (clearInterval(z), z = null);
|
|
377
377
|
}, E = (b) => {
|
|
378
|
-
if (
|
|
379
|
-
const q =
|
|
380
|
-
|
|
378
|
+
if (p === "closed") return;
|
|
379
|
+
const q = p === "established";
|
|
380
|
+
p = "closed", A();
|
|
381
381
|
try {
|
|
382
|
-
|
|
382
|
+
h.close();
|
|
383
383
|
} catch {
|
|
384
384
|
}
|
|
385
385
|
f || (q ? a(b) : d(new Error(b)));
|
|
386
386
|
}, j = (b) => {
|
|
387
|
-
|
|
387
|
+
h.readyState === bo && h.send(JSON.stringify(b));
|
|
388
388
|
}, P = (b) => {
|
|
389
|
-
|
|
389
|
+
w && clearTimeout(w), w = setTimeout(() => {
|
|
390
390
|
E(`Timed out waiting for ${b}`);
|
|
391
391
|
}, fo);
|
|
392
392
|
};
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
}),
|
|
396
|
-
if (
|
|
393
|
+
h.addEventListener("open", () => {
|
|
394
|
+
p !== "closed" && (j({ type: "connection_init" }), P("connection_ack"));
|
|
395
|
+
}), h.addEventListener("message", (b) => {
|
|
396
|
+
if (p === "closed") return;
|
|
397
397
|
let q;
|
|
398
398
|
try {
|
|
399
399
|
q = JSON.parse(String(b.data));
|
|
@@ -403,8 +403,8 @@ function yo(e) {
|
|
|
403
403
|
}
|
|
404
404
|
switch (q.type) {
|
|
405
405
|
case "connection_ack": {
|
|
406
|
-
if (
|
|
407
|
-
|
|
406
|
+
if (p !== "connecting") return;
|
|
407
|
+
p = "subscribing", typeof q.connectionTimeoutMs == "number" && (g = q.connectionTimeoutMs), j({
|
|
408
408
|
type: "subscribe",
|
|
409
409
|
id: i,
|
|
410
410
|
channel: r,
|
|
@@ -417,8 +417,8 @@ function yo(e) {
|
|
|
417
417
|
return;
|
|
418
418
|
}
|
|
419
419
|
case "subscribe_success": {
|
|
420
|
-
if (
|
|
421
|
-
|
|
420
|
+
if (p !== "subscribing" || q.id !== i) return;
|
|
421
|
+
p = "established", w && (clearTimeout(w), w = null), R = Date.now(), z = setInterval(() => {
|
|
422
422
|
Date.now() - R > g && E("Keep-alive timeout");
|
|
423
423
|
}, mo), l({
|
|
424
424
|
close: () => {
|
|
@@ -462,9 +462,9 @@ function yo(e) {
|
|
|
462
462
|
default:
|
|
463
463
|
return;
|
|
464
464
|
}
|
|
465
|
-
}),
|
|
465
|
+
}), h.addEventListener("close", () => {
|
|
466
466
|
E("WebSocket closed");
|
|
467
|
-
}),
|
|
467
|
+
}), h.addEventListener("error", () => {
|
|
468
468
|
E("WebSocket error");
|
|
469
469
|
});
|
|
470
470
|
});
|
|
@@ -510,7 +510,7 @@ function So(e) {
|
|
|
510
510
|
const o = t.prototype;
|
|
511
511
|
return !(ot(o) === !1 || Object.prototype.hasOwnProperty.call(o, "isPrototypeOf") === !1);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function ht(e) {
|
|
514
514
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
515
515
|
}
|
|
516
516
|
function Io(e, t, o) {
|
|
@@ -558,7 +558,7 @@ function Ae(e, t) {
|
|
|
558
558
|
function Me(e) {
|
|
559
559
|
return typeof e == "string" ? e : e?.message;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function pt(e, t, o) {
|
|
562
562
|
var r;
|
|
563
563
|
for (let n = t; n < e.length; n++)
|
|
564
564
|
(r = e[n]).schema ?? (r.schema = o);
|
|
@@ -667,53 +667,53 @@ function Uo(e) {
|
|
|
667
667
|
}
|
|
668
668
|
function X(e, t, o, r) {
|
|
669
669
|
const n = {};
|
|
670
|
-
function a(
|
|
671
|
-
this.def =
|
|
670
|
+
function a(h) {
|
|
671
|
+
this.def = h, this.constr = d, this.traits = /* @__PURE__ */ new Set();
|
|
672
672
|
}
|
|
673
673
|
a.prototype = n;
|
|
674
674
|
const c = o, s = c && /* @__PURE__ */ new WeakSet();
|
|
675
|
-
function u(
|
|
676
|
-
if (
|
|
677
|
-
if (
|
|
675
|
+
function u(h, p) {
|
|
676
|
+
if (h._zod) {
|
|
677
|
+
if (h._zod.traits.has(e))
|
|
678
678
|
return;
|
|
679
679
|
} else {
|
|
680
|
-
Xe.value = new a(
|
|
680
|
+
Xe.value = new a(p);
|
|
681
681
|
try {
|
|
682
|
-
Object.defineProperty(
|
|
682
|
+
Object.defineProperty(h, "_zod", Xe);
|
|
683
683
|
} finally {
|
|
684
684
|
Xe.value = void 0;
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
|
-
if (
|
|
688
|
-
const g = Object.getPrototypeOf(
|
|
689
|
-
let
|
|
690
|
-
for (;
|
|
691
|
-
|
|
692
|
-
const z =
|
|
687
|
+
if (h._zod.traits.add(e), t(h, p), s) {
|
|
688
|
+
const g = Object.getPrototypeOf(h), R = h._zod.constr.prototype;
|
|
689
|
+
let w = g;
|
|
690
|
+
for (; w && w !== R; )
|
|
691
|
+
w = Object.getPrototypeOf(w);
|
|
692
|
+
const z = w ?? g;
|
|
693
693
|
s.has(z) || (s.add(z), zo(z, c));
|
|
694
694
|
}
|
|
695
695
|
const f = d.prototype;
|
|
696
696
|
for (const g in f)
|
|
697
|
-
Object.prototype.hasOwnProperty.call(f, g) && (g in
|
|
697
|
+
Object.prototype.hasOwnProperty.call(f, g) && (g in h || (h[g] = f[g].bind(h)));
|
|
698
698
|
}
|
|
699
699
|
const i = r?.Parent ?? Object;
|
|
700
700
|
class l extends i {
|
|
701
701
|
}
|
|
702
702
|
Object.defineProperty(l, "name", { value: e });
|
|
703
|
-
function d(
|
|
704
|
-
const
|
|
705
|
-
u(
|
|
706
|
-
const f =
|
|
703
|
+
function d(h) {
|
|
704
|
+
const p = r?.Parent ? Uo(l) : this;
|
|
705
|
+
u(p, h);
|
|
706
|
+
const f = p._zod.deferred;
|
|
707
707
|
if (f) {
|
|
708
708
|
for (const R of f)
|
|
709
709
|
R();
|
|
710
|
-
|
|
710
|
+
p._zod.deferred = void 0;
|
|
711
711
|
}
|
|
712
712
|
const g = globalThis.__zod_globalConfig?.postProcessor;
|
|
713
|
-
return g && g(
|
|
713
|
+
return g && g(p), p;
|
|
714
714
|
}
|
|
715
715
|
return Object.defineProperty(d, "init", { value: u }), Object.defineProperty(d, Symbol.hasInstance, {
|
|
716
|
-
value: (
|
|
716
|
+
value: (h) => r?.Parent && h instanceof r.Parent ? !0 : h?._zod?.traits?.has(e)
|
|
717
717
|
}), Object.defineProperty(d, "name", { value: e }), d;
|
|
718
718
|
}
|
|
719
719
|
class Pe extends Error {
|
|
@@ -819,23 +819,23 @@ const Ho = (e) => async (t, o, r) => {
|
|
|
819
819
|
if (s.memo)
|
|
820
820
|
return s;
|
|
821
821
|
let l = _e(s), d;
|
|
822
|
-
for (const
|
|
823
|
-
if (
|
|
824
|
-
if (Eo(s) || !
|
|
822
|
+
for (const h of u) {
|
|
823
|
+
if (h._zod.def.when) {
|
|
824
|
+
if (Eo(s) || !h._zod.def.when(s))
|
|
825
825
|
continue;
|
|
826
826
|
} else if (l)
|
|
827
827
|
continue;
|
|
828
|
-
const
|
|
828
|
+
const p = s.issues.length, f = h._zod.check(s);
|
|
829
829
|
if (f instanceof Promise && i?.async === !1)
|
|
830
830
|
throw new Pe();
|
|
831
831
|
if (d || f instanceof Promise)
|
|
832
832
|
d = (d ?? Promise.resolve()).then(async () => {
|
|
833
|
-
await f, s.issues.length !==
|
|
833
|
+
await f, s.issues.length !== p && (pt(s.issues, p, e), l || (l = _e(s, p)));
|
|
834
834
|
});
|
|
835
835
|
else {
|
|
836
|
-
if (s.issues.length ===
|
|
836
|
+
if (s.issues.length === p)
|
|
837
837
|
continue;
|
|
838
|
-
|
|
838
|
+
pt(s.issues, p, e), l || (l = _e(s, p));
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
841
|
return d ? d.then(() => s) : s;
|
|
@@ -958,13 +958,13 @@ function nr(e) {
|
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
960
|
function ar(e, t, o, r, n, a, c) {
|
|
961
|
-
const s = [], u = n.keySet, i = n.catchall._zod, l = i.def.type, d = i.optin,
|
|
962
|
-
let
|
|
961
|
+
const s = [], u = n.keySet, i = n.catchall._zod, l = i.def.type, d = i.optin, h = i.optout;
|
|
962
|
+
let p = 0;
|
|
963
963
|
for (const f in t) {
|
|
964
|
-
if (c && o.issues.length !==
|
|
965
|
-
if (_e(o,
|
|
964
|
+
if (c && o.issues.length !== p) {
|
|
965
|
+
if (_e(o, p))
|
|
966
966
|
break;
|
|
967
|
-
|
|
967
|
+
p = o.issues.length;
|
|
968
968
|
}
|
|
969
969
|
if (u.has(f))
|
|
970
970
|
continue;
|
|
@@ -977,7 +977,7 @@ function ar(e, t, o, r, n, a, c) {
|
|
|
977
977
|
continue;
|
|
978
978
|
}
|
|
979
979
|
const g = i.run({ value: t[f], issues: [] }, r);
|
|
980
|
-
g instanceof Promise ? e.push(g.then((R) => Ne(R, o, f, t, d,
|
|
980
|
+
g instanceof Promise ? e.push(g.then((R) => Ne(R, o, f, t, d, h))) : Ne(g, o, f, t, d, h);
|
|
981
981
|
}
|
|
982
982
|
return s.length && o.issues.push({
|
|
983
983
|
code: "unrecognized_keys",
|
|
@@ -1001,13 +1001,13 @@ const ir = /* @__PURE__ */ X("$ZodObject", (e, t) => {
|
|
|
1001
1001
|
const n = _o(() => nr(t));
|
|
1002
1002
|
me(e, "propValues", (i) => {
|
|
1003
1003
|
const l = i.def.shape, d = {};
|
|
1004
|
-
for (const
|
|
1005
|
-
const
|
|
1006
|
-
if (
|
|
1007
|
-
Object.prototype.hasOwnProperty.call(d,
|
|
1008
|
-
for (const f of
|
|
1009
|
-
d[
|
|
1010
|
-
|
|
1004
|
+
for (const h in l) {
|
|
1005
|
+
const p = l[h]._zod;
|
|
1006
|
+
if (p.values) {
|
|
1007
|
+
Object.prototype.hasOwnProperty.call(d, h) || Co(d, h, /* @__PURE__ */ new Set());
|
|
1008
|
+
for (const f of p.values)
|
|
1009
|
+
d[h].add(f);
|
|
1010
|
+
p.optin !== void 0 && d[h].add(void 0);
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
1013
|
return d;
|
|
@@ -1026,7 +1026,7 @@ const ir = /* @__PURE__ */ X("$ZodObject", (e, t) => {
|
|
|
1026
1026
|
inst: e
|
|
1027
1027
|
}), i;
|
|
1028
1028
|
i.value = u ? u.alloc(e, i, {}, l) : {};
|
|
1029
|
-
const
|
|
1029
|
+
const h = [], p = s.shape, f = l?.abortEarly;
|
|
1030
1030
|
let g = i.issues.length;
|
|
1031
1031
|
for (const R of s.allKeys) {
|
|
1032
1032
|
if (f && i.issues.length !== g) {
|
|
@@ -1036,10 +1036,10 @@ const ir = /* @__PURE__ */ X("$ZodObject", (e, t) => {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
if (R === "__proto__")
|
|
1038
1038
|
continue;
|
|
1039
|
-
const
|
|
1040
|
-
E instanceof Promise ?
|
|
1039
|
+
const w = p[R], z = w._zod.optin, A = w._zod.optout, E = w._zod.run({ value: d[R], issues: [] }, l);
|
|
1040
|
+
E instanceof Promise ? h.push(E.then((j) => Ne(j, i, R, d, z, A))) : Ne(E, i, R, d, z, A);
|
|
1041
1041
|
}
|
|
1042
|
-
return c ? ar(
|
|
1042
|
+
return c ? ar(h, d, i, l, n.value, e, f === !0) : h.length ? Promise.all(h).then(() => i) : i;
|
|
1043
1043
|
};
|
|
1044
1044
|
});
|
|
1045
1045
|
function bt(e, t, o, r) {
|
|
@@ -1119,13 +1119,13 @@ const sr = /* @__PURE__ */ X("$ZodUnion", (e, t) => {
|
|
|
1119
1119
|
});
|
|
1120
1120
|
continue;
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1123
|
-
if (
|
|
1122
|
+
const h = d.value;
|
|
1123
|
+
if (h === "__proto__")
|
|
1124
1124
|
continue;
|
|
1125
|
-
const
|
|
1126
|
-
|
|
1127
|
-
f.issues.length && r.issues.push(...Ae(l, f.issues)), r.value[
|
|
1128
|
-
})) : (
|
|
1125
|
+
const p = t.valueType._zod.run({ value: a[l], issues: [] }, n);
|
|
1126
|
+
p instanceof Promise ? c.push(p.then((f) => {
|
|
1127
|
+
f.issues.length && r.issues.push(...Ae(l, f.issues)), r.value[h] = f.value;
|
|
1128
|
+
})) : (p.issues.length && r.issues.push(...Ae(l, p.issues)), r.value[h] = p.value);
|
|
1129
1129
|
}
|
|
1130
1130
|
let i;
|
|
1131
1131
|
for (const l in a)
|
|
@@ -1169,13 +1169,13 @@ const sr = /* @__PURE__ */ X("$ZodUnion", (e, t) => {
|
|
|
1169
1169
|
});
|
|
1170
1170
|
continue;
|
|
1171
1171
|
}
|
|
1172
|
-
const
|
|
1173
|
-
if (
|
|
1172
|
+
const h = l.value;
|
|
1173
|
+
if (h === "__proto__")
|
|
1174
1174
|
continue;
|
|
1175
|
-
const
|
|
1176
|
-
|
|
1177
|
-
f.issues.length && r.issues.push(...Ae(i, f.issues)), r.value[
|
|
1178
|
-
})) : (
|
|
1175
|
+
const p = t.valueType._zod.run({ value: a[i], issues: [] }, n);
|
|
1176
|
+
p instanceof Promise ? c.push(p.then((f) => {
|
|
1177
|
+
f.issues.length && r.issues.push(...Ae(i, f.issues)), r.value[h] = f.value;
|
|
1178
|
+
})) : (p.issues.length && r.issues.push(...Ae(i, p.issues)), r.value[h] = p.value);
|
|
1179
1179
|
}
|
|
1180
1180
|
u && u.length > 0 && r.issues.push({
|
|
1181
1181
|
code: "unrecognized_keys",
|
|
@@ -1192,7 +1192,7 @@ const sr = /* @__PURE__ */ X("$ZodUnion", (e, t) => {
|
|
|
1192
1192
|
const o = new Set(t.values);
|
|
1193
1193
|
e._zod.values = o, me(e, "pattern", (r) => {
|
|
1194
1194
|
const n = r.def.values;
|
|
1195
|
-
return new RegExp(n.length ? `^(${n.map((a) => typeof a == "string" ?
|
|
1195
|
+
return new RegExp(n.length ? `^(${n.map((a) => typeof a == "string" ? ht(a) : a ? ht(a.toString()) : String(a)).join("|")})$` : "^[^\\s\\S]$");
|
|
1196
1196
|
}), e._zod.parse = (r, n) => {
|
|
1197
1197
|
const a = r.value;
|
|
1198
1198
|
return o.has(a) || r.issues.push({
|
|
@@ -1212,11 +1212,11 @@ function dr(e) {
|
|
|
1212
1212
|
return e.checks && (e.checks = [...e.checks]), e;
|
|
1213
1213
|
}
|
|
1214
1214
|
// @__NO_SIDE_EFFECTS__
|
|
1215
|
-
function
|
|
1215
|
+
function hr(e, t) {
|
|
1216
1216
|
return new e(dr({ type: "string", ...Ce(t) }));
|
|
1217
1217
|
}
|
|
1218
1218
|
// @__NO_SIDE_EFFECTS__
|
|
1219
|
-
function
|
|
1219
|
+
function pr(e, t) {
|
|
1220
1220
|
return new e({
|
|
1221
1221
|
type: "null",
|
|
1222
1222
|
...Ce(t)
|
|
@@ -1273,14 +1273,14 @@ const Ie = /* @__PURE__ */ X("ZodMiniType", (e, t) => {
|
|
|
1273
1273
|
});
|
|
1274
1274
|
// @__NO_SIDE_EFFECTS__
|
|
1275
1275
|
function T(e) {
|
|
1276
|
-
return /* @__PURE__ */
|
|
1276
|
+
return /* @__PURE__ */ hr(fr, e);
|
|
1277
1277
|
}
|
|
1278
1278
|
const gr = /* @__PURE__ */ X("ZodMiniNull", (e, t) => {
|
|
1279
1279
|
or.init(e, t), Ie.init(e, t);
|
|
1280
1280
|
});
|
|
1281
1281
|
// @__NO_SIDE_EFFECTS__
|
|
1282
1282
|
function mr(e) {
|
|
1283
|
-
return /* @__PURE__ */
|
|
1283
|
+
return /* @__PURE__ */ pr(gr, e);
|
|
1284
1284
|
}
|
|
1285
1285
|
const br = /* @__PURE__ */ X("ZodMiniObject", (e, t) => {
|
|
1286
1286
|
ir.init(e, t), Ie.init(e, t), Oo(e, "shape", (o) => o._zod.def.shape, !1);
|
|
@@ -1294,28 +1294,28 @@ function $(e, t) {
|
|
|
1294
1294
|
};
|
|
1295
1295
|
return new br(o);
|
|
1296
1296
|
}
|
|
1297
|
-
const
|
|
1297
|
+
const vr = /* @__PURE__ */ X("ZodMiniUnion", (e, t) => {
|
|
1298
1298
|
sr.init(e, t), Ie.init(e, t);
|
|
1299
1299
|
});
|
|
1300
1300
|
// @__NO_SIDE_EFFECTS__
|
|
1301
|
-
function
|
|
1302
|
-
return new
|
|
1301
|
+
function wr(e, t) {
|
|
1302
|
+
return new vr({
|
|
1303
1303
|
type: "union",
|
|
1304
1304
|
options: e,
|
|
1305
1305
|
...Ce(t)
|
|
1306
1306
|
});
|
|
1307
1307
|
}
|
|
1308
|
-
const
|
|
1308
|
+
const vt = /* @__PURE__ */ X("ZodMiniRecord", (e, t) => {
|
|
1309
1309
|
lr.init(e, t), Ie.init(e, t);
|
|
1310
1310
|
});
|
|
1311
1311
|
// @__NO_SIDE_EFFECTS__
|
|
1312
1312
|
function qr(e, t, o) {
|
|
1313
|
-
return !t || !t._zod ? new
|
|
1313
|
+
return !t || !t._zod ? new vt({
|
|
1314
1314
|
type: "record",
|
|
1315
1315
|
keyType: /* @__PURE__ */ T(),
|
|
1316
1316
|
valueType: e,
|
|
1317
1317
|
...Ce(t)
|
|
1318
|
-
}) : new
|
|
1318
|
+
}) : new vt({
|
|
1319
1319
|
type: "record",
|
|
1320
1320
|
keyType: e,
|
|
1321
1321
|
valueType: t,
|
|
@@ -1408,7 +1408,7 @@ const kr = /* @__PURE__ */ $({
|
|
|
1408
1408
|
message_id: /* @__PURE__ */ st(/* @__PURE__ */ T()),
|
|
1409
1409
|
created_at: /* @__PURE__ */ T(),
|
|
1410
1410
|
data: Tr
|
|
1411
|
-
}), Zr = /* @__PURE__ */
|
|
1411
|
+
}), Zr = /* @__PURE__ */ wr([
|
|
1412
1412
|
Ar,
|
|
1413
1413
|
Pr,
|
|
1414
1414
|
Or,
|
|
@@ -1441,54 +1441,54 @@ function Xr({
|
|
|
1441
1441
|
onAgentCapturedUrl: i,
|
|
1442
1442
|
onAgentTopic: l,
|
|
1443
1443
|
onAgentSummary: d,
|
|
1444
|
-
onRatingRequest:
|
|
1445
|
-
onBreadcrumb:
|
|
1444
|
+
onRatingRequest: h,
|
|
1445
|
+
onBreadcrumb: p,
|
|
1446
1446
|
fetchHistory: f,
|
|
1447
1447
|
getChatToken: g,
|
|
1448
1448
|
backupPollingInterval: R = Jr
|
|
1449
1449
|
}) {
|
|
1450
|
-
const
|
|
1450
|
+
const w = N(/* @__PURE__ */ new Set());
|
|
1451
1451
|
F(() => {
|
|
1452
1452
|
for (const M of o)
|
|
1453
|
-
M.id &&
|
|
1453
|
+
M.id && w.current.add(M.id);
|
|
1454
1454
|
}, [o]);
|
|
1455
|
-
const z = N(null), A = N(null), E = N(0), j = N(null), P = N(null), b = N(null), q = N(null), _ = N(0), te = N(!1), Q = N(!1), ne = H(r), ae = H(n), D = H(a), J = H(c), Z = H(s), V = H(u), oe = H(i), ce = H(l), G = H(d), ie = H(
|
|
1455
|
+
const z = N(null), A = N(null), E = N(0), j = N(null), P = N(null), b = N(null), q = N(null), _ = N(0), te = N(!1), Q = N(!1), ne = H(r), ae = H(n), D = H(a), J = H(c), Z = H(s), V = H(u), oe = H(i), ce = H(l), G = H(d), ie = H(h), Y = H(p), ue = H(f), be = H(g), { publishError: he } = Ze(), re = e?.app_sync_url, pe = e?.app_sync_api_key, m = !!(re && pe), x = H(re), O = H(pe), U = v(() => {
|
|
1456
1456
|
z.current && (z.current.close(), z.current = null);
|
|
1457
|
-
}, []), k =
|
|
1457
|
+
}, []), k = v(() => {
|
|
1458
1458
|
P.current && (clearInterval(P.current), P.current = null);
|
|
1459
|
-
}, []), y =
|
|
1459
|
+
}, []), y = v(() => {
|
|
1460
1460
|
_.current = 0, b.current && (clearInterval(b.current), b.current = null), q.current && (clearTimeout(q.current), q.current = null);
|
|
1461
|
-
}, []), B =
|
|
1461
|
+
}, []), B = v(() => {
|
|
1462
1462
|
_.current = Math.max(0, _.current - 1), _.current === 0 && y();
|
|
1463
|
-
}, [y]), I =
|
|
1463
|
+
}, [y]), I = v(() => {
|
|
1464
1464
|
j.current && (clearTimeout(j.current), j.current = null);
|
|
1465
1465
|
}, []), K = N(() => {
|
|
1466
|
-
}), se =
|
|
1466
|
+
}), se = v(
|
|
1467
1467
|
async (M) => {
|
|
1468
1468
|
U();
|
|
1469
|
-
const le = x.current,
|
|
1470
|
-
if (!le || !
|
|
1469
|
+
const le = x.current, ve = O.current;
|
|
1470
|
+
if (!le || !ve)
|
|
1471
1471
|
throw new Error("Cannot connect: AppSync settings not available");
|
|
1472
1472
|
const W = be.current(), ze = await yo({
|
|
1473
1473
|
httpEndpoint: le,
|
|
1474
|
-
auth: W ? { authorizationToken: W } : { apiKey:
|
|
1474
|
+
auth: W ? { authorizationToken: W } : { apiKey: ve },
|
|
1475
1475
|
channel: `/default/chat/${M}`,
|
|
1476
1476
|
onDisconnect: () => {
|
|
1477
1477
|
z.current = null, K.current();
|
|
1478
1478
|
},
|
|
1479
1479
|
onEvent: (ke) => {
|
|
1480
|
-
const
|
|
1481
|
-
if (!
|
|
1482
|
-
console.error("Invalid conversation response:",
|
|
1480
|
+
const we = Zr.safeParse(ke);
|
|
1481
|
+
if (!we.success) {
|
|
1482
|
+
console.error("Invalid conversation response:", we.error);
|
|
1483
1483
|
return;
|
|
1484
1484
|
}
|
|
1485
|
-
const ge =
|
|
1485
|
+
const ge = we.data;
|
|
1486
1486
|
switch (ge.data.type) {
|
|
1487
1487
|
case "utterance": {
|
|
1488
1488
|
const L = ge, de = L.message_id ?? crypto.randomUUID();
|
|
1489
|
-
if (
|
|
1489
|
+
if (w.current.has(de))
|
|
1490
1490
|
return;
|
|
1491
|
-
|
|
1491
|
+
w.current.add(de), B(), J.current(), ne.current(
|
|
1492
1492
|
{
|
|
1493
1493
|
message_id: de,
|
|
1494
1494
|
response: {
|
|
@@ -1503,7 +1503,7 @@ function Xr({
|
|
|
1503
1503
|
}
|
|
1504
1504
|
case "error": {
|
|
1505
1505
|
const de = parseInt(ge.data.code);
|
|
1506
|
-
|
|
1506
|
+
he({ code: de, message: jt(de) }), Z.current?.();
|
|
1507
1507
|
return;
|
|
1508
1508
|
}
|
|
1509
1509
|
case "agent_cognition": {
|
|
@@ -1557,7 +1557,7 @@ function Xr({
|
|
|
1557
1557
|
[
|
|
1558
1558
|
U,
|
|
1559
1559
|
B,
|
|
1560
|
-
|
|
1560
|
+
he,
|
|
1561
1561
|
x,
|
|
1562
1562
|
O,
|
|
1563
1563
|
be,
|
|
@@ -1572,7 +1572,7 @@ function Xr({
|
|
|
1572
1572
|
ie,
|
|
1573
1573
|
Y
|
|
1574
1574
|
]
|
|
1575
|
-
), ee =
|
|
1575
|
+
), ee = v(
|
|
1576
1576
|
async (M) => {
|
|
1577
1577
|
let le;
|
|
1578
1578
|
try {
|
|
@@ -1582,27 +1582,27 @@ function Xr({
|
|
|
1582
1582
|
return;
|
|
1583
1583
|
}
|
|
1584
1584
|
if (A.current !== M) return;
|
|
1585
|
-
const
|
|
1585
|
+
const ve = le.filter(
|
|
1586
1586
|
(W) => W.role === "user" || W.role === "assistant"
|
|
1587
1587
|
);
|
|
1588
|
-
|
|
1589
|
-
if (!W.message_id ||
|
|
1588
|
+
ve.forEach((W, ze) => {
|
|
1589
|
+
if (!W.message_id || w.current.has(W.message_id))
|
|
1590
1590
|
return;
|
|
1591
|
-
const ke =
|
|
1591
|
+
const ke = ve[ze - 1]?.message_id ?? null, we = { message_id: W.message_id, response: W.response };
|
|
1592
1592
|
if (W.role === "user") {
|
|
1593
1593
|
ae.current?.(
|
|
1594
|
-
|
|
1594
|
+
we,
|
|
1595
1595
|
M,
|
|
1596
1596
|
ke,
|
|
1597
1597
|
W.created_at
|
|
1598
1598
|
);
|
|
1599
1599
|
return;
|
|
1600
1600
|
}
|
|
1601
|
-
|
|
1601
|
+
w.current.add(W.message_id), B(), ne.current(we, M, ke);
|
|
1602
1602
|
});
|
|
1603
1603
|
},
|
|
1604
1604
|
[ue, ne, ae, B]
|
|
1605
|
-
), Ue =
|
|
1605
|
+
), Ue = v(
|
|
1606
1606
|
(M) => {
|
|
1607
1607
|
k(), P.current = setInterval(
|
|
1608
1608
|
() => ee(M),
|
|
@@ -1610,13 +1610,13 @@ function Xr({
|
|
|
1610
1610
|
);
|
|
1611
1611
|
},
|
|
1612
1612
|
[k, ee, R]
|
|
1613
|
-
), Ve =
|
|
1613
|
+
), Ve = v(
|
|
1614
1614
|
function M() {
|
|
1615
1615
|
if (!te.current || Q.current || j.current)
|
|
1616
1616
|
return;
|
|
1617
1617
|
const le = A.current;
|
|
1618
1618
|
if (!le) return;
|
|
1619
|
-
const
|
|
1619
|
+
const ve = Math.min(
|
|
1620
1620
|
Hr * Math.pow(2, E.current),
|
|
1621
1621
|
Fr
|
|
1622
1622
|
);
|
|
@@ -1627,14 +1627,14 @@ function Xr({
|
|
|
1627
1627
|
} catch {
|
|
1628
1628
|
Q.current = !1, M();
|
|
1629
1629
|
}
|
|
1630
|
-
},
|
|
1630
|
+
}, ve);
|
|
1631
1631
|
},
|
|
1632
1632
|
[se, ee]
|
|
1633
1633
|
);
|
|
1634
1634
|
F(() => {
|
|
1635
1635
|
K.current = Ve;
|
|
1636
1636
|
});
|
|
1637
|
-
const Re =
|
|
1637
|
+
const Re = v(
|
|
1638
1638
|
async (M) => {
|
|
1639
1639
|
if (!m || !M)
|
|
1640
1640
|
throw new Error(
|
|
@@ -1643,9 +1643,9 @@ function Xr({
|
|
|
1643
1643
|
I(), te.current = !0, A.current = M, E.current = 0, Ue(M), await se(M);
|
|
1644
1644
|
},
|
|
1645
1645
|
[m, I, se, Ue]
|
|
1646
|
-
), Ee =
|
|
1646
|
+
), Ee = v(() => {
|
|
1647
1647
|
te.current = !1, A.current = null, E.current = 0, I(), k(), y(), U();
|
|
1648
|
-
}, [I, k, y, U]), We =
|
|
1648
|
+
}, [I, k, y, U]), We = v(() => {
|
|
1649
1649
|
const M = A.current;
|
|
1650
1650
|
if (!M) return;
|
|
1651
1651
|
const le = _.current + 1;
|
|
@@ -1656,8 +1656,8 @@ function Xr({
|
|
|
1656
1656
|
y,
|
|
1657
1657
|
Yr
|
|
1658
1658
|
);
|
|
1659
|
-
}, [ee, y]), He =
|
|
1660
|
-
|
|
1659
|
+
}, [ee, y]), He = v(() => {
|
|
1660
|
+
w.current.clear();
|
|
1661
1661
|
}, []);
|
|
1662
1662
|
return F(() => {
|
|
1663
1663
|
!t || !m || A.current === t || Re(t).catch((M) => {
|
|
@@ -1683,7 +1683,7 @@ function en(e, t) {
|
|
|
1683
1683
|
timestamp: t
|
|
1684
1684
|
};
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function wt(e, t, o) {
|
|
1687
1687
|
const r = (a) => [
|
|
1688
1688
|
...e.slice(0, a),
|
|
1689
1689
|
t,
|
|
@@ -1770,13 +1770,13 @@ function ln({
|
|
|
1770
1770
|
setMessages: i,
|
|
1771
1771
|
currentChat: l,
|
|
1772
1772
|
setCurrentChat: d,
|
|
1773
|
-
onChatClosed:
|
|
1774
|
-
isChatClosed:
|
|
1773
|
+
onChatClosed: h,
|
|
1774
|
+
isChatClosed: p,
|
|
1775
1775
|
onAgentMessage: f
|
|
1776
1776
|
}) {
|
|
1777
|
-
const { saveChatData: g, clearChatData: R, updateLastActivity:
|
|
1777
|
+
const { saveChatData: g, clearChatData: R, updateLastActivity: w, markChatClosed: z } = it({
|
|
1778
1778
|
appId: e
|
|
1779
|
-
}), { publishApiError: A, publishNetworkError: E } = Ze(), { showCognition: j, hideCognition: P } = Dt(), b = H(c), q = H(u), _ = N(0), te =
|
|
1779
|
+
}), { publishApiError: A, publishNetworkError: E } = Ze(), { showCognition: j, hideCognition: P } = Dt(), b = H(c), q = H(u), _ = N(0), te = v(
|
|
1780
1780
|
(m, x, O) => {
|
|
1781
1781
|
if (!m.response.content) return;
|
|
1782
1782
|
const U = !!s?.welcome_message && m.response.content === s.welcome_message, k = q.current.some(
|
|
@@ -1789,7 +1789,7 @@ function ln({
|
|
|
1789
1789
|
i((I) => {
|
|
1790
1790
|
if (_.current !== B || I.some((ee) => ee.isRatingRequest) || I.some((ee) => ee.id === m.message_id) || s?.welcome_message && m.response.content === s.welcome_message)
|
|
1791
1791
|
return I;
|
|
1792
|
-
const K = I.filter((ee) => !ee.isThinking), se =
|
|
1792
|
+
const K = I.filter((ee) => !ee.isThinking), se = wt(
|
|
1793
1793
|
K,
|
|
1794
1794
|
Qr(m),
|
|
1795
1795
|
O
|
|
@@ -1813,7 +1813,7 @@ function ln({
|
|
|
1813
1813
|
q,
|
|
1814
1814
|
f
|
|
1815
1815
|
]
|
|
1816
|
-
), Q =
|
|
1816
|
+
), Q = v(
|
|
1817
1817
|
(m, x, O, U) => {
|
|
1818
1818
|
if (!m.response.content) return;
|
|
1819
1819
|
const k = _.current;
|
|
@@ -1822,7 +1822,7 @@ function ln({
|
|
|
1822
1822
|
(K) => K.id === m.message_id || // A send whose reply POST hasn't resolved still has its local id.
|
|
1823
1823
|
K.sender === "user" && K.isNew && K.content === m.response.content
|
|
1824
1824
|
)) return y;
|
|
1825
|
-
const I =
|
|
1825
|
+
const I = wt(
|
|
1826
1826
|
y,
|
|
1827
1827
|
en(m, U),
|
|
1828
1828
|
O
|
|
@@ -1837,19 +1837,19 @@ function ln({
|
|
|
1837
1837
|
});
|
|
1838
1838
|
},
|
|
1839
1839
|
[i, g, t, a, b]
|
|
1840
|
-
), ne =
|
|
1840
|
+
), ne = v(() => {
|
|
1841
1841
|
P(), i((m) => m.filter((x) => !x.isThinking));
|
|
1842
|
-
}, [i, P]), ae =
|
|
1842
|
+
}, [i, P]), ae = v(() => {
|
|
1843
1843
|
i((m) => [...m.filter((O) => !O.isRatingRequest), on()]);
|
|
1844
1844
|
}, [i]);
|
|
1845
1845
|
F(() => {
|
|
1846
1846
|
}, [ae]);
|
|
1847
|
-
const D =
|
|
1847
|
+
const D = v(
|
|
1848
1848
|
(m) => b.current ? b.current.getChatHistory(m) : Promise.resolve([]),
|
|
1849
1849
|
[b]
|
|
1850
|
-
), J =
|
|
1851
|
-
z(),
|
|
1852
|
-
}, [z,
|
|
1850
|
+
), J = v(() => b.current?.getChatToken() ?? null, [b]), Z = v(() => {
|
|
1851
|
+
z(), h?.();
|
|
1852
|
+
}, [z, h]), { connect: V, disconnect: oe, clearProcessedIds: ce, expectReply: G } = Xr({
|
|
1853
1853
|
chatSettings: s,
|
|
1854
1854
|
chatId: l?.id ?? null,
|
|
1855
1855
|
messages: u,
|
|
@@ -1863,7 +1863,7 @@ function ln({
|
|
|
1863
1863
|
onBreadcrumb: Z,
|
|
1864
1864
|
fetchHistory: D,
|
|
1865
1865
|
getChatToken: J
|
|
1866
|
-
}), ie =
|
|
1866
|
+
}), ie = v(() => {
|
|
1867
1867
|
_.current += 1, P(), oe(), ce(), $t(u), i(
|
|
1868
1868
|
(m) => m.filter((x) => Array.isArray(x) ? !1 : x.isWelcomeMessage)
|
|
1869
1869
|
), R(), d(null);
|
|
@@ -1875,10 +1875,10 @@ function ln({
|
|
|
1875
1875
|
R,
|
|
1876
1876
|
i,
|
|
1877
1877
|
d
|
|
1878
|
-
]), Y =
|
|
1878
|
+
]), Y = v(
|
|
1879
1879
|
(m, x) => i((O) => qt(O, m, x)),
|
|
1880
1880
|
[i]
|
|
1881
|
-
), ue =
|
|
1881
|
+
), ue = v(
|
|
1882
1882
|
async (m) => {
|
|
1883
1883
|
const x = await m.createConversation({
|
|
1884
1884
|
userId: n || t,
|
|
@@ -1901,7 +1901,7 @@ function ln({
|
|
|
1901
1901
|
return x.chat_id;
|
|
1902
1902
|
},
|
|
1903
1903
|
[n, t, a, o, r, d, V]
|
|
1904
|
-
), be =
|
|
1904
|
+
), be = v(
|
|
1905
1905
|
(m, x, O, U) => Promise.all(
|
|
1906
1906
|
O.map(
|
|
1907
1907
|
({ file: k }, y) => m.uploadAttachment({
|
|
@@ -1917,7 +1917,7 @@ function ln({
|
|
|
1917
1917
|
)
|
|
1918
1918
|
),
|
|
1919
1919
|
[Y]
|
|
1920
|
-
),
|
|
1920
|
+
), he = v(
|
|
1921
1921
|
(m, x, O, U) => {
|
|
1922
1922
|
P(), U && i((y) => sn(y, O)), i((y) => y.filter((B) => !B.isThinking));
|
|
1923
1923
|
const k = () => Y(O, (y) => ({ ...y, isFailed: !0 }));
|
|
@@ -1942,15 +1942,15 @@ function ln({
|
|
|
1942
1942
|
d,
|
|
1943
1943
|
R
|
|
1944
1944
|
]
|
|
1945
|
-
), re =
|
|
1945
|
+
), re = v(
|
|
1946
1946
|
async (m, x = []) => {
|
|
1947
1947
|
if (!c || u.some((k) => k.isRatingRequest)) return;
|
|
1948
|
-
if (
|
|
1948
|
+
if (p) {
|
|
1949
1949
|
i((k) => [...k, rn()]);
|
|
1950
1950
|
return;
|
|
1951
1951
|
}
|
|
1952
1952
|
const O = _.current, U = nn(m, x);
|
|
1953
|
-
i((k) => [...k, U]),
|
|
1953
|
+
i((k) => [...k, U]), w();
|
|
1954
1954
|
try {
|
|
1955
1955
|
const k = l?.id || await ue(c), y = await be(
|
|
1956
1956
|
c,
|
|
@@ -1987,7 +1987,7 @@ function ln({
|
|
|
1987
1987
|
), K;
|
|
1988
1988
|
}), G();
|
|
1989
1989
|
} catch (k) {
|
|
1990
|
-
throw
|
|
1990
|
+
throw he(
|
|
1991
1991
|
k,
|
|
1992
1992
|
c,
|
|
1993
1993
|
U.id,
|
|
@@ -1998,23 +1998,23 @@ function ln({
|
|
|
1998
1998
|
[
|
|
1999
1999
|
c,
|
|
2000
2000
|
u,
|
|
2001
|
-
|
|
2001
|
+
p,
|
|
2002
2002
|
i,
|
|
2003
|
-
|
|
2003
|
+
w,
|
|
2004
2004
|
l?.id,
|
|
2005
2005
|
ue,
|
|
2006
2006
|
be,
|
|
2007
2007
|
Y,
|
|
2008
2008
|
g,
|
|
2009
2009
|
G,
|
|
2010
|
-
|
|
2010
|
+
he,
|
|
2011
2011
|
n,
|
|
2012
2012
|
t,
|
|
2013
2013
|
a,
|
|
2014
2014
|
o,
|
|
2015
2015
|
r
|
|
2016
2016
|
]
|
|
2017
|
-
),
|
|
2017
|
+
), pe = v(
|
|
2018
2018
|
async (m) => {
|
|
2019
2019
|
const x = l?.id;
|
|
2020
2020
|
!b.current || !x || await b.current.addRating(x, m);
|
|
@@ -2024,7 +2024,7 @@ function ln({
|
|
|
2024
2024
|
return {
|
|
2025
2025
|
onCleanMessages: ie,
|
|
2026
2026
|
onSendMessage: re,
|
|
2027
|
-
onRateChat:
|
|
2027
|
+
onRateChat: pe
|
|
2028
2028
|
};
|
|
2029
2029
|
}
|
|
2030
2030
|
const cn = { BASE_URL: "/", DEV: !1, MODE: "dev", PROD: !0, SSR: !1, VITE_API_URL: "https://chat.eloquentai.dev", VITE_CDN_URL: "https://cdn.eloquentai.dev", VITE_ENVIRONMENT: "dev", VITE_REGION_API_URL: "https://region.eloquentai.dev" };
|
|
@@ -2032,10 +2032,10 @@ function zt(e) {
|
|
|
2032
2032
|
return typeof window > "u" || typeof import.meta > "u" ? "" : cn[e] || "";
|
|
2033
2033
|
}
|
|
2034
2034
|
const un = zt("VITE_API_URL"), dn = zt("VITE_REGION_API_URL");
|
|
2035
|
-
function
|
|
2035
|
+
function hn() {
|
|
2036
2036
|
return un || "";
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2038
|
+
function pn() {
|
|
2039
2039
|
return dn || "";
|
|
2040
2040
|
}
|
|
2041
2041
|
class fn {
|
|
@@ -2070,7 +2070,7 @@ class fn {
|
|
|
2070
2070
|
* Get organization data by app ID
|
|
2071
2071
|
*/
|
|
2072
2072
|
async getOrganizationByAppId(t) {
|
|
2073
|
-
const o =
|
|
2073
|
+
const o = pn();
|
|
2074
2074
|
return await this.httpClient.getExternal(
|
|
2075
2075
|
`${o}/by-app-id/${t}`
|
|
2076
2076
|
);
|
|
@@ -2169,14 +2169,14 @@ async function yt(e, t = {}) {
|
|
|
2169
2169
|
}
|
|
2170
2170
|
}
|
|
2171
2171
|
const je = /* @__PURE__ */ new Map(), De = /* @__PURE__ */ new Map();
|
|
2172
|
-
function
|
|
2172
|
+
function vn(e, t, o) {
|
|
2173
2173
|
const r = o?.dedupe !== !1, [n, a] = S(
|
|
2174
2174
|
() => je.get(e)
|
|
2175
|
-
), { publishApiError: c, publishNetworkError: s } = Ze(), [u, i] = S(void 0), [l, d] = S(!1),
|
|
2176
|
-
N(() => (
|
|
2177
|
-
|
|
2175
|
+
), { publishApiError: c, publishNetworkError: s } = Ze(), [u, i] = S(void 0), [l, d] = S(!1), h = N(!0);
|
|
2176
|
+
N(() => (h.current = !0, () => {
|
|
2177
|
+
h.current = !1;
|
|
2178
2178
|
}));
|
|
2179
|
-
const
|
|
2179
|
+
const p = v(async () => {
|
|
2180
2180
|
if (je.has(e)) {
|
|
2181
2181
|
const f = je.get(e);
|
|
2182
2182
|
return a(f), f;
|
|
@@ -2188,14 +2188,14 @@ function wn(e, t, o) {
|
|
|
2188
2188
|
const f = t();
|
|
2189
2189
|
r && De.set(e, f);
|
|
2190
2190
|
const g = await f;
|
|
2191
|
-
return je.set(e, g),
|
|
2191
|
+
return je.set(e, g), h.current && a(g), g;
|
|
2192
2192
|
} catch (f) {
|
|
2193
|
-
throw f instanceof at || f instanceof $e && f.status === 403 ? s() : c(f),
|
|
2193
|
+
throw f instanceof at || f instanceof $e && f.status === 403 ? s() : c(f), h.current && i(f), f;
|
|
2194
2194
|
} finally {
|
|
2195
|
-
De.delete(e),
|
|
2195
|
+
De.delete(e), h.current && d(!1);
|
|
2196
2196
|
}
|
|
2197
2197
|
}, [e, r, t, c, s]);
|
|
2198
|
-
return { data: n, error: u, isLoading: l, fetch:
|
|
2198
|
+
return { data: n, error: u, isLoading: l, fetch: p };
|
|
2199
2199
|
}
|
|
2200
2200
|
function xt(e, t) {
|
|
2201
2201
|
const o = e?.deviceId || crypto.randomUUID();
|
|
@@ -2205,7 +2205,7 @@ function xt(e, t) {
|
|
|
2205
2205
|
deviceId: o
|
|
2206
2206
|
} : t ? { userId: t, externalId: t, deviceId: o } : { userId: crypto.randomUUID(), externalId: null, deviceId: o };
|
|
2207
2207
|
}
|
|
2208
|
-
function
|
|
2208
|
+
function wn(e) {
|
|
2209
2209
|
const { appId: t, initialUserId: o } = e, { getSavedChatData: r } = it({ appId: t }), [n, a] = S(
|
|
2210
2210
|
() => xt(r(), o)
|
|
2211
2211
|
), [c, s] = S(o);
|
|
@@ -2230,14 +2230,14 @@ function qn({
|
|
|
2230
2230
|
externalId: c,
|
|
2231
2231
|
deviceId: s,
|
|
2232
2232
|
isReady: u
|
|
2233
|
-
} =
|
|
2233
|
+
} = wn({ appId: t, initialUserId: o }), { isChatExpired: i, clearChatData: l, getSavedChatData: d } = it({
|
|
2234
2234
|
appId: t
|
|
2235
|
-
}), { current:
|
|
2235
|
+
}), { current: h } = N(e || hn()), [p] = S(
|
|
2236
2236
|
new fn({
|
|
2237
|
-
baseURL:
|
|
2237
|
+
baseURL: h,
|
|
2238
2238
|
appId: t
|
|
2239
2239
|
})
|
|
2240
|
-
), [f, g] = S(null), [R,
|
|
2240
|
+
), [f, g] = S(null), [R, w] = S(null), [z, A] = S([]), [E, j] = S(!1), [P, b] = S(!1), [q, _] = S(!0), Q = vn(`sdk-boot-${t}`, () => p.boot()).fetch;
|
|
2241
2241
|
F(() => {
|
|
2242
2242
|
if (i())
|
|
2243
2243
|
l();
|
|
@@ -2249,23 +2249,23 @@ function qn({
|
|
|
2249
2249
|
isChatClosed: Z,
|
|
2250
2250
|
chatToken: V
|
|
2251
2251
|
} = d();
|
|
2252
|
-
ae && D && (
|
|
2252
|
+
ae && D && (w({
|
|
2253
2253
|
id: ae
|
|
2254
|
-
}),
|
|
2254
|
+
}), p.setChatToken(V ?? null), J && J.length > 0 && A(J), Z && b(!0));
|
|
2255
2255
|
}
|
|
2256
|
-
}, [d, i, l,
|
|
2256
|
+
}, [d, i, l, p]);
|
|
2257
2257
|
const ne = N(!1);
|
|
2258
2258
|
return F(() => {
|
|
2259
2259
|
if (ne.current) return;
|
|
2260
2260
|
ne.current = !0, (async () => {
|
|
2261
2261
|
const [D, J] = await ut(
|
|
2262
|
-
yt(() =>
|
|
2262
|
+
yt(() => p.getOrganizationByAppId(t))
|
|
2263
2263
|
);
|
|
2264
2264
|
if (J) {
|
|
2265
2265
|
console.error("Failed to fetch organization data:", J), _(!1), j(!0);
|
|
2266
2266
|
return;
|
|
2267
2267
|
}
|
|
2268
|
-
|
|
2268
|
+
p.setRegion(D.region);
|
|
2269
2269
|
const [Z, V] = await ut(yt(Q));
|
|
2270
2270
|
if (V) {
|
|
2271
2271
|
_(!1), j(!0);
|
|
@@ -2277,18 +2277,18 @@ function qn({
|
|
|
2277
2277
|
messages: G
|
|
2278
2278
|
} = d();
|
|
2279
2279
|
oe && ce && G.some(Kt) && A(
|
|
2280
|
-
await Vt(
|
|
2280
|
+
await Vt(p, oe, G)
|
|
2281
2281
|
);
|
|
2282
2282
|
const ie = Z.chat_settings.welcome_message;
|
|
2283
2283
|
g(Z.chat_settings), _(Z.chat_settings.is_active ?? !0), ie && A((Y) => Y.length > 0 || Y.some((ue) => ue.isWelcomeMessage) ? Y : [tn(ie)]), j(!0);
|
|
2284
2284
|
})();
|
|
2285
|
-
}, [u,
|
|
2285
|
+
}, [u, p, t, Q, d]), {
|
|
2286
2286
|
userId: a,
|
|
2287
2287
|
userName: r,
|
|
2288
2288
|
userData: n,
|
|
2289
2289
|
externalId: c,
|
|
2290
2290
|
deviceId: s,
|
|
2291
|
-
apiClient:
|
|
2291
|
+
apiClient: p,
|
|
2292
2292
|
chatSettings: f,
|
|
2293
2293
|
currentChat: R,
|
|
2294
2294
|
messages: z,
|
|
@@ -2385,7 +2385,7 @@ function An({
|
|
|
2385
2385
|
isEnabled: e,
|
|
2386
2386
|
isOpen: t
|
|
2387
2387
|
}) {
|
|
2388
|
-
const [o, r] = S(En), n = N(null), a = N(0), c = H(t), s = H(o), u =
|
|
2388
|
+
const [o, r] = S(En), n = N(null), a = N(0), c = H(t), s = H(o), u = v(() => {
|
|
2389
2389
|
if (!e) return;
|
|
2390
2390
|
const d = Mn();
|
|
2391
2391
|
if (!d) return;
|
|
@@ -2394,24 +2394,24 @@ function An({
|
|
|
2394
2394
|
} catch {
|
|
2395
2395
|
return;
|
|
2396
2396
|
}
|
|
2397
|
-
const
|
|
2398
|
-
(
|
|
2397
|
+
const h = n.current.state;
|
|
2398
|
+
(h === "suspended" || h === "interrupted") && n.current.resume().catch(() => {
|
|
2399
2399
|
});
|
|
2400
2400
|
}, [e]);
|
|
2401
2401
|
F(() => {
|
|
2402
2402
|
if (!e) return;
|
|
2403
|
-
const d = { capture: !0 },
|
|
2404
|
-
return window.addEventListener("pointerdown",
|
|
2405
|
-
window.removeEventListener("pointerdown",
|
|
2403
|
+
const d = { capture: !0 }, h = () => u();
|
|
2404
|
+
return window.addEventListener("pointerdown", h, d), window.addEventListener("keydown", h, d), () => {
|
|
2405
|
+
window.removeEventListener("pointerdown", h, d), window.removeEventListener("keydown", h, d);
|
|
2406
2406
|
};
|
|
2407
2407
|
}, [e, u]);
|
|
2408
|
-
const i =
|
|
2408
|
+
const i = v(() => {
|
|
2409
2409
|
if (!e || s.current || Tn(c.current)) return;
|
|
2410
2410
|
const d = n.current;
|
|
2411
2411
|
if (!d || d.state !== "running") return;
|
|
2412
|
-
const
|
|
2413
|
-
|
|
2414
|
-
}, [e, s, c]), l =
|
|
2412
|
+
const h = Date.now();
|
|
2413
|
+
h - a.current < Rn || (a.current = h, In(d));
|
|
2414
|
+
}, [e, s, c]), l = v(() => {
|
|
2415
2415
|
r((d) => !d);
|
|
2416
2416
|
}, []);
|
|
2417
2417
|
return F(() => {
|
|
@@ -2433,13 +2433,13 @@ function Un({
|
|
|
2433
2433
|
hasCleanChatButton: l,
|
|
2434
2434
|
// Deprecated aliases, kept until hosts migrate to the is/has names above.
|
|
2435
2435
|
initialOpen: d,
|
|
2436
|
-
closeButton:
|
|
2437
|
-
cleanChatButton:
|
|
2436
|
+
closeButton: h,
|
|
2437
|
+
cleanChatButton: p,
|
|
2438
2438
|
proactiveMessageHideDelay: f = 5e3,
|
|
2439
2439
|
isAlwaysOpen: g = !1,
|
|
2440
2440
|
hasCleanChatButtonOverride: R
|
|
2441
2441
|
}) {
|
|
2442
|
-
const { isMobile:
|
|
2442
|
+
const { isMobile: w, portalContainer: z } = xn(s), {
|
|
2443
2443
|
userId: A,
|
|
2444
2444
|
externalId: E,
|
|
2445
2445
|
deviceId: j,
|
|
@@ -2456,30 +2456,30 @@ function Un({
|
|
|
2456
2456
|
initialUserId: r,
|
|
2457
2457
|
userName: n,
|
|
2458
2458
|
userData: a
|
|
2459
|
-
}), ae = so({ chatProps: c, chatSettings: b }), D = u ?? d ?? !1, J = i ??
|
|
2459
|
+
}), ae = so({ chatProps: c, chatSettings: b }), D = u ?? d ?? !1, J = i ?? h ?? !0, Z = l ?? p ?? !0, V = On(o), [oe, ce] = S(() => g ? !0 : dt(V) === "true" || w ? !1 : D ?? w), [G, ie] = S(!1);
|
|
2460
2460
|
F(() => {
|
|
2461
2461
|
if (!te || G || (ie(!0), g)) return;
|
|
2462
2462
|
const L = b?.initial_open;
|
|
2463
|
-
L != null && (
|
|
2463
|
+
L != null && (w || L && dt(V) === "true" || ce(L));
|
|
2464
2464
|
}, [
|
|
2465
2465
|
te,
|
|
2466
2466
|
G,
|
|
2467
2467
|
b?.initial_open,
|
|
2468
|
-
|
|
2468
|
+
w,
|
|
2469
2469
|
V,
|
|
2470
2470
|
g
|
|
2471
2471
|
]);
|
|
2472
|
-
const Y = b?.initial_open ?? D, ue = b?.close_button ?? J, be = R ?? b?.clean_chat_button ?? Z,
|
|
2472
|
+
const Y = b?.initial_open ?? D, ue = b?.close_button ?? J, be = R ?? b?.clean_chat_button ?? Z, he = b?.proactive_message_hide_delay ?? f, re = An({
|
|
2473
2473
|
isEnabled: b?.notification_sound !== !1,
|
|
2474
2474
|
isOpen: oe
|
|
2475
|
-
}), { unlock:
|
|
2475
|
+
}), { unlock: pe } = re, m = v(
|
|
2476
2476
|
(L) => {
|
|
2477
|
-
g || (
|
|
2477
|
+
g || (pe(), ce((de) => {
|
|
2478
2478
|
const lt = typeof L == "function" ? L(de) : L;
|
|
2479
2479
|
return lt ? io(V) : ao(V, "true", Pn), lt;
|
|
2480
2480
|
}));
|
|
2481
2481
|
},
|
|
2482
|
-
[V, g,
|
|
2482
|
+
[V, g, pe]
|
|
2483
2483
|
), x = Wt(oe, 400), [O, U] = S(
|
|
2484
2484
|
c?.messages ?? []
|
|
2485
2485
|
), [k, y] = S(q), [B, I] = S(!1), [K, se] = S(_);
|
|
@@ -2488,13 +2488,13 @@ function Un({
|
|
|
2488
2488
|
ee !== q && (Ue(q), q && y(q));
|
|
2489
2489
|
const [Ve, Re] = S(Q);
|
|
2490
2490
|
Ve !== Q && (Re(Q), Q && I(!0));
|
|
2491
|
-
const Ee =
|
|
2491
|
+
const Ee = v(() => {
|
|
2492
2492
|
I(!0);
|
|
2493
2493
|
}, []), [We, He] = S(!1), M = te && b?.auto_display_welcome_message && b?.welcome_message ? b.welcome_message : "", le = {
|
|
2494
2494
|
text: M,
|
|
2495
2495
|
isVisible: M !== "" && !We,
|
|
2496
|
-
autoHideDelay:
|
|
2497
|
-
}, { onSendMessage:
|
|
2496
|
+
autoHideDelay: he
|
|
2497
|
+
}, { onSendMessage: ve, onCleanMessages: W, onRateChat: ze } = ln({
|
|
2498
2498
|
appId: o,
|
|
2499
2499
|
userId: A,
|
|
2500
2500
|
userName: n,
|
|
@@ -2537,9 +2537,9 @@ function Un({
|
|
|
2537
2537
|
k,
|
|
2538
2538
|
P
|
|
2539
2539
|
]);
|
|
2540
|
-
const
|
|
2540
|
+
const we = v(() => {
|
|
2541
2541
|
W(), I(!1);
|
|
2542
|
-
}, [W]), ge =
|
|
2542
|
+
}, [W]), ge = v(() => {
|
|
2543
2543
|
He(!0);
|
|
2544
2544
|
}, []);
|
|
2545
2545
|
return {
|
|
@@ -2548,22 +2548,22 @@ function Un({
|
|
|
2548
2548
|
isInitiallyOpen: Y,
|
|
2549
2549
|
hasCloseButton: ue,
|
|
2550
2550
|
hasCleanChatButton: be,
|
|
2551
|
-
isMobile:
|
|
2551
|
+
isMobile: w,
|
|
2552
2552
|
chatId: k?.id ?? null,
|
|
2553
2553
|
chatInterfaceProps: ae,
|
|
2554
2554
|
chatOpen: oe,
|
|
2555
2555
|
chatOpenDebounced: x,
|
|
2556
2556
|
messages: O,
|
|
2557
2557
|
portalContainer: z,
|
|
2558
|
-
onSendMessage:
|
|
2558
|
+
onSendMessage: ve,
|
|
2559
2559
|
setChatOpen: m,
|
|
2560
2560
|
onCleanMessages: W,
|
|
2561
2561
|
proactiveMessage: le,
|
|
2562
2562
|
hideProactiveMessage: ge,
|
|
2563
2563
|
isChatClosed: B,
|
|
2564
|
-
onStartNewChat:
|
|
2564
|
+
onStartNewChat: we,
|
|
2565
2565
|
onRateChat: ze,
|
|
2566
|
-
unlockSound:
|
|
2566
|
+
unlockSound: pe,
|
|
2567
2567
|
isSoundMuted: re.isMuted,
|
|
2568
2568
|
toggleSound: re.toggleMuted
|
|
2569
2569
|
};
|
|
@@ -2601,7 +2601,7 @@ function Dn(e) {
|
|
|
2601
2601
|
}, [e]);
|
|
2602
2602
|
}
|
|
2603
2603
|
function $n() {
|
|
2604
|
-
const [e, t] = S(!1), [o, r] = S(null), n = N(null), a = N(null), c =
|
|
2604
|
+
const [e, t] = S(!1), [o, r] = S(null), n = N(null), a = N(null), c = v((u) => {
|
|
2605
2605
|
const i = (l) => {
|
|
2606
2606
|
r(l), t(!0), a.current = null, n.current && clearTimeout(n.current), n.current = setTimeout(() => {
|
|
2607
2607
|
n.current = null;
|
|
@@ -2610,7 +2610,7 @@ function $n() {
|
|
|
2610
2610
|
}, 1e3);
|
|
2611
2611
|
};
|
|
2612
2612
|
n.current ? a.current = u : i(u);
|
|
2613
|
-
}, []), s =
|
|
2613
|
+
}, []), s = v(() => {
|
|
2614
2614
|
n.current && (clearTimeout(n.current), n.current = null), a.current = null, t(!1), r(null);
|
|
2615
2615
|
}, []);
|
|
2616
2616
|
return {
|
|
@@ -2651,12 +2651,12 @@ function Zn({
|
|
|
2651
2651
|
// Deprecated aliases, resolved in useChat (new name wins).
|
|
2652
2652
|
closeButton: l,
|
|
2653
2653
|
cleanChatButton: d,
|
|
2654
|
-
initialOpen:
|
|
2655
|
-
INTERNAL_ONLY_CHAT_INTERFACE_ONLY:
|
|
2654
|
+
initialOpen: h,
|
|
2655
|
+
INTERNAL_ONLY_CHAT_INTERFACE_ONLY: p = !1,
|
|
2656
2656
|
INTERNAL_ONLY_SHOW_CLEAN_CHAT_BUTTON: f = void 0,
|
|
2657
2657
|
INTERNAL_ONLY_BLOCK_STYLE: g = !1,
|
|
2658
2658
|
INTERNAL_ONLY_FEATURE_MESSAGE_CLICK: R = void 0,
|
|
2659
|
-
INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK:
|
|
2659
|
+
INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK: w = void 0,
|
|
2660
2660
|
INTERNAL_ONLY_ON_CHAT_ID: z = void 0,
|
|
2661
2661
|
INTERNAL_ONLY_HIGHLIGHTED_MESSAGE_ID: A = null,
|
|
2662
2662
|
INTERNAL_ONLY_ON_MESSAGE_SENT: E = void 0,
|
|
@@ -2681,9 +2681,9 @@ function Zn({
|
|
|
2681
2681
|
messages: Y,
|
|
2682
2682
|
portalContainer: ue,
|
|
2683
2683
|
onSendMessage: be,
|
|
2684
|
-
setChatOpen:
|
|
2684
|
+
setChatOpen: he,
|
|
2685
2685
|
proactiveMessage: re,
|
|
2686
|
-
hideProactiveMessage:
|
|
2686
|
+
hideProactiveMessage: pe,
|
|
2687
2687
|
isChatClosed: m,
|
|
2688
2688
|
onStartNewChat: x,
|
|
2689
2689
|
onRateChat: O
|
|
@@ -2699,13 +2699,13 @@ function Zn({
|
|
|
2699
2699
|
isInitiallyOpen: i,
|
|
2700
2700
|
hasCloseButton: s,
|
|
2701
2701
|
hasCleanChatButton: u,
|
|
2702
|
-
initialOpen:
|
|
2702
|
+
initialOpen: h,
|
|
2703
2703
|
closeButton: l,
|
|
2704
2704
|
cleanChatButton: d,
|
|
2705
2705
|
proactiveMessageHideDelay: a,
|
|
2706
2706
|
// Embedded: the interface is the page content with no launcher to reopen
|
|
2707
2707
|
// it, so nothing (boot initial_open, closed-cookie, props) may close it.
|
|
2708
|
-
isAlwaysOpen:
|
|
2708
|
+
isAlwaysOpen: p,
|
|
2709
2709
|
hasCleanChatButtonOverride: f
|
|
2710
2710
|
}), U = N(void 0);
|
|
2711
2711
|
F(() => {
|
|
@@ -2714,7 +2714,7 @@ function Zn({
|
|
|
2714
2714
|
const k = jn(D && Z);
|
|
2715
2715
|
Dn(D && Z);
|
|
2716
2716
|
const y = !_;
|
|
2717
|
-
if (q || y && !
|
|
2717
|
+
if (q || y && !p || !y && !te) return null;
|
|
2718
2718
|
const B = () => /* @__PURE__ */ Be(
|
|
2719
2719
|
"div",
|
|
2720
2720
|
{
|
|
@@ -2773,7 +2773,7 @@ function Zn({
|
|
|
2773
2773
|
Yt,
|
|
2774
2774
|
{
|
|
2775
2775
|
...G,
|
|
2776
|
-
hasIntroAnimation: !
|
|
2776
|
+
hasIntroAnimation: !p,
|
|
2777
2777
|
isTestMode: P === "test",
|
|
2778
2778
|
isOpen: Z,
|
|
2779
2779
|
keyboardInset: k,
|
|
@@ -2790,15 +2790,15 @@ function Zn({
|
|
|
2790
2790
|
onRateChat: O,
|
|
2791
2791
|
isSoundMuted: oe,
|
|
2792
2792
|
onToggleSound: ce,
|
|
2793
|
-
onClose: () =>
|
|
2793
|
+
onClose: () => he(!1),
|
|
2794
2794
|
onCleanChat: () => {
|
|
2795
|
-
x(),
|
|
2795
|
+
x(), w?.();
|
|
2796
2796
|
}
|
|
2797
2797
|
}
|
|
2798
2798
|
)
|
|
2799
2799
|
}
|
|
2800
2800
|
),
|
|
2801
|
-
!
|
|
2801
|
+
!p && /* @__PURE__ */ C(
|
|
2802
2802
|
Je,
|
|
2803
2803
|
{
|
|
2804
2804
|
className: "eloquentai-chat-launcher",
|
|
@@ -2820,7 +2820,7 @@ function Zn({
|
|
|
2820
2820
|
oo,
|
|
2821
2821
|
{
|
|
2822
2822
|
isOpen: Z,
|
|
2823
|
-
toggleBubble: () =>
|
|
2823
|
+
toggleBubble: () => he((K) => !K),
|
|
2824
2824
|
isDarkMode: G?.theme?.mode === "dark"
|
|
2825
2825
|
}
|
|
2826
2826
|
)
|
|
@@ -2850,9 +2850,9 @@ function Zn({
|
|
|
2850
2850
|
{
|
|
2851
2851
|
message: re.text,
|
|
2852
2852
|
isVisible: re.isVisible,
|
|
2853
|
-
onDismiss:
|
|
2853
|
+
onDismiss: pe,
|
|
2854
2854
|
onMessageClick: () => {
|
|
2855
|
-
|
|
2855
|
+
he(!0), pe();
|
|
2856
2856
|
},
|
|
2857
2857
|
autoHideDelay: re.autoHideDelay
|
|
2858
2858
|
}
|