@eloquentai/chat-sdk 0.33.13-dev → 0.33.14-dev
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/chat/chat.d.ts +22 -0
- package/dist/components/chat/{chat.hook.d.ts → hooks/use-chat.d.ts} +3 -3
- package/dist/components/chat/{interface-props.hook.d.ts → hooks/use-interface-props.d.ts} +2 -2
- package/dist/components/chat/{message-events.hook.d.ts → hooks/use-message-events.d.ts} +2 -2
- package/dist/components/chat/{persistence.hook.d.ts → hooks/use-persistence.d.ts} +1 -1
- package/dist/components/chat/{realtime-socket.hook.d.ts → hooks/use-realtime-socket.d.ts} +3 -3
- package/dist/components/chat/{sdk-initialization.hook.d.ts → hooks/use-sdk-initialization.d.ts} +2 -2
- package/dist/components/chat/index.d.ts +1 -22
- package/dist/components/chat/message-mapping.d.ts +17 -0
- package/dist/components/chat-interface/chat-interface.d.ts +2 -0
- package/dist/components/chat-interface/context.d.ts +1 -1
- package/dist/components/chat-interface/index.d.ts +2 -57
- package/dist/components/chat-interface/message-bubble/message-action-buttons.d.ts +6 -0
- package/dist/components/chat-interface/message-bubble/message-animation-state.d.ts +2 -0
- package/dist/components/chat-interface/message-bubble/message-bubble-item.d.ts +7 -0
- package/dist/components/{chat-message-bubble.d.ts → chat-interface/message-bubble/message-bubble.d.ts} +1 -1
- package/dist/components/chat-interface/types.d.ts +56 -0
- package/dist/components/{render-chat.d.ts → embed/render-chat.d.ts} +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/contexts/{agent-cognition-context-definition.d.ts → agent-cognition/agent-cognition-context.d.ts} +1 -1
- package/dist/contexts/{error-handling.utils.d.ts → error-handling/error-context.d.ts} +1 -1
- package/dist/contexts/{constants.d.ts → error-handling/error-messages.d.ts} +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +280 -256
- package/dist/index.mjs.map +1 -1
- package/dist/lib/cookies.d.ts +13 -0
- package/dist/lib/utils.d.ts +0 -20
- package/dist/lib/wrap-promise.d.ts +7 -0
- package/dist/{skeleton-XUmC-tbr.js → skeleton-CjGZA_5X.js} +1570 -1584
- package/dist/skeleton-CjGZA_5X.js.map +1 -0
- package/dist/ui.d.ts +3 -3
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
- package/dist/contexts/utils.d.ts +0 -2
- package/dist/skeleton-XUmC-tbr.js.map +0 -1
- /package/dist/components/chat/{keyboard-inset.hook.d.ts → hooks/use-keyboard-inset.d.ts} +0 -0
- /package/dist/components/chat/{scroll-lock.hook.d.ts → hooks/use-scroll-lock.d.ts} +0 -0
- /package/dist/components/chat/{ui-initialization.hook.d.ts → hooks/use-ui-initialization.d.ts} +0 -0
- /package/dist/components/chat/{user-identity.hook.d.ts → hooks/use-user-identity.d.ts} +0 -0
- /package/dist/components/{chat-rating-bubble.d.ts → chat-interface/rating-message-bubble.d.ts} +0 -0
- /package/dist/components/{chat-bubble.d.ts → embed/chat-bubble.d.ts} +0 -0
- /package/dist/components/{iframe.d.ts → embed/iframe.d.ts} +0 -0
- /package/dist/components/{portal.d.ts → embed/portal.d.ts} +0 -0
- /package/dist/components/{chat → embed}/proactive-message.d.ts +0 -0
- /package/dist/contexts/{agent-cognition.context.d.ts → agent-cognition/agent-cognition-provider.d.ts} +0 -0
- /package/dist/{hooks → contexts/agent-cognition}/use-agent-cognition-context.d.ts +0 -0
- /package/dist/{hooks → contexts/agent-cognition}/use-agent-cognition.d.ts +0 -0
- /package/dist/contexts/{error-handling.context.d.ts → error-handling/error-provider.d.ts} +0 -0
- /package/dist/hooks/{useFetch.d.ts → use-fetch.d.ts} +0 -0
- /package/dist/{type.d.ts → types/message.d.ts} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { L as mt, c as He, u as wt, g as Fe, X as vt, d as Ae, e as bt, f as qt,
|
|
3
|
-
import { jsx as m, jsxs as _e, Fragment as
|
|
4
|
-
import { useState as q, useEffect as Z, useMemo as Le, useRef as L, useCallback as
|
|
2
|
+
import { L as mt, c as He, u as wt, g as Fe, X as vt, d as Ae, e as bt, f as qt, h as yt, A as xt, E as kt, i as _t, S as Ct, C as St, T as It } from "./skeleton-CjGZA_5X.js";
|
|
3
|
+
import { jsx as m, jsxs as _e, Fragment as Ge } from "react/jsx-runtime";
|
|
4
|
+
import { useState as q, useEffect as Z, useMemo as Le, useRef as L, useCallback as v } from "react";
|
|
5
5
|
import { createPortal as Ze } from "react-dom";
|
|
6
|
-
import
|
|
6
|
+
import Et 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] = "31334120-d537-452b-8787-caa8fb4737c5", e._sentryDebugIdIdentifier = "sentry-dbid-31334120-d537-452b-8787-caa8fb4737c5");
|
|
10
10
|
} catch {
|
|
11
11
|
}
|
|
12
12
|
if (typeof window < "u") {
|
|
@@ -33,8 +33,8 @@ if (typeof window < "u") {
|
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
const je = '/*! 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-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-container-lg:32rem;--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-lg:1.125rem;--eloq-text-lg--line-height:calc(1.75 / 1.125);--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-message-in:message-in .3s ease-out both;--eloq-animate-slide-up-in:slide-up-in .3s ease-out both;--eloq-animate-dialog-overlay-in:dialog-overlay-in .2s ease-out both;--eloq-animate-dialog-overlay-out:dialog-overlay-out .2s ease-in both;--eloq-animate-dialog-content-in:dialog-content-in .2s ease-out both;--eloq-animate-dialog-content-out:dialog-content-out .2s ease-in 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\\: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\\:fixed{position:fixed}.eloq\\:relative{position:relative}.eloq\\:inset-0{inset:0}.eloq\\:top-0{top:0}.eloq\\:top-0\\.5{top:calc(var(--eloq-spacing) * .5)}.eloq\\:top-4{top:calc(var(--eloq-spacing) * 4)}.eloq\\:top-\\[50\\%\\]{top:50%}.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-4{right:calc(var(--eloq-spacing) * 4)}.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-\\[50\\%\\]{left:50%}.eloq\\:left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.eloq\\:z-10{z-index:10}.eloq\\:z-20{z-index:20}.eloq\\:z-50{z-index:50}.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\\:grid{display:grid}.eloq\\:hidden{display:none}.eloq\\:inline-flex{display:inline-flex}.eloq\\:aspect-square{aspect-ratio:1}.eloq\\:h-2\\.5{height:calc(var(--eloq-spacing) * 2.5)}.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-\\[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-\\[90vw\\]{max-width:90vw}.eloq\\:max-w-full{max-width:100%}.eloq\\:max-w-lg{max-width:var(--eloq-container-lg)}.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\\:translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;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-slide-up-in{animation:var(--eloq-animate-slide-up-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-col-reverse{flex-direction:column-reverse}.eloq\\:flex-row{flex-direction:row}.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-4{gap:calc(var(--eloq-spacing) * 4)}.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-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\\/80{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/80{background-color:color-mix(in oklab,var(--eloq-color-black) 80%,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-red-50{background-color:var(--eloq-color-red-50)}.eloq\\:bg-transparent{background-color:#0000}.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\\:bg-white\\/90{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-white\\/90{background-color:color-mix(in oklab,var(--eloq-color-white) 90%,transparent)}}.eloq\\:fill-none{fill:none}.eloq\\:fill-yellow-400{fill:var(--eloq-color-yellow-400)}.eloq\\:object-contain{object-fit:contain}.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-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\\: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-lg{font-size:var(--eloq-text-lg);line-height:var(--tw-leading,var(--eloq-text-lg--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-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-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px 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\\: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\\: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-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-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-muted:hover{background-color:hsl(var(--muted))}.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\\:ring-2:focus{--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\\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.eloq\\:focus\\:ring-offset-2:focus{--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\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.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\\:pointer-events-none:disabled{pointer-events:none}.eloq\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.eloq\\:disabled\\:opacity-50:disabled{opacity:.5}.eloq\\:data-\\[state\\=closed\\]\\:animate-dialog-content-out[data-state=closed]{animation:var(--eloq-animate-dialog-content-out)}.eloq\\:data-\\[state\\=closed\\]\\:animate-dialog-overlay-out[data-state=closed]{animation:var(--eloq-animate-dialog-overlay-out)}.eloq\\:data-\\[state\\=open\\]\\:animate-dialog-content-in[data-state=open]{animation:var(--eloq-animate-dialog-content-in)}.eloq\\:data-\\[state\\=open\\]\\:animate-dialog-overlay-in[data-state=open]{animation:var(--eloq-animate-dialog-overlay-in)}.eloq\\:data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.eloq\\:data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}@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\\:flex-row{flex-direction:row}.eloq\\:sm\\:justify-end{justify-content:flex-end}:where(.eloq\\:sm\\: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)))}.eloq\\:sm\\:rounded-lg{border-radius:var(--eloq-radius-lg)}.eloq\\:sm\\:text-left{text-align:left}.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 *),.eloq\\:dark\\:bg-card\\/90:is(.dark *){background-color:hsl(var(--card))}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-card\\/90:is(.dark *){background-color:color-mix(in oklab,hsl(var(--card)) 90%,transparent)}}.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-foreground:is(.dark *){color:hsl(var(--foreground))}.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}}@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 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)}}@keyframes dialog-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes dialog-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes dialog-content-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes dialog-content-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}@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-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}}', Tt = ".eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}";
|
|
37
|
-
function
|
|
36
|
+
const Ne = '/*! 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-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-container-lg:32rem;--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-lg:1.125rem;--eloq-text-lg--line-height:calc(1.75 / 1.125);--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-message-in:message-in .3s ease-out both;--eloq-animate-slide-up-in:slide-up-in .3s ease-out both;--eloq-animate-dialog-overlay-in:dialog-overlay-in .2s ease-out both;--eloq-animate-dialog-overlay-out:dialog-overlay-out .2s ease-in both;--eloq-animate-dialog-content-in:dialog-content-in .2s ease-out both;--eloq-animate-dialog-content-out:dialog-content-out .2s ease-in 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\\: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\\:fixed{position:fixed}.eloq\\:relative{position:relative}.eloq\\:inset-0{inset:0}.eloq\\:top-0{top:0}.eloq\\:top-0\\.5{top:calc(var(--eloq-spacing) * .5)}.eloq\\:top-4{top:calc(var(--eloq-spacing) * 4)}.eloq\\:top-\\[50\\%\\]{top:50%}.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-4{right:calc(var(--eloq-spacing) * 4)}.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-\\[50\\%\\]{left:50%}.eloq\\:left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.eloq\\:z-10{z-index:10}.eloq\\:z-20{z-index:20}.eloq\\:z-50{z-index:50}.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\\:grid{display:grid}.eloq\\:hidden{display:none}.eloq\\:inline-flex{display:inline-flex}.eloq\\:aspect-square{aspect-ratio:1}.eloq\\:h-2\\.5{height:calc(var(--eloq-spacing) * 2.5)}.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-\\[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-\\[90vw\\]{max-width:90vw}.eloq\\:max-w-full{max-width:100%}.eloq\\:max-w-lg{max-width:var(--eloq-container-lg)}.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\\:translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;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-slide-up-in{animation:var(--eloq-animate-slide-up-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-col-reverse{flex-direction:column-reverse}.eloq\\:flex-row{flex-direction:row}.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-4{gap:calc(var(--eloq-spacing) * 4)}.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-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\\/80{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/80{background-color:color-mix(in oklab,var(--eloq-color-black) 80%,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-red-50{background-color:var(--eloq-color-red-50)}.eloq\\:bg-transparent{background-color:#0000}.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\\:bg-white\\/90{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-white\\/90{background-color:color-mix(in oklab,var(--eloq-color-white) 90%,transparent)}}.eloq\\:fill-none{fill:none}.eloq\\:fill-yellow-400{fill:var(--eloq-color-yellow-400)}.eloq\\:object-contain{object-fit:contain}.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-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\\: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-lg{font-size:var(--eloq-text-lg);line-height:var(--tw-leading,var(--eloq-text-lg--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-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-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px 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\\: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\\: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-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-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-muted:hover{background-color:hsl(var(--muted))}.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\\:ring-2:focus{--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\\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.eloq\\:focus\\:ring-offset-2:focus{--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\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.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\\:pointer-events-none:disabled{pointer-events:none}.eloq\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.eloq\\:disabled\\:opacity-50:disabled{opacity:.5}.eloq\\:data-\\[state\\=closed\\]\\:animate-dialog-content-out[data-state=closed]{animation:var(--eloq-animate-dialog-content-out)}.eloq\\:data-\\[state\\=closed\\]\\:animate-dialog-overlay-out[data-state=closed]{animation:var(--eloq-animate-dialog-overlay-out)}.eloq\\:data-\\[state\\=open\\]\\:animate-dialog-content-in[data-state=open]{animation:var(--eloq-animate-dialog-content-in)}.eloq\\:data-\\[state\\=open\\]\\:animate-dialog-overlay-in[data-state=open]{animation:var(--eloq-animate-dialog-overlay-in)}.eloq\\:data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.eloq\\:data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}@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\\:flex-row{flex-direction:row}.eloq\\:sm\\:justify-end{justify-content:flex-end}:where(.eloq\\:sm\\: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)))}.eloq\\:sm\\:rounded-lg{border-radius:var(--eloq-radius-lg)}.eloq\\:sm\\:text-left{text-align:left}.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 *),.eloq\\:dark\\:bg-card\\/90:is(.dark *){background-color:hsl(var(--card))}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-card\\/90:is(.dark *){background-color:color-mix(in oklab,hsl(var(--card)) 90%,transparent)}}.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-foreground:is(.dark *){color:hsl(var(--foreground))}.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}}@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 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)}}@keyframes dialog-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes dialog-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes dialog-content-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes dialog-content-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}@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-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}}', zt = ".eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}";
|
|
37
|
+
function Rt({
|
|
38
38
|
toggleBubble: e,
|
|
39
39
|
isDarkMode: t = !1
|
|
40
40
|
}) {
|
|
@@ -52,17 +52,17 @@ function Mt({
|
|
|
52
52
|
}
|
|
53
53
|
) });
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function je({ children: e, head: t, ...o }) {
|
|
56
56
|
const [r, a] = q(null), l = r?.contentWindow?.document?.head, n = r?.contentWindow?.document?.body;
|
|
57
57
|
return /* @__PURE__ */ _e("iframe", { ...o, ref: a, children: [
|
|
58
58
|
l && Ze(t, l),
|
|
59
59
|
n && Ze(e, n)
|
|
60
60
|
] });
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Tt({ children: e, container: t }) {
|
|
63
63
|
return Ze(e, t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Mt({
|
|
66
66
|
message: e,
|
|
67
67
|
isVisible: t,
|
|
68
68
|
onDismiss: o,
|
|
@@ -172,6 +172,19 @@ function Pt({
|
|
|
172
172
|
}
|
|
173
173
|
) : null;
|
|
174
174
|
}
|
|
175
|
+
function Xe(e) {
|
|
176
|
+
if (typeof document > "u") return null;
|
|
177
|
+
const t = document.cookie.match(new RegExp(`(?:^|; )${e}=([^;]*)`));
|
|
178
|
+
return t ? decodeURIComponent(t[1]) : null;
|
|
179
|
+
}
|
|
180
|
+
function At(e, t, o) {
|
|
181
|
+
if (typeof document > "u") return;
|
|
182
|
+
const r = new Date(Date.now() + o * 60 * 60 * 1e3).toUTCString();
|
|
183
|
+
document.cookie = `${e}=${encodeURIComponent(t)}; expires=${r}; path=/; SameSite=Lax`;
|
|
184
|
+
}
|
|
185
|
+
function Pt(e) {
|
|
186
|
+
typeof document > "u" || (document.cookie = `${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`);
|
|
187
|
+
}
|
|
175
188
|
function Ot({
|
|
176
189
|
chatProps: e,
|
|
177
190
|
chatSettings: t
|
|
@@ -306,7 +319,7 @@ class $t {
|
|
|
306
319
|
return r;
|
|
307
320
|
}
|
|
308
321
|
}
|
|
309
|
-
function
|
|
322
|
+
function Nt() {
|
|
310
323
|
if (typeof window > "u")
|
|
311
324
|
return {};
|
|
312
325
|
const e = new URLSearchParams(window.location.search), t = {};
|
|
@@ -314,9 +327,9 @@ function jt() {
|
|
|
314
327
|
t[r] = o;
|
|
315
328
|
}), t;
|
|
316
329
|
}
|
|
317
|
-
const
|
|
330
|
+
const jt = "eloquent-ai::conversation-data", ye = typeof window < "u", Bt = 1800 * 1e3;
|
|
318
331
|
function Ke({ appId: e }) {
|
|
319
|
-
const t = Le(() => `${
|
|
332
|
+
const t = Le(() => `${jt}-${e}`, [e]), o = Le(
|
|
320
333
|
() => ({
|
|
321
334
|
conversationId: null,
|
|
322
335
|
userId: null,
|
|
@@ -324,7 +337,7 @@ function Ke({ appId: e }) {
|
|
|
324
337
|
messages: []
|
|
325
338
|
}),
|
|
326
339
|
[]
|
|
327
|
-
), r =
|
|
340
|
+
), r = v(() => {
|
|
328
341
|
try {
|
|
329
342
|
if (!ye) return o;
|
|
330
343
|
const i = localStorage.getItem(t);
|
|
@@ -335,14 +348,14 @@ function Ke({ appId: e }) {
|
|
|
335
348
|
i
|
|
336
349
|
), o;
|
|
337
350
|
}
|
|
338
|
-
}, [t, o]), a =
|
|
351
|
+
}, [t, o]), a = v(() => {
|
|
339
352
|
try {
|
|
340
353
|
const i = r();
|
|
341
354
|
return i.lastActivity ? Date.now() - i.lastActivity > Bt : !0;
|
|
342
355
|
} catch (i) {
|
|
343
356
|
return console.error("Error checking conversation expiration:", i), !0;
|
|
344
357
|
}
|
|
345
|
-
}, [r]), l =
|
|
358
|
+
}, [r]), l = v(
|
|
346
359
|
(i, d, h, u, p) => {
|
|
347
360
|
try {
|
|
348
361
|
if (!ye) return;
|
|
@@ -360,7 +373,7 @@ function Ke({ appId: e }) {
|
|
|
360
373
|
}
|
|
361
374
|
},
|
|
362
375
|
[t]
|
|
363
|
-
), n =
|
|
376
|
+
), n = v(() => {
|
|
364
377
|
try {
|
|
365
378
|
if (!ye) return;
|
|
366
379
|
const i = r();
|
|
@@ -374,7 +387,7 @@ function Ke({ appId: e }) {
|
|
|
374
387
|
i
|
|
375
388
|
);
|
|
376
389
|
}
|
|
377
|
-
}, [t, r]), s =
|
|
390
|
+
}, [t, r]), s = v(() => {
|
|
378
391
|
try {
|
|
379
392
|
if (!ye) return;
|
|
380
393
|
const i = localStorage.getItem(t);
|
|
@@ -395,7 +408,7 @@ function Ke({ appId: e }) {
|
|
|
395
408
|
i
|
|
396
409
|
);
|
|
397
410
|
}
|
|
398
|
-
}, [t, o]), c =
|
|
411
|
+
}, [t, o]), c = v(() => {
|
|
399
412
|
try {
|
|
400
413
|
if (!ye) return;
|
|
401
414
|
const i = r();
|
|
@@ -463,7 +476,7 @@ function Gt(e) {
|
|
|
463
476
|
} catch {
|
|
464
477
|
}
|
|
465
478
|
g || (w ? l(f) : h(new Error(f)));
|
|
466
|
-
},
|
|
479
|
+
}, S = (f) => {
|
|
467
480
|
u.readyState === Vt && u.send(JSON.stringify(f));
|
|
468
481
|
}, C = (f) => {
|
|
469
482
|
y && clearTimeout(y), y = setTimeout(() => {
|
|
@@ -471,7 +484,7 @@ function Gt(e) {
|
|
|
471
484
|
}, Zt);
|
|
472
485
|
};
|
|
473
486
|
u.addEventListener("open", () => {
|
|
474
|
-
p !== "closed" && (
|
|
487
|
+
p !== "closed" && (S({ type: "connection_init" }), C("connection_ack"));
|
|
475
488
|
}), u.addEventListener("message", (f) => {
|
|
476
489
|
if (p === "closed") return;
|
|
477
490
|
let w;
|
|
@@ -484,7 +497,7 @@ function Gt(e) {
|
|
|
484
497
|
switch (w.type) {
|
|
485
498
|
case "connection_ack": {
|
|
486
499
|
if (p !== "connecting") return;
|
|
487
|
-
p = "subscribing", typeof w.connectionTimeoutMs == "number" && (x = w.connectionTimeoutMs),
|
|
500
|
+
p = "subscribing", typeof w.connectionTimeoutMs == "number" && (x = w.connectionTimeoutMs), S({
|
|
488
501
|
type: "subscribe",
|
|
489
502
|
id: i,
|
|
490
503
|
channel: r,
|
|
@@ -502,7 +515,7 @@ function Gt(e) {
|
|
|
502
515
|
Date.now() - R > x && _("Keep-alive timeout");
|
|
503
516
|
}, Kt), d({
|
|
504
517
|
close: () => {
|
|
505
|
-
g = !0,
|
|
518
|
+
g = !0, S({ type: "unsubscribe", id: i }), _("Closed by client");
|
|
506
519
|
}
|
|
507
520
|
});
|
|
508
521
|
return;
|
|
@@ -519,17 +532,17 @@ function Gt(e) {
|
|
|
519
532
|
case "data": {
|
|
520
533
|
if (w.id !== i) return;
|
|
521
534
|
R = Date.now();
|
|
522
|
-
let
|
|
523
|
-
if (typeof
|
|
535
|
+
let I = w.event;
|
|
536
|
+
if (typeof I == "string")
|
|
524
537
|
try {
|
|
525
|
-
|
|
538
|
+
I = JSON.parse(I);
|
|
526
539
|
} catch {
|
|
527
540
|
console.warn(
|
|
528
541
|
"[EloquentChatSDK] Unparseable realtime event ignored"
|
|
529
542
|
);
|
|
530
543
|
return;
|
|
531
544
|
}
|
|
532
|
-
a(
|
|
545
|
+
a(I);
|
|
533
546
|
return;
|
|
534
547
|
}
|
|
535
548
|
case "broadcast_error": {
|
|
@@ -549,7 +562,7 @@ function Gt(e) {
|
|
|
549
562
|
});
|
|
550
563
|
});
|
|
551
564
|
}
|
|
552
|
-
var
|
|
565
|
+
var Ye;
|
|
553
566
|
function K(e, t, o) {
|
|
554
567
|
function r(s, c) {
|
|
555
568
|
if (s._zod || Object.defineProperty(s, "_zod", {
|
|
@@ -589,10 +602,10 @@ class ke extends Error {
|
|
|
589
602
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
590
603
|
}
|
|
591
604
|
}
|
|
592
|
-
(
|
|
593
|
-
const
|
|
605
|
+
(Ye = globalThis).__zod_globalConfig ?? (Ye.__zod_globalConfig = {});
|
|
606
|
+
const Qe = globalThis.__zod_globalConfig;
|
|
594
607
|
function fe(e) {
|
|
595
|
-
return e && Object.assign(
|
|
608
|
+
return e && Object.assign(Qe, e), Qe;
|
|
596
609
|
}
|
|
597
610
|
function Xt(e, t) {
|
|
598
611
|
return typeof t == "bigint" ? t.toString() : t;
|
|
@@ -611,13 +624,13 @@ function it(e) {
|
|
|
611
624
|
const t = e.startsWith("^") ? 1 : 0, o = e.endsWith("$") ? e.length - 1 : e.length;
|
|
612
625
|
return e.slice(t, o);
|
|
613
626
|
}
|
|
614
|
-
const
|
|
627
|
+
const et = /* @__PURE__ */ Symbol("evaluating");
|
|
615
628
|
function oe(e, t, o) {
|
|
616
629
|
let r;
|
|
617
630
|
Object.defineProperty(e, t, {
|
|
618
631
|
get() {
|
|
619
|
-
if (r !==
|
|
620
|
-
return r === void 0 && (r =
|
|
632
|
+
if (r !== et)
|
|
633
|
+
return r === void 0 && (r = et, r = o()), r;
|
|
621
634
|
},
|
|
622
635
|
set(a) {
|
|
623
636
|
Object.defineProperty(e, t, {
|
|
@@ -633,7 +646,7 @@ const st = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
|
633
646
|
function Qt(e) {
|
|
634
647
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
635
648
|
}
|
|
636
|
-
function
|
|
649
|
+
function tt(e) {
|
|
637
650
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
638
651
|
}
|
|
639
652
|
function eo(e, t, o) {
|
|
@@ -671,7 +684,7 @@ function ro(e, t) {
|
|
|
671
684
|
function ze(e) {
|
|
672
685
|
return typeof e == "string" ? e : e?.message;
|
|
673
686
|
}
|
|
674
|
-
function
|
|
687
|
+
function Se(e, t, o) {
|
|
675
688
|
const r = e.message ? e.message : ze(e.inst?._zod.def?.error?.(e)) ?? ze(t?.error?.(e)) ?? ze(o.customError?.(e)) ?? ze(o.localeError?.(e)) ?? "Invalid input", { inst: a, continue: l, input: n, ...s } = e;
|
|
676
689
|
return s.path ?? (s.path = []), s.message = r, t?.reportInput && (s.input = n), s;
|
|
677
690
|
}
|
|
@@ -691,7 +704,7 @@ const lt = (e, t) => {
|
|
|
691
704
|
if (n instanceof Promise)
|
|
692
705
|
throw new ke();
|
|
693
706
|
if (n.issues.length) {
|
|
694
|
-
const s = new (a?.Err ?? e)(n.issues.map((c) =>
|
|
707
|
+
const s = new (a?.Err ?? e)(n.issues.map((c) => Se(c, l, fe())));
|
|
695
708
|
throw st(s, a?.callee), s;
|
|
696
709
|
}
|
|
697
710
|
return n.value;
|
|
@@ -699,7 +712,7 @@ const lt = (e, t) => {
|
|
|
699
712
|
const l = r ? { ...r, async: !0 } : { async: !0 };
|
|
700
713
|
let n = t._zod.run({ value: o, issues: [] }, l);
|
|
701
714
|
if (n instanceof Promise && (n = await n), n.issues.length) {
|
|
702
|
-
const s = new (a?.Err ?? e)(n.issues.map((c) =>
|
|
715
|
+
const s = new (a?.Err ?? e)(n.issues.map((c) => Se(c, l, fe())));
|
|
703
716
|
throw st(s, a?.callee), s;
|
|
704
717
|
}
|
|
705
718
|
return n.value;
|
|
@@ -709,14 +722,14 @@ const lt = (e, t) => {
|
|
|
709
722
|
throw new ke();
|
|
710
723
|
return l.issues.length ? {
|
|
711
724
|
success: !1,
|
|
712
|
-
error: new (e ?? no)(l.issues.map((n) =>
|
|
725
|
+
error: new (e ?? no)(l.issues.map((n) => Se(n, a, fe())))
|
|
713
726
|
} : { success: !0, data: l.value };
|
|
714
727
|
}, ct = /* @__PURE__ */ co(Oe), uo = (e) => async (t, o, r) => {
|
|
715
728
|
const a = r ? { ...r, async: !0 } : { async: !0 };
|
|
716
729
|
let l = t._zod.run({ value: o, issues: [] }, a);
|
|
717
730
|
return l instanceof Promise && (l = await l), l.issues.length ? {
|
|
718
731
|
success: !1,
|
|
719
|
-
error: new e(l.issues.map((n) =>
|
|
732
|
+
error: new e(l.issues.map((n) => Se(n, a, fe())))
|
|
720
733
|
} : { success: !0, data: l.value };
|
|
721
734
|
}, dt = /* @__PURE__ */ uo(Oe), po = (e) => {
|
|
722
735
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
@@ -921,7 +934,7 @@ const bo = /* @__PURE__ */ K("$ZodObject", (e, t) => {
|
|
|
921
934
|
return l ? vo(d, i, s, c, r.value, e) : d.length ? Promise.all(d).then(() => s) : s;
|
|
922
935
|
};
|
|
923
936
|
});
|
|
924
|
-
function
|
|
937
|
+
function ot(e, t, o, r) {
|
|
925
938
|
for (const l of e)
|
|
926
939
|
if (l.issues.length === 0)
|
|
927
940
|
return t.value = l.value, t;
|
|
@@ -930,7 +943,7 @@ function rt(e, t, o, r) {
|
|
|
930
943
|
code: "invalid_union",
|
|
931
944
|
input: t.value,
|
|
932
945
|
inst: o,
|
|
933
|
-
errors: e.map((l) => l.issues.map((n) =>
|
|
946
|
+
errors: e.map((l) => l.issues.map((n) => Se(n, r, fe())))
|
|
934
947
|
}), t);
|
|
935
948
|
}
|
|
936
949
|
const qo = /* @__PURE__ */ K("$ZodUnion", (e, t) => {
|
|
@@ -962,13 +975,13 @@ const qo = /* @__PURE__ */ K("$ZodUnion", (e, t) => {
|
|
|
962
975
|
n.push(c);
|
|
963
976
|
}
|
|
964
977
|
}
|
|
965
|
-
return l ? Promise.all(n).then((s) =>
|
|
978
|
+
return l ? Promise.all(n).then((s) => ot(s, r, e, a)) : ot(n, r, e, a);
|
|
966
979
|
};
|
|
967
980
|
}), yo = /* @__PURE__ */ K("$ZodLiteral", (e, t) => {
|
|
968
981
|
if (he.init(e, t), t.values.length === 0)
|
|
969
982
|
throw new Error("Cannot create literal schema with no valid values");
|
|
970
983
|
const o = new Set(t.values);
|
|
971
|
-
e._zod.values = o, e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ?
|
|
984
|
+
e._zod.values = o, e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? tt(r) : r ? tt(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, a) => {
|
|
972
985
|
const l = r.value;
|
|
973
986
|
return o.has(l) || r.issues.push({
|
|
974
987
|
code: "invalid_value",
|
|
@@ -1016,12 +1029,12 @@ const me = /* @__PURE__ */ K("ZodMiniType", (e, t) => {
|
|
|
1016
1029
|
function T(e) {
|
|
1017
1030
|
return /* @__PURE__ */ ko(Co);
|
|
1018
1031
|
}
|
|
1019
|
-
const
|
|
1032
|
+
const So = /* @__PURE__ */ K("ZodMiniNull", (e, t) => {
|
|
1020
1033
|
mo.init(e, t), me.init(e, t);
|
|
1021
1034
|
});
|
|
1022
1035
|
// @__NO_SIDE_EFFECTS__
|
|
1023
|
-
function
|
|
1024
|
-
return /* @__PURE__ */ _o(
|
|
1036
|
+
function Io(e) {
|
|
1037
|
+
return /* @__PURE__ */ _o(So);
|
|
1025
1038
|
}
|
|
1026
1039
|
const Eo = /* @__PURE__ */ K("ZodMiniObject", (e, t) => {
|
|
1027
1040
|
bo.init(e, t), me.init(e, t), oe(e, "shape", () => t.shape);
|
|
@@ -1087,15 +1100,15 @@ const Ao = /* @__PURE__ */ O({
|
|
|
1087
1100
|
}), $o = /* @__PURE__ */ O({
|
|
1088
1101
|
type: /* @__PURE__ */ ae("agent_summary"),
|
|
1089
1102
|
content: /* @__PURE__ */ T()
|
|
1090
|
-
}),
|
|
1103
|
+
}), No = /* @__PURE__ */ O({
|
|
1091
1104
|
type: /* @__PURE__ */ ae("chat_rating"),
|
|
1092
1105
|
content: /* @__PURE__ */ T()
|
|
1093
|
-
}),
|
|
1106
|
+
}), jo = /* @__PURE__ */ O({
|
|
1094
1107
|
type: /* @__PURE__ */ ae("breadcrumb"),
|
|
1095
1108
|
content: /* @__PURE__ */ T()
|
|
1096
1109
|
}), Bo = /* @__PURE__ */ O({
|
|
1097
1110
|
type: /* @__PURE__ */ ae("chat_escalated"),
|
|
1098
|
-
content: /* @__PURE__ */
|
|
1111
|
+
content: /* @__PURE__ */ Io()
|
|
1099
1112
|
}), Lo = /* @__PURE__ */ O({
|
|
1100
1113
|
type: /* @__PURE__ */ ae("error"),
|
|
1101
1114
|
code: /* @__PURE__ */ T()
|
|
@@ -1124,10 +1137,10 @@ const Ao = /* @__PURE__ */ O({
|
|
|
1124
1137
|
data: $o
|
|
1125
1138
|
}), Go = /* @__PURE__ */ O({
|
|
1126
1139
|
created_at: /* @__PURE__ */ T(),
|
|
1127
|
-
data:
|
|
1140
|
+
data: No
|
|
1128
1141
|
}), Xo = /* @__PURE__ */ O({
|
|
1129
1142
|
created_at: /* @__PURE__ */ T(),
|
|
1130
|
-
data:
|
|
1143
|
+
data: jo
|
|
1131
1144
|
}), Yo = /* @__PURE__ */ O({
|
|
1132
1145
|
message_id: /* @__PURE__ */ Ve(/* @__PURE__ */ T()),
|
|
1133
1146
|
created_at: /* @__PURE__ */ T(),
|
|
@@ -1167,22 +1180,22 @@ function rr({
|
|
|
1167
1180
|
for (const M of o)
|
|
1168
1181
|
M.id && R.current.add(M.id);
|
|
1169
1182
|
}, [o]);
|
|
1170
|
-
const y = L(null), U = L(null), A = L(0), _ = L(null),
|
|
1183
|
+
const y = L(null), U = L(null), A = L(0), _ = L(null), S = L(null), C = L(!1), f = L(!1), w = W(r), I = W(a), Q = W(l), E = W(n), P = W(s), N = W(c), J = W(i), H = W(d), j = W(h), B = W(u), F = W(p), b = W(g), { publishError: z } = Ae(), V = e?.app_sync_url, k = e?.app_sync_api_key, D = !!(V && k), $ = W(V), G = W(k), ie = v(() => {
|
|
1171
1184
|
y.current && (y.current.close(), y.current = null);
|
|
1172
|
-
}, []), ue =
|
|
1173
|
-
|
|
1174
|
-
}, []), se =
|
|
1185
|
+
}, []), ue = v(() => {
|
|
1186
|
+
S.current && (clearInterval(S.current), S.current = null);
|
|
1187
|
+
}, []), se = v(() => {
|
|
1175
1188
|
_.current && (clearTimeout(_.current), _.current = null);
|
|
1176
1189
|
}, []), pe = L(() => {
|
|
1177
|
-
}), le =
|
|
1190
|
+
}), le = v(
|
|
1178
1191
|
async (M) => {
|
|
1179
1192
|
ie();
|
|
1180
1193
|
const ee = $.current, Y = G.current;
|
|
1181
1194
|
if (!ee || !Y)
|
|
1182
1195
|
throw new Error("Cannot connect: AppSync settings not available");
|
|
1183
|
-
const
|
|
1196
|
+
const Ie = b.current(), De = await Gt({
|
|
1184
1197
|
httpEndpoint: ee,
|
|
1185
|
-
auth:
|
|
1198
|
+
auth: Ie ? { authorizationToken: Ie } : { apiKey: Y },
|
|
1186
1199
|
channel: `/default/chat/${M}`,
|
|
1187
1200
|
onDisconnect: () => {
|
|
1188
1201
|
y.current = null, pe.current();
|
|
@@ -1219,12 +1232,12 @@ function rr({
|
|
|
1219
1232
|
}
|
|
1220
1233
|
case "agent_cognition": {
|
|
1221
1234
|
const X = re;
|
|
1222
|
-
|
|
1235
|
+
I.current(X.data.content);
|
|
1223
1236
|
return;
|
|
1224
1237
|
}
|
|
1225
1238
|
case "agent_captured_url": {
|
|
1226
1239
|
const X = re;
|
|
1227
|
-
|
|
1240
|
+
N.current?.(X.data.content);
|
|
1228
1241
|
return;
|
|
1229
1242
|
}
|
|
1230
1243
|
case "agent_topic": {
|
|
@@ -1238,11 +1251,11 @@ function rr({
|
|
|
1238
1251
|
return;
|
|
1239
1252
|
}
|
|
1240
1253
|
case "chat_closed_expired": {
|
|
1241
|
-
P.current?.(),
|
|
1254
|
+
P.current?.(), j.current?.();
|
|
1242
1255
|
return;
|
|
1243
1256
|
}
|
|
1244
1257
|
case "chat_rating": {
|
|
1245
|
-
|
|
1258
|
+
j.current?.();
|
|
1246
1259
|
return;
|
|
1247
1260
|
}
|
|
1248
1261
|
case "breadcrumb": {
|
|
@@ -1250,7 +1263,7 @@ function rr({
|
|
|
1250
1263
|
return;
|
|
1251
1264
|
}
|
|
1252
1265
|
case "chat_escalated": {
|
|
1253
|
-
P.current?.(),
|
|
1266
|
+
P.current?.(), j.current?.();
|
|
1254
1267
|
return;
|
|
1255
1268
|
}
|
|
1256
1269
|
default:
|
|
@@ -1270,19 +1283,19 @@ function rr({
|
|
|
1270
1283
|
z,
|
|
1271
1284
|
$,
|
|
1272
1285
|
G,
|
|
1273
|
-
|
|
1286
|
+
b,
|
|
1274
1287
|
w,
|
|
1275
|
-
|
|
1288
|
+
I,
|
|
1276
1289
|
Q,
|
|
1277
1290
|
E,
|
|
1278
1291
|
P,
|
|
1279
|
-
|
|
1292
|
+
N,
|
|
1280
1293
|
J,
|
|
1281
1294
|
H,
|
|
1282
|
-
|
|
1295
|
+
j,
|
|
1283
1296
|
B
|
|
1284
1297
|
]
|
|
1285
|
-
), ce =
|
|
1298
|
+
), ce = v(
|
|
1286
1299
|
async (M) => {
|
|
1287
1300
|
try {
|
|
1288
1301
|
const ee = await F.current(M);
|
|
@@ -1296,15 +1309,15 @@ function rr({
|
|
|
1296
1309
|
}
|
|
1297
1310
|
},
|
|
1298
1311
|
[F, w]
|
|
1299
|
-
), we =
|
|
1312
|
+
), we = v(
|
|
1300
1313
|
(M) => {
|
|
1301
|
-
ue(),
|
|
1314
|
+
ue(), S.current = setInterval(
|
|
1302
1315
|
() => ce(M),
|
|
1303
1316
|
x
|
|
1304
1317
|
);
|
|
1305
1318
|
},
|
|
1306
1319
|
[ue, ce, x]
|
|
1307
|
-
), ve =
|
|
1320
|
+
), ve = v(
|
|
1308
1321
|
function M() {
|
|
1309
1322
|
if (!C.current || f.current || _.current)
|
|
1310
1323
|
return;
|
|
@@ -1328,7 +1341,7 @@ function rr({
|
|
|
1328
1341
|
Z(() => {
|
|
1329
1342
|
pe.current = ve;
|
|
1330
1343
|
});
|
|
1331
|
-
const be =
|
|
1344
|
+
const be = v(
|
|
1332
1345
|
async (M) => {
|
|
1333
1346
|
if (!D || !M)
|
|
1334
1347
|
throw new Error(
|
|
@@ -1337,9 +1350,9 @@ function rr({
|
|
|
1337
1350
|
se(), C.current = !0, U.current = M, A.current = 0, we(M), await le(M);
|
|
1338
1351
|
},
|
|
1339
1352
|
[D, se, le, we]
|
|
1340
|
-
), qe =
|
|
1353
|
+
), qe = v(() => {
|
|
1341
1354
|
C.current = !1, U.current = null, A.current = 0, se(), ue(), ie();
|
|
1342
|
-
}, [se, ue, ie]), Ue =
|
|
1355
|
+
}, [se, ue, ie]), Ue = v(() => {
|
|
1343
1356
|
R.current.clear();
|
|
1344
1357
|
}, []);
|
|
1345
1358
|
return Z(() => {
|
|
@@ -1350,7 +1363,41 @@ function rr({
|
|
|
1350
1363
|
qe();
|
|
1351
1364
|
}, [qe]), { connect: be, disconnect: qe, clearProcessedIds: Ue };
|
|
1352
1365
|
}
|
|
1353
|
-
function nr({
|
|
1366
|
+
function nr(e) {
|
|
1367
|
+
return {
|
|
1368
|
+
id: e.message_id,
|
|
1369
|
+
content: e.response.content ?? "",
|
|
1370
|
+
sender: "assistant",
|
|
1371
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
1372
|
+
};
|
|
1373
|
+
}
|
|
1374
|
+
function ar(e) {
|
|
1375
|
+
return {
|
|
1376
|
+
id: crypto.randomUUID(),
|
|
1377
|
+
content: e,
|
|
1378
|
+
sender: "assistant",
|
|
1379
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1380
|
+
isWelcomeMessage: !0
|
|
1381
|
+
};
|
|
1382
|
+
}
|
|
1383
|
+
function ir() {
|
|
1384
|
+
return {
|
|
1385
|
+
id: crypto.randomUUID(),
|
|
1386
|
+
content: "",
|
|
1387
|
+
sender: "assistant",
|
|
1388
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1389
|
+
isRatingRequest: !0
|
|
1390
|
+
};
|
|
1391
|
+
}
|
|
1392
|
+
function sr() {
|
|
1393
|
+
return {
|
|
1394
|
+
id: crypto.randomUUID(),
|
|
1395
|
+
content: "This conversation is closed, please start a new chat.",
|
|
1396
|
+
sender: "assistant",
|
|
1397
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
1398
|
+
};
|
|
1399
|
+
}
|
|
1400
|
+
function lr({
|
|
1354
1401
|
appId: e,
|
|
1355
1402
|
userId: t,
|
|
1356
1403
|
userName: o,
|
|
@@ -1368,19 +1415,14 @@ function nr({
|
|
|
1368
1415
|
}) {
|
|
1369
1416
|
const { saveChatData: g, clearChatData: x, updateLastActivity: R, markChatClosed: y } = Ke({
|
|
1370
1417
|
appId: e
|
|
1371
|
-
}), { publishApiError: U, publishNetworkError: A } = Ae(), { showCognition: _, hideCognition:
|
|
1372
|
-
(
|
|
1373
|
-
|
|
1374
|
-
if (V.some(($) => $.isRatingRequest) || s?.welcome_message &&
|
|
1418
|
+
}), { publishApiError: U, publishNetworkError: A } = Ae(), { showCognition: _, hideCognition: S } = qt(), C = W(n), f = v(
|
|
1419
|
+
(b, z) => {
|
|
1420
|
+
b.response.content && i((V) => {
|
|
1421
|
+
if (V.some(($) => $.isRatingRequest) || s?.welcome_message && b.response.content === s.welcome_message)
|
|
1375
1422
|
return V;
|
|
1376
1423
|
const D = [
|
|
1377
1424
|
...V.filter(($) => !$.isThinking),
|
|
1378
|
-
|
|
1379
|
-
id: v.message_id,
|
|
1380
|
-
content: v.response.content ?? "",
|
|
1381
|
-
sender: "assistant",
|
|
1382
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
1383
|
-
}
|
|
1425
|
+
nr(b)
|
|
1384
1426
|
];
|
|
1385
1427
|
return g(
|
|
1386
1428
|
z,
|
|
@@ -1392,68 +1434,51 @@ function nr({
|
|
|
1392
1434
|
});
|
|
1393
1435
|
},
|
|
1394
1436
|
[s, l, g, i, t, C]
|
|
1395
|
-
), w =
|
|
1396
|
-
|
|
1397
|
-
}, [i,
|
|
1398
|
-
i((
|
|
1399
|
-
...v.filter((V) => !V.isRatingRequest),
|
|
1400
|
-
{
|
|
1401
|
-
id: crypto.randomUUID(),
|
|
1402
|
-
content: "",
|
|
1403
|
-
sender: "assistant",
|
|
1404
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1405
|
-
isRatingRequest: !0
|
|
1406
|
-
}
|
|
1407
|
-
]);
|
|
1437
|
+
), w = v(() => {
|
|
1438
|
+
S(), i((b) => b.filter((z) => !z.isThinking));
|
|
1439
|
+
}, [i, S]), I = v(() => {
|
|
1440
|
+
i((b) => [...b.filter((V) => !V.isRatingRequest), ir()]);
|
|
1408
1441
|
}, [i]);
|
|
1409
1442
|
Z(() => {
|
|
1410
|
-
}, [
|
|
1411
|
-
const Q =
|
|
1412
|
-
(
|
|
1443
|
+
}, [I]);
|
|
1444
|
+
const Q = v(
|
|
1445
|
+
(b) => C.current ? C.current.getChatHistory(b) : Promise.resolve([]),
|
|
1413
1446
|
[C]
|
|
1414
|
-
), E =
|
|
1447
|
+
), E = v(() => C.current?.getChatToken() ?? null, [C]), P = v(() => {
|
|
1415
1448
|
y(), u?.();
|
|
1416
|
-
}, [y, u]), { connect:
|
|
1449
|
+
}, [y, u]), { connect: N, disconnect: J, clearProcessedIds: H } = rr({
|
|
1417
1450
|
chatSettings: s,
|
|
1418
1451
|
chatId: d?.id ?? null,
|
|
1419
1452
|
messages: c,
|
|
1420
1453
|
onMessage: f,
|
|
1421
1454
|
onCognition: _,
|
|
1422
|
-
onCognitionComplete:
|
|
1455
|
+
onCognitionComplete: S,
|
|
1423
1456
|
onError: w,
|
|
1424
1457
|
onChatClosed: P,
|
|
1425
|
-
onRatingRequest:
|
|
1458
|
+
onRatingRequest: I,
|
|
1426
1459
|
onBreadcrumb: P,
|
|
1427
1460
|
fetchHistory: Q,
|
|
1428
1461
|
getChatToken: E
|
|
1429
|
-
}),
|
|
1430
|
-
|
|
1431
|
-
(
|
|
1462
|
+
}), j = v(() => {
|
|
1463
|
+
S(), J(), H(), i(
|
|
1464
|
+
(b) => b.filter((z) => Array.isArray(z) ? !1 : z.isWelcomeMessage)
|
|
1432
1465
|
), x(), h(null);
|
|
1433
1466
|
}, [
|
|
1434
|
-
|
|
1467
|
+
S,
|
|
1435
1468
|
J,
|
|
1436
1469
|
H,
|
|
1437
1470
|
x,
|
|
1438
1471
|
i,
|
|
1439
1472
|
h
|
|
1440
|
-
]), B =
|
|
1441
|
-
async (
|
|
1473
|
+
]), B = v(
|
|
1474
|
+
async (b) => {
|
|
1442
1475
|
if (!n || c.some((k) => k.isRatingRequest)) return;
|
|
1443
1476
|
if (p) {
|
|
1444
|
-
i((k) => [
|
|
1445
|
-
...k,
|
|
1446
|
-
{
|
|
1447
|
-
id: crypto.randomUUID(),
|
|
1448
|
-
content: "This conversation is closed, please start a new chat.",
|
|
1449
|
-
sender: "assistant",
|
|
1450
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
1451
|
-
}
|
|
1452
|
-
]);
|
|
1477
|
+
i((k) => [...k, sr()]);
|
|
1453
1478
|
return;
|
|
1454
1479
|
}
|
|
1455
1480
|
const z = {
|
|
1456
|
-
...
|
|
1481
|
+
...b,
|
|
1457
1482
|
id: crypto.randomUUID(),
|
|
1458
1483
|
isNew: !0
|
|
1459
1484
|
};
|
|
@@ -1469,11 +1494,11 @@ function nr({
|
|
|
1469
1494
|
userName: o,
|
|
1470
1495
|
userData: r,
|
|
1471
1496
|
externalMetadata: {
|
|
1472
|
-
searchParams:
|
|
1497
|
+
searchParams: Nt()
|
|
1473
1498
|
}
|
|
1474
1499
|
})).chat_id, h({ id: k });
|
|
1475
1500
|
try {
|
|
1476
|
-
await
|
|
1501
|
+
await N(k);
|
|
1477
1502
|
} catch (G) {
|
|
1478
1503
|
console.warn(
|
|
1479
1504
|
"Failed to connect realtime channel, continuing with REST-only delivery:",
|
|
@@ -1482,7 +1507,7 @@ function nr({
|
|
|
1482
1507
|
}
|
|
1483
1508
|
}
|
|
1484
1509
|
const D = await n.replyToConversation({
|
|
1485
|
-
text:
|
|
1510
|
+
text: b.content,
|
|
1486
1511
|
conversationId: k,
|
|
1487
1512
|
userId: a || t,
|
|
1488
1513
|
deviceId: l,
|
|
@@ -1495,7 +1520,7 @@ function nr({
|
|
|
1495
1520
|
)
|
|
1496
1521
|
);
|
|
1497
1522
|
} catch (k) {
|
|
1498
|
-
throw
|
|
1523
|
+
throw S(), i((D) => D.filter(($) => !$.isThinking)), k instanceof Pe || k instanceof de && k.status === 403 ? (A(), k) : (U(k), k instanceof de && // A 401 here means the chat's session token is invalid/expired
|
|
1499
1524
|
// (or the chat closed) — treat it the same as a client-side
|
|
1500
1525
|
// expired chat: drop the stale session and let the next send
|
|
1501
1526
|
// start a fresh one, instead of surfacing an error.
|
|
@@ -1518,39 +1543,39 @@ function nr({
|
|
|
1518
1543
|
t,
|
|
1519
1544
|
l,
|
|
1520
1545
|
h,
|
|
1521
|
-
|
|
1522
|
-
|
|
1546
|
+
N,
|
|
1547
|
+
S,
|
|
1523
1548
|
U,
|
|
1524
1549
|
A,
|
|
1525
1550
|
x,
|
|
1526
1551
|
o,
|
|
1527
1552
|
r
|
|
1528
1553
|
]
|
|
1529
|
-
), F =
|
|
1530
|
-
async (
|
|
1554
|
+
), F = v(
|
|
1555
|
+
async (b) => {
|
|
1531
1556
|
const z = d?.id;
|
|
1532
|
-
!C.current || !z || await C.current.addRating(z,
|
|
1557
|
+
!C.current || !z || await C.current.addRating(z, b);
|
|
1533
1558
|
},
|
|
1534
1559
|
[d?.id, C]
|
|
1535
1560
|
);
|
|
1536
1561
|
return {
|
|
1537
|
-
onCleanMessages:
|
|
1562
|
+
onCleanMessages: j,
|
|
1538
1563
|
onSendMessage: B,
|
|
1539
1564
|
onRateChat: F
|
|
1540
1565
|
};
|
|
1541
1566
|
}
|
|
1542
|
-
const
|
|
1567
|
+
const cr = { 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" };
|
|
1543
1568
|
function ut(e) {
|
|
1544
|
-
return typeof window > "u" || typeof import.meta > "u" ? "" :
|
|
1569
|
+
return typeof window > "u" || typeof import.meta > "u" ? "" : cr[e] || "";
|
|
1545
1570
|
}
|
|
1546
|
-
const
|
|
1547
|
-
function
|
|
1548
|
-
return
|
|
1571
|
+
const dr = ut("VITE_API_URL"), ur = ut("VITE_REGION_API_URL");
|
|
1572
|
+
function pr() {
|
|
1573
|
+
return dr || "";
|
|
1549
1574
|
}
|
|
1550
|
-
function
|
|
1551
|
-
return
|
|
1575
|
+
function hr() {
|
|
1576
|
+
return ur || "";
|
|
1552
1577
|
}
|
|
1553
|
-
class
|
|
1578
|
+
class gr {
|
|
1554
1579
|
httpClient;
|
|
1555
1580
|
userId = null;
|
|
1556
1581
|
conversationId = null;
|
|
@@ -1582,7 +1607,7 @@ class dr {
|
|
|
1582
1607
|
* Get organization data by app ID
|
|
1583
1608
|
*/
|
|
1584
1609
|
async getOrganizationByAppId(t) {
|
|
1585
|
-
const o =
|
|
1610
|
+
const o = hr();
|
|
1586
1611
|
return await this.httpClient.getExternal(
|
|
1587
1612
|
`${o}/by-app-id/${t}`
|
|
1588
1613
|
);
|
|
@@ -1636,41 +1661,48 @@ class dr {
|
|
|
1636
1661
|
)).data;
|
|
1637
1662
|
}
|
|
1638
1663
|
}
|
|
1639
|
-
|
|
1664
|
+
async function rt(e) {
|
|
1665
|
+
try {
|
|
1666
|
+
return [await e, null];
|
|
1667
|
+
} catch (t) {
|
|
1668
|
+
return [null, t];
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
const fr = {
|
|
1640
1672
|
retries: 3,
|
|
1641
1673
|
minDelayMs: 200,
|
|
1642
1674
|
maxDelayMs: 1e3,
|
|
1643
1675
|
factor: 2
|
|
1644
1676
|
};
|
|
1645
|
-
function
|
|
1677
|
+
function mr(e) {
|
|
1646
1678
|
return e instanceof Pe ? !0 : e instanceof de ? e.status === 429 || e.status >= 500 : !1;
|
|
1647
1679
|
}
|
|
1648
|
-
function
|
|
1680
|
+
function wr(e, t) {
|
|
1649
1681
|
const o = t.minDelayMs * t.factor ** e, r = Math.min(o, t.maxDelayMs);
|
|
1650
1682
|
return Math.random() * r;
|
|
1651
1683
|
}
|
|
1652
1684
|
async function nt(e, t = {}) {
|
|
1653
|
-
const o = { ...
|
|
1685
|
+
const o = { ...fr, ...t };
|
|
1654
1686
|
for (let r = 0; ; r++)
|
|
1655
1687
|
try {
|
|
1656
1688
|
return await e();
|
|
1657
1689
|
} catch (a) {
|
|
1658
|
-
if (r >= o.retries || !
|
|
1690
|
+
if (r >= o.retries || !mr(a))
|
|
1659
1691
|
throw a;
|
|
1660
1692
|
await new Promise(
|
|
1661
|
-
(l) => setTimeout(l,
|
|
1693
|
+
(l) => setTimeout(l, wr(r, o))
|
|
1662
1694
|
);
|
|
1663
1695
|
}
|
|
1664
1696
|
}
|
|
1665
1697
|
const Re = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map();
|
|
1666
|
-
function
|
|
1698
|
+
function vr(e, t, o) {
|
|
1667
1699
|
const r = o?.dedupe !== !1, [a, l] = q(
|
|
1668
1700
|
() => Re.get(e)
|
|
1669
1701
|
), { publishApiError: n, publishNetworkError: s } = Ae(), [c, i] = q(void 0), [d, h] = q(!1), u = L(!0);
|
|
1670
1702
|
L(() => (u.current = !0, () => {
|
|
1671
1703
|
u.current = !1;
|
|
1672
1704
|
}));
|
|
1673
|
-
const p =
|
|
1705
|
+
const p = v(async () => {
|
|
1674
1706
|
if (Re.has(e)) {
|
|
1675
1707
|
const g = Re.get(e);
|
|
1676
1708
|
return l(g), g;
|
|
@@ -1699,7 +1731,7 @@ function at(e, t) {
|
|
|
1699
1731
|
deviceId: o
|
|
1700
1732
|
} : t ? { userId: t, externalId: t, deviceId: o } : { userId: crypto.randomUUID(), externalId: null, deviceId: o };
|
|
1701
1733
|
}
|
|
1702
|
-
function
|
|
1734
|
+
function br(e) {
|
|
1703
1735
|
const { appId: t, initialUserId: o } = e, { getSavedChatData: r } = Ke({ appId: t }), [a, l] = q(
|
|
1704
1736
|
() => at(r(), o)
|
|
1705
1737
|
), [n, s] = q(o);
|
|
@@ -1712,7 +1744,7 @@ function fr(e) {
|
|
|
1712
1744
|
externalId: a.externalId
|
|
1713
1745
|
};
|
|
1714
1746
|
}
|
|
1715
|
-
function
|
|
1747
|
+
function qr({
|
|
1716
1748
|
apiUrl: e,
|
|
1717
1749
|
appId: t,
|
|
1718
1750
|
initialUserId: o,
|
|
@@ -1724,57 +1756,49 @@ function mr({
|
|
|
1724
1756
|
externalId: n,
|
|
1725
1757
|
deviceId: s,
|
|
1726
1758
|
isReady: c
|
|
1727
|
-
} =
|
|
1759
|
+
} = br({ appId: t, initialUserId: o }), { isChatExpired: i, clearChatData: d, getSavedChatData: h } = Ke({
|
|
1728
1760
|
appId: t
|
|
1729
|
-
}), { current: u } = L(e ||
|
|
1730
|
-
new
|
|
1761
|
+
}), { current: u } = L(e || pr()), [p] = q(
|
|
1762
|
+
new gr({
|
|
1731
1763
|
baseURL: u,
|
|
1732
1764
|
appId: t
|
|
1733
1765
|
})
|
|
1734
|
-
), [g, x] = q(null), [R, y] = q(null), [U, A] = q([]), [_,
|
|
1766
|
+
), [g, x] = q(null), [R, y] = q(null), [U, A] = q([]), [_, S] = q(!1), [C, f] = q(!1), [w, I] = q(!0), E = vr(`sdk-boot-${t}`, () => p.boot()).fetch;
|
|
1735
1767
|
Z(() => {
|
|
1736
1768
|
if (i())
|
|
1737
1769
|
d();
|
|
1738
1770
|
else {
|
|
1739
1771
|
const {
|
|
1740
|
-
conversationId:
|
|
1772
|
+
conversationId: N,
|
|
1741
1773
|
userId: J,
|
|
1742
1774
|
messages: H,
|
|
1743
|
-
isChatClosed:
|
|
1775
|
+
isChatClosed: j,
|
|
1744
1776
|
chatToken: B
|
|
1745
1777
|
} = h();
|
|
1746
|
-
|
|
1747
|
-
id:
|
|
1748
|
-
}), p.setChatToken(B ?? null), H && H.length > 0 && A(H),
|
|
1778
|
+
N && J && (y({
|
|
1779
|
+
id: N
|
|
1780
|
+
}), p.setChatToken(B ?? null), H && H.length > 0 && A(H), j && f(!0));
|
|
1749
1781
|
}
|
|
1750
1782
|
}, [h, i, d, p]);
|
|
1751
1783
|
const P = L(!1);
|
|
1752
1784
|
return Z(() => {
|
|
1753
1785
|
if (P.current) return;
|
|
1754
1786
|
P.current = !0, (async () => {
|
|
1755
|
-
const [J, H] = await
|
|
1787
|
+
const [J, H] = await rt(
|
|
1756
1788
|
nt(() => p.getOrganizationByAppId(t))
|
|
1757
1789
|
);
|
|
1758
1790
|
if (H) {
|
|
1759
|
-
console.error("Failed to fetch organization data:", H),
|
|
1791
|
+
console.error("Failed to fetch organization data:", H), I(!1), S(!0);
|
|
1760
1792
|
return;
|
|
1761
1793
|
}
|
|
1762
1794
|
p.setRegion(J.region);
|
|
1763
|
-
const [
|
|
1795
|
+
const [j, B] = await rt(nt(E));
|
|
1764
1796
|
if (B) {
|
|
1765
|
-
|
|
1797
|
+
I(!1), S(!0);
|
|
1766
1798
|
return;
|
|
1767
1799
|
}
|
|
1768
|
-
const F =
|
|
1769
|
-
x(
|
|
1770
|
-
{
|
|
1771
|
-
id: crypto.randomUUID(),
|
|
1772
|
-
content: F,
|
|
1773
|
-
sender: "assistant",
|
|
1774
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1775
|
-
isWelcomeMessage: !0
|
|
1776
|
-
}
|
|
1777
|
-
]), I(!0);
|
|
1800
|
+
const F = j.chat_settings.welcome_message;
|
|
1801
|
+
x(j.chat_settings), I(j.chat_settings.is_active ?? !0), F && A((b) => b.length > 0 || b.some((z) => z.isWelcomeMessage) ? b : [ar(F)]), S(!0);
|
|
1778
1802
|
})();
|
|
1779
1803
|
}, [c, p, t, E]), {
|
|
1780
1804
|
userId: l,
|
|
@@ -1792,11 +1816,11 @@ function mr({
|
|
|
1792
1816
|
};
|
|
1793
1817
|
}
|
|
1794
1818
|
const pt = "(max-width: 640px)";
|
|
1795
|
-
function
|
|
1819
|
+
function yr() {
|
|
1796
1820
|
return typeof window > "u" ? !1 : window.matchMedia(pt).matches;
|
|
1797
1821
|
}
|
|
1798
|
-
function
|
|
1799
|
-
const [t, o] = q(
|
|
1822
|
+
function xr(e) {
|
|
1823
|
+
const [t, o] = q(yr), [r, a] = q(
|
|
1800
1824
|
null
|
|
1801
1825
|
), l = e ?? t, n = typeof window > "u";
|
|
1802
1826
|
return Z(() => {
|
|
@@ -1817,8 +1841,8 @@ function vr(e) {
|
|
|
1817
1841
|
portalContainer: r
|
|
1818
1842
|
};
|
|
1819
1843
|
}
|
|
1820
|
-
const
|
|
1821
|
-
function
|
|
1844
|
+
const kr = 2, _r = (e) => `eloquent-ai:chat-widget-closed-${e}`;
|
|
1845
|
+
function Cr({
|
|
1822
1846
|
environment: e,
|
|
1823
1847
|
apiUrl: t,
|
|
1824
1848
|
appId: o,
|
|
@@ -1838,28 +1862,28 @@ function yr({
|
|
|
1838
1862
|
isAlwaysOpen: x = !1,
|
|
1839
1863
|
hasCleanChatButtonOverride: R
|
|
1840
1864
|
}) {
|
|
1841
|
-
const { isMobile: y, portalContainer: U } =
|
|
1865
|
+
const { isMobile: y, portalContainer: U } = xr(s), {
|
|
1842
1866
|
userId: A,
|
|
1843
1867
|
externalId: _,
|
|
1844
|
-
deviceId:
|
|
1868
|
+
deviceId: S,
|
|
1845
1869
|
apiClient: C,
|
|
1846
1870
|
chatSettings: f,
|
|
1847
1871
|
currentChat: w,
|
|
1848
|
-
messages:
|
|
1872
|
+
messages: I,
|
|
1849
1873
|
isReady: Q,
|
|
1850
1874
|
isChatClosed: E,
|
|
1851
1875
|
isChatActive: P
|
|
1852
|
-
} =
|
|
1876
|
+
} = qr({
|
|
1853
1877
|
apiUrl: t,
|
|
1854
1878
|
appId: o,
|
|
1855
1879
|
initialUserId: r,
|
|
1856
1880
|
userName: a,
|
|
1857
1881
|
userData: l
|
|
1858
|
-
}),
|
|
1882
|
+
}), N = Ot({ chatProps: n, chatSettings: f }), J = c ?? h ?? !1, H = i ?? u ?? !0, j = d ?? p ?? !0, B = _r(o), [F, b] = q(() => x ? !0 : Xe(B) === "true" || y ? !1 : J ?? y), [z, V] = q(!1);
|
|
1859
1883
|
Z(() => {
|
|
1860
1884
|
if (!Q || z || (V(!0), x)) return;
|
|
1861
1885
|
const ne = f?.initial_open;
|
|
1862
|
-
ne != null && (y || ne && Xe(B) === "true" ||
|
|
1886
|
+
ne != null && (y || ne && Xe(B) === "true" || b(ne));
|
|
1863
1887
|
}, [
|
|
1864
1888
|
Q,
|
|
1865
1889
|
z,
|
|
@@ -1868,47 +1892,47 @@ function yr({
|
|
|
1868
1892
|
B,
|
|
1869
1893
|
x
|
|
1870
1894
|
]);
|
|
1871
|
-
const k = f?.initial_open ?? J, D = f?.close_button ?? H, $ = R ?? f?.clean_chat_button ??
|
|
1895
|
+
const k = f?.initial_open ?? J, D = f?.close_button ?? H, $ = R ?? f?.clean_chat_button ?? j, G = f?.proactive_message_hide_delay ?? g, ie = v(
|
|
1872
1896
|
(ne) => {
|
|
1873
|
-
x ||
|
|
1897
|
+
x || b((Ee) => {
|
|
1874
1898
|
const Je = typeof ne == "function" ? ne(Ee) : ne;
|
|
1875
|
-
return Je ?
|
|
1899
|
+
return Je ? Pt(B) : At(B, "true", kr), Je;
|
|
1876
1900
|
});
|
|
1877
1901
|
},
|
|
1878
1902
|
[B, x]
|
|
1879
|
-
), ue =
|
|
1903
|
+
), ue = yt(F, 400), [se, pe] = q(
|
|
1880
1904
|
n?.messages ?? []
|
|
1881
|
-
), [le, ce] = q(w), [we, ve] = q(!1), [be, qe] = q(
|
|
1882
|
-
be !==
|
|
1905
|
+
), [le, ce] = q(w), [we, ve] = q(!1), [be, qe] = q(I);
|
|
1906
|
+
be !== I && (qe(I), I.length > 0 && pe(I));
|
|
1883
1907
|
const [Ue, M] = q(w);
|
|
1884
1908
|
Ue !== w && (M(w), w && ce(w));
|
|
1885
1909
|
const [ee, Y] = q(E);
|
|
1886
1910
|
ee !== E && (Y(E), E && ve(!0));
|
|
1887
|
-
const
|
|
1911
|
+
const Ie = v(() => {
|
|
1888
1912
|
ve(!0);
|
|
1889
1913
|
}, []), [De, $e] = q(!1), ge = Q && f?.auto_display_welcome_message && f?.welcome_message ? f.welcome_message : "", re = {
|
|
1890
1914
|
text: ge,
|
|
1891
1915
|
isVisible: ge !== "" && !De,
|
|
1892
1916
|
autoHideDelay: G
|
|
1893
|
-
}, { onSendMessage: X, onCleanMessages: te, onRateChat: ht } =
|
|
1917
|
+
}, { onSendMessage: X, onCleanMessages: te, onRateChat: ht } = lr({
|
|
1894
1918
|
appId: o,
|
|
1895
1919
|
userId: A,
|
|
1896
1920
|
userName: a,
|
|
1897
1921
|
userData: l,
|
|
1898
1922
|
externalId: _,
|
|
1899
|
-
deviceId:
|
|
1923
|
+
deviceId: S,
|
|
1900
1924
|
apiClient: C,
|
|
1901
1925
|
chatSettings: f,
|
|
1902
1926
|
setMessages: pe,
|
|
1903
1927
|
messages: se,
|
|
1904
1928
|
currentChat: le,
|
|
1905
1929
|
setCurrentChat: ce,
|
|
1906
|
-
onChatClosed:
|
|
1930
|
+
onChatClosed: Ie,
|
|
1907
1931
|
isChatClosed: we
|
|
1908
1932
|
});
|
|
1909
1933
|
Z(() => {
|
|
1910
|
-
|
|
1911
|
-
}, [
|
|
1934
|
+
I.length > 0 && pe(I);
|
|
1935
|
+
}, [I]), Z(() => {
|
|
1912
1936
|
w && ce(w);
|
|
1913
1937
|
}, [w]);
|
|
1914
1938
|
const We = L(null);
|
|
@@ -1919,7 +1943,7 @@ function yr({
|
|
|
1919
1943
|
userName: a,
|
|
1920
1944
|
userData: l,
|
|
1921
1945
|
externalId: _,
|
|
1922
|
-
deviceId:
|
|
1946
|
+
deviceId: S,
|
|
1923
1947
|
conversationId: le.id
|
|
1924
1948
|
}, Ee = JSON.stringify(ne);
|
|
1925
1949
|
We.current !== Ee && (We.current = Ee, C.identifyUser(ne));
|
|
@@ -1928,13 +1952,13 @@ function yr({
|
|
|
1928
1952
|
A,
|
|
1929
1953
|
a,
|
|
1930
1954
|
l,
|
|
1931
|
-
|
|
1955
|
+
S,
|
|
1932
1956
|
le,
|
|
1933
1957
|
C
|
|
1934
1958
|
]);
|
|
1935
|
-
const gt =
|
|
1959
|
+
const gt = v(() => {
|
|
1936
1960
|
te(), ve(!1);
|
|
1937
|
-
}, [te]), ft =
|
|
1961
|
+
}, [te]), ft = v(() => {
|
|
1938
1962
|
$e(!0);
|
|
1939
1963
|
}, []);
|
|
1940
1964
|
return {
|
|
@@ -1944,7 +1968,7 @@ function yr({
|
|
|
1944
1968
|
hasCloseButton: D,
|
|
1945
1969
|
hasCleanChatButton: $,
|
|
1946
1970
|
isMobile: y,
|
|
1947
|
-
chatInterfaceProps:
|
|
1971
|
+
chatInterfaceProps: N,
|
|
1948
1972
|
chatOpen: F,
|
|
1949
1973
|
chatOpenDebounced: ue,
|
|
1950
1974
|
messages: se,
|
|
@@ -1959,7 +1983,7 @@ function yr({
|
|
|
1959
1983
|
onRateChat: ht
|
|
1960
1984
|
};
|
|
1961
1985
|
}
|
|
1962
|
-
function
|
|
1986
|
+
function Sr(e) {
|
|
1963
1987
|
const [t, o] = q(0);
|
|
1964
1988
|
return Z(() => {
|
|
1965
1989
|
const r = window.visualViewport;
|
|
@@ -1976,7 +2000,7 @@ function xr(e) {
|
|
|
1976
2000
|
};
|
|
1977
2001
|
}, [e]), t;
|
|
1978
2002
|
}
|
|
1979
|
-
function
|
|
2003
|
+
function Ir(e) {
|
|
1980
2004
|
Z(() => {
|
|
1981
2005
|
if (!e) return;
|
|
1982
2006
|
const { body: t } = document, o = window.scrollY, r = {
|
|
@@ -1991,15 +2015,15 @@ function kr(e) {
|
|
|
1991
2015
|
};
|
|
1992
2016
|
}, [e]);
|
|
1993
2017
|
}
|
|
1994
|
-
function
|
|
1995
|
-
const [e, t] = q(!1), [o, r] = q(null), a = L(null), l = L(null), n =
|
|
2018
|
+
function Er() {
|
|
2019
|
+
const [e, t] = q(!1), [o, r] = q(null), a = L(null), l = L(null), n = v((c = "...") => {
|
|
1996
2020
|
const i = () => {
|
|
1997
2021
|
r(c), t(!0), l.current = null, a.current && clearTimeout(a.current), a.current = setTimeout(() => {
|
|
1998
2022
|
a.current = null, l.current && i();
|
|
1999
2023
|
}, 1e3);
|
|
2000
2024
|
};
|
|
2001
2025
|
a.current ? l.current = c : i();
|
|
2002
|
-
}, []), s =
|
|
2026
|
+
}, []), s = v(() => {
|
|
2003
2027
|
a.current && (clearTimeout(a.current), a.current = null), l.current = null, t(!1), r(null);
|
|
2004
2028
|
}, []);
|
|
2005
2029
|
return {
|
|
@@ -2009,14 +2033,14 @@ function _r() {
|
|
|
2009
2033
|
hideCognition: s
|
|
2010
2034
|
};
|
|
2011
2035
|
}
|
|
2012
|
-
function
|
|
2036
|
+
function zr({
|
|
2013
2037
|
children: e
|
|
2014
2038
|
}) {
|
|
2015
|
-
const t =
|
|
2016
|
-
return /* @__PURE__ */ m(
|
|
2039
|
+
const t = Er();
|
|
2040
|
+
return /* @__PURE__ */ m(xt.Provider, { value: t, children: e });
|
|
2017
2041
|
}
|
|
2018
|
-
const
|
|
2019
|
-
const [t, o] = q(null), [r, a] = q(!1), l =
|
|
2042
|
+
const Rr = ({ children: e }) => {
|
|
2043
|
+
const [t, o] = q(null), [r, a] = q(!1), l = _t(o), i = {
|
|
2020
2044
|
error: t,
|
|
2021
2045
|
hideSdk: r,
|
|
2022
2046
|
publishApiError: l,
|
|
@@ -2024,9 +2048,9 @@ const Ir = ({ children: e }) => {
|
|
|
2024
2048
|
publishNetworkError: () => a(!0),
|
|
2025
2049
|
clearError: () => o(null)
|
|
2026
2050
|
};
|
|
2027
|
-
return /* @__PURE__ */ m(
|
|
2028
|
-
},
|
|
2029
|
-
function
|
|
2051
|
+
return /* @__PURE__ */ m(kt.Provider, { value: i, children: e });
|
|
2052
|
+
}, Tr = 100;
|
|
2053
|
+
function Mr({
|
|
2030
2054
|
appId: e,
|
|
2031
2055
|
userId: t,
|
|
2032
2056
|
userName: o,
|
|
@@ -2050,26 +2074,26 @@ function Er({
|
|
|
2050
2074
|
INTERNAL_ONLY_ENVIRONMENT: A = "live",
|
|
2051
2075
|
INTERNAL_ONLY_API_URL: _
|
|
2052
2076
|
}) {
|
|
2053
|
-
const { hideSdk:
|
|
2077
|
+
const { hideSdk: S } = Ae(), {
|
|
2054
2078
|
isReady: C,
|
|
2055
2079
|
isChatActive: f,
|
|
2056
2080
|
isInitiallyOpen: w,
|
|
2057
|
-
hasCloseButton:
|
|
2081
|
+
hasCloseButton: I,
|
|
2058
2082
|
hasCleanChatButton: Q,
|
|
2059
2083
|
isMobile: E,
|
|
2060
2084
|
chatOpen: P,
|
|
2061
|
-
chatInterfaceProps:
|
|
2085
|
+
chatInterfaceProps: N,
|
|
2062
2086
|
chatOpenDebounced: J,
|
|
2063
2087
|
messages: H,
|
|
2064
|
-
portalContainer:
|
|
2088
|
+
portalContainer: j,
|
|
2065
2089
|
onSendMessage: B,
|
|
2066
2090
|
setChatOpen: F,
|
|
2067
|
-
proactiveMessage:
|
|
2091
|
+
proactiveMessage: b,
|
|
2068
2092
|
hideProactiveMessage: z,
|
|
2069
2093
|
isChatClosed: V,
|
|
2070
2094
|
onStartNewChat: k,
|
|
2071
2095
|
onRateChat: D
|
|
2072
|
-
} =
|
|
2096
|
+
} = Cr({
|
|
2073
2097
|
environment: A,
|
|
2074
2098
|
apiUrl: _,
|
|
2075
2099
|
appId: e,
|
|
@@ -2089,10 +2113,10 @@ function Er({
|
|
|
2089
2113
|
// it, so nothing (boot initial_open, closed-cookie, props) may close it.
|
|
2090
2114
|
isAlwaysOpen: p,
|
|
2091
2115
|
hasCleanChatButtonOverride: g
|
|
2092
|
-
}), $ =
|
|
2093
|
-
|
|
2116
|
+
}), $ = Sr(E && P);
|
|
2117
|
+
Ir(E && P);
|
|
2094
2118
|
const G = !C;
|
|
2095
|
-
if (
|
|
2119
|
+
if (S || G && !p || !G && !f) return null;
|
|
2096
2120
|
const ie = () => /* @__PURE__ */ _e(
|
|
2097
2121
|
"div",
|
|
2098
2122
|
{
|
|
@@ -2109,12 +2133,12 @@ function Er({
|
|
|
2109
2133
|
...x ? { position: "relative", inset: 0, width: "100%", height: "100%" } : {}
|
|
2110
2134
|
},
|
|
2111
2135
|
children: [
|
|
2112
|
-
/* @__PURE__ */ m("style", { children:
|
|
2136
|
+
/* @__PURE__ */ m("style", { children: zt }),
|
|
2113
2137
|
/* @__PURE__ */ m(
|
|
2114
|
-
|
|
2138
|
+
je,
|
|
2115
2139
|
{
|
|
2116
2140
|
className: "eloquentai-chat-messaging",
|
|
2117
|
-
head: /* @__PURE__ */ _e(
|
|
2141
|
+
head: /* @__PURE__ */ _e(Ge, { children: [
|
|
2118
2142
|
/* @__PURE__ */ m("link", { rel: "preconnect", href: "https://fonts.googleapis.com" }),
|
|
2119
2143
|
/* @__PURE__ */ m("link", { rel: "preconnect", href: "https://fonts.gstatic.com" }),
|
|
2120
2144
|
/* @__PURE__ */ m(
|
|
@@ -2124,7 +2148,7 @@ function Er({
|
|
|
2124
2148
|
rel: "stylesheet"
|
|
2125
2149
|
}
|
|
2126
2150
|
),
|
|
2127
|
-
/* @__PURE__ */ m("style", { children:
|
|
2151
|
+
/* @__PURE__ */ m("style", { children: Ne })
|
|
2128
2152
|
] }),
|
|
2129
2153
|
style: {
|
|
2130
2154
|
display: P || J ? "block" : "none",
|
|
@@ -2132,7 +2156,7 @@ function Er({
|
|
|
2132
2156
|
// 100dvh accounts for mobile browser chrome (e.g. address bar); 100vh fallback for older browsers
|
|
2133
2157
|
"--chat-mobile-viewport-height": "100dvh",
|
|
2134
2158
|
height: E ? "var(--chat-mobile-viewport-height, 100vh)" : "700px",
|
|
2135
|
-
maxHeight: E ? "var(--chat-mobile-viewport-height, 100vh)" : `calc(100% - ${
|
|
2159
|
+
maxHeight: E ? "var(--chat-mobile-viewport-height, 100vh)" : `calc(100% - ${Tr}px)`,
|
|
2136
2160
|
border: "none",
|
|
2137
2161
|
zIndex: 2147483e3,
|
|
2138
2162
|
position: "fixed",
|
|
@@ -2157,11 +2181,11 @@ function Er({
|
|
|
2157
2181
|
// booting): hold the widget's frame with a skeleton so a remount —
|
|
2158
2182
|
// project/environment switch in the host app — doesn't flash an
|
|
2159
2183
|
// empty hole where the chat was.
|
|
2160
|
-
/* @__PURE__ */ m(
|
|
2184
|
+
/* @__PURE__ */ m(Ct, { isOpen: !0, isMobile: E, skipAnimation: !0 })
|
|
2161
2185
|
) : /* @__PURE__ */ m(
|
|
2162
|
-
|
|
2186
|
+
St,
|
|
2163
2187
|
{
|
|
2164
|
-
...
|
|
2188
|
+
...N,
|
|
2165
2189
|
hasIntroAnimation: !p,
|
|
2166
2190
|
isTestMode: A === "test",
|
|
2167
2191
|
isOpen: P,
|
|
@@ -2170,7 +2194,7 @@ function Er({
|
|
|
2170
2194
|
onSendMessage: B,
|
|
2171
2195
|
onMessageClick: R,
|
|
2172
2196
|
isMobile: E,
|
|
2173
|
-
hasCloseButton:
|
|
2197
|
+
hasCloseButton: I,
|
|
2174
2198
|
hasCleanChatButton: Q,
|
|
2175
2199
|
hasCopyButton: U,
|
|
2176
2200
|
isChatClosed: V,
|
|
@@ -2185,10 +2209,10 @@ function Er({
|
|
|
2185
2209
|
}
|
|
2186
2210
|
),
|
|
2187
2211
|
!p && /* @__PURE__ */ m(
|
|
2188
|
-
|
|
2212
|
+
je,
|
|
2189
2213
|
{
|
|
2190
2214
|
className: "eloquentai-chat-launcher",
|
|
2191
|
-
head: /* @__PURE__ */ m("style", { children:
|
|
2215
|
+
head: /* @__PURE__ */ m("style", { children: Ne }),
|
|
2192
2216
|
style: {
|
|
2193
2217
|
position: "fixed",
|
|
2194
2218
|
bottom: 17,
|
|
@@ -2203,20 +2227,20 @@ function Er({
|
|
|
2203
2227
|
transition: P ? "opacity 100ms ease-in" : "opacity 200ms ease-out 320ms"
|
|
2204
2228
|
},
|
|
2205
2229
|
children: /* @__PURE__ */ m(
|
|
2206
|
-
|
|
2230
|
+
Rt,
|
|
2207
2231
|
{
|
|
2208
2232
|
isOpen: P,
|
|
2209
2233
|
toggleBubble: () => F((se) => !se),
|
|
2210
|
-
isDarkMode:
|
|
2234
|
+
isDarkMode: N?.theme?.mode === "dark"
|
|
2211
2235
|
}
|
|
2212
2236
|
)
|
|
2213
2237
|
}
|
|
2214
2238
|
),
|
|
2215
|
-
|
|
2216
|
-
|
|
2239
|
+
N?.displayWelcomeMessages ? /* @__PURE__ */ m(
|
|
2240
|
+
je,
|
|
2217
2241
|
{
|
|
2218
2242
|
className: "eloquentai-chat-proactive-message",
|
|
2219
|
-
head: /* @__PURE__ */ m("style", { children:
|
|
2243
|
+
head: /* @__PURE__ */ m("style", { children: Ne }),
|
|
2220
2244
|
style: {
|
|
2221
2245
|
position: "fixed",
|
|
2222
2246
|
// Aligns the bubble's tail with the launcher's center: the
|
|
@@ -2225,22 +2249,22 @@ function Er({
|
|
|
2225
2249
|
bottom: 24,
|
|
2226
2250
|
right: 17
|
|
2227
2251
|
},
|
|
2228
|
-
children: /* @__PURE__ */ m(
|
|
2252
|
+
children: /* @__PURE__ */ m(It, { ...N?.theme ?? {}, children: /* @__PURE__ */ m(
|
|
2229
2253
|
"div",
|
|
2230
2254
|
{
|
|
2231
2255
|
className: He("eloq:w-full eloq:h-full", {
|
|
2232
|
-
dark:
|
|
2256
|
+
dark: N?.theme?.mode === "dark"
|
|
2233
2257
|
}),
|
|
2234
|
-
children:
|
|
2235
|
-
|
|
2258
|
+
children: b && !w && /* @__PURE__ */ m(
|
|
2259
|
+
Mt,
|
|
2236
2260
|
{
|
|
2237
|
-
message:
|
|
2238
|
-
isVisible:
|
|
2261
|
+
message: b.text,
|
|
2262
|
+
isVisible: b.isVisible,
|
|
2239
2263
|
onDismiss: z,
|
|
2240
2264
|
onMessageClick: () => {
|
|
2241
2265
|
F(!0), z();
|
|
2242
2266
|
},
|
|
2243
|
-
autoHideDelay:
|
|
2267
|
+
autoHideDelay: b.autoHideDelay
|
|
2244
2268
|
}
|
|
2245
2269
|
)
|
|
2246
2270
|
}
|
|
@@ -2250,21 +2274,21 @@ function Er({
|
|
|
2250
2274
|
]
|
|
2251
2275
|
}
|
|
2252
2276
|
);
|
|
2253
|
-
return /* @__PURE__ */ m(
|
|
2277
|
+
return /* @__PURE__ */ m(Ge, { children: x ? ie() : j ? /* @__PURE__ */ m(Tt, { container: j, children: ie() }) : null });
|
|
2254
2278
|
}
|
|
2255
|
-
function
|
|
2256
|
-
return /* @__PURE__ */ m(
|
|
2279
|
+
function Ar(e) {
|
|
2280
|
+
return /* @__PURE__ */ m(Rr, { children: /* @__PURE__ */ m(zr, { children: /* @__PURE__ */ m(Mr, { ...e }) }) });
|
|
2257
2281
|
}
|
|
2258
|
-
function
|
|
2282
|
+
function Nr(e, t) {
|
|
2259
2283
|
return ((r, a, l) => {
|
|
2260
|
-
const n =
|
|
2284
|
+
const n = Et.createRoot(a);
|
|
2261
2285
|
return n.render(/* @__PURE__ */ m(r, { ...l })), n.unmount;
|
|
2262
|
-
})(
|
|
2286
|
+
})(Ar, e, t);
|
|
2263
2287
|
}
|
|
2264
2288
|
export {
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2289
|
+
Ar as Chat,
|
|
2290
|
+
St as ChatInterface,
|
|
2291
|
+
Nr as renderChat,
|
|
2268
2292
|
rr as useRealtimeSocket
|
|
2269
2293
|
};
|
|
2270
2294
|
//# sourceMappingURL=index.mjs.map
|