@eloquentai/chat-sdk 0.35.0-dev.3 → 0.35.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/chat/chat.d.ts +4 -0
- package/dist/components/chat/hooks/use-chat.d.ts +2 -0
- package/dist/components/chat-interface/types.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.mjs +586 -577
- package/dist/index.mjs.map +1 -1
- package/dist/{skeleton-DKhzeqGI.js → skeleton-CVt31tEo.js} +344 -325
- package/dist/{skeleton-DKhzeqGI.js.map → skeleton-CVt31tEo.js.map} +1 -1
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { L as Ct, c as
|
|
2
|
+
import { L as Ct, c as Xe, u as St, g as rt, X as It, i as zt, A as Et, d as J, e as je, f as Rt, h as Pt, r as Tt, t as Mt, j as Ot, N as Ye, k as Oe, l as At, H as Ut, w as nt, m as jt, s as Dt, n as $t, o as Bt, E as Nt, p as Lt, S as Zt, C as Kt, T as Ht } from "./skeleton-CVt31tEo.js";
|
|
3
3
|
import { jsx as q, jsxs as ze, Fragment as at } from "react/jsx-runtime";
|
|
4
|
-
import { useState as
|
|
4
|
+
import { useState as C, useEffect as H, useMemo as Fe, useCallback as v, useRef as K } from "react";
|
|
5
5
|
import { createPortal as Je } from "react-dom";
|
|
6
6
|
import Vt from "react-dom/client";
|
|
7
7
|
try {
|
|
8
8
|
let t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, e = new t.Error().stack;
|
|
9
|
-
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "
|
|
9
|
+
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "c8ed81b1-fc87-491c-aac1-fa40c3cea5e4", t._sentryDebugIdIdentifier = "sentry-dbid-c8ed81b1-fc87-491c-aac1-fa40c3cea5e4");
|
|
10
10
|
} catch {
|
|
11
11
|
}
|
|
12
12
|
if (typeof window < "u") {
|
|
@@ -33,7 +33,7 @@ if (typeof window < "u") {
|
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
const Le = '/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--eloq-aura-angle:0deg}}}@layer theme{:root,:host{--eloq-font-sans:system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--eloq-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--eloq-color-red-50:oklch(97.1% .013 17.38);--eloq-color-red-200:oklch(88.5% .062 18.334);--eloq-color-red-400:oklch(70.4% .191 22.216);--eloq-color-red-500:oklch(63.7% .237 25.331);--eloq-color-red-800:oklch(44.4% .177 26.899);--eloq-color-amber-50:oklch(98.7% .022 95.277);--eloq-color-amber-200:oklch(92.4% .12 95.746);--eloq-color-amber-400:oklch(82.8% .189 84.429);--eloq-color-amber-500:oklch(76.9% .188 70.08);--eloq-color-amber-800:oklch(47.3% .137 46.201);--eloq-color-yellow-400:oklch(85.2% .199 91.936);--eloq-color-green-50:oklch(98.2% .018 155.826);--eloq-color-green-200:oklch(92.5% .084 155.995);--eloq-color-green-400:oklch(79.2% .209 151.711);--eloq-color-green-500:oklch(72.3% .219 149.579);--eloq-color-green-800:oklch(44.8% .119 151.328);--eloq-color-blue-50:oklch(97% .014 254.604);--eloq-color-blue-200:oklch(88.2% .059 254.128);--eloq-color-blue-400:oklch(70.7% .165 254.624);--eloq-color-blue-500:oklch(62.3% .214 259.815);--eloq-color-blue-800:oklch(42.4% .199 265.638);--eloq-color-gray-200:oklch(92.8% .006 264.531);--eloq-color-gray-300:oklch(87.2% .01 258.338);--eloq-color-gray-400:oklch(70.7% .022 261.325);--eloq-color-gray-500:oklch(55.1% .027 264.364);--eloq-color-gray-600:oklch(44.6% .03 256.802);--eloq-color-black:#000;--eloq-color-white:#fff;--eloq-spacing:.25rem;--eloq-container-xs:20rem;--eloq-text-xs:.75rem;--eloq-text-xs--line-height:calc(1 / .75);--eloq-text-sm:.875rem;--eloq-text-sm--line-height:calc(1.25 / .875);--eloq-text-base:1rem;--eloq-text-base--line-height: 1.5 ;--eloq-text-2xl:1.5rem;--eloq-text-2xl--line-height:calc(2 / 1.5);--eloq-font-weight-medium:500;--eloq-font-weight-semibold:600;--eloq-tracking-tight:-.025em;--eloq-leading-relaxed:1.625;--eloq-radius-md:calc(var(--radius) - 2px);--eloq-radius-lg:var(--radius);--eloq-radius-xl:.75rem;--eloq-radius-2xl:1rem;--eloq-radius-3xl:1.5rem;--eloq-drop-shadow-lg:0 4px 4px #00000026;--eloq-drop-shadow-xl:0 9px 7px #0000001a;--eloq-ease-out:cubic-bezier(0, 0, .2, 1);--eloq-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--eloq-default-transition-duration:.15s;--eloq-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--eloq-default-font-family:var(--eloq-font-sans);--eloq-default-mono-font-family:var(--eloq-font-mono);--eloq-animate-panel-in:panel-in .35s cubic-bezier(.16, 1, .3, 1) both;--eloq-animate-panel-out:panel-out .25s cubic-bezier(.4, 0, 1, 1) both;--eloq-animate-thinking-dot:thinking-dot 1.2s ease-in-out infinite;--eloq-animate-thinking-shimmer:thinking-shimmer 1.8s linear infinite;--eloq-animate-message-in:message-in .3s ease-out both;--eloq-animate-slide-up-in:slide-up-in .3s ease-out both}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--eloq-default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--eloq-default-font-feature-settings,normal);font-variation-settings:var(--eloq-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--eloq-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--eloq-default-mono-font-feature-settings,normal);font-variation-settings:var(--eloq-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--background:0 0% 100%;--foreground:0 0% 3.9%;--card:0 0% 100%;--card-foreground:0 0% 3.9%;--popover:0 0% 100%;--popover-foreground:0 0% 3.9%;--primary:267 56% 46%;--primary-foreground:0 0% 98%;--secondary:0 0% 96.1%;--secondary-foreground:0 0% 9%;--muted:0 0% 96.1%;--muted-foreground:0 0% 45.1%;--accent:0 0% 96.1%;--accent-foreground:0 0% 9%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--cream:37.5 44% 96.5%;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%;--radius:.5rem}.dark{--background:262 50% 10%;--foreground:262 5% 90%;--card:262 50% 10%;--card-foreground:262 5% 90%;--popover:262 50% 5%;--popover-foreground:262 5% 90%;--primary:262 62% 70%;--primary-foreground:0 0% 100%;--primary-dark:262 62% 60%;--secondary:262 30% 30%;--secondary-foreground:0 0% 100%;--secondary-dark:262 30% 20%;--secondary-light:262 30% 40%;--tertiary:267 56% 46%;--tertiary-foreground:0 0% 100%;--tertiary-dark:267 38% 25%;--tertiary-light:263 100% 85%;--muted:224 30% 25%;--muted-foreground:262 5% 90%;--accent:224 30% 25%;--accent-foreground:262 5% 100%;--accent-dark:224 30% 15%;--destructive:0 100% 30%;--destructive-foreground:262 5% 90%;--border:0 0% 30%;--input:262 30% 25%;--ring:262 62% 71%;--cream:257 28% 20%;--radius:.5rem;--sidebar-background:var(--background);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--border);--sidebar-ring:var(--ring)}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}}@layer components;@layer utilities{.eloq\\:pointer-events-none{pointer-events:none}.eloq\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.eloq\\:absolute{position:absolute}.eloq\\:relative{position:relative}.eloq\\:inset-0{inset:0}.eloq\\:inset-x-0{inset-inline:0}.eloq\\:top-0{top:0}.eloq\\:top-0\\.5{top:calc(var(--eloq-spacing) * .5)}.eloq\\:-right-\\[9px\\]{right:-9px}.eloq\\:right-0\\.5{right:calc(var(--eloq-spacing) * .5)}.eloq\\:right-2{right:calc(var(--eloq-spacing) * 2)}.eloq\\:right-16{right:calc(var(--eloq-spacing) * 16)}.eloq\\:bottom-0{bottom:0}.eloq\\:bottom-1{bottom:var(--eloq-spacing)}.eloq\\:bottom-2{bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:bottom-10{bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:left-0{left:0}.eloq\\:left-2{left:calc(var(--eloq-spacing) * 2)}.eloq\\:left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.eloq\\:z-10{z-index:10}.eloq\\:z-20{z-index:20}.eloq\\:m-0{margin:0}.eloq\\:m-auto{margin:auto}.eloq\\:mx-1{margin-inline:var(--eloq-spacing)}.eloq\\:mx-auto{margin-inline:auto}.eloq\\:my-2{margin-block:calc(var(--eloq-spacing) * 2)}.eloq\\:my-4{margin-block:calc(var(--eloq-spacing) * 4)}.eloq\\:-mt-2{margin-top:calc(var(--eloq-spacing) * -2)}.eloq\\:-mt-6{margin-top:calc(var(--eloq-spacing) * -6)}.eloq\\:-mt-20{margin-top:calc(var(--eloq-spacing) * -20)}.eloq\\:mt-1{margin-top:var(--eloq-spacing)}.eloq\\:mt-2{margin-top:calc(var(--eloq-spacing) * 2)}.eloq\\:mt-10{margin-top:calc(var(--eloq-spacing) * 10)}.eloq\\:mr-1{margin-right:var(--eloq-spacing)}.eloq\\:mr-\\[2px\\]{margin-right:2px}.eloq\\:mb-1{margin-bottom:var(--eloq-spacing)}.eloq\\:mb-3{margin-bottom:calc(var(--eloq-spacing) * 3)}.eloq\\:mb-4{margin-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:mb-10{margin-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:ml-0{margin-left:0}.eloq\\:ml-1{margin-left:var(--eloq-spacing)}.eloq\\:ml-5{margin-left:calc(var(--eloq-spacing) * 5)}.eloq\\:box-content{box-sizing:content-box}.eloq\\:block{display:block}.eloq\\:flex{display:flex}.eloq\\:hidden{display:none}.eloq\\:inline-flex{display:inline-flex}.eloq\\:aspect-square{aspect-ratio:1}.eloq\\:h-1{height:var(--eloq-spacing)}.eloq\\:h-2\\.5{height:calc(var(--eloq-spacing) * 2.5)}.eloq\\:h-3{height:calc(var(--eloq-spacing) * 3)}.eloq\\:h-4{height:calc(var(--eloq-spacing) * 4)}.eloq\\:h-5{height:calc(var(--eloq-spacing) * 5)}.eloq\\:h-6{height:calc(var(--eloq-spacing) * 6)}.eloq\\:h-8{height:calc(var(--eloq-spacing) * 8)}.eloq\\:h-10{height:calc(var(--eloq-spacing) * 10)}.eloq\\:h-12{height:calc(var(--eloq-spacing) * 12)}.eloq\\:h-14{height:calc(var(--eloq-spacing) * 14)}.eloq\\:h-16{height:calc(var(--eloq-spacing) * 16)}.eloq\\:h-\\[0\\.42em\\]{height:.42em}.eloq\\:h-\\[160px\\]{height:160px}.eloq\\:h-\\[220px\\]{height:220px}.eloq\\:h-\\[560px\\]{height:560px}.eloq\\:h-\\[600px\\]{height:600px}.eloq\\:h-full{height:100%}.eloq\\:max-h-\\[132px\\]{max-height:132px}.eloq\\:min-h-\\[48px\\]{min-height:48px}.eloq\\:min-h-\\[80px\\]{min-height:80px}.eloq\\:w-2\\.5{width:calc(var(--eloq-spacing) * 2.5)}.eloq\\:w-2\\/3{width:66.6667%}.eloq\\:w-3{width:calc(var(--eloq-spacing) * 3)}.eloq\\:w-4{width:calc(var(--eloq-spacing) * 4)}.eloq\\:w-5{width:calc(var(--eloq-spacing) * 5)}.eloq\\:w-6{width:calc(var(--eloq-spacing) * 6)}.eloq\\:w-8{width:calc(var(--eloq-spacing) * 8)}.eloq\\:w-10{width:calc(var(--eloq-spacing) * 10)}.eloq\\:w-12{width:calc(var(--eloq-spacing) * 12)}.eloq\\:w-14{width:calc(var(--eloq-spacing) * 14)}.eloq\\:w-16{width:calc(var(--eloq-spacing) * 16)}.eloq\\:w-24{width:calc(var(--eloq-spacing) * 24)}.eloq\\:w-32{width:calc(var(--eloq-spacing) * 32)}.eloq\\:w-48{width:calc(var(--eloq-spacing) * 48)}.eloq\\:w-\\[0\\.42em\\]{width:.42em}.eloq\\:w-\\[70\\%\\]{width:70%}.eloq\\:w-\\[320px\\]{width:320px}.eloq\\:w-\\[340px\\]{width:340px}.eloq\\:w-\\[348px\\]{width:348px}.eloq\\:w-\\[380px\\]{width:380px}.eloq\\:w-\\[420px\\]{width:420px}.eloq\\:w-full{width:100%}.eloq\\:max-w-\\[75\\%\\]{max-width:75%}.eloq\\:max-w-\\[88\\%\\]{max-width:88%}.eloq\\:max-w-full{max-width:100%}.eloq\\:max-w-xs{max-width:var(--eloq-container-xs)}.eloq\\:min-w-0{min-width:0}.eloq\\:min-w-min{min-width:min-content}.eloq\\:flex-1{flex:1}.eloq\\:flex-none{flex:none}.eloq\\:flex-shrink-0,.eloq\\:shrink-0{flex-shrink:0}.eloq\\:flex-grow{flex-grow:1}.eloq\\:origin-bottom-right{transform-origin:100% 100%}.eloq\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:translate-x-8{--tw-translate-x:calc(var(--eloq-spacing) * 8);translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:-scale-x-100{--tw-scale-x: -100% ;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:scale-\\[0\\.05\\]{scale:.05}.eloq\\:transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.eloq\\:animate-message-in{animation:var(--eloq-animate-message-in)}.eloq\\:animate-panel-in{animation:var(--eloq-animate-panel-in)}.eloq\\:animate-panel-out{animation:var(--eloq-animate-panel-out)}.eloq\\:animate-pulse{animation:var(--eloq-animate-pulse)}.eloq\\:animate-slide-up-in{animation:var(--eloq-animate-slide-up-in)}.eloq\\:animate-thinking-dot{animation:var(--eloq-animate-thinking-dot)}.eloq\\:animate-thinking-shimmer{animation:var(--eloq-animate-thinking-shimmer)}.eloq\\:cursor-default{cursor:default}.eloq\\:cursor-grab{cursor:grab}.eloq\\:cursor-pointer{cursor:pointer}.eloq\\:touch-none{touch-action:none}.eloq\\:resize-none{resize:none}.eloq\\:list-decimal{list-style-type:decimal}.eloq\\:list-disc{list-style-type:disc}.eloq\\:flex-col{flex-direction:column}.eloq\\:flex-row{flex-direction:row}.eloq\\:flex-wrap{flex-wrap:wrap}.eloq\\:items-center{align-items:center}.eloq\\:items-end{align-items:flex-end}.eloq\\:items-start{align-items:flex-start}.eloq\\:justify-between{justify-content:space-between}.eloq\\:justify-center{justify-content:center}.eloq\\:justify-end{justify-content:flex-end}.eloq\\:justify-start{justify-content:flex-start}.eloq\\:gap-1{gap:var(--eloq-spacing)}.eloq\\:gap-1\\.5{gap:calc(var(--eloq-spacing) * 1.5)}.eloq\\:gap-2{gap:calc(var(--eloq-spacing) * 2)}.eloq\\:gap-3{gap:calc(var(--eloq-spacing) * 3)}.eloq\\:gap-\\[0\\.25em\\]{gap:.25em}:where(.eloq\\:space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.eloq\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--eloq-spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--eloq-spacing) * var(--tw-space-x-reverse));margin-inline-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}.eloq\\:self-end{align-self:flex-end}.eloq\\:self-stretch{align-self:stretch}.eloq\\:overflow-hidden{overflow:hidden}.eloq\\:overflow-x-auto{overflow-x:auto}.eloq\\:rounded-2xl{border-radius:var(--eloq-radius-2xl)}.eloq\\:rounded-3xl{border-radius:var(--eloq-radius-3xl)}.eloq\\:rounded-\\[inherit\\]{border-radius:inherit}.eloq\\:rounded-full{border-radius:3.40282e38px}.eloq\\:rounded-lg{border-radius:var(--eloq-radius-lg)}.eloq\\:rounded-md{border-radius:var(--eloq-radius-md)}.eloq\\:rounded-none{border-radius:0}.eloq\\:rounded-xl{border-radius:var(--eloq-radius-xl)}.eloq\\:rounded-t-2xl{border-top-left-radius:var(--eloq-radius-2xl);border-top-right-radius:var(--eloq-radius-2xl)}.eloq\\:border{border-style:var(--tw-border-style);border-width:1px}.eloq\\:border-0{border-style:var(--tw-border-style);border-width:0}.eloq\\:border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.eloq\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.eloq\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.eloq\\:border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.eloq\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.eloq\\:border-amber-400{border-color:var(--eloq-color-amber-400)}.eloq\\:border-blue-500{border-color:var(--eloq-color-blue-500)}.eloq\\:border-border{border-color:hsl(var(--border))}.eloq\\:border-green-500{border-color:var(--eloq-color-green-500)}.eloq\\:border-input{border-color:hsl(var(--input))}.eloq\\:border-red-500{border-color:var(--eloq-color-red-500)}.eloq\\:border-t-transparent{border-top-color:#0000}.eloq\\:border-l-transparent{border-left-color:#0000}.eloq\\:bg-\\[\\#0a0a0a\\]{background-color:#0a0a0a}.eloq\\:bg-\\[\\#000\\]{background-color:#000}.eloq\\:bg-\\[\\#fff\\]{background-color:#fff}.eloq\\:bg-amber-50{background-color:var(--eloq-color-amber-50)}.eloq\\:bg-background{background-color:hsl(var(--background))}.eloq\\:bg-black\\/20{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/20{background-color:color-mix(in oklab,var(--eloq-color-black) 20%,transparent)}}.eloq\\:bg-black\\/60{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/60{background-color:color-mix(in oklab,var(--eloq-color-black) 60%,transparent)}}.eloq\\:bg-blue-50{background-color:var(--eloq-color-blue-50)}.eloq\\:bg-border{background-color:hsl(var(--border))}.eloq\\:bg-card{background-color:hsl(var(--card))}.eloq\\:bg-cream{background-color:hsl(var(--cream))}.eloq\\:bg-gray-400{background-color:var(--eloq-color-gray-400)}.eloq\\:bg-green-50{background-color:var(--eloq-color-green-50)}.eloq\\:bg-muted{background-color:hsl(var(--muted))}.eloq\\:bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.eloq\\:bg-primary{background-color:hsl(var(--primary))}.eloq\\:bg-red-50{background-color:var(--eloq-color-red-50)}.eloq\\:bg-white,.eloq\\:bg-white\\/20{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-white\\/20{background-color:color-mix(in oklab,var(--eloq-color-white) 20%,transparent)}}.eloq\\:fill-none{fill:none}.eloq\\:fill-yellow-400{fill:var(--eloq-color-yellow-400)}.eloq\\:object-contain{object-fit:contain}.eloq\\:object-cover{object-fit:cover}.eloq\\:p-0{padding:0}.eloq\\:p-0\\.5{padding:calc(var(--eloq-spacing) * .5)}.eloq\\:p-1{padding:var(--eloq-spacing)}.eloq\\:p-1\\.5{padding:calc(var(--eloq-spacing) * 1.5)}.eloq\\:p-2{padding:calc(var(--eloq-spacing) * 2)}.eloq\\:p-3{padding:calc(var(--eloq-spacing) * 3)}.eloq\\:p-4{padding:calc(var(--eloq-spacing) * 4)}.eloq\\:p-6{padding:calc(var(--eloq-spacing) * 6)}.eloq\\:p-\\[1px\\]{padding:1px}.eloq\\:px-0{padding-inline:0}.eloq\\:px-2{padding-inline:calc(var(--eloq-spacing) * 2)}.eloq\\:px-3{padding-inline:calc(var(--eloq-spacing) * 3)}.eloq\\:px-4{padding-inline:calc(var(--eloq-spacing) * 4)}.eloq\\:px-5{padding-inline:calc(var(--eloq-spacing) * 5)}.eloq\\:px-\\[12px\\]{padding-inline:12px}.eloq\\:px-\\[16px\\]{padding-inline:16px}.eloq\\:py-1{padding-block:var(--eloq-spacing)}.eloq\\:py-1\\.5{padding-block:calc(var(--eloq-spacing) * 1.5)}.eloq\\:py-2{padding-block:calc(var(--eloq-spacing) * 2)}.eloq\\:py-3{padding-block:calc(var(--eloq-spacing) * 3)}.eloq\\:py-3\\.5{padding-block:calc(var(--eloq-spacing) * 3.5)}.eloq\\:py-\\[8px\\]{padding-block:8px}.eloq\\:py-\\[12px\\]{padding-block:12px}.eloq\\:pt-0{padding-top:0}.eloq\\:pt-2{padding-top:calc(var(--eloq-spacing) * 2)}.eloq\\:pt-4{padding-top:calc(var(--eloq-spacing) * 4)}.eloq\\:pt-5{padding-top:calc(var(--eloq-spacing) * 5)}.eloq\\:pt-6{padding-top:calc(var(--eloq-spacing) * 6)}.eloq\\:pt-10{padding-top:calc(var(--eloq-spacing) * 10)}.eloq\\:pt-24{padding-top:calc(var(--eloq-spacing) * 24)}.eloq\\:pr-2{padding-right:calc(var(--eloq-spacing) * 2)}.eloq\\:pr-4{padding-right:calc(var(--eloq-spacing) * 4)}.eloq\\:pr-12{padding-right:calc(var(--eloq-spacing) * 12)}.eloq\\:pb-2{padding-bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:pb-4{padding-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:pb-10{padding-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:pb-14{padding-bottom:calc(var(--eloq-spacing) * 14)}.eloq\\:pl-3{padding-left:calc(var(--eloq-spacing) * 3)}.eloq\\:pl-4{padding-left:calc(var(--eloq-spacing) * 4)}.eloq\\:pl-11{padding-left:calc(var(--eloq-spacing) * 11)}.eloq\\:text-center{text-align:center}.eloq\\:text-left{text-align:left}.eloq\\:text-2xl{font-size:var(--eloq-text-2xl);line-height:var(--tw-leading,var(--eloq-text-2xl--line-height))}.eloq\\:text-base{font-size:var(--eloq-text-base);line-height:var(--tw-leading,var(--eloq-text-base--line-height))}.eloq\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}.eloq\\:text-xs{font-size:var(--eloq-text-xs);line-height:var(--tw-leading,var(--eloq-text-xs--line-height))}.eloq\\:text-\\[10px\\]{font-size:10px}.eloq\\:leading-5{--tw-leading:calc(var(--eloq-spacing) * 5);line-height:calc(var(--eloq-spacing) * 5)}.eloq\\:leading-none{--tw-leading:1;line-height:1}.eloq\\:leading-relaxed{--tw-leading:var(--eloq-leading-relaxed);line-height:var(--eloq-leading-relaxed)}.eloq\\:font-medium{--tw-font-weight:var(--eloq-font-weight-medium);font-weight:var(--eloq-font-weight-medium)}.eloq\\:font-semibold{--tw-font-weight:var(--eloq-font-weight-semibold);font-weight:var(--eloq-font-weight-semibold)}.eloq\\:tracking-tight{--tw-tracking:var(--eloq-tracking-tight);letter-spacing:var(--eloq-tracking-tight)}.eloq\\:whitespace-nowrap{white-space:nowrap}.eloq\\:text-\\[\\#000\\]{color:#000}.eloq\\:text-\\[\\#fff\\]{color:#fff}.eloq\\:text-amber-500{color:var(--eloq-color-amber-500)}.eloq\\:text-amber-800{color:var(--eloq-color-amber-800)}.eloq\\:text-blue-500{color:var(--eloq-color-blue-500)}.eloq\\:text-blue-800{color:var(--eloq-color-blue-800)}.eloq\\:text-card-foreground{color:hsl(var(--card-foreground))}.eloq\\:text-destructive{color:hsl(var(--destructive))}.eloq\\:text-foreground{color:hsl(var(--foreground))}.eloq\\:text-gray-300{color:var(--eloq-color-gray-300)}.eloq\\:text-gray-400{color:var(--eloq-color-gray-400)}.eloq\\:text-gray-500{color:var(--eloq-color-gray-500)}.eloq\\:text-green-500{color:var(--eloq-color-green-500)}.eloq\\:text-green-800{color:var(--eloq-color-green-800)}.eloq\\:text-muted{color:hsl(var(--muted))}.eloq\\:text-muted-foreground{color:hsl(var(--muted-foreground))}.eloq\\:text-primary{color:hsl(var(--primary))}.eloq\\:text-primary-foreground{color:hsl(var(--primary-foreground))}.eloq\\:text-red-500{color:var(--eloq-color-red-500)}.eloq\\:text-red-800{color:var(--eloq-color-red-800)}.eloq\\:text-white{color:var(--eloq-color-white)}.eloq\\:text-yellow-400{color:var(--eloq-color-yellow-400)}.eloq\\:italic{font-style:italic}.eloq\\:underline{text-decoration-line:underline}.eloq\\:opacity-0{opacity:0}.eloq\\:opacity-50{opacity:.5}.eloq\\:opacity-70{opacity:.7}.eloq\\:opacity-75{opacity:.75}.eloq\\:opacity-100{opacity:1}.eloq\\:shadow-\\[0_-8px_24px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow:0 -8px 24px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_0_4px_0_rgba\\(0\\,0\\,0\\,0\\.20\\)\\]{--tw-shadow:0 0 4px 0 var(--tw-shadow-color,#0003);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_3px_4px_-2px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0 3px 4px -2px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.eloq\\: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-\\[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-200{--tw-duration:.2s;transition-duration:.2s}.eloq\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.eloq\\:duration-500{--tw-duration:.5s;transition-duration:.5s}.eloq\\:ease-out{--tw-ease:var(--eloq-ease-out);transition-timing-function:var(--eloq-ease-out)}.eloq\\:select-none{-webkit-user-select:none;user-select:none}.eloq\\:placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.eloq\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.eloq\\:hover\\:bg-black\\/5:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 5%,transparent)}}.eloq\\:hover\\:bg-black\\/80:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/80:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 80%,transparent)}}.eloq\\:hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.eloq\\:hover\\:text-foreground:hover{color:hsl(var(--foreground))}.eloq\\:hover\\:text-gray-600:hover{color:var(--eloq-color-gray-600)}.eloq\\:hover\\:text-primary:hover{color:hsl(var(--primary))}.eloq\\:hover\\:opacity-80:hover{opacity:.8}.eloq\\:hover\\:opacity-90:hover{opacity:.9}.eloq\\:hover\\:opacity-100:hover{opacity:1}.eloq\\:hover\\:drop-shadow-xl:hover{--tw-drop-shadow-size:drop-shadow(0 9px 7px var(--tw-drop-shadow-color,#0000001a));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}.eloq\\:focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-muted:focus-visible{--tw-ring-color:hsl(var(--muted))}.eloq\\:focus-visible\\:ring-primary:focus-visible{--tw-ring-color:hsl(var(--primary))}.eloq\\:focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.eloq\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.eloq\\:active\\:cursor-grabbing:active{cursor:grabbing}.eloq\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.eloq\\:disabled\\:opacity-50:disabled{opacity:.5}@media(prefers-reduced-motion:reduce){.eloq\\:motion-reduce\\:animate-none{animation:none}.eloq\\:motion-reduce\\:opacity-70{opacity:.7}}@media(min-width:40rem){.eloq\\:sm\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}@media(min-width:48rem){.eloq\\:md\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}.eloq\\:dark\\:border:is(.dark *){border-style:var(--tw-border-style);border-width:1px}.eloq\\:dark\\:border-b:is(.dark *){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.eloq\\:dark\\:border-border:is(.dark *){border-color:hsl(var(--border))}.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:var(--eloq-color-amber-400)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-amber-400) 10%,transparent)}}.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:var(--eloq-color-blue-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-blue-500) 10%,transparent)}}.eloq\\:dark\\:bg-card:is(.dark *){background-color:hsl(var(--card))}.eloq\\:dark\\:bg-gray-200:is(.dark *){background-color:var(--eloq-color-gray-200)}.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:var(--eloq-color-green-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-green-500) 10%,transparent)}}.eloq\\:dark\\:bg-muted:is(.dark *){background-color:hsl(var(--muted))}.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:var(--eloq-color-red-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-red-500) 10%,transparent)}}.eloq\\:dark\\:text-amber-200:is(.dark *){color:var(--eloq-color-amber-200)}.eloq\\:dark\\:text-amber-400:is(.dark *){color:var(--eloq-color-amber-400)}.eloq\\:dark\\:text-blue-200:is(.dark *){color:var(--eloq-color-blue-200)}.eloq\\:dark\\:text-blue-400:is(.dark *){color:var(--eloq-color-blue-400)}.eloq\\:dark\\:text-gray-500:is(.dark *){color:var(--eloq-color-gray-500)}.eloq\\:dark\\:text-green-200:is(.dark *){color:var(--eloq-color-green-200)}.eloq\\:dark\\:text-green-400:is(.dark *){color:var(--eloq-color-green-400)}.eloq\\:dark\\:text-muted-foreground:is(.dark *),.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:color-mix(in oklab,hsl(var(--muted-foreground)) 50%,transparent)}}.eloq\\:dark\\:text-red-200:is(.dark *){color:var(--eloq-color-red-200)}.eloq\\:dark\\:text-red-400:is(.dark *){color:var(--eloq-color-red-400)}.eloq\\:dark\\:shadow-none:is(.dark *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:color-mix(in oklab,var(--eloq-color-white) 10%,transparent)}}.eloq\\:dark\\:hover\\:text-gray-300:is(.dark *):hover{color:var(--eloq-color-gray-300)}.eloq\\:dark\\:hover\\:text-primary:is(.dark *):hover{color:hsl(var(--primary))}}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}}body{background-color:#0000}.eloquent-chat{font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.collapse{visibility:unset!important}.eloq-wrap-anywhere{overflow-wrap:anywhere}.eloq-thin-scrollbar{scrollbar-width:thin;scrollbar-color:hsl(var(--border)) transparent}.eloq-thin-scrollbar::-webkit-scrollbar{width:8px;height:8px}.eloq-thin-scrollbar::-webkit-scrollbar-thumb{background-color:hsl(var(--border));border-radius:9999px}.eloq-thin-scrollbar::-webkit-scrollbar-track{background-color:#0000}.eloq-test-mode-stripe{background:repeating-linear-gradient(-45deg,#f6e05e,#f6e05e 10px,#000 10px 20px)}.eloq-thinking-shimmer{--eloq-thinking-base:#9ca3af;--eloq-thinking-highlight:#4b5563;background:linear-gradient(90deg,var(--eloq-thinking-base) 0%,var(--eloq-thinking-base) 35%,var(--eloq-thinking-highlight) 50%,var(--eloq-thinking-base) 65%,var(--eloq-thinking-base) 100%);color:#0000;background-size:200% 100%;-webkit-background-clip:text;background-clip:text}.dark .eloq-thinking-shimmer{--eloq-thinking-base:#6b7280;--eloq-thinking-highlight:#e5e7eb}@media(prefers-reduced-motion:reduce){.eloq-thinking-shimmer{color:var(--eloq-thinking-base);background:0 0}}@property --eloq-aura-angle{syntax:"<angle>";inherits:false;initial-value:0deg}.eloq-aura{--eloq-aura-strong:#9e9e9e;--eloq-aura-soft:#d1d1d1;background:conic-gradient(from var(--eloq-aura-angle),var(--eloq-aura-strong),var(--eloq-aura-soft),var(--eloq-aura-strong));border-radius:9999px;padding:2px;animation:2.6s linear infinite eloq-aura-spin;position:relative}@keyframes eloq-aura-spin{to{--eloq-aura-angle:360deg}}.eloq-aura-shine{border-radius:inherit;pointer-events:none;position:absolute;inset:0;overflow:hidden}.eloq-aura-shine:after{content:"";background:linear-gradient(90deg,#0000,#fffc,#0000);width:18%;position:absolute;top:-20%;bottom:-20%;left:0;transform:translate(-200%)skew(-20deg)}.eloq-aura-shine--active:after{animation:1.1s ease-in-out both eloq-aura-shine-sweep}@keyframes eloq-aura-shine-sweep{0%{transform:translate(-200%)skew(-20deg)}to{transform:translate(700%)skew(-20deg)}}@media(prefers-reduced-motion:reduce){.eloq-aura{animation:none}.eloq-aura-shine:after,.eloq-aura-shine--active:after{opacity:0;animation:none}}@keyframes panel-in{0%{opacity:0;transform:scale(.05)}to{opacity:1;transform:scale(1)}}@keyframes thinking-dot{0%,60%,to{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@keyframes thinking-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes panel-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.05)}}@keyframes message-in{0%{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:translateY(0)}}@keyframes slide-up-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}', Wt = ".eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}";
|
|
36
|
+
const Le = '/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--eloq-aura-angle:0deg}}}@layer theme{:root,:host{--eloq-font-sans:system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--eloq-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--eloq-color-red-50:oklch(97.1% .013 17.38);--eloq-color-red-200:oklch(88.5% .062 18.334);--eloq-color-red-400:oklch(70.4% .191 22.216);--eloq-color-red-500:oklch(63.7% .237 25.331);--eloq-color-red-800:oklch(44.4% .177 26.899);--eloq-color-amber-50:oklch(98.7% .022 95.277);--eloq-color-amber-200:oklch(92.4% .12 95.746);--eloq-color-amber-400:oklch(82.8% .189 84.429);--eloq-color-amber-500:oklch(76.9% .188 70.08);--eloq-color-amber-800:oklch(47.3% .137 46.201);--eloq-color-yellow-400:oklch(85.2% .199 91.936);--eloq-color-green-50:oklch(98.2% .018 155.826);--eloq-color-green-200:oklch(92.5% .084 155.995);--eloq-color-green-400:oklch(79.2% .209 151.711);--eloq-color-green-500:oklch(72.3% .219 149.579);--eloq-color-green-800:oklch(44.8% .119 151.328);--eloq-color-blue-50:oklch(97% .014 254.604);--eloq-color-blue-200:oklch(88.2% .059 254.128);--eloq-color-blue-400:oklch(70.7% .165 254.624);--eloq-color-blue-500:oklch(62.3% .214 259.815);--eloq-color-blue-800:oklch(42.4% .199 265.638);--eloq-color-gray-200:oklch(92.8% .006 264.531);--eloq-color-gray-300:oklch(87.2% .01 258.338);--eloq-color-gray-400:oklch(70.7% .022 261.325);--eloq-color-gray-500:oklch(55.1% .027 264.364);--eloq-color-gray-600:oklch(44.6% .03 256.802);--eloq-color-black:#000;--eloq-color-white:#fff;--eloq-spacing:.25rem;--eloq-container-xs:20rem;--eloq-text-xs:.75rem;--eloq-text-xs--line-height:calc(1 / .75);--eloq-text-sm:.875rem;--eloq-text-sm--line-height:calc(1.25 / .875);--eloq-text-base:1rem;--eloq-text-base--line-height: 1.5 ;--eloq-text-2xl:1.5rem;--eloq-text-2xl--line-height:calc(2 / 1.5);--eloq-font-weight-medium:500;--eloq-font-weight-semibold:600;--eloq-tracking-tight:-.025em;--eloq-leading-relaxed:1.625;--eloq-radius-md:calc(var(--radius) - 2px);--eloq-radius-lg:var(--radius);--eloq-radius-xl:.75rem;--eloq-radius-2xl:1rem;--eloq-radius-3xl:1.5rem;--eloq-drop-shadow-lg:0 4px 4px #00000026;--eloq-drop-shadow-xl:0 9px 7px #0000001a;--eloq-ease-out:cubic-bezier(0, 0, .2, 1);--eloq-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--eloq-default-transition-duration:.15s;--eloq-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--eloq-default-font-family:var(--eloq-font-sans);--eloq-default-mono-font-family:var(--eloq-font-mono);--eloq-animate-panel-in:panel-in .35s cubic-bezier(.16, 1, .3, 1) both;--eloq-animate-panel-out:panel-out .25s cubic-bezier(.4, 0, 1, 1) both;--eloq-animate-thinking-dot:thinking-dot 1.2s ease-in-out infinite;--eloq-animate-thinking-shimmer:thinking-shimmer 1.8s linear infinite;--eloq-animate-message-in:message-in .3s ease-out both;--eloq-animate-slide-up-in:slide-up-in .3s ease-out both}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--eloq-default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--eloq-default-font-feature-settings,normal);font-variation-settings:var(--eloq-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--eloq-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--eloq-default-mono-font-feature-settings,normal);font-variation-settings:var(--eloq-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--background:0 0% 100%;--foreground:0 0% 3.9%;--card:0 0% 100%;--card-foreground:0 0% 3.9%;--popover:0 0% 100%;--popover-foreground:0 0% 3.9%;--primary:267 56% 46%;--primary-foreground:0 0% 98%;--secondary:0 0% 96.1%;--secondary-foreground:0 0% 9%;--muted:0 0% 96.1%;--muted-foreground:0 0% 45.1%;--accent:0 0% 96.1%;--accent-foreground:0 0% 9%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--cream:37.5 44% 96.5%;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%;--radius:.5rem}.dark{--background:262 50% 10%;--foreground:262 5% 90%;--card:262 50% 10%;--card-foreground:262 5% 90%;--popover:262 50% 5%;--popover-foreground:262 5% 90%;--primary:262 62% 70%;--primary-foreground:0 0% 100%;--primary-dark:262 62% 60%;--secondary:262 30% 30%;--secondary-foreground:0 0% 100%;--secondary-dark:262 30% 20%;--secondary-light:262 30% 40%;--tertiary:267 56% 46%;--tertiary-foreground:0 0% 100%;--tertiary-dark:267 38% 25%;--tertiary-light:263 100% 85%;--muted:224 30% 25%;--muted-foreground:262 5% 90%;--accent:224 30% 25%;--accent-foreground:262 5% 100%;--accent-dark:224 30% 15%;--destructive:0 100% 30%;--destructive-foreground:262 5% 90%;--border:0 0% 30%;--input:262 30% 25%;--ring:262 62% 71%;--cream:257 28% 20%;--radius:.5rem;--sidebar-background:var(--background);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--border);--sidebar-ring:var(--ring)}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}}@layer components;@layer utilities{.eloq\\:pointer-events-none{pointer-events:none}.eloq\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.eloq\\:absolute{position:absolute}.eloq\\:relative{position:relative}.eloq\\:inset-0{inset:0}.eloq\\:inset-x-0{inset-inline:0}.eloq\\:top-0{top:0}.eloq\\:top-0\\.5{top:calc(var(--eloq-spacing) * .5)}.eloq\\:-right-\\[9px\\]{right:-9px}.eloq\\:right-0\\.5{right:calc(var(--eloq-spacing) * .5)}.eloq\\:right-2{right:calc(var(--eloq-spacing) * 2)}.eloq\\:right-16{right:calc(var(--eloq-spacing) * 16)}.eloq\\:bottom-0{bottom:0}.eloq\\:bottom-1{bottom:var(--eloq-spacing)}.eloq\\:bottom-2{bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:bottom-10{bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:left-0{left:0}.eloq\\:left-2{left:calc(var(--eloq-spacing) * 2)}.eloq\\:left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.eloq\\:z-10{z-index:10}.eloq\\:z-20{z-index:20}.eloq\\:z-30{z-index:30}.eloq\\:m-0{margin:0}.eloq\\:m-auto{margin:auto}.eloq\\:mx-1{margin-inline:var(--eloq-spacing)}.eloq\\:mx-auto{margin-inline:auto}.eloq\\:my-2{margin-block:calc(var(--eloq-spacing) * 2)}.eloq\\:my-4{margin-block:calc(var(--eloq-spacing) * 4)}.eloq\\:-mt-2{margin-top:calc(var(--eloq-spacing) * -2)}.eloq\\:-mt-6{margin-top:calc(var(--eloq-spacing) * -6)}.eloq\\:-mt-20{margin-top:calc(var(--eloq-spacing) * -20)}.eloq\\:mt-1{margin-top:var(--eloq-spacing)}.eloq\\:mt-2{margin-top:calc(var(--eloq-spacing) * 2)}.eloq\\:mt-10{margin-top:calc(var(--eloq-spacing) * 10)}.eloq\\:mr-1{margin-right:var(--eloq-spacing)}.eloq\\:mr-\\[2px\\]{margin-right:2px}.eloq\\:mb-1{margin-bottom:var(--eloq-spacing)}.eloq\\:mb-3{margin-bottom:calc(var(--eloq-spacing) * 3)}.eloq\\:mb-4{margin-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:mb-10{margin-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:ml-0{margin-left:0}.eloq\\:ml-1{margin-left:var(--eloq-spacing)}.eloq\\:ml-5{margin-left:calc(var(--eloq-spacing) * 5)}.eloq\\:box-content{box-sizing:content-box}.eloq\\:block{display:block}.eloq\\:flex{display:flex}.eloq\\:hidden{display:none}.eloq\\:inline-flex{display:inline-flex}.eloq\\:aspect-square{aspect-ratio:1}.eloq\\:h-1{height:var(--eloq-spacing)}.eloq\\:h-2\\.5{height:calc(var(--eloq-spacing) * 2.5)}.eloq\\:h-3{height:calc(var(--eloq-spacing) * 3)}.eloq\\:h-4{height:calc(var(--eloq-spacing) * 4)}.eloq\\:h-5{height:calc(var(--eloq-spacing) * 5)}.eloq\\:h-6{height:calc(var(--eloq-spacing) * 6)}.eloq\\:h-8{height:calc(var(--eloq-spacing) * 8)}.eloq\\:h-10{height:calc(var(--eloq-spacing) * 10)}.eloq\\:h-12{height:calc(var(--eloq-spacing) * 12)}.eloq\\:h-14{height:calc(var(--eloq-spacing) * 14)}.eloq\\:h-16{height:calc(var(--eloq-spacing) * 16)}.eloq\\:h-\\[0\\.42em\\]{height:.42em}.eloq\\:h-\\[160px\\]{height:160px}.eloq\\:h-\\[220px\\]{height:220px}.eloq\\:h-\\[560px\\]{height:560px}.eloq\\:h-\\[600px\\]{height:600px}.eloq\\:h-full{height:100%}.eloq\\:max-h-\\[132px\\]{max-height:132px}.eloq\\:min-h-\\[48px\\]{min-height:48px}.eloq\\:min-h-\\[80px\\]{min-height:80px}.eloq\\:w-2\\.5{width:calc(var(--eloq-spacing) * 2.5)}.eloq\\:w-2\\/3{width:66.6667%}.eloq\\:w-3{width:calc(var(--eloq-spacing) * 3)}.eloq\\:w-4{width:calc(var(--eloq-spacing) * 4)}.eloq\\:w-5{width:calc(var(--eloq-spacing) * 5)}.eloq\\:w-6{width:calc(var(--eloq-spacing) * 6)}.eloq\\:w-8{width:calc(var(--eloq-spacing) * 8)}.eloq\\:w-10{width:calc(var(--eloq-spacing) * 10)}.eloq\\:w-12{width:calc(var(--eloq-spacing) * 12)}.eloq\\:w-14{width:calc(var(--eloq-spacing) * 14)}.eloq\\:w-16{width:calc(var(--eloq-spacing) * 16)}.eloq\\:w-24{width:calc(var(--eloq-spacing) * 24)}.eloq\\:w-32{width:calc(var(--eloq-spacing) * 32)}.eloq\\:w-48{width:calc(var(--eloq-spacing) * 48)}.eloq\\:w-\\[0\\.42em\\]{width:.42em}.eloq\\:w-\\[70\\%\\]{width:70%}.eloq\\:w-\\[320px\\]{width:320px}.eloq\\:w-\\[340px\\]{width:340px}.eloq\\:w-\\[348px\\]{width:348px}.eloq\\:w-\\[380px\\]{width:380px}.eloq\\:w-\\[420px\\]{width:420px}.eloq\\:w-full{width:100%}.eloq\\:max-w-\\[75\\%\\]{max-width:75%}.eloq\\:max-w-\\[88\\%\\]{max-width:88%}.eloq\\:max-w-full{max-width:100%}.eloq\\:max-w-xs{max-width:var(--eloq-container-xs)}.eloq\\:min-w-0{min-width:0}.eloq\\:min-w-min{min-width:min-content}.eloq\\:flex-1{flex:1}.eloq\\:flex-none{flex:none}.eloq\\:flex-shrink-0,.eloq\\:shrink-0{flex-shrink:0}.eloq\\:flex-grow{flex-grow:1}.eloq\\:origin-bottom-right{transform-origin:100% 100%}.eloq\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:translate-x-8{--tw-translate-x:calc(var(--eloq-spacing) * 8);translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:-scale-x-100{--tw-scale-x: -100% ;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:scale-\\[0\\.05\\]{scale:.05}.eloq\\:transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.eloq\\:animate-message-in{animation:var(--eloq-animate-message-in)}.eloq\\:animate-panel-in{animation:var(--eloq-animate-panel-in)}.eloq\\:animate-panel-out{animation:var(--eloq-animate-panel-out)}.eloq\\:animate-pulse{animation:var(--eloq-animate-pulse)}.eloq\\:animate-slide-up-in{animation:var(--eloq-animate-slide-up-in)}.eloq\\:animate-thinking-dot{animation:var(--eloq-animate-thinking-dot)}.eloq\\:animate-thinking-shimmer{animation:var(--eloq-animate-thinking-shimmer)}.eloq\\:cursor-default{cursor:default}.eloq\\:cursor-grab{cursor:grab}.eloq\\:cursor-pointer{cursor:pointer}.eloq\\:touch-none{touch-action:none}.eloq\\:resize-none{resize:none}.eloq\\:list-decimal{list-style-type:decimal}.eloq\\:list-disc{list-style-type:disc}.eloq\\:flex-col{flex-direction:column}.eloq\\:flex-row{flex-direction:row}.eloq\\:flex-wrap{flex-wrap:wrap}.eloq\\:items-center{align-items:center}.eloq\\:items-end{align-items:flex-end}.eloq\\:items-start{align-items:flex-start}.eloq\\:justify-between{justify-content:space-between}.eloq\\:justify-center{justify-content:center}.eloq\\:justify-end{justify-content:flex-end}.eloq\\:justify-start{justify-content:flex-start}.eloq\\:gap-1{gap:var(--eloq-spacing)}.eloq\\:gap-1\\.5{gap:calc(var(--eloq-spacing) * 1.5)}.eloq\\:gap-2{gap:calc(var(--eloq-spacing) * 2)}.eloq\\:gap-3{gap:calc(var(--eloq-spacing) * 3)}.eloq\\:gap-\\[0\\.25em\\]{gap:.25em}:where(.eloq\\:space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.eloq\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--eloq-spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--eloq-spacing) * var(--tw-space-x-reverse));margin-inline-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}.eloq\\:self-end{align-self:flex-end}.eloq\\:self-stretch{align-self:stretch}.eloq\\:overflow-hidden{overflow:hidden}.eloq\\:overflow-x-auto{overflow-x:auto}.eloq\\:rounded-2xl{border-radius:var(--eloq-radius-2xl)}.eloq\\:rounded-3xl{border-radius:var(--eloq-radius-3xl)}.eloq\\:rounded-\\[inherit\\]{border-radius:inherit}.eloq\\:rounded-full{border-radius:3.40282e38px}.eloq\\:rounded-lg{border-radius:var(--eloq-radius-lg)}.eloq\\:rounded-md{border-radius:var(--eloq-radius-md)}.eloq\\:rounded-none{border-radius:0}.eloq\\:rounded-xl{border-radius:var(--eloq-radius-xl)}.eloq\\:rounded-t-2xl{border-top-left-radius:var(--eloq-radius-2xl);border-top-right-radius:var(--eloq-radius-2xl)}.eloq\\:border{border-style:var(--tw-border-style);border-width:1px}.eloq\\:border-0{border-style:var(--tw-border-style);border-width:0}.eloq\\:border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.eloq\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.eloq\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.eloq\\:border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.eloq\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.eloq\\:border-amber-400{border-color:var(--eloq-color-amber-400)}.eloq\\:border-blue-500{border-color:var(--eloq-color-blue-500)}.eloq\\:border-border{border-color:hsl(var(--border))}.eloq\\:border-green-500{border-color:var(--eloq-color-green-500)}.eloq\\:border-input{border-color:hsl(var(--input))}.eloq\\:border-red-500{border-color:var(--eloq-color-red-500)}.eloq\\:border-t-transparent{border-top-color:#0000}.eloq\\:border-l-transparent{border-left-color:#0000}.eloq\\:bg-\\[\\#0a0a0a\\]{background-color:#0a0a0a}.eloq\\:bg-\\[\\#000\\]{background-color:#000}.eloq\\:bg-\\[\\#fff\\]{background-color:#fff}.eloq\\:bg-amber-50{background-color:var(--eloq-color-amber-50)}.eloq\\:bg-background{background-color:hsl(var(--background))}.eloq\\:bg-black\\/20{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/20{background-color:color-mix(in oklab,var(--eloq-color-black) 20%,transparent)}}.eloq\\:bg-black\\/60{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/60{background-color:color-mix(in oklab,var(--eloq-color-black) 60%,transparent)}}.eloq\\:bg-blue-50{background-color:var(--eloq-color-blue-50)}.eloq\\:bg-border{background-color:hsl(var(--border))}.eloq\\:bg-card{background-color:hsl(var(--card))}.eloq\\:bg-cream{background-color:hsl(var(--cream))}.eloq\\:bg-gray-400{background-color:var(--eloq-color-gray-400)}.eloq\\:bg-green-50{background-color:var(--eloq-color-green-50)}.eloq\\:bg-muted{background-color:hsl(var(--muted))}.eloq\\:bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.eloq\\:bg-primary{background-color:hsl(var(--primary))}.eloq\\:bg-red-50{background-color:var(--eloq-color-red-50)}.eloq\\:bg-white,.eloq\\:bg-white\\/20{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-white\\/20{background-color:color-mix(in oklab,var(--eloq-color-white) 20%,transparent)}}.eloq\\:fill-none{fill:none}.eloq\\:fill-yellow-400{fill:var(--eloq-color-yellow-400)}.eloq\\:object-contain{object-fit:contain}.eloq\\:object-cover{object-fit:cover}.eloq\\:p-0{padding:0}.eloq\\:p-0\\.5{padding:calc(var(--eloq-spacing) * .5)}.eloq\\:p-1{padding:var(--eloq-spacing)}.eloq\\:p-1\\.5{padding:calc(var(--eloq-spacing) * 1.5)}.eloq\\:p-2{padding:calc(var(--eloq-spacing) * 2)}.eloq\\:p-3{padding:calc(var(--eloq-spacing) * 3)}.eloq\\:p-4{padding:calc(var(--eloq-spacing) * 4)}.eloq\\:p-6{padding:calc(var(--eloq-spacing) * 6)}.eloq\\:p-\\[1px\\]{padding:1px}.eloq\\:px-0{padding-inline:0}.eloq\\:px-2{padding-inline:calc(var(--eloq-spacing) * 2)}.eloq\\:px-3{padding-inline:calc(var(--eloq-spacing) * 3)}.eloq\\:px-4{padding-inline:calc(var(--eloq-spacing) * 4)}.eloq\\:px-5{padding-inline:calc(var(--eloq-spacing) * 5)}.eloq\\:px-\\[12px\\]{padding-inline:12px}.eloq\\:px-\\[16px\\]{padding-inline:16px}.eloq\\:py-1{padding-block:var(--eloq-spacing)}.eloq\\:py-1\\.5{padding-block:calc(var(--eloq-spacing) * 1.5)}.eloq\\:py-2{padding-block:calc(var(--eloq-spacing) * 2)}.eloq\\:py-3{padding-block:calc(var(--eloq-spacing) * 3)}.eloq\\:py-3\\.5{padding-block:calc(var(--eloq-spacing) * 3.5)}.eloq\\:py-\\[8px\\]{padding-block:8px}.eloq\\:py-\\[12px\\]{padding-block:12px}.eloq\\:pt-0{padding-top:0}.eloq\\:pt-2{padding-top:calc(var(--eloq-spacing) * 2)}.eloq\\:pt-4{padding-top:calc(var(--eloq-spacing) * 4)}.eloq\\:pt-5{padding-top:calc(var(--eloq-spacing) * 5)}.eloq\\:pt-6{padding-top:calc(var(--eloq-spacing) * 6)}.eloq\\:pt-10{padding-top:calc(var(--eloq-spacing) * 10)}.eloq\\:pt-24{padding-top:calc(var(--eloq-spacing) * 24)}.eloq\\:pr-2{padding-right:calc(var(--eloq-spacing) * 2)}.eloq\\:pr-4{padding-right:calc(var(--eloq-spacing) * 4)}.eloq\\:pr-12{padding-right:calc(var(--eloq-spacing) * 12)}.eloq\\:pb-2{padding-bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:pb-4{padding-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:pb-10{padding-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:pb-14{padding-bottom:calc(var(--eloq-spacing) * 14)}.eloq\\:pl-3{padding-left:calc(var(--eloq-spacing) * 3)}.eloq\\:pl-4{padding-left:calc(var(--eloq-spacing) * 4)}.eloq\\:pl-11{padding-left:calc(var(--eloq-spacing) * 11)}.eloq\\:text-center{text-align:center}.eloq\\:text-left{text-align:left}.eloq\\:text-2xl{font-size:var(--eloq-text-2xl);line-height:var(--tw-leading,var(--eloq-text-2xl--line-height))}.eloq\\:text-base{font-size:var(--eloq-text-base);line-height:var(--tw-leading,var(--eloq-text-base--line-height))}.eloq\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}.eloq\\:text-xs{font-size:var(--eloq-text-xs);line-height:var(--tw-leading,var(--eloq-text-xs--line-height))}.eloq\\:text-\\[10px\\]{font-size:10px}.eloq\\:leading-5{--tw-leading:calc(var(--eloq-spacing) * 5);line-height:calc(var(--eloq-spacing) * 5)}.eloq\\:leading-none{--tw-leading:1;line-height:1}.eloq\\:leading-relaxed{--tw-leading:var(--eloq-leading-relaxed);line-height:var(--eloq-leading-relaxed)}.eloq\\:font-medium{--tw-font-weight:var(--eloq-font-weight-medium);font-weight:var(--eloq-font-weight-medium)}.eloq\\:font-semibold{--tw-font-weight:var(--eloq-font-weight-semibold);font-weight:var(--eloq-font-weight-semibold)}.eloq\\:tracking-tight{--tw-tracking:var(--eloq-tracking-tight);letter-spacing:var(--eloq-tracking-tight)}.eloq\\:whitespace-nowrap{white-space:nowrap}.eloq\\:text-\\[\\#000\\]{color:#000}.eloq\\:text-\\[\\#fff\\]{color:#fff}.eloq\\:text-amber-500{color:var(--eloq-color-amber-500)}.eloq\\:text-amber-800{color:var(--eloq-color-amber-800)}.eloq\\:text-blue-500{color:var(--eloq-color-blue-500)}.eloq\\:text-blue-800{color:var(--eloq-color-blue-800)}.eloq\\:text-card-foreground{color:hsl(var(--card-foreground))}.eloq\\:text-destructive{color:hsl(var(--destructive))}.eloq\\:text-foreground{color:hsl(var(--foreground))}.eloq\\:text-gray-300{color:var(--eloq-color-gray-300)}.eloq\\:text-gray-400{color:var(--eloq-color-gray-400)}.eloq\\:text-gray-500{color:var(--eloq-color-gray-500)}.eloq\\:text-green-500{color:var(--eloq-color-green-500)}.eloq\\:text-green-800{color:var(--eloq-color-green-800)}.eloq\\:text-muted{color:hsl(var(--muted))}.eloq\\:text-muted-foreground{color:hsl(var(--muted-foreground))}.eloq\\:text-primary{color:hsl(var(--primary))}.eloq\\:text-primary-foreground{color:hsl(var(--primary-foreground))}.eloq\\:text-red-500{color:var(--eloq-color-red-500)}.eloq\\:text-red-800{color:var(--eloq-color-red-800)}.eloq\\:text-white{color:var(--eloq-color-white)}.eloq\\:text-yellow-400{color:var(--eloq-color-yellow-400)}.eloq\\:italic{font-style:italic}.eloq\\:underline{text-decoration-line:underline}.eloq\\:opacity-0{opacity:0}.eloq\\:opacity-50{opacity:.5}.eloq\\:opacity-70{opacity:.7}.eloq\\:opacity-75{opacity:.75}.eloq\\:opacity-100{opacity:1}.eloq\\:shadow-\\[0_-8px_24px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow:0 -8px 24px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_0_4px_0_rgba\\(0\\,0\\,0\\,0\\.20\\)\\]{--tw-shadow:0 0 4px 0 var(--tw-shadow-color,#0003);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_3px_4px_-2px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0 3px 4px -2px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.eloq\\:outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:outline-offset-2{outline-offset:2px}.eloq\\:outline-transparent{outline-color:#0000}.eloq\\:drop-shadow-lg{--tw-drop-shadow-size:drop-shadow(0 4px 4px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-lg));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.eloq\\:transition-\\[outline-color\\]{transition-property:outline-color;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.eloq\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.eloq\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.eloq\\:duration-500{--tw-duration:.5s;transition-duration:.5s}.eloq\\:ease-out{--tw-ease:var(--eloq-ease-out);transition-timing-function:var(--eloq-ease-out)}.eloq\\:select-none{-webkit-user-select:none;user-select:none}.eloq\\:placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.eloq\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.eloq\\:hover\\:bg-black\\/5:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 5%,transparent)}}.eloq\\:hover\\:bg-black\\/80:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/80:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 80%,transparent)}}.eloq\\:hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.eloq\\:hover\\:text-foreground:hover{color:hsl(var(--foreground))}.eloq\\:hover\\:text-gray-600:hover{color:var(--eloq-color-gray-600)}.eloq\\:hover\\:text-primary:hover{color:hsl(var(--primary))}.eloq\\:hover\\:opacity-80:hover{opacity:.8}.eloq\\:hover\\:opacity-90:hover{opacity:.9}.eloq\\:hover\\:opacity-100:hover{opacity:1}.eloq\\:hover\\:drop-shadow-xl:hover{--tw-drop-shadow-size:drop-shadow(0 9px 7px var(--tw-drop-shadow-color,#0000001a));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}.eloq\\:focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-muted:focus-visible{--tw-ring-color:hsl(var(--muted))}.eloq\\:focus-visible\\:ring-primary:focus-visible{--tw-ring-color:hsl(var(--primary))}.eloq\\:focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.eloq\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.eloq\\:active\\:cursor-grabbing:active{cursor:grabbing}.eloq\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.eloq\\:disabled\\:opacity-50:disabled{opacity:.5}@media(prefers-reduced-motion:reduce){.eloq\\:motion-reduce\\:animate-none{animation:none}.eloq\\:motion-reduce\\:opacity-70{opacity:.7}}@media(min-width:40rem){.eloq\\:sm\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}@media(min-width:48rem){.eloq\\:md\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}.eloq\\:dark\\:border:is(.dark *){border-style:var(--tw-border-style);border-width:1px}.eloq\\:dark\\:border-b:is(.dark *){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.eloq\\:dark\\:border-border:is(.dark *){border-color:hsl(var(--border))}.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:var(--eloq-color-amber-400)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-amber-400) 10%,transparent)}}.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:var(--eloq-color-blue-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-blue-500) 10%,transparent)}}.eloq\\:dark\\:bg-card:is(.dark *){background-color:hsl(var(--card))}.eloq\\:dark\\:bg-gray-200:is(.dark *){background-color:var(--eloq-color-gray-200)}.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:var(--eloq-color-green-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-green-500) 10%,transparent)}}.eloq\\:dark\\:bg-muted:is(.dark *){background-color:hsl(var(--muted))}.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:var(--eloq-color-red-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-red-500) 10%,transparent)}}.eloq\\:dark\\:text-amber-200:is(.dark *){color:var(--eloq-color-amber-200)}.eloq\\:dark\\:text-amber-400:is(.dark *){color:var(--eloq-color-amber-400)}.eloq\\:dark\\:text-blue-200:is(.dark *){color:var(--eloq-color-blue-200)}.eloq\\:dark\\:text-blue-400:is(.dark *){color:var(--eloq-color-blue-400)}.eloq\\:dark\\:text-gray-500:is(.dark *){color:var(--eloq-color-gray-500)}.eloq\\:dark\\:text-green-200:is(.dark *){color:var(--eloq-color-green-200)}.eloq\\:dark\\:text-green-400:is(.dark *){color:var(--eloq-color-green-400)}.eloq\\:dark\\:text-muted-foreground:is(.dark *),.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:color-mix(in oklab,hsl(var(--muted-foreground)) 50%,transparent)}}.eloq\\:dark\\:text-red-200:is(.dark *){color:var(--eloq-color-red-200)}.eloq\\:dark\\:text-red-400:is(.dark *){color:var(--eloq-color-red-400)}.eloq\\:dark\\:shadow-none:is(.dark *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:color-mix(in oklab,var(--eloq-color-white) 10%,transparent)}}.eloq\\:dark\\:hover\\:text-gray-300:is(.dark *):hover{color:var(--eloq-color-gray-300)}.eloq\\:dark\\:hover\\:text-primary:is(.dark *):hover{color:hsl(var(--primary))}}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}}body{background-color:#0000}.eloquent-chat{font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.collapse{visibility:unset!important}.eloq-wrap-anywhere{overflow-wrap:anywhere}.eloq-thin-scrollbar{scrollbar-width:thin;scrollbar-color:hsl(var(--border)) transparent}.eloq-thin-scrollbar::-webkit-scrollbar{width:8px;height:8px}.eloq-thin-scrollbar::-webkit-scrollbar-thumb{background-color:hsl(var(--border));border-radius:9999px}.eloq-thin-scrollbar::-webkit-scrollbar-track{background-color:#0000}.eloq-test-mode-stripe{background:repeating-linear-gradient(-45deg,#f6e05e,#f6e05e 10px,#000 10px 20px)}.eloq-thinking-shimmer{--eloq-thinking-base:#9ca3af;--eloq-thinking-highlight:#4b5563;background:linear-gradient(90deg,var(--eloq-thinking-base) 0%,var(--eloq-thinking-base) 35%,var(--eloq-thinking-highlight) 50%,var(--eloq-thinking-base) 65%,var(--eloq-thinking-base) 100%);color:#0000;background-size:200% 100%;-webkit-background-clip:text;background-clip:text}.dark .eloq-thinking-shimmer{--eloq-thinking-base:#6b7280;--eloq-thinking-highlight:#e5e7eb}@media(prefers-reduced-motion:reduce){.eloq-thinking-shimmer{color:var(--eloq-thinking-base);background:0 0}}@property --eloq-aura-angle{syntax:"<angle>";inherits:false;initial-value:0deg}.eloq-aura{--eloq-aura-strong:#9e9e9e;--eloq-aura-soft:#d1d1d1;background:conic-gradient(from var(--eloq-aura-angle),var(--eloq-aura-strong),var(--eloq-aura-soft),var(--eloq-aura-strong));border-radius:9999px;padding:2px;animation:2.6s linear infinite eloq-aura-spin;position:relative}@keyframes eloq-aura-spin{to{--eloq-aura-angle:360deg}}.eloq-aura-shine{border-radius:inherit;pointer-events:none;position:absolute;inset:0;overflow:hidden}.eloq-aura-shine:after{content:"";background:linear-gradient(90deg,#0000,#fffc,#0000);width:18%;position:absolute;top:-20%;bottom:-20%;left:0;transform:translate(-200%)skew(-20deg)}.eloq-aura-shine--active:after{animation:1.1s ease-in-out both eloq-aura-shine-sweep}@keyframes eloq-aura-shine-sweep{0%{transform:translate(-200%)skew(-20deg)}to{transform:translate(700%)skew(-20deg)}}@media(prefers-reduced-motion:reduce){.eloq-aura{animation:none}.eloq-aura-shine:after,.eloq-aura-shine--active:after{opacity:0;animation:none}}@keyframes panel-in{0%{opacity:0;transform:scale(.05)}to{opacity:1;transform:scale(1)}}@keyframes thinking-dot{0%,60%,to{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@keyframes thinking-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes panel-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.05)}}@keyframes message-in{0%{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:translateY(0)}}@keyframes slide-up-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@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}}', Wt = ".eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}";
|
|
37
37
|
function Ft({
|
|
38
38
|
toggleBubble: t,
|
|
39
39
|
isDarkMode: e = !1
|
|
@@ -42,7 +42,7 @@ function Ft({
|
|
|
42
42
|
return /* @__PURE__ */ q("div", { className: "eloq:absolute eloq:inset-0 eloq:m-auto eloq:flex eloq:items-center eloq:justify-center eloq:overflow-hidden", children: /* @__PURE__ */ q(
|
|
43
43
|
"div",
|
|
44
44
|
{
|
|
45
|
-
className:
|
|
45
|
+
className: Xe(
|
|
46
46
|
"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",
|
|
47
47
|
// Inverted in dark mode: a black launcher disappears on dark pages.
|
|
48
48
|
e ? "eloq:bg-[#fff] eloq:text-[#000]" : "eloq:bg-[#000] eloq:text-[#fff]"
|
|
@@ -53,7 +53,7 @@ function Ft({
|
|
|
53
53
|
) });
|
|
54
54
|
}
|
|
55
55
|
function Ze({ children: t, head: e, ...o }) {
|
|
56
|
-
const [r, n] =
|
|
56
|
+
const [r, n] = C(null), i = r?.contentWindow?.document?.head, d = r?.contentWindow?.document?.body;
|
|
57
57
|
return /* @__PURE__ */ ze("iframe", { ...o, ref: n, children: [
|
|
58
58
|
i && Je(e, i),
|
|
59
59
|
d && Je(t, d)
|
|
@@ -62,28 +62,28 @@ function Ze({ children: t, head: e, ...o }) {
|
|
|
62
62
|
function Jt({ children: t, container: e }) {
|
|
63
63
|
return Je(t, e);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Gt({
|
|
66
66
|
message: t,
|
|
67
67
|
isVisible: e,
|
|
68
68
|
onDismiss: o,
|
|
69
69
|
onMessageClick: r,
|
|
70
70
|
autoHideDelay: n
|
|
71
71
|
}) {
|
|
72
|
-
const [i, d] =
|
|
73
|
-
return
|
|
72
|
+
const [i, d] = C(!1), [s, c] = C("entering"), a = St();
|
|
73
|
+
return H(() => {
|
|
74
74
|
if (e) {
|
|
75
75
|
d(!0), c("entering");
|
|
76
76
|
const l = setTimeout(() => {
|
|
77
77
|
c("visible");
|
|
78
78
|
}, 50);
|
|
79
|
-
let
|
|
79
|
+
let f;
|
|
80
80
|
const u = setTimeout(() => {
|
|
81
|
-
c("exiting"),
|
|
81
|
+
c("exiting"), f = setTimeout(() => {
|
|
82
82
|
o();
|
|
83
83
|
}, 300);
|
|
84
84
|
}, n);
|
|
85
85
|
return () => {
|
|
86
|
-
clearTimeout(l), clearTimeout(u), clearTimeout(
|
|
86
|
+
clearTimeout(l), clearTimeout(u), clearTimeout(f);
|
|
87
87
|
};
|
|
88
88
|
} else {
|
|
89
89
|
c("exiting");
|
|
@@ -95,7 +95,7 @@ function Yt({
|
|
|
95
95
|
}, [e, o, n]), i ? /* @__PURE__ */ q(
|
|
96
96
|
"div",
|
|
97
97
|
{
|
|
98
|
-
className:
|
|
98
|
+
className: Xe(
|
|
99
99
|
// right-16 leaves a ~7px gap between the tail tip and the launcher
|
|
100
100
|
// circle's edge — the tail points at it without sliding underneath.
|
|
101
101
|
"eloq:absolute eloq:right-16 eloq:bottom-0 eloq:max-w-xs eloq:transform eloq:transition-all eloq:duration-500 eloq:ease-out",
|
|
@@ -179,12 +179,12 @@ function it(t) {
|
|
|
179
179
|
const e = document.cookie.match(new RegExp(`(?:^|; )${t}=([^;]*)`));
|
|
180
180
|
return e ? decodeURIComponent(e[1]) : null;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Xt(t, e, o) {
|
|
183
183
|
if (typeof document > "u") return;
|
|
184
184
|
const r = new Date(Date.now() + o * 60 * 60 * 1e3).toUTCString();
|
|
185
185
|
document.cookie = `${t}=${encodeURIComponent(e)}; expires=${r}; path=/; SameSite=Lax`;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Yt(t) {
|
|
188
188
|
typeof document > "u" || (document.cookie = `${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`);
|
|
189
189
|
}
|
|
190
190
|
function Qt({
|
|
@@ -256,14 +256,14 @@ function Qe({ appId: t }) {
|
|
|
256
256
|
return console.error("Error checking conversation expiration:", a), !0;
|
|
257
257
|
}
|
|
258
258
|
}, [r]), i = v(
|
|
259
|
-
(a, l,
|
|
259
|
+
(a, l, f, u, h) => {
|
|
260
260
|
try {
|
|
261
261
|
if (!_e) return;
|
|
262
262
|
const p = {
|
|
263
263
|
conversationId: a,
|
|
264
264
|
userId: l,
|
|
265
265
|
deviceId: u,
|
|
266
|
-
messages: ro(
|
|
266
|
+
messages: ro(f),
|
|
267
267
|
lastActivity: Date.now(),
|
|
268
268
|
chatToken: h
|
|
269
269
|
};
|
|
@@ -358,9 +358,9 @@ function po(t) {
|
|
|
358
358
|
channel: r,
|
|
359
359
|
onEvent: n,
|
|
360
360
|
onDisconnect: i,
|
|
361
|
-
createWebSocket: d = (l,
|
|
361
|
+
createWebSocket: d = (l, f) => new WebSocket(l, f)
|
|
362
362
|
} = t, s = uo(e, o), c = co(e), a = crypto.randomUUID();
|
|
363
|
-
return new Promise((l,
|
|
363
|
+
return new Promise((l, f) => {
|
|
364
364
|
let u;
|
|
365
365
|
try {
|
|
366
366
|
u = d(c, [
|
|
@@ -368,30 +368,30 @@ function po(t) {
|
|
|
368
368
|
ho(s)
|
|
369
369
|
]);
|
|
370
370
|
} catch (w) {
|
|
371
|
-
|
|
371
|
+
f(w instanceof Error ? w : new Error(String(w)));
|
|
372
372
|
return;
|
|
373
373
|
}
|
|
374
|
-
let h = "connecting", p = !1,
|
|
375
|
-
const
|
|
376
|
-
b && (clearTimeout(b), b = null),
|
|
374
|
+
let h = "connecting", p = !1, g = io, x = Date.now(), b = null, z = null;
|
|
375
|
+
const A = () => {
|
|
376
|
+
b && (clearTimeout(b), b = null), z && (clearInterval(z), z = null);
|
|
377
377
|
}, _ = (w) => {
|
|
378
378
|
if (h === "closed") return;
|
|
379
379
|
const y = h === "established";
|
|
380
|
-
h = "closed",
|
|
380
|
+
h = "closed", A();
|
|
381
381
|
try {
|
|
382
382
|
u.close();
|
|
383
383
|
} catch {
|
|
384
384
|
}
|
|
385
|
-
p || (y ? i(w) :
|
|
385
|
+
p || (y ? i(w) : f(new Error(w)));
|
|
386
386
|
}, I = (w) => {
|
|
387
387
|
u.readyState === lo && u.send(JSON.stringify(w));
|
|
388
|
-
},
|
|
388
|
+
}, R = (w) => {
|
|
389
389
|
b && clearTimeout(b), b = setTimeout(() => {
|
|
390
390
|
_(`Timed out waiting for ${w}`);
|
|
391
391
|
}, ao);
|
|
392
392
|
};
|
|
393
393
|
u.addEventListener("open", () => {
|
|
394
|
-
h !== "closed" && (I({ type: "connection_init" }),
|
|
394
|
+
h !== "closed" && (I({ type: "connection_init" }), R("connection_ack"));
|
|
395
395
|
}), u.addEventListener("message", (w) => {
|
|
396
396
|
if (h === "closed") return;
|
|
397
397
|
let y;
|
|
@@ -404,12 +404,12 @@ function po(t) {
|
|
|
404
404
|
switch (y.type) {
|
|
405
405
|
case "connection_ack": {
|
|
406
406
|
if (h !== "connecting") return;
|
|
407
|
-
h = "subscribing", typeof y.connectionTimeoutMs == "number" && (
|
|
407
|
+
h = "subscribing", typeof y.connectionTimeoutMs == "number" && (g = y.connectionTimeoutMs), I({
|
|
408
408
|
type: "subscribe",
|
|
409
409
|
id: a,
|
|
410
410
|
channel: r,
|
|
411
411
|
authorization: s
|
|
412
|
-
}),
|
|
412
|
+
}), R("subscribe_success");
|
|
413
413
|
return;
|
|
414
414
|
}
|
|
415
415
|
case "connection_error": {
|
|
@@ -418,8 +418,8 @@ function po(t) {
|
|
|
418
418
|
}
|
|
419
419
|
case "subscribe_success": {
|
|
420
420
|
if (h !== "subscribing" || y.id !== a) return;
|
|
421
|
-
h = "established", b && (clearTimeout(b), b = null), x = Date.now(),
|
|
422
|
-
Date.now() - x >
|
|
421
|
+
h = "established", b && (clearTimeout(b), b = null), x = Date.now(), z = setInterval(() => {
|
|
422
|
+
Date.now() - x > g && _("Keep-alive timeout");
|
|
423
423
|
}, so), l({
|
|
424
424
|
close: () => {
|
|
425
425
|
p = !0, I({ type: "unsubscribe", id: a }), _("Closed by client");
|
|
@@ -439,17 +439,17 @@ function po(t) {
|
|
|
439
439
|
case "data": {
|
|
440
440
|
if (y.id !== a) return;
|
|
441
441
|
x = Date.now();
|
|
442
|
-
let
|
|
443
|
-
if (typeof
|
|
442
|
+
let P = y.event;
|
|
443
|
+
if (typeof P == "string")
|
|
444
444
|
try {
|
|
445
|
-
|
|
445
|
+
P = JSON.parse(P);
|
|
446
446
|
} catch {
|
|
447
447
|
console.warn(
|
|
448
448
|
"[EloquentChatSDK] Unparseable realtime event ignored"
|
|
449
449
|
);
|
|
450
450
|
return;
|
|
451
451
|
}
|
|
452
|
-
n(
|
|
452
|
+
n(P);
|
|
453
453
|
return;
|
|
454
454
|
}
|
|
455
455
|
case "broadcast_error": {
|
|
@@ -469,10 +469,10 @@ function po(t) {
|
|
|
469
469
|
});
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function fo(t, e) {
|
|
473
473
|
return typeof e == "bigint" ? e.toString() : e;
|
|
474
474
|
}
|
|
475
|
-
class
|
|
475
|
+
class go {
|
|
476
476
|
constructor(e) {
|
|
477
477
|
this._getter = e, this._value = void 0;
|
|
478
478
|
}
|
|
@@ -482,7 +482,7 @@ class fo {
|
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
function mo(t) {
|
|
485
|
-
return new
|
|
485
|
+
return new go(t);
|
|
486
486
|
}
|
|
487
487
|
function mt(t) {
|
|
488
488
|
const e = t.startsWith("^") ? 1 : 0, o = t.endsWith("$") ? t.length - 1 : t.length;
|
|
@@ -498,17 +498,17 @@ function bo(t, e, o) {
|
|
|
498
498
|
}
|
|
499
499
|
const bt = "captureStackTrace" in Error ? Error.captureStackTrace : (...t) => {
|
|
500
500
|
};
|
|
501
|
-
function
|
|
501
|
+
function Ge(t) {
|
|
502
502
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
503
503
|
}
|
|
504
504
|
function vo(t) {
|
|
505
|
-
if (
|
|
505
|
+
if (Ge(t) === !1)
|
|
506
506
|
return !1;
|
|
507
507
|
const e = t.constructor;
|
|
508
508
|
if (e === void 0 || typeof e != "function")
|
|
509
509
|
return !0;
|
|
510
510
|
const o = e.prototype;
|
|
511
|
-
return !(
|
|
511
|
+
return !(Ge(o) === !1 || Object.prototype.hasOwnProperty.call(o, "isPrototypeOf") === !1);
|
|
512
512
|
}
|
|
513
513
|
function st(t) {
|
|
514
514
|
return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
@@ -517,7 +517,7 @@ function wo(t, e, o) {
|
|
|
517
517
|
const r = new t._zod.constr(e ?? t._zod.def);
|
|
518
518
|
return (!e || o?.parent) && (r._zod.parent = t), r;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function be(t) {
|
|
521
521
|
const e = t;
|
|
522
522
|
if (!e)
|
|
523
523
|
return {};
|
|
@@ -533,7 +533,7 @@ function me(t) {
|
|
|
533
533
|
function qo(t) {
|
|
534
534
|
return Object.keys(t).filter((e) => t[e]._zod.optin !== void 0 && t[e]._zod.optout === "optional");
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function me(t, e = 0) {
|
|
537
537
|
if (t.aborted === !0)
|
|
538
538
|
return !0;
|
|
539
539
|
for (let o = e; o < t.issues.length; o++)
|
|
@@ -563,7 +563,7 @@ function lt(t, e, o) {
|
|
|
563
563
|
for (let n = e; n < t.length; n++)
|
|
564
564
|
(r = t[n]).schema ?? (r.schema = o);
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function ve(t, e, o) {
|
|
567
567
|
var r;
|
|
568
568
|
const n = t.inst?._zod?.traits;
|
|
569
569
|
n?.has("$ZodType") && (n.has("$ZodCheck") ? (r = t).schema ?? (r.schema = t.inst) : t.schema = t.inst);
|
|
@@ -665,10 +665,10 @@ function zo(t) {
|
|
|
665
665
|
}
|
|
666
666
|
return new t();
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function V(t, e, o, r) {
|
|
669
669
|
const n = {};
|
|
670
670
|
function i(u) {
|
|
671
|
-
this.def = u, this.constr =
|
|
671
|
+
this.def = u, this.constr = f, this.traits = /* @__PURE__ */ new Set();
|
|
672
672
|
}
|
|
673
673
|
i.prototype = n;
|
|
674
674
|
const d = o, s = d && /* @__PURE__ */ new WeakSet();
|
|
@@ -685,22 +685,22 @@ function K(t, e, o, r) {
|
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
687
|
if (u._zod.traits.add(t), e(u, h), s) {
|
|
688
|
-
const
|
|
689
|
-
let b =
|
|
688
|
+
const g = Object.getPrototypeOf(u), x = u._zod.constr.prototype;
|
|
689
|
+
let b = g;
|
|
690
690
|
for (; b && b !== x; )
|
|
691
691
|
b = Object.getPrototypeOf(b);
|
|
692
|
-
const
|
|
693
|
-
s.has(
|
|
692
|
+
const z = b ?? g;
|
|
693
|
+
s.has(z) || (s.add(z), xo(z, d));
|
|
694
694
|
}
|
|
695
|
-
const p =
|
|
696
|
-
for (const
|
|
697
|
-
Object.prototype.hasOwnProperty.call(p,
|
|
695
|
+
const p = f.prototype;
|
|
696
|
+
for (const g in p)
|
|
697
|
+
Object.prototype.hasOwnProperty.call(p, g) && (g in u || (u[g] = p[g].bind(u)));
|
|
698
698
|
}
|
|
699
699
|
const a = r?.Parent ?? Object;
|
|
700
700
|
class l extends a {
|
|
701
701
|
}
|
|
702
702
|
Object.defineProperty(l, "name", { value: t });
|
|
703
|
-
function
|
|
703
|
+
function f(u) {
|
|
704
704
|
const h = r?.Parent ? zo(l) : this;
|
|
705
705
|
c(h, u);
|
|
706
706
|
const p = h._zod.deferred;
|
|
@@ -709,12 +709,12 @@ function K(t, e, o, r) {
|
|
|
709
709
|
x();
|
|
710
710
|
h._zod.deferred = void 0;
|
|
711
711
|
}
|
|
712
|
-
const
|
|
713
|
-
return
|
|
712
|
+
const g = globalThis.__zod_globalConfig?.postProcessor;
|
|
713
|
+
return g && g(h), h;
|
|
714
714
|
}
|
|
715
|
-
return Object.defineProperty(
|
|
715
|
+
return Object.defineProperty(f, "init", { value: c }), Object.defineProperty(f, Symbol.hasInstance, {
|
|
716
716
|
value: (u) => r?.Parent && u instanceof r.Parent ? !0 : u?._zod?.traits?.has(t)
|
|
717
|
-
}), Object.defineProperty(
|
|
717
|
+
}), Object.defineProperty(f, "name", { value: t }), f;
|
|
718
718
|
}
|
|
719
719
|
class Ie extends Error {
|
|
720
720
|
constructor() {
|
|
@@ -728,18 +728,18 @@ function pe(t) {
|
|
|
728
728
|
}
|
|
729
729
|
function Eo() {
|
|
730
730
|
const t = this._zod;
|
|
731
|
-
return t.message ?? (t.message = JSON.stringify(t.def,
|
|
731
|
+
return t.message ?? (t.message = JSON.stringify(t.def, fo, 2)), t.message;
|
|
732
732
|
}
|
|
733
733
|
function Ro(t) {
|
|
734
734
|
this._zod.message = t;
|
|
735
735
|
}
|
|
736
|
-
const
|
|
736
|
+
const Po = {
|
|
737
737
|
get: Eo,
|
|
738
738
|
set: Ro,
|
|
739
739
|
enumerable: !0,
|
|
740
740
|
configurable: !0
|
|
741
|
-
}, We = { value: void 0, enumerable: !1 }, ut = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]),
|
|
742
|
-
t.name = "$ZodError", We.value = e, Object.defineProperty(t, "issues", We), We.value = void 0, Object.defineProperty(t, "message",
|
|
741
|
+
}, We = { value: void 0, enumerable: !1 }, ut = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), To = (t, e) => {
|
|
742
|
+
t.name = "$ZodError", We.value = e, Object.defineProperty(t, "issues", We), We.value = void 0, Object.defineProperty(t, "message", Po);
|
|
743
743
|
const o = Object.getPrototypeOf(t);
|
|
744
744
|
ut.has(o) || (ut.add(o), Object.defineProperty(o, "toString", {
|
|
745
745
|
configurable: !0,
|
|
@@ -752,7 +752,7 @@ const To = {
|
|
|
752
752
|
Object.defineProperty(this, "toString", { value: r, configurable: !0, writable: !0 });
|
|
753
753
|
}
|
|
754
754
|
}));
|
|
755
|
-
}, De =
|
|
755
|
+
}, De = V("$ZodError", To, void 0, {
|
|
756
756
|
Parent: Error
|
|
757
757
|
}), Mo = (t) => {
|
|
758
758
|
const e = (o, r, n, i) => {
|
|
@@ -760,7 +760,7 @@ const To = {
|
|
|
760
760
|
if (s instanceof Promise)
|
|
761
761
|
throw new Ie();
|
|
762
762
|
if (s.issues.length) {
|
|
763
|
-
const c = new (i?.Err ?? t)(s.issues.map((a) =>
|
|
763
|
+
const c = new (i?.Err ?? t)(s.issues.map((a) => ve(a, d, pe())));
|
|
764
764
|
throw bt(c, i?.callee ?? e), c;
|
|
765
765
|
}
|
|
766
766
|
return s.value;
|
|
@@ -771,7 +771,7 @@ const To = {
|
|
|
771
771
|
const d = n ? { ...n, async: !0 } : { async: !0 };
|
|
772
772
|
let s = o._zod.run({ value: r, issues: [] }, d);
|
|
773
773
|
if (s instanceof Promise && (s = await s), s.issues.length) {
|
|
774
|
-
const c = new (i?.Err ?? t)(s.issues.map((a) =>
|
|
774
|
+
const c = new (i?.Err ?? t)(s.issues.map((a) => ve(a, d, pe())));
|
|
775
775
|
throw bt(c, i?.callee ?? e), c;
|
|
776
776
|
}
|
|
777
777
|
return s.value;
|
|
@@ -788,7 +788,7 @@ function vt(t, e, o) {
|
|
|
788
788
|
return {
|
|
789
789
|
success: !1,
|
|
790
790
|
get error() {
|
|
791
|
-
return r || (r = new t(e.map((n) =>
|
|
791
|
+
return r || (r = new t(e.map((n) => ve(n, o, pe()))), e = void 0, o = void 0), r;
|
|
792
792
|
},
|
|
793
793
|
set error(n) {
|
|
794
794
|
r = n, e = void 0, o = void 0;
|
|
@@ -803,7 +803,7 @@ const $o = (t) => async (e, o, r) => {
|
|
|
803
803
|
major: 4,
|
|
804
804
|
minor: 6,
|
|
805
805
|
patch: 7
|
|
806
|
-
},
|
|
806
|
+
}, fe = /* @__PURE__ */ V("$ZodType", (t, e) => {
|
|
807
807
|
var o;
|
|
808
808
|
t ?? (t = {}), t._zod.def = e, t._zod.bag = t._zod.bag || {}, t._zod.version = Ko;
|
|
809
809
|
const r = t._zod.def.checks, n = t._zod.traits.has("$ZodCheck") ? [t, ...r ?? []] : r?.length ? [...r] : [];
|
|
@@ -818,7 +818,7 @@ const $o = (t) => async (e, o, r) => {
|
|
|
818
818
|
const i = (s, c, a) => {
|
|
819
819
|
if (s.memo)
|
|
820
820
|
return s;
|
|
821
|
-
let l =
|
|
821
|
+
let l = me(s), f;
|
|
822
822
|
for (const u of c) {
|
|
823
823
|
if (u._zod.def.when) {
|
|
824
824
|
if (yo(s) || !u._zod.def.when(s))
|
|
@@ -828,25 +828,25 @@ const $o = (t) => async (e, o, r) => {
|
|
|
828
828
|
const h = s.issues.length, p = u._zod.check(s);
|
|
829
829
|
if (p instanceof Promise && a?.async === !1)
|
|
830
830
|
throw new Ie();
|
|
831
|
-
if (
|
|
832
|
-
|
|
833
|
-
await p, s.issues.length !== h && (lt(s.issues, h, t), l || (l =
|
|
831
|
+
if (f || p instanceof Promise)
|
|
832
|
+
f = (f ?? Promise.resolve()).then(async () => {
|
|
833
|
+
await p, s.issues.length !== h && (lt(s.issues, h, t), l || (l = me(s, h)));
|
|
834
834
|
});
|
|
835
835
|
else {
|
|
836
836
|
if (s.issues.length === h)
|
|
837
837
|
continue;
|
|
838
|
-
lt(s.issues, h, t), l || (l =
|
|
838
|
+
lt(s.issues, h, t), l || (l = me(s, h));
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
|
-
return
|
|
841
|
+
return f ? f.then(() => s) : s;
|
|
842
842
|
}, d = (s, c, a) => {
|
|
843
|
-
if (
|
|
843
|
+
if (me(s))
|
|
844
844
|
return s.aborted = !0, s;
|
|
845
845
|
const l = i(c, n, a);
|
|
846
846
|
if (l instanceof Promise) {
|
|
847
847
|
if (a.async === !1)
|
|
848
848
|
throw new Ie();
|
|
849
|
-
return l.then((
|
|
849
|
+
return l.then((f) => t._zod.parse(f, a));
|
|
850
850
|
}
|
|
851
851
|
return t._zod.parse(l, a);
|
|
852
852
|
};
|
|
@@ -855,7 +855,7 @@ const $o = (t) => async (e, o, r) => {
|
|
|
855
855
|
return t._zod.parse(s, c);
|
|
856
856
|
if (c.direction === "backward") {
|
|
857
857
|
const l = t._zod.parse({ value: s.value, issues: [] }, { ...c, skipChecks: !0 });
|
|
858
|
-
return l instanceof Promise ? l.then((
|
|
858
|
+
return l instanceof Promise ? l.then((f) => d(f, s, c)) : d(l, s, c);
|
|
859
859
|
}
|
|
860
860
|
const a = t._zod.parse(s, c);
|
|
861
861
|
if (a instanceof Promise) {
|
|
@@ -874,7 +874,7 @@ const $o = (t) => async (e, o, r) => {
|
|
|
874
874
|
set "~standard"(t) {
|
|
875
875
|
Ee(this, "~standard", t);
|
|
876
876
|
}
|
|
877
|
-
}), wt = (t, e) => t.issues.length ? { issues: t.issues.map((o) =>
|
|
877
|
+
}), wt = (t, e) => t.issues.length ? { issues: t.issues.map((o) => ve(o, e, pe())) } : { value: t.value };
|
|
878
878
|
async function Ho(t, e) {
|
|
879
879
|
const o = { async: !0 };
|
|
880
880
|
return wt(await t._zod.run({ value: e, issues: [] }, o), o);
|
|
@@ -895,8 +895,8 @@ function Vo(t) {
|
|
|
895
895
|
version: 1
|
|
896
896
|
};
|
|
897
897
|
}
|
|
898
|
-
const Wo = /* @__PURE__ */
|
|
899
|
-
|
|
898
|
+
const Wo = /* @__PURE__ */ V("$ZodString", (t, e) => {
|
|
899
|
+
fe.init(t, e), t._zod.pattern = e.pattern ?? No, t._zod.parse = (o, r) => {
|
|
900
900
|
if (e.coerce)
|
|
901
901
|
try {
|
|
902
902
|
o.value = String(o.value);
|
|
@@ -909,8 +909,8 @@ const Wo = /* @__PURE__ */ K("$ZodString", (t, e) => {
|
|
|
909
909
|
inst: t
|
|
910
910
|
}), o;
|
|
911
911
|
};
|
|
912
|
-
}), Fo = /* @__PURE__ */
|
|
913
|
-
|
|
912
|
+
}), Fo = /* @__PURE__ */ V("$ZodNull", (t, e) => {
|
|
913
|
+
fe.init(t, e), t._zod.pattern = Zo, t._zod.values = /* @__PURE__ */ new Set([null]), t._zod.parse = (o, r) => {
|
|
914
914
|
const n = o.value;
|
|
915
915
|
return n === null || o.issues.push({
|
|
916
916
|
expected: "null",
|
|
@@ -941,7 +941,7 @@ function Ue(t, e, o, r, n, i) {
|
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
const Jo = [];
|
|
944
|
-
function
|
|
944
|
+
function Go(t) {
|
|
945
945
|
const e = Object.keys(t.shape), o = Object.getOwnPropertySymbols(t.shape), r = o.length ? o : Jo, n = r.length ? [...e, ...r] : e;
|
|
946
946
|
for (const d of n)
|
|
947
947
|
if (!t.shape?.[d]?._zod?.traits?.has("$ZodType"))
|
|
@@ -957,12 +957,12 @@ function Yo(t) {
|
|
|
957
957
|
optionalKeys: new Set(i)
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
|
-
function
|
|
961
|
-
const s = [], c = n.keySet, a = n.catchall._zod, l = a.def.type,
|
|
960
|
+
function Xo(t, e, o, r, n, i, d) {
|
|
961
|
+
const s = [], c = n.keySet, a = n.catchall._zod, l = a.def.type, f = a.optin, u = a.optout;
|
|
962
962
|
let h = 0;
|
|
963
963
|
for (const p in e) {
|
|
964
964
|
if (d && o.issues.length !== h) {
|
|
965
|
-
if (
|
|
965
|
+
if (me(o, h))
|
|
966
966
|
break;
|
|
967
967
|
h = o.issues.length;
|
|
968
968
|
}
|
|
@@ -976,8 +976,8 @@ function Go(t, e, o, r, n, i, d) {
|
|
|
976
976
|
s.push(p);
|
|
977
977
|
continue;
|
|
978
978
|
}
|
|
979
|
-
const
|
|
980
|
-
|
|
979
|
+
const g = a.run({ value: e[p], issues: [] }, r);
|
|
980
|
+
g instanceof Promise ? t.push(g.then((x) => Ue(x, o, p, e, f, u))) : Ue(g, o, p, e, f, u);
|
|
981
981
|
}
|
|
982
982
|
return s.length && o.issues.push({
|
|
983
983
|
code: "unrecognized_keys",
|
|
@@ -988,8 +988,8 @@ function Go(t, e, o, r, n, i, d) {
|
|
|
988
988
|
continue: !0
|
|
989
989
|
}), t.length ? Promise.all(t).then(() => o) : o;
|
|
990
990
|
}
|
|
991
|
-
const
|
|
992
|
-
|
|
991
|
+
const Yo = /* @__PURE__ */ V("$ZodObject", (t, e) => {
|
|
992
|
+
fe.init(t, e);
|
|
993
993
|
const o = Object.getOwnPropertyDescriptor(e, "shape"), r = o?.get ? o.get.raw : e.shape ?? {};
|
|
994
994
|
if (r) {
|
|
995
995
|
const a = () => {
|
|
@@ -998,64 +998,64 @@ const Xo = /* @__PURE__ */ K("$ZodObject", (t, e) => {
|
|
|
998
998
|
};
|
|
999
999
|
a.raw = r, Object.defineProperty(e, "shape", { get: a });
|
|
1000
1000
|
}
|
|
1001
|
-
const n = mo(() =>
|
|
1001
|
+
const n = mo(() => Go(e));
|
|
1002
1002
|
de(t, "propValues", (a) => {
|
|
1003
|
-
const l = a.def.shape,
|
|
1003
|
+
const l = a.def.shape, f = {};
|
|
1004
1004
|
for (const u in l) {
|
|
1005
1005
|
const h = l[u]._zod;
|
|
1006
1006
|
if (h.values) {
|
|
1007
|
-
Object.prototype.hasOwnProperty.call(
|
|
1007
|
+
Object.prototype.hasOwnProperty.call(f, u) || bo(f, u, /* @__PURE__ */ new Set());
|
|
1008
1008
|
for (const p of h.values)
|
|
1009
|
-
|
|
1010
|
-
h.optin !== void 0 &&
|
|
1009
|
+
f[u].add(p);
|
|
1010
|
+
h.optin !== void 0 && f[u].add(void 0);
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
return
|
|
1013
|
+
return f;
|
|
1014
1014
|
});
|
|
1015
|
-
const i =
|
|
1015
|
+
const i = Ge, d = e.catchall;
|
|
1016
1016
|
let s;
|
|
1017
1017
|
const c = Ae.memoizer;
|
|
1018
1018
|
c?.attach(t), t._zod.parse = (a, l) => {
|
|
1019
1019
|
s ?? (s = n.value);
|
|
1020
|
-
const
|
|
1021
|
-
if (!i(
|
|
1020
|
+
const f = a.value;
|
|
1021
|
+
if (!i(f))
|
|
1022
1022
|
return a.issues.push({
|
|
1023
1023
|
expected: "object",
|
|
1024
1024
|
code: "invalid_type",
|
|
1025
|
-
input:
|
|
1025
|
+
input: f,
|
|
1026
1026
|
inst: t
|
|
1027
1027
|
}), a;
|
|
1028
1028
|
a.value = c ? c.alloc(t, a, {}, l) : {};
|
|
1029
1029
|
const u = [], h = s.shape, p = l?.abortEarly;
|
|
1030
|
-
let
|
|
1030
|
+
let g = a.issues.length;
|
|
1031
1031
|
for (const x of s.allKeys) {
|
|
1032
|
-
if (p && a.issues.length !==
|
|
1033
|
-
if (
|
|
1032
|
+
if (p && a.issues.length !== g) {
|
|
1033
|
+
if (me(a, g))
|
|
1034
1034
|
break;
|
|
1035
|
-
|
|
1035
|
+
g = a.issues.length;
|
|
1036
1036
|
}
|
|
1037
1037
|
if (x === "__proto__")
|
|
1038
1038
|
continue;
|
|
1039
|
-
const b = h[x],
|
|
1040
|
-
_ instanceof Promise ? u.push(_.then((I) => Ue(I, a, x,
|
|
1039
|
+
const b = h[x], z = b._zod.optin, A = b._zod.optout, _ = b._zod.run({ value: f[x], issues: [] }, l);
|
|
1040
|
+
_ instanceof Promise ? u.push(_.then((I) => Ue(I, a, x, f, z, A))) : Ue(_, a, x, f, z, A);
|
|
1041
1041
|
}
|
|
1042
|
-
return d ?
|
|
1042
|
+
return d ? Xo(u, f, a, l, n.value, t, p === !0) : u.length ? Promise.all(u).then(() => a) : a;
|
|
1043
1043
|
};
|
|
1044
1044
|
});
|
|
1045
1045
|
function ht(t, e, o, r) {
|
|
1046
1046
|
for (const i of t)
|
|
1047
1047
|
if (i.issues.length === 0)
|
|
1048
1048
|
return e.value = i.value, e;
|
|
1049
|
-
const n = t.filter((i) => !
|
|
1049
|
+
const n = t.filter((i) => !me(i));
|
|
1050
1050
|
return n.length === 1 ? (e.value = n[0].value, n[0]) : (e.issues.push({
|
|
1051
1051
|
code: "invalid_union",
|
|
1052
1052
|
input: e.value,
|
|
1053
1053
|
inst: o,
|
|
1054
|
-
errors: t.map((i) => i.issues.map((d) =>
|
|
1054
|
+
errors: t.map((i) => i.issues.map((d) => ve(d, r, pe())))
|
|
1055
1055
|
}), e);
|
|
1056
1056
|
}
|
|
1057
|
-
const Qo = /* @__PURE__ */
|
|
1058
|
-
|
|
1057
|
+
const Qo = /* @__PURE__ */ V("$ZodUnion", (t, e) => {
|
|
1058
|
+
fe.init(t, e), de(t, "optin", (r) => r.def.options.some((n) => n._zod.optin === "defaulted") ? "defaulted" : r.def.options.some((n) => n._zod.optin !== void 0) ? "optional" : void 0), de(t, "optout", (r) => r.def.options.some((n) => n._zod.optout === "optional") ? "optional" : void 0), de(t, "values", (r) => {
|
|
1059
1059
|
if (r.def.options.every((n) => n._zod.values))
|
|
1060
1060
|
return new Set(r.def.options.flatMap((n) => Array.from(n._zod.values)));
|
|
1061
1061
|
}), de(t, "pattern", (r) => {
|
|
@@ -1085,8 +1085,8 @@ const Qo = /* @__PURE__ */ K("$ZodUnion", (t, e) => {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
return i ? Promise.all(d).then((s) => ht(s, r, t, n)) : ht(d, r, t, n);
|
|
1087
1087
|
};
|
|
1088
|
-
}), er = /* @__PURE__ */
|
|
1089
|
-
|
|
1088
|
+
}), er = /* @__PURE__ */ V("$ZodRecord", (t, e) => {
|
|
1089
|
+
fe.init(t, e);
|
|
1090
1090
|
const o = Ae.memoizer;
|
|
1091
1091
|
o?.attach(t), t._zod.parse = (r, n) => {
|
|
1092
1092
|
const i = r.value;
|
|
@@ -1105,21 +1105,21 @@ const Qo = /* @__PURE__ */ K("$ZodUnion", (t, e) => {
|
|
|
1105
1105
|
if (typeof l == "string" || typeof l == "number" || typeof l == "symbol") {
|
|
1106
1106
|
if (c.add(typeof l == "number" ? l.toString() : l), l === "__proto__")
|
|
1107
1107
|
continue;
|
|
1108
|
-
const
|
|
1109
|
-
if (
|
|
1108
|
+
const f = e.keyType._zod.run({ value: l, issues: [] }, n);
|
|
1109
|
+
if (f instanceof Promise)
|
|
1110
1110
|
throw new Error("Async schemas not supported in object keys currently");
|
|
1111
|
-
if (
|
|
1111
|
+
if (f.issues.length) {
|
|
1112
1112
|
r.issues.push({
|
|
1113
1113
|
code: "invalid_key",
|
|
1114
1114
|
origin: "record",
|
|
1115
|
-
issues:
|
|
1115
|
+
issues: f.issues.map((p) => ve(p, n, pe())),
|
|
1116
1116
|
input: l,
|
|
1117
1117
|
path: [l],
|
|
1118
1118
|
inst: t
|
|
1119
1119
|
});
|
|
1120
1120
|
continue;
|
|
1121
1121
|
}
|
|
1122
|
-
const u =
|
|
1122
|
+
const u = f.value;
|
|
1123
1123
|
if (u === "__proto__")
|
|
1124
1124
|
continue;
|
|
1125
1125
|
const h = e.valueType._zod.run({ value: i[l], issues: [] }, n);
|
|
@@ -1162,7 +1162,7 @@ const Qo = /* @__PURE__ */ K("$ZodUnion", (t, e) => {
|
|
|
1162
1162
|
e.mode === "loose" ? r.value[a] = i[a] : s ? (c = c ?? [], c.push(a)) : r.issues.push({
|
|
1163
1163
|
code: "invalid_key",
|
|
1164
1164
|
origin: "record",
|
|
1165
|
-
issues: l.issues.map((p) =>
|
|
1165
|
+
issues: l.issues.map((p) => ve(p, n, pe())),
|
|
1166
1166
|
input: a,
|
|
1167
1167
|
path: [a],
|
|
1168
1168
|
inst: t
|
|
@@ -1187,8 +1187,8 @@ const Qo = /* @__PURE__ */ K("$ZodUnion", (t, e) => {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
return d.length ? Promise.all(d).then(() => r) : r;
|
|
1189
1189
|
};
|
|
1190
|
-
}), tr = /* @__PURE__ */
|
|
1191
|
-
|
|
1190
|
+
}), tr = /* @__PURE__ */ V("$ZodLiteral", (t, e) => {
|
|
1191
|
+
fe.init(t, e);
|
|
1192
1192
|
const o = new Set(e.values);
|
|
1193
1193
|
t._zod.values = o, de(t, "pattern", (r) => {
|
|
1194
1194
|
const n = r.def.values;
|
|
@@ -1202,8 +1202,8 @@ const Qo = /* @__PURE__ */ K("$ZodUnion", (t, e) => {
|
|
|
1202
1202
|
inst: t
|
|
1203
1203
|
}), r;
|
|
1204
1204
|
};
|
|
1205
|
-
}), or = /* @__PURE__ */
|
|
1206
|
-
|
|
1205
|
+
}), or = /* @__PURE__ */ V("$ZodNullable", (t, e) => {
|
|
1206
|
+
fe.init(t, e), de(t, "optin", (o) => o.def.innerType._zod.optin), de(t, "optout", (o) => o.def.innerType._zod.optout), de(t, "pattern", (o) => {
|
|
1207
1207
|
const r = o.def.innerType._zod.pattern;
|
|
1208
1208
|
return r ? new RegExp(`^(${mt(r.source)}|null)$`) : void 0;
|
|
1209
1209
|
}), de(t, "values", (o) => o.def.innerType._zod.values ? /* @__PURE__ */ new Set([...o.def.innerType._zod.values, null]) : void 0), t._zod.parse = (o, r) => o.value === null ? o : e.innerType._zod.run(o, r);
|
|
@@ -1213,19 +1213,19 @@ function rr(t) {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
// @__NO_SIDE_EFFECTS__
|
|
1215
1215
|
function nr(t, e) {
|
|
1216
|
-
return new t(rr({ type: "string", ...
|
|
1216
|
+
return new t(rr({ type: "string", ...be(e) }));
|
|
1217
1217
|
}
|
|
1218
1218
|
// @__NO_SIDE_EFFECTS__
|
|
1219
1219
|
function ar(t, e) {
|
|
1220
1220
|
return new t({
|
|
1221
1221
|
type: "null",
|
|
1222
|
-
...
|
|
1222
|
+
...be(e)
|
|
1223
1223
|
});
|
|
1224
1224
|
}
|
|
1225
|
-
const
|
|
1225
|
+
const we = /* @__PURE__ */ V("ZodMiniType", (t, e) => {
|
|
1226
1226
|
if (!t._zod)
|
|
1227
1227
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
1228
|
-
|
|
1228
|
+
fe.init(t, e), t.def = e, t.type = e.type;
|
|
1229
1229
|
}, {
|
|
1230
1230
|
// `with` is an alias for `check`: the same function object, not a wrapper.
|
|
1231
1231
|
get with() {
|
|
@@ -1268,145 +1268,145 @@ const ve = /* @__PURE__ */ K("ZodMiniType", (t, e) => {
|
|
|
1268
1268
|
apply(t, ...e) {
|
|
1269
1269
|
return e.length === 0 ? t(this) : t(this, ...e);
|
|
1270
1270
|
}
|
|
1271
|
-
}), ir = /* @__PURE__ */
|
|
1272
|
-
Wo.init(t, e),
|
|
1271
|
+
}), ir = /* @__PURE__ */ V("ZodMiniString", (t, e) => {
|
|
1272
|
+
Wo.init(t, e), we.init(t, e);
|
|
1273
1273
|
});
|
|
1274
1274
|
// @__NO_SIDE_EFFECTS__
|
|
1275
|
-
function
|
|
1275
|
+
function E(t) {
|
|
1276
1276
|
return /* @__PURE__ */ nr(ir, t);
|
|
1277
1277
|
}
|
|
1278
|
-
const sr = /* @__PURE__ */
|
|
1279
|
-
Fo.init(t, e),
|
|
1278
|
+
const sr = /* @__PURE__ */ V("ZodMiniNull", (t, e) => {
|
|
1279
|
+
Fo.init(t, e), we.init(t, e);
|
|
1280
1280
|
});
|
|
1281
1281
|
// @__NO_SIDE_EFFECTS__
|
|
1282
1282
|
function lr(t) {
|
|
1283
1283
|
return /* @__PURE__ */ ar(sr, t);
|
|
1284
1284
|
}
|
|
1285
|
-
const cr = /* @__PURE__ */
|
|
1286
|
-
|
|
1285
|
+
const cr = /* @__PURE__ */ V("ZodMiniObject", (t, e) => {
|
|
1286
|
+
Yo.init(t, e), we.init(t, e), Io(t, "shape", (o) => o._zod.def.shape, !1);
|
|
1287
1287
|
});
|
|
1288
1288
|
// @__NO_SIDE_EFFECTS__
|
|
1289
|
-
function
|
|
1289
|
+
function O(t, e) {
|
|
1290
1290
|
const o = {
|
|
1291
1291
|
type: "object",
|
|
1292
1292
|
shape: t ?? {},
|
|
1293
|
-
...
|
|
1293
|
+
...be(e)
|
|
1294
1294
|
};
|
|
1295
1295
|
return new cr(o);
|
|
1296
1296
|
}
|
|
1297
|
-
const dr = /* @__PURE__ */
|
|
1298
|
-
Qo.init(t, e),
|
|
1297
|
+
const dr = /* @__PURE__ */ V("ZodMiniUnion", (t, e) => {
|
|
1298
|
+
Qo.init(t, e), we.init(t, e);
|
|
1299
1299
|
});
|
|
1300
1300
|
// @__NO_SIDE_EFFECTS__
|
|
1301
1301
|
function ur(t, e) {
|
|
1302
1302
|
return new dr({
|
|
1303
1303
|
type: "union",
|
|
1304
1304
|
options: t,
|
|
1305
|
-
...
|
|
1305
|
+
...be(e)
|
|
1306
1306
|
});
|
|
1307
1307
|
}
|
|
1308
|
-
const pt = /* @__PURE__ */
|
|
1309
|
-
er.init(t, e),
|
|
1308
|
+
const pt = /* @__PURE__ */ V("ZodMiniRecord", (t, e) => {
|
|
1309
|
+
er.init(t, e), we.init(t, e);
|
|
1310
1310
|
});
|
|
1311
1311
|
// @__NO_SIDE_EFFECTS__
|
|
1312
1312
|
function hr(t, e, o) {
|
|
1313
1313
|
return !e || !e._zod ? new pt({
|
|
1314
1314
|
type: "record",
|
|
1315
|
-
keyType: /* @__PURE__ */
|
|
1315
|
+
keyType: /* @__PURE__ */ E(),
|
|
1316
1316
|
valueType: t,
|
|
1317
|
-
...
|
|
1317
|
+
...be(e)
|
|
1318
1318
|
}) : new pt({
|
|
1319
1319
|
type: "record",
|
|
1320
1320
|
keyType: t,
|
|
1321
1321
|
valueType: e,
|
|
1322
|
-
...
|
|
1322
|
+
...be(o)
|
|
1323
1323
|
});
|
|
1324
1324
|
}
|
|
1325
|
-
const pr = /* @__PURE__ */
|
|
1326
|
-
tr.init(t, e),
|
|
1325
|
+
const pr = /* @__PURE__ */ V("ZodMiniLiteral", (t, e) => {
|
|
1326
|
+
tr.init(t, e), we.init(t, e);
|
|
1327
1327
|
});
|
|
1328
1328
|
// @__NO_SIDE_EFFECTS__
|
|
1329
1329
|
function se(t, e) {
|
|
1330
1330
|
return new pr({
|
|
1331
1331
|
type: "literal",
|
|
1332
1332
|
values: Array.isArray(t) ? t : [t],
|
|
1333
|
-
...
|
|
1333
|
+
...be(e)
|
|
1334
1334
|
});
|
|
1335
1335
|
}
|
|
1336
|
-
const
|
|
1337
|
-
or.init(t, e),
|
|
1336
|
+
const fr = /* @__PURE__ */ V("ZodMiniNullable", (t, e) => {
|
|
1337
|
+
or.init(t, e), we.init(t, e);
|
|
1338
1338
|
});
|
|
1339
1339
|
// @__NO_SIDE_EFFECTS__
|
|
1340
1340
|
function et(t) {
|
|
1341
|
-
return new
|
|
1341
|
+
return new fr({
|
|
1342
1342
|
type: "nullable",
|
|
1343
1343
|
innerType: t
|
|
1344
1344
|
});
|
|
1345
1345
|
}
|
|
1346
1346
|
pe({ jitless: !0 });
|
|
1347
|
-
const
|
|
1347
|
+
const gr = /* @__PURE__ */ O({
|
|
1348
1348
|
type: /* @__PURE__ */ se("utterance"),
|
|
1349
|
-
content: /* @__PURE__ */
|
|
1350
|
-
role: /* @__PURE__ */
|
|
1351
|
-
}), mr = /* @__PURE__ */
|
|
1349
|
+
content: /* @__PURE__ */ E(),
|
|
1350
|
+
role: /* @__PURE__ */ E()
|
|
1351
|
+
}), mr = /* @__PURE__ */ O({
|
|
1352
1352
|
type: /* @__PURE__ */ se("agent_cognition"),
|
|
1353
|
-
content: /* @__PURE__ */
|
|
1354
|
-
}), br = /* @__PURE__ */
|
|
1353
|
+
content: /* @__PURE__ */ E()
|
|
1354
|
+
}), br = /* @__PURE__ */ O({
|
|
1355
1355
|
type: /* @__PURE__ */ se("chat_closed_expired"),
|
|
1356
|
-
content: /* @__PURE__ */
|
|
1357
|
-
}), vr = /* @__PURE__ */
|
|
1356
|
+
content: /* @__PURE__ */ E()
|
|
1357
|
+
}), vr = /* @__PURE__ */ O({
|
|
1358
1358
|
type: /* @__PURE__ */ se("agent_captured_url"),
|
|
1359
|
-
content: /* @__PURE__ */
|
|
1360
|
-
}), wr = /* @__PURE__ */
|
|
1359
|
+
content: /* @__PURE__ */ E()
|
|
1360
|
+
}), wr = /* @__PURE__ */ O({
|
|
1361
1361
|
type: /* @__PURE__ */ se("agent_topic"),
|
|
1362
|
-
content: /* @__PURE__ */
|
|
1363
|
-
}), qr = /* @__PURE__ */
|
|
1362
|
+
content: /* @__PURE__ */ E()
|
|
1363
|
+
}), qr = /* @__PURE__ */ O({
|
|
1364
1364
|
type: /* @__PURE__ */ se("agent_summary"),
|
|
1365
|
-
content: /* @__PURE__ */
|
|
1366
|
-
}), yr = /* @__PURE__ */
|
|
1365
|
+
content: /* @__PURE__ */ E()
|
|
1366
|
+
}), yr = /* @__PURE__ */ O({
|
|
1367
1367
|
type: /* @__PURE__ */ se("chat_rating"),
|
|
1368
|
-
content: /* @__PURE__ */
|
|
1369
|
-
}), xr = /* @__PURE__ */
|
|
1368
|
+
content: /* @__PURE__ */ E()
|
|
1369
|
+
}), xr = /* @__PURE__ */ O({
|
|
1370
1370
|
type: /* @__PURE__ */ se("breadcrumb"),
|
|
1371
|
-
content: /* @__PURE__ */
|
|
1372
|
-
}), kr = /* @__PURE__ */
|
|
1371
|
+
content: /* @__PURE__ */ E()
|
|
1372
|
+
}), kr = /* @__PURE__ */ O({
|
|
1373
1373
|
type: /* @__PURE__ */ se("chat_escalated"),
|
|
1374
1374
|
content: /* @__PURE__ */ lr()
|
|
1375
|
-
}), _r = /* @__PURE__ */
|
|
1375
|
+
}), _r = /* @__PURE__ */ O({
|
|
1376
1376
|
type: /* @__PURE__ */ se("error"),
|
|
1377
|
-
code: /* @__PURE__ */
|
|
1378
|
-
}), Cr = /* @__PURE__ */
|
|
1379
|
-
message_id: /* @__PURE__ */ et(/* @__PURE__ */
|
|
1380
|
-
created_at: /* @__PURE__ */
|
|
1381
|
-
data:
|
|
1382
|
-
}), Sr = /* @__PURE__ */
|
|
1383
|
-
created_at: /* @__PURE__ */
|
|
1377
|
+
code: /* @__PURE__ */ E()
|
|
1378
|
+
}), Cr = /* @__PURE__ */ O({
|
|
1379
|
+
message_id: /* @__PURE__ */ et(/* @__PURE__ */ E()),
|
|
1380
|
+
created_at: /* @__PURE__ */ E(),
|
|
1381
|
+
data: gr
|
|
1382
|
+
}), Sr = /* @__PURE__ */ O({
|
|
1383
|
+
created_at: /* @__PURE__ */ E(),
|
|
1384
1384
|
data: _r
|
|
1385
|
-
}), Ir = /* @__PURE__ */
|
|
1386
|
-
created_at: /* @__PURE__ */
|
|
1385
|
+
}), Ir = /* @__PURE__ */ O({
|
|
1386
|
+
created_at: /* @__PURE__ */ E(),
|
|
1387
1387
|
data: mr
|
|
1388
|
-
}), zr = /* @__PURE__ */
|
|
1389
|
-
message_id: /* @__PURE__ */ et(/* @__PURE__ */
|
|
1390
|
-
created_at: /* @__PURE__ */
|
|
1388
|
+
}), zr = /* @__PURE__ */ O({
|
|
1389
|
+
message_id: /* @__PURE__ */ et(/* @__PURE__ */ E()),
|
|
1390
|
+
created_at: /* @__PURE__ */ E(),
|
|
1391
1391
|
data: br
|
|
1392
|
-
}), Er = /* @__PURE__ */
|
|
1393
|
-
created_at: /* @__PURE__ */
|
|
1392
|
+
}), Er = /* @__PURE__ */ O({
|
|
1393
|
+
created_at: /* @__PURE__ */ E(),
|
|
1394
1394
|
data: vr
|
|
1395
|
-
}), Rr = /* @__PURE__ */
|
|
1396
|
-
created_at: /* @__PURE__ */
|
|
1395
|
+
}), Rr = /* @__PURE__ */ O({
|
|
1396
|
+
created_at: /* @__PURE__ */ E(),
|
|
1397
1397
|
data: wr
|
|
1398
|
-
}),
|
|
1399
|
-
created_at: /* @__PURE__ */
|
|
1398
|
+
}), Pr = /* @__PURE__ */ O({
|
|
1399
|
+
created_at: /* @__PURE__ */ E(),
|
|
1400
1400
|
data: qr
|
|
1401
|
-
}),
|
|
1402
|
-
created_at: /* @__PURE__ */
|
|
1401
|
+
}), Tr = /* @__PURE__ */ O({
|
|
1402
|
+
created_at: /* @__PURE__ */ E(),
|
|
1403
1403
|
data: yr
|
|
1404
|
-
}), Mr = /* @__PURE__ */
|
|
1405
|
-
created_at: /* @__PURE__ */
|
|
1404
|
+
}), Mr = /* @__PURE__ */ O({
|
|
1405
|
+
created_at: /* @__PURE__ */ E(),
|
|
1406
1406
|
data: xr
|
|
1407
|
-
}), Or = /* @__PURE__ */
|
|
1408
|
-
message_id: /* @__PURE__ */ et(/* @__PURE__ */
|
|
1409
|
-
created_at: /* @__PURE__ */
|
|
1407
|
+
}), Or = /* @__PURE__ */ O({
|
|
1408
|
+
message_id: /* @__PURE__ */ et(/* @__PURE__ */ E()),
|
|
1409
|
+
created_at: /* @__PURE__ */ E(),
|
|
1410
1410
|
data: kr
|
|
1411
1411
|
}), Ar = /* @__PURE__ */ ur([
|
|
1412
1412
|
Cr,
|
|
@@ -1414,19 +1414,19 @@ const fr = /* @__PURE__ */ U({
|
|
|
1414
1414
|
Ir,
|
|
1415
1415
|
Er,
|
|
1416
1416
|
Rr,
|
|
1417
|
-
Tr,
|
|
1418
|
-
zr,
|
|
1419
1417
|
Pr,
|
|
1418
|
+
zr,
|
|
1419
|
+
Tr,
|
|
1420
1420
|
Mr,
|
|
1421
1421
|
Or
|
|
1422
|
-
]), Ur = /* @__PURE__ */
|
|
1423
|
-
url: /* @__PURE__ */
|
|
1422
|
+
]), Ur = /* @__PURE__ */ O({
|
|
1423
|
+
url: /* @__PURE__ */ E(),
|
|
1424
1424
|
mimeType: /* @__PURE__ */ se(Et),
|
|
1425
|
-
name: /* @__PURE__ */
|
|
1426
|
-
}), jr = /* @__PURE__ */
|
|
1425
|
+
name: /* @__PURE__ */ E()
|
|
1426
|
+
}), jr = /* @__PURE__ */ O({
|
|
1427
1427
|
data: Ur
|
|
1428
|
-
}), Dr = /* @__PURE__ */
|
|
1429
|
-
data: /* @__PURE__ */
|
|
1428
|
+
}), Dr = /* @__PURE__ */ O({
|
|
1429
|
+
data: /* @__PURE__ */ O({ urls: /* @__PURE__ */ hr(/* @__PURE__ */ E(), /* @__PURE__ */ E()) })
|
|
1430
1430
|
}), $r = 500, Br = 3e4, Nr = 6e4;
|
|
1431
1431
|
function Lr({
|
|
1432
1432
|
chatSettings: t,
|
|
@@ -1440,93 +1440,93 @@ function Lr({
|
|
|
1440
1440
|
onAgentCapturedUrl: c,
|
|
1441
1441
|
onAgentTopic: a,
|
|
1442
1442
|
onAgentSummary: l,
|
|
1443
|
-
onRatingRequest:
|
|
1443
|
+
onRatingRequest: f,
|
|
1444
1444
|
onBreadcrumb: u,
|
|
1445
1445
|
fetchHistory: h,
|
|
1446
1446
|
getChatToken: p,
|
|
1447
|
-
backupPollingInterval:
|
|
1447
|
+
backupPollingInterval: g = Nr
|
|
1448
1448
|
}) {
|
|
1449
|
-
const x =
|
|
1450
|
-
|
|
1451
|
-
for (const
|
|
1452
|
-
|
|
1449
|
+
const x = K(/* @__PURE__ */ new Set());
|
|
1450
|
+
H(() => {
|
|
1451
|
+
for (const N of o)
|
|
1452
|
+
N.id && x.current.add(N.id);
|
|
1453
1453
|
}, [o]);
|
|
1454
|
-
const b =
|
|
1454
|
+
const b = K(null), z = K(null), A = K(0), _ = K(null), I = K(null), R = K(!1), w = K(!1), y = J(r), P = J(n), ne = J(i), G = J(d), Y = J(s), M = J(c), Z = J(a), U = J(l), L = J(f), j = J(u), Q = J(h), ee = J(p), { publishError: te } = je(), oe = t?.app_sync_url, W = t?.app_sync_api_key, m = !!(oe && W), k = J(oe), S = J(W), D = v(() => {
|
|
1455
1455
|
b.current && (b.current.close(), b.current = null);
|
|
1456
1456
|
}, []), B = v(() => {
|
|
1457
1457
|
I.current && (clearInterval(I.current), I.current = null);
|
|
1458
|
-
}, []),
|
|
1458
|
+
}, []), T = v(() => {
|
|
1459
1459
|
_.current && (clearTimeout(_.current), _.current = null);
|
|
1460
|
-
}, []),
|
|
1461
|
-
}),
|
|
1462
|
-
async (
|
|
1463
|
-
|
|
1464
|
-
const
|
|
1465
|
-
if (!
|
|
1460
|
+
}, []), $ = K(() => {
|
|
1461
|
+
}), F = v(
|
|
1462
|
+
async (N) => {
|
|
1463
|
+
D();
|
|
1464
|
+
const ae = k.current, re = S.current;
|
|
1465
|
+
if (!ae || !re)
|
|
1466
1466
|
throw new Error("Cannot connect: AppSync settings not available");
|
|
1467
|
-
const Re =
|
|
1468
|
-
httpEndpoint:
|
|
1469
|
-
auth: Re ? { authorizationToken: Re } : { apiKey:
|
|
1470
|
-
channel: `/default/chat/${
|
|
1467
|
+
const Re = ee.current(), Be = await po({
|
|
1468
|
+
httpEndpoint: ae,
|
|
1469
|
+
auth: Re ? { authorizationToken: Re } : { apiKey: re },
|
|
1470
|
+
channel: `/default/chat/${N}`,
|
|
1471
1471
|
onDisconnect: () => {
|
|
1472
|
-
b.current = null,
|
|
1472
|
+
b.current = null, $.current();
|
|
1473
1473
|
},
|
|
1474
1474
|
onEvent: (Ne) => {
|
|
1475
|
-
const
|
|
1476
|
-
if (!
|
|
1477
|
-
console.error("Invalid conversation response:",
|
|
1475
|
+
const qe = Ar.safeParse(Ne);
|
|
1476
|
+
if (!qe.success) {
|
|
1477
|
+
console.error("Invalid conversation response:", qe.error);
|
|
1478
1478
|
return;
|
|
1479
1479
|
}
|
|
1480
|
-
const le =
|
|
1480
|
+
const le = qe.data;
|
|
1481
1481
|
switch (le.data.type) {
|
|
1482
1482
|
case "utterance": {
|
|
1483
|
-
const
|
|
1483
|
+
const X = le, ie = X.message_id ?? crypto.randomUUID();
|
|
1484
1484
|
if (x.current.has(ie))
|
|
1485
1485
|
return;
|
|
1486
|
-
x.current.add(ie),
|
|
1486
|
+
x.current.add(ie), ne.current(), y.current(
|
|
1487
1487
|
{
|
|
1488
1488
|
message_id: ie,
|
|
1489
1489
|
response: {
|
|
1490
1490
|
id: ie,
|
|
1491
|
-
type:
|
|
1492
|
-
content:
|
|
1491
|
+
type: X.data.type,
|
|
1492
|
+
content: X.data.content
|
|
1493
1493
|
}
|
|
1494
1494
|
},
|
|
1495
|
-
|
|
1495
|
+
N
|
|
1496
1496
|
);
|
|
1497
1497
|
return;
|
|
1498
1498
|
}
|
|
1499
1499
|
case "error": {
|
|
1500
1500
|
const ie = parseInt(le.data.code);
|
|
1501
|
-
|
|
1501
|
+
te({ code: ie, message: Rt(ie) }), G.current?.();
|
|
1502
1502
|
return;
|
|
1503
1503
|
}
|
|
1504
1504
|
case "agent_cognition": {
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1505
|
+
const X = le;
|
|
1506
|
+
P.current(X.data.content);
|
|
1507
1507
|
return;
|
|
1508
1508
|
}
|
|
1509
1509
|
case "agent_captured_url": {
|
|
1510
|
-
const
|
|
1511
|
-
|
|
1510
|
+
const X = le;
|
|
1511
|
+
M.current?.(X.data.content);
|
|
1512
1512
|
return;
|
|
1513
1513
|
}
|
|
1514
1514
|
case "agent_topic": {
|
|
1515
|
-
const
|
|
1516
|
-
|
|
1515
|
+
const X = le;
|
|
1516
|
+
Z.current?.(X.data.content);
|
|
1517
1517
|
return;
|
|
1518
1518
|
}
|
|
1519
1519
|
case "agent_summary": {
|
|
1520
|
-
const
|
|
1521
|
-
|
|
1520
|
+
const X = le;
|
|
1521
|
+
U.current?.(X.data.content);
|
|
1522
1522
|
return;
|
|
1523
1523
|
}
|
|
1524
1524
|
case "chat_closed_expired": {
|
|
1525
|
-
|
|
1525
|
+
Y.current?.(), L.current?.();
|
|
1526
1526
|
return;
|
|
1527
1527
|
}
|
|
1528
1528
|
case "chat_rating": {
|
|
1529
|
-
|
|
1529
|
+
L.current?.();
|
|
1530
1530
|
return;
|
|
1531
1531
|
}
|
|
1532
1532
|
case "breadcrumb": {
|
|
@@ -1534,7 +1534,7 @@ function Lr({
|
|
|
1534
1534
|
return;
|
|
1535
1535
|
}
|
|
1536
1536
|
case "chat_escalated": {
|
|
1537
|
-
|
|
1537
|
+
Y.current?.(), L.current?.();
|
|
1538
1538
|
return;
|
|
1539
1539
|
}
|
|
1540
1540
|
default:
|
|
@@ -1550,87 +1550,87 @@ function Lr({
|
|
|
1550
1550
|
// The *Ref entries are latest-refs (stable identities); listed to satisfy
|
|
1551
1551
|
// exhaustive-deps, which can't see that useLatestRef returns a ref.
|
|
1552
1552
|
[
|
|
1553
|
-
|
|
1554
|
-
|
|
1553
|
+
D,
|
|
1554
|
+
te,
|
|
1555
1555
|
k,
|
|
1556
|
-
|
|
1557
|
-
|
|
1556
|
+
S,
|
|
1557
|
+
ee,
|
|
1558
1558
|
y,
|
|
1559
|
-
T,
|
|
1560
|
-
oe,
|
|
1561
1559
|
P,
|
|
1562
|
-
|
|
1563
|
-
L,
|
|
1560
|
+
ne,
|
|
1564
1561
|
G,
|
|
1565
|
-
|
|
1562
|
+
Y,
|
|
1563
|
+
M,
|
|
1566
1564
|
Z,
|
|
1565
|
+
U,
|
|
1566
|
+
L,
|
|
1567
1567
|
j
|
|
1568
1568
|
]
|
|
1569
1569
|
), ue = v(
|
|
1570
|
-
async (
|
|
1570
|
+
async (N) => {
|
|
1571
1571
|
try {
|
|
1572
|
-
const
|
|
1573
|
-
for (const
|
|
1574
|
-
|
|
1575
|
-
{ message_id:
|
|
1576
|
-
|
|
1572
|
+
const ae = await Q.current(N);
|
|
1573
|
+
for (const re of ae)
|
|
1574
|
+
re.role !== "assistant" || !re.message_id || x.current.has(re.message_id) || (x.current.add(re.message_id), y.current(
|
|
1575
|
+
{ message_id: re.message_id, response: re.response },
|
|
1576
|
+
N
|
|
1577
1577
|
));
|
|
1578
|
-
} catch (
|
|
1579
|
-
console.warn("Backup poll failed:",
|
|
1578
|
+
} catch (ae) {
|
|
1579
|
+
console.warn("Backup poll failed:", ae);
|
|
1580
1580
|
}
|
|
1581
1581
|
},
|
|
1582
|
-
[
|
|
1583
|
-
),
|
|
1584
|
-
(
|
|
1582
|
+
[Q, y]
|
|
1583
|
+
), ge = v(
|
|
1584
|
+
(N) => {
|
|
1585
1585
|
B(), I.current = setInterval(
|
|
1586
|
-
() => ue(
|
|
1587
|
-
|
|
1586
|
+
() => ue(N),
|
|
1587
|
+
g
|
|
1588
1588
|
);
|
|
1589
1589
|
},
|
|
1590
|
-
[B, ue,
|
|
1590
|
+
[B, ue, g]
|
|
1591
1591
|
), ye = v(
|
|
1592
|
-
function
|
|
1593
|
-
if (!
|
|
1592
|
+
function N() {
|
|
1593
|
+
if (!R.current || w.current || _.current)
|
|
1594
1594
|
return;
|
|
1595
|
-
const
|
|
1596
|
-
if (!
|
|
1597
|
-
const
|
|
1598
|
-
$r * Math.pow(2,
|
|
1595
|
+
const ae = z.current;
|
|
1596
|
+
if (!ae) return;
|
|
1597
|
+
const re = Math.min(
|
|
1598
|
+
$r * Math.pow(2, A.current),
|
|
1599
1599
|
Br
|
|
1600
1600
|
);
|
|
1601
|
-
|
|
1601
|
+
A.current += 1, _.current = setTimeout(async () => {
|
|
1602
1602
|
_.current = null, w.current = !0;
|
|
1603
1603
|
try {
|
|
1604
|
-
await ae
|
|
1604
|
+
await F(ae), A.current = 0, w.current = !1, await ue(ae);
|
|
1605
1605
|
} catch {
|
|
1606
|
-
w.current = !1,
|
|
1606
|
+
w.current = !1, N();
|
|
1607
1607
|
}
|
|
1608
|
-
},
|
|
1608
|
+
}, re);
|
|
1609
1609
|
},
|
|
1610
|
-
[
|
|
1610
|
+
[F, ue]
|
|
1611
1611
|
);
|
|
1612
|
-
|
|
1613
|
-
|
|
1612
|
+
H(() => {
|
|
1613
|
+
$.current = ye;
|
|
1614
1614
|
});
|
|
1615
1615
|
const xe = v(
|
|
1616
|
-
async (
|
|
1617
|
-
if (!m || !
|
|
1616
|
+
async (N) => {
|
|
1617
|
+
if (!m || !N)
|
|
1618
1618
|
throw new Error(
|
|
1619
1619
|
"Cannot connect: AppSync settings not ready or missing chatId"
|
|
1620
1620
|
);
|
|
1621
|
-
|
|
1621
|
+
T(), R.current = !0, z.current = N, A.current = 0, ge(N), await F(N);
|
|
1622
1622
|
},
|
|
1623
|
-
[m,
|
|
1623
|
+
[m, T, F, ge]
|
|
1624
1624
|
), ke = v(() => {
|
|
1625
|
-
|
|
1626
|
-
}, [
|
|
1625
|
+
R.current = !1, z.current = null, A.current = 0, T(), B(), D();
|
|
1626
|
+
}, [T, B, D]), $e = v(() => {
|
|
1627
1627
|
x.current.clear();
|
|
1628
1628
|
}, []);
|
|
1629
|
-
return
|
|
1630
|
-
!e || !m ||
|
|
1631
|
-
console.error("Failed to eagerly connect:",
|
|
1629
|
+
return H(() => {
|
|
1630
|
+
!e || !m || z.current === e || xe(e).catch((N) => {
|
|
1631
|
+
console.error("Failed to eagerly connect:", N), z.current = e, R.current = !0, $.current();
|
|
1632
1632
|
});
|
|
1633
|
-
}, [e, m, xe]),
|
|
1633
|
+
}, [e, m, xe]), H(() => () => {
|
|
1634
1634
|
ke();
|
|
1635
1635
|
}, [ke]), { connect: xe, disconnect: ke, clearProcessedIds: $e };
|
|
1636
1636
|
}
|
|
@@ -1698,10 +1698,10 @@ function Jr(t, e, o) {
|
|
|
1698
1698
|
)
|
|
1699
1699
|
};
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1701
|
+
function Gr(t, e) {
|
|
1702
1702
|
return t.flatMap((o) => o.id !== e ? [o] : o.content ? [{ ...o, attachments: void 0 }] : []);
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function Xr({
|
|
1705
1705
|
appId: t,
|
|
1706
1706
|
userId: e,
|
|
1707
1707
|
userName: o,
|
|
@@ -1713,19 +1713,19 @@ function Gr({
|
|
|
1713
1713
|
messages: c,
|
|
1714
1714
|
setMessages: a,
|
|
1715
1715
|
currentChat: l,
|
|
1716
|
-
setCurrentChat:
|
|
1716
|
+
setCurrentChat: f,
|
|
1717
1717
|
onChatClosed: u,
|
|
1718
1718
|
isChatClosed: h
|
|
1719
1719
|
}) {
|
|
1720
|
-
const { saveChatData: p, clearChatData:
|
|
1720
|
+
const { saveChatData: p, clearChatData: g, updateLastActivity: x, markChatClosed: b } = Qe({
|
|
1721
1721
|
appId: t
|
|
1722
|
-
}), { publishApiError:
|
|
1722
|
+
}), { publishApiError: z, publishNetworkError: A } = je(), { showCognition: _, hideCognition: I } = Pt(), R = J(d), w = v(
|
|
1723
1723
|
(m, k) => {
|
|
1724
|
-
m.response.content && a((
|
|
1725
|
-
if (
|
|
1726
|
-
return
|
|
1724
|
+
m.response.content && a((S) => {
|
|
1725
|
+
if (S.some((T) => T.isRatingRequest) || s?.welcome_message && m.response.content === s.welcome_message)
|
|
1726
|
+
return S;
|
|
1727
1727
|
const B = [
|
|
1728
|
-
...
|
|
1728
|
+
...S.filter((T) => !T.isThinking),
|
|
1729
1729
|
Zr(m)
|
|
1730
1730
|
];
|
|
1731
1731
|
return p(
|
|
@@ -1733,24 +1733,24 @@ function Gr({
|
|
|
1733
1733
|
e,
|
|
1734
1734
|
B,
|
|
1735
1735
|
i,
|
|
1736
|
-
|
|
1736
|
+
R.current?.getChatToken()
|
|
1737
1737
|
), B;
|
|
1738
1738
|
});
|
|
1739
1739
|
},
|
|
1740
|
-
[s, i, p, a, e,
|
|
1740
|
+
[s, i, p, a, e, R]
|
|
1741
1741
|
), y = v(() => {
|
|
1742
1742
|
I(), a((m) => m.filter((k) => !k.isThinking));
|
|
1743
|
-
}, [a, I]),
|
|
1744
|
-
a((m) => [...m.filter((
|
|
1743
|
+
}, [a, I]), P = v(() => {
|
|
1744
|
+
a((m) => [...m.filter((S) => !S.isRatingRequest), Hr()]);
|
|
1745
1745
|
}, [a]);
|
|
1746
|
-
|
|
1747
|
-
}, [
|
|
1748
|
-
const
|
|
1749
|
-
(m) =>
|
|
1750
|
-
[
|
|
1751
|
-
),
|
|
1746
|
+
H(() => {
|
|
1747
|
+
}, [P]);
|
|
1748
|
+
const ne = v(
|
|
1749
|
+
(m) => R.current ? R.current.getChatHistory(m) : Promise.resolve([]),
|
|
1750
|
+
[R]
|
|
1751
|
+
), G = v(() => R.current?.getChatToken() ?? null, [R]), Y = v(() => {
|
|
1752
1752
|
b(), u?.();
|
|
1753
|
-
}, [b, u]), { connect:
|
|
1753
|
+
}, [b, u]), { connect: M, disconnect: Z, clearProcessedIds: U } = Lr({
|
|
1754
1754
|
chatSettings: s,
|
|
1755
1755
|
chatId: l?.id ?? null,
|
|
1756
1756
|
messages: c,
|
|
@@ -1758,27 +1758,27 @@ function Gr({
|
|
|
1758
1758
|
onCognition: _,
|
|
1759
1759
|
onCognitionComplete: I,
|
|
1760
1760
|
onError: y,
|
|
1761
|
-
onChatClosed:
|
|
1762
|
-
onRatingRequest:
|
|
1763
|
-
onBreadcrumb:
|
|
1764
|
-
fetchHistory:
|
|
1765
|
-
getChatToken:
|
|
1766
|
-
}),
|
|
1767
|
-
I(),
|
|
1761
|
+
onChatClosed: Y,
|
|
1762
|
+
onRatingRequest: P,
|
|
1763
|
+
onBreadcrumb: Y,
|
|
1764
|
+
fetchHistory: ne,
|
|
1765
|
+
getChatToken: G
|
|
1766
|
+
}), L = v(() => {
|
|
1767
|
+
I(), Z(), U(), Tt(c), a(
|
|
1768
1768
|
(m) => m.filter((k) => Array.isArray(k) ? !1 : k.isWelcomeMessage)
|
|
1769
|
-
),
|
|
1769
|
+
), g(), f(null);
|
|
1770
1770
|
}, [
|
|
1771
1771
|
I,
|
|
1772
|
-
|
|
1773
|
-
|
|
1772
|
+
Z,
|
|
1773
|
+
U,
|
|
1774
1774
|
c,
|
|
1775
|
-
|
|
1775
|
+
g,
|
|
1776
1776
|
a,
|
|
1777
|
-
|
|
1777
|
+
f
|
|
1778
1778
|
]), j = v(
|
|
1779
|
-
(m, k) => a((
|
|
1779
|
+
(m, k) => a((S) => Fr(S, m, k)),
|
|
1780
1780
|
[a]
|
|
1781
|
-
),
|
|
1781
|
+
), Q = v(
|
|
1782
1782
|
async (m) => {
|
|
1783
1783
|
const k = await m.createConversation({
|
|
1784
1784
|
userId: n || e,
|
|
@@ -1789,100 +1789,100 @@ function Gr({
|
|
|
1789
1789
|
searchParams: eo()
|
|
1790
1790
|
}
|
|
1791
1791
|
});
|
|
1792
|
-
|
|
1792
|
+
f({ id: k.chat_id });
|
|
1793
1793
|
try {
|
|
1794
|
-
await
|
|
1795
|
-
} catch (
|
|
1794
|
+
await M(k.chat_id);
|
|
1795
|
+
} catch (S) {
|
|
1796
1796
|
console.warn(
|
|
1797
1797
|
"Failed to connect realtime channel, continuing with REST-only delivery:",
|
|
1798
|
-
|
|
1798
|
+
S
|
|
1799
1799
|
);
|
|
1800
1800
|
}
|
|
1801
1801
|
return k.chat_id;
|
|
1802
1802
|
},
|
|
1803
|
-
[n, e, i, o, r,
|
|
1804
|
-
),
|
|
1805
|
-
(m, k,
|
|
1806
|
-
|
|
1807
|
-
({ file: B },
|
|
1803
|
+
[n, e, i, o, r, f, M]
|
|
1804
|
+
), ee = v(
|
|
1805
|
+
(m, k, S, D) => Promise.all(
|
|
1806
|
+
S.map(
|
|
1807
|
+
({ file: B }, T) => m.uploadAttachment({
|
|
1808
1808
|
conversationId: k,
|
|
1809
1809
|
file: B,
|
|
1810
|
-
onProgress: (
|
|
1811
|
-
|
|
1812
|
-
(
|
|
1810
|
+
onProgress: ($) => j(
|
|
1811
|
+
D,
|
|
1812
|
+
(F) => Jr(F, T, $)
|
|
1813
1813
|
)
|
|
1814
|
-
}).catch((
|
|
1815
|
-
throw Mt(
|
|
1814
|
+
}).catch(($) => {
|
|
1815
|
+
throw Mt($, B.name);
|
|
1816
1816
|
})
|
|
1817
1817
|
)
|
|
1818
1818
|
),
|
|
1819
1819
|
[j]
|
|
1820
|
-
),
|
|
1821
|
-
(m, k,
|
|
1822
|
-
I(),
|
|
1823
|
-
const B = () => j(
|
|
1820
|
+
), te = v(
|
|
1821
|
+
(m, k, S, D) => {
|
|
1822
|
+
I(), D && a((T) => Gr(T, S)), a((T) => T.filter(($) => !$.isThinking));
|
|
1823
|
+
const B = () => j(S, (T) => ({ ...T, isFailed: !0 }));
|
|
1824
1824
|
if (m instanceof Ot) {
|
|
1825
1825
|
B();
|
|
1826
1826
|
return;
|
|
1827
1827
|
}
|
|
1828
|
-
if (m instanceof
|
|
1829
|
-
|
|
1828
|
+
if (m instanceof Ye || m instanceof Oe && m.status === 403) {
|
|
1829
|
+
A();
|
|
1830
1830
|
return;
|
|
1831
1831
|
}
|
|
1832
|
-
|
|
1832
|
+
z(m), m instanceof Oe && // A 401 means an expired or closed chat token: drop the session so
|
|
1833
1833
|
// the next send starts a fresh one, as for a client-side expiry.
|
|
1834
|
-
(m.status >= 500 || m.status === 401) ? (
|
|
1834
|
+
(m.status >= 500 || m.status === 401) ? (f(null), g(), a((T) => T.filter(($) => $.id !== S)), k.reset()) : B();
|
|
1835
1835
|
},
|
|
1836
1836
|
[
|
|
1837
1837
|
I,
|
|
1838
1838
|
a,
|
|
1839
1839
|
j,
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1840
|
+
A,
|
|
1841
|
+
z,
|
|
1842
|
+
f,
|
|
1843
|
+
g
|
|
1844
1844
|
]
|
|
1845
|
-
),
|
|
1845
|
+
), oe = v(
|
|
1846
1846
|
async (m, k = []) => {
|
|
1847
|
-
if (!d || c.some((
|
|
1847
|
+
if (!d || c.some((D) => D.isRatingRequest)) return;
|
|
1848
1848
|
if (h) {
|
|
1849
|
-
a((
|
|
1849
|
+
a((D) => [...D, Vr()]);
|
|
1850
1850
|
return;
|
|
1851
1851
|
}
|
|
1852
|
-
const
|
|
1853
|
-
_(), a([...c,
|
|
1852
|
+
const S = Wr(m, k);
|
|
1853
|
+
_(), a([...c, S]), x();
|
|
1854
1854
|
try {
|
|
1855
|
-
const
|
|
1855
|
+
const D = l?.id || await Q(d), B = await ee(
|
|
1856
1856
|
d,
|
|
1857
|
-
|
|
1857
|
+
D,
|
|
1858
1858
|
k,
|
|
1859
|
-
|
|
1859
|
+
S.id
|
|
1860
1860
|
);
|
|
1861
|
-
B.length > 0 && j(
|
|
1862
|
-
|
|
1861
|
+
B.length > 0 && j(S.id, ($) => ({
|
|
1862
|
+
...$,
|
|
1863
1863
|
attachments: At(B, k)
|
|
1864
1864
|
}));
|
|
1865
|
-
const
|
|
1865
|
+
const T = await d.replyToConversation({
|
|
1866
1866
|
text: m.content,
|
|
1867
1867
|
attachments: B,
|
|
1868
|
-
conversationId:
|
|
1868
|
+
conversationId: D,
|
|
1869
1869
|
userId: n || e,
|
|
1870
1870
|
deviceId: i,
|
|
1871
1871
|
userName: o,
|
|
1872
1872
|
userData: r
|
|
1873
1873
|
});
|
|
1874
|
-
j(
|
|
1875
|
-
|
|
1876
|
-
id:
|
|
1874
|
+
j(S.id, ($) => ({
|
|
1875
|
+
...$,
|
|
1876
|
+
id: T.message_id,
|
|
1877
1877
|
isNew: !1
|
|
1878
1878
|
}));
|
|
1879
|
-
} catch (
|
|
1880
|
-
throw
|
|
1881
|
-
|
|
1879
|
+
} catch (D) {
|
|
1880
|
+
throw te(
|
|
1881
|
+
D,
|
|
1882
1882
|
d,
|
|
1883
|
-
|
|
1883
|
+
S.id,
|
|
1884
1884
|
k.length > 0
|
|
1885
|
-
),
|
|
1885
|
+
), D;
|
|
1886
1886
|
}
|
|
1887
1887
|
},
|
|
1888
1888
|
[
|
|
@@ -1893,32 +1893,32 @@ function Gr({
|
|
|
1893
1893
|
_,
|
|
1894
1894
|
x,
|
|
1895
1895
|
l?.id,
|
|
1896
|
-
|
|
1897
|
-
|
|
1896
|
+
Q,
|
|
1897
|
+
ee,
|
|
1898
1898
|
j,
|
|
1899
|
-
|
|
1899
|
+
te,
|
|
1900
1900
|
n,
|
|
1901
1901
|
e,
|
|
1902
1902
|
i,
|
|
1903
1903
|
o,
|
|
1904
1904
|
r
|
|
1905
1905
|
]
|
|
1906
|
-
),
|
|
1906
|
+
), W = v(
|
|
1907
1907
|
async (m) => {
|
|
1908
1908
|
const k = l?.id;
|
|
1909
|
-
!
|
|
1909
|
+
!R.current || !k || await R.current.addRating(k, m);
|
|
1910
1910
|
},
|
|
1911
|
-
[l?.id,
|
|
1911
|
+
[l?.id, R]
|
|
1912
1912
|
);
|
|
1913
1913
|
return {
|
|
1914
|
-
onCleanMessages:
|
|
1915
|
-
onSendMessage:
|
|
1916
|
-
onRateChat:
|
|
1914
|
+
onCleanMessages: L,
|
|
1915
|
+
onSendMessage: oe,
|
|
1916
|
+
onRateChat: W
|
|
1917
1917
|
};
|
|
1918
1918
|
}
|
|
1919
|
-
const
|
|
1919
|
+
const Yr = { 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" };
|
|
1920
1920
|
function qt(t) {
|
|
1921
|
-
return typeof window > "u" || typeof import.meta > "u" ? "" :
|
|
1921
|
+
return typeof window > "u" || typeof import.meta > "u" ? "" : Yr[t] || "";
|
|
1922
1922
|
}
|
|
1923
1923
|
const Qr = qt("VITE_API_URL"), en = qt("VITE_REGION_API_URL");
|
|
1924
1924
|
function tn() {
|
|
@@ -2038,13 +2038,13 @@ const nn = {
|
|
|
2038
2038
|
factor: 2
|
|
2039
2039
|
};
|
|
2040
2040
|
function an(t) {
|
|
2041
|
-
return t instanceof
|
|
2041
|
+
return t instanceof Ye ? !0 : t instanceof Oe ? t.status === 429 || t.status >= 500 : !1;
|
|
2042
2042
|
}
|
|
2043
2043
|
function sn(t, e) {
|
|
2044
2044
|
const o = e.minDelayMs * e.factor ** t, r = Math.min(o, e.maxDelayMs);
|
|
2045
2045
|
return Math.random() * r;
|
|
2046
2046
|
}
|
|
2047
|
-
async function
|
|
2047
|
+
async function ft(t, e = {}) {
|
|
2048
2048
|
const o = { ...nn, ...e };
|
|
2049
2049
|
for (let r = 0; ; r++)
|
|
2050
2050
|
try {
|
|
@@ -2057,36 +2057,36 @@ async function gt(t, e = {}) {
|
|
|
2057
2057
|
);
|
|
2058
2058
|
}
|
|
2059
2059
|
}
|
|
2060
|
-
const
|
|
2060
|
+
const Te = /* @__PURE__ */ new Map(), Me = /* @__PURE__ */ new Map();
|
|
2061
2061
|
function ln(t, e, o) {
|
|
2062
|
-
const r = o?.dedupe !== !1, [n, i] =
|
|
2063
|
-
() =>
|
|
2064
|
-
), { publishApiError: d, publishNetworkError: s } = je(), [c, a] =
|
|
2065
|
-
|
|
2062
|
+
const r = o?.dedupe !== !1, [n, i] = C(
|
|
2063
|
+
() => Te.get(t)
|
|
2064
|
+
), { publishApiError: d, publishNetworkError: s } = je(), [c, a] = C(void 0), [l, f] = C(!1), u = K(!0);
|
|
2065
|
+
K(() => (u.current = !0, () => {
|
|
2066
2066
|
u.current = !1;
|
|
2067
2067
|
}));
|
|
2068
2068
|
const h = v(async () => {
|
|
2069
|
-
if (
|
|
2070
|
-
const p =
|
|
2069
|
+
if (Te.has(t)) {
|
|
2070
|
+
const p = Te.get(t);
|
|
2071
2071
|
return i(p), p;
|
|
2072
2072
|
}
|
|
2073
|
-
|
|
2073
|
+
f(!0), a(void 0);
|
|
2074
2074
|
try {
|
|
2075
2075
|
if (r && Me.has(t))
|
|
2076
2076
|
return await Me.get(t);
|
|
2077
2077
|
const p = e();
|
|
2078
2078
|
r && Me.set(t, p);
|
|
2079
|
-
const
|
|
2080
|
-
return
|
|
2079
|
+
const g = await p;
|
|
2080
|
+
return Te.set(t, g), u.current && i(g), g;
|
|
2081
2081
|
} catch (p) {
|
|
2082
|
-
throw p instanceof
|
|
2082
|
+
throw p instanceof Ye || p instanceof Oe && p.status === 403 ? s() : d(p), u.current && a(p), p;
|
|
2083
2083
|
} finally {
|
|
2084
|
-
Me.delete(t), u.current &&
|
|
2084
|
+
Me.delete(t), u.current && f(!1);
|
|
2085
2085
|
}
|
|
2086
2086
|
}, [t, r, e, d, s]);
|
|
2087
2087
|
return { data: n, error: c, isLoading: l, fetch: h };
|
|
2088
2088
|
}
|
|
2089
|
-
function
|
|
2089
|
+
function gt(t, e) {
|
|
2090
2090
|
const o = t?.deviceId || crypto.randomUUID();
|
|
2091
2091
|
return t?.userId ? t.externalId !== e ? { userId: t.userId, externalId: e, deviceId: o } : {
|
|
2092
2092
|
userId: t.userId,
|
|
@@ -2095,10 +2095,10 @@ function ft(t, e) {
|
|
|
2095
2095
|
} : e ? { userId: e, externalId: e, deviceId: o } : { userId: crypto.randomUUID(), externalId: null, deviceId: o };
|
|
2096
2096
|
}
|
|
2097
2097
|
function cn(t) {
|
|
2098
|
-
const { appId: e, initialUserId: o } = t, { getSavedChatData: r } = Qe({ appId: e }), [n, i] =
|
|
2099
|
-
() =>
|
|
2100
|
-
), [d, s] =
|
|
2101
|
-
return d !== o && (s(o), i(
|
|
2098
|
+
const { appId: e, initialUserId: o } = t, { getSavedChatData: r } = Qe({ appId: e }), [n, i] = C(
|
|
2099
|
+
() => gt(r(), o)
|
|
2100
|
+
), [d, s] = C(o);
|
|
2101
|
+
return d !== o && (s(o), i(gt(r(), o))), {
|
|
2102
2102
|
// Identity is available synchronously; kept in the contract because
|
|
2103
2103
|
// consumers (SDK boot) still key off it.
|
|
2104
2104
|
isReady: !0,
|
|
@@ -2119,59 +2119,59 @@ function dn({
|
|
|
2119
2119
|
externalId: d,
|
|
2120
2120
|
deviceId: s,
|
|
2121
2121
|
isReady: c
|
|
2122
|
-
} = cn({ appId: e, initialUserId: o }), { isChatExpired: a, clearChatData: l, getSavedChatData:
|
|
2122
|
+
} = cn({ appId: e, initialUserId: o }), { isChatExpired: a, clearChatData: l, getSavedChatData: f } = Qe({
|
|
2123
2123
|
appId: e
|
|
2124
|
-
}), { current: u } =
|
|
2124
|
+
}), { current: u } = K(t || tn()), [h] = C(
|
|
2125
2125
|
new rn({
|
|
2126
2126
|
baseURL: u,
|
|
2127
2127
|
appId: e
|
|
2128
2128
|
})
|
|
2129
|
-
), [p,
|
|
2130
|
-
|
|
2129
|
+
), [p, g] = C(null), [x, b] = C(null), [z, A] = C([]), [_, I] = C(!1), [R, w] = C(!1), [y, P] = C(!0), G = ln(`sdk-boot-${e}`, () => h.boot()).fetch;
|
|
2130
|
+
H(() => {
|
|
2131
2131
|
if (a())
|
|
2132
2132
|
l();
|
|
2133
2133
|
else {
|
|
2134
2134
|
const {
|
|
2135
|
-
conversationId:
|
|
2136
|
-
userId:
|
|
2137
|
-
messages:
|
|
2138
|
-
isChatClosed:
|
|
2135
|
+
conversationId: M,
|
|
2136
|
+
userId: Z,
|
|
2137
|
+
messages: U,
|
|
2138
|
+
isChatClosed: L,
|
|
2139
2139
|
chatToken: j
|
|
2140
|
-
} =
|
|
2141
|
-
|
|
2142
|
-
id:
|
|
2143
|
-
}), h.setChatToken(j ?? null),
|
|
2140
|
+
} = f();
|
|
2141
|
+
M && Z && (b({
|
|
2142
|
+
id: M
|
|
2143
|
+
}), h.setChatToken(j ?? null), U && U.length > 0 && A(U), L && w(!0));
|
|
2144
2144
|
}
|
|
2145
|
-
}, [
|
|
2146
|
-
const
|
|
2147
|
-
return
|
|
2148
|
-
if (
|
|
2149
|
-
|
|
2150
|
-
const [
|
|
2151
|
-
|
|
2145
|
+
}, [f, a, l, h]);
|
|
2146
|
+
const Y = K(!1);
|
|
2147
|
+
return H(() => {
|
|
2148
|
+
if (Y.current) return;
|
|
2149
|
+
Y.current = !0, (async () => {
|
|
2150
|
+
const [Z, U] = await nt(
|
|
2151
|
+
ft(() => h.getOrganizationByAppId(e))
|
|
2152
2152
|
);
|
|
2153
|
-
if (
|
|
2154
|
-
console.error("Failed to fetch organization data:",
|
|
2153
|
+
if (U) {
|
|
2154
|
+
console.error("Failed to fetch organization data:", U), P(!1), I(!0);
|
|
2155
2155
|
return;
|
|
2156
2156
|
}
|
|
2157
|
-
h.setRegion(
|
|
2158
|
-
const [
|
|
2157
|
+
h.setRegion(Z.region);
|
|
2158
|
+
const [L, j] = await nt(ft(G));
|
|
2159
2159
|
if (j) {
|
|
2160
|
-
|
|
2160
|
+
P(!1), I(!0);
|
|
2161
2161
|
return;
|
|
2162
2162
|
}
|
|
2163
2163
|
const {
|
|
2164
|
-
conversationId:
|
|
2165
|
-
userId:
|
|
2166
|
-
messages:
|
|
2167
|
-
} =
|
|
2168
|
-
|
|
2169
|
-
await Dt(h,
|
|
2164
|
+
conversationId: Q,
|
|
2165
|
+
userId: ee,
|
|
2166
|
+
messages: te
|
|
2167
|
+
} = f();
|
|
2168
|
+
Q && ee && te.some(jt) && A(
|
|
2169
|
+
await Dt(h, Q, te)
|
|
2170
2170
|
);
|
|
2171
|
-
const
|
|
2172
|
-
|
|
2171
|
+
const oe = L.chat_settings.welcome_message;
|
|
2172
|
+
g(L.chat_settings), P(L.chat_settings.is_active ?? !0), oe && A((W) => W.length > 0 || W.some((m) => m.isWelcomeMessage) ? W : [Kr(oe)]), I(!0);
|
|
2173
2173
|
})();
|
|
2174
|
-
}, [c, h, e,
|
|
2174
|
+
}, [c, h, e, G, f]), {
|
|
2175
2175
|
userId: i,
|
|
2176
2176
|
userName: r,
|
|
2177
2177
|
userData: n,
|
|
@@ -2180,9 +2180,9 @@ function dn({
|
|
|
2180
2180
|
apiClient: h,
|
|
2181
2181
|
chatSettings: p,
|
|
2182
2182
|
currentChat: x,
|
|
2183
|
-
messages:
|
|
2183
|
+
messages: z,
|
|
2184
2184
|
isReady: _,
|
|
2185
|
-
isChatClosed:
|
|
2185
|
+
isChatClosed: R,
|
|
2186
2186
|
isChatActive: y
|
|
2187
2187
|
};
|
|
2188
2188
|
}
|
|
@@ -2191,16 +2191,16 @@ function un() {
|
|
|
2191
2191
|
return typeof window > "u" ? !1 : window.matchMedia(yt).matches;
|
|
2192
2192
|
}
|
|
2193
2193
|
function hn(t) {
|
|
2194
|
-
const [e, o] =
|
|
2194
|
+
const [e, o] = C(un), [r, n] = C(
|
|
2195
2195
|
null
|
|
2196
2196
|
), i = t ?? e, d = typeof window > "u";
|
|
2197
|
-
return
|
|
2197
|
+
return H(() => {
|
|
2198
2198
|
if (d) return;
|
|
2199
2199
|
const s = window.matchMedia(yt), c = (a) => {
|
|
2200
2200
|
o(a.matches);
|
|
2201
2201
|
};
|
|
2202
2202
|
return c(s), s.addEventListener("change", c), () => s.removeEventListener("change", c);
|
|
2203
|
-
}, [d]),
|
|
2203
|
+
}, [d]), H(() => {
|
|
2204
2204
|
if (d) return;
|
|
2205
2205
|
const s = document.createElement("div");
|
|
2206
2206
|
return s.className = "eloquent-ai-chat-portal", s.style.position = "relative", s.style.zIndex = "30", document.body.appendChild(s), n(s), () => {
|
|
@@ -2212,8 +2212,8 @@ function hn(t) {
|
|
|
2212
2212
|
portalContainer: r
|
|
2213
2213
|
};
|
|
2214
2214
|
}
|
|
2215
|
-
const pn = 2,
|
|
2216
|
-
function
|
|
2215
|
+
const pn = 2, fn = (t) => `eloquent-ai:chat-widget-closed-${t}`;
|
|
2216
|
+
function gn({
|
|
2217
2217
|
environment: t,
|
|
2218
2218
|
apiUrl: e,
|
|
2219
2219
|
appId: o,
|
|
@@ -2226,106 +2226,106 @@ function fn({
|
|
|
2226
2226
|
hasCloseButton: a,
|
|
2227
2227
|
hasCleanChatButton: l,
|
|
2228
2228
|
// Deprecated aliases, kept until hosts migrate to the is/has names above.
|
|
2229
|
-
initialOpen:
|
|
2229
|
+
initialOpen: f,
|
|
2230
2230
|
closeButton: u,
|
|
2231
2231
|
cleanChatButton: h,
|
|
2232
2232
|
proactiveMessageHideDelay: p = 5e3,
|
|
2233
|
-
isAlwaysOpen:
|
|
2233
|
+
isAlwaysOpen: g = !1,
|
|
2234
2234
|
hasCleanChatButtonOverride: x
|
|
2235
2235
|
}) {
|
|
2236
|
-
const { isMobile: b, portalContainer:
|
|
2237
|
-
userId:
|
|
2236
|
+
const { isMobile: b, portalContainer: z } = hn(s), {
|
|
2237
|
+
userId: A,
|
|
2238
2238
|
externalId: _,
|
|
2239
2239
|
deviceId: I,
|
|
2240
|
-
apiClient:
|
|
2240
|
+
apiClient: R,
|
|
2241
2241
|
chatSettings: w,
|
|
2242
2242
|
currentChat: y,
|
|
2243
|
-
messages:
|
|
2244
|
-
isReady:
|
|
2245
|
-
isChatClosed:
|
|
2246
|
-
isChatActive:
|
|
2243
|
+
messages: P,
|
|
2244
|
+
isReady: ne,
|
|
2245
|
+
isChatClosed: G,
|
|
2246
|
+
isChatActive: Y
|
|
2247
2247
|
} = dn({
|
|
2248
2248
|
apiUrl: e,
|
|
2249
2249
|
appId: o,
|
|
2250
2250
|
initialUserId: r,
|
|
2251
2251
|
userName: n,
|
|
2252
2252
|
userData: i
|
|
2253
|
-
}),
|
|
2254
|
-
|
|
2255
|
-
if (!
|
|
2253
|
+
}), M = Qt({ chatProps: d, chatSettings: w }), Z = c ?? f ?? !1, U = a ?? u ?? !0, L = l ?? h ?? !0, j = fn(o), [Q, ee] = C(() => g ? !0 : it(j) === "true" || b ? !1 : Z ?? b), [te, oe] = C(!1);
|
|
2254
|
+
H(() => {
|
|
2255
|
+
if (!ne || te || (oe(!0), g)) return;
|
|
2256
2256
|
const ce = w?.initial_open;
|
|
2257
|
-
ce != null && (b || ce && it(j) === "true" ||
|
|
2257
|
+
ce != null && (b || ce && it(j) === "true" || ee(ce));
|
|
2258
2258
|
}, [
|
|
2259
|
-
|
|
2260
|
-
|
|
2259
|
+
ne,
|
|
2260
|
+
te,
|
|
2261
2261
|
w?.initial_open,
|
|
2262
2262
|
b,
|
|
2263
2263
|
j,
|
|
2264
|
-
|
|
2264
|
+
g
|
|
2265
2265
|
]);
|
|
2266
|
-
const
|
|
2266
|
+
const W = w?.initial_open ?? Z, m = w?.close_button ?? U, k = x ?? w?.clean_chat_button ?? L, S = w?.proactive_message_hide_delay ?? p, D = v(
|
|
2267
2267
|
(ce) => {
|
|
2268
|
-
|
|
2269
|
-
const ot = typeof ce == "function" ? ce(
|
|
2270
|
-
return ot ?
|
|
2268
|
+
g || ee((Pe) => {
|
|
2269
|
+
const ot = typeof ce == "function" ? ce(Pe) : ce;
|
|
2270
|
+
return ot ? Yt(j) : Xt(j, "true", pn), ot;
|
|
2271
2271
|
});
|
|
2272
2272
|
},
|
|
2273
|
-
[j,
|
|
2274
|
-
), B = $t(
|
|
2273
|
+
[j, g]
|
|
2274
|
+
), B = $t(Q, 400), [T, $] = C(
|
|
2275
2275
|
d?.messages ?? []
|
|
2276
|
-
), [
|
|
2277
|
-
xe !==
|
|
2278
|
-
const [$e,
|
|
2279
|
-
$e !== y && (
|
|
2280
|
-
const [
|
|
2281
|
-
|
|
2276
|
+
), [F, ue] = C(y), [ge, ye] = C(!1), [xe, ke] = C(P);
|
|
2277
|
+
xe !== P && (ke(P), P.length > 0 && $(P));
|
|
2278
|
+
const [$e, N] = C(y);
|
|
2279
|
+
$e !== y && (N(y), y && ue(y));
|
|
2280
|
+
const [ae, re] = C(G);
|
|
2281
|
+
ae !== G && (re(G), G && ye(!0));
|
|
2282
2282
|
const Re = v(() => {
|
|
2283
2283
|
ye(!0);
|
|
2284
|
-
}, []), [Be, Ne] =
|
|
2285
|
-
text:
|
|
2286
|
-
isVisible:
|
|
2287
|
-
autoHideDelay:
|
|
2288
|
-
}, { onSendMessage:
|
|
2284
|
+
}, []), [Be, Ne] = C(!1), qe = ne && w?.auto_display_welcome_message && w?.welcome_message ? w.welcome_message : "", le = {
|
|
2285
|
+
text: qe,
|
|
2286
|
+
isVisible: qe !== "" && !Be,
|
|
2287
|
+
autoHideDelay: S
|
|
2288
|
+
}, { onSendMessage: X, onCleanMessages: ie, onRateChat: xt } = Xr({
|
|
2289
2289
|
appId: o,
|
|
2290
|
-
userId:
|
|
2290
|
+
userId: A,
|
|
2291
2291
|
userName: n,
|
|
2292
2292
|
userData: i,
|
|
2293
2293
|
externalId: _,
|
|
2294
2294
|
deviceId: I,
|
|
2295
|
-
apiClient:
|
|
2295
|
+
apiClient: R,
|
|
2296
2296
|
chatSettings: w,
|
|
2297
|
-
setMessages:
|
|
2298
|
-
messages:
|
|
2299
|
-
currentChat:
|
|
2297
|
+
setMessages: $,
|
|
2298
|
+
messages: T,
|
|
2299
|
+
currentChat: F,
|
|
2300
2300
|
setCurrentChat: ue,
|
|
2301
2301
|
onChatClosed: Re,
|
|
2302
|
-
isChatClosed:
|
|
2302
|
+
isChatClosed: ge
|
|
2303
2303
|
});
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
}, [
|
|
2304
|
+
H(() => {
|
|
2305
|
+
P.length > 0 && $(P);
|
|
2306
|
+
}, [P]), H(() => {
|
|
2307
2307
|
y && ue(y);
|
|
2308
2308
|
}, [y]);
|
|
2309
|
-
const tt =
|
|
2310
|
-
|
|
2311
|
-
if (!
|
|
2309
|
+
const tt = K(null);
|
|
2310
|
+
H(() => {
|
|
2311
|
+
if (!F || !_ || !R) return;
|
|
2312
2312
|
const ce = {
|
|
2313
|
-
userId:
|
|
2313
|
+
userId: A,
|
|
2314
2314
|
userName: n,
|
|
2315
2315
|
userData: i,
|
|
2316
2316
|
externalId: _,
|
|
2317
2317
|
deviceId: I,
|
|
2318
|
-
conversationId:
|
|
2319
|
-
},
|
|
2320
|
-
tt.current !==
|
|
2318
|
+
conversationId: F.id
|
|
2319
|
+
}, Pe = JSON.stringify(ce);
|
|
2320
|
+
tt.current !== Pe && (tt.current = Pe, R.identifyUser(ce));
|
|
2321
2321
|
}, [
|
|
2322
2322
|
_,
|
|
2323
|
-
|
|
2323
|
+
A,
|
|
2324
2324
|
n,
|
|
2325
2325
|
i,
|
|
2326
2326
|
I,
|
|
2327
|
-
|
|
2328
|
-
|
|
2327
|
+
F,
|
|
2328
|
+
R
|
|
2329
2329
|
]);
|
|
2330
2330
|
const kt = v(() => {
|
|
2331
2331
|
ie(), ye(!1);
|
|
@@ -2333,30 +2333,31 @@ function fn({
|
|
|
2333
2333
|
Ne(!0);
|
|
2334
2334
|
}, []);
|
|
2335
2335
|
return {
|
|
2336
|
-
isReady:
|
|
2337
|
-
isChatActive:
|
|
2338
|
-
isInitiallyOpen:
|
|
2336
|
+
isReady: ne,
|
|
2337
|
+
isChatActive: Y,
|
|
2338
|
+
isInitiallyOpen: W,
|
|
2339
2339
|
hasCloseButton: m,
|
|
2340
2340
|
hasCleanChatButton: k,
|
|
2341
2341
|
isMobile: b,
|
|
2342
|
-
|
|
2343
|
-
|
|
2342
|
+
chatId: F?.id ?? null,
|
|
2343
|
+
chatInterfaceProps: M,
|
|
2344
|
+
chatOpen: Q,
|
|
2344
2345
|
chatOpenDebounced: B,
|
|
2345
|
-
messages:
|
|
2346
|
-
portalContainer:
|
|
2347
|
-
onSendMessage:
|
|
2348
|
-
setChatOpen:
|
|
2346
|
+
messages: T,
|
|
2347
|
+
portalContainer: z,
|
|
2348
|
+
onSendMessage: X,
|
|
2349
|
+
setChatOpen: D,
|
|
2349
2350
|
onCleanMessages: ie,
|
|
2350
2351
|
proactiveMessage: le,
|
|
2351
2352
|
hideProactiveMessage: _t,
|
|
2352
|
-
isChatClosed:
|
|
2353
|
+
isChatClosed: ge,
|
|
2353
2354
|
onStartNewChat: kt,
|
|
2354
2355
|
onRateChat: xt
|
|
2355
2356
|
};
|
|
2356
2357
|
}
|
|
2357
2358
|
function mn(t) {
|
|
2358
|
-
const [e, o] =
|
|
2359
|
-
return
|
|
2359
|
+
const [e, o] = C(0);
|
|
2360
|
+
return H(() => {
|
|
2360
2361
|
const r = window.visualViewport;
|
|
2361
2362
|
if (!t || !r) {
|
|
2362
2363
|
o(0);
|
|
@@ -2372,7 +2373,7 @@ function mn(t) {
|
|
|
2372
2373
|
}, [t]), e;
|
|
2373
2374
|
}
|
|
2374
2375
|
function bn(t) {
|
|
2375
|
-
|
|
2376
|
+
H(() => {
|
|
2376
2377
|
if (!t) return;
|
|
2377
2378
|
const { body: e } = document, o = window.scrollY, r = {
|
|
2378
2379
|
position: e.style.position,
|
|
@@ -2387,7 +2388,7 @@ function bn(t) {
|
|
|
2387
2388
|
}, [t]);
|
|
2388
2389
|
}
|
|
2389
2390
|
function vn() {
|
|
2390
|
-
const [t, e] =
|
|
2391
|
+
const [t, e] = C(!1), [o, r] = C(null), n = K(null), i = K(null), d = v((c = "...") => {
|
|
2391
2392
|
const a = () => {
|
|
2392
2393
|
r(c), e(!0), i.current = null, n.current && clearTimeout(n.current), n.current = setTimeout(() => {
|
|
2393
2394
|
n.current = null, i.current && a();
|
|
@@ -2411,7 +2412,7 @@ function wn({
|
|
|
2411
2412
|
return /* @__PURE__ */ q(Bt.Provider, { value: e, children: t });
|
|
2412
2413
|
}
|
|
2413
2414
|
const qn = ({ children: t }) => {
|
|
2414
|
-
const [e, o] =
|
|
2415
|
+
const [e, o] = C(null), [r, n] = C(!1), i = Lt(o), a = {
|
|
2415
2416
|
error: e,
|
|
2416
2417
|
hideSdk: r,
|
|
2417
2418
|
publishApiError: i,
|
|
@@ -2434,39 +2435,42 @@ function xn({
|
|
|
2434
2435
|
isInitiallyOpen: a,
|
|
2435
2436
|
// Deprecated aliases, resolved in useChat (new name wins).
|
|
2436
2437
|
closeButton: l,
|
|
2437
|
-
cleanChatButton:
|
|
2438
|
+
cleanChatButton: f,
|
|
2438
2439
|
initialOpen: u,
|
|
2439
2440
|
INTERNAL_ONLY_CHAT_INTERFACE_ONLY: h = !1,
|
|
2440
2441
|
INTERNAL_ONLY_SHOW_CLEAN_CHAT_BUTTON: p = void 0,
|
|
2441
|
-
INTERNAL_ONLY_BLOCK_STYLE:
|
|
2442
|
+
INTERNAL_ONLY_BLOCK_STYLE: g = !1,
|
|
2442
2443
|
INTERNAL_ONLY_FEATURE_MESSAGE_CLICK: x = void 0,
|
|
2443
2444
|
INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK: b = void 0,
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2445
|
+
INTERNAL_ONLY_ON_CHAT_ID: z = void 0,
|
|
2446
|
+
INTERNAL_ONLY_HIGHLIGHTED_MESSAGE_ID: A = null,
|
|
2447
|
+
INTERNAL_ONLY_SHOW_COPY_BUTTON: _ = !1,
|
|
2448
|
+
INTERNAL_ONLY_ENVIRONMENT: I = "live",
|
|
2449
|
+
INTERNAL_ONLY_API_URL: R
|
|
2447
2450
|
}) {
|
|
2448
|
-
const { hideSdk:
|
|
2449
|
-
isReady:
|
|
2450
|
-
isChatActive:
|
|
2451
|
-
isInitiallyOpen:
|
|
2452
|
-
hasCloseButton:
|
|
2453
|
-
hasCleanChatButton:
|
|
2454
|
-
isMobile:
|
|
2455
|
-
|
|
2451
|
+
const { hideSdk: w } = je(), {
|
|
2452
|
+
isReady: y,
|
|
2453
|
+
isChatActive: P,
|
|
2454
|
+
isInitiallyOpen: ne,
|
|
2455
|
+
hasCloseButton: G,
|
|
2456
|
+
hasCleanChatButton: Y,
|
|
2457
|
+
isMobile: M,
|
|
2458
|
+
chatId: Z,
|
|
2459
|
+
chatOpen: U,
|
|
2456
2460
|
chatInterfaceProps: L,
|
|
2457
|
-
chatOpenDebounced:
|
|
2458
|
-
messages:
|
|
2459
|
-
portalContainer:
|
|
2460
|
-
onSendMessage:
|
|
2461
|
-
setChatOpen:
|
|
2462
|
-
proactiveMessage:
|
|
2463
|
-
hideProactiveMessage:
|
|
2464
|
-
isChatClosed:
|
|
2465
|
-
onStartNewChat:
|
|
2466
|
-
onRateChat:
|
|
2467
|
-
} =
|
|
2468
|
-
environment:
|
|
2469
|
-
apiUrl:
|
|
2461
|
+
chatOpenDebounced: j,
|
|
2462
|
+
messages: Q,
|
|
2463
|
+
portalContainer: ee,
|
|
2464
|
+
onSendMessage: te,
|
|
2465
|
+
setChatOpen: oe,
|
|
2466
|
+
proactiveMessage: W,
|
|
2467
|
+
hideProactiveMessage: m,
|
|
2468
|
+
isChatClosed: k,
|
|
2469
|
+
onStartNewChat: S,
|
|
2470
|
+
onRateChat: D
|
|
2471
|
+
} = gn({
|
|
2472
|
+
environment: I,
|
|
2473
|
+
apiUrl: R,
|
|
2470
2474
|
appId: t,
|
|
2471
2475
|
userId: e,
|
|
2472
2476
|
userName: o,
|
|
@@ -2478,17 +2482,21 @@ function xn({
|
|
|
2478
2482
|
hasCleanChatButton: c,
|
|
2479
2483
|
initialOpen: u,
|
|
2480
2484
|
closeButton: l,
|
|
2481
|
-
cleanChatButton:
|
|
2485
|
+
cleanChatButton: f,
|
|
2482
2486
|
proactiveMessageHideDelay: i,
|
|
2483
2487
|
// Embedded: the interface is the page content with no launcher to reopen
|
|
2484
2488
|
// it, so nothing (boot initial_open, closed-cookie, props) may close it.
|
|
2485
2489
|
isAlwaysOpen: h,
|
|
2486
2490
|
hasCleanChatButtonOverride: p
|
|
2487
|
-
}),
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
const
|
|
2491
|
+
}), B = K(void 0);
|
|
2492
|
+
H(() => {
|
|
2493
|
+
!z || B.current === Z || (B.current = Z, z(Z));
|
|
2494
|
+
}, [Z, z]);
|
|
2495
|
+
const T = mn(M && U);
|
|
2496
|
+
bn(M && U);
|
|
2497
|
+
const $ = !y;
|
|
2498
|
+
if (w || $ && !h || !$ && !P) return null;
|
|
2499
|
+
const F = () => /* @__PURE__ */ ze(
|
|
2492
2500
|
"div",
|
|
2493
2501
|
{
|
|
2494
2502
|
style: {
|
|
@@ -2501,7 +2509,7 @@ function xn({
|
|
|
2501
2509
|
position: "fixed",
|
|
2502
2510
|
right: 12,
|
|
2503
2511
|
bottom: 4,
|
|
2504
|
-
...
|
|
2512
|
+
...g ? { position: "relative", inset: 0, width: "100%", height: "100%" } : {}
|
|
2505
2513
|
},
|
|
2506
2514
|
children: [
|
|
2507
2515
|
/* @__PURE__ */ q("style", { children: Wt }),
|
|
@@ -2522,20 +2530,20 @@ function xn({
|
|
|
2522
2530
|
/* @__PURE__ */ q("style", { children: Le })
|
|
2523
2531
|
] }),
|
|
2524
2532
|
style: {
|
|
2525
|
-
display:
|
|
2526
|
-
width:
|
|
2533
|
+
display: U || j ? "block" : "none",
|
|
2534
|
+
width: M ? "100vw" : "400px",
|
|
2527
2535
|
// 100dvh accounts for mobile browser chrome (e.g. address bar); 100vh fallback for older browsers
|
|
2528
2536
|
"--chat-mobile-viewport-height": "100dvh",
|
|
2529
|
-
height:
|
|
2530
|
-
maxHeight:
|
|
2537
|
+
height: M ? "var(--chat-mobile-viewport-height, 100vh)" : "700px",
|
|
2538
|
+
maxHeight: M ? "var(--chat-mobile-viewport-height, 100vh)" : `calc(100% - ${yn}px)`,
|
|
2531
2539
|
border: "none",
|
|
2532
2540
|
zIndex: 2147483e3,
|
|
2533
2541
|
position: "fixed",
|
|
2534
|
-
top:
|
|
2535
|
-
left:
|
|
2536
|
-
right:
|
|
2537
|
-
bottom:
|
|
2538
|
-
...
|
|
2542
|
+
top: M ? 0 : void 0,
|
|
2543
|
+
left: M ? 0 : void 0,
|
|
2544
|
+
right: M ? 0 : 16,
|
|
2545
|
+
bottom: M ? 0 : 16,
|
|
2546
|
+
...g ? {
|
|
2539
2547
|
position: "relative",
|
|
2540
2548
|
top: 0,
|
|
2541
2549
|
left: 0,
|
|
@@ -2547,33 +2555,34 @@ function xn({
|
|
|
2547
2555
|
zIndex: 0
|
|
2548
2556
|
} : {}
|
|
2549
2557
|
},
|
|
2550
|
-
children:
|
|
2558
|
+
children: $ ? (
|
|
2551
2559
|
// Only reachable in embedded mode (the launcher returns null while
|
|
2552
2560
|
// booting): hold the widget's frame with a skeleton so a remount —
|
|
2553
2561
|
// project/environment switch in the host app — doesn't flash an
|
|
2554
2562
|
// empty hole where the chat was.
|
|
2555
|
-
/* @__PURE__ */ q(Zt, { isOpen: !0, isMobile:
|
|
2563
|
+
/* @__PURE__ */ q(Zt, { isOpen: !0, isMobile: M, skipAnimation: !0 })
|
|
2556
2564
|
) : /* @__PURE__ */ q(
|
|
2557
2565
|
Kt,
|
|
2558
2566
|
{
|
|
2559
2567
|
...L,
|
|
2560
2568
|
hasIntroAnimation: !h,
|
|
2561
|
-
isTestMode:
|
|
2562
|
-
isOpen:
|
|
2563
|
-
keyboardInset:
|
|
2564
|
-
messages:
|
|
2565
|
-
onSendMessage:
|
|
2569
|
+
isTestMode: I === "test",
|
|
2570
|
+
isOpen: U,
|
|
2571
|
+
keyboardInset: T,
|
|
2572
|
+
messages: Q,
|
|
2573
|
+
onSendMessage: te,
|
|
2566
2574
|
onMessageClick: x,
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
+
highlightedMessageId: A,
|
|
2576
|
+
isMobile: M,
|
|
2577
|
+
hasCloseButton: G,
|
|
2578
|
+
hasCleanChatButton: Y,
|
|
2579
|
+
hasCopyButton: _,
|
|
2580
|
+
isChatClosed: k,
|
|
2581
|
+
onStartNewChat: S,
|
|
2582
|
+
onRateChat: D,
|
|
2583
|
+
onClose: () => oe(!1),
|
|
2575
2584
|
onCleanChat: () => {
|
|
2576
|
-
|
|
2585
|
+
S(), b?.();
|
|
2577
2586
|
}
|
|
2578
2587
|
}
|
|
2579
2588
|
)
|
|
@@ -2592,16 +2601,16 @@ function xn({
|
|
|
2592
2601
|
width: 48,
|
|
2593
2602
|
height: 48,
|
|
2594
2603
|
border: "none",
|
|
2595
|
-
zIndex:
|
|
2596
|
-
opacity:
|
|
2597
|
-
pointerEvents:
|
|
2598
|
-
transition:
|
|
2604
|
+
zIndex: M ? 2147482999 : 2147483e3,
|
|
2605
|
+
opacity: U ? 0 : 1,
|
|
2606
|
+
pointerEvents: U ? "none" : "auto",
|
|
2607
|
+
transition: U ? "opacity 100ms ease-in" : "opacity 200ms ease-out 320ms"
|
|
2599
2608
|
},
|
|
2600
2609
|
children: /* @__PURE__ */ q(
|
|
2601
2610
|
Ft,
|
|
2602
2611
|
{
|
|
2603
|
-
isOpen:
|
|
2604
|
-
toggleBubble: () =>
|
|
2612
|
+
isOpen: U,
|
|
2613
|
+
toggleBubble: () => oe((ge) => !ge),
|
|
2605
2614
|
isDarkMode: L?.theme?.mode === "dark"
|
|
2606
2615
|
}
|
|
2607
2616
|
)
|
|
@@ -2623,19 +2632,19 @@ function xn({
|
|
|
2623
2632
|
children: /* @__PURE__ */ q(Ht, { ...L?.theme ?? {}, children: /* @__PURE__ */ q(
|
|
2624
2633
|
"div",
|
|
2625
2634
|
{
|
|
2626
|
-
className:
|
|
2635
|
+
className: Xe("eloq:w-full eloq:h-full", {
|
|
2627
2636
|
dark: L?.theme?.mode === "dark"
|
|
2628
2637
|
}),
|
|
2629
|
-
children:
|
|
2630
|
-
|
|
2638
|
+
children: W && !ne && /* @__PURE__ */ q(
|
|
2639
|
+
Gt,
|
|
2631
2640
|
{
|
|
2632
|
-
message:
|
|
2633
|
-
isVisible:
|
|
2634
|
-
onDismiss:
|
|
2641
|
+
message: W.text,
|
|
2642
|
+
isVisible: W.isVisible,
|
|
2643
|
+
onDismiss: m,
|
|
2635
2644
|
onMessageClick: () => {
|
|
2636
|
-
|
|
2645
|
+
oe(!0), m();
|
|
2637
2646
|
},
|
|
2638
|
-
autoHideDelay:
|
|
2647
|
+
autoHideDelay: W.autoHideDelay
|
|
2639
2648
|
}
|
|
2640
2649
|
)
|
|
2641
2650
|
}
|
|
@@ -2645,7 +2654,7 @@ function xn({
|
|
|
2645
2654
|
]
|
|
2646
2655
|
}
|
|
2647
2656
|
);
|
|
2648
|
-
return /* @__PURE__ */ q(at, { children:
|
|
2657
|
+
return /* @__PURE__ */ q(at, { children: g ? F() : ee ? /* @__PURE__ */ q(Jt, { container: ee, children: F() }) : null });
|
|
2649
2658
|
}
|
|
2650
2659
|
function kn(t) {
|
|
2651
2660
|
return /* @__PURE__ */ q(qn, { children: /* @__PURE__ */ q(wn, { children: /* @__PURE__ */ q(xn, { ...t }) }) });
|