@eloquentai/chat-sdk 0.36.2-dev.6 → 0.36.2-dev.7
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/embed/chat-bubble.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +593 -541
- package/dist/index.mjs.map +1 -1
- package/dist/{skeleton-iVXhp7xX.js → skeleton-D5yz7y72.js} +3 -3
- package/dist/{skeleton-iVXhp7xX.js.map → skeleton-D5yz7y72.js.map} +1 -1
- package/dist/ui.mjs +1 -1
- package/package.json +2 -1
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { L as
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { createPortal as
|
|
2
|
+
import { L as Tt, c as Be, u as Mt, g as At, X as Pt, i as Ot, A as Ut, d as F, e as Ke, f as jt, h as Dt, r as $t, t as Bt, j as Lt, N as at, k as Le, l as Nt, H as Zt, w as ct, m as Kt, s as Vt, n as Wt, o as Ht, E as Ft, p as Jt, S as Gt, C as Yt, T as Xt } from "./skeleton-D5yz7y72.js";
|
|
3
|
+
import { jsx as I, jsxs as _e, Fragment as Qt } from "react/jsx-runtime";
|
|
4
|
+
import { useState as C, useEffect as V, useMemo as tt, useCallback as v, useRef as N } from "react";
|
|
5
|
+
import { createPortal as ot } from "react-dom";
|
|
6
6
|
import eo from "react-dom/client";
|
|
7
7
|
try {
|
|
8
8
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
9
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
9
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ed86a4c7-7eb2-4806-9247-a293c8c62ea2", e._sentryDebugIdIdentifier = "sentry-dbid-ed86a4c7-7eb2-4806-9247-a293c8c62ea2");
|
|
10
10
|
} catch {
|
|
11
11
|
}
|
|
12
12
|
if (typeof window < "u") {
|
|
@@ -33,34 +33,62 @@ if (typeof window < "u") {
|
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
const Fe = '/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--eloq-aura-angle:0deg}}}@layer theme{:root,:host{--eloq-font-sans:system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--eloq-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--eloq-color-red-50:oklch(97.1% .013 17.38);--eloq-color-red-200:oklch(88.5% .062 18.334);--eloq-color-red-400:oklch(70.4% .191 22.216);--eloq-color-red-500:oklch(63.7% .237 25.331);--eloq-color-red-800:oklch(44.4% .177 26.899);--eloq-color-amber-50:oklch(98.7% .022 95.277);--eloq-color-amber-200:oklch(92.4% .12 95.746);--eloq-color-amber-400:oklch(82.8% .189 84.429);--eloq-color-amber-500:oklch(76.9% .188 70.08);--eloq-color-amber-800:oklch(47.3% .137 46.201);--eloq-color-yellow-400:oklch(85.2% .199 91.936);--eloq-color-green-50:oklch(98.2% .018 155.826);--eloq-color-green-200:oklch(92.5% .084 155.995);--eloq-color-green-400:oklch(79.2% .209 151.711);--eloq-color-green-500:oklch(72.3% .219 149.579);--eloq-color-green-800:oklch(44.8% .119 151.328);--eloq-color-blue-50:oklch(97% .014 254.604);--eloq-color-blue-200:oklch(88.2% .059 254.128);--eloq-color-blue-400:oklch(70.7% .165 254.624);--eloq-color-blue-500:oklch(62.3% .214 259.815);--eloq-color-blue-800:oklch(42.4% .199 265.638);--eloq-color-gray-100:oklch(96.7% .003 264.542);--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-gray-900:oklch(21% .034 264.665);--eloq-color-black:#000;--eloq-color-white:#fff;--eloq-spacing:.25rem;--eloq-container-xs:20rem;--eloq-text-xs:.75rem;--eloq-text-xs--line-height:calc(1 / .75);--eloq-text-sm:.875rem;--eloq-text-sm--line-height:calc(1.25 / .875);--eloq-text-base:1rem;--eloq-text-base--line-height: 1.5 ;--eloq-text-2xl:1.5rem;--eloq-text-2xl--line-height:calc(2 / 1.5);--eloq-font-weight-medium:500;--eloq-font-weight-semibold:600;--eloq-tracking-tight:-.025em;--eloq-leading-relaxed:1.625;--eloq-radius-sm:calc(var(--radius) - 4px);--eloq-radius-md:calc(var(--radius) - 2px);--eloq-radius-lg:var(--radius);--eloq-radius-xl:.75rem;--eloq-radius-2xl:1rem;--eloq-radius-3xl:1.5rem;--eloq-drop-shadow-lg:0 4px 4px #00000026;--eloq-drop-shadow-xl:0 9px 7px #0000001a;--eloq-ease-out:cubic-bezier(0, 0, .2, 1);--eloq-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--eloq-default-transition-duration:.15s;--eloq-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--eloq-default-font-family:var(--eloq-font-sans);--eloq-default-mono-font-family:var(--eloq-font-mono);--eloq-animate-panel-in:panel-in .35s cubic-bezier(.16, 1, .3, 1) both;--eloq-animate-panel-out:panel-out .25s cubic-bezier(.4, 0, 1, 1) both;--eloq-animate-thinking-dot:thinking-dot 1.2s ease-in-out infinite;--eloq-animate-thinking-shimmer:thinking-shimmer 1.8s linear infinite;--eloq-animate-regenerating:regenerating-sweep 1.2s linear infinite;--eloq-animate-text-in:text-in .35s ease-out both;--eloq-animate-message-in:message-in .3s ease-out both;--eloq-animate-slide-up-in:slide-up-in .3s ease-out both}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--eloq-default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--eloq-default-font-feature-settings,normal);font-variation-settings:var(--eloq-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--eloq-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--eloq-default-mono-font-feature-settings,normal);font-variation-settings:var(--eloq-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--background:0 0% 100%;--foreground:0 0% 3.9%;--card:0 0% 100%;--card-foreground:0 0% 3.9%;--popover:0 0% 100%;--popover-foreground:0 0% 3.9%;--primary:267 56% 46%;--primary-foreground:0 0% 98%;--secondary:0 0% 96.1%;--secondary-foreground:0 0% 9%;--muted:0 0% 96.1%;--muted-foreground:0 0% 45.1%;--accent:0 0% 96.1%;--accent-foreground:0 0% 9%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--cream:37.5 44% 96.5%;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%;--radius:.5rem}.dark{--background:262 50% 10%;--foreground:262 5% 90%;--card:262 50% 10%;--card-foreground:262 5% 90%;--popover:262 50% 5%;--popover-foreground:262 5% 90%;--primary:262 62% 70%;--primary-foreground:0 0% 100%;--primary-dark:262 62% 60%;--secondary:262 30% 30%;--secondary-foreground:0 0% 100%;--secondary-dark:262 30% 20%;--secondary-light:262 30% 40%;--tertiary:267 56% 46%;--tertiary-foreground:0 0% 100%;--tertiary-dark:267 38% 25%;--tertiary-light:263 100% 85%;--muted:224 30% 25%;--muted-foreground:262 5% 90%;--accent:224 30% 25%;--accent-foreground:262 5% 100%;--accent-dark:224 30% 15%;--destructive:0 100% 30%;--destructive-foreground:262 5% 90%;--border:0 0% 30%;--input:262 30% 25%;--ring:262 62% 71%;--cream:257 28% 20%;--radius:.5rem;--sidebar-background:var(--background);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--border);--sidebar-ring:var(--ring)}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}}@layer components;@layer utilities{.eloq\\:pointer-events-none{pointer-events:none}.eloq\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.eloq\\:absolute{position:absolute}.eloq\\:relative{position:relative}.eloq\\:inset-0{inset:0}.eloq\\:inset-x-0{inset-inline:0}.eloq\\:end-full{inset-inline-end:100%}.eloq\\:top-0{top:0}.eloq\\:top-0\\.5{top:calc(var(--eloq-spacing) * .5)}.eloq\\:top-1\\/2{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-16{right:calc(var(--eloq-spacing) * 16)}.eloq\\:bottom-0{bottom:0}.eloq\\:bottom-1{bottom:var(--eloq-spacing)}.eloq\\:bottom-2{bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:bottom-10{bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:left-0{left:0}.eloq\\:left-2{left:calc(var(--eloq-spacing) * 2)}.eloq\\:left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.eloq\\:z-10{z-index:10}.eloq\\:z-20{z-index:20}.eloq\\:z-30{z-index:30}.eloq\\:m-0{margin:0}.eloq\\:m-auto{margin:auto}.eloq\\:mx-1{margin-inline:var(--eloq-spacing)}.eloq\\:mx-auto{margin-inline:auto}.eloq\\:my-2{margin-block:calc(var(--eloq-spacing) * 2)}.eloq\\:my-4{margin-block:calc(var(--eloq-spacing) * 4)}.eloq\\:me-1{margin-inline-end:var(--eloq-spacing)}.eloq\\:-mt-2{margin-top:calc(var(--eloq-spacing) * -2)}.eloq\\:-mt-6{margin-top:calc(var(--eloq-spacing) * -6)}.eloq\\:-mt-20{margin-top:calc(var(--eloq-spacing) * -20)}.eloq\\:mt-1{margin-top:var(--eloq-spacing)}.eloq\\:mt-2{margin-top:calc(var(--eloq-spacing) * 2)}.eloq\\:mt-10{margin-top:calc(var(--eloq-spacing) * 10)}.eloq\\:mr-1{margin-right:var(--eloq-spacing)}.eloq\\:mr-\\[2px\\]{margin-right:2px}.eloq\\:mb-1{margin-bottom:var(--eloq-spacing)}.eloq\\:mb-3{margin-bottom:calc(var(--eloq-spacing) * 3)}.eloq\\:mb-4{margin-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:mb-10{margin-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:ml-0{margin-left:0}.eloq\\:ml-1{margin-left:var(--eloq-spacing)}.eloq\\:ml-5{margin-left:calc(var(--eloq-spacing) * 5)}.eloq\\:box-content{box-sizing:content-box}.eloq\\:block{display:block}.eloq\\:flex{display:flex}.eloq\\:hidden{display:none}.eloq\\:inline-flex{display:inline-flex}.eloq\\:field-sizing-content{field-sizing:content}.eloq\\:aspect-square{aspect-ratio:1}.eloq\\:h-1{height:var(--eloq-spacing)}.eloq\\:h-2\\.5{height:calc(var(--eloq-spacing) * 2.5)}.eloq\\:h-3{height:calc(var(--eloq-spacing) * 3)}.eloq\\:h-4{height:calc(var(--eloq-spacing) * 4)}.eloq\\:h-5{height:calc(var(--eloq-spacing) * 5)}.eloq\\:h-6{height:calc(var(--eloq-spacing) * 6)}.eloq\\:h-8{height:calc(var(--eloq-spacing) * 8)}.eloq\\:h-10{height:calc(var(--eloq-spacing) * 10)}.eloq\\:h-12{height:calc(var(--eloq-spacing) * 12)}.eloq\\:h-14{height:calc(var(--eloq-spacing) * 14)}.eloq\\:h-16{height:calc(var(--eloq-spacing) * 16)}.eloq\\:h-\\[0\\.42em\\]{height:.42em}.eloq\\:h-\\[160px\\]{height:160px}.eloq\\:h-\\[220px\\]{height:220px}.eloq\\:h-\\[560px\\]{height:560px}.eloq\\:h-\\[600px\\]{height:600px}.eloq\\:h-full{height:100%}.eloq\\:max-h-\\[132px\\]{max-height:132px}.eloq\\:min-h-6{min-height:calc(var(--eloq-spacing) * 6)}.eloq\\:min-h-\\[48px\\]{min-height:48px}.eloq\\:min-h-\\[80px\\]{min-height:80px}.eloq\\:w-2\\.5{width:calc(var(--eloq-spacing) * 2.5)}.eloq\\:w-2\\/3{width:66.6667%}.eloq\\:w-3{width:calc(var(--eloq-spacing) * 3)}.eloq\\:w-4{width:calc(var(--eloq-spacing) * 4)}.eloq\\:w-5{width:calc(var(--eloq-spacing) * 5)}.eloq\\:w-6{width:calc(var(--eloq-spacing) * 6)}.eloq\\:w-8{width:calc(var(--eloq-spacing) * 8)}.eloq\\:w-10{width:calc(var(--eloq-spacing) * 10)}.eloq\\:w-12{width:calc(var(--eloq-spacing) * 12)}.eloq\\:w-14{width:calc(var(--eloq-spacing) * 14)}.eloq\\:w-16{width:calc(var(--eloq-spacing) * 16)}.eloq\\:w-24{width:calc(var(--eloq-spacing) * 24)}.eloq\\:w-32{width:calc(var(--eloq-spacing) * 32)}.eloq\\:w-48{width:calc(var(--eloq-spacing) * 48)}.eloq\\:w-\\[0\\.42em\\]{width:.42em}.eloq\\:w-\\[70\\%\\]{width:70%}.eloq\\:w-\\[320px\\]{width:320px}.eloq\\:w-\\[340px\\]{width:340px}.eloq\\:w-\\[348px\\]{width:348px}.eloq\\:w-\\[380px\\]{width:380px}.eloq\\:w-\\[420px\\]{width:420px}.eloq\\:w-full{width:100%}.eloq\\:max-w-\\[75\\%\\]{max-width:75%}.eloq\\:max-w-\\[88\\%\\]{max-width:88%}.eloq\\:max-w-full{max-width:100%}.eloq\\:max-w-xs{max-width:var(--eloq-container-xs)}.eloq\\:min-w-0{min-width:0}.eloq\\:min-w-6{min-width:calc(var(--eloq-spacing) * 6)}.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-y-1\\/2{--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-regenerating{animation:var(--eloq-animate-regenerating)}.eloq\\:animate-slide-up-in{animation:var(--eloq-animate-slide-up-in)}.eloq\\:animate-text-in{animation:var(--eloq-animate-text-in)}.eloq\\:animate-thinking-dot{animation:var(--eloq-animate-thinking-dot)}.eloq\\:animate-thinking-shimmer{animation:var(--eloq-animate-thinking-shimmer)}.eloq\\:cursor-default{cursor:default}.eloq\\:cursor-grab{cursor:grab}.eloq\\:cursor-pointer{cursor:pointer}.eloq\\:touch-none{touch-action:none}.eloq\\:resize-none{resize:none}.eloq\\:list-decimal{list-style-type:decimal}.eloq\\:list-disc{list-style-type:disc}.eloq\\:flex-col{flex-direction:column}.eloq\\:flex-row{flex-direction:row}.eloq\\:flex-wrap{flex-wrap:wrap}.eloq\\:items-center{align-items:center}.eloq\\:items-end{align-items:flex-end}.eloq\\:items-start{align-items:flex-start}.eloq\\:justify-between{justify-content:space-between}.eloq\\:justify-center{justify-content:center}.eloq\\:justify-end{justify-content:flex-end}.eloq\\:justify-start{justify-content:flex-start}.eloq\\:gap-1{gap:var(--eloq-spacing)}.eloq\\:gap-1\\.5{gap:calc(var(--eloq-spacing) * 1.5)}.eloq\\:gap-2{gap:calc(var(--eloq-spacing) * 2)}.eloq\\:gap-3{gap:calc(var(--eloq-spacing) * 3)}.eloq\\:gap-\\[0\\.25em\\]{gap:.25em}:where(.eloq\\:space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.eloq\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--eloq-spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--eloq-spacing) * var(--tw-space-x-reverse));margin-inline-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}.eloq\\:self-end{align-self:flex-end}.eloq\\:self-stretch{align-self:stretch}.eloq\\:overflow-hidden{overflow:hidden}.eloq\\:overflow-x-auto{overflow-x:auto}.eloq\\:overscroll-contain{overscroll-behavior:contain}.eloq\\:rounded{border-radius:.25rem}.eloq\\:rounded-2xl{border-radius:var(--eloq-radius-2xl)}.eloq\\:rounded-3xl{border-radius:var(--eloq-radius-3xl)}.eloq\\:rounded-\\[inherit\\]{border-radius:inherit}.eloq\\:rounded-full{border-radius:3.40282e38px}.eloq\\:rounded-lg{border-radius:var(--eloq-radius-lg)}.eloq\\:rounded-md{border-radius:var(--eloq-radius-md)}.eloq\\:rounded-none{border-radius:0}.eloq\\:rounded-sm{border-radius:var(--eloq-radius-sm)}.eloq\\:rounded-xl{border-radius:var(--eloq-radius-xl)}.eloq\\:rounded-t-2xl{border-top-left-radius:var(--eloq-radius-2xl);border-top-right-radius:var(--eloq-radius-2xl)}.eloq\\:border{border-style:var(--tw-border-style);border-width:1px}.eloq\\:border-0{border-style:var(--tw-border-style);border-width:0}.eloq\\:border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.eloq\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.eloq\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.eloq\\:border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.eloq\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.eloq\\:border-amber-400{border-color:var(--eloq-color-amber-400)}.eloq\\:border-blue-500{border-color:var(--eloq-color-blue-500)}.eloq\\:border-border{border-color:hsl(var(--border))}.eloq\\:border-green-500{border-color:var(--eloq-color-green-500)}.eloq\\:border-input{border-color:hsl(var(--input))}.eloq\\:border-red-500{border-color:var(--eloq-color-red-500)}.eloq\\:border-t-transparent{border-top-color:#0000}.eloq\\:border-l-transparent{border-left-color:#0000}.eloq\\:bg-\\[\\#0a0a0a\\]{background-color:#0a0a0a}.eloq\\:bg-\\[\\#000\\]{background-color:#000}.eloq\\:bg-\\[\\#fff\\]{background-color:#fff}.eloq\\:bg-amber-50{background-color:var(--eloq-color-amber-50)}.eloq\\:bg-background{background-color:hsl(var(--background))}.eloq\\:bg-black\\/20{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/20{background-color:color-mix(in oklab,var(--eloq-color-black) 20%,transparent)}}.eloq\\:bg-black\\/60{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/60{background-color:color-mix(in oklab,var(--eloq-color-black) 60%,transparent)}}.eloq\\:bg-blue-50{background-color:var(--eloq-color-blue-50)}.eloq\\:bg-border{background-color:hsl(var(--border))}.eloq\\:bg-card{background-color:hsl(var(--card))}.eloq\\:bg-cream{background-color:hsl(var(--cream))}.eloq\\:bg-gray-400{background-color:var(--eloq-color-gray-400)}.eloq\\:bg-gray-900{background-color:var(--eloq-color-gray-900)}.eloq\\:bg-green-50{background-color:var(--eloq-color-green-50)}.eloq\\:bg-muted{background-color:hsl(var(--muted))}.eloq\\:bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.eloq\\:bg-primary{background-color:hsl(var(--primary))}.eloq\\:bg-red-50{background-color:var(--eloq-color-red-50)}.eloq\\:bg-white,.eloq\\:bg-white\\/20{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-white\\/20{background-color:color-mix(in oklab,var(--eloq-color-white) 20%,transparent)}}.eloq\\:fill-none{fill:none}.eloq\\:fill-yellow-400{fill:var(--eloq-color-yellow-400)}.eloq\\:object-contain{object-fit:contain}.eloq\\:object-cover{object-fit:cover}.eloq\\:p-0{padding:0}.eloq\\:p-0\\.5{padding:calc(var(--eloq-spacing) * .5)}.eloq\\:p-1{padding:var(--eloq-spacing)}.eloq\\:p-1\\.5{padding:calc(var(--eloq-spacing) * 1.5)}.eloq\\:p-2{padding:calc(var(--eloq-spacing) * 2)}.eloq\\:p-3{padding:calc(var(--eloq-spacing) * 3)}.eloq\\:p-4{padding:calc(var(--eloq-spacing) * 4)}.eloq\\:p-6{padding:calc(var(--eloq-spacing) * 6)}.eloq\\:p-\\[1px\\]{padding:1px}.eloq\\:px-0{padding-inline:0}.eloq\\:px-1\\.5{padding-inline:calc(var(--eloq-spacing) * 1.5)}.eloq\\:px-2{padding-inline:calc(var(--eloq-spacing) * 2)}.eloq\\:px-3{padding-inline:calc(var(--eloq-spacing) * 3)}.eloq\\:px-4{padding-inline:calc(var(--eloq-spacing) * 4)}.eloq\\:px-5{padding-inline:calc(var(--eloq-spacing) * 5)}.eloq\\:px-\\[12px\\]{padding-inline:12px}.eloq\\:px-\\[16px\\]{padding-inline:16px}.eloq\\:py-0\\.5{padding-block:calc(var(--eloq-spacing) * .5)}.eloq\\:py-1{padding-block:var(--eloq-spacing)}.eloq\\:py-1\\.5{padding-block:calc(var(--eloq-spacing) * 1.5)}.eloq\\:py-2{padding-block:calc(var(--eloq-spacing) * 2)}.eloq\\:py-3{padding-block:calc(var(--eloq-spacing) * 3)}.eloq\\:py-3\\.5{padding-block:calc(var(--eloq-spacing) * 3.5)}.eloq\\:py-\\[8px\\]{padding-block:8px}.eloq\\:py-\\[12px\\]{padding-block:12px}.eloq\\:pt-0{padding-top:0}.eloq\\:pt-2{padding-top:calc(var(--eloq-spacing) * 2)}.eloq\\:pt-4{padding-top:calc(var(--eloq-spacing) * 4)}.eloq\\:pt-5{padding-top:calc(var(--eloq-spacing) * 5)}.eloq\\:pt-6{padding-top:calc(var(--eloq-spacing) * 6)}.eloq\\:pt-10{padding-top:calc(var(--eloq-spacing) * 10)}.eloq\\:pt-24{padding-top:calc(var(--eloq-spacing) * 24)}.eloq\\:pr-2{padding-right:calc(var(--eloq-spacing) * 2)}.eloq\\:pr-4{padding-right:calc(var(--eloq-spacing) * 4)}.eloq\\:pr-12{padding-right:calc(var(--eloq-spacing) * 12)}.eloq\\:pb-2{padding-bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:pb-4{padding-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:pb-10{padding-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:pb-14{padding-bottom:calc(var(--eloq-spacing) * 14)}.eloq\\:pl-3{padding-left:calc(var(--eloq-spacing) * 3)}.eloq\\:pl-4{padding-left:calc(var(--eloq-spacing) * 4)}.eloq\\:pl-11{padding-left:calc(var(--eloq-spacing) * 11)}.eloq\\:text-center{text-align:center}.eloq\\:text-left{text-align:left}.eloq\\:text-2xl{font-size:var(--eloq-text-2xl);line-height:var(--tw-leading,var(--eloq-text-2xl--line-height))}.eloq\\:text-base{font-size:var(--eloq-text-base);line-height:var(--tw-leading,var(--eloq-text-base--line-height))}.eloq\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}.eloq\\:text-xs{font-size:var(--eloq-text-xs);line-height:var(--tw-leading,var(--eloq-text-xs--line-height))}.eloq\\:text-\\[10px\\]{font-size:10px}.eloq\\:leading-5{--tw-leading:calc(var(--eloq-spacing) * 5);line-height:calc(var(--eloq-spacing) * 5)}.eloq\\:leading-none{--tw-leading:1;line-height:1}.eloq\\:leading-relaxed{--tw-leading:var(--eloq-leading-relaxed);line-height:var(--eloq-leading-relaxed)}.eloq\\:font-medium{--tw-font-weight:var(--eloq-font-weight-medium);font-weight:var(--eloq-font-weight-medium)}.eloq\\:font-semibold{--tw-font-weight:var(--eloq-font-weight-semibold);font-weight:var(--eloq-font-weight-semibold)}.eloq\\:tracking-tight{--tw-tracking:var(--eloq-tracking-tight);letter-spacing:var(--eloq-tracking-tight)}.eloq\\:whitespace-nowrap{white-space:nowrap}.eloq\\:text-\\[\\#000\\]{color:#000}.eloq\\:text-\\[\\#fff\\]{color:#fff}.eloq\\:text-amber-500{color:var(--eloq-color-amber-500)}.eloq\\:text-amber-800{color:var(--eloq-color-amber-800)}.eloq\\:text-blue-500{color:var(--eloq-color-blue-500)}.eloq\\:text-blue-800{color:var(--eloq-color-blue-800)}.eloq\\:text-card-foreground{color:hsl(var(--card-foreground))}.eloq\\:text-destructive{color:hsl(var(--destructive))}.eloq\\:text-foreground{color:hsl(var(--foreground))}.eloq\\:text-gray-300{color:var(--eloq-color-gray-300)}.eloq\\:text-gray-400{color:var(--eloq-color-gray-400)}.eloq\\:text-gray-500{color:var(--eloq-color-gray-500)}.eloq\\:text-green-500{color:var(--eloq-color-green-500)}.eloq\\:text-green-800{color:var(--eloq-color-green-800)}.eloq\\:text-muted{color:hsl(var(--muted))}.eloq\\:text-muted-foreground{color:hsl(var(--muted-foreground))}.eloq\\:text-primary{color:hsl(var(--primary))}.eloq\\:text-primary-foreground{color:hsl(var(--primary-foreground))}.eloq\\:text-red-500{color:var(--eloq-color-red-500)}.eloq\\:text-red-800{color:var(--eloq-color-red-800)}.eloq\\:text-white{color:var(--eloq-color-white)}.eloq\\:text-yellow-400{color:var(--eloq-color-yellow-400)}.eloq\\:italic{font-style:italic}.eloq\\:underline{text-decoration-line:underline}.eloq\\:opacity-0{opacity:0}.eloq\\:opacity-50{opacity:.5}.eloq\\:opacity-70{opacity:.7}.eloq\\:opacity-75{opacity:.75}.eloq\\:opacity-100{opacity:1}.eloq\\:shadow-\\[0_-8px_24px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow:0 -8px 24px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_0_4px_0_rgba\\(0\\,0\\,0\\,0\\.20\\)\\]{--tw-shadow:0 0 4px 0 var(--tw-shadow-color,#0003);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_3px_4px_-2px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0 3px 4px -2px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.eloq\\:outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:outline-offset-2{outline-offset:2px}.eloq\\:outline-transparent{outline-color:#0000}.eloq\\:drop-shadow-lg{--tw-drop-shadow-size:drop-shadow(0 4px 4px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-lg));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.eloq\\:transition-\\[outline-color\\]{transition-property:outline-color;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.eloq\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.eloq\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.eloq\\:duration-500{--tw-duration:.5s;transition-duration:.5s}.eloq\\:ease-out{--tw-ease:var(--eloq-ease-out);transition-timing-function:var(--eloq-ease-out)}.eloq\\:select-none{-webkit-user-select:none;user-select:none}.eloq\\:placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.eloq\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.eloq\\:hover\\:bg-black\\/5:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 5%,transparent)}}.eloq\\:hover\\:bg-black\\/80:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/80:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 80%,transparent)}}.eloq\\:hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.eloq\\:hover\\:text-foreground:hover{color:hsl(var(--foreground))}.eloq\\:hover\\:text-gray-600:hover{color:var(--eloq-color-gray-600)}.eloq\\:hover\\:text-primary:hover{color:hsl(var(--primary))}.eloq\\:hover\\:opacity-80:hover{opacity:.8}.eloq\\:hover\\:opacity-90:hover{opacity:.9}.eloq\\:hover\\:opacity-100:hover{opacity:1}.eloq\\:hover\\:drop-shadow-xl:hover{--tw-drop-shadow-size:drop-shadow(0 9px 7px var(--tw-drop-shadow-color,#0000001a));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}.eloq\\:focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-muted:focus-visible{--tw-ring-color:hsl(var(--muted))}.eloq\\:focus-visible\\:ring-primary:focus-visible{--tw-ring-color:hsl(var(--primary))}.eloq\\:focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.eloq\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.eloq\\:active\\:cursor-grabbing:active{cursor:grabbing}.eloq\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.eloq\\:disabled\\:opacity-50:disabled{opacity:.5}.eloq\\:has-focus-visible\\:outline-2:has(:focus-visible){outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:has-focus-visible\\:outline-offset-1:has(:focus-visible){outline-offset:1px}.eloq\\:has-focus-visible\\:outline-ring:has(:focus-visible){outline-color:hsl(var(--ring))}@media(prefers-reduced-motion:reduce){.eloq\\:motion-reduce\\:animate-none{animation:none}.eloq\\:motion-reduce\\:opacity-70{opacity:.7}}@media(min-width:40rem){.eloq\\:sm\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}@media(min-width:48rem){.eloq\\:md\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}.eloq\\:dark\\:border:is(.dark *){border-style:var(--tw-border-style);border-width:1px}.eloq\\:dark\\:border-b:is(.dark *){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.eloq\\:dark\\:border-border:is(.dark *){border-color:hsl(var(--border))}.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:var(--eloq-color-amber-400)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-amber-400) 10%,transparent)}}.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:var(--eloq-color-blue-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-blue-500) 10%,transparent)}}.eloq\\:dark\\:bg-card:is(.dark *){background-color:hsl(var(--card))}.eloq\\:dark\\:bg-gray-100:is(.dark *){background-color:var(--eloq-color-gray-100)}.eloq\\:dark\\:bg-gray-200:is(.dark *){background-color:var(--eloq-color-gray-200)}.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:var(--eloq-color-green-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-green-500) 10%,transparent)}}.eloq\\:dark\\:bg-muted:is(.dark *){background-color:hsl(var(--muted))}.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:var(--eloq-color-red-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-red-500) 10%,transparent)}}.eloq\\:dark\\:text-amber-200:is(.dark *){color:var(--eloq-color-amber-200)}.eloq\\:dark\\:text-amber-400:is(.dark *){color:var(--eloq-color-amber-400)}.eloq\\:dark\\:text-blue-200:is(.dark *){color:var(--eloq-color-blue-200)}.eloq\\:dark\\:text-blue-400:is(.dark *){color:var(--eloq-color-blue-400)}.eloq\\:dark\\:text-gray-500:is(.dark *){color:var(--eloq-color-gray-500)}.eloq\\:dark\\:text-gray-900:is(.dark *){color:var(--eloq-color-gray-900)}.eloq\\:dark\\:text-green-200:is(.dark *){color:var(--eloq-color-green-200)}.eloq\\:dark\\:text-green-400:is(.dark *){color:var(--eloq-color-green-400)}.eloq\\:dark\\:text-muted-foreground:is(.dark *),.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:color-mix(in oklab,hsl(var(--muted-foreground)) 50%,transparent)}}.eloq\\:dark\\:text-red-200:is(.dark *){color:var(--eloq-color-red-200)}.eloq\\:dark\\:text-red-400:is(.dark *){color:var(--eloq-color-red-400)}.eloq\\:dark\\:shadow-none:is(.dark *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:color-mix(in oklab,var(--eloq-color-white) 10%,transparent)}}.eloq\\:dark\\:hover\\:text-gray-300:is(.dark *):hover{color:var(--eloq-color-gray-300)}.eloq\\:dark\\:hover\\:text-primary:is(.dark *):hover{color:hsl(var(--primary))}}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}}body{background-color:#0000}.eloquent-chat{font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.collapse{visibility:unset!important}.eloq-wrap-anywhere{overflow-wrap:anywhere}.eloq-thin-scrollbar{scrollbar-width:thin;scrollbar-color:hsl(var(--border)) transparent}.eloq-thin-scrollbar::-webkit-scrollbar{width:8px;height:8px}.eloq-thin-scrollbar::-webkit-scrollbar-thumb{background-color:hsl(var(--border));border-radius:9999px}.eloq-thin-scrollbar::-webkit-scrollbar-track{background-color:#0000}.eloq-test-mode-stripe{background:repeating-linear-gradient(-45deg,#f6e05e,#f6e05e 10px,#000 10px 20px)}.eloq-thinking-shimmer{--eloq-thinking-base:#9ca3af;--eloq-thinking-highlight:#4b5563;background:linear-gradient(90deg,var(--eloq-thinking-base) 0%,var(--eloq-thinking-base) 35%,var(--eloq-thinking-highlight) 50%,var(--eloq-thinking-base) 65%,var(--eloq-thinking-base) 100%);color:#0000;background-size:200% 100%;-webkit-background-clip:text;background-clip:text}.dark .eloq-thinking-shimmer{--eloq-thinking-base:#6b7280;--eloq-thinking-highlight:#e5e7eb}@media(prefers-reduced-motion:reduce){.eloq-thinking-shimmer{color:var(--eloq-thinking-base);background:0 0}}.eloq-regenerating-text{opacity:.4;transition:opacity .25s ease-out}.eloq-regenerating-sweep{border-radius:inherit;pointer-events:none;background:linear-gradient(100deg,#0000 30%,#ffffff8c,#0000 70%) 0 0/200% 100%;position:absolute;inset:0}.dark .eloq-regenerating-sweep{background-image:linear-gradient(100deg,#0000 30%,#ffffff1f,#0000 70%)}@media(prefers-reduced-motion:reduce){.eloq-regenerating-sweep{display:none}}@property --eloq-aura-angle{syntax:"<angle>";inherits:false;initial-value:0deg}.eloq-aura{--eloq-aura-strong:#9e9e9e;--eloq-aura-soft:#d1d1d1;background:conic-gradient(from var(--eloq-aura-angle),var(--eloq-aura-strong),var(--eloq-aura-soft),var(--eloq-aura-strong));border-radius:9999px;padding:2px;animation:2.6s linear infinite eloq-aura-spin;position:relative}@keyframes eloq-aura-spin{to{--eloq-aura-angle:360deg}}.eloq-aura-shine{border-radius:inherit;pointer-events:none;position:absolute;inset:0;overflow:hidden}.eloq-aura-shine:after{content:"";background:linear-gradient(90deg,#0000,#fffc,#0000);width:18%;position:absolute;top:-20%;bottom:-20%;left:0;transform:translate(-200%)skew(-20deg)}.eloq-aura-shine--active:after{animation:1.1s ease-in-out both eloq-aura-shine-sweep}@keyframes eloq-aura-shine-sweep{0%{transform:translate(-200%)skew(-20deg)}to{transform:translate(700%)skew(-20deg)}}@media(prefers-reduced-motion:reduce){.eloq-aura{animation:none}.eloq-aura-shine:after,.eloq-aura-shine--active:after{opacity:0;animation:none}}@keyframes panel-in{0%{opacity:0;transform:scale(.05)}to{opacity:1;transform:scale(1)}}@keyframes thinking-dot{0%,60%,to{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@keyframes regenerating-sweep{0%{background-position:150% 0}to{background-position:-50% 0}}@keyframes text-in{0%{opacity:0}to{opacity:1}}@keyframes thinking-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes panel-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.05)}}@keyframes message-in{0%{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:translateY(0)}}@keyframes slide-up-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}', to = ".eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}";
|
|
36
|
+
const 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-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--eloq-aura-angle:0deg}}}@layer theme{:root,:host{--eloq-font-sans:system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--eloq-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--eloq-color-red-50:oklch(97.1% .013 17.38);--eloq-color-red-200:oklch(88.5% .062 18.334);--eloq-color-red-400:oklch(70.4% .191 22.216);--eloq-color-red-500:oklch(63.7% .237 25.331);--eloq-color-red-800:oklch(44.4% .177 26.899);--eloq-color-amber-50:oklch(98.7% .022 95.277);--eloq-color-amber-200:oklch(92.4% .12 95.746);--eloq-color-amber-400:oklch(82.8% .189 84.429);--eloq-color-amber-500:oklch(76.9% .188 70.08);--eloq-color-amber-800:oklch(47.3% .137 46.201);--eloq-color-yellow-400:oklch(85.2% .199 91.936);--eloq-color-green-50:oklch(98.2% .018 155.826);--eloq-color-green-200:oklch(92.5% .084 155.995);--eloq-color-green-400:oklch(79.2% .209 151.711);--eloq-color-green-500:oklch(72.3% .219 149.579);--eloq-color-green-800:oklch(44.8% .119 151.328);--eloq-color-blue-50:oklch(97% .014 254.604);--eloq-color-blue-200:oklch(88.2% .059 254.128);--eloq-color-blue-400:oklch(70.7% .165 254.624);--eloq-color-blue-500:oklch(62.3% .214 259.815);--eloq-color-blue-800:oklch(42.4% .199 265.638);--eloq-color-gray-100:oklch(96.7% .003 264.542);--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-gray-900:oklch(21% .034 264.665);--eloq-color-black:#000;--eloq-color-white:#fff;--eloq-spacing:.25rem;--eloq-container-xs:20rem;--eloq-text-xs:.75rem;--eloq-text-xs--line-height:calc(1 / .75);--eloq-text-sm:.875rem;--eloq-text-sm--line-height:calc(1.25 / .875);--eloq-text-base:1rem;--eloq-text-base--line-height: 1.5 ;--eloq-text-2xl:1.5rem;--eloq-text-2xl--line-height:calc(2 / 1.5);--eloq-font-weight-medium:500;--eloq-font-weight-semibold:600;--eloq-tracking-tight:-.025em;--eloq-leading-relaxed:1.625;--eloq-radius-sm:calc(var(--radius) - 4px);--eloq-radius-md:calc(var(--radius) - 2px);--eloq-radius-lg:var(--radius);--eloq-radius-xl:.75rem;--eloq-radius-2xl:1rem;--eloq-radius-3xl:1.5rem;--eloq-drop-shadow-lg:0 4px 4px #00000026;--eloq-drop-shadow-xl:0 9px 7px #0000001a;--eloq-ease-out:cubic-bezier(0, 0, .2, 1);--eloq-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--eloq-default-transition-duration:.15s;--eloq-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--eloq-default-font-family:var(--eloq-font-sans);--eloq-default-mono-font-family:var(--eloq-font-mono);--eloq-animate-panel-in:panel-in .35s cubic-bezier(.16, 1, .3, 1) both;--eloq-animate-panel-out:panel-out .25s cubic-bezier(.4, 0, 1, 1) both;--eloq-animate-thinking-dot:thinking-dot 1.2s ease-in-out infinite;--eloq-animate-thinking-shimmer:thinking-shimmer 1.8s linear infinite;--eloq-animate-regenerating:regenerating-sweep 1.2s linear infinite;--eloq-animate-text-in:text-in .35s ease-out both;--eloq-animate-message-in:message-in .3s ease-out both;--eloq-animate-slide-up-in:slide-up-in .3s ease-out both}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--eloq-default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--eloq-default-font-feature-settings,normal);font-variation-settings:var(--eloq-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--eloq-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--eloq-default-mono-font-feature-settings,normal);font-variation-settings:var(--eloq-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--background:0 0% 100%;--foreground:0 0% 3.9%;--card:0 0% 100%;--card-foreground:0 0% 3.9%;--popover:0 0% 100%;--popover-foreground:0 0% 3.9%;--primary:267 56% 46%;--primary-foreground:0 0% 98%;--secondary:0 0% 96.1%;--secondary-foreground:0 0% 9%;--muted:0 0% 96.1%;--muted-foreground:0 0% 45.1%;--accent:0 0% 96.1%;--accent-foreground:0 0% 9%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--cream:37.5 44% 96.5%;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%;--radius:.5rem}.dark{--background:262 50% 10%;--foreground:262 5% 90%;--card:262 50% 10%;--card-foreground:262 5% 90%;--popover:262 50% 5%;--popover-foreground:262 5% 90%;--primary:262 62% 70%;--primary-foreground:0 0% 100%;--primary-dark:262 62% 60%;--secondary:262 30% 30%;--secondary-foreground:0 0% 100%;--secondary-dark:262 30% 20%;--secondary-light:262 30% 40%;--tertiary:267 56% 46%;--tertiary-foreground:0 0% 100%;--tertiary-dark:267 38% 25%;--tertiary-light:263 100% 85%;--muted:224 30% 25%;--muted-foreground:262 5% 90%;--accent:224 30% 25%;--accent-foreground:262 5% 100%;--accent-dark:224 30% 15%;--destructive:0 100% 30%;--destructive-foreground:262 5% 90%;--border:0 0% 30%;--input:262 30% 25%;--ring:262 62% 71%;--cream:257 28% 20%;--radius:.5rem;--sidebar-background:var(--background);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--border);--sidebar-ring:var(--ring)}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}}@layer components;@layer utilities{.eloq\\:pointer-events-none{pointer-events:none}.eloq\\:invisible{visibility:hidden}.eloq\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.eloq\\:absolute{position:absolute}.eloq\\:relative{position:relative}.eloq\\:inset-0{inset:0}.eloq\\:inset-0\\.5{inset:calc(var(--eloq-spacing) * .5)}.eloq\\:inset-x-0{inset-inline:0}.eloq\\:end-full{inset-inline-end:100%}.eloq\\:top-0{top:0}.eloq\\:top-0\\.5{top:calc(var(--eloq-spacing) * .5)}.eloq\\:top-1\\/2{top:50%}.eloq\\:top-\\[2px\\]{top:2px}.eloq\\:-right-\\[9px\\]{right:-9px}.eloq\\:right-0\\.5{right:calc(var(--eloq-spacing) * .5)}.eloq\\:right-2{right:calc(var(--eloq-spacing) * 2)}.eloq\\:right-16{right:calc(var(--eloq-spacing) * 16)}.eloq\\:right-\\[2px\\]{right:2px}.eloq\\:bottom-0{bottom:0}.eloq\\:bottom-1{bottom:var(--eloq-spacing)}.eloq\\:bottom-2{bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:bottom-10{bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:left-0{left:0}.eloq\\:left-2{left:calc(var(--eloq-spacing) * 2)}.eloq\\:left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.eloq\\:z-10{z-index:10}.eloq\\:z-20{z-index:20}.eloq\\:z-30{z-index:30}.eloq\\:m-0{margin:0}.eloq\\:m-auto{margin:auto}.eloq\\:mx-1{margin-inline:var(--eloq-spacing)}.eloq\\:mx-auto{margin-inline:auto}.eloq\\:my-2{margin-block:calc(var(--eloq-spacing) * 2)}.eloq\\:my-4{margin-block:calc(var(--eloq-spacing) * 4)}.eloq\\:me-1{margin-inline-end:var(--eloq-spacing)}.eloq\\:-mt-2{margin-top:calc(var(--eloq-spacing) * -2)}.eloq\\:-mt-6{margin-top:calc(var(--eloq-spacing) * -6)}.eloq\\:-mt-20{margin-top:calc(var(--eloq-spacing) * -20)}.eloq\\:mt-1{margin-top:var(--eloq-spacing)}.eloq\\:mt-2{margin-top:calc(var(--eloq-spacing) * 2)}.eloq\\:mt-10{margin-top:calc(var(--eloq-spacing) * 10)}.eloq\\:mr-1{margin-right:var(--eloq-spacing)}.eloq\\:mr-\\[2px\\]{margin-right:2px}.eloq\\:mb-1{margin-bottom:var(--eloq-spacing)}.eloq\\:mb-3{margin-bottom:calc(var(--eloq-spacing) * 3)}.eloq\\:mb-4{margin-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:mb-10{margin-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:ml-0{margin-left:0}.eloq\\:ml-1{margin-left:var(--eloq-spacing)}.eloq\\:ml-5{margin-left:calc(var(--eloq-spacing) * 5)}.eloq\\:box-content{box-sizing:content-box}.eloq\\:block{display:block}.eloq\\:flex{display:flex}.eloq\\:hidden{display:none}.eloq\\:inline-flex{display:inline-flex}.eloq\\:field-sizing-content{field-sizing:content}.eloq\\:aspect-square{aspect-ratio:1}.eloq\\:h-1{height:var(--eloq-spacing)}.eloq\\:h-2\\.5{height:calc(var(--eloq-spacing) * 2.5)}.eloq\\:h-3{height:calc(var(--eloq-spacing) * 3)}.eloq\\:h-4{height:calc(var(--eloq-spacing) * 4)}.eloq\\:h-5{height:calc(var(--eloq-spacing) * 5)}.eloq\\:h-6{height:calc(var(--eloq-spacing) * 6)}.eloq\\:h-8{height:calc(var(--eloq-spacing) * 8)}.eloq\\:h-10{height:calc(var(--eloq-spacing) * 10)}.eloq\\:h-12{height:calc(var(--eloq-spacing) * 12)}.eloq\\:h-14{height:calc(var(--eloq-spacing) * 14)}.eloq\\:h-16{height:calc(var(--eloq-spacing) * 16)}.eloq\\:h-\\[0\\.42em\\]{height:.42em}.eloq\\:h-\\[160px\\]{height:160px}.eloq\\:h-\\[220px\\]{height:220px}.eloq\\:h-\\[560px\\]{height:560px}.eloq\\:h-\\[600px\\]{height:600px}.eloq\\:h-full{height:100%}.eloq\\:max-h-\\[132px\\]{max-height:132px}.eloq\\:min-h-6{min-height:calc(var(--eloq-spacing) * 6)}.eloq\\:min-h-\\[48px\\]{min-height:48px}.eloq\\:min-h-\\[80px\\]{min-height:80px}.eloq\\:w-2\\.5{width:calc(var(--eloq-spacing) * 2.5)}.eloq\\:w-2\\/3{width:66.6667%}.eloq\\:w-3{width:calc(var(--eloq-spacing) * 3)}.eloq\\:w-4{width:calc(var(--eloq-spacing) * 4)}.eloq\\:w-5{width:calc(var(--eloq-spacing) * 5)}.eloq\\:w-6{width:calc(var(--eloq-spacing) * 6)}.eloq\\:w-8{width:calc(var(--eloq-spacing) * 8)}.eloq\\:w-10{width:calc(var(--eloq-spacing) * 10)}.eloq\\:w-12{width:calc(var(--eloq-spacing) * 12)}.eloq\\:w-14{width:calc(var(--eloq-spacing) * 14)}.eloq\\:w-16{width:calc(var(--eloq-spacing) * 16)}.eloq\\:w-24{width:calc(var(--eloq-spacing) * 24)}.eloq\\:w-32{width:calc(var(--eloq-spacing) * 32)}.eloq\\:w-48{width:calc(var(--eloq-spacing) * 48)}.eloq\\:w-\\[0\\.42em\\]{width:.42em}.eloq\\:w-\\[70\\%\\]{width:70%}.eloq\\:w-\\[320px\\]{width:320px}.eloq\\:w-\\[340px\\]{width:340px}.eloq\\:w-\\[348px\\]{width:348px}.eloq\\:w-\\[380px\\]{width:380px}.eloq\\:w-\\[420px\\]{width:420px}.eloq\\:w-full{width:100%}.eloq\\:max-w-\\[75\\%\\]{max-width:75%}.eloq\\:max-w-\\[88\\%\\]{max-width:88%}.eloq\\:max-w-full{max-width:100%}.eloq\\:max-w-xs{max-width:var(--eloq-container-xs)}.eloq\\:min-w-0{min-width:0}.eloq\\:min-w-6{min-width:calc(var(--eloq-spacing) * 6)}.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-y-1\\/2{--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-regenerating{animation:var(--eloq-animate-regenerating)}.eloq\\:animate-slide-up-in{animation:var(--eloq-animate-slide-up-in)}.eloq\\:animate-text-in{animation:var(--eloq-animate-text-in)}.eloq\\:animate-thinking-dot{animation:var(--eloq-animate-thinking-dot)}.eloq\\:animate-thinking-shimmer{animation:var(--eloq-animate-thinking-shimmer)}.eloq\\:cursor-default{cursor:default}.eloq\\:cursor-grab{cursor:grab}.eloq\\:cursor-pointer{cursor:pointer}.eloq\\:touch-none{touch-action:none}.eloq\\:resize-none{resize:none}.eloq\\:list-decimal{list-style-type:decimal}.eloq\\:list-disc{list-style-type:disc}.eloq\\:flex-col{flex-direction:column}.eloq\\:flex-row{flex-direction:row}.eloq\\:flex-wrap{flex-wrap:wrap}.eloq\\:items-center{align-items:center}.eloq\\:items-end{align-items:flex-end}.eloq\\:items-start{align-items:flex-start}.eloq\\:justify-between{justify-content:space-between}.eloq\\:justify-center{justify-content:center}.eloq\\:justify-end{justify-content:flex-end}.eloq\\:justify-start{justify-content:flex-start}.eloq\\:gap-1{gap:var(--eloq-spacing)}.eloq\\:gap-1\\.5{gap:calc(var(--eloq-spacing) * 1.5)}.eloq\\:gap-2{gap:calc(var(--eloq-spacing) * 2)}.eloq\\:gap-3{gap:calc(var(--eloq-spacing) * 3)}.eloq\\:gap-\\[0\\.25em\\]{gap:.25em}:where(.eloq\\:space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.eloq\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--eloq-spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--eloq-spacing) * var(--tw-space-x-reverse));margin-inline-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}.eloq\\:self-end{align-self:flex-end}.eloq\\:self-stretch{align-self:stretch}.eloq\\:overflow-hidden{overflow:hidden}.eloq\\:overflow-x-auto{overflow-x:auto}.eloq\\:overscroll-contain{overscroll-behavior:contain}.eloq\\:rounded{border-radius:.25rem}.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-2{border-style:var(--tw-border-style);border-width:2px}.eloq\\:border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.eloq\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.eloq\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.eloq\\:border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.eloq\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.eloq\\:border-amber-400{border-color:var(--eloq-color-amber-400)}.eloq\\:border-blue-500{border-color:var(--eloq-color-blue-500)}.eloq\\:border-border{border-color:hsl(var(--border))}.eloq\\:border-current{border-color:currentColor}.eloq\\:border-green-500{border-color:var(--eloq-color-green-500)}.eloq\\:border-input{border-color:hsl(var(--input))}.eloq\\:border-red-500{border-color:var(--eloq-color-red-500)}.eloq\\:border-t-transparent{border-top-color:#0000}.eloq\\:border-l-transparent{border-left-color:#0000}.eloq\\:bg-\\[\\#0a0a0a\\]{background-color:#0a0a0a}.eloq\\:bg-\\[\\#000\\]{background-color:#000}.eloq\\:bg-\\[\\#fff\\]{background-color:#fff}.eloq\\:bg-amber-50{background-color:var(--eloq-color-amber-50)}.eloq\\:bg-background{background-color:hsl(var(--background))}.eloq\\:bg-black\\/20{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/20{background-color:color-mix(in oklab,var(--eloq-color-black) 20%,transparent)}}.eloq\\:bg-black\\/60{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/60{background-color:color-mix(in oklab,var(--eloq-color-black) 60%,transparent)}}.eloq\\:bg-blue-50{background-color:var(--eloq-color-blue-50)}.eloq\\:bg-border{background-color:hsl(var(--border))}.eloq\\:bg-card{background-color:hsl(var(--card))}.eloq\\:bg-cream{background-color:hsl(var(--cream))}.eloq\\:bg-gray-400{background-color:var(--eloq-color-gray-400)}.eloq\\:bg-gray-900{background-color:var(--eloq-color-gray-900)}.eloq\\:bg-green-50{background-color:var(--eloq-color-green-50)}.eloq\\:bg-muted{background-color:hsl(var(--muted))}.eloq\\:bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.eloq\\:bg-primary{background-color:hsl(var(--primary))}.eloq\\:bg-red-50{background-color:var(--eloq-color-red-50)}.eloq\\:bg-white,.eloq\\:bg-white\\/20{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-white\\/20{background-color:color-mix(in oklab,var(--eloq-color-white) 20%,transparent)}}.eloq\\:fill-none{fill:none}.eloq\\:fill-yellow-400{fill:var(--eloq-color-yellow-400)}.eloq\\:object-contain{object-fit:contain}.eloq\\:object-cover{object-fit:cover}.eloq\\:p-0{padding:0}.eloq\\:p-0\\.5{padding:calc(var(--eloq-spacing) * .5)}.eloq\\:p-1{padding:var(--eloq-spacing)}.eloq\\:p-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\\:p-\\[7px\\]{padding:7px}.eloq\\:px-0{padding-inline:0}.eloq\\:px-1\\.5{padding-inline:calc(var(--eloq-spacing) * 1.5)}.eloq\\:px-2{padding-inline:calc(var(--eloq-spacing) * 2)}.eloq\\:px-3{padding-inline:calc(var(--eloq-spacing) * 3)}.eloq\\:px-4{padding-inline:calc(var(--eloq-spacing) * 4)}.eloq\\:px-5{padding-inline:calc(var(--eloq-spacing) * 5)}.eloq\\:px-\\[12px\\]{padding-inline:12px}.eloq\\:px-\\[16px\\]{padding-inline:16px}.eloq\\:py-0\\.5{padding-block:calc(var(--eloq-spacing) * .5)}.eloq\\:py-1{padding-block:var(--eloq-spacing)}.eloq\\:py-1\\.5{padding-block:calc(var(--eloq-spacing) * 1.5)}.eloq\\:py-2{padding-block:calc(var(--eloq-spacing) * 2)}.eloq\\:py-3{padding-block:calc(var(--eloq-spacing) * 3)}.eloq\\:py-3\\.5{padding-block:calc(var(--eloq-spacing) * 3.5)}.eloq\\:py-\\[8px\\]{padding-block:8px}.eloq\\:py-\\[12px\\]{padding-block:12px}.eloq\\:pt-0{padding-top:0}.eloq\\:pt-2{padding-top:calc(var(--eloq-spacing) * 2)}.eloq\\:pt-4{padding-top:calc(var(--eloq-spacing) * 4)}.eloq\\:pt-5{padding-top:calc(var(--eloq-spacing) * 5)}.eloq\\:pt-6{padding-top:calc(var(--eloq-spacing) * 6)}.eloq\\:pt-10{padding-top:calc(var(--eloq-spacing) * 10)}.eloq\\:pt-24{padding-top:calc(var(--eloq-spacing) * 24)}.eloq\\:pr-2{padding-right:calc(var(--eloq-spacing) * 2)}.eloq\\:pr-4{padding-right:calc(var(--eloq-spacing) * 4)}.eloq\\:pr-12{padding-right:calc(var(--eloq-spacing) * 12)}.eloq\\:pb-2{padding-bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:pb-4{padding-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:pb-10{padding-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:pb-14{padding-bottom:calc(var(--eloq-spacing) * 14)}.eloq\\:pl-3{padding-left:calc(var(--eloq-spacing) * 3)}.eloq\\:pl-4{padding-left:calc(var(--eloq-spacing) * 4)}.eloq\\:pl-11{padding-left:calc(var(--eloq-spacing) * 11)}.eloq\\:text-center{text-align:center}.eloq\\:text-left{text-align:left}.eloq\\:text-2xl{font-size:var(--eloq-text-2xl);line-height:var(--tw-leading,var(--eloq-text-2xl--line-height))}.eloq\\:text-base{font-size:var(--eloq-text-base);line-height:var(--tw-leading,var(--eloq-text-base--line-height))}.eloq\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}.eloq\\:text-xs{font-size:var(--eloq-text-xs);line-height:var(--tw-leading,var(--eloq-text-xs--line-height))}.eloq\\:text-\\[10px\\]{font-size:10px}.eloq\\:leading-5{--tw-leading:calc(var(--eloq-spacing) * 5);line-height:calc(var(--eloq-spacing) * 5)}.eloq\\:leading-none{--tw-leading:1;line-height:1}.eloq\\:leading-relaxed{--tw-leading:var(--eloq-leading-relaxed);line-height:var(--eloq-leading-relaxed)}.eloq\\:font-medium{--tw-font-weight:var(--eloq-font-weight-medium);font-weight:var(--eloq-font-weight-medium)}.eloq\\:font-semibold{--tw-font-weight:var(--eloq-font-weight-semibold);font-weight:var(--eloq-font-weight-semibold)}.eloq\\:tracking-tight{--tw-tracking:var(--eloq-tracking-tight);letter-spacing:var(--eloq-tracking-tight)}.eloq\\:whitespace-nowrap{white-space:nowrap}.eloq\\:text-\\[\\#000\\]{color:#000}.eloq\\:text-\\[\\#fff\\]{color:#fff}.eloq\\:text-amber-500{color:var(--eloq-color-amber-500)}.eloq\\:text-amber-800{color:var(--eloq-color-amber-800)}.eloq\\:text-blue-500{color:var(--eloq-color-blue-500)}.eloq\\:text-blue-800{color:var(--eloq-color-blue-800)}.eloq\\:text-card-foreground{color:hsl(var(--card-foreground))}.eloq\\:text-destructive{color:hsl(var(--destructive))}.eloq\\:text-foreground{color:hsl(var(--foreground))}.eloq\\:text-gray-300{color:var(--eloq-color-gray-300)}.eloq\\:text-gray-400{color:var(--eloq-color-gray-400)}.eloq\\:text-gray-500{color:var(--eloq-color-gray-500)}.eloq\\:text-green-500{color:var(--eloq-color-green-500)}.eloq\\:text-green-800{color:var(--eloq-color-green-800)}.eloq\\:text-muted{color:hsl(var(--muted))}.eloq\\:text-muted-foreground{color:hsl(var(--muted-foreground))}.eloq\\:text-primary{color:hsl(var(--primary))}.eloq\\:text-primary-foreground{color:hsl(var(--primary-foreground))}.eloq\\:text-red-500{color:var(--eloq-color-red-500)}.eloq\\:text-red-800{color:var(--eloq-color-red-800)}.eloq\\:text-white{color:var(--eloq-color-white)}.eloq\\:text-yellow-400{color:var(--eloq-color-yellow-400)}.eloq\\:italic{font-style:italic}.eloq\\:underline{text-decoration-line:underline}.eloq\\:opacity-0{opacity:0}.eloq\\:opacity-50{opacity:.5}.eloq\\:opacity-70{opacity:.7}.eloq\\:opacity-75{opacity:.75}.eloq\\:opacity-100{opacity:1}.eloq\\:shadow-\\[0_-8px_24px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow:0 -8px 24px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_0_4px_0_rgba\\(0\\,0\\,0\\,0\\.20\\)\\]{--tw-shadow:0 0 4px 0 var(--tw-shadow-color,#0003);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_3px_4px_-2px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0 3px 4px -2px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.eloq\\:outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:outline-offset-2{outline-offset:2px}.eloq\\:outline-transparent{outline-color:#0000}.eloq\\:drop-shadow-lg{--tw-drop-shadow-size:drop-shadow(0 4px 4px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-lg));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.eloq\\:transition-\\[outline-color\\]{transition-property:outline-color;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-\\[visibility\\]{transition-property:visibility;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:delay-100{transition-delay:.1s}.eloq\\:duration-0{--tw-duration:0s;transition-duration:0s}.eloq\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.eloq\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.eloq\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.eloq\\:duration-500{--tw-duration:.5s;transition-duration:.5s}.eloq\\:ease-out{--tw-ease:var(--eloq-ease-out);transition-timing-function:var(--eloq-ease-out)}.eloq\\:select-none{-webkit-user-select:none;user-select:none}.eloq\\:group-focus-visible\\:block:is(:where(.eloq\\:group):focus-visible *){display:block}.eloq\\:placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.eloq\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.eloq\\:hover\\:bg-black\\/5:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 5%,transparent)}}.eloq\\:hover\\:bg-black\\/80:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/80:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 80%,transparent)}}.eloq\\:hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.eloq\\:hover\\:text-foreground:hover{color:hsl(var(--foreground))}.eloq\\:hover\\:text-gray-600:hover{color:var(--eloq-color-gray-600)}.eloq\\:hover\\:text-primary:hover{color:hsl(var(--primary))}.eloq\\:hover\\:opacity-80:hover{opacity:.8}.eloq\\:hover\\:opacity-90:hover{opacity:.9}.eloq\\:hover\\:opacity-100:hover{opacity:1}.eloq\\:hover\\:drop-shadow-xl:hover{--tw-drop-shadow-size:drop-shadow(0 9px 7px var(--tw-drop-shadow-color,#0000001a));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}.eloq\\:focus-visible\\:opacity-100:focus-visible{opacity:1}.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-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.eloq\\:focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.eloq\\:focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:focus-visible\\:-outline-offset-4:focus-visible{outline-offset:-4px}.eloq\\:focus-visible\\:outline-current:focus-visible{outline-color:currentColor}.eloq\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.eloq\\:focus-visible\\:outline-solid:focus-visible{--tw-outline-style:solid;outline-style:solid}.eloq\\:active\\:cursor-grabbing:active{cursor:grabbing}.eloq\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.eloq\\:disabled\\:opacity-50:disabled{opacity:.5}.eloq\\:has-focus-visible\\:outline-2:has(:focus-visible){outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:has-focus-visible\\:outline-offset-1:has(:focus-visible){outline-offset:1px}.eloq\\:has-focus-visible\\:outline-ring:has(:focus-visible){outline-color:hsl(var(--ring))}@media(prefers-reduced-motion:reduce){.eloq\\:motion-reduce\\:animate-none{animation:none}.eloq\\:motion-reduce\\:opacity-70{opacity:.7}}@media(min-width:40rem){.eloq\\:sm\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}@media(min-width:48rem){.eloq\\:md\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}.eloq\\:dark\\:border:is(.dark *){border-style:var(--tw-border-style);border-width:1px}.eloq\\:dark\\:border-b:is(.dark *){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.eloq\\:dark\\:border-border:is(.dark *){border-color:hsl(var(--border))}.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:var(--eloq-color-amber-400)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-amber-400) 10%,transparent)}}.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:var(--eloq-color-blue-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-blue-500) 10%,transparent)}}.eloq\\:dark\\:bg-card:is(.dark *){background-color:hsl(var(--card))}.eloq\\:dark\\:bg-gray-100:is(.dark *){background-color:var(--eloq-color-gray-100)}.eloq\\:dark\\:bg-gray-200:is(.dark *){background-color:var(--eloq-color-gray-200)}.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:var(--eloq-color-green-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-green-500) 10%,transparent)}}.eloq\\:dark\\:bg-muted:is(.dark *){background-color:hsl(var(--muted))}.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:var(--eloq-color-red-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-red-500) 10%,transparent)}}.eloq\\:dark\\:text-amber-200:is(.dark *){color:var(--eloq-color-amber-200)}.eloq\\:dark\\:text-amber-400:is(.dark *){color:var(--eloq-color-amber-400)}.eloq\\:dark\\:text-blue-200:is(.dark *){color:var(--eloq-color-blue-200)}.eloq\\:dark\\:text-blue-400:is(.dark *){color:var(--eloq-color-blue-400)}.eloq\\:dark\\:text-gray-500:is(.dark *){color:var(--eloq-color-gray-500)}.eloq\\:dark\\:text-gray-900:is(.dark *){color:var(--eloq-color-gray-900)}.eloq\\:dark\\:text-green-200:is(.dark *){color:var(--eloq-color-green-200)}.eloq\\:dark\\:text-green-400:is(.dark *){color:var(--eloq-color-green-400)}.eloq\\:dark\\:text-muted-foreground:is(.dark *),.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:color-mix(in oklab,hsl(var(--muted-foreground)) 50%,transparent)}}.eloq\\:dark\\:text-red-200:is(.dark *){color:var(--eloq-color-red-200)}.eloq\\:dark\\:text-red-400:is(.dark *){color:var(--eloq-color-red-400)}.eloq\\:dark\\:shadow-none:is(.dark *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:color-mix(in oklab,var(--eloq-color-white) 10%,transparent)}}.eloq\\:dark\\:hover\\:text-gray-300:is(.dark *):hover{color:var(--eloq-color-gray-300)}.eloq\\:dark\\:hover\\:text-primary:is(.dark *):hover{color:hsl(var(--primary))}}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}}body{background-color:#0000}.eloquent-chat{font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.collapse{visibility:unset!important}.eloq-wrap-anywhere{overflow-wrap:anywhere}.eloq-thin-scrollbar{scrollbar-width:thin;scrollbar-color:hsl(var(--border)) transparent}.eloq-thin-scrollbar::-webkit-scrollbar{width:8px;height:8px}.eloq-thin-scrollbar::-webkit-scrollbar-thumb{background-color:hsl(var(--border));border-radius:9999px}.eloq-thin-scrollbar::-webkit-scrollbar-track{background-color:#0000}.eloq-test-mode-stripe{background:repeating-linear-gradient(-45deg,#f6e05e,#f6e05e 10px,#000 10px 20px)}.eloq-thinking-shimmer{--eloq-thinking-base:#9ca3af;--eloq-thinking-highlight:#4b5563;background:linear-gradient(90deg,var(--eloq-thinking-base) 0%,var(--eloq-thinking-base) 35%,var(--eloq-thinking-highlight) 50%,var(--eloq-thinking-base) 65%,var(--eloq-thinking-base) 100%);color:#0000;background-size:200% 100%;-webkit-background-clip:text;background-clip:text}.dark .eloq-thinking-shimmer{--eloq-thinking-base:#6b7280;--eloq-thinking-highlight:#e5e7eb}@media(prefers-reduced-motion:reduce){.eloq-thinking-shimmer{color:var(--eloq-thinking-base);background:0 0}}.eloq-regenerating-text{opacity:.4;transition:opacity .25s ease-out}.eloq-regenerating-sweep{border-radius:inherit;pointer-events:none;background:linear-gradient(100deg,#0000 30%,#ffffff8c,#0000 70%) 0 0/200% 100%;position:absolute;inset:0}.dark .eloq-regenerating-sweep{background-image:linear-gradient(100deg,#0000 30%,#ffffff1f,#0000 70%)}@media(prefers-reduced-motion:reduce){.eloq-regenerating-sweep{display:none}}@property --eloq-aura-angle{syntax:"<angle>";inherits:false;initial-value:0deg}.eloq-aura{--eloq-aura-strong:#9e9e9e;--eloq-aura-soft:#d1d1d1;background:conic-gradient(from var(--eloq-aura-angle),var(--eloq-aura-strong),var(--eloq-aura-soft),var(--eloq-aura-strong));border-radius:9999px;padding:2px;animation:2.6s linear infinite eloq-aura-spin;position:relative}@keyframes eloq-aura-spin{to{--eloq-aura-angle:360deg}}.eloq-aura-shine{border-radius:inherit;pointer-events:none;position:absolute;inset:0;overflow:hidden}.eloq-aura-shine:after{content:"";background:linear-gradient(90deg,#0000,#fffc,#0000);width:18%;position:absolute;top:-20%;bottom:-20%;left:0;transform:translate(-200%)skew(-20deg)}.eloq-aura-shine--active:after{animation:1.1s ease-in-out both eloq-aura-shine-sweep}@keyframes eloq-aura-shine-sweep{0%{transform:translate(-200%)skew(-20deg)}to{transform:translate(700%)skew(-20deg)}}@media(prefers-reduced-motion:reduce){.eloq-aura{animation:none}.eloq-aura-shine:after,.eloq-aura-shine--active:after{opacity:0;animation:none}}@keyframes panel-in{0%{opacity:0;transform:scale(.05)}to{opacity:1;transform:scale(1)}}@keyframes thinking-dot{0%,60%,to{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@keyframes regenerating-sweep{0%{background-position:150% 0}to{background-position:-50% 0}}@keyframes text-in{0%{opacity:0}to{opacity:1}}@keyframes thinking-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes panel-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.05)}}@keyframes message-in{0%{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:translateY(0)}}@keyframes slide-up-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}', to = ".eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}";
|
|
37
37
|
function oo({
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
isOpen: e,
|
|
39
|
+
toggleBubble: t,
|
|
40
|
+
isDarkMode: o = !1
|
|
40
41
|
}) {
|
|
41
|
-
const
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
"
|
|
42
|
+
const r = o ? "#fff" : "#000", n = o ? "#000000" : "#ffffff";
|
|
43
|
+
return /* @__PURE__ */ I("div", { className: "eloq:absolute eloq:inset-0 eloq:m-auto eloq:flex eloq:items-center eloq:justify-center eloq:overflow-hidden", children: /* @__PURE__ */ _e(
|
|
44
|
+
"button",
|
|
44
45
|
{
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
type: "button",
|
|
47
|
+
"aria-label": "Open chat",
|
|
48
|
+
"aria-expanded": e,
|
|
49
|
+
className: Be(
|
|
50
|
+
"eloq:group eloq:chat-bubble eloq:relative eloq:flex eloq:items-center eloq:justify-center eloq:w-12 eloq:h-12 eloq:rounded-full eloq:cursor-pointer",
|
|
51
|
+
// The ring below replaces the UA outline, which would be drawn
|
|
52
|
+
// outside the circle and clipped by the 48px launcher iframe.
|
|
53
|
+
"eloq:focus-visible:outline-hidden",
|
|
54
|
+
// While the chat is open the frame is only faded out (opacity 0),
|
|
55
|
+
// which leaves this button in the Tab order and the accessibility
|
|
56
|
+
// tree. Hide it once the 100ms fade ends; on close it shows again
|
|
57
|
+
// at once, so focus can come back to it.
|
|
58
|
+
e && "eloq:invisible eloq:transition-[visibility] eloq:duration-0 eloq:delay-100",
|
|
47
59
|
// Inverted in dark mode: a black launcher disappears on dark pages.
|
|
48
|
-
|
|
60
|
+
o ? "eloq:bg-[#fff] eloq:text-[#000]" : "eloq:bg-[#000] eloq:text-[#fff]"
|
|
49
61
|
),
|
|
50
|
-
onClick:
|
|
51
|
-
children:
|
|
62
|
+
onClick: t,
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ I(
|
|
65
|
+
"span",
|
|
66
|
+
{
|
|
67
|
+
"aria-hidden": !0,
|
|
68
|
+
className: "eloq:absolute eloq:inset-0 eloq:flex eloq:justify-center eloq:items-center eloq:m-auto",
|
|
69
|
+
children: /* @__PURE__ */ I(Tt, { bgColor: r, fgColor: n })
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ I(
|
|
73
|
+
"span",
|
|
74
|
+
{
|
|
75
|
+
"aria-hidden": !0,
|
|
76
|
+
className: "eloq:pointer-events-none eloq:absolute eloq:inset-0.5 eloq:hidden eloq:rounded-full eloq:border-2 eloq:border-current eloq:group-focus-visible:block"
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
]
|
|
52
80
|
}
|
|
53
81
|
) });
|
|
54
82
|
}
|
|
55
|
-
function
|
|
56
|
-
const [r, n] =
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
a &&
|
|
59
|
-
|
|
83
|
+
function Ge({ children: e, head: t, ...o }) {
|
|
84
|
+
const [r, n] = C(null), a = r?.contentWindow?.document?.head, l = r?.contentWindow?.document?.body;
|
|
85
|
+
return /* @__PURE__ */ _e("iframe", { ...o, ref: n, children: [
|
|
86
|
+
a && ot(t, a),
|
|
87
|
+
l && ot(e, l)
|
|
60
88
|
] });
|
|
61
89
|
}
|
|
62
90
|
function ro({ children: e, container: t }) {
|
|
63
|
-
return
|
|
91
|
+
return ot(e, t);
|
|
64
92
|
}
|
|
65
93
|
function no({
|
|
66
94
|
message: e,
|
|
@@ -69,33 +97,39 @@ function no({
|
|
|
69
97
|
onMessageClick: r,
|
|
70
98
|
autoHideDelay: n
|
|
71
99
|
}) {
|
|
72
|
-
const [a,
|
|
73
|
-
|
|
100
|
+
const [a, l] = C(!1), [s, u] = C("entering"), [i, c] = C(!1), d = Mt();
|
|
101
|
+
if (V(() => {
|
|
74
102
|
if (t) {
|
|
75
|
-
|
|
76
|
-
const
|
|
103
|
+
l(!0), u("entering");
|
|
104
|
+
const h = setTimeout(() => {
|
|
77
105
|
u("visible");
|
|
78
106
|
}, 50);
|
|
79
|
-
|
|
80
|
-
const p = setTimeout(() => {
|
|
81
|
-
u("exiting"), d = setTimeout(() => {
|
|
82
|
-
o();
|
|
83
|
-
}, 300);
|
|
84
|
-
}, n);
|
|
85
|
-
return () => {
|
|
86
|
-
clearTimeout(l), clearTimeout(p), clearTimeout(d);
|
|
87
|
-
};
|
|
107
|
+
return () => clearTimeout(h);
|
|
88
108
|
} else {
|
|
89
109
|
u("exiting");
|
|
90
|
-
const
|
|
91
|
-
|
|
110
|
+
const h = setTimeout(() => {
|
|
111
|
+
l(!1), u("entering");
|
|
92
112
|
}, 300);
|
|
93
|
-
return () => clearTimeout(
|
|
113
|
+
return () => clearTimeout(h);
|
|
94
114
|
}
|
|
95
|
-
}, [t
|
|
115
|
+
}, [t]), V(() => {
|
|
116
|
+
if (!t || i) return;
|
|
117
|
+
let h = !1, f;
|
|
118
|
+
const g = setTimeout(() => {
|
|
119
|
+
h = !0, u("exiting"), f = setTimeout(() => {
|
|
120
|
+
o();
|
|
121
|
+
}, 300);
|
|
122
|
+
}, n);
|
|
123
|
+
return () => {
|
|
124
|
+
clearTimeout(g), clearTimeout(f), h && u("visible");
|
|
125
|
+
};
|
|
126
|
+
}, [t, i, o, n]), !a)
|
|
127
|
+
return null;
|
|
128
|
+
const p = d.botBubbleTextColor || At(d.botBubbleColor);
|
|
129
|
+
return /* @__PURE__ */ I(
|
|
96
130
|
"div",
|
|
97
131
|
{
|
|
98
|
-
className:
|
|
132
|
+
className: Be(
|
|
99
133
|
// right-16 leaves a ~7px gap between the tail tip and the launcher
|
|
100
134
|
// circle's edge — the tail points at it without sliding underneath.
|
|
101
135
|
"eloq:absolute eloq:right-16 eloq:bottom-0 eloq:max-w-xs eloq:transform eloq:transition-all eloq:duration-500 eloq:ease-out",
|
|
@@ -103,78 +137,93 @@ function no({
|
|
|
103
137
|
s === "visible" && "eloq:translate-x-0 eloq:opacity-100 eloq:scale-100",
|
|
104
138
|
s === "exiting" && "eloq:translate-x-8 eloq:opacity-0 eloq:scale-95"
|
|
105
139
|
),
|
|
106
|
-
children: /* @__PURE__ */
|
|
140
|
+
children: /* @__PURE__ */ _e(
|
|
107
141
|
"div",
|
|
108
142
|
{
|
|
109
|
-
className: "eloq:relative eloq:
|
|
110
|
-
|
|
111
|
-
|
|
143
|
+
className: "eloq:relative eloq:drop-shadow-lg eloq:hover:drop-shadow-xl eloq:transition-all eloq:duration-300",
|
|
144
|
+
onFocus: () => c(!0),
|
|
145
|
+
onBlur: (h) => {
|
|
146
|
+
h.currentTarget.contains(h.relatedTarget) || c(!1);
|
|
112
147
|
},
|
|
113
|
-
onClick: r,
|
|
114
148
|
children: [
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
"
|
|
149
|
+
/* @__PURE__ */ _e(
|
|
150
|
+
"button",
|
|
117
151
|
{
|
|
118
|
-
"
|
|
119
|
-
className:
|
|
120
|
-
|
|
152
|
+
type: "button",
|
|
153
|
+
className: Be(
|
|
154
|
+
// block/w-full/text-left undo the UA button's inline-block,
|
|
155
|
+
// centred layout so it lays out like the div it replaced.
|
|
156
|
+
"eloq:relative eloq:block eloq:w-full eloq:rounded-lg eloq:border eloq:p-3 eloq:text-left eloq:cursor-pointer",
|
|
157
|
+
// Inset ring in the text colour: it sits on the bubble's own
|
|
158
|
+
// background (so it contrasts like the text does), and an outer
|
|
159
|
+
// ring would be clipped by the iframe edge below the bubble.
|
|
160
|
+
"eloq:focus-visible:outline-2 eloq:focus-visible:outline-solid eloq:focus-visible:outline-current eloq:focus-visible:-outline-offset-4"
|
|
161
|
+
),
|
|
162
|
+
style: {
|
|
163
|
+
backgroundColor: d.botBubbleColor,
|
|
164
|
+
color: p
|
|
165
|
+
},
|
|
166
|
+
onClick: r,
|
|
121
167
|
children: [
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
"
|
|
168
|
+
/* @__PURE__ */ _e(
|
|
169
|
+
"svg",
|
|
124
170
|
{
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
171
|
+
"aria-hidden": !0,
|
|
172
|
+
className: "eloq:absolute eloq:bottom-1 eloq:-right-[9px] eloq:h-4 eloq:w-4 eloq:-scale-x-100",
|
|
173
|
+
viewBox: "0 0 10.54 11.14",
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ I(
|
|
176
|
+
"path",
|
|
177
|
+
{
|
|
178
|
+
d: "M5.75,0s0,.36,0,.51c-.09,4.52-5.74,10.64-5.74,10.64,8.19.02,10.54-2.26,10.54-2.26h0c-1.6-2.96-3.19-5.92-4.79-8.88Z",
|
|
179
|
+
fill: d.botBubbleColor,
|
|
180
|
+
strokeWidth: 2,
|
|
181
|
+
vectorEffect: "non-scaling-stroke",
|
|
182
|
+
style: { stroke: "hsl(var(--border))" }
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
/* @__PURE__ */ I(
|
|
186
|
+
"rect",
|
|
187
|
+
{
|
|
188
|
+
x: "6.2",
|
|
189
|
+
y: "-1",
|
|
190
|
+
width: "6",
|
|
191
|
+
height: "14",
|
|
192
|
+
fill: d.botBubbleColor
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
]
|
|
130
196
|
}
|
|
131
197
|
),
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
|
|
134
|
-
{
|
|
135
|
-
|
|
136
|
-
y: "-1",
|
|
137
|
-
width: "6",
|
|
138
|
-
height: "14",
|
|
139
|
-
fill: i.botBubbleColor
|
|
140
|
-
}
|
|
141
|
-
)
|
|
198
|
+
/* @__PURE__ */ _e("span", { className: "eloq:block eloq:text-sm eloq:leading-relaxed eloq:pr-4", children: [
|
|
199
|
+
e,
|
|
200
|
+
/* @__PURE__ */ I("span", { className: "eloq:sr-only", children: " (open chat)" })
|
|
201
|
+
] })
|
|
142
202
|
]
|
|
143
203
|
}
|
|
144
204
|
),
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
"p",
|
|
147
|
-
{
|
|
148
|
-
className: "eloq:text-sm eloq:leading-relaxed eloq:pr-4",
|
|
149
|
-
style: {
|
|
150
|
-
color: i.botBubbleTextColor || ct(i.botBubbleColor)
|
|
151
|
-
},
|
|
152
|
-
children: e
|
|
153
|
-
}
|
|
154
|
-
),
|
|
155
|
-
/* @__PURE__ */ C(
|
|
205
|
+
/* @__PURE__ */ I(
|
|
156
206
|
"button",
|
|
157
207
|
{
|
|
208
|
+
type: "button",
|
|
158
209
|
"aria-label": "Dismiss message",
|
|
159
|
-
onClick:
|
|
160
|
-
|
|
161
|
-
},
|
|
162
|
-
className: "eloq:absolute eloq:top-0.5 eloq:right-0.5 eloq:p-1.5 eloq:opacity-50 eloq:hover:opacity-100 eloq:hover:bg-black/5 eloq:dark:hover:bg-white/10 eloq:rounded-full eloq:transition-all eloq:duration-200",
|
|
210
|
+
onClick: o,
|
|
211
|
+
className: "eloq:absolute eloq:top-[2px] eloq:right-[2px] eloq:p-[7px] eloq:opacity-50 eloq:hover:opacity-100 eloq:focus-visible:opacity-100 eloq:hover:bg-black/5 eloq:dark:hover:bg-white/10 eloq:rounded-full eloq:transition-all eloq:duration-200",
|
|
163
212
|
style: {
|
|
164
213
|
// Follows the bubble's computed text colour, so the X blends
|
|
165
214
|
// with the message on any bubble background (and dark mode).
|
|
166
|
-
color:
|
|
215
|
+
color: p
|
|
167
216
|
},
|
|
168
|
-
children: /* @__PURE__ */
|
|
217
|
+
children: /* @__PURE__ */ I(Pt, { "aria-hidden": !0, className: "eloq:w-2.5 eloq:h-2.5", strokeWidth: 1.75 })
|
|
169
218
|
}
|
|
170
219
|
)
|
|
171
220
|
]
|
|
172
221
|
}
|
|
173
|
-
)
|
|
222
|
+
)
|
|
174
223
|
}
|
|
175
|
-
)
|
|
224
|
+
);
|
|
176
225
|
}
|
|
177
|
-
function
|
|
226
|
+
function ut(e) {
|
|
178
227
|
if (typeof document > "u") return null;
|
|
179
228
|
const t = document.cookie.match(new RegExp(`(?:^|; )${e}=([^;]*)`));
|
|
180
229
|
return t ? decodeURIComponent(t[1]) : null;
|
|
@@ -191,7 +240,7 @@ function so({
|
|
|
191
240
|
chatProps: e,
|
|
192
241
|
chatSettings: t
|
|
193
242
|
}) {
|
|
194
|
-
return
|
|
243
|
+
return tt(() => t ? {
|
|
195
244
|
assistantName: t.agent_name,
|
|
196
245
|
assistantLogo: t.avatar_url || void 0,
|
|
197
246
|
theme: {
|
|
@@ -227,9 +276,9 @@ function lo() {
|
|
|
227
276
|
t[r] = o;
|
|
228
277
|
}), t;
|
|
229
278
|
}
|
|
230
|
-
const co = "eloquent-ai::conversation-data",
|
|
279
|
+
const co = "eloquent-ai::conversation-data", Me = typeof window < "u", uo = 1800 * 1e3;
|
|
231
280
|
function it({ appId: e }) {
|
|
232
|
-
const t =
|
|
281
|
+
const t = tt(() => `${co}-${e}`, [e]), o = tt(
|
|
233
282
|
() => ({
|
|
234
283
|
conversationId: null,
|
|
235
284
|
userId: null,
|
|
@@ -239,7 +288,7 @@ function it({ appId: e }) {
|
|
|
239
288
|
[]
|
|
240
289
|
), r = v(() => {
|
|
241
290
|
try {
|
|
242
|
-
if (!
|
|
291
|
+
if (!Me) return o;
|
|
243
292
|
const i = localStorage.getItem(t);
|
|
244
293
|
return i ? JSON.parse(i) : o;
|
|
245
294
|
} catch (i) {
|
|
@@ -256,12 +305,12 @@ function it({ appId: e }) {
|
|
|
256
305
|
return console.error("Error checking conversation expiration:", i), !0;
|
|
257
306
|
}
|
|
258
307
|
}, [r]), a = v(
|
|
259
|
-
(i,
|
|
308
|
+
(i, c, d, p, h) => {
|
|
260
309
|
try {
|
|
261
|
-
if (!
|
|
310
|
+
if (!Me) return;
|
|
262
311
|
const f = {
|
|
263
312
|
conversationId: i,
|
|
264
|
-
userId:
|
|
313
|
+
userId: c,
|
|
265
314
|
deviceId: p,
|
|
266
315
|
messages: po(d),
|
|
267
316
|
lastActivity: Date.now(),
|
|
@@ -273,9 +322,9 @@ function it({ appId: e }) {
|
|
|
273
322
|
}
|
|
274
323
|
},
|
|
275
324
|
[t]
|
|
276
|
-
),
|
|
325
|
+
), l = v(() => {
|
|
277
326
|
try {
|
|
278
|
-
if (!
|
|
327
|
+
if (!Me) return;
|
|
279
328
|
const i = r();
|
|
280
329
|
localStorage.setItem(
|
|
281
330
|
t,
|
|
@@ -289,16 +338,16 @@ function it({ appId: e }) {
|
|
|
289
338
|
}
|
|
290
339
|
}, [t, r]), s = v(() => {
|
|
291
340
|
try {
|
|
292
|
-
if (!
|
|
341
|
+
if (!Me) return;
|
|
293
342
|
const i = localStorage.getItem(t);
|
|
294
343
|
if (i) {
|
|
295
|
-
const
|
|
344
|
+
const c = JSON.parse(i);
|
|
296
345
|
localStorage.setItem(
|
|
297
346
|
t,
|
|
298
347
|
JSON.stringify({
|
|
299
348
|
...o,
|
|
300
|
-
deviceId:
|
|
301
|
-
userId:
|
|
349
|
+
deviceId: c.deviceId,
|
|
350
|
+
userId: c.userId
|
|
302
351
|
})
|
|
303
352
|
);
|
|
304
353
|
}
|
|
@@ -310,7 +359,7 @@ function it({ appId: e }) {
|
|
|
310
359
|
}
|
|
311
360
|
}, [t, o]), u = v(() => {
|
|
312
361
|
try {
|
|
313
|
-
if (!
|
|
362
|
+
if (!Me) return;
|
|
314
363
|
const i = r();
|
|
315
364
|
i.conversationId && (i.lastActivity = Date.now(), localStorage.setItem(t, JSON.stringify(i)));
|
|
316
365
|
} catch (i) {
|
|
@@ -323,7 +372,7 @@ function it({ appId: e }) {
|
|
|
323
372
|
clearChatData: s,
|
|
324
373
|
getSavedChatData: r,
|
|
325
374
|
updateLastActivity: u,
|
|
326
|
-
markChatClosed:
|
|
375
|
+
markChatClosed: l
|
|
327
376
|
};
|
|
328
377
|
}
|
|
329
378
|
function po(e) {
|
|
@@ -348,7 +397,7 @@ function wo(e, t) {
|
|
|
348
397
|
function qo(e) {
|
|
349
398
|
return `header-${btoa(JSON.stringify(e)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "")}`;
|
|
350
399
|
}
|
|
351
|
-
function
|
|
400
|
+
function Ye(e) {
|
|
352
401
|
return !e || e.length === 0 ? "unknown error" : e.map((t) => `${t.errorType ?? "Error"}: ${t.message ?? ""}`).join("; ");
|
|
353
402
|
}
|
|
354
403
|
function yo(e) {
|
|
@@ -358,12 +407,12 @@ function yo(e) {
|
|
|
358
407
|
channel: r,
|
|
359
408
|
onEvent: n,
|
|
360
409
|
onDisconnect: a,
|
|
361
|
-
createWebSocket:
|
|
410
|
+
createWebSocket: l = (c, d) => new WebSocket(c, d)
|
|
362
411
|
} = e, s = wo(t, o), u = vo(t), i = crypto.randomUUID();
|
|
363
|
-
return new Promise((
|
|
412
|
+
return new Promise((c, d) => {
|
|
364
413
|
let p;
|
|
365
414
|
try {
|
|
366
|
-
p =
|
|
415
|
+
p = l(u, [
|
|
367
416
|
ho,
|
|
368
417
|
qo(s)
|
|
369
418
|
]);
|
|
@@ -371,10 +420,10 @@ function yo(e) {
|
|
|
371
420
|
d(b instanceof Error ? b : new Error(String(b)));
|
|
372
421
|
return;
|
|
373
422
|
}
|
|
374
|
-
let h = "connecting", f = !1, g = go,
|
|
423
|
+
let h = "connecting", f = !1, g = go, E = Date.now(), w = null, z = null;
|
|
375
424
|
const A = () => {
|
|
376
425
|
w && (clearTimeout(w), w = null), z && (clearInterval(z), z = null);
|
|
377
|
-
},
|
|
426
|
+
}, R = (b) => {
|
|
378
427
|
if (h === "closed") return;
|
|
379
428
|
const q = h === "established";
|
|
380
429
|
h = "closed", A();
|
|
@@ -387,7 +436,7 @@ function yo(e) {
|
|
|
387
436
|
p.readyState === bo && p.send(JSON.stringify(b));
|
|
388
437
|
}, P = (b) => {
|
|
389
438
|
w && clearTimeout(w), w = setTimeout(() => {
|
|
390
|
-
|
|
439
|
+
R(`Timed out waiting for ${b}`);
|
|
391
440
|
}, fo);
|
|
392
441
|
};
|
|
393
442
|
p.addEventListener("open", () => {
|
|
@@ -413,32 +462,32 @@ function yo(e) {
|
|
|
413
462
|
return;
|
|
414
463
|
}
|
|
415
464
|
case "connection_error": {
|
|
416
|
-
|
|
465
|
+
R(`Connection error: ${Ye(q.errors)}`);
|
|
417
466
|
return;
|
|
418
467
|
}
|
|
419
468
|
case "subscribe_success": {
|
|
420
469
|
if (h !== "subscribing" || q.id !== i) return;
|
|
421
|
-
h = "established", w && (clearTimeout(w), w = null),
|
|
422
|
-
Date.now() -
|
|
423
|
-
}, mo),
|
|
470
|
+
h = "established", w && (clearTimeout(w), w = null), E = Date.now(), z = setInterval(() => {
|
|
471
|
+
Date.now() - E > g && R("Keep-alive timeout");
|
|
472
|
+
}, mo), c({
|
|
424
473
|
close: () => {
|
|
425
|
-
f = !0, j({ type: "unsubscribe", id: i }),
|
|
474
|
+
f = !0, j({ type: "unsubscribe", id: i }), R("Closed by client");
|
|
426
475
|
}
|
|
427
476
|
});
|
|
428
477
|
return;
|
|
429
478
|
}
|
|
430
479
|
case "subscribe_error": {
|
|
431
480
|
if (q.id !== i) return;
|
|
432
|
-
|
|
481
|
+
R(`Subscribe error: ${Ye(q.errors)}`);
|
|
433
482
|
return;
|
|
434
483
|
}
|
|
435
484
|
case "ka": {
|
|
436
|
-
|
|
485
|
+
E = Date.now();
|
|
437
486
|
return;
|
|
438
487
|
}
|
|
439
488
|
case "data": {
|
|
440
489
|
if (q.id !== i) return;
|
|
441
|
-
|
|
490
|
+
E = Date.now();
|
|
442
491
|
let _ = q.event;
|
|
443
492
|
if (typeof _ == "string")
|
|
444
493
|
try {
|
|
@@ -455,7 +504,7 @@ function yo(e) {
|
|
|
455
504
|
case "broadcast_error": {
|
|
456
505
|
console.warn(
|
|
457
506
|
"[EloquentChatSDK] Realtime broadcast error:",
|
|
458
|
-
|
|
507
|
+
Ye(q.errors)
|
|
459
508
|
);
|
|
460
509
|
return;
|
|
461
510
|
}
|
|
@@ -463,9 +512,9 @@ function yo(e) {
|
|
|
463
512
|
return;
|
|
464
513
|
}
|
|
465
514
|
}), p.addEventListener("close", () => {
|
|
466
|
-
|
|
515
|
+
R("WebSocket closed");
|
|
467
516
|
}), p.addEventListener("error", () => {
|
|
468
|
-
|
|
517
|
+
R("WebSocket error");
|
|
469
518
|
});
|
|
470
519
|
});
|
|
471
520
|
}
|
|
@@ -484,7 +533,7 @@ class ko {
|
|
|
484
533
|
function _o(e) {
|
|
485
534
|
return new ko(e);
|
|
486
535
|
}
|
|
487
|
-
function
|
|
536
|
+
function Ct(e) {
|
|
488
537
|
const t = e.startsWith("^") ? 1 : 0, o = e.endsWith("$") ? e.length - 1 : e.length;
|
|
489
538
|
return e.slice(t, o);
|
|
490
539
|
}
|
|
@@ -496,28 +545,28 @@ function Co(e, t, o) {
|
|
|
496
545
|
configurable: !0
|
|
497
546
|
});
|
|
498
547
|
}
|
|
499
|
-
const
|
|
548
|
+
const St = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
500
549
|
};
|
|
501
|
-
function
|
|
550
|
+
function rt(e) {
|
|
502
551
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
503
552
|
}
|
|
504
553
|
function So(e) {
|
|
505
|
-
if (
|
|
554
|
+
if (rt(e) === !1)
|
|
506
555
|
return !1;
|
|
507
556
|
const t = e.constructor;
|
|
508
557
|
if (t === void 0 || typeof t != "function")
|
|
509
558
|
return !0;
|
|
510
559
|
const o = t.prototype;
|
|
511
|
-
return !(
|
|
560
|
+
return !(rt(o) === !1 || Object.prototype.hasOwnProperty.call(o, "isPrototypeOf") === !1);
|
|
512
561
|
}
|
|
513
|
-
function
|
|
562
|
+
function dt(e) {
|
|
514
563
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
515
564
|
}
|
|
516
565
|
function Io(e, t, o) {
|
|
517
566
|
const r = new e._zod.constr(t ?? e._zod.def);
|
|
518
567
|
return (!t || o?.parent) && (r._zod.parent = e), r;
|
|
519
568
|
}
|
|
520
|
-
function
|
|
569
|
+
function Se(e) {
|
|
521
570
|
const t = e;
|
|
522
571
|
if (!t)
|
|
523
572
|
return {};
|
|
@@ -530,10 +579,10 @@ function Ce(e) {
|
|
|
530
579
|
}
|
|
531
580
|
return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
|
|
532
581
|
}
|
|
533
|
-
function
|
|
582
|
+
function Eo(e) {
|
|
534
583
|
return Object.keys(e).filter((t) => e[t]._zod.optin !== void 0 && e[t]._zod.optout === "optional");
|
|
535
584
|
}
|
|
536
|
-
function
|
|
585
|
+
function Ce(e, t = 0) {
|
|
537
586
|
if (e.aborted === !0)
|
|
538
587
|
return !0;
|
|
539
588
|
for (let o = t; o < e.issues.length; o++)
|
|
@@ -541,7 +590,7 @@ function _e(e, t = 0) {
|
|
|
541
590
|
return !0;
|
|
542
591
|
return !1;
|
|
543
592
|
}
|
|
544
|
-
function
|
|
593
|
+
function Ro(e, t = 0) {
|
|
545
594
|
if (e.aborted === !0)
|
|
546
595
|
return !0;
|
|
547
596
|
for (let o = t; o < e.issues.length; o++)
|
|
@@ -549,28 +598,28 @@ function Eo(e, t = 0) {
|
|
|
549
598
|
return !0;
|
|
550
599
|
return !1;
|
|
551
600
|
}
|
|
552
|
-
function
|
|
601
|
+
function Pe(e, t) {
|
|
553
602
|
return t.map((o) => {
|
|
554
603
|
var r;
|
|
555
604
|
return (r = o).path ?? (r.path = []), o.path.unshift(e), o;
|
|
556
605
|
});
|
|
557
606
|
}
|
|
558
|
-
function
|
|
607
|
+
function Ae(e) {
|
|
559
608
|
return typeof e == "string" ? e : e?.message;
|
|
560
609
|
}
|
|
561
|
-
function
|
|
610
|
+
function pt(e, t, o) {
|
|
562
611
|
var r;
|
|
563
612
|
for (let n = t; n < e.length; n++)
|
|
564
613
|
(r = e[n]).schema ?? (r.schema = o);
|
|
565
614
|
}
|
|
566
|
-
function
|
|
615
|
+
function Ie(e, t, o) {
|
|
567
616
|
var r;
|
|
568
617
|
const n = e.inst?._zod?.traits;
|
|
569
618
|
n?.has("$ZodType") && (n.has("$ZodCheck") ? (r = e).schema ?? (r.schema = e.inst) : e.schema = e.inst);
|
|
570
|
-
const a = e.schema !== e.inst ? e.schema?._zod.def?.error : void 0,
|
|
619
|
+
const a = e.schema !== e.inst ? e.schema?._zod.def?.error : void 0, l = e.message ? e.message : Ae(e.inst?._zod.def?.error?.(e)) ?? Ae(a?.(e)) ?? Ae(t?.error?.(e)) ?? Ae(o.customError?.(e)) ?? Ae(o.localeError?.(e)) ?? "Invalid input", s = {};
|
|
571
620
|
for (const u of Object.keys(e))
|
|
572
621
|
u === "inst" || u === "schema" || u === "continue" || u === "input" || u === "__proto__" || (s[u] = e[u]);
|
|
573
|
-
return s.path ?? (s.path = []), s.message =
|
|
622
|
+
return s.path ?? (s.path = []), s.message = l, t?.reportInput && (s.input = e.input), s;
|
|
574
623
|
}
|
|
575
624
|
function zo(e, t) {
|
|
576
625
|
for (const o in t) {
|
|
@@ -578,20 +627,20 @@ function zo(e, t) {
|
|
|
578
627
|
r.get ? Object.defineProperty(e, o, { ...r, enumerable: !1 }) : Mo(e, o, r.value);
|
|
579
628
|
}
|
|
580
629
|
}
|
|
581
|
-
function
|
|
630
|
+
function Ue(e, t, o, r = !0) {
|
|
582
631
|
return Object.defineProperty(e, t, { configurable: !0, writable: !0, enumerable: r, value: o }), o;
|
|
583
632
|
}
|
|
584
633
|
function To(e, t, o) {
|
|
585
|
-
return
|
|
634
|
+
return Ue(e, t, o, !1);
|
|
586
635
|
}
|
|
587
636
|
function Mo(e, t, o) {
|
|
588
637
|
Object.defineProperty(e, t, {
|
|
589
638
|
configurable: !0,
|
|
590
639
|
get() {
|
|
591
|
-
return this == null ? o :
|
|
640
|
+
return this == null ? o : Ue(this, t, o.bind(this));
|
|
592
641
|
},
|
|
593
642
|
set(r) {
|
|
594
|
-
|
|
643
|
+
Ue(this, t, r);
|
|
595
644
|
}
|
|
596
645
|
});
|
|
597
646
|
}
|
|
@@ -599,7 +648,7 @@ function Ao(e, t) {
|
|
|
599
648
|
const o = Object.getPrototypeOf(e);
|
|
600
649
|
return t in o ? void 0 : o;
|
|
601
650
|
}
|
|
602
|
-
let
|
|
651
|
+
let Xe, qe = !1;
|
|
603
652
|
const Po = {
|
|
604
653
|
configurable: !0,
|
|
605
654
|
get() {
|
|
@@ -608,11 +657,11 @@ const Po = {
|
|
|
608
657
|
};
|
|
609
658
|
function me(e, t, o) {
|
|
610
659
|
const r = Object.getPrototypeOf(e._zod);
|
|
611
|
-
if (t in r &&
|
|
612
|
-
|
|
660
|
+
if (t in r && Xe !== e._zod) {
|
|
661
|
+
Xe = void 0;
|
|
613
662
|
return;
|
|
614
663
|
}
|
|
615
|
-
|
|
664
|
+
Xe = e._zod, Object.defineProperty(r, t, {
|
|
616
665
|
configurable: !0,
|
|
617
666
|
get() {
|
|
618
667
|
Object.defineProperty(this, t, Po);
|
|
@@ -643,18 +692,18 @@ function Oo(e, t, o, r) {
|
|
|
643
692
|
}
|
|
644
693
|
});
|
|
645
694
|
}
|
|
646
|
-
var
|
|
647
|
-
const
|
|
648
|
-
let
|
|
695
|
+
var ht;
|
|
696
|
+
const Qe = { value: void 0, enumerable: !1 };
|
|
697
|
+
let ft = "captureStackTrace" in Error ? Error : null;
|
|
649
698
|
function Uo(e) {
|
|
650
|
-
const t =
|
|
699
|
+
const t = ft;
|
|
651
700
|
if (t) {
|
|
652
701
|
const o = t.stackTraceLimit;
|
|
653
702
|
if (typeof o == "number") {
|
|
654
703
|
try {
|
|
655
704
|
t.stackTraceLimit = 0;
|
|
656
705
|
} catch {
|
|
657
|
-
return
|
|
706
|
+
return ft = null, new e();
|
|
658
707
|
}
|
|
659
708
|
try {
|
|
660
709
|
return new e();
|
|
@@ -671,42 +720,42 @@ function X(e, t, o, r) {
|
|
|
671
720
|
this.def = p, this.constr = d, this.traits = /* @__PURE__ */ new Set();
|
|
672
721
|
}
|
|
673
722
|
a.prototype = n;
|
|
674
|
-
const
|
|
723
|
+
const l = o, s = l && /* @__PURE__ */ new WeakSet();
|
|
675
724
|
function u(p, h) {
|
|
676
725
|
if (p._zod) {
|
|
677
726
|
if (p._zod.traits.has(e))
|
|
678
727
|
return;
|
|
679
728
|
} else {
|
|
680
|
-
|
|
729
|
+
Qe.value = new a(h);
|
|
681
730
|
try {
|
|
682
|
-
Object.defineProperty(p, "_zod",
|
|
731
|
+
Object.defineProperty(p, "_zod", Qe);
|
|
683
732
|
} finally {
|
|
684
|
-
|
|
733
|
+
Qe.value = void 0;
|
|
685
734
|
}
|
|
686
735
|
}
|
|
687
736
|
if (p._zod.traits.add(e), t(p, h), s) {
|
|
688
|
-
const g = Object.getPrototypeOf(p),
|
|
737
|
+
const g = Object.getPrototypeOf(p), E = p._zod.constr.prototype;
|
|
689
738
|
let w = g;
|
|
690
|
-
for (; w && w !==
|
|
739
|
+
for (; w && w !== E; )
|
|
691
740
|
w = Object.getPrototypeOf(w);
|
|
692
741
|
const z = w ?? g;
|
|
693
|
-
s.has(z) || (s.add(z), zo(z,
|
|
742
|
+
s.has(z) || (s.add(z), zo(z, l));
|
|
694
743
|
}
|
|
695
744
|
const f = d.prototype;
|
|
696
745
|
for (const g in f)
|
|
697
746
|
Object.prototype.hasOwnProperty.call(f, g) && (g in p || (p[g] = f[g].bind(p)));
|
|
698
747
|
}
|
|
699
748
|
const i = r?.Parent ?? Object;
|
|
700
|
-
class
|
|
749
|
+
class c extends i {
|
|
701
750
|
}
|
|
702
|
-
Object.defineProperty(
|
|
751
|
+
Object.defineProperty(c, "name", { value: e });
|
|
703
752
|
function d(p) {
|
|
704
|
-
const h = r?.Parent ? Uo(
|
|
753
|
+
const h = r?.Parent ? Uo(c) : this;
|
|
705
754
|
u(h, p);
|
|
706
755
|
const f = h._zod.deferred;
|
|
707
756
|
if (f) {
|
|
708
|
-
for (const
|
|
709
|
-
|
|
757
|
+
for (const E of f)
|
|
758
|
+
E();
|
|
710
759
|
h._zod.deferred = void 0;
|
|
711
760
|
}
|
|
712
761
|
const g = globalThis.__zod_globalConfig?.postProcessor;
|
|
@@ -716,15 +765,15 @@ function X(e, t, o, r) {
|
|
|
716
765
|
value: (p) => r?.Parent && p instanceof r.Parent ? !0 : p?._zod?.traits?.has(e)
|
|
717
766
|
}), Object.defineProperty(d, "name", { value: e }), d;
|
|
718
767
|
}
|
|
719
|
-
class
|
|
768
|
+
class Oe extends Error {
|
|
720
769
|
constructor() {
|
|
721
770
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
722
771
|
}
|
|
723
772
|
}
|
|
724
|
-
(
|
|
725
|
-
const
|
|
773
|
+
(ht = globalThis).__zod_globalConfig ?? (ht.__zod_globalConfig = {});
|
|
774
|
+
const Ne = globalThis.__zod_globalConfig;
|
|
726
775
|
function ye(e) {
|
|
727
|
-
return e && Object.assign(
|
|
776
|
+
return e && Object.assign(Ne, e), Ne;
|
|
728
777
|
}
|
|
729
778
|
function jo() {
|
|
730
779
|
const e = this._zod;
|
|
@@ -738,10 +787,10 @@ const $o = {
|
|
|
738
787
|
set: Do,
|
|
739
788
|
enumerable: !0,
|
|
740
789
|
configurable: !0
|
|
741
|
-
},
|
|
742
|
-
e.name = "$ZodError",
|
|
790
|
+
}, et = { value: void 0, enumerable: !1 }, gt = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), Bo = (e, t) => {
|
|
791
|
+
e.name = "$ZodError", et.value = t, Object.defineProperty(e, "issues", et), et.value = void 0, Object.defineProperty(e, "message", $o);
|
|
743
792
|
const o = Object.getPrototypeOf(e);
|
|
744
|
-
|
|
793
|
+
gt.has(o) || (gt.add(o), Object.defineProperty(o, "toString", {
|
|
745
794
|
configurable: !0,
|
|
746
795
|
enumerable: !1,
|
|
747
796
|
get() {
|
|
@@ -752,43 +801,43 @@ const $o = {
|
|
|
752
801
|
Object.defineProperty(this, "toString", { value: r, configurable: !0, writable: !0 });
|
|
753
802
|
}
|
|
754
803
|
}));
|
|
755
|
-
},
|
|
804
|
+
}, Ve = X("$ZodError", Bo, void 0, {
|
|
756
805
|
Parent: Error
|
|
757
806
|
}), Lo = (e) => {
|
|
758
807
|
const t = (o, r, n, a) => {
|
|
759
|
-
const
|
|
808
|
+
const l = n ? { ...n, async: !1 } : { async: !1 }, s = o._zod.run({ value: r, issues: [] }, l);
|
|
760
809
|
if (s instanceof Promise)
|
|
761
|
-
throw new
|
|
810
|
+
throw new Oe();
|
|
762
811
|
if (s.issues.length) {
|
|
763
|
-
const u = new (a?.Err ?? e)(s.issues.map((i) =>
|
|
764
|
-
throw
|
|
812
|
+
const u = new (a?.Err ?? e)(s.issues.map((i) => Ie(i, l, ye())));
|
|
813
|
+
throw St(u, a?.callee ?? t), u;
|
|
765
814
|
}
|
|
766
815
|
return s.value;
|
|
767
816
|
};
|
|
768
817
|
return t;
|
|
769
|
-
}, No = /* @__PURE__ */ Lo(
|
|
818
|
+
}, No = /* @__PURE__ */ Lo(Ve), Zo = (e) => {
|
|
770
819
|
const t = async (o, r, n, a) => {
|
|
771
|
-
const
|
|
772
|
-
let s = o._zod.run({ value: r, issues: [] },
|
|
820
|
+
const l = n ? { ...n, async: !0 } : { async: !0 };
|
|
821
|
+
let s = o._zod.run({ value: r, issues: [] }, l);
|
|
773
822
|
if (s instanceof Promise && (s = await s), s.issues.length) {
|
|
774
|
-
const u = new (a?.Err ?? e)(s.issues.map((i) =>
|
|
775
|
-
throw
|
|
823
|
+
const u = new (a?.Err ?? e)(s.issues.map((i) => Ie(i, l, ye())));
|
|
824
|
+
throw St(u, a?.callee ?? t), u;
|
|
776
825
|
}
|
|
777
826
|
return s.value;
|
|
778
827
|
};
|
|
779
828
|
return t;
|
|
780
|
-
}, Ko = /* @__PURE__ */ Zo(
|
|
829
|
+
}, Ko = /* @__PURE__ */ Zo(Ve), Vo = (e) => (t, o, r) => {
|
|
781
830
|
const n = r ? { ...r, async: !1 } : { async: !1 }, a = t._zod.run({ value: o, issues: [] }, n);
|
|
782
831
|
if (a instanceof Promise)
|
|
783
|
-
throw new
|
|
784
|
-
return a.issues.length ?
|
|
785
|
-
}, Wo = /* @__PURE__ */ Vo(
|
|
786
|
-
function
|
|
832
|
+
throw new Oe();
|
|
833
|
+
return a.issues.length ? It(e, a.issues, n) : { success: !0, data: a.value };
|
|
834
|
+
}, Wo = /* @__PURE__ */ Vo(Ve);
|
|
835
|
+
function It(e, t, o) {
|
|
787
836
|
let r;
|
|
788
837
|
return {
|
|
789
838
|
success: !1,
|
|
790
839
|
get error() {
|
|
791
|
-
return r || (r = new e(t.map((n) =>
|
|
840
|
+
return r || (r = new e(t.map((n) => Ie(n, o, ye()))), t = void 0, o = void 0), r;
|
|
792
841
|
},
|
|
793
842
|
set error(n) {
|
|
794
843
|
r = n, t = void 0, o = void 0;
|
|
@@ -798,8 +847,8 @@ function Rt(e, t, o) {
|
|
|
798
847
|
const Ho = (e) => async (t, o, r) => {
|
|
799
848
|
const n = r ? { ...r, async: !0 } : { async: !0 };
|
|
800
849
|
let a = t._zod.run({ value: o, issues: [] }, n);
|
|
801
|
-
return a instanceof Promise && (a = await a), a.issues.length ?
|
|
802
|
-
}, Fo = /* @__PURE__ */ Ho(
|
|
850
|
+
return a instanceof Promise && (a = await a), a.issues.length ? It(e, a.issues, n) : { success: !0, data: a.value };
|
|
851
|
+
}, Fo = /* @__PURE__ */ Ho(Ve), Jo = /^[\s\S]{0,}$/, Go = /^-?\d+(?:\.\d+)?$/, Yo = /^null$/i, Xo = {
|
|
803
852
|
major: 4,
|
|
804
853
|
minor: 6,
|
|
805
854
|
patch: 7
|
|
@@ -808,8 +857,8 @@ const Ho = (e) => async (t, o, r) => {
|
|
|
808
857
|
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Xo;
|
|
809
858
|
const r = e._zod.def.checks, n = e._zod.traits.has("$ZodCheck") ? [e, ...r ?? []] : r?.length ? [...r] : [];
|
|
810
859
|
for (const a of n)
|
|
811
|
-
for (const
|
|
812
|
-
|
|
860
|
+
for (const l of a._zod.onattach)
|
|
861
|
+
l(e);
|
|
813
862
|
if (n.length === 0)
|
|
814
863
|
(o = e._zod).deferred ?? (o.deferred = []), e._zod.deferred?.push(() => {
|
|
815
864
|
e._zod.run = e._zod.parse;
|
|
@@ -818,50 +867,50 @@ const Ho = (e) => async (t, o, r) => {
|
|
|
818
867
|
const a = (s, u, i) => {
|
|
819
868
|
if (s.memo)
|
|
820
869
|
return s;
|
|
821
|
-
let
|
|
870
|
+
let c = Ce(s), d;
|
|
822
871
|
for (const p of u) {
|
|
823
872
|
if (p._zod.def.when) {
|
|
824
|
-
if (
|
|
873
|
+
if (Ro(s) || !p._zod.def.when(s))
|
|
825
874
|
continue;
|
|
826
|
-
} else if (
|
|
875
|
+
} else if (c)
|
|
827
876
|
continue;
|
|
828
877
|
const h = s.issues.length, f = p._zod.check(s);
|
|
829
878
|
if (f instanceof Promise && i?.async === !1)
|
|
830
|
-
throw new
|
|
879
|
+
throw new Oe();
|
|
831
880
|
if (d || f instanceof Promise)
|
|
832
881
|
d = (d ?? Promise.resolve()).then(async () => {
|
|
833
|
-
await f, s.issues.length !== h && (
|
|
882
|
+
await f, s.issues.length !== h && (pt(s.issues, h, e), c || (c = Ce(s, h)));
|
|
834
883
|
});
|
|
835
884
|
else {
|
|
836
885
|
if (s.issues.length === h)
|
|
837
886
|
continue;
|
|
838
|
-
|
|
887
|
+
pt(s.issues, h, e), c || (c = Ce(s, h));
|
|
839
888
|
}
|
|
840
889
|
}
|
|
841
890
|
return d ? d.then(() => s) : s;
|
|
842
|
-
},
|
|
843
|
-
if (
|
|
891
|
+
}, l = (s, u, i) => {
|
|
892
|
+
if (Ce(s))
|
|
844
893
|
return s.aborted = !0, s;
|
|
845
|
-
const
|
|
846
|
-
if (
|
|
894
|
+
const c = a(u, n, i);
|
|
895
|
+
if (c instanceof Promise) {
|
|
847
896
|
if (i.async === !1)
|
|
848
|
-
throw new
|
|
849
|
-
return
|
|
897
|
+
throw new Oe();
|
|
898
|
+
return c.then((d) => e._zod.parse(d, i));
|
|
850
899
|
}
|
|
851
|
-
return e._zod.parse(
|
|
900
|
+
return e._zod.parse(c, i);
|
|
852
901
|
};
|
|
853
902
|
e._zod.run = (s, u) => {
|
|
854
903
|
if (u.skipChecks)
|
|
855
904
|
return e._zod.parse(s, u);
|
|
856
905
|
if (u.direction === "backward") {
|
|
857
|
-
const
|
|
858
|
-
return
|
|
906
|
+
const c = e._zod.parse({ value: s.value, issues: [] }, { ...u, skipChecks: !0 });
|
|
907
|
+
return c instanceof Promise ? c.then((d) => l(d, s, u)) : l(c, s, u);
|
|
859
908
|
}
|
|
860
909
|
const i = e._zod.parse(s, u);
|
|
861
910
|
if (i instanceof Promise) {
|
|
862
911
|
if (u.async === !1)
|
|
863
|
-
throw new
|
|
864
|
-
return i.then((
|
|
912
|
+
throw new Oe();
|
|
913
|
+
return i.then((c) => a(c, n, u));
|
|
865
914
|
}
|
|
866
915
|
return a(i, n, u);
|
|
867
916
|
};
|
|
@@ -872,9 +921,9 @@ const Ho = (e) => async (t, o, r) => {
|
|
|
872
921
|
return To(this, "~standard", er(this));
|
|
873
922
|
},
|
|
874
923
|
set "~standard"(e) {
|
|
875
|
-
|
|
924
|
+
Ue(this, "~standard", e);
|
|
876
925
|
}
|
|
877
|
-
}), Et = (e, t) => e.issues.length ? { issues: e.issues.map((o) =>
|
|
926
|
+
}), Et = (e, t) => e.issues.length ? { issues: e.issues.map((o) => Ie(o, t, ye())) } : { value: e.value };
|
|
878
927
|
async function Qo(e, t) {
|
|
879
928
|
const o = { async: !0 };
|
|
880
929
|
return Et(await e._zod.run({ value: t, issues: [] }, o), o);
|
|
@@ -920,15 +969,15 @@ const tr = /* @__PURE__ */ X("$ZodString", (e, t) => {
|
|
|
920
969
|
}), o;
|
|
921
970
|
};
|
|
922
971
|
});
|
|
923
|
-
function
|
|
924
|
-
const
|
|
925
|
-
if (!(!
|
|
972
|
+
function Ze(e, t, o, r, n, a) {
|
|
973
|
+
const l = o in r, s = a === "optional";
|
|
974
|
+
if (!(!l && s && n === "optional")) {
|
|
926
975
|
if (e.issues.length) {
|
|
927
|
-
if (n !== void 0 && s && !
|
|
976
|
+
if (n !== void 0 && s && !l)
|
|
928
977
|
return;
|
|
929
|
-
t.issues.push(...
|
|
978
|
+
t.issues.push(...Pe(o, e.issues));
|
|
930
979
|
}
|
|
931
|
-
if (!
|
|
980
|
+
if (!l && n === void 0) {
|
|
932
981
|
e.issues.length || t.issues.push({
|
|
933
982
|
code: "invalid_type",
|
|
934
983
|
expected: "nonoptional",
|
|
@@ -937,16 +986,16 @@ function Ne(e, t, o, r, n, a) {
|
|
|
937
986
|
});
|
|
938
987
|
return;
|
|
939
988
|
}
|
|
940
|
-
e.value === void 0 ? (
|
|
989
|
+
e.value === void 0 ? (l || n === "defaulted" && !s) && (t.value[o] = void 0) : t.value[o] = e.value;
|
|
941
990
|
}
|
|
942
991
|
}
|
|
943
992
|
const rr = [];
|
|
944
993
|
function nr(e) {
|
|
945
994
|
const t = Object.keys(e.shape), o = Object.getOwnPropertySymbols(e.shape), r = o.length ? o : rr, n = r.length ? [...t, ...r] : t;
|
|
946
|
-
for (const
|
|
947
|
-
if (!e.shape?.[
|
|
948
|
-
throw new Error(`Invalid element at key "${String(
|
|
949
|
-
const a =
|
|
995
|
+
for (const l of n)
|
|
996
|
+
if (!e.shape?.[l]?._zod?.traits?.has("$ZodType"))
|
|
997
|
+
throw new Error(`Invalid element at key "${String(l)}": expected a Zod schema`);
|
|
998
|
+
const a = Eo(e.shape);
|
|
950
999
|
return {
|
|
951
1000
|
...e,
|
|
952
1001
|
allKeys: n,
|
|
@@ -957,27 +1006,27 @@ function nr(e) {
|
|
|
957
1006
|
optionalKeys: new Set(a)
|
|
958
1007
|
};
|
|
959
1008
|
}
|
|
960
|
-
function ar(e, t, o, r, n, a,
|
|
961
|
-
const s = [], u = n.keySet, i = n.catchall._zod,
|
|
1009
|
+
function ar(e, t, o, r, n, a, l) {
|
|
1010
|
+
const s = [], u = n.keySet, i = n.catchall._zod, c = i.def.type, d = i.optin, p = i.optout;
|
|
962
1011
|
let h = 0;
|
|
963
1012
|
for (const f in t) {
|
|
964
|
-
if (
|
|
965
|
-
if (
|
|
1013
|
+
if (l && o.issues.length !== h) {
|
|
1014
|
+
if (Ce(o, h))
|
|
966
1015
|
break;
|
|
967
1016
|
h = o.issues.length;
|
|
968
1017
|
}
|
|
969
1018
|
if (u.has(f))
|
|
970
1019
|
continue;
|
|
971
1020
|
if (f === "__proto__") {
|
|
972
|
-
|
|
1021
|
+
c === "never" && s.push(f);
|
|
973
1022
|
continue;
|
|
974
1023
|
}
|
|
975
|
-
if (
|
|
1024
|
+
if (c === "never") {
|
|
976
1025
|
s.push(f);
|
|
977
1026
|
continue;
|
|
978
1027
|
}
|
|
979
1028
|
const g = i.run({ value: t[f], issues: [] }, r);
|
|
980
|
-
g instanceof Promise ? e.push(g.then((
|
|
1029
|
+
g instanceof Promise ? e.push(g.then((E) => Ze(E, o, f, t, d, p))) : Ze(g, o, f, t, d, p);
|
|
981
1030
|
}
|
|
982
1031
|
return s.length && o.issues.push({
|
|
983
1032
|
code: "unrecognized_keys",
|
|
@@ -993,16 +1042,16 @@ const ir = /* @__PURE__ */ X("$ZodObject", (e, t) => {
|
|
|
993
1042
|
const o = Object.getOwnPropertyDescriptor(t, "shape"), r = o?.get ? o.get.raw : t.shape ?? {};
|
|
994
1043
|
if (r) {
|
|
995
1044
|
const i = () => {
|
|
996
|
-
const
|
|
997
|
-
return Object.defineProperty(t, "shape", { value:
|
|
1045
|
+
const c = { ...r };
|
|
1046
|
+
return Object.defineProperty(t, "shape", { value: c }), i.raw = c, c;
|
|
998
1047
|
};
|
|
999
1048
|
i.raw = r, Object.defineProperty(t, "shape", { get: i });
|
|
1000
1049
|
}
|
|
1001
1050
|
const n = _o(() => nr(t));
|
|
1002
1051
|
me(e, "propValues", (i) => {
|
|
1003
|
-
const
|
|
1004
|
-
for (const p in
|
|
1005
|
-
const h =
|
|
1052
|
+
const c = i.def.shape, d = {};
|
|
1053
|
+
for (const p in c) {
|
|
1054
|
+
const h = c[p]._zod;
|
|
1006
1055
|
if (h.values) {
|
|
1007
1056
|
Object.prototype.hasOwnProperty.call(d, p) || Co(d, p, /* @__PURE__ */ new Set());
|
|
1008
1057
|
for (const f of h.values)
|
|
@@ -1012,10 +1061,10 @@ const ir = /* @__PURE__ */ X("$ZodObject", (e, t) => {
|
|
|
1012
1061
|
}
|
|
1013
1062
|
return d;
|
|
1014
1063
|
});
|
|
1015
|
-
const a =
|
|
1064
|
+
const a = rt, l = t.catchall;
|
|
1016
1065
|
let s;
|
|
1017
|
-
const u =
|
|
1018
|
-
u?.attach(e), e._zod.parse = (i,
|
|
1066
|
+
const u = Ne.memoizer;
|
|
1067
|
+
u?.attach(e), e._zod.parse = (i, c) => {
|
|
1019
1068
|
s ?? (s = n.value);
|
|
1020
1069
|
const d = i.value;
|
|
1021
1070
|
if (!a(d))
|
|
@@ -1025,33 +1074,33 @@ const ir = /* @__PURE__ */ X("$ZodObject", (e, t) => {
|
|
|
1025
1074
|
input: d,
|
|
1026
1075
|
inst: e
|
|
1027
1076
|
}), i;
|
|
1028
|
-
i.value = u ? u.alloc(e, i, {},
|
|
1029
|
-
const p = [], h = s.shape, f =
|
|
1077
|
+
i.value = u ? u.alloc(e, i, {}, c) : {};
|
|
1078
|
+
const p = [], h = s.shape, f = c?.abortEarly;
|
|
1030
1079
|
let g = i.issues.length;
|
|
1031
|
-
for (const
|
|
1080
|
+
for (const E of s.allKeys) {
|
|
1032
1081
|
if (f && i.issues.length !== g) {
|
|
1033
|
-
if (
|
|
1082
|
+
if (Ce(i, g))
|
|
1034
1083
|
break;
|
|
1035
1084
|
g = i.issues.length;
|
|
1036
1085
|
}
|
|
1037
|
-
if (
|
|
1086
|
+
if (E === "__proto__")
|
|
1038
1087
|
continue;
|
|
1039
|
-
const w = h[
|
|
1040
|
-
|
|
1088
|
+
const w = h[E], z = w._zod.optin, A = w._zod.optout, R = w._zod.run({ value: d[E], issues: [] }, c);
|
|
1089
|
+
R instanceof Promise ? p.push(R.then((j) => Ze(j, i, E, d, z, A))) : Ze(R, i, E, d, z, A);
|
|
1041
1090
|
}
|
|
1042
|
-
return
|
|
1091
|
+
return l ? ar(p, d, i, c, n.value, e, f === !0) : p.length ? Promise.all(p).then(() => i) : i;
|
|
1043
1092
|
};
|
|
1044
1093
|
});
|
|
1045
|
-
function
|
|
1094
|
+
function mt(e, t, o, r) {
|
|
1046
1095
|
for (const a of e)
|
|
1047
1096
|
if (a.issues.length === 0)
|
|
1048
1097
|
return t.value = a.value, t;
|
|
1049
|
-
const n = e.filter((a) => !
|
|
1098
|
+
const n = e.filter((a) => !Ce(a));
|
|
1050
1099
|
return n.length === 1 ? (t.value = n[0].value, n[0]) : (t.issues.push({
|
|
1051
1100
|
code: "invalid_union",
|
|
1052
1101
|
input: t.value,
|
|
1053
1102
|
inst: o,
|
|
1054
|
-
errors: e.map((a) => a.issues.map((
|
|
1103
|
+
errors: e.map((a) => a.issues.map((l) => Ie(l, r, ye())))
|
|
1055
1104
|
}), t);
|
|
1056
1105
|
}
|
|
1057
1106
|
const sr = /* @__PURE__ */ X("$ZodUnion", (e, t) => {
|
|
@@ -1061,7 +1110,7 @@ const sr = /* @__PURE__ */ X("$ZodUnion", (e, t) => {
|
|
|
1061
1110
|
}), me(e, "pattern", (r) => {
|
|
1062
1111
|
if (r.def.options.every((n) => n._zod.pattern)) {
|
|
1063
1112
|
const n = r.def.options.map((a) => a._zod.pattern);
|
|
1064
|
-
return new RegExp(`^(${n.map((a) =>
|
|
1113
|
+
return new RegExp(`^(${n.map((a) => Ct(a.source)).join("|")})$`);
|
|
1065
1114
|
}
|
|
1066
1115
|
});
|
|
1067
1116
|
const o = t.options.length === 1 ? t.options[0]._zod.run : null;
|
|
@@ -1069,25 +1118,25 @@ const sr = /* @__PURE__ */ X("$ZodUnion", (e, t) => {
|
|
|
1069
1118
|
if (o)
|
|
1070
1119
|
return o(r, n);
|
|
1071
1120
|
let a = !1;
|
|
1072
|
-
const
|
|
1121
|
+
const l = [];
|
|
1073
1122
|
for (const s of t.options) {
|
|
1074
1123
|
const u = s._zod.run({
|
|
1075
1124
|
value: r.value,
|
|
1076
1125
|
issues: []
|
|
1077
1126
|
}, n);
|
|
1078
1127
|
if (u instanceof Promise)
|
|
1079
|
-
|
|
1128
|
+
l.push(u), a = !0;
|
|
1080
1129
|
else {
|
|
1081
1130
|
if (u.issues.length === 0)
|
|
1082
1131
|
return u;
|
|
1083
|
-
|
|
1132
|
+
l.push(u);
|
|
1084
1133
|
}
|
|
1085
1134
|
}
|
|
1086
|
-
return a ? Promise.all(
|
|
1135
|
+
return a ? Promise.all(l).then((s) => mt(s, r, e, n)) : mt(l, r, e, n);
|
|
1087
1136
|
};
|
|
1088
1137
|
}), lr = /* @__PURE__ */ X("$ZodRecord", (e, t) => {
|
|
1089
1138
|
xe.init(e, t);
|
|
1090
|
-
const o =
|
|
1139
|
+
const o = Ne.memoizer;
|
|
1091
1140
|
o?.attach(e), e._zod.parse = (r, n) => {
|
|
1092
1141
|
const a = r.value;
|
|
1093
1142
|
if (!So(a))
|
|
@@ -1097,24 +1146,24 @@ const sr = /* @__PURE__ */ X("$ZodUnion", (e, t) => {
|
|
|
1097
1146
|
input: a,
|
|
1098
1147
|
inst: e
|
|
1099
1148
|
}), r;
|
|
1100
|
-
const
|
|
1149
|
+
const l = [], s = t.keyType._zod.values;
|
|
1101
1150
|
if (s && !t.partial) {
|
|
1102
1151
|
r.value = o ? o.alloc(e, r, {}, n) : {};
|
|
1103
1152
|
const u = /* @__PURE__ */ new Set();
|
|
1104
|
-
for (const
|
|
1105
|
-
if (typeof
|
|
1106
|
-
if (u.add(typeof
|
|
1153
|
+
for (const c of s)
|
|
1154
|
+
if (typeof c == "string" || typeof c == "number" || typeof c == "symbol") {
|
|
1155
|
+
if (u.add(typeof c == "number" ? c.toString() : c), c === "__proto__")
|
|
1107
1156
|
continue;
|
|
1108
|
-
const d = t.keyType._zod.run({ value:
|
|
1157
|
+
const d = t.keyType._zod.run({ value: c, issues: [] }, n);
|
|
1109
1158
|
if (d instanceof Promise)
|
|
1110
1159
|
throw new Error("Async schemas not supported in object keys currently");
|
|
1111
1160
|
if (d.issues.length) {
|
|
1112
1161
|
r.issues.push({
|
|
1113
1162
|
code: "invalid_key",
|
|
1114
1163
|
origin: "record",
|
|
1115
|
-
issues: d.issues.map((f) =>
|
|
1116
|
-
input:
|
|
1117
|
-
path: [
|
|
1164
|
+
issues: d.issues.map((f) => Ie(f, n, ye())),
|
|
1165
|
+
input: c,
|
|
1166
|
+
path: [c],
|
|
1118
1167
|
inst: e
|
|
1119
1168
|
});
|
|
1120
1169
|
continue;
|
|
@@ -1122,20 +1171,20 @@ const sr = /* @__PURE__ */ X("$ZodUnion", (e, t) => {
|
|
|
1122
1171
|
const p = d.value;
|
|
1123
1172
|
if (p === "__proto__")
|
|
1124
1173
|
continue;
|
|
1125
|
-
const h = t.valueType._zod.run({ value: a[
|
|
1126
|
-
h instanceof Promise ?
|
|
1127
|
-
f.issues.length && r.issues.push(...
|
|
1128
|
-
})) : (h.issues.length && r.issues.push(...
|
|
1174
|
+
const h = t.valueType._zod.run({ value: a[c], issues: [] }, n);
|
|
1175
|
+
h instanceof Promise ? l.push(h.then((f) => {
|
|
1176
|
+
f.issues.length && r.issues.push(...Pe(c, f.issues)), r.value[p] = f.value;
|
|
1177
|
+
})) : (h.issues.length && r.issues.push(...Pe(c, h.issues)), r.value[p] = h.value);
|
|
1129
1178
|
}
|
|
1130
1179
|
let i;
|
|
1131
|
-
for (const
|
|
1132
|
-
if (!u.has(
|
|
1180
|
+
for (const c in a)
|
|
1181
|
+
if (!u.has(c))
|
|
1133
1182
|
if (t.mode === "loose") {
|
|
1134
|
-
if (
|
|
1183
|
+
if (c === "__proto__")
|
|
1135
1184
|
continue;
|
|
1136
|
-
r.value[
|
|
1185
|
+
r.value[c] = a[c];
|
|
1137
1186
|
} else
|
|
1138
|
-
i = i ?? [], i.push(
|
|
1187
|
+
i = i ?? [], i.push(c);
|
|
1139
1188
|
i && i.length > 0 && r.issues.push({
|
|
1140
1189
|
code: "unrecognized_keys",
|
|
1141
1190
|
input: a,
|
|
@@ -1149,33 +1198,33 @@ const sr = /* @__PURE__ */ X("$ZodUnion", (e, t) => {
|
|
|
1149
1198
|
for (const i of Reflect.ownKeys(a)) {
|
|
1150
1199
|
if (i === "__proto__" || !Object.prototype.propertyIsEnumerable.call(a, i))
|
|
1151
1200
|
continue;
|
|
1152
|
-
let
|
|
1153
|
-
if (
|
|
1201
|
+
let c = t.keyType._zod.run({ value: i, issues: [] }, n);
|
|
1202
|
+
if (c instanceof Promise)
|
|
1154
1203
|
throw new Error("Async schemas not supported in object keys currently");
|
|
1155
|
-
if (typeof i == "string" && Go.test(i) &&
|
|
1204
|
+
if (typeof i == "string" && Go.test(i) && c.issues.length) {
|
|
1156
1205
|
const f = t.keyType._zod.run({ value: Number(i), issues: [] }, n);
|
|
1157
1206
|
if (f instanceof Promise)
|
|
1158
1207
|
throw new Error("Async schemas not supported in object keys currently");
|
|
1159
|
-
f.issues.length === 0 && (
|
|
1208
|
+
f.issues.length === 0 && (c = f);
|
|
1160
1209
|
}
|
|
1161
|
-
if (
|
|
1210
|
+
if (c.issues.length) {
|
|
1162
1211
|
t.mode === "loose" ? r.value[i] = a[i] : s ? (u = u ?? [], u.push(i)) : r.issues.push({
|
|
1163
1212
|
code: "invalid_key",
|
|
1164
1213
|
origin: "record",
|
|
1165
|
-
issues:
|
|
1214
|
+
issues: c.issues.map((f) => Ie(f, n, ye())),
|
|
1166
1215
|
input: i,
|
|
1167
1216
|
path: [i],
|
|
1168
1217
|
inst: e
|
|
1169
1218
|
});
|
|
1170
1219
|
continue;
|
|
1171
1220
|
}
|
|
1172
|
-
const p =
|
|
1221
|
+
const p = c.value;
|
|
1173
1222
|
if (p === "__proto__")
|
|
1174
1223
|
continue;
|
|
1175
1224
|
const h = t.valueType._zod.run({ value: a[i], issues: [] }, n);
|
|
1176
|
-
h instanceof Promise ?
|
|
1177
|
-
f.issues.length && r.issues.push(...
|
|
1178
|
-
})) : (h.issues.length && r.issues.push(...
|
|
1225
|
+
h instanceof Promise ? l.push(h.then((f) => {
|
|
1226
|
+
f.issues.length && r.issues.push(...Pe(i, f.issues)), r.value[p] = f.value;
|
|
1227
|
+
})) : (h.issues.length && r.issues.push(...Pe(i, h.issues)), r.value[p] = h.value);
|
|
1179
1228
|
}
|
|
1180
1229
|
u && u.length > 0 && r.issues.push({
|
|
1181
1230
|
code: "unrecognized_keys",
|
|
@@ -1185,14 +1234,14 @@ const sr = /* @__PURE__ */ X("$ZodUnion", (e, t) => {
|
|
|
1185
1234
|
continue: !0
|
|
1186
1235
|
});
|
|
1187
1236
|
}
|
|
1188
|
-
return
|
|
1237
|
+
return l.length ? Promise.all(l).then(() => r) : r;
|
|
1189
1238
|
};
|
|
1190
1239
|
}), cr = /* @__PURE__ */ X("$ZodLiteral", (e, t) => {
|
|
1191
1240
|
xe.init(e, t);
|
|
1192
1241
|
const o = new Set(t.values);
|
|
1193
1242
|
e._zod.values = o, me(e, "pattern", (r) => {
|
|
1194
1243
|
const n = r.def.values;
|
|
1195
|
-
return new RegExp(n.length ? `^(${n.map((a) => typeof a == "string" ?
|
|
1244
|
+
return new RegExp(n.length ? `^(${n.map((a) => typeof a == "string" ? dt(a) : a ? dt(a.toString()) : String(a)).join("|")})$` : "^[^\\s\\S]$");
|
|
1196
1245
|
}), e._zod.parse = (r, n) => {
|
|
1197
1246
|
const a = r.value;
|
|
1198
1247
|
return o.has(a) || r.issues.push({
|
|
@@ -1205,7 +1254,7 @@ const sr = /* @__PURE__ */ X("$ZodUnion", (e, t) => {
|
|
|
1205
1254
|
}), ur = /* @__PURE__ */ X("$ZodNullable", (e, t) => {
|
|
1206
1255
|
xe.init(e, t), me(e, "optin", (o) => o.def.innerType._zod.optin), me(e, "optout", (o) => o.def.innerType._zod.optout), me(e, "pattern", (o) => {
|
|
1207
1256
|
const r = o.def.innerType._zod.pattern;
|
|
1208
|
-
return r ? new RegExp(`^(${
|
|
1257
|
+
return r ? new RegExp(`^(${Ct(r.source)}|null)$`) : void 0;
|
|
1209
1258
|
}), me(e, "values", (o) => o.def.innerType._zod.values ? /* @__PURE__ */ new Set([...o.def.innerType._zod.values, null]) : void 0), e._zod.parse = (o, r) => o.value === null ? o : t.innerType._zod.run(o, r);
|
|
1210
1259
|
});
|
|
1211
1260
|
function dr(e) {
|
|
@@ -1213,16 +1262,16 @@ function dr(e) {
|
|
|
1213
1262
|
}
|
|
1214
1263
|
// @__NO_SIDE_EFFECTS__
|
|
1215
1264
|
function pr(e, t) {
|
|
1216
|
-
return new e(dr({ type: "string", ...
|
|
1265
|
+
return new e(dr({ type: "string", ...Se(t) }));
|
|
1217
1266
|
}
|
|
1218
1267
|
// @__NO_SIDE_EFFECTS__
|
|
1219
1268
|
function hr(e, t) {
|
|
1220
1269
|
return new e({
|
|
1221
1270
|
type: "null",
|
|
1222
|
-
...
|
|
1271
|
+
...Se(t)
|
|
1223
1272
|
});
|
|
1224
1273
|
}
|
|
1225
|
-
const
|
|
1274
|
+
const Ee = /* @__PURE__ */ X("ZodMiniType", (e, t) => {
|
|
1226
1275
|
if (!e._zod)
|
|
1227
1276
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
1228
1277
|
xe.init(e, t), e.def = t, e.type = t.type;
|
|
@@ -1232,7 +1281,7 @@ const Ie = /* @__PURE__ */ X("ZodMiniType", (e, t) => {
|
|
|
1232
1281
|
return this.check;
|
|
1233
1282
|
},
|
|
1234
1283
|
set with(e) {
|
|
1235
|
-
|
|
1284
|
+
Ue(this, "with", e);
|
|
1236
1285
|
},
|
|
1237
1286
|
parse(e, t) {
|
|
1238
1287
|
return No(this, e, t, { callee: this.parse });
|
|
@@ -1269,72 +1318,72 @@ const Ie = /* @__PURE__ */ X("ZodMiniType", (e, t) => {
|
|
|
1269
1318
|
return t.length === 0 ? e(this) : e(this, ...t);
|
|
1270
1319
|
}
|
|
1271
1320
|
}), fr = /* @__PURE__ */ X("ZodMiniString", (e, t) => {
|
|
1272
|
-
tr.init(e, t),
|
|
1321
|
+
tr.init(e, t), Ee.init(e, t);
|
|
1273
1322
|
});
|
|
1274
1323
|
// @__NO_SIDE_EFFECTS__
|
|
1275
1324
|
function T(e) {
|
|
1276
1325
|
return /* @__PURE__ */ pr(fr, e);
|
|
1277
1326
|
}
|
|
1278
1327
|
const gr = /* @__PURE__ */ X("ZodMiniNull", (e, t) => {
|
|
1279
|
-
or.init(e, t),
|
|
1328
|
+
or.init(e, t), Ee.init(e, t);
|
|
1280
1329
|
});
|
|
1281
1330
|
// @__NO_SIDE_EFFECTS__
|
|
1282
1331
|
function mr(e) {
|
|
1283
1332
|
return /* @__PURE__ */ hr(gr, e);
|
|
1284
1333
|
}
|
|
1285
1334
|
const br = /* @__PURE__ */ X("ZodMiniObject", (e, t) => {
|
|
1286
|
-
ir.init(e, t),
|
|
1335
|
+
ir.init(e, t), Ee.init(e, t), Oo(e, "shape", (o) => o._zod.def.shape, !1);
|
|
1287
1336
|
});
|
|
1288
1337
|
// @__NO_SIDE_EFFECTS__
|
|
1289
1338
|
function $(e, t) {
|
|
1290
1339
|
const o = {
|
|
1291
1340
|
type: "object",
|
|
1292
1341
|
shape: e ?? {},
|
|
1293
|
-
...
|
|
1342
|
+
...Se(t)
|
|
1294
1343
|
};
|
|
1295
1344
|
return new br(o);
|
|
1296
1345
|
}
|
|
1297
1346
|
const vr = /* @__PURE__ */ X("ZodMiniUnion", (e, t) => {
|
|
1298
|
-
sr.init(e, t),
|
|
1347
|
+
sr.init(e, t), Ee.init(e, t);
|
|
1299
1348
|
});
|
|
1300
1349
|
// @__NO_SIDE_EFFECTS__
|
|
1301
1350
|
function wr(e, t) {
|
|
1302
1351
|
return new vr({
|
|
1303
1352
|
type: "union",
|
|
1304
1353
|
options: e,
|
|
1305
|
-
...
|
|
1354
|
+
...Se(t)
|
|
1306
1355
|
});
|
|
1307
1356
|
}
|
|
1308
|
-
const
|
|
1309
|
-
lr.init(e, t),
|
|
1357
|
+
const bt = /* @__PURE__ */ X("ZodMiniRecord", (e, t) => {
|
|
1358
|
+
lr.init(e, t), Ee.init(e, t);
|
|
1310
1359
|
});
|
|
1311
1360
|
// @__NO_SIDE_EFFECTS__
|
|
1312
1361
|
function qr(e, t, o) {
|
|
1313
|
-
return !t || !t._zod ? new
|
|
1362
|
+
return !t || !t._zod ? new bt({
|
|
1314
1363
|
type: "record",
|
|
1315
1364
|
keyType: /* @__PURE__ */ T(),
|
|
1316
1365
|
valueType: e,
|
|
1317
|
-
...
|
|
1318
|
-
}) : new
|
|
1366
|
+
...Se(t)
|
|
1367
|
+
}) : new bt({
|
|
1319
1368
|
type: "record",
|
|
1320
1369
|
keyType: e,
|
|
1321
1370
|
valueType: t,
|
|
1322
|
-
...
|
|
1371
|
+
...Se(o)
|
|
1323
1372
|
});
|
|
1324
1373
|
}
|
|
1325
1374
|
const yr = /* @__PURE__ */ X("ZodMiniLiteral", (e, t) => {
|
|
1326
|
-
cr.init(e, t),
|
|
1375
|
+
cr.init(e, t), Ee.init(e, t);
|
|
1327
1376
|
});
|
|
1328
1377
|
// @__NO_SIDE_EFFECTS__
|
|
1329
1378
|
function fe(e, t) {
|
|
1330
1379
|
return new yr({
|
|
1331
1380
|
type: "literal",
|
|
1332
1381
|
values: Array.isArray(e) ? e : [e],
|
|
1333
|
-
...
|
|
1382
|
+
...Se(t)
|
|
1334
1383
|
});
|
|
1335
1384
|
}
|
|
1336
1385
|
const xr = /* @__PURE__ */ X("ZodMiniNullable", (e, t) => {
|
|
1337
|
-
ur.init(e, t),
|
|
1386
|
+
ur.init(e, t), Ee.init(e, t);
|
|
1338
1387
|
});
|
|
1339
1388
|
// @__NO_SIDE_EFFECTS__
|
|
1340
1389
|
function st(e) {
|
|
@@ -1360,10 +1409,10 @@ const kr = /* @__PURE__ */ $({
|
|
|
1360
1409
|
}), Ir = /* @__PURE__ */ $({
|
|
1361
1410
|
type: /* @__PURE__ */ fe("agent_topic"),
|
|
1362
1411
|
content: /* @__PURE__ */ T()
|
|
1363
|
-
}),
|
|
1412
|
+
}), Er = /* @__PURE__ */ $({
|
|
1364
1413
|
type: /* @__PURE__ */ fe("agent_summary"),
|
|
1365
1414
|
content: /* @__PURE__ */ T()
|
|
1366
|
-
}),
|
|
1415
|
+
}), Rr = /* @__PURE__ */ $({
|
|
1367
1416
|
type: /* @__PURE__ */ fe("chat_rating"),
|
|
1368
1417
|
content: /* @__PURE__ */ T()
|
|
1369
1418
|
}), zr = /* @__PURE__ */ $({
|
|
@@ -1397,10 +1446,10 @@ const kr = /* @__PURE__ */ $({
|
|
|
1397
1446
|
data: Ir
|
|
1398
1447
|
}), $r = /* @__PURE__ */ $({
|
|
1399
1448
|
created_at: /* @__PURE__ */ T(),
|
|
1400
|
-
data:
|
|
1449
|
+
data: Er
|
|
1401
1450
|
}), Br = /* @__PURE__ */ $({
|
|
1402
1451
|
created_at: /* @__PURE__ */ T(),
|
|
1403
|
-
data:
|
|
1452
|
+
data: Rr
|
|
1404
1453
|
}), Lr = /* @__PURE__ */ $({
|
|
1405
1454
|
created_at: /* @__PURE__ */ T(),
|
|
1406
1455
|
data: zr
|
|
@@ -1435,24 +1484,24 @@ function Xr({
|
|
|
1435
1484
|
onMessage: r,
|
|
1436
1485
|
onMissedUserMessage: n,
|
|
1437
1486
|
onCognition: a,
|
|
1438
|
-
onCognitionComplete:
|
|
1487
|
+
onCognitionComplete: l,
|
|
1439
1488
|
onError: s,
|
|
1440
1489
|
onChatClosed: u,
|
|
1441
1490
|
onAgentCapturedUrl: i,
|
|
1442
|
-
onAgentTopic:
|
|
1491
|
+
onAgentTopic: c,
|
|
1443
1492
|
onAgentSummary: d,
|
|
1444
1493
|
onRatingRequest: p,
|
|
1445
1494
|
onBreadcrumb: h,
|
|
1446
1495
|
fetchHistory: f,
|
|
1447
1496
|
getChatToken: g,
|
|
1448
|
-
backupPollingInterval:
|
|
1497
|
+
backupPollingInterval: E = Jr
|
|
1449
1498
|
}) {
|
|
1450
1499
|
const w = N(/* @__PURE__ */ new Set());
|
|
1451
|
-
|
|
1500
|
+
V(() => {
|
|
1452
1501
|
for (const M of o)
|
|
1453
1502
|
M.id && w.current.add(M.id);
|
|
1454
1503
|
}, [o]);
|
|
1455
|
-
const z = N(null), A = N(null),
|
|
1504
|
+
const z = N(null), A = N(null), R = N(0), j = N(null), P = N(null), b = N(null), q = N(null), _ = N(0), te = N(!1), Q = N(!1), ne = F(r), ae = F(n), D = F(a), J = F(l), Z = F(s), W = F(u), oe = F(i), ce = F(c), G = F(d), ie = F(p), Y = F(h), ue = F(f), be = F(g), { publishError: pe } = Ke(), re = e?.app_sync_url, he = e?.app_sync_api_key, m = !!(re && he), x = F(re), O = F(he), U = v(() => {
|
|
1456
1505
|
z.current && (z.current.close(), z.current = null);
|
|
1457
1506
|
}, []), k = v(() => {
|
|
1458
1507
|
P.current && (clearInterval(P.current), P.current = null);
|
|
@@ -1460,7 +1509,7 @@ function Xr({
|
|
|
1460
1509
|
_.current = 0, b.current && (clearInterval(b.current), b.current = null), q.current && (clearTimeout(q.current), q.current = null);
|
|
1461
1510
|
}, []), B = v(() => {
|
|
1462
1511
|
_.current = Math.max(0, _.current - 1), _.current === 0 && y();
|
|
1463
|
-
}, [y]),
|
|
1512
|
+
}, [y]), S = v(() => {
|
|
1464
1513
|
j.current && (clearTimeout(j.current), j.current = null);
|
|
1465
1514
|
}, []), K = N(() => {
|
|
1466
1515
|
}), se = v(
|
|
@@ -1469,9 +1518,9 @@ function Xr({
|
|
|
1469
1518
|
const le = x.current, ve = O.current;
|
|
1470
1519
|
if (!le || !ve)
|
|
1471
1520
|
throw new Error("Cannot connect: AppSync settings not available");
|
|
1472
|
-
const
|
|
1521
|
+
const H = be.current(), Te = await yo({
|
|
1473
1522
|
httpEndpoint: le,
|
|
1474
|
-
auth:
|
|
1523
|
+
auth: H ? { authorizationToken: H } : { apiKey: ve },
|
|
1475
1524
|
channel: `/default/chat/${M}`,
|
|
1476
1525
|
onDisconnect: () => {
|
|
1477
1526
|
z.current = null, K.current();
|
|
@@ -1527,7 +1576,7 @@ function Xr({
|
|
|
1527
1576
|
return;
|
|
1528
1577
|
}
|
|
1529
1578
|
case "chat_closed_expired": {
|
|
1530
|
-
|
|
1579
|
+
W.current?.(), ie.current?.();
|
|
1531
1580
|
return;
|
|
1532
1581
|
}
|
|
1533
1582
|
case "chat_rating": {
|
|
@@ -1539,7 +1588,7 @@ function Xr({
|
|
|
1539
1588
|
return;
|
|
1540
1589
|
}
|
|
1541
1590
|
case "chat_escalated": {
|
|
1542
|
-
|
|
1591
|
+
W.current?.(), ie.current?.();
|
|
1543
1592
|
return;
|
|
1544
1593
|
}
|
|
1545
1594
|
default:
|
|
@@ -1550,7 +1599,7 @@ function Xr({
|
|
|
1550
1599
|
}
|
|
1551
1600
|
}
|
|
1552
1601
|
});
|
|
1553
|
-
z.current =
|
|
1602
|
+
z.current = Te;
|
|
1554
1603
|
},
|
|
1555
1604
|
// The *Ref entries are latest-refs (stable identities); listed to satisfy
|
|
1556
1605
|
// exhaustive-deps, which can't see that useLatestRef returns a ref.
|
|
@@ -1565,7 +1614,7 @@ function Xr({
|
|
|
1565
1614
|
D,
|
|
1566
1615
|
J,
|
|
1567
1616
|
Z,
|
|
1568
|
-
|
|
1617
|
+
W,
|
|
1569
1618
|
oe,
|
|
1570
1619
|
ce,
|
|
1571
1620
|
G,
|
|
@@ -1577,53 +1626,53 @@ function Xr({
|
|
|
1577
1626
|
let le;
|
|
1578
1627
|
try {
|
|
1579
1628
|
le = await ue.current(M);
|
|
1580
|
-
} catch (
|
|
1581
|
-
console.warn("Backup poll failed:",
|
|
1629
|
+
} catch (H) {
|
|
1630
|
+
console.warn("Backup poll failed:", H);
|
|
1582
1631
|
return;
|
|
1583
1632
|
}
|
|
1584
1633
|
if (A.current !== M) return;
|
|
1585
1634
|
const ve = le.filter(
|
|
1586
|
-
(
|
|
1635
|
+
(H) => H.role === "user" || H.role === "assistant"
|
|
1587
1636
|
);
|
|
1588
|
-
ve.forEach((
|
|
1589
|
-
if (!
|
|
1637
|
+
ve.forEach((H, Te) => {
|
|
1638
|
+
if (!H.message_id || w.current.has(H.message_id))
|
|
1590
1639
|
return;
|
|
1591
|
-
const ke = ve[
|
|
1592
|
-
if (
|
|
1640
|
+
const ke = ve[Te - 1]?.message_id ?? null, we = { message_id: H.message_id, response: H.response };
|
|
1641
|
+
if (H.role === "user") {
|
|
1593
1642
|
ae.current?.(
|
|
1594
1643
|
we,
|
|
1595
1644
|
M,
|
|
1596
1645
|
ke,
|
|
1597
|
-
|
|
1646
|
+
H.created_at
|
|
1598
1647
|
);
|
|
1599
1648
|
return;
|
|
1600
1649
|
}
|
|
1601
|
-
w.current.add(
|
|
1650
|
+
w.current.add(H.message_id), B(), ne.current(we, M, ke);
|
|
1602
1651
|
});
|
|
1603
1652
|
},
|
|
1604
1653
|
[ue, ne, ae, B]
|
|
1605
|
-
),
|
|
1654
|
+
), je = v(
|
|
1606
1655
|
(M) => {
|
|
1607
1656
|
k(), P.current = setInterval(
|
|
1608
1657
|
() => ee(M),
|
|
1609
|
-
|
|
1658
|
+
E
|
|
1610
1659
|
);
|
|
1611
1660
|
},
|
|
1612
|
-
[k, ee,
|
|
1613
|
-
),
|
|
1661
|
+
[k, ee, E]
|
|
1662
|
+
), We = v(
|
|
1614
1663
|
function M() {
|
|
1615
1664
|
if (!te.current || Q.current || j.current)
|
|
1616
1665
|
return;
|
|
1617
1666
|
const le = A.current;
|
|
1618
1667
|
if (!le) return;
|
|
1619
1668
|
const ve = Math.min(
|
|
1620
|
-
Hr * Math.pow(2,
|
|
1669
|
+
Hr * Math.pow(2, R.current),
|
|
1621
1670
|
Fr
|
|
1622
1671
|
);
|
|
1623
|
-
|
|
1672
|
+
R.current += 1, j.current = setTimeout(async () => {
|
|
1624
1673
|
j.current = null, Q.current = !0;
|
|
1625
1674
|
try {
|
|
1626
|
-
await se(le),
|
|
1675
|
+
await se(le), R.current = 0, Q.current = !1, await ee(le);
|
|
1627
1676
|
} catch {
|
|
1628
1677
|
Q.current = !1, M();
|
|
1629
1678
|
}
|
|
@@ -1631,8 +1680,8 @@ function Xr({
|
|
|
1631
1680
|
},
|
|
1632
1681
|
[se, ee]
|
|
1633
1682
|
);
|
|
1634
|
-
|
|
1635
|
-
K.current =
|
|
1683
|
+
V(() => {
|
|
1684
|
+
K.current = We;
|
|
1636
1685
|
});
|
|
1637
1686
|
const Re = v(
|
|
1638
1687
|
async (M) => {
|
|
@@ -1640,12 +1689,12 @@ function Xr({
|
|
|
1640
1689
|
throw new Error(
|
|
1641
1690
|
"Cannot connect: AppSync settings not ready or missing chatId"
|
|
1642
1691
|
);
|
|
1643
|
-
|
|
1692
|
+
S(), te.current = !0, A.current = M, R.current = 0, je(M), await se(M);
|
|
1644
1693
|
},
|
|
1645
|
-
[m,
|
|
1646
|
-
),
|
|
1647
|
-
te.current = !1, A.current = null,
|
|
1648
|
-
}, [
|
|
1694
|
+
[m, S, se, je]
|
|
1695
|
+
), ze = v(() => {
|
|
1696
|
+
te.current = !1, A.current = null, R.current = 0, S(), k(), y(), U();
|
|
1697
|
+
}, [S, k, y, U]), He = v(() => {
|
|
1649
1698
|
const M = A.current;
|
|
1650
1699
|
if (!M) return;
|
|
1651
1700
|
const le = _.current + 1;
|
|
@@ -1656,16 +1705,16 @@ function Xr({
|
|
|
1656
1705
|
y,
|
|
1657
1706
|
Yr
|
|
1658
1707
|
);
|
|
1659
|
-
}, [ee, y]),
|
|
1708
|
+
}, [ee, y]), Fe = v(() => {
|
|
1660
1709
|
w.current.clear();
|
|
1661
1710
|
}, []);
|
|
1662
|
-
return
|
|
1711
|
+
return V(() => {
|
|
1663
1712
|
!t || !m || A.current === t || Re(t).catch((M) => {
|
|
1664
1713
|
console.error("Failed to eagerly connect:", M), A.current === t && (te.current = !0, K.current());
|
|
1665
1714
|
}).then(() => ee(t));
|
|
1666
|
-
}, [t, m, Re, ee]),
|
|
1667
|
-
|
|
1668
|
-
}, [
|
|
1715
|
+
}, [t, m, Re, ee]), V(() => () => {
|
|
1716
|
+
ze();
|
|
1717
|
+
}, [ze]), { connect: Re, disconnect: ze, clearProcessedIds: Fe, expectReply: He };
|
|
1669
1718
|
}
|
|
1670
1719
|
function Qr(e) {
|
|
1671
1720
|
return {
|
|
@@ -1683,7 +1732,7 @@ function en(e, t) {
|
|
|
1683
1732
|
timestamp: t
|
|
1684
1733
|
};
|
|
1685
1734
|
}
|
|
1686
|
-
function
|
|
1735
|
+
function vt(e, t, o) {
|
|
1687
1736
|
const r = (a) => [
|
|
1688
1737
|
...e.slice(0, a),
|
|
1689
1738
|
t,
|
|
@@ -1691,7 +1740,7 @@ function wt(e, t, o) {
|
|
|
1691
1740
|
];
|
|
1692
1741
|
if (o === null) {
|
|
1693
1742
|
const a = e.findIndex(
|
|
1694
|
-
(
|
|
1743
|
+
(l) => !l.isWelcomeMessage
|
|
1695
1744
|
);
|
|
1696
1745
|
return r(a === -1 ? e.length : a);
|
|
1697
1746
|
}
|
|
@@ -1741,7 +1790,7 @@ function nn(e, t) {
|
|
|
1741
1790
|
} : {}
|
|
1742
1791
|
};
|
|
1743
1792
|
}
|
|
1744
|
-
function
|
|
1793
|
+
function wt(e, t, o) {
|
|
1745
1794
|
return e.map(
|
|
1746
1795
|
(r) => r.id === t ? o(r) : r
|
|
1747
1796
|
);
|
|
@@ -1764,32 +1813,32 @@ function ln({
|
|
|
1764
1813
|
userData: r,
|
|
1765
1814
|
externalId: n,
|
|
1766
1815
|
deviceId: a,
|
|
1767
|
-
apiClient:
|
|
1816
|
+
apiClient: l,
|
|
1768
1817
|
chatSettings: s,
|
|
1769
1818
|
messages: u,
|
|
1770
1819
|
setMessages: i,
|
|
1771
|
-
currentChat:
|
|
1820
|
+
currentChat: c,
|
|
1772
1821
|
setCurrentChat: d,
|
|
1773
1822
|
onChatClosed: p,
|
|
1774
1823
|
isChatClosed: h,
|
|
1775
1824
|
onAgentMessage: f
|
|
1776
1825
|
}) {
|
|
1777
|
-
const { saveChatData: g, clearChatData:
|
|
1826
|
+
const { saveChatData: g, clearChatData: E, updateLastActivity: w, markChatClosed: z } = it({
|
|
1778
1827
|
appId: e
|
|
1779
|
-
}), { publishApiError: A, publishNetworkError:
|
|
1828
|
+
}), { publishApiError: A, publishNetworkError: R } = Ke(), { showCognition: j, hideCognition: P } = Dt(), b = F(l), q = F(u), _ = N(0), te = v(
|
|
1780
1829
|
(m, x, O) => {
|
|
1781
1830
|
if (!m.response.content) return;
|
|
1782
1831
|
const U = !!s?.welcome_message && m.response.content === s.welcome_message, k = q.current.some(
|
|
1783
|
-
(
|
|
1832
|
+
(S) => S.isRatingRequest
|
|
1784
1833
|
), y = q.current.some(
|
|
1785
|
-
(
|
|
1834
|
+
(S) => S.id === m.message_id
|
|
1786
1835
|
);
|
|
1787
1836
|
!U && !k && !y && f?.();
|
|
1788
1837
|
const B = _.current;
|
|
1789
|
-
i((
|
|
1790
|
-
if (_.current !== B ||
|
|
1791
|
-
return
|
|
1792
|
-
const K =
|
|
1838
|
+
i((S) => {
|
|
1839
|
+
if (_.current !== B || S.some((ee) => ee.isRatingRequest) || S.some((ee) => ee.id === m.message_id) || s?.welcome_message && m.response.content === s.welcome_message)
|
|
1840
|
+
return S;
|
|
1841
|
+
const K = S.filter((ee) => !ee.isThinking), se = vt(
|
|
1793
1842
|
K,
|
|
1794
1843
|
Qr(m),
|
|
1795
1844
|
O
|
|
@@ -1822,7 +1871,7 @@ function ln({
|
|
|
1822
1871
|
(K) => K.id === m.message_id || // A send whose reply POST hasn't resolved still has its local id.
|
|
1823
1872
|
K.sender === "user" && K.isNew && K.content === m.response.content
|
|
1824
1873
|
)) return y;
|
|
1825
|
-
const
|
|
1874
|
+
const S = vt(
|
|
1826
1875
|
y,
|
|
1827
1876
|
en(m, U),
|
|
1828
1877
|
O
|
|
@@ -1830,10 +1879,10 @@ function ln({
|
|
|
1830
1879
|
return g(
|
|
1831
1880
|
x,
|
|
1832
1881
|
t,
|
|
1833
|
-
|
|
1882
|
+
S,
|
|
1834
1883
|
a,
|
|
1835
1884
|
b.current?.getChatToken()
|
|
1836
|
-
),
|
|
1885
|
+
), S;
|
|
1837
1886
|
});
|
|
1838
1887
|
},
|
|
1839
1888
|
[i, g, t, a, b]
|
|
@@ -1842,16 +1891,16 @@ function ln({
|
|
|
1842
1891
|
}, [i, P]), ae = v(() => {
|
|
1843
1892
|
i((m) => [...m.filter((O) => !O.isRatingRequest), on()]);
|
|
1844
1893
|
}, [i]);
|
|
1845
|
-
|
|
1894
|
+
V(() => {
|
|
1846
1895
|
}, [ae]);
|
|
1847
1896
|
const D = v(
|
|
1848
1897
|
(m) => b.current ? b.current.getChatHistory(m) : Promise.resolve([]),
|
|
1849
1898
|
[b]
|
|
1850
1899
|
), J = v(() => b.current?.getChatToken() ?? null, [b]), Z = v(() => {
|
|
1851
1900
|
z(), p?.();
|
|
1852
|
-
}, [z, p]), { connect:
|
|
1901
|
+
}, [z, p]), { connect: W, disconnect: oe, clearProcessedIds: ce, expectReply: G } = Xr({
|
|
1853
1902
|
chatSettings: s,
|
|
1854
|
-
chatId:
|
|
1903
|
+
chatId: c?.id ?? null,
|
|
1855
1904
|
messages: u,
|
|
1856
1905
|
onMessage: te,
|
|
1857
1906
|
onMissedUserMessage: Q,
|
|
@@ -1866,17 +1915,17 @@ function ln({
|
|
|
1866
1915
|
}), ie = v(() => {
|
|
1867
1916
|
_.current += 1, P(), oe(), ce(), $t(u), i(
|
|
1868
1917
|
(m) => m.filter((x) => Array.isArray(x) ? !1 : x.isWelcomeMessage)
|
|
1869
|
-
),
|
|
1918
|
+
), E(), d(null);
|
|
1870
1919
|
}, [
|
|
1871
1920
|
P,
|
|
1872
1921
|
oe,
|
|
1873
1922
|
ce,
|
|
1874
1923
|
u,
|
|
1875
|
-
|
|
1924
|
+
E,
|
|
1876
1925
|
i,
|
|
1877
1926
|
d
|
|
1878
1927
|
]), Y = v(
|
|
1879
|
-
(m, x) => i((O) =>
|
|
1928
|
+
(m, x) => i((O) => wt(O, m, x)),
|
|
1880
1929
|
[i]
|
|
1881
1930
|
), ue = v(
|
|
1882
1931
|
async (m) => {
|
|
@@ -1891,7 +1940,7 @@ function ln({
|
|
|
1891
1940
|
});
|
|
1892
1941
|
d({ id: x.chat_id });
|
|
1893
1942
|
try {
|
|
1894
|
-
await
|
|
1943
|
+
await W(x.chat_id);
|
|
1895
1944
|
} catch (O) {
|
|
1896
1945
|
console.warn(
|
|
1897
1946
|
"Failed to connect realtime channel, continuing with REST-only delivery:",
|
|
@@ -1900,7 +1949,7 @@ function ln({
|
|
|
1900
1949
|
}
|
|
1901
1950
|
return x.chat_id;
|
|
1902
1951
|
},
|
|
1903
|
-
[n, t, a, o, r, d,
|
|
1952
|
+
[n, t, a, o, r, d, W]
|
|
1904
1953
|
), be = v(
|
|
1905
1954
|
(m, x, O, U) => Promise.all(
|
|
1906
1955
|
O.map(
|
|
@@ -1909,7 +1958,7 @@ function ln({
|
|
|
1909
1958
|
file: k,
|
|
1910
1959
|
onProgress: (B) => Y(
|
|
1911
1960
|
U,
|
|
1912
|
-
(
|
|
1961
|
+
(S) => an(S, y, B)
|
|
1913
1962
|
)
|
|
1914
1963
|
}).catch((B) => {
|
|
1915
1964
|
throw Bt(B, k.name);
|
|
@@ -1925,26 +1974,26 @@ function ln({
|
|
|
1925
1974
|
k();
|
|
1926
1975
|
return;
|
|
1927
1976
|
}
|
|
1928
|
-
if (m instanceof at || m instanceof
|
|
1929
|
-
|
|
1977
|
+
if (m instanceof at || m instanceof Le && m.status === 403) {
|
|
1978
|
+
R();
|
|
1930
1979
|
return;
|
|
1931
1980
|
}
|
|
1932
|
-
A(m), m instanceof
|
|
1981
|
+
A(m), m instanceof Le && // A 401 means an expired or closed chat token: drop the session so
|
|
1933
1982
|
// the next send starts a fresh one, as for a client-side expiry.
|
|
1934
|
-
(m.status >= 500 || m.status === 401) ? (d(null),
|
|
1983
|
+
(m.status >= 500 || m.status === 401) ? (d(null), E(), i((y) => y.filter((B) => B.id !== O)), x.reset()) : k();
|
|
1935
1984
|
},
|
|
1936
1985
|
[
|
|
1937
1986
|
P,
|
|
1938
1987
|
i,
|
|
1939
1988
|
Y,
|
|
1940
|
-
|
|
1989
|
+
R,
|
|
1941
1990
|
A,
|
|
1942
1991
|
d,
|
|
1943
|
-
|
|
1992
|
+
E
|
|
1944
1993
|
]
|
|
1945
1994
|
), re = v(
|
|
1946
1995
|
async (m, x = []) => {
|
|
1947
|
-
if (!
|
|
1996
|
+
if (!l || u.some((k) => k.isRatingRequest)) return;
|
|
1948
1997
|
if (h) {
|
|
1949
1998
|
i((k) => [...k, rn()]);
|
|
1950
1999
|
return;
|
|
@@ -1952,17 +2001,17 @@ function ln({
|
|
|
1952
2001
|
const O = _.current, U = nn(m, x);
|
|
1953
2002
|
i((k) => [...k, U]), w();
|
|
1954
2003
|
try {
|
|
1955
|
-
const k =
|
|
1956
|
-
|
|
2004
|
+
const k = c?.id || await ue(l), y = await be(
|
|
2005
|
+
l,
|
|
1957
2006
|
k,
|
|
1958
2007
|
x,
|
|
1959
2008
|
U.id
|
|
1960
2009
|
);
|
|
1961
|
-
y.length > 0 && Y(U.id, (
|
|
1962
|
-
...
|
|
2010
|
+
y.length > 0 && Y(U.id, (S) => ({
|
|
2011
|
+
...S,
|
|
1963
2012
|
attachments: Nt(y, x)
|
|
1964
2013
|
}));
|
|
1965
|
-
const B = await
|
|
2014
|
+
const B = await l.replyToConversation({
|
|
1966
2015
|
text: m.content,
|
|
1967
2016
|
attachments: y,
|
|
1968
2017
|
conversationId: k,
|
|
@@ -1971,10 +2020,10 @@ function ln({
|
|
|
1971
2020
|
userName: o,
|
|
1972
2021
|
userData: r
|
|
1973
2022
|
});
|
|
1974
|
-
i((
|
|
1975
|
-
if (_.current !== O) return
|
|
1976
|
-
const K =
|
|
1977
|
-
|
|
2023
|
+
i((S) => {
|
|
2024
|
+
if (_.current !== O) return S;
|
|
2025
|
+
const K = wt(
|
|
2026
|
+
S,
|
|
1978
2027
|
U.id,
|
|
1979
2028
|
(se) => ({ ...se, id: B.message_id, isNew: !1 })
|
|
1980
2029
|
);
|
|
@@ -1983,25 +2032,25 @@ function ln({
|
|
|
1983
2032
|
t,
|
|
1984
2033
|
K,
|
|
1985
2034
|
a,
|
|
1986
|
-
|
|
2035
|
+
l.getChatToken()
|
|
1987
2036
|
), K;
|
|
1988
2037
|
}), G();
|
|
1989
2038
|
} catch (k) {
|
|
1990
2039
|
throw pe(
|
|
1991
2040
|
k,
|
|
1992
|
-
|
|
2041
|
+
l,
|
|
1993
2042
|
U.id,
|
|
1994
2043
|
x.length > 0
|
|
1995
2044
|
), k;
|
|
1996
2045
|
}
|
|
1997
2046
|
},
|
|
1998
2047
|
[
|
|
1999
|
-
|
|
2048
|
+
l,
|
|
2000
2049
|
u,
|
|
2001
2050
|
h,
|
|
2002
2051
|
i,
|
|
2003
2052
|
w,
|
|
2004
|
-
|
|
2053
|
+
c?.id,
|
|
2005
2054
|
ue,
|
|
2006
2055
|
be,
|
|
2007
2056
|
Y,
|
|
@@ -2016,10 +2065,10 @@ function ln({
|
|
|
2016
2065
|
]
|
|
2017
2066
|
), he = v(
|
|
2018
2067
|
async (m) => {
|
|
2019
|
-
const x =
|
|
2068
|
+
const x = c?.id;
|
|
2020
2069
|
!b.current || !x || await b.current.addRating(x, m);
|
|
2021
2070
|
},
|
|
2022
|
-
[
|
|
2071
|
+
[c?.id, b]
|
|
2023
2072
|
);
|
|
2024
2073
|
return {
|
|
2025
2074
|
onCleanMessages: ie,
|
|
@@ -2028,10 +2077,10 @@ function ln({
|
|
|
2028
2077
|
};
|
|
2029
2078
|
}
|
|
2030
2079
|
const cn = { BASE_URL: "/", DEV: !1, MODE: "dev", PROD: !0, SSR: !1, VITE_API_URL: "https://chat.eloquentai.dev", VITE_CDN_URL: "https://cdn.eloquentai.dev", VITE_ENVIRONMENT: "dev", VITE_REGION_API_URL: "https://region.eloquentai.dev" };
|
|
2031
|
-
function
|
|
2080
|
+
function Rt(e) {
|
|
2032
2081
|
return typeof window > "u" || typeof import.meta > "u" ? "" : cn[e] || "";
|
|
2033
2082
|
}
|
|
2034
|
-
const un =
|
|
2083
|
+
const un = Rt("VITE_API_URL"), dn = Rt("VITE_REGION_API_URL");
|
|
2035
2084
|
function pn() {
|
|
2036
2085
|
return un || "";
|
|
2037
2086
|
}
|
|
@@ -2149,13 +2198,13 @@ const gn = {
|
|
|
2149
2198
|
factor: 2
|
|
2150
2199
|
};
|
|
2151
2200
|
function mn(e) {
|
|
2152
|
-
return e instanceof at ? !0 : e instanceof
|
|
2201
|
+
return e instanceof at ? !0 : e instanceof Le ? e.status === 429 || e.status >= 500 : !1;
|
|
2153
2202
|
}
|
|
2154
2203
|
function bn(e, t) {
|
|
2155
2204
|
const o = t.minDelayMs * t.factor ** e, r = Math.min(o, t.maxDelayMs);
|
|
2156
2205
|
return Math.random() * r;
|
|
2157
2206
|
}
|
|
2158
|
-
async function
|
|
2207
|
+
async function qt(e, t = {}) {
|
|
2159
2208
|
const o = { ...gn, ...t };
|
|
2160
2209
|
for (let r = 0; ; r++)
|
|
2161
2210
|
try {
|
|
@@ -2168,36 +2217,36 @@ async function yt(e, t = {}) {
|
|
|
2168
2217
|
);
|
|
2169
2218
|
}
|
|
2170
2219
|
}
|
|
2171
|
-
const
|
|
2220
|
+
const De = /* @__PURE__ */ new Map(), $e = /* @__PURE__ */ new Map();
|
|
2172
2221
|
function vn(e, t, o) {
|
|
2173
|
-
const r = o?.dedupe !== !1, [n, a] =
|
|
2174
|
-
() =>
|
|
2175
|
-
), { publishApiError:
|
|
2222
|
+
const r = o?.dedupe !== !1, [n, a] = C(
|
|
2223
|
+
() => De.get(e)
|
|
2224
|
+
), { publishApiError: l, publishNetworkError: s } = Ke(), [u, i] = C(void 0), [c, d] = C(!1), p = N(!0);
|
|
2176
2225
|
N(() => (p.current = !0, () => {
|
|
2177
2226
|
p.current = !1;
|
|
2178
2227
|
}));
|
|
2179
2228
|
const h = v(async () => {
|
|
2180
|
-
if (
|
|
2181
|
-
const f =
|
|
2229
|
+
if (De.has(e)) {
|
|
2230
|
+
const f = De.get(e);
|
|
2182
2231
|
return a(f), f;
|
|
2183
2232
|
}
|
|
2184
2233
|
d(!0), i(void 0);
|
|
2185
2234
|
try {
|
|
2186
|
-
if (r &&
|
|
2187
|
-
return await
|
|
2235
|
+
if (r && $e.has(e))
|
|
2236
|
+
return await $e.get(e);
|
|
2188
2237
|
const f = t();
|
|
2189
|
-
r &&
|
|
2238
|
+
r && $e.set(e, f);
|
|
2190
2239
|
const g = await f;
|
|
2191
|
-
return
|
|
2240
|
+
return De.set(e, g), p.current && a(g), g;
|
|
2192
2241
|
} catch (f) {
|
|
2193
|
-
throw f instanceof at || f instanceof
|
|
2242
|
+
throw f instanceof at || f instanceof Le && f.status === 403 ? s() : l(f), p.current && i(f), f;
|
|
2194
2243
|
} finally {
|
|
2195
|
-
|
|
2244
|
+
$e.delete(e), p.current && d(!1);
|
|
2196
2245
|
}
|
|
2197
|
-
}, [e, r, t,
|
|
2198
|
-
return { data: n, error: u, isLoading:
|
|
2246
|
+
}, [e, r, t, l, s]);
|
|
2247
|
+
return { data: n, error: u, isLoading: c, fetch: h };
|
|
2199
2248
|
}
|
|
2200
|
-
function
|
|
2249
|
+
function yt(e, t) {
|
|
2201
2250
|
const o = e?.deviceId || crypto.randomUUID();
|
|
2202
2251
|
return e?.userId ? e.externalId !== t ? { userId: e.userId, externalId: t, deviceId: o } : {
|
|
2203
2252
|
userId: e.userId,
|
|
@@ -2206,10 +2255,10 @@ function xt(e, t) {
|
|
|
2206
2255
|
} : t ? { userId: t, externalId: t, deviceId: o } : { userId: crypto.randomUUID(), externalId: null, deviceId: o };
|
|
2207
2256
|
}
|
|
2208
2257
|
function wn(e) {
|
|
2209
|
-
const { appId: t, initialUserId: o } = e, { getSavedChatData: r } = it({ appId: t }), [n, a] =
|
|
2210
|
-
() =>
|
|
2211
|
-
), [
|
|
2212
|
-
return
|
|
2258
|
+
const { appId: t, initialUserId: o } = e, { getSavedChatData: r } = it({ appId: t }), [n, a] = C(
|
|
2259
|
+
() => yt(r(), o)
|
|
2260
|
+
), [l, s] = C(o);
|
|
2261
|
+
return l !== o && (s(o), a(yt(r(), o))), {
|
|
2213
2262
|
// Identity is available synchronously; kept in the contract because
|
|
2214
2263
|
// consumers (SDK boot) still key off it.
|
|
2215
2264
|
isReady: !0,
|
|
@@ -2227,47 +2276,47 @@ function qn({
|
|
|
2227
2276
|
}) {
|
|
2228
2277
|
const {
|
|
2229
2278
|
userId: a,
|
|
2230
|
-
externalId:
|
|
2279
|
+
externalId: l,
|
|
2231
2280
|
deviceId: s,
|
|
2232
2281
|
isReady: u
|
|
2233
|
-
} = wn({ appId: t, initialUserId: o }), { isChatExpired: i, clearChatData:
|
|
2282
|
+
} = wn({ appId: t, initialUserId: o }), { isChatExpired: i, clearChatData: c, getSavedChatData: d } = it({
|
|
2234
2283
|
appId: t
|
|
2235
|
-
}), { current: p } = N(e || pn()), [h] =
|
|
2284
|
+
}), { current: p } = N(e || pn()), [h] = C(
|
|
2236
2285
|
new fn({
|
|
2237
2286
|
baseURL: p,
|
|
2238
2287
|
appId: t
|
|
2239
2288
|
})
|
|
2240
|
-
), [f, g] =
|
|
2241
|
-
|
|
2289
|
+
), [f, g] = C(null), [E, w] = C(null), [z, A] = C([]), [R, j] = C(!1), [P, b] = C(!1), [q, _] = C(!0), Q = vn(`sdk-boot-${t}`, () => h.boot()).fetch;
|
|
2290
|
+
V(() => {
|
|
2242
2291
|
if (i())
|
|
2243
|
-
|
|
2292
|
+
c();
|
|
2244
2293
|
else {
|
|
2245
2294
|
const {
|
|
2246
2295
|
conversationId: ae,
|
|
2247
2296
|
userId: D,
|
|
2248
2297
|
messages: J,
|
|
2249
2298
|
isChatClosed: Z,
|
|
2250
|
-
chatToken:
|
|
2299
|
+
chatToken: W
|
|
2251
2300
|
} = d();
|
|
2252
2301
|
ae && D && (w({
|
|
2253
2302
|
id: ae
|
|
2254
|
-
}), h.setChatToken(
|
|
2303
|
+
}), h.setChatToken(W ?? null), J && J.length > 0 && A(J), Z && b(!0));
|
|
2255
2304
|
}
|
|
2256
|
-
}, [d, i,
|
|
2305
|
+
}, [d, i, c, h]);
|
|
2257
2306
|
const ne = N(!1);
|
|
2258
|
-
return
|
|
2307
|
+
return V(() => {
|
|
2259
2308
|
if (ne.current) return;
|
|
2260
2309
|
ne.current = !0, (async () => {
|
|
2261
|
-
const [D, J] = await
|
|
2262
|
-
|
|
2310
|
+
const [D, J] = await ct(
|
|
2311
|
+
qt(() => h.getOrganizationByAppId(t))
|
|
2263
2312
|
);
|
|
2264
2313
|
if (J) {
|
|
2265
2314
|
console.error("Failed to fetch organization data:", J), _(!1), j(!0);
|
|
2266
2315
|
return;
|
|
2267
2316
|
}
|
|
2268
2317
|
h.setRegion(D.region);
|
|
2269
|
-
const [Z,
|
|
2270
|
-
if (
|
|
2318
|
+
const [Z, W] = await ct(qt(Q));
|
|
2319
|
+
if (W) {
|
|
2271
2320
|
_(!1), j(!0);
|
|
2272
2321
|
return;
|
|
2273
2322
|
}
|
|
@@ -2286,53 +2335,53 @@ function qn({
|
|
|
2286
2335
|
userId: a,
|
|
2287
2336
|
userName: r,
|
|
2288
2337
|
userData: n,
|
|
2289
|
-
externalId:
|
|
2338
|
+
externalId: l,
|
|
2290
2339
|
deviceId: s,
|
|
2291
2340
|
apiClient: h,
|
|
2292
2341
|
chatSettings: f,
|
|
2293
|
-
currentChat:
|
|
2342
|
+
currentChat: E,
|
|
2294
2343
|
messages: z,
|
|
2295
|
-
isReady:
|
|
2344
|
+
isReady: R,
|
|
2296
2345
|
isChatClosed: P,
|
|
2297
2346
|
isChatActive: q
|
|
2298
2347
|
};
|
|
2299
2348
|
}
|
|
2300
|
-
const
|
|
2349
|
+
const zt = "(max-width: 640px)";
|
|
2301
2350
|
function yn() {
|
|
2302
|
-
return typeof window > "u" ? !1 : window.matchMedia(
|
|
2351
|
+
return typeof window > "u" ? !1 : window.matchMedia(zt).matches;
|
|
2303
2352
|
}
|
|
2304
2353
|
function xn(e) {
|
|
2305
|
-
const [t, o] =
|
|
2354
|
+
const [t, o] = C(yn), [r, n] = C(
|
|
2306
2355
|
null
|
|
2307
|
-
), a = e ?? t,
|
|
2308
|
-
return
|
|
2309
|
-
if (
|
|
2310
|
-
const s = window.matchMedia(
|
|
2356
|
+
), a = e ?? t, l = typeof window > "u";
|
|
2357
|
+
return V(() => {
|
|
2358
|
+
if (l) return;
|
|
2359
|
+
const s = window.matchMedia(zt), u = (i) => {
|
|
2311
2360
|
o(i.matches);
|
|
2312
2361
|
};
|
|
2313
2362
|
return u(s), s.addEventListener("change", u), () => s.removeEventListener("change", u);
|
|
2314
|
-
}, [
|
|
2315
|
-
if (
|
|
2363
|
+
}, [l]), V(() => {
|
|
2364
|
+
if (l) return;
|
|
2316
2365
|
const s = document.createElement("div");
|
|
2317
2366
|
return s.className = "eloquent-ai-chat-portal", s.style.position = "relative", s.style.zIndex = "30", document.body.appendChild(s), n(s), () => {
|
|
2318
2367
|
s.parentElement && s.parentElement.removeChild(s);
|
|
2319
2368
|
};
|
|
2320
|
-
}, [
|
|
2369
|
+
}, [l]), {
|
|
2321
2370
|
isMobileScreen: t,
|
|
2322
2371
|
isMobile: a,
|
|
2323
2372
|
portalContainer: r
|
|
2324
2373
|
};
|
|
2325
2374
|
}
|
|
2326
|
-
const
|
|
2375
|
+
const xt = 1245, kn = [
|
|
2327
2376
|
[2.32, 0.4],
|
|
2328
2377
|
[4.25, 0.18]
|
|
2329
2378
|
], _n = [
|
|
2330
2379
|
{ start: 0, duration: 0.22, level: 0.45 },
|
|
2331
2380
|
{ start: 0.16, duration: 0.2, level: 0.25 }
|
|
2332
|
-
], Cn = 0.3, Sn = 3e-3,
|
|
2333
|
-
function
|
|
2334
|
-
const
|
|
2335
|
-
|
|
2381
|
+
], Cn = 0.3, Sn = 3e-3, kt = 1e-4;
|
|
2382
|
+
function _t(e, t, o, r, n, a) {
|
|
2383
|
+
const l = e.createOscillator(), s = e.createGain();
|
|
2384
|
+
l.type = "sine", l.frequency.setValueAtTime(o, n), s.gain.setValueAtTime(kt, n), s.gain.exponentialRampToValueAtTime(r, n + Sn), s.gain.exponentialRampToValueAtTime(kt, n + a), l.connect(s).connect(t), l.start(n), l.stop(n + a + 0.05);
|
|
2336
2385
|
}
|
|
2337
2386
|
function In(e) {
|
|
2338
2387
|
const t = e.createGain();
|
|
@@ -2341,36 +2390,36 @@ function In(e) {
|
|
|
2341
2390
|
o.type = "lowpass", o.frequency.value = 6e3, t.connect(o).connect(e.destination);
|
|
2342
2391
|
const r = e.currentTime + 0.02;
|
|
2343
2392
|
_n.forEach((n) => {
|
|
2344
|
-
|
|
2393
|
+
_t(
|
|
2345
2394
|
e,
|
|
2346
2395
|
t,
|
|
2347
|
-
|
|
2396
|
+
xt,
|
|
2348
2397
|
n.level,
|
|
2349
2398
|
r + n.start,
|
|
2350
2399
|
n.duration
|
|
2351
|
-
), kn.forEach(([a,
|
|
2352
|
-
|
|
2400
|
+
), kn.forEach(([a, l]) => {
|
|
2401
|
+
_t(
|
|
2353
2402
|
e,
|
|
2354
2403
|
t,
|
|
2355
|
-
|
|
2356
|
-
n.level *
|
|
2404
|
+
xt * a,
|
|
2405
|
+
n.level * l,
|
|
2357
2406
|
r + n.start,
|
|
2358
2407
|
n.duration * 0.35
|
|
2359
2408
|
);
|
|
2360
2409
|
});
|
|
2361
2410
|
});
|
|
2362
2411
|
}
|
|
2363
|
-
const
|
|
2364
|
-
function
|
|
2412
|
+
const nt = "eloquentai:notification-sound-muted", En = 3e3;
|
|
2413
|
+
function Rn() {
|
|
2365
2414
|
try {
|
|
2366
|
-
return window.localStorage.getItem(
|
|
2415
|
+
return window.localStorage.getItem(nt) === "true";
|
|
2367
2416
|
} catch {
|
|
2368
2417
|
return !1;
|
|
2369
2418
|
}
|
|
2370
2419
|
}
|
|
2371
2420
|
function zn(e) {
|
|
2372
2421
|
try {
|
|
2373
|
-
e ? window.localStorage.setItem(
|
|
2422
|
+
e ? window.localStorage.setItem(nt, "true") : window.localStorage.removeItem(nt);
|
|
2374
2423
|
} catch {
|
|
2375
2424
|
}
|
|
2376
2425
|
}
|
|
@@ -2385,7 +2434,7 @@ function An({
|
|
|
2385
2434
|
isEnabled: e,
|
|
2386
2435
|
isOpen: t
|
|
2387
2436
|
}) {
|
|
2388
|
-
const [o, r] =
|
|
2437
|
+
const [o, r] = C(Rn), n = N(null), a = N(0), l = F(t), s = F(o), u = v(() => {
|
|
2389
2438
|
if (!e) return;
|
|
2390
2439
|
const d = Mn();
|
|
2391
2440
|
if (!d) return;
|
|
@@ -2398,7 +2447,7 @@ function An({
|
|
|
2398
2447
|
(p === "suspended" || p === "interrupted") && n.current.resume().catch(() => {
|
|
2399
2448
|
});
|
|
2400
2449
|
}, [e]);
|
|
2401
|
-
|
|
2450
|
+
V(() => {
|
|
2402
2451
|
if (!e) return;
|
|
2403
2452
|
const d = { capture: !0 }, p = () => u();
|
|
2404
2453
|
return window.addEventListener("pointerdown", p, d), window.addEventListener("keydown", p, d), () => {
|
|
@@ -2406,17 +2455,17 @@ function An({
|
|
|
2406
2455
|
};
|
|
2407
2456
|
}, [e, u]);
|
|
2408
2457
|
const i = v(() => {
|
|
2409
|
-
if (!e || s.current || Tn(
|
|
2458
|
+
if (!e || s.current || Tn(l.current)) return;
|
|
2410
2459
|
const d = n.current;
|
|
2411
2460
|
if (!d || d.state !== "running") return;
|
|
2412
2461
|
const p = Date.now();
|
|
2413
|
-
p - a.current <
|
|
2414
|
-
}, [e, s,
|
|
2462
|
+
p - a.current < En || (a.current = p, In(d));
|
|
2463
|
+
}, [e, s, l]), c = v(() => {
|
|
2415
2464
|
r((d) => !d);
|
|
2416
2465
|
}, []);
|
|
2417
|
-
return
|
|
2466
|
+
return V(() => {
|
|
2418
2467
|
zn(o);
|
|
2419
|
-
}, [o]), { notify: i, unlock: u, isMuted: o, toggleMuted:
|
|
2468
|
+
}, [o]), { notify: i, unlock: u, isMuted: o, toggleMuted: c };
|
|
2420
2469
|
}
|
|
2421
2470
|
const Pn = 2, On = (e) => `eloquent-ai:chat-widget-closed-${e}`;
|
|
2422
2471
|
function Un({
|
|
@@ -2426,22 +2475,22 @@ function Un({
|
|
|
2426
2475
|
userId: r,
|
|
2427
2476
|
userName: n,
|
|
2428
2477
|
userData: a,
|
|
2429
|
-
chatProps:
|
|
2478
|
+
chatProps: l,
|
|
2430
2479
|
isMobile: s,
|
|
2431
2480
|
isInitiallyOpen: u,
|
|
2432
2481
|
hasCloseButton: i,
|
|
2433
|
-
hasCleanChatButton:
|
|
2482
|
+
hasCleanChatButton: c,
|
|
2434
2483
|
// Deprecated aliases, kept until hosts migrate to the is/has names above.
|
|
2435
2484
|
initialOpen: d,
|
|
2436
2485
|
closeButton: p,
|
|
2437
2486
|
cleanChatButton: h,
|
|
2438
2487
|
proactiveMessageHideDelay: f = 5e3,
|
|
2439
2488
|
isAlwaysOpen: g = !1,
|
|
2440
|
-
hasCleanChatButtonOverride:
|
|
2489
|
+
hasCleanChatButtonOverride: E
|
|
2441
2490
|
}) {
|
|
2442
2491
|
const { isMobile: w, portalContainer: z } = xn(s), {
|
|
2443
2492
|
userId: A,
|
|
2444
|
-
externalId:
|
|
2493
|
+
externalId: R,
|
|
2445
2494
|
deviceId: j,
|
|
2446
2495
|
apiClient: P,
|
|
2447
2496
|
chatSettings: b,
|
|
@@ -2456,50 +2505,50 @@ function Un({
|
|
|
2456
2505
|
initialUserId: r,
|
|
2457
2506
|
userName: n,
|
|
2458
2507
|
userData: a
|
|
2459
|
-
}), ae = so({ chatProps:
|
|
2460
|
-
|
|
2508
|
+
}), ae = so({ chatProps: l, chatSettings: b }), D = u ?? d ?? !1, J = i ?? p ?? !0, Z = c ?? h ?? !0, W = On(o), [oe, ce] = C(() => g ? !0 : ut(W) === "true" || w ? !1 : D ?? w), [G, ie] = C(!1);
|
|
2509
|
+
V(() => {
|
|
2461
2510
|
if (!te || G || (ie(!0), g)) return;
|
|
2462
2511
|
const L = b?.initial_open;
|
|
2463
|
-
L != null && (w || L &&
|
|
2512
|
+
L != null && (w || L && ut(W) === "true" || ce(L));
|
|
2464
2513
|
}, [
|
|
2465
2514
|
te,
|
|
2466
2515
|
G,
|
|
2467
2516
|
b?.initial_open,
|
|
2468
2517
|
w,
|
|
2469
|
-
|
|
2518
|
+
W,
|
|
2470
2519
|
g
|
|
2471
2520
|
]);
|
|
2472
|
-
const Y = b?.initial_open ?? D, ue = b?.close_button ?? J, be =
|
|
2521
|
+
const Y = b?.initial_open ?? D, ue = b?.close_button ?? J, be = E ?? b?.clean_chat_button ?? Z, pe = b?.proactive_message_hide_delay ?? f, re = An({
|
|
2473
2522
|
isEnabled: b?.notification_sound !== !1,
|
|
2474
2523
|
isOpen: oe
|
|
2475
2524
|
}), { unlock: he } = re, m = v(
|
|
2476
2525
|
(L) => {
|
|
2477
2526
|
g || (he(), ce((de) => {
|
|
2478
2527
|
const lt = typeof L == "function" ? L(de) : L;
|
|
2479
|
-
return lt ? io(
|
|
2528
|
+
return lt ? io(W) : ao(W, "true", Pn), lt;
|
|
2480
2529
|
}));
|
|
2481
2530
|
},
|
|
2482
|
-
[
|
|
2483
|
-
), x = Wt(oe, 400), [O, U] =
|
|
2484
|
-
|
|
2485
|
-
), [k, y] =
|
|
2531
|
+
[W, g, he]
|
|
2532
|
+
), x = Wt(oe, 400), [O, U] = C(
|
|
2533
|
+
l?.messages ?? []
|
|
2534
|
+
), [k, y] = C(q), [B, S] = C(!1), [K, se] = C(_);
|
|
2486
2535
|
K !== _ && (se(_), _.length > 0 && U(_));
|
|
2487
|
-
const [ee,
|
|
2488
|
-
ee !== q && (
|
|
2489
|
-
const [
|
|
2490
|
-
|
|
2491
|
-
const
|
|
2492
|
-
|
|
2493
|
-
}, []), [
|
|
2536
|
+
const [ee, je] = C(q);
|
|
2537
|
+
ee !== q && (je(q), q && y(q));
|
|
2538
|
+
const [We, Re] = C(Q);
|
|
2539
|
+
We !== Q && (Re(Q), Q && S(!0));
|
|
2540
|
+
const ze = v(() => {
|
|
2541
|
+
S(!0);
|
|
2542
|
+
}, []), [He, Fe] = C(!1), M = te && b?.auto_display_welcome_message && b?.welcome_message ? b.welcome_message : "", le = {
|
|
2494
2543
|
text: M,
|
|
2495
|
-
isVisible: M !== "" && !
|
|
2544
|
+
isVisible: M !== "" && !He,
|
|
2496
2545
|
autoHideDelay: pe
|
|
2497
|
-
}, { onSendMessage: ve, onCleanMessages:
|
|
2546
|
+
}, { onSendMessage: ve, onCleanMessages: H, onRateChat: Te } = ln({
|
|
2498
2547
|
appId: o,
|
|
2499
2548
|
userId: A,
|
|
2500
2549
|
userName: n,
|
|
2501
2550
|
userData: a,
|
|
2502
|
-
externalId:
|
|
2551
|
+
externalId: R,
|
|
2503
2552
|
deviceId: j,
|
|
2504
2553
|
apiClient: P,
|
|
2505
2554
|
chatSettings: b,
|
|
@@ -2507,29 +2556,29 @@ function Un({
|
|
|
2507
2556
|
messages: O,
|
|
2508
2557
|
currentChat: k,
|
|
2509
2558
|
setCurrentChat: y,
|
|
2510
|
-
onChatClosed:
|
|
2559
|
+
onChatClosed: ze,
|
|
2511
2560
|
isChatClosed: B,
|
|
2512
2561
|
onAgentMessage: re.notify
|
|
2513
2562
|
});
|
|
2514
|
-
|
|
2563
|
+
V(() => {
|
|
2515
2564
|
_.length > 0 && U(_);
|
|
2516
|
-
}, [_]),
|
|
2565
|
+
}, [_]), V(() => {
|
|
2517
2566
|
q && y(q);
|
|
2518
2567
|
}, [q]);
|
|
2519
2568
|
const ke = N(null);
|
|
2520
|
-
|
|
2521
|
-
if (!k || !
|
|
2569
|
+
V(() => {
|
|
2570
|
+
if (!k || !R || !P) return;
|
|
2522
2571
|
const L = {
|
|
2523
2572
|
userId: A,
|
|
2524
2573
|
userName: n,
|
|
2525
2574
|
userData: a,
|
|
2526
|
-
externalId:
|
|
2575
|
+
externalId: R,
|
|
2527
2576
|
deviceId: j,
|
|
2528
2577
|
conversationId: k.id
|
|
2529
2578
|
}, de = JSON.stringify(L);
|
|
2530
2579
|
ke.current !== de && (ke.current = de, P.identifyUser(L));
|
|
2531
2580
|
}, [
|
|
2532
|
-
|
|
2581
|
+
R,
|
|
2533
2582
|
A,
|
|
2534
2583
|
n,
|
|
2535
2584
|
a,
|
|
@@ -2538,9 +2587,9 @@ function Un({
|
|
|
2538
2587
|
P
|
|
2539
2588
|
]);
|
|
2540
2589
|
const we = v(() => {
|
|
2541
|
-
|
|
2542
|
-
}, [
|
|
2543
|
-
|
|
2590
|
+
H(), S(!1);
|
|
2591
|
+
}, [H]), ge = v(() => {
|
|
2592
|
+
Fe(!0);
|
|
2544
2593
|
}, []);
|
|
2545
2594
|
return {
|
|
2546
2595
|
isReady: te,
|
|
@@ -2557,20 +2606,20 @@ function Un({
|
|
|
2557
2606
|
portalContainer: z,
|
|
2558
2607
|
onSendMessage: ve,
|
|
2559
2608
|
setChatOpen: m,
|
|
2560
|
-
onCleanMessages:
|
|
2609
|
+
onCleanMessages: H,
|
|
2561
2610
|
proactiveMessage: le,
|
|
2562
2611
|
hideProactiveMessage: ge,
|
|
2563
2612
|
isChatClosed: B,
|
|
2564
2613
|
onStartNewChat: we,
|
|
2565
|
-
onRateChat:
|
|
2614
|
+
onRateChat: Te,
|
|
2566
2615
|
unlockSound: he,
|
|
2567
2616
|
isSoundMuted: re.isMuted,
|
|
2568
2617
|
toggleSound: re.toggleMuted
|
|
2569
2618
|
};
|
|
2570
2619
|
}
|
|
2571
2620
|
function jn(e) {
|
|
2572
|
-
const [t, o] =
|
|
2573
|
-
return
|
|
2621
|
+
const [t, o] = C(0);
|
|
2622
|
+
return V(() => {
|
|
2574
2623
|
const r = window.visualViewport;
|
|
2575
2624
|
if (!e || !r) {
|
|
2576
2625
|
o(0);
|
|
@@ -2586,7 +2635,7 @@ function jn(e) {
|
|
|
2586
2635
|
}, [e]), t;
|
|
2587
2636
|
}
|
|
2588
2637
|
function Dn(e) {
|
|
2589
|
-
|
|
2638
|
+
V(() => {
|
|
2590
2639
|
if (!e) return;
|
|
2591
2640
|
const { body: t } = document, o = window.scrollY, r = {
|
|
2592
2641
|
position: t.style.position,
|
|
@@ -2601,9 +2650,9 @@ function Dn(e) {
|
|
|
2601
2650
|
}, [e]);
|
|
2602
2651
|
}
|
|
2603
2652
|
function $n() {
|
|
2604
|
-
const [e, t] =
|
|
2605
|
-
const i = (
|
|
2606
|
-
r(
|
|
2653
|
+
const [e, t] = C(!1), [o, r] = C(null), n = N(null), a = N(null), l = v((u) => {
|
|
2654
|
+
const i = (c) => {
|
|
2655
|
+
r(c), t(!0), a.current = null, n.current && clearTimeout(n.current), n.current = setTimeout(() => {
|
|
2607
2656
|
n.current = null;
|
|
2608
2657
|
const d = a.current;
|
|
2609
2658
|
d && i(d);
|
|
@@ -2616,7 +2665,7 @@ function $n() {
|
|
|
2616
2665
|
return {
|
|
2617
2666
|
isVisible: e,
|
|
2618
2667
|
content: o,
|
|
2619
|
-
showCognition:
|
|
2668
|
+
showCognition: l,
|
|
2620
2669
|
hideCognition: s
|
|
2621
2670
|
};
|
|
2622
2671
|
}
|
|
@@ -2624,18 +2673,18 @@ function Bn({
|
|
|
2624
2673
|
children: e
|
|
2625
2674
|
}) {
|
|
2626
2675
|
const t = $n();
|
|
2627
|
-
return /* @__PURE__ */
|
|
2676
|
+
return /* @__PURE__ */ I(Ht.Provider, { value: t, children: e });
|
|
2628
2677
|
}
|
|
2629
2678
|
const Ln = ({ children: e }) => {
|
|
2630
|
-
const [t, o] =
|
|
2679
|
+
const [t, o] = C(null), [r, n] = C(!1), a = Jt(o), i = {
|
|
2631
2680
|
error: t,
|
|
2632
2681
|
hideSdk: r,
|
|
2633
2682
|
publishApiError: a,
|
|
2634
|
-
publishError: (
|
|
2683
|
+
publishError: (c) => o(c),
|
|
2635
2684
|
publishNetworkError: () => n(!0),
|
|
2636
2685
|
clearError: () => o(null)
|
|
2637
2686
|
};
|
|
2638
|
-
return /* @__PURE__ */
|
|
2687
|
+
return /* @__PURE__ */ I(Ft.Provider, { value: i, children: e });
|
|
2639
2688
|
}, Nn = 100;
|
|
2640
2689
|
function Zn({
|
|
2641
2690
|
appId: e,
|
|
@@ -2644,27 +2693,27 @@ function Zn({
|
|
|
2644
2693
|
userData: r,
|
|
2645
2694
|
chatProps: n,
|
|
2646
2695
|
proactiveMessageHideDelay: a = 5e3,
|
|
2647
|
-
isMobile:
|
|
2696
|
+
isMobile: l,
|
|
2648
2697
|
hasCloseButton: s,
|
|
2649
2698
|
hasCleanChatButton: u,
|
|
2650
2699
|
isInitiallyOpen: i,
|
|
2651
2700
|
// Deprecated aliases, resolved in useChat (new name wins).
|
|
2652
|
-
closeButton:
|
|
2701
|
+
closeButton: c,
|
|
2653
2702
|
cleanChatButton: d,
|
|
2654
2703
|
initialOpen: p,
|
|
2655
2704
|
INTERNAL_ONLY_CHAT_INTERFACE_ONLY: h = !1,
|
|
2656
2705
|
INTERNAL_ONLY_SHOW_CLEAN_CHAT_BUTTON: f = void 0,
|
|
2657
2706
|
INTERNAL_ONLY_BLOCK_STYLE: g = !1,
|
|
2658
|
-
INTERNAL_ONLY_FEATURE_MESSAGE_CLICK:
|
|
2707
|
+
INTERNAL_ONLY_FEATURE_MESSAGE_CLICK: E = void 0,
|
|
2659
2708
|
INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK: w = void 0,
|
|
2660
2709
|
INTERNAL_ONLY_ON_CHAT_ID: z = void 0,
|
|
2661
2710
|
INTERNAL_ONLY_HIGHLIGHTED_MESSAGE_ID: A = null,
|
|
2662
|
-
INTERNAL_ONLY_ON_MESSAGE_SENT:
|
|
2711
|
+
INTERNAL_ONLY_ON_MESSAGE_SENT: R = void 0,
|
|
2663
2712
|
INTERNAL_ONLY_SHOW_COPY_BUTTON: j = !1,
|
|
2664
2713
|
INTERNAL_ONLY_ENVIRONMENT: P = "live",
|
|
2665
2714
|
INTERNAL_ONLY_API_URL: b
|
|
2666
2715
|
}) {
|
|
2667
|
-
const { hideSdk: q } =
|
|
2716
|
+
const { hideSdk: q } = Ke(), {
|
|
2668
2717
|
isReady: _,
|
|
2669
2718
|
isChatActive: te,
|
|
2670
2719
|
isInitiallyOpen: Q,
|
|
@@ -2673,7 +2722,7 @@ function Zn({
|
|
|
2673
2722
|
isMobile: D,
|
|
2674
2723
|
chatId: J,
|
|
2675
2724
|
chatOpen: Z,
|
|
2676
|
-
unlockSound:
|
|
2725
|
+
unlockSound: W,
|
|
2677
2726
|
isSoundMuted: oe,
|
|
2678
2727
|
toggleSound: ce,
|
|
2679
2728
|
chatInterfaceProps: G,
|
|
@@ -2695,12 +2744,12 @@ function Zn({
|
|
|
2695
2744
|
userName: o,
|
|
2696
2745
|
userData: r,
|
|
2697
2746
|
chatProps: n,
|
|
2698
|
-
isMobile:
|
|
2747
|
+
isMobile: l,
|
|
2699
2748
|
isInitiallyOpen: i,
|
|
2700
2749
|
hasCloseButton: s,
|
|
2701
2750
|
hasCleanChatButton: u,
|
|
2702
2751
|
initialOpen: p,
|
|
2703
|
-
closeButton:
|
|
2752
|
+
closeButton: c,
|
|
2704
2753
|
cleanChatButton: d,
|
|
2705
2754
|
proactiveMessageHideDelay: a,
|
|
2706
2755
|
// Embedded: the interface is the page content with no launcher to reopen
|
|
@@ -2708,14 +2757,14 @@ function Zn({
|
|
|
2708
2757
|
isAlwaysOpen: h,
|
|
2709
2758
|
hasCleanChatButtonOverride: f
|
|
2710
2759
|
}), U = N(void 0);
|
|
2711
|
-
|
|
2760
|
+
V(() => {
|
|
2712
2761
|
!z || U.current === J || (U.current = J, z(J));
|
|
2713
2762
|
}, [J, z]);
|
|
2714
2763
|
const k = jn(D && Z);
|
|
2715
2764
|
Dn(D && Z);
|
|
2716
2765
|
const y = !_;
|
|
2717
2766
|
if (q || y && !h || !y && !te) return null;
|
|
2718
|
-
const B = () => /* @__PURE__ */
|
|
2767
|
+
const B = () => /* @__PURE__ */ _e(
|
|
2719
2768
|
"div",
|
|
2720
2769
|
{
|
|
2721
2770
|
style: {
|
|
@@ -2731,12 +2780,13 @@ function Zn({
|
|
|
2731
2780
|
...g ? { position: "relative", inset: 0, width: "100%", height: "100%" } : {}
|
|
2732
2781
|
},
|
|
2733
2782
|
children: [
|
|
2734
|
-
/* @__PURE__ */
|
|
2735
|
-
/* @__PURE__ */
|
|
2736
|
-
|
|
2783
|
+
/* @__PURE__ */ I("style", { children: to }),
|
|
2784
|
+
/* @__PURE__ */ I(
|
|
2785
|
+
Ge,
|
|
2737
2786
|
{
|
|
2738
2787
|
className: "eloquentai-chat-messaging",
|
|
2739
|
-
|
|
2788
|
+
title: "Chat",
|
|
2789
|
+
head: /* @__PURE__ */ I("style", { children: Je }),
|
|
2740
2790
|
style: {
|
|
2741
2791
|
display: Z || ie ? "block" : "none",
|
|
2742
2792
|
width: D ? "100vw" : "400px",
|
|
@@ -2768,8 +2818,8 @@ function Zn({
|
|
|
2768
2818
|
// booting): hold the widget's frame with a skeleton so a remount —
|
|
2769
2819
|
// project/environment switch in the host app — doesn't flash an
|
|
2770
2820
|
// empty hole where the chat was.
|
|
2771
|
-
/* @__PURE__ */
|
|
2772
|
-
) : /* @__PURE__ */
|
|
2821
|
+
/* @__PURE__ */ I(Gt, { isOpen: !0, isMobile: D, skipAnimation: !0 })
|
|
2822
|
+
) : /* @__PURE__ */ I(
|
|
2773
2823
|
Yt,
|
|
2774
2824
|
{
|
|
2775
2825
|
...G,
|
|
@@ -2778,8 +2828,8 @@ function Zn({
|
|
|
2778
2828
|
isOpen: Z,
|
|
2779
2829
|
keyboardInset: k,
|
|
2780
2830
|
messages: Y,
|
|
2781
|
-
onSendMessage: (K, se) => (
|
|
2782
|
-
onMessageClick:
|
|
2831
|
+
onSendMessage: (K, se) => (W(), R?.(K), be(K, se)),
|
|
2832
|
+
onMessageClick: E,
|
|
2783
2833
|
highlightedMessageId: A,
|
|
2784
2834
|
isMobile: D,
|
|
2785
2835
|
hasCloseButton: ne,
|
|
@@ -2798,11 +2848,12 @@ function Zn({
|
|
|
2798
2848
|
)
|
|
2799
2849
|
}
|
|
2800
2850
|
),
|
|
2801
|
-
!h && /* @__PURE__ */
|
|
2802
|
-
|
|
2851
|
+
!h && /* @__PURE__ */ I(
|
|
2852
|
+
Ge,
|
|
2803
2853
|
{
|
|
2804
2854
|
className: "eloquentai-chat-launcher",
|
|
2805
|
-
|
|
2855
|
+
title: "Chat launcher",
|
|
2856
|
+
head: /* @__PURE__ */ I("style", { children: Je }),
|
|
2806
2857
|
style: {
|
|
2807
2858
|
position: "fixed",
|
|
2808
2859
|
bottom: 17,
|
|
@@ -2816,7 +2867,7 @@ function Zn({
|
|
|
2816
2867
|
pointerEvents: Z ? "none" : "auto",
|
|
2817
2868
|
transition: Z ? "opacity 100ms ease-in" : "opacity 200ms ease-out 320ms"
|
|
2818
2869
|
},
|
|
2819
|
-
children: /* @__PURE__ */
|
|
2870
|
+
children: /* @__PURE__ */ I(
|
|
2820
2871
|
oo,
|
|
2821
2872
|
{
|
|
2822
2873
|
isOpen: Z,
|
|
@@ -2826,11 +2877,12 @@ function Zn({
|
|
|
2826
2877
|
)
|
|
2827
2878
|
}
|
|
2828
2879
|
),
|
|
2829
|
-
G?.displayWelcomeMessages ? /* @__PURE__ */
|
|
2830
|
-
|
|
2880
|
+
G?.displayWelcomeMessages ? /* @__PURE__ */ I(
|
|
2881
|
+
Ge,
|
|
2831
2882
|
{
|
|
2832
2883
|
className: "eloquentai-chat-proactive-message",
|
|
2833
|
-
|
|
2884
|
+
title: "Chat greeting",
|
|
2885
|
+
head: /* @__PURE__ */ I("style", { children: Je }),
|
|
2834
2886
|
style: {
|
|
2835
2887
|
position: "fixed",
|
|
2836
2888
|
// Aligns the bubble's tail with the launcher's center: the
|
|
@@ -2839,13 +2891,13 @@ function Zn({
|
|
|
2839
2891
|
bottom: 24,
|
|
2840
2892
|
right: 17
|
|
2841
2893
|
},
|
|
2842
|
-
children: /* @__PURE__ */
|
|
2894
|
+
children: /* @__PURE__ */ I(Xt, { ...G?.theme ?? {}, children: /* @__PURE__ */ I(
|
|
2843
2895
|
"div",
|
|
2844
2896
|
{
|
|
2845
|
-
className:
|
|
2897
|
+
className: Be("eloq:w-full eloq:h-full", {
|
|
2846
2898
|
dark: G?.theme?.mode === "dark"
|
|
2847
2899
|
}),
|
|
2848
|
-
children: re && !Q && /* @__PURE__ */
|
|
2900
|
+
children: re && !Q && /* @__PURE__ */ I(
|
|
2849
2901
|
no,
|
|
2850
2902
|
{
|
|
2851
2903
|
message: re.text,
|
|
@@ -2864,15 +2916,15 @@ function Zn({
|
|
|
2864
2916
|
]
|
|
2865
2917
|
}
|
|
2866
2918
|
);
|
|
2867
|
-
return /* @__PURE__ */
|
|
2919
|
+
return /* @__PURE__ */ I(Qt, { children: g ? B() : ue ? /* @__PURE__ */ I(ro, { container: ue, children: B() }) : null });
|
|
2868
2920
|
}
|
|
2869
2921
|
function Kn(e) {
|
|
2870
|
-
return /* @__PURE__ */
|
|
2922
|
+
return /* @__PURE__ */ I(Ln, { children: /* @__PURE__ */ I(Bn, { children: /* @__PURE__ */ I(Zn, { ...e }) }) });
|
|
2871
2923
|
}
|
|
2872
2924
|
function Gn(e, t) {
|
|
2873
2925
|
return ((r, n, a) => {
|
|
2874
|
-
const
|
|
2875
|
-
return
|
|
2926
|
+
const l = eo.createRoot(n);
|
|
2927
|
+
return l.render(/* @__PURE__ */ I(r, { ...a })), l.unmount;
|
|
2876
2928
|
})(Kn, e, t);
|
|
2877
2929
|
}
|
|
2878
2930
|
export {
|