@centive/aria-sdk 0.6.8 → 0.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,21 +1,21 @@
1
- import { jsx as a, jsxs as y, Fragment as Re } from "react/jsx-runtime";
2
- import * as ne from "react";
3
- import { createContext as Tr, useContext as Rr, useState as T, useRef as he, useEffect as te, useCallback as M, useMemo as Be } from "react";
4
- import { CheckCircle2 as Je, AlertCircle as He, Zap as Xe, RefreshCw as Pe, Clock as zr, MessageCircle as nr, Sparkles as Oe, User as Ir, Bot as Pr, Send as Dr, Wrench as Ze, MicOff as Ye, Mic as $e, Maximize2 as Vr, Phone as er, X as _e, Minimize2 as Wr } from "lucide-react";
1
+ import { jsx as a, jsxs as v, Fragment as Te } from "react/jsx-runtime";
2
+ import * as se from "react";
3
+ import { createContext as Rr, useContext as Tr, useState as N, useRef as he, useEffect as te, useCallback as M, useMemo as Be } from "react";
4
+ import { CheckCircle2 as Je, AlertCircle as Fe, Zap as Xe, RefreshCw as Pe, Clock as zr, MessageCircle as sr, Sparkles as Le, User as Ir, Bot as Pr, Send as Dr, Wrench as Ze, MicOff as Ye, Mic as $e, Maximize2 as Vr, Phone as er, X as _e, Minimize2 as Wr } from "lucide-react";
5
5
  import { createPortal as jr } from "react-dom";
6
6
  function Br(r) {
7
7
  return typeof r == "object" && r !== null && "status" in r && (r.status === "success" || r.status === "error") && !("type" in r);
8
8
  }
9
- function Hr(r) {
9
+ function Fr(r) {
10
10
  return typeof r == "object" && r !== null && "type" in r && r.type === "message_history_ack" && "status" in r && r.status === "ok";
11
11
  }
12
- function Lr(r) {
12
+ function Hr(r) {
13
13
  return typeof r == "object" && r !== null && "type" in r && r.type === "message_stream_ack" && "status" in r && r.status === "ok";
14
14
  }
15
- function Fr(r) {
15
+ function Or(r) {
16
16
  return typeof r == "object" && r !== null && "type" in r && r.type === "session_end_ack" && "status" in r && r.status === "ok";
17
17
  }
18
- function Or(r) {
18
+ function Lr(r) {
19
19
  return typeof r == "object" && r !== null && "type" in r && r.type === "session_end_error" && "status" in r && r.status === "error";
20
20
  }
21
21
  function _r(r) {
@@ -33,7 +33,7 @@ const rr = {
33
33
  baseRetryDelay: 1e3,
34
34
  refreshOnlyWhenVisible: !0
35
35
  };
36
- class Q {
36
+ class G {
37
37
  static instance = null;
38
38
  // Configuration
39
39
  config;
@@ -100,19 +100,19 @@ class Q {
100
100
  * Get or create the singleton instance
101
101
  */
102
102
  static getInstance(e) {
103
- return Q.instance ? Q.instance.updateConfig(e) : Q.instance = new Q(e), Q.instance;
103
+ return G.instance ? G.instance.updateConfig(e) : G.instance = new G(e), G.instance;
104
104
  }
105
105
  /**
106
106
  * Check if an instance exists
107
107
  */
108
108
  static hasInstance() {
109
- return Q.instance !== null;
109
+ return G.instance !== null;
110
110
  }
111
111
  /**
112
112
  * Destroy the singleton instance (for testing or cleanup)
113
113
  */
114
114
  static destroyInstance() {
115
- Q.instance && (Q.instance.destroy(), Q.instance = null);
115
+ G.instance && (G.instance.destroy(), G.instance = null);
116
116
  }
117
117
  // ============================================================================
118
118
  // Configuration
@@ -294,19 +294,19 @@ class Q {
294
294
  this.handleSessionResponse(t);
295
295
  return;
296
296
  }
297
- if (Hr(t)) {
297
+ if (Fr(t)) {
298
298
  console.log(`[AriaSessionManager] Message history acknowledged: ${t.message_count} messages`), this.config.onMessageHistoryAck?.(t.message_count), this.emit({ type: "message_history", data: t });
299
299
  return;
300
300
  }
301
- if (Lr(t)) {
301
+ if (Hr(t)) {
302
302
  console.log("[AriaSessionManager] Message stream acknowledged"), this.config.onMessageStreamAck?.(), this.emit({ type: "message_stream", data: t });
303
303
  return;
304
304
  }
305
- if (Fr(t)) {
305
+ if (Or(t)) {
306
306
  console.log(`[AriaSessionManager] Session end acknowledged: ${t.saved_count} messages saved`), this.config.onSessionEndAck?.(t.saved_count);
307
307
  return;
308
308
  }
309
- if (Or(t)) {
309
+ if (Lr(t)) {
310
310
  console.error(`[AriaSessionManager] Session end error: ${t.message}`), this.config.onSessionEndError?.(t.message, t.error), this.config.onError?.(new Error(`Session end failed: ${t.error} - ${t.message}`));
311
311
  return;
312
312
  }
@@ -485,41 +485,41 @@ class Q {
485
485
  this.createHiddenVideoElement();
486
486
  const { createClient: t, AnamEvent: o } = await import("@anam-ai/js-sdk"), i = t(e);
487
487
  i.addListener(o.SESSION_READY, () => {
488
- const s = i.getActiveSessionId();
489
- s && (this.updateSessionState({ session_id: s }), console.log("[AriaSessionManager] Session ready with ID:", s)), this.isAnamInitializing = !1, this.setStatus("ready"), this.emit({ type: "session_ready", data: { sessionId: s } }), this.config.onSessionReady?.();
488
+ const n = i.getActiveSessionId();
489
+ n && (this.updateSessionState({ session_id: n }), console.log("[AriaSessionManager] Session ready with ID:", n)), this.isAnamInitializing = !1, this.setStatus("ready"), this.emit({ type: "session_ready", data: { sessionId: n } }), this.config.onSessionReady?.();
490
490
  }), i.addListener(o.CONNECTION_CLOSED, () => {
491
491
  console.log("[AriaSessionManager] Anam connection closed"), this.emit({ type: "connection_change", data: { connected: !1 } });
492
- }), i.addListener(o.MESSAGE_HISTORY_UPDATED, (s) => {
493
- this.chatMessages = s.map((d) => ({
492
+ }), i.addListener(o.MESSAGE_HISTORY_UPDATED, (n) => {
493
+ this.chatMessages = n.map((d) => ({
494
494
  role: d.role,
495
495
  content: d.content,
496
496
  timestamp: Date.now()
497
497
  }));
498
- const c = s.map((d) => ({
498
+ const c = n.map((d) => ({
499
499
  role: d.role,
500
500
  content: d.content,
501
501
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
502
502
  }));
503
503
  this.sendMessageHistory(c), this.emit({ type: "message_history", data: { messages: this.chatMessages } });
504
- }), i.addListener(o.MESSAGE_STREAM_EVENT_RECEIVED, (s) => {
505
- s.role === "persona" ? this.liveTranscript += s.content : s.role === "user" && (this.liveTranscript = "");
504
+ }), i.addListener(o.MESSAGE_STREAM_EVENT_RECEIVED, (n) => {
505
+ n.role === "persona" ? this.liveTranscript += n.content : n.role === "user" && (this.liveTranscript = "");
506
506
  const c = {
507
- role: s.role,
508
- content: s.content,
507
+ role: n.role,
508
+ content: n.content,
509
509
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
510
510
  };
511
- this.sendMessageStream(c, s.is_final ?? !1), this.emit({ type: "message_stream", data: { event: s, liveTranscript: this.liveTranscript } });
512
- }), i.addListener(o.CLIENT_TOOL_EVENT_RECEIVED, (s) => {
513
- console.log("[AriaSessionManager] Tool call event received:", s.eventName), this.isToolCallActive = !0, this.activeToolCall = s, this.emit({
511
+ this.sendMessageStream(c, n.is_final ?? !1), this.emit({ type: "message_stream", data: { event: n, liveTranscript: this.liveTranscript } });
512
+ }), i.addListener(o.CLIENT_TOOL_EVENT_RECEIVED, (n) => {
513
+ console.log("[AriaSessionManager] Tool call event received:", n.eventName), this.isToolCallActive = !0, this.activeToolCall = n, this.emit({
514
514
  type: "tool_call",
515
515
  data: {
516
516
  isActive: !0,
517
- toolName: s.eventName,
518
- toolData: s.eventData,
519
- toolEvent: s
517
+ toolName: n.eventName,
518
+ toolData: n.eventData,
519
+ toolEvent: n
520
520
  }
521
521
  }), setTimeout(() => {
522
- this.activeToolCall?.eventUid === s.eventUid && this.clearToolCallState();
522
+ this.activeToolCall?.eventUid === n.eventUid && this.clearToolCallState();
523
523
  }, 3e4);
524
524
  }), this.anamClient = i, this.audioInputStream = await navigator.mediaDevices.getUserMedia({ audio: !0 });
525
525
  const [l] = await i.stream(this.audioInputStream);
@@ -672,8 +672,8 @@ class Q {
672
672
  console.log("[AriaSessionManager] No expiration time, skipping refresh scheduling");
673
673
  return;
674
674
  }
675
- const e = new Date(this.sessionState.expires_at).getTime(), t = Date.now(), o = this.refreshConfig.bufferMinutes * 60 * 1e3, i = e - o, l = Math.max(0, i - t), s = e - t;
676
- console.log(`[AriaSessionManager] Token expires at: ${new Date(e).toISOString()}`), console.log(`[AriaSessionManager] Time until expiry: ${Math.round(s / 1e3 / 60)} minutes`), console.log(`[AriaSessionManager] Refresh buffer: ${this.refreshConfig.bufferMinutes} minutes`), l <= 0 ? (console.log("[AriaSessionManager] Session expiring soon, refreshing immediately"), this.refreshSession()) : (console.log(`[AriaSessionManager] Scheduling proactive refresh in ${Math.round(l / 1e3 / 60)} minutes`), this.refreshTimer = setTimeout(() => {
675
+ const e = new Date(this.sessionState.expires_at).getTime(), t = Date.now(), o = this.refreshConfig.bufferMinutes * 60 * 1e3, i = e - o, l = Math.max(0, i - t), n = e - t;
676
+ console.log(`[AriaSessionManager] Token expires at: ${new Date(e).toISOString()}`), console.log(`[AriaSessionManager] Time until expiry: ${Math.round(n / 1e3 / 60)} minutes`), console.log(`[AriaSessionManager] Refresh buffer: ${this.refreshConfig.bufferMinutes} minutes`), l <= 0 ? (console.log("[AriaSessionManager] Session expiring soon, refreshing immediately"), this.refreshSession()) : (console.log(`[AriaSessionManager] Scheduling proactive refresh in ${Math.round(l / 1e3 / 60)} minutes`), this.refreshTimer = setTimeout(() => {
677
677
  console.log("[AriaSessionManager] Proactive refresh timer fired"), this.refreshSession();
678
678
  }, l));
679
679
  }
@@ -737,10 +737,11 @@ class Q {
737
737
  // ============================================================================
738
738
  /**
739
739
  * Check if session persistence is enabled
740
+ * Always returns TRUE - sessions always persist when widget closes
741
+ * Session only ends on logout (forceEndSession) or component unmount
740
742
  */
741
743
  isPersistSessionEnabled() {
742
- const e = this.config.persistSession === !0;
743
- return console.log("[AriaSessionManager] isPersistSessionEnabled:", e, "config.persistSession:", this.config.persistSession), e;
744
+ return !0;
744
745
  }
745
746
  /**
746
747
  * Check if WebSocket should stay alive when paused
@@ -755,49 +756,58 @@ class Q {
755
756
  return this.isPaused;
756
757
  }
757
758
  /**
758
- * Pause the session (called when widget closes with persistSession: true)
759
- * - Does NOT end the session
759
+ * Pause the session (called when widget closes)
760
+ * - Does NOT end the session - keeps Anam client and video stream alive
760
761
  * - Optionally disconnects WebSocket (based on keepWebSocketAlive)
761
762
  * - Keeps session token and state in memory
763
+ * - Session can be resumed when widget reopens
762
764
  */
763
765
  pauseSession() {
764
- if (!this.isPersistSessionEnabled()) {
765
- console.log("[AriaSessionManager] persistSession not enabled, cannot pause");
766
- return;
767
- }
768
766
  if (this.isPaused) {
769
767
  console.log("[AriaSessionManager] Session already paused");
770
768
  return;
771
769
  }
772
- console.log("[AriaSessionManager] Pausing session"), this.isPaused = !0, this.hiddenVideoElement && (this.hiddenVideoElement.muted = !0), this.shouldKeepWebSocketAlive() || (console.log("[AriaSessionManager] Disconnecting WebSocket (keepWebSocketAlive: false)"), this.ws && (this.ws.close(), this.ws = null)), this.config.onSessionPaused?.();
770
+ if (!this.anamClient) {
771
+ console.log("[AriaSessionManager] No active Anam client, nothing to pause");
772
+ return;
773
+ }
774
+ if (console.log("[AriaSessionManager] Pausing session - keeping Anam client alive"), this.isPaused = !0, this.hiddenVideoElement && (this.hiddenVideoElement.muted = !0), this.anamClient)
775
+ try {
776
+ this.anamClient.muteInputAudio();
777
+ } catch (e) {
778
+ console.warn("[AriaSessionManager] Failed to mute input audio:", e);
779
+ }
780
+ this.shouldKeepWebSocketAlive() || (console.log("[AriaSessionManager] Disconnecting WebSocket (keepWebSocketAlive: false)"), this.ws && (this.ws.close(), this.ws = null)), this.config.onSessionPaused?.();
773
781
  }
774
782
  /**
775
- * Resume the session (called when widget reopens with persistSession: true)
783
+ * Resume the session (called when widget reopens)
776
784
  * - Reconnects WebSocket if needed
777
- * - Reuses existing session token
785
+ * - Reuses existing Anam client and video stream
778
786
  * - Does NOT create a new session
779
787
  */
780
788
  async resumeSession() {
781
- if (!this.isPersistSessionEnabled()) {
782
- console.log("[AriaSessionManager] persistSession not enabled, cannot resume");
783
- return;
784
- }
785
789
  if (!this.isPaused) {
786
790
  console.log("[AriaSessionManager] Session not paused, nothing to resume");
787
791
  return;
788
792
  }
789
- if (console.log("[AriaSessionManager] Resuming session"), this.isPaused = !1, !this.sessionState.token) {
790
- console.log("[AriaSessionManager] No session token, cannot resume - will create new session"), this.connect();
793
+ if (console.log("[AriaSessionManager] Resuming session"), this.isPaused = !1, !this.anamClient) {
794
+ console.log("[AriaSessionManager] No Anam client, cannot resume - will create new session");
791
795
  return;
792
796
  }
793
797
  if (this.sessionState.expires_at) {
794
798
  const e = new Date(this.sessionState.expires_at).getTime();
795
799
  if (Date.now() >= e) {
796
- console.log("[AriaSessionManager] Session expired, will create new session"), this.resetSessionState(), this.connect();
800
+ console.log("[AriaSessionManager] Session expired, will create new session"), await this.stopStreaming(), this.resetSessionState();
797
801
  return;
798
802
  }
799
803
  }
800
- this.isConnected() || (console.log("[AriaSessionManager] Reconnecting WebSocket for resumed session"), this.reconnectForResume()), this.config.onSessionResumed?.();
804
+ if (this.anamClient)
805
+ try {
806
+ this.anamClient.unmuteInputAudio(), console.log("[AriaSessionManager] Unmuted input audio");
807
+ } catch (e) {
808
+ console.warn("[AriaSessionManager] Failed to unmute input audio:", e);
809
+ }
810
+ this.isConnected() || (console.log("[AriaSessionManager] Reconnecting WebSocket for resumed session"), this.reconnectForResume()), this.setStatus("ready"), this.config.onSessionResumed?.();
801
811
  }
802
812
  /**
803
813
  * Reconnect WebSocket for session resume (without triggering new session)
@@ -902,7 +912,7 @@ const z = {
902
912
  uiContainer: null,
903
913
  reactRoot: null
904
914
  };
905
- class Te {
915
+ class Re {
906
916
  /**
907
917
  * Initialize the Aria SDK with the given configuration.
908
918
  * This sets up the WebSocket connection, session management, and UI components.
@@ -931,8 +941,8 @@ class Te {
931
941
  if (!e.userId)
932
942
  throw new Error("[AriaCore] userId is required");
933
943
  console.log("[AriaCore] Initializing Aria SDK..."), z.config = e;
934
- const t = Te.buildFullConfig(e);
935
- z.sessionManager = Q.getInstance(t), z.sessionManager.connect(), Te.mountUI(e.theme || "light", e.triggerLabel), z.initialized = !0, console.log("[AriaCore] Aria SDK initialized successfully");
944
+ const t = Re.buildFullConfig(e);
945
+ z.sessionManager = G.getInstance(t), z.sessionManager.connect(), Re.mountUI(e.theme || "light", e.triggerLabel), z.initialized = !0, console.log("[AriaCore] Aria SDK initialized successfully");
936
946
  }
937
947
  /**
938
948
  * Open the Aria assistant widget.
@@ -1063,7 +1073,7 @@ class Te {
1063
1073
  console.log("[AriaCore] Not initialized, nothing to destroy.");
1064
1074
  return;
1065
1075
  }
1066
- console.log("[AriaCore] Destroying Aria SDK..."), Te.unmountUI(), Q.destroyInstance(), z.initialized = !1, z.config = null, z.sessionManager = null, z.uiContainer = null, z.reactRoot = null, console.log("[AriaCore] Aria SDK destroyed");
1076
+ console.log("[AriaCore] Destroying Aria SDK..."), Re.unmountUI(), G.destroyInstance(), z.initialized = !1, z.config = null, z.sessionManager = null, z.uiContainer = null, z.reactRoot = null, console.log("[AriaCore] Aria SDK destroyed");
1067
1077
  }
1068
1078
  // ============================================================================
1069
1079
  // Private Methods
@@ -1111,16 +1121,16 @@ class Te {
1111
1121
  */
1112
1122
  static mountUI(e, t) {
1113
1123
  const o = document.createElement("div");
1114
- o.id = "aria-sdk-root", o.setAttribute("data-aria-theme", e), o.setAttribute("data-aria-open", "false"), document.body.appendChild(o), z.uiContainer = o, Te.renderReactUI(o, e, t);
1124
+ o.id = "aria-sdk-root", o.setAttribute("data-aria-theme", e), o.setAttribute("data-aria-open", "false"), document.body.appendChild(o), z.uiContainer = o, Re.renderReactUI(o, e, t);
1115
1125
  }
1116
1126
  /**
1117
1127
  * Render React UI components
1118
1128
  */
1119
1129
  static async renderReactUI(e, t, o) {
1120
1130
  try {
1121
- const i = await import("react"), l = await import("react-dom/client"), { AriaStandaloneUI: s } = await Promise.resolve().then(() => $t), c = l.createRoot(e);
1131
+ const i = await import("react"), l = await import("react-dom/client"), { AriaStandaloneUI: n } = await Promise.resolve().then(() => $t), c = l.createRoot(e);
1122
1132
  z.reactRoot = c, c.render(
1123
- i.createElement(s, {
1133
+ i.createElement(n, {
1124
1134
  theme: t,
1125
1135
  triggerLabel: o,
1126
1136
  container: e
@@ -1137,8 +1147,8 @@ class Te {
1137
1147
  z.reactRoot && typeof z.reactRoot.unmount == "function" && z.reactRoot.unmount(), z.uiContainer && z.uiContainer.remove();
1138
1148
  }
1139
1149
  }
1140
- const lr = Tr(null), Se = () => {
1141
- const r = Rr(lr);
1150
+ const lr = Rr(null), Se = () => {
1151
+ const r = Tr(lr);
1142
1152
  if (!r)
1143
1153
  throw new Error("useAria must be used within an AriaProvider");
1144
1154
  return r;
@@ -1176,18 +1186,18 @@ const qr = (r, e) => {
1176
1186
  conflictingClassGroupModifiers: o
1177
1187
  } = r;
1178
1188
  return {
1179
- getClassGroupId: (s) => {
1180
- if (s.startsWith("[") && s.endsWith("]"))
1181
- return Zr(s);
1182
- const c = s.split(De), d = c[0] === "" && c.length > 1 ? 1 : 0;
1189
+ getClassGroupId: (n) => {
1190
+ if (n.startsWith("[") && n.endsWith("]"))
1191
+ return Zr(n);
1192
+ const c = n.split(De), d = c[0] === "" && c.length > 1 ? 1 : 0;
1183
1193
  return gr(c, d, e);
1184
1194
  },
1185
- getConflictingClassGroupIds: (s, c) => {
1195
+ getConflictingClassGroupIds: (n, c) => {
1186
1196
  if (c) {
1187
- const d = o[s], g = t[s];
1197
+ const d = o[n], g = t[n];
1188
1198
  return d ? g ? qr(g, d) : d : g || tr;
1189
1199
  }
1190
- return t[s] || tr;
1200
+ return t[n] || tr;
1191
1201
  }
1192
1202
  };
1193
1203
  }, gr = (r, e, t) => {
@@ -1198,12 +1208,12 @@ const qr = (r, e) => {
1198
1208
  const g = gr(r, e + 1, l);
1199
1209
  if (g) return g;
1200
1210
  }
1201
- const s = t.validators;
1202
- if (s === null)
1211
+ const n = t.validators;
1212
+ if (n === null)
1203
1213
  return;
1204
- const c = e === 0 ? r.join(De) : r.slice(e).join(De), d = s.length;
1214
+ const c = e === 0 ? r.join(De) : r.slice(e).join(De), d = n.length;
1205
1215
  for (let g = 0; g < d; g++) {
1206
- const w = s[g];
1216
+ const w = n[g];
1207
1217
  if (w.validator(c))
1208
1218
  return w.classGroupId;
1209
1219
  }
@@ -1226,8 +1236,8 @@ const qr = (r, e) => {
1226
1236
  }, Qe = (r, e, t, o) => {
1227
1237
  const i = r.length;
1228
1238
  for (let l = 0; l < i; l++) {
1229
- const s = r[l];
1230
- et(s, e, t, o);
1239
+ const n = r[l];
1240
+ et(n, e, t, o);
1231
1241
  }
1232
1242
  }, et = (r, e, t, o) => {
1233
1243
  if (typeof r == "string") {
@@ -1250,17 +1260,17 @@ const qr = (r, e) => {
1250
1260
  e.validators === null && (e.validators = []), e.validators.push(Kr(t, r));
1251
1261
  }, ot = (r, e, t, o) => {
1252
1262
  const i = Object.entries(r), l = i.length;
1253
- for (let s = 0; s < l; s++) {
1254
- const [c, d] = i[s];
1263
+ for (let n = 0; n < l; n++) {
1264
+ const [c, d] = i[n];
1255
1265
  Qe(d, hr(e, c), t, o);
1256
1266
  }
1257
1267
  }, hr = (r, e) => {
1258
1268
  let t = r;
1259
1269
  const o = e.split(De), i = o.length;
1260
1270
  for (let l = 0; l < i; l++) {
1261
- const s = o[l];
1262
- let c = t.nextPart.get(s);
1263
- c || (c = dr(), t.nextPart.set(s, c)), t = c;
1271
+ const n = o[l];
1272
+ let c = t.nextPart.get(n);
1273
+ c || (c = dr(), t.nextPart.set(n, c)), t = c;
1264
1274
  }
1265
1275
  return t;
1266
1276
  }, at = (r) => "isThemeGetter" in r && r.isThemeGetter === !0, it = (r) => {
@@ -1272,39 +1282,39 @@ const qr = (r, e) => {
1272
1282
  }
1273
1283
  };
1274
1284
  let e = 0, t = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
1275
- const i = (l, s) => {
1276
- t[l] = s, e++, e > r && (e = 0, o = t, t = /* @__PURE__ */ Object.create(null));
1285
+ const i = (l, n) => {
1286
+ t[l] = n, e++, e > r && (e = 0, o = t, t = /* @__PURE__ */ Object.create(null));
1277
1287
  };
1278
1288
  return {
1279
1289
  get(l) {
1280
- let s = t[l];
1281
- if (s !== void 0)
1282
- return s;
1283
- if ((s = o[l]) !== void 0)
1284
- return i(l, s), s;
1290
+ let n = t[l];
1291
+ if (n !== void 0)
1292
+ return n;
1293
+ if ((n = o[l]) !== void 0)
1294
+ return i(l, n), n;
1285
1295
  },
1286
- set(l, s) {
1287
- l in t ? t[l] = s : i(l, s);
1296
+ set(l, n) {
1297
+ l in t ? t[l] = n : i(l, n);
1288
1298
  }
1289
1299
  };
1290
- }, Ue = "!", or = ":", st = [], ar = (r, e, t, o, i) => ({
1300
+ }, Ue = "!", or = ":", nt = [], ar = (r, e, t, o, i) => ({
1291
1301
  modifiers: r,
1292
1302
  hasImportantModifier: e,
1293
1303
  baseClassName: t,
1294
1304
  maybePostfixModifierPosition: o,
1295
1305
  isExternal: i
1296
- }), nt = (r) => {
1306
+ }), st = (r) => {
1297
1307
  const {
1298
1308
  prefix: e,
1299
1309
  experimentalParseClassName: t
1300
1310
  } = r;
1301
1311
  let o = (i) => {
1302
1312
  const l = [];
1303
- let s = 0, c = 0, d = 0, g;
1313
+ let n = 0, c = 0, d = 0, g;
1304
1314
  const w = i.length;
1305
1315
  for (let I = 0; I < w; I++) {
1306
1316
  const j = i[I];
1307
- if (s === 0 && c === 0) {
1317
+ if (n === 0 && c === 0) {
1308
1318
  if (j === or) {
1309
1319
  l.push(i.slice(d, I)), d = I + 1;
1310
1320
  continue;
@@ -1314,23 +1324,23 @@ const qr = (r, e) => {
1314
1324
  continue;
1315
1325
  }
1316
1326
  }
1317
- j === "[" ? s++ : j === "]" ? s-- : j === "(" ? c++ : j === ")" && c--;
1327
+ j === "[" ? n++ : j === "]" ? n-- : j === "(" ? c++ : j === ")" && c--;
1318
1328
  }
1319
1329
  const E = l.length === 0 ? i : i.slice(d);
1320
- let R = E, V = !1;
1321
- E.endsWith(Ue) ? (R = E.slice(0, -1), V = !0) : (
1330
+ let T = E, V = !1;
1331
+ E.endsWith(Ue) ? (T = E.slice(0, -1), V = !0) : (
1322
1332
  /**
1323
1333
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
1324
1334
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
1325
1335
  */
1326
- E.startsWith(Ue) && (R = E.slice(1), V = !0)
1336
+ E.startsWith(Ue) && (T = E.slice(1), V = !0)
1327
1337
  );
1328
1338
  const x = g && g > d ? g - d : void 0;
1329
- return ar(l, V, R, x);
1339
+ return ar(l, V, T, x);
1330
1340
  };
1331
1341
  if (e) {
1332
1342
  const i = e + or, l = o;
1333
- o = (s) => s.startsWith(i) ? l(s.slice(i.length)) : ar(st, !1, s, void 0, !0);
1343
+ o = (n) => n.startsWith(i) ? l(n.slice(i.length)) : ar(nt, !1, n, void 0, !0);
1334
1344
  }
1335
1345
  if (t) {
1336
1346
  const i = o;
@@ -1348,14 +1358,14 @@ const qr = (r, e) => {
1348
1358
  const o = [];
1349
1359
  let i = [];
1350
1360
  for (let l = 0; l < t.length; l++) {
1351
- const s = t[l], c = s[0] === "[", d = e.has(s);
1352
- c || d ? (i.length > 0 && (i.sort(), o.push(...i), i = []), o.push(s)) : i.push(s);
1361
+ const n = t[l], c = n[0] === "[", d = e.has(n);
1362
+ c || d ? (i.length > 0 && (i.sort(), o.push(...i), i = []), o.push(n)) : i.push(n);
1353
1363
  }
1354
1364
  return i.length > 0 && (i.sort(), o.push(...i)), o;
1355
1365
  };
1356
1366
  }, ct = (r) => ({
1357
1367
  cache: it(r.cacheSize),
1358
- parseClassName: nt(r),
1368
+ parseClassName: st(r),
1359
1369
  sortModifiers: lt(r),
1360
1370
  ...Xr(r)
1361
1371
  }), dt = /\s+/, gt = (r, e) => {
@@ -1364,12 +1374,12 @@ const qr = (r, e) => {
1364
1374
  getClassGroupId: o,
1365
1375
  getConflictingClassGroupIds: i,
1366
1376
  sortModifiers: l
1367
- } = e, s = [], c = r.trim().split(dt);
1377
+ } = e, n = [], c = r.trim().split(dt);
1368
1378
  let d = "";
1369
1379
  for (let g = c.length - 1; g >= 0; g -= 1) {
1370
1380
  const w = c[g], {
1371
1381
  isExternal: E,
1372
- modifiers: R,
1382
+ modifiers: T,
1373
1383
  hasImportantModifier: V,
1374
1384
  baseClassName: x,
1375
1385
  maybePostfixModifierPosition: I
@@ -1390,14 +1400,14 @@ const qr = (r, e) => {
1390
1400
  }
1391
1401
  j = !1;
1392
1402
  }
1393
- const O = R.length === 0 ? "" : R.length === 1 ? R[0] : l(R).join(":"), D = V ? O + Ue : O, h = D + B;
1394
- if (s.indexOf(h) > -1)
1403
+ const L = T.length === 0 ? "" : T.length === 1 ? T[0] : l(T).join(":"), D = V ? L + Ue : L, h = D + B;
1404
+ if (n.indexOf(h) > -1)
1395
1405
  continue;
1396
- s.push(h);
1406
+ n.push(h);
1397
1407
  const _ = i(B, j);
1398
1408
  for (let J = 0; J < _.length; ++J) {
1399
- const H = _[J];
1400
- s.push(D + H);
1409
+ const F = _[J];
1410
+ n.push(D + F);
1401
1411
  }
1402
1412
  d = w + (d.length > 0 ? " " + d : d);
1403
1413
  }
@@ -1416,7 +1426,7 @@ const qr = (r, e) => {
1416
1426
  return t;
1417
1427
  }, ut = (r, ...e) => {
1418
1428
  let t, o, i, l;
1419
- const s = (d) => {
1429
+ const n = (d) => {
1420
1430
  const g = e.reduce((w, E) => E(w), r());
1421
1431
  return t = ct(g), o = t.cache.get, i = t.cache.set, l = c, c(d);
1422
1432
  }, c = (d) => {
@@ -1426,23 +1436,23 @@ const qr = (r, e) => {
1426
1436
  const w = gt(d, t);
1427
1437
  return i(d, w), w;
1428
1438
  };
1429
- return l = s, (...d) => l(ht(...d));
1430
- }, pt = [], F = (r) => {
1439
+ return l = n, (...d) => l(ht(...d));
1440
+ }, pt = [], O = (r) => {
1431
1441
  const e = (t) => t[r] || pt;
1432
1442
  return e.isThemeGetter = !0, e;
1433
- }, pr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, mr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, mt = /^\d+\/\d+$/, ft = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, bt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, vt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, yt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ae = (r) => mt.test(r), C = (r) => !!r && !Number.isNaN(Number(r)), we = (r) => !!r && Number.isInteger(Number(r)), Le = (r) => r.endsWith("%") && C(r.slice(0, -1)), ge = (r) => ft.test(r), xt = () => !0, At = (r) => (
1443
+ }, pr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, mr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, mt = /^\d+\/\d+$/, ft = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, bt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, vt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, yt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ae = (r) => mt.test(r), C = (r) => !!r && !Number.isNaN(Number(r)), we = (r) => !!r && Number.isInteger(Number(r)), He = (r) => r.endsWith("%") && C(r.slice(0, -1)), ge = (r) => ft.test(r), xt = () => !0, At = (r) => (
1434
1444
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1435
1445
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1436
1446
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1437
1447
  wt.test(r) && !bt.test(r)
1438
- ), fr = () => !1, kt = (r) => vt.test(r), St = (r) => yt.test(r), Et = (r) => !m(r) && !f(r), Mt = (r) => Ee(r, vr, fr), m = (r) => pr.test(r), ve = (r) => Ee(r, yr, At), Fe = (r) => Ee(r, zt, C), ir = (r) => Ee(r, wr, fr), Ct = (r) => Ee(r, br, St), ze = (r) => Ee(r, xr, kt), f = (r) => mr.test(r), Ne = (r) => Me(r, yr), Nt = (r) => Me(r, It), sr = (r) => Me(r, wr), Tt = (r) => Me(r, vr), Rt = (r) => Me(r, br), Ie = (r) => Me(r, xr, !0), Ee = (r, e, t) => {
1448
+ ), fr = () => !1, kt = (r) => vt.test(r), St = (r) => yt.test(r), Et = (r) => !p(r) && !m(r), Mt = (r) => Ee(r, vr, fr), p = (r) => pr.test(r), ve = (r) => Ee(r, yr, At), Oe = (r) => Ee(r, zt, C), ir = (r) => Ee(r, wr, fr), Ct = (r) => Ee(r, br, St), ze = (r) => Ee(r, xr, kt), m = (r) => mr.test(r), Ne = (r) => Me(r, yr), Nt = (r) => Me(r, It), nr = (r) => Me(r, wr), Rt = (r) => Me(r, vr), Tt = (r) => Me(r, br), Ie = (r) => Me(r, xr, !0), Ee = (r, e, t) => {
1439
1449
  const o = pr.exec(r);
1440
1450
  return o ? o[1] ? e(o[1]) : t(o[2]) : !1;
1441
1451
  }, Me = (r, e, t = !1) => {
1442
1452
  const o = mr.exec(r);
1443
1453
  return o ? o[1] ? e(o[1]) : t : !1;
1444
1454
  }, wr = (r) => r === "position" || r === "percentage", br = (r) => r === "image" || r === "url", vr = (r) => r === "length" || r === "size" || r === "bg-size", yr = (r) => r === "length", zt = (r) => r === "number", It = (r) => r === "family-name", xr = (r) => r === "shadow", Pt = () => {
1445
- const r = F("color"), e = F("font"), t = F("text"), o = F("font-weight"), i = F("tracking"), l = F("leading"), s = F("breakpoint"), c = F("container"), d = F("spacing"), g = F("radius"), w = F("shadow"), E = F("inset-shadow"), R = F("text-shadow"), V = F("drop-shadow"), x = F("blur"), I = F("perspective"), j = F("aspect"), B = F("ease"), O = F("animate"), D = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], h = () => [
1455
+ const r = O("color"), e = O("font"), t = O("text"), o = O("font-weight"), i = O("tracking"), l = O("leading"), n = O("breakpoint"), c = O("container"), d = O("spacing"), g = O("radius"), w = O("shadow"), E = O("inset-shadow"), T = O("text-shadow"), V = O("drop-shadow"), x = O("blur"), I = O("perspective"), j = O("aspect"), B = O("ease"), L = O("animate"), D = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], h = () => [
1446
1456
  "center",
1447
1457
  "top",
1448
1458
  "bottom",
@@ -1460,30 +1470,30 @@ const qr = (r, e) => {
1460
1470
  "bottom-left",
1461
1471
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1462
1472
  "left-bottom"
1463
- ], _ = () => [...h(), f, m], J = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", "contain", "none"], k = () => [f, m, d], q = () => [Ae, "full", "auto", ...k()], oe = () => [we, "none", "subgrid", f, m], X = () => ["auto", {
1464
- span: ["full", we, f, m]
1465
- }, we, f, m], G = () => [we, "auto", f, m], ue = () => ["auto", "min", "max", "fr", f, m], ae = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], S = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], U = () => ["auto", ...k()], b = () => [Ae, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], v = () => [r, f, m], le = () => [...h(), sr, ir, {
1466
- position: [f, m]
1473
+ ], _ = () => [...h(), m, p], J = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", "contain", "none"], A = () => [m, p, d], Q = () => [Ae, "full", "auto", ...A()], oe = () => [we, "none", "subgrid", m, p], X = () => ["auto", {
1474
+ span: ["full", we, m, p]
1475
+ }, we, m, p], q = () => [we, "auto", m, p], ue = () => ["auto", "min", "max", "fr", m, p], ae = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], S = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], U = () => ["auto", ...A()], y = () => [Ae, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...A()], b = () => [r, m, p], le = () => [...h(), nr, ir, {
1476
+ position: [m, p]
1467
1477
  }], ie = () => ["no-repeat", {
1468
1478
  repeat: ["", "x", "y", "space", "round"]
1469
- }], se = () => ["auto", "cover", "contain", Tt, Mt, {
1470
- size: [f, m]
1471
- }], re = () => [Le, Ne, ve], W = () => [
1479
+ }], ne = () => ["auto", "cover", "contain", Rt, Mt, {
1480
+ size: [m, p]
1481
+ }], re = () => [He, Ne, ve], W = () => [
1472
1482
  // Deprecated since Tailwind CSS v4.0.0
1473
1483
  "",
1474
1484
  "none",
1475
1485
  "full",
1476
1486
  g,
1477
- f,
1478
- m
1479
- ], L = () => ["", C, Ne, ve], K = () => ["solid", "dashed", "dotted", "double"], ce = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => [C, Le, sr, ir], pe = () => [
1487
+ m,
1488
+ p
1489
+ ], H = () => ["", C, Ne, ve], K = () => ["solid", "dashed", "dotted", "double"], ce = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => [C, He, nr, ir], pe = () => [
1480
1490
  // Deprecated since Tailwind CSS v4.0.0
1481
1491
  "",
1482
1492
  "none",
1483
1493
  x,
1484
- f,
1485
- m
1486
- ], de = () => ["none", C, f, m], me = () => ["none", C, f, m], be = () => [C, f, m], fe = () => [Ae, "full", ...k()];
1494
+ m,
1495
+ p
1496
+ ], de = () => ["none", C, m, p], me = () => ["none", C, m, p], be = () => [C, m, p], fe = () => [Ae, "full", ...A()];
1487
1497
  return {
1488
1498
  cacheSize: 500,
1489
1499
  theme: {
@@ -1516,7 +1526,7 @@ const qr = (r, e) => {
1516
1526
  * @see https://tailwindcss.com/docs/aspect-ratio
1517
1527
  */
1518
1528
  aspect: [{
1519
- aspect: ["auto", "square", Ae, m, f, j]
1529
+ aspect: ["auto", "square", Ae, p, m, j]
1520
1530
  }],
1521
1531
  /**
1522
1532
  * Container
@@ -1529,7 +1539,7 @@ const qr = (r, e) => {
1529
1539
  * @see https://tailwindcss.com/docs/columns
1530
1540
  */
1531
1541
  columns: [{
1532
- columns: [C, m, f, c]
1542
+ columns: [C, p, m, c]
1533
1543
  }],
1534
1544
  /**
1535
1545
  * Break After
@@ -1635,21 +1645,21 @@ const qr = (r, e) => {
1635
1645
  * @see https://tailwindcss.com/docs/overscroll-behavior
1636
1646
  */
1637
1647
  overscroll: [{
1638
- overscroll: H()
1648
+ overscroll: F()
1639
1649
  }],
1640
1650
  /**
1641
1651
  * Overscroll Behavior X
1642
1652
  * @see https://tailwindcss.com/docs/overscroll-behavior
1643
1653
  */
1644
1654
  "overscroll-x": [{
1645
- "overscroll-x": H()
1655
+ "overscroll-x": F()
1646
1656
  }],
1647
1657
  /**
1648
1658
  * Overscroll Behavior Y
1649
1659
  * @see https://tailwindcss.com/docs/overscroll-behavior
1650
1660
  */
1651
1661
  "overscroll-y": [{
1652
- "overscroll-y": H()
1662
+ "overscroll-y": F()
1653
1663
  }],
1654
1664
  /**
1655
1665
  * Position
@@ -1661,63 +1671,63 @@ const qr = (r, e) => {
1661
1671
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1662
1672
  */
1663
1673
  inset: [{
1664
- inset: q()
1674
+ inset: Q()
1665
1675
  }],
1666
1676
  /**
1667
1677
  * Right / Left
1668
1678
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1669
1679
  */
1670
1680
  "inset-x": [{
1671
- "inset-x": q()
1681
+ "inset-x": Q()
1672
1682
  }],
1673
1683
  /**
1674
1684
  * Top / Bottom
1675
1685
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1676
1686
  */
1677
1687
  "inset-y": [{
1678
- "inset-y": q()
1688
+ "inset-y": Q()
1679
1689
  }],
1680
1690
  /**
1681
1691
  * Start
1682
1692
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1683
1693
  */
1684
1694
  start: [{
1685
- start: q()
1695
+ start: Q()
1686
1696
  }],
1687
1697
  /**
1688
1698
  * End
1689
1699
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1690
1700
  */
1691
1701
  end: [{
1692
- end: q()
1702
+ end: Q()
1693
1703
  }],
1694
1704
  /**
1695
1705
  * Top
1696
1706
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1697
1707
  */
1698
1708
  top: [{
1699
- top: q()
1709
+ top: Q()
1700
1710
  }],
1701
1711
  /**
1702
1712
  * Right
1703
1713
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1704
1714
  */
1705
1715
  right: [{
1706
- right: q()
1716
+ right: Q()
1707
1717
  }],
1708
1718
  /**
1709
1719
  * Bottom
1710
1720
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1711
1721
  */
1712
1722
  bottom: [{
1713
- bottom: q()
1723
+ bottom: Q()
1714
1724
  }],
1715
1725
  /**
1716
1726
  * Left
1717
1727
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1718
1728
  */
1719
1729
  left: [{
1720
- left: q()
1730
+ left: Q()
1721
1731
  }],
1722
1732
  /**
1723
1733
  * Visibility
@@ -1729,7 +1739,7 @@ const qr = (r, e) => {
1729
1739
  * @see https://tailwindcss.com/docs/z-index
1730
1740
  */
1731
1741
  z: [{
1732
- z: [we, "auto", f, m]
1742
+ z: [we, "auto", m, p]
1733
1743
  }],
1734
1744
  // ------------------------
1735
1745
  // --- Flexbox and Grid ---
@@ -1739,7 +1749,7 @@ const qr = (r, e) => {
1739
1749
  * @see https://tailwindcss.com/docs/flex-basis
1740
1750
  */
1741
1751
  basis: [{
1742
- basis: [Ae, "full", "auto", c, ...k()]
1752
+ basis: [Ae, "full", "auto", c, ...A()]
1743
1753
  }],
1744
1754
  /**
1745
1755
  * Flex Direction
@@ -1760,28 +1770,28 @@ const qr = (r, e) => {
1760
1770
  * @see https://tailwindcss.com/docs/flex
1761
1771
  */
1762
1772
  flex: [{
1763
- flex: [C, Ae, "auto", "initial", "none", m]
1773
+ flex: [C, Ae, "auto", "initial", "none", p]
1764
1774
  }],
1765
1775
  /**
1766
1776
  * Flex Grow
1767
1777
  * @see https://tailwindcss.com/docs/flex-grow
1768
1778
  */
1769
1779
  grow: [{
1770
- grow: ["", C, f, m]
1780
+ grow: ["", C, m, p]
1771
1781
  }],
1772
1782
  /**
1773
1783
  * Flex Shrink
1774
1784
  * @see https://tailwindcss.com/docs/flex-shrink
1775
1785
  */
1776
1786
  shrink: [{
1777
- shrink: ["", C, f, m]
1787
+ shrink: ["", C, m, p]
1778
1788
  }],
1779
1789
  /**
1780
1790
  * Order
1781
1791
  * @see https://tailwindcss.com/docs/order
1782
1792
  */
1783
1793
  order: [{
1784
- order: [we, "first", "last", "none", f, m]
1794
+ order: [we, "first", "last", "none", m, p]
1785
1795
  }],
1786
1796
  /**
1787
1797
  * Grid Template Columns
@@ -1802,14 +1812,14 @@ const qr = (r, e) => {
1802
1812
  * @see https://tailwindcss.com/docs/grid-column
1803
1813
  */
1804
1814
  "col-start": [{
1805
- "col-start": G()
1815
+ "col-start": q()
1806
1816
  }],
1807
1817
  /**
1808
1818
  * Grid Column End
1809
1819
  * @see https://tailwindcss.com/docs/grid-column
1810
1820
  */
1811
1821
  "col-end": [{
1812
- "col-end": G()
1822
+ "col-end": q()
1813
1823
  }],
1814
1824
  /**
1815
1825
  * Grid Template Rows
@@ -1830,14 +1840,14 @@ const qr = (r, e) => {
1830
1840
  * @see https://tailwindcss.com/docs/grid-row
1831
1841
  */
1832
1842
  "row-start": [{
1833
- "row-start": G()
1843
+ "row-start": q()
1834
1844
  }],
1835
1845
  /**
1836
1846
  * Grid Row End
1837
1847
  * @see https://tailwindcss.com/docs/grid-row
1838
1848
  */
1839
1849
  "row-end": [{
1840
- "row-end": G()
1850
+ "row-end": q()
1841
1851
  }],
1842
1852
  /**
1843
1853
  * Grid Auto Flow
@@ -1865,21 +1875,21 @@ const qr = (r, e) => {
1865
1875
  * @see https://tailwindcss.com/docs/gap
1866
1876
  */
1867
1877
  gap: [{
1868
- gap: k()
1878
+ gap: A()
1869
1879
  }],
1870
1880
  /**
1871
1881
  * Gap X
1872
1882
  * @see https://tailwindcss.com/docs/gap
1873
1883
  */
1874
1884
  "gap-x": [{
1875
- "gap-x": k()
1885
+ "gap-x": A()
1876
1886
  }],
1877
1887
  /**
1878
1888
  * Gap Y
1879
1889
  * @see https://tailwindcss.com/docs/gap
1880
1890
  */
1881
1891
  "gap-y": [{
1882
- "gap-y": k()
1892
+ "gap-y": A()
1883
1893
  }],
1884
1894
  /**
1885
1895
  * Justify Content
@@ -1954,63 +1964,63 @@ const qr = (r, e) => {
1954
1964
  * @see https://tailwindcss.com/docs/padding
1955
1965
  */
1956
1966
  p: [{
1957
- p: k()
1967
+ p: A()
1958
1968
  }],
1959
1969
  /**
1960
1970
  * Padding X
1961
1971
  * @see https://tailwindcss.com/docs/padding
1962
1972
  */
1963
1973
  px: [{
1964
- px: k()
1974
+ px: A()
1965
1975
  }],
1966
1976
  /**
1967
1977
  * Padding Y
1968
1978
  * @see https://tailwindcss.com/docs/padding
1969
1979
  */
1970
1980
  py: [{
1971
- py: k()
1981
+ py: A()
1972
1982
  }],
1973
1983
  /**
1974
1984
  * Padding Start
1975
1985
  * @see https://tailwindcss.com/docs/padding
1976
1986
  */
1977
1987
  ps: [{
1978
- ps: k()
1988
+ ps: A()
1979
1989
  }],
1980
1990
  /**
1981
1991
  * Padding End
1982
1992
  * @see https://tailwindcss.com/docs/padding
1983
1993
  */
1984
1994
  pe: [{
1985
- pe: k()
1995
+ pe: A()
1986
1996
  }],
1987
1997
  /**
1988
1998
  * Padding Top
1989
1999
  * @see https://tailwindcss.com/docs/padding
1990
2000
  */
1991
2001
  pt: [{
1992
- pt: k()
2002
+ pt: A()
1993
2003
  }],
1994
2004
  /**
1995
2005
  * Padding Right
1996
2006
  * @see https://tailwindcss.com/docs/padding
1997
2007
  */
1998
2008
  pr: [{
1999
- pr: k()
2009
+ pr: A()
2000
2010
  }],
2001
2011
  /**
2002
2012
  * Padding Bottom
2003
2013
  * @see https://tailwindcss.com/docs/padding
2004
2014
  */
2005
2015
  pb: [{
2006
- pb: k()
2016
+ pb: A()
2007
2017
  }],
2008
2018
  /**
2009
2019
  * Padding Left
2010
2020
  * @see https://tailwindcss.com/docs/padding
2011
2021
  */
2012
2022
  pl: [{
2013
- pl: k()
2023
+ pl: A()
2014
2024
  }],
2015
2025
  /**
2016
2026
  * Margin
@@ -2080,7 +2090,7 @@ const qr = (r, e) => {
2080
2090
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2081
2091
  */
2082
2092
  "space-x": [{
2083
- "space-x": k()
2093
+ "space-x": A()
2084
2094
  }],
2085
2095
  /**
2086
2096
  * Space Between X Reverse
@@ -2092,7 +2102,7 @@ const qr = (r, e) => {
2092
2102
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2093
2103
  */
2094
2104
  "space-y": [{
2095
- "space-y": k()
2105
+ "space-y": A()
2096
2106
  }],
2097
2107
  /**
2098
2108
  * Space Between Y Reverse
@@ -2107,14 +2117,14 @@ const qr = (r, e) => {
2107
2117
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
2108
2118
  */
2109
2119
  size: [{
2110
- size: b()
2120
+ size: y()
2111
2121
  }],
2112
2122
  /**
2113
2123
  * Width
2114
2124
  * @see https://tailwindcss.com/docs/width
2115
2125
  */
2116
2126
  w: [{
2117
- w: [c, "screen", ...b()]
2127
+ w: [c, "screen", ...y()]
2118
2128
  }],
2119
2129
  /**
2120
2130
  * Min-Width
@@ -2126,7 +2136,7 @@ const qr = (r, e) => {
2126
2136
  "screen",
2127
2137
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2128
2138
  "none",
2129
- ...b()
2139
+ ...y()
2130
2140
  ]
2131
2141
  }],
2132
2142
  /**
@@ -2142,9 +2152,9 @@ const qr = (r, e) => {
2142
2152
  "prose",
2143
2153
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2144
2154
  {
2145
- screen: [s]
2155
+ screen: [n]
2146
2156
  },
2147
- ...b()
2157
+ ...y()
2148
2158
  ]
2149
2159
  }],
2150
2160
  /**
@@ -2152,21 +2162,21 @@ const qr = (r, e) => {
2152
2162
  * @see https://tailwindcss.com/docs/height
2153
2163
  */
2154
2164
  h: [{
2155
- h: ["screen", "lh", ...b()]
2165
+ h: ["screen", "lh", ...y()]
2156
2166
  }],
2157
2167
  /**
2158
2168
  * Min-Height
2159
2169
  * @see https://tailwindcss.com/docs/min-height
2160
2170
  */
2161
2171
  "min-h": [{
2162
- "min-h": ["screen", "lh", "none", ...b()]
2172
+ "min-h": ["screen", "lh", "none", ...y()]
2163
2173
  }],
2164
2174
  /**
2165
2175
  * Max-Height
2166
2176
  * @see https://tailwindcss.com/docs/max-height
2167
2177
  */
2168
2178
  "max-h": [{
2169
- "max-h": ["screen", "lh", ...b()]
2179
+ "max-h": ["screen", "lh", ...y()]
2170
2180
  }],
2171
2181
  // ------------------
2172
2182
  // --- Typography ---
@@ -2193,21 +2203,21 @@ const qr = (r, e) => {
2193
2203
  * @see https://tailwindcss.com/docs/font-weight
2194
2204
  */
2195
2205
  "font-weight": [{
2196
- font: [o, f, Fe]
2206
+ font: [o, m, Oe]
2197
2207
  }],
2198
2208
  /**
2199
2209
  * Font Stretch
2200
2210
  * @see https://tailwindcss.com/docs/font-stretch
2201
2211
  */
2202
2212
  "font-stretch": [{
2203
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Le, m]
2213
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", He, p]
2204
2214
  }],
2205
2215
  /**
2206
2216
  * Font Family
2207
2217
  * @see https://tailwindcss.com/docs/font-family
2208
2218
  */
2209
2219
  "font-family": [{
2210
- font: [Nt, m, e]
2220
+ font: [Nt, p, e]
2211
2221
  }],
2212
2222
  /**
2213
2223
  * Font Variant Numeric
@@ -2244,14 +2254,14 @@ const qr = (r, e) => {
2244
2254
  * @see https://tailwindcss.com/docs/letter-spacing
2245
2255
  */
2246
2256
  tracking: [{
2247
- tracking: [i, f, m]
2257
+ tracking: [i, m, p]
2248
2258
  }],
2249
2259
  /**
2250
2260
  * Line Clamp
2251
2261
  * @see https://tailwindcss.com/docs/line-clamp
2252
2262
  */
2253
2263
  "line-clamp": [{
2254
- "line-clamp": [C, "none", f, Fe]
2264
+ "line-clamp": [C, "none", m, Oe]
2255
2265
  }],
2256
2266
  /**
2257
2267
  * Line Height
@@ -2261,7 +2271,7 @@ const qr = (r, e) => {
2261
2271
  leading: [
2262
2272
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2263
2273
  l,
2264
- ...k()
2274
+ ...A()
2265
2275
  ]
2266
2276
  }],
2267
2277
  /**
@@ -2269,7 +2279,7 @@ const qr = (r, e) => {
2269
2279
  * @see https://tailwindcss.com/docs/list-style-image
2270
2280
  */
2271
2281
  "list-image": [{
2272
- "list-image": ["none", f, m]
2282
+ "list-image": ["none", m, p]
2273
2283
  }],
2274
2284
  /**
2275
2285
  * List Style Position
@@ -2283,7 +2293,7 @@ const qr = (r, e) => {
2283
2293
  * @see https://tailwindcss.com/docs/list-style-type
2284
2294
  */
2285
2295
  "list-style-type": [{
2286
- list: ["disc", "decimal", "none", f, m]
2296
+ list: ["disc", "decimal", "none", m, p]
2287
2297
  }],
2288
2298
  /**
2289
2299
  * Text Alignment
@@ -2298,14 +2308,14 @@ const qr = (r, e) => {
2298
2308
  * @see https://v3.tailwindcss.com/docs/placeholder-color
2299
2309
  */
2300
2310
  "placeholder-color": [{
2301
- placeholder: v()
2311
+ placeholder: b()
2302
2312
  }],
2303
2313
  /**
2304
2314
  * Text Color
2305
2315
  * @see https://tailwindcss.com/docs/text-color
2306
2316
  */
2307
2317
  "text-color": [{
2308
- text: v()
2318
+ text: b()
2309
2319
  }],
2310
2320
  /**
2311
2321
  * Text Decoration
@@ -2324,21 +2334,21 @@ const qr = (r, e) => {
2324
2334
  * @see https://tailwindcss.com/docs/text-decoration-thickness
2325
2335
  */
2326
2336
  "text-decoration-thickness": [{
2327
- decoration: [C, "from-font", "auto", f, ve]
2337
+ decoration: [C, "from-font", "auto", m, ve]
2328
2338
  }],
2329
2339
  /**
2330
2340
  * Text Decoration Color
2331
2341
  * @see https://tailwindcss.com/docs/text-decoration-color
2332
2342
  */
2333
2343
  "text-decoration-color": [{
2334
- decoration: v()
2344
+ decoration: b()
2335
2345
  }],
2336
2346
  /**
2337
2347
  * Text Underline Offset
2338
2348
  * @see https://tailwindcss.com/docs/text-underline-offset
2339
2349
  */
2340
2350
  "underline-offset": [{
2341
- "underline-offset": [C, "auto", f, m]
2351
+ "underline-offset": [C, "auto", m, p]
2342
2352
  }],
2343
2353
  /**
2344
2354
  * Text Transform
@@ -2362,14 +2372,14 @@ const qr = (r, e) => {
2362
2372
  * @see https://tailwindcss.com/docs/text-indent
2363
2373
  */
2364
2374
  indent: [{
2365
- indent: k()
2375
+ indent: A()
2366
2376
  }],
2367
2377
  /**
2368
2378
  * Vertical Alignment
2369
2379
  * @see https://tailwindcss.com/docs/vertical-align
2370
2380
  */
2371
2381
  "vertical-align": [{
2372
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", f, m]
2382
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", m, p]
2373
2383
  }],
2374
2384
  /**
2375
2385
  * Whitespace
@@ -2404,7 +2414,7 @@ const qr = (r, e) => {
2404
2414
  * @see https://tailwindcss.com/docs/content
2405
2415
  */
2406
2416
  content: [{
2407
- content: ["none", f, m]
2417
+ content: ["none", m, p]
2408
2418
  }],
2409
2419
  // -------------------
2410
2420
  // --- Backgrounds ---
@@ -2449,7 +2459,7 @@ const qr = (r, e) => {
2449
2459
  * @see https://tailwindcss.com/docs/background-size
2450
2460
  */
2451
2461
  "bg-size": [{
2452
- bg: se()
2462
+ bg: ne()
2453
2463
  }],
2454
2464
  /**
2455
2465
  * Background Image
@@ -2459,17 +2469,17 @@ const qr = (r, e) => {
2459
2469
  bg: ["none", {
2460
2470
  linear: [{
2461
2471
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
2462
- }, we, f, m],
2463
- radial: ["", f, m],
2464
- conic: [we, f, m]
2465
- }, Rt, Ct]
2472
+ }, we, m, p],
2473
+ radial: ["", m, p],
2474
+ conic: [we, m, p]
2475
+ }, Tt, Ct]
2466
2476
  }],
2467
2477
  /**
2468
2478
  * Background Color
2469
2479
  * @see https://tailwindcss.com/docs/background-color
2470
2480
  */
2471
2481
  "bg-color": [{
2472
- bg: v()
2482
+ bg: b()
2473
2483
  }],
2474
2484
  /**
2475
2485
  * Gradient Color Stops From Position
@@ -2497,21 +2507,21 @@ const qr = (r, e) => {
2497
2507
  * @see https://tailwindcss.com/docs/gradient-color-stops
2498
2508
  */
2499
2509
  "gradient-from": [{
2500
- from: v()
2510
+ from: b()
2501
2511
  }],
2502
2512
  /**
2503
2513
  * Gradient Color Stops Via
2504
2514
  * @see https://tailwindcss.com/docs/gradient-color-stops
2505
2515
  */
2506
2516
  "gradient-via": [{
2507
- via: v()
2517
+ via: b()
2508
2518
  }],
2509
2519
  /**
2510
2520
  * Gradient Color Stops To
2511
2521
  * @see https://tailwindcss.com/docs/gradient-color-stops
2512
2522
  */
2513
2523
  "gradient-to": [{
2514
- to: v()
2524
+ to: b()
2515
2525
  }],
2516
2526
  // ---------------
2517
2527
  // --- Borders ---
@@ -2626,70 +2636,70 @@ const qr = (r, e) => {
2626
2636
  * @see https://tailwindcss.com/docs/border-width
2627
2637
  */
2628
2638
  "border-w": [{
2629
- border: L()
2639
+ border: H()
2630
2640
  }],
2631
2641
  /**
2632
2642
  * Border Width X
2633
2643
  * @see https://tailwindcss.com/docs/border-width
2634
2644
  */
2635
2645
  "border-w-x": [{
2636
- "border-x": L()
2646
+ "border-x": H()
2637
2647
  }],
2638
2648
  /**
2639
2649
  * Border Width Y
2640
2650
  * @see https://tailwindcss.com/docs/border-width
2641
2651
  */
2642
2652
  "border-w-y": [{
2643
- "border-y": L()
2653
+ "border-y": H()
2644
2654
  }],
2645
2655
  /**
2646
2656
  * Border Width Start
2647
2657
  * @see https://tailwindcss.com/docs/border-width
2648
2658
  */
2649
2659
  "border-w-s": [{
2650
- "border-s": L()
2660
+ "border-s": H()
2651
2661
  }],
2652
2662
  /**
2653
2663
  * Border Width End
2654
2664
  * @see https://tailwindcss.com/docs/border-width
2655
2665
  */
2656
2666
  "border-w-e": [{
2657
- "border-e": L()
2667
+ "border-e": H()
2658
2668
  }],
2659
2669
  /**
2660
2670
  * Border Width Top
2661
2671
  * @see https://tailwindcss.com/docs/border-width
2662
2672
  */
2663
2673
  "border-w-t": [{
2664
- "border-t": L()
2674
+ "border-t": H()
2665
2675
  }],
2666
2676
  /**
2667
2677
  * Border Width Right
2668
2678
  * @see https://tailwindcss.com/docs/border-width
2669
2679
  */
2670
2680
  "border-w-r": [{
2671
- "border-r": L()
2681
+ "border-r": H()
2672
2682
  }],
2673
2683
  /**
2674
2684
  * Border Width Bottom
2675
2685
  * @see https://tailwindcss.com/docs/border-width
2676
2686
  */
2677
2687
  "border-w-b": [{
2678
- "border-b": L()
2688
+ "border-b": H()
2679
2689
  }],
2680
2690
  /**
2681
2691
  * Border Width Left
2682
2692
  * @see https://tailwindcss.com/docs/border-width
2683
2693
  */
2684
2694
  "border-w-l": [{
2685
- "border-l": L()
2695
+ "border-l": H()
2686
2696
  }],
2687
2697
  /**
2688
2698
  * Divide Width X
2689
2699
  * @see https://tailwindcss.com/docs/border-width#between-children
2690
2700
  */
2691
2701
  "divide-x": [{
2692
- "divide-x": L()
2702
+ "divide-x": H()
2693
2703
  }],
2694
2704
  /**
2695
2705
  * Divide Width X Reverse
@@ -2701,7 +2711,7 @@ const qr = (r, e) => {
2701
2711
  * @see https://tailwindcss.com/docs/border-width#between-children
2702
2712
  */
2703
2713
  "divide-y": [{
2704
- "divide-y": L()
2714
+ "divide-y": H()
2705
2715
  }],
2706
2716
  /**
2707
2717
  * Divide Width Y Reverse
@@ -2727,70 +2737,70 @@ const qr = (r, e) => {
2727
2737
  * @see https://tailwindcss.com/docs/border-color
2728
2738
  */
2729
2739
  "border-color": [{
2730
- border: v()
2740
+ border: b()
2731
2741
  }],
2732
2742
  /**
2733
2743
  * Border Color X
2734
2744
  * @see https://tailwindcss.com/docs/border-color
2735
2745
  */
2736
2746
  "border-color-x": [{
2737
- "border-x": v()
2747
+ "border-x": b()
2738
2748
  }],
2739
2749
  /**
2740
2750
  * Border Color Y
2741
2751
  * @see https://tailwindcss.com/docs/border-color
2742
2752
  */
2743
2753
  "border-color-y": [{
2744
- "border-y": v()
2754
+ "border-y": b()
2745
2755
  }],
2746
2756
  /**
2747
2757
  * Border Color S
2748
2758
  * @see https://tailwindcss.com/docs/border-color
2749
2759
  */
2750
2760
  "border-color-s": [{
2751
- "border-s": v()
2761
+ "border-s": b()
2752
2762
  }],
2753
2763
  /**
2754
2764
  * Border Color E
2755
2765
  * @see https://tailwindcss.com/docs/border-color
2756
2766
  */
2757
2767
  "border-color-e": [{
2758
- "border-e": v()
2768
+ "border-e": b()
2759
2769
  }],
2760
2770
  /**
2761
2771
  * Border Color Top
2762
2772
  * @see https://tailwindcss.com/docs/border-color
2763
2773
  */
2764
2774
  "border-color-t": [{
2765
- "border-t": v()
2775
+ "border-t": b()
2766
2776
  }],
2767
2777
  /**
2768
2778
  * Border Color Right
2769
2779
  * @see https://tailwindcss.com/docs/border-color
2770
2780
  */
2771
2781
  "border-color-r": [{
2772
- "border-r": v()
2782
+ "border-r": b()
2773
2783
  }],
2774
2784
  /**
2775
2785
  * Border Color Bottom
2776
2786
  * @see https://tailwindcss.com/docs/border-color
2777
2787
  */
2778
2788
  "border-color-b": [{
2779
- "border-b": v()
2789
+ "border-b": b()
2780
2790
  }],
2781
2791
  /**
2782
2792
  * Border Color Left
2783
2793
  * @see https://tailwindcss.com/docs/border-color
2784
2794
  */
2785
2795
  "border-color-l": [{
2786
- "border-l": v()
2796
+ "border-l": b()
2787
2797
  }],
2788
2798
  /**
2789
2799
  * Divide Color
2790
2800
  * @see https://tailwindcss.com/docs/divide-color
2791
2801
  */
2792
2802
  "divide-color": [{
2793
- divide: v()
2803
+ divide: b()
2794
2804
  }],
2795
2805
  /**
2796
2806
  * Outline Style
@@ -2804,7 +2814,7 @@ const qr = (r, e) => {
2804
2814
  * @see https://tailwindcss.com/docs/outline-offset
2805
2815
  */
2806
2816
  "outline-offset": [{
2807
- "outline-offset": [C, f, m]
2817
+ "outline-offset": [C, m, p]
2808
2818
  }],
2809
2819
  /**
2810
2820
  * Outline Width
@@ -2818,7 +2828,7 @@ const qr = (r, e) => {
2818
2828
  * @see https://tailwindcss.com/docs/outline-color
2819
2829
  */
2820
2830
  "outline-color": [{
2821
- outline: v()
2831
+ outline: b()
2822
2832
  }],
2823
2833
  // ---------------
2824
2834
  // --- Effects ---
@@ -2842,7 +2852,7 @@ const qr = (r, e) => {
2842
2852
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
2843
2853
  */
2844
2854
  "shadow-color": [{
2845
- shadow: v()
2855
+ shadow: b()
2846
2856
  }],
2847
2857
  /**
2848
2858
  * Inset Box Shadow
@@ -2856,14 +2866,14 @@ const qr = (r, e) => {
2856
2866
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
2857
2867
  */
2858
2868
  "inset-shadow-color": [{
2859
- "inset-shadow": v()
2869
+ "inset-shadow": b()
2860
2870
  }],
2861
2871
  /**
2862
2872
  * Ring Width
2863
2873
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2864
2874
  */
2865
2875
  "ring-w": [{
2866
- ring: L()
2876
+ ring: H()
2867
2877
  }],
2868
2878
  /**
2869
2879
  * Ring Width Inset
@@ -2877,7 +2887,7 @@ const qr = (r, e) => {
2877
2887
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
2878
2888
  */
2879
2889
  "ring-color": [{
2880
- ring: v()
2890
+ ring: b()
2881
2891
  }],
2882
2892
  /**
2883
2893
  * Ring Offset Width
@@ -2895,42 +2905,42 @@ const qr = (r, e) => {
2895
2905
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2896
2906
  */
2897
2907
  "ring-offset-color": [{
2898
- "ring-offset": v()
2908
+ "ring-offset": b()
2899
2909
  }],
2900
2910
  /**
2901
2911
  * Inset Ring Width
2902
2912
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2903
2913
  */
2904
2914
  "inset-ring-w": [{
2905
- "inset-ring": L()
2915
+ "inset-ring": H()
2906
2916
  }],
2907
2917
  /**
2908
2918
  * Inset Ring Color
2909
2919
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
2910
2920
  */
2911
2921
  "inset-ring-color": [{
2912
- "inset-ring": v()
2922
+ "inset-ring": b()
2913
2923
  }],
2914
2924
  /**
2915
2925
  * Text Shadow
2916
2926
  * @see https://tailwindcss.com/docs/text-shadow
2917
2927
  */
2918
2928
  "text-shadow": [{
2919
- "text-shadow": ["none", R, Ie, ze]
2929
+ "text-shadow": ["none", T, Ie, ze]
2920
2930
  }],
2921
2931
  /**
2922
2932
  * Text Shadow Color
2923
2933
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
2924
2934
  */
2925
2935
  "text-shadow-color": [{
2926
- "text-shadow": v()
2936
+ "text-shadow": b()
2927
2937
  }],
2928
2938
  /**
2929
2939
  * Opacity
2930
2940
  * @see https://tailwindcss.com/docs/opacity
2931
2941
  */
2932
2942
  opacity: [{
2933
- opacity: [C, f, m]
2943
+ opacity: [C, m, p]
2934
2944
  }],
2935
2945
  /**
2936
2946
  * Mix Blend Mode
@@ -2974,10 +2984,10 @@ const qr = (r, e) => {
2974
2984
  "mask-linear-to": P()
2975
2985
  }],
2976
2986
  "mask-image-linear-from-color": [{
2977
- "mask-linear-from": v()
2987
+ "mask-linear-from": b()
2978
2988
  }],
2979
2989
  "mask-image-linear-to-color": [{
2980
- "mask-linear-to": v()
2990
+ "mask-linear-to": b()
2981
2991
  }],
2982
2992
  "mask-image-t-from-pos": [{
2983
2993
  "mask-t-from": P()
@@ -2986,10 +2996,10 @@ const qr = (r, e) => {
2986
2996
  "mask-t-to": P()
2987
2997
  }],
2988
2998
  "mask-image-t-from-color": [{
2989
- "mask-t-from": v()
2999
+ "mask-t-from": b()
2990
3000
  }],
2991
3001
  "mask-image-t-to-color": [{
2992
- "mask-t-to": v()
3002
+ "mask-t-to": b()
2993
3003
  }],
2994
3004
  "mask-image-r-from-pos": [{
2995
3005
  "mask-r-from": P()
@@ -2998,10 +3008,10 @@ const qr = (r, e) => {
2998
3008
  "mask-r-to": P()
2999
3009
  }],
3000
3010
  "mask-image-r-from-color": [{
3001
- "mask-r-from": v()
3011
+ "mask-r-from": b()
3002
3012
  }],
3003
3013
  "mask-image-r-to-color": [{
3004
- "mask-r-to": v()
3014
+ "mask-r-to": b()
3005
3015
  }],
3006
3016
  "mask-image-b-from-pos": [{
3007
3017
  "mask-b-from": P()
@@ -3010,10 +3020,10 @@ const qr = (r, e) => {
3010
3020
  "mask-b-to": P()
3011
3021
  }],
3012
3022
  "mask-image-b-from-color": [{
3013
- "mask-b-from": v()
3023
+ "mask-b-from": b()
3014
3024
  }],
3015
3025
  "mask-image-b-to-color": [{
3016
- "mask-b-to": v()
3026
+ "mask-b-to": b()
3017
3027
  }],
3018
3028
  "mask-image-l-from-pos": [{
3019
3029
  "mask-l-from": P()
@@ -3022,10 +3032,10 @@ const qr = (r, e) => {
3022
3032
  "mask-l-to": P()
3023
3033
  }],
3024
3034
  "mask-image-l-from-color": [{
3025
- "mask-l-from": v()
3035
+ "mask-l-from": b()
3026
3036
  }],
3027
3037
  "mask-image-l-to-color": [{
3028
- "mask-l-to": v()
3038
+ "mask-l-to": b()
3029
3039
  }],
3030
3040
  "mask-image-x-from-pos": [{
3031
3041
  "mask-x-from": P()
@@ -3034,10 +3044,10 @@ const qr = (r, e) => {
3034
3044
  "mask-x-to": P()
3035
3045
  }],
3036
3046
  "mask-image-x-from-color": [{
3037
- "mask-x-from": v()
3047
+ "mask-x-from": b()
3038
3048
  }],
3039
3049
  "mask-image-x-to-color": [{
3040
- "mask-x-to": v()
3050
+ "mask-x-to": b()
3041
3051
  }],
3042
3052
  "mask-image-y-from-pos": [{
3043
3053
  "mask-y-from": P()
@@ -3046,13 +3056,13 @@ const qr = (r, e) => {
3046
3056
  "mask-y-to": P()
3047
3057
  }],
3048
3058
  "mask-image-y-from-color": [{
3049
- "mask-y-from": v()
3059
+ "mask-y-from": b()
3050
3060
  }],
3051
3061
  "mask-image-y-to-color": [{
3052
- "mask-y-to": v()
3062
+ "mask-y-to": b()
3053
3063
  }],
3054
3064
  "mask-image-radial": [{
3055
- "mask-radial": [f, m]
3065
+ "mask-radial": [m, p]
3056
3066
  }],
3057
3067
  "mask-image-radial-from-pos": [{
3058
3068
  "mask-radial-from": P()
@@ -3061,10 +3071,10 @@ const qr = (r, e) => {
3061
3071
  "mask-radial-to": P()
3062
3072
  }],
3063
3073
  "mask-image-radial-from-color": [{
3064
- "mask-radial-from": v()
3074
+ "mask-radial-from": b()
3065
3075
  }],
3066
3076
  "mask-image-radial-to-color": [{
3067
- "mask-radial-to": v()
3077
+ "mask-radial-to": b()
3068
3078
  }],
3069
3079
  "mask-image-radial-shape": [{
3070
3080
  "mask-radial": ["circle", "ellipse"]
@@ -3088,10 +3098,10 @@ const qr = (r, e) => {
3088
3098
  "mask-conic-to": P()
3089
3099
  }],
3090
3100
  "mask-image-conic-from-color": [{
3091
- "mask-conic-from": v()
3101
+ "mask-conic-from": b()
3092
3102
  }],
3093
3103
  "mask-image-conic-to-color": [{
3094
- "mask-conic-to": v()
3104
+ "mask-conic-to": b()
3095
3105
  }],
3096
3106
  /**
3097
3107
  * Mask Mode
@@ -3126,7 +3136,7 @@ const qr = (r, e) => {
3126
3136
  * @see https://tailwindcss.com/docs/mask-size
3127
3137
  */
3128
3138
  "mask-size": [{
3129
- mask: se()
3139
+ mask: ne()
3130
3140
  }],
3131
3141
  /**
3132
3142
  * Mask Type
@@ -3140,7 +3150,7 @@ const qr = (r, e) => {
3140
3150
  * @see https://tailwindcss.com/docs/mask-image
3141
3151
  */
3142
3152
  "mask-image": [{
3143
- mask: ["none", f, m]
3153
+ mask: ["none", m, p]
3144
3154
  }],
3145
3155
  // ---------------
3146
3156
  // --- Filters ---
@@ -3154,8 +3164,8 @@ const qr = (r, e) => {
3154
3164
  // Deprecated since Tailwind CSS v3.0.0
3155
3165
  "",
3156
3166
  "none",
3157
- f,
3158
- m
3167
+ m,
3168
+ p
3159
3169
  ]
3160
3170
  }],
3161
3171
  /**
@@ -3170,14 +3180,14 @@ const qr = (r, e) => {
3170
3180
  * @see https://tailwindcss.com/docs/brightness
3171
3181
  */
3172
3182
  brightness: [{
3173
- brightness: [C, f, m]
3183
+ brightness: [C, m, p]
3174
3184
  }],
3175
3185
  /**
3176
3186
  * Contrast
3177
3187
  * @see https://tailwindcss.com/docs/contrast
3178
3188
  */
3179
3189
  contrast: [{
3180
- contrast: [C, f, m]
3190
+ contrast: [C, m, p]
3181
3191
  }],
3182
3192
  /**
3183
3193
  * Drop Shadow
@@ -3198,42 +3208,42 @@ const qr = (r, e) => {
3198
3208
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
3199
3209
  */
3200
3210
  "drop-shadow-color": [{
3201
- "drop-shadow": v()
3211
+ "drop-shadow": b()
3202
3212
  }],
3203
3213
  /**
3204
3214
  * Grayscale
3205
3215
  * @see https://tailwindcss.com/docs/grayscale
3206
3216
  */
3207
3217
  grayscale: [{
3208
- grayscale: ["", C, f, m]
3218
+ grayscale: ["", C, m, p]
3209
3219
  }],
3210
3220
  /**
3211
3221
  * Hue Rotate
3212
3222
  * @see https://tailwindcss.com/docs/hue-rotate
3213
3223
  */
3214
3224
  "hue-rotate": [{
3215
- "hue-rotate": [C, f, m]
3225
+ "hue-rotate": [C, m, p]
3216
3226
  }],
3217
3227
  /**
3218
3228
  * Invert
3219
3229
  * @see https://tailwindcss.com/docs/invert
3220
3230
  */
3221
3231
  invert: [{
3222
- invert: ["", C, f, m]
3232
+ invert: ["", C, m, p]
3223
3233
  }],
3224
3234
  /**
3225
3235
  * Saturate
3226
3236
  * @see https://tailwindcss.com/docs/saturate
3227
3237
  */
3228
3238
  saturate: [{
3229
- saturate: [C, f, m]
3239
+ saturate: [C, m, p]
3230
3240
  }],
3231
3241
  /**
3232
3242
  * Sepia
3233
3243
  * @see https://tailwindcss.com/docs/sepia
3234
3244
  */
3235
3245
  sepia: [{
3236
- sepia: ["", C, f, m]
3246
+ sepia: ["", C, m, p]
3237
3247
  }],
3238
3248
  /**
3239
3249
  * Backdrop Filter
@@ -3244,8 +3254,8 @@ const qr = (r, e) => {
3244
3254
  // Deprecated since Tailwind CSS v3.0.0
3245
3255
  "",
3246
3256
  "none",
3247
- f,
3248
- m
3257
+ m,
3258
+ p
3249
3259
  ]
3250
3260
  }],
3251
3261
  /**
@@ -3260,56 +3270,56 @@ const qr = (r, e) => {
3260
3270
  * @see https://tailwindcss.com/docs/backdrop-brightness
3261
3271
  */
3262
3272
  "backdrop-brightness": [{
3263
- "backdrop-brightness": [C, f, m]
3273
+ "backdrop-brightness": [C, m, p]
3264
3274
  }],
3265
3275
  /**
3266
3276
  * Backdrop Contrast
3267
3277
  * @see https://tailwindcss.com/docs/backdrop-contrast
3268
3278
  */
3269
3279
  "backdrop-contrast": [{
3270
- "backdrop-contrast": [C, f, m]
3280
+ "backdrop-contrast": [C, m, p]
3271
3281
  }],
3272
3282
  /**
3273
3283
  * Backdrop Grayscale
3274
3284
  * @see https://tailwindcss.com/docs/backdrop-grayscale
3275
3285
  */
3276
3286
  "backdrop-grayscale": [{
3277
- "backdrop-grayscale": ["", C, f, m]
3287
+ "backdrop-grayscale": ["", C, m, p]
3278
3288
  }],
3279
3289
  /**
3280
3290
  * Backdrop Hue Rotate
3281
3291
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
3282
3292
  */
3283
3293
  "backdrop-hue-rotate": [{
3284
- "backdrop-hue-rotate": [C, f, m]
3294
+ "backdrop-hue-rotate": [C, m, p]
3285
3295
  }],
3286
3296
  /**
3287
3297
  * Backdrop Invert
3288
3298
  * @see https://tailwindcss.com/docs/backdrop-invert
3289
3299
  */
3290
3300
  "backdrop-invert": [{
3291
- "backdrop-invert": ["", C, f, m]
3301
+ "backdrop-invert": ["", C, m, p]
3292
3302
  }],
3293
3303
  /**
3294
3304
  * Backdrop Opacity
3295
3305
  * @see https://tailwindcss.com/docs/backdrop-opacity
3296
3306
  */
3297
3307
  "backdrop-opacity": [{
3298
- "backdrop-opacity": [C, f, m]
3308
+ "backdrop-opacity": [C, m, p]
3299
3309
  }],
3300
3310
  /**
3301
3311
  * Backdrop Saturate
3302
3312
  * @see https://tailwindcss.com/docs/backdrop-saturate
3303
3313
  */
3304
3314
  "backdrop-saturate": [{
3305
- "backdrop-saturate": [C, f, m]
3315
+ "backdrop-saturate": [C, m, p]
3306
3316
  }],
3307
3317
  /**
3308
3318
  * Backdrop Sepia
3309
3319
  * @see https://tailwindcss.com/docs/backdrop-sepia
3310
3320
  */
3311
3321
  "backdrop-sepia": [{
3312
- "backdrop-sepia": ["", C, f, m]
3322
+ "backdrop-sepia": ["", C, m, p]
3313
3323
  }],
3314
3324
  // --------------
3315
3325
  // --- Tables ---
@@ -3326,21 +3336,21 @@ const qr = (r, e) => {
3326
3336
  * @see https://tailwindcss.com/docs/border-spacing
3327
3337
  */
3328
3338
  "border-spacing": [{
3329
- "border-spacing": k()
3339
+ "border-spacing": A()
3330
3340
  }],
3331
3341
  /**
3332
3342
  * Border Spacing X
3333
3343
  * @see https://tailwindcss.com/docs/border-spacing
3334
3344
  */
3335
3345
  "border-spacing-x": [{
3336
- "border-spacing-x": k()
3346
+ "border-spacing-x": A()
3337
3347
  }],
3338
3348
  /**
3339
3349
  * Border Spacing Y
3340
3350
  * @see https://tailwindcss.com/docs/border-spacing
3341
3351
  */
3342
3352
  "border-spacing-y": [{
3343
- "border-spacing-y": k()
3353
+ "border-spacing-y": A()
3344
3354
  }],
3345
3355
  /**
3346
3356
  * Table Layout
@@ -3364,7 +3374,7 @@ const qr = (r, e) => {
3364
3374
  * @see https://tailwindcss.com/docs/transition-property
3365
3375
  */
3366
3376
  transition: [{
3367
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", f, m]
3377
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", m, p]
3368
3378
  }],
3369
3379
  /**
3370
3380
  * Transition Behavior
@@ -3378,28 +3388,28 @@ const qr = (r, e) => {
3378
3388
  * @see https://tailwindcss.com/docs/transition-duration
3379
3389
  */
3380
3390
  duration: [{
3381
- duration: [C, "initial", f, m]
3391
+ duration: [C, "initial", m, p]
3382
3392
  }],
3383
3393
  /**
3384
3394
  * Transition Timing Function
3385
3395
  * @see https://tailwindcss.com/docs/transition-timing-function
3386
3396
  */
3387
3397
  ease: [{
3388
- ease: ["linear", "initial", B, f, m]
3398
+ ease: ["linear", "initial", B, m, p]
3389
3399
  }],
3390
3400
  /**
3391
3401
  * Transition Delay
3392
3402
  * @see https://tailwindcss.com/docs/transition-delay
3393
3403
  */
3394
3404
  delay: [{
3395
- delay: [C, f, m]
3405
+ delay: [C, m, p]
3396
3406
  }],
3397
3407
  /**
3398
3408
  * Animation
3399
3409
  * @see https://tailwindcss.com/docs/animation
3400
3410
  */
3401
3411
  animate: [{
3402
- animate: ["none", O, f, m]
3412
+ animate: ["none", L, m, p]
3403
3413
  }],
3404
3414
  // ------------------
3405
3415
  // --- Transforms ---
@@ -3416,7 +3426,7 @@ const qr = (r, e) => {
3416
3426
  * @see https://tailwindcss.com/docs/perspective
3417
3427
  */
3418
3428
  perspective: [{
3419
- perspective: [I, f, m]
3429
+ perspective: [I, m, p]
3420
3430
  }],
3421
3431
  /**
3422
3432
  * Perspective Origin
@@ -3512,7 +3522,7 @@ const qr = (r, e) => {
3512
3522
  * @see https://tailwindcss.com/docs/transform
3513
3523
  */
3514
3524
  transform: [{
3515
- transform: [f, m, "", "none", "gpu", "cpu"]
3525
+ transform: [m, p, "", "none", "gpu", "cpu"]
3516
3526
  }],
3517
3527
  /**
3518
3528
  * Transform Origin
@@ -3569,7 +3579,7 @@ const qr = (r, e) => {
3569
3579
  * @see https://tailwindcss.com/docs/accent-color
3570
3580
  */
3571
3581
  accent: [{
3572
- accent: v()
3582
+ accent: b()
3573
3583
  }],
3574
3584
  /**
3575
3585
  * Appearance
@@ -3583,7 +3593,7 @@ const qr = (r, e) => {
3583
3593
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
3584
3594
  */
3585
3595
  "caret-color": [{
3586
- caret: v()
3596
+ caret: b()
3587
3597
  }],
3588
3598
  /**
3589
3599
  * Color Scheme
@@ -3597,7 +3607,7 @@ const qr = (r, e) => {
3597
3607
  * @see https://tailwindcss.com/docs/cursor
3598
3608
  */
3599
3609
  cursor: [{
3600
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", f, m]
3610
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", m, p]
3601
3611
  }],
3602
3612
  /**
3603
3613
  * Field Sizing
@@ -3632,126 +3642,126 @@ const qr = (r, e) => {
3632
3642
  * @see https://tailwindcss.com/docs/scroll-margin
3633
3643
  */
3634
3644
  "scroll-m": [{
3635
- "scroll-m": k()
3645
+ "scroll-m": A()
3636
3646
  }],
3637
3647
  /**
3638
3648
  * Scroll Margin X
3639
3649
  * @see https://tailwindcss.com/docs/scroll-margin
3640
3650
  */
3641
3651
  "scroll-mx": [{
3642
- "scroll-mx": k()
3652
+ "scroll-mx": A()
3643
3653
  }],
3644
3654
  /**
3645
3655
  * Scroll Margin Y
3646
3656
  * @see https://tailwindcss.com/docs/scroll-margin
3647
3657
  */
3648
3658
  "scroll-my": [{
3649
- "scroll-my": k()
3659
+ "scroll-my": A()
3650
3660
  }],
3651
3661
  /**
3652
3662
  * Scroll Margin Start
3653
3663
  * @see https://tailwindcss.com/docs/scroll-margin
3654
3664
  */
3655
3665
  "scroll-ms": [{
3656
- "scroll-ms": k()
3666
+ "scroll-ms": A()
3657
3667
  }],
3658
3668
  /**
3659
3669
  * Scroll Margin End
3660
3670
  * @see https://tailwindcss.com/docs/scroll-margin
3661
3671
  */
3662
3672
  "scroll-me": [{
3663
- "scroll-me": k()
3673
+ "scroll-me": A()
3664
3674
  }],
3665
3675
  /**
3666
3676
  * Scroll Margin Top
3667
3677
  * @see https://tailwindcss.com/docs/scroll-margin
3668
3678
  */
3669
3679
  "scroll-mt": [{
3670
- "scroll-mt": k()
3680
+ "scroll-mt": A()
3671
3681
  }],
3672
3682
  /**
3673
3683
  * Scroll Margin Right
3674
3684
  * @see https://tailwindcss.com/docs/scroll-margin
3675
3685
  */
3676
3686
  "scroll-mr": [{
3677
- "scroll-mr": k()
3687
+ "scroll-mr": A()
3678
3688
  }],
3679
3689
  /**
3680
3690
  * Scroll Margin Bottom
3681
3691
  * @see https://tailwindcss.com/docs/scroll-margin
3682
3692
  */
3683
3693
  "scroll-mb": [{
3684
- "scroll-mb": k()
3694
+ "scroll-mb": A()
3685
3695
  }],
3686
3696
  /**
3687
3697
  * Scroll Margin Left
3688
3698
  * @see https://tailwindcss.com/docs/scroll-margin
3689
3699
  */
3690
3700
  "scroll-ml": [{
3691
- "scroll-ml": k()
3701
+ "scroll-ml": A()
3692
3702
  }],
3693
3703
  /**
3694
3704
  * Scroll Padding
3695
3705
  * @see https://tailwindcss.com/docs/scroll-padding
3696
3706
  */
3697
3707
  "scroll-p": [{
3698
- "scroll-p": k()
3708
+ "scroll-p": A()
3699
3709
  }],
3700
3710
  /**
3701
3711
  * Scroll Padding X
3702
3712
  * @see https://tailwindcss.com/docs/scroll-padding
3703
3713
  */
3704
3714
  "scroll-px": [{
3705
- "scroll-px": k()
3715
+ "scroll-px": A()
3706
3716
  }],
3707
3717
  /**
3708
3718
  * Scroll Padding Y
3709
3719
  * @see https://tailwindcss.com/docs/scroll-padding
3710
3720
  */
3711
3721
  "scroll-py": [{
3712
- "scroll-py": k()
3722
+ "scroll-py": A()
3713
3723
  }],
3714
3724
  /**
3715
3725
  * Scroll Padding Start
3716
3726
  * @see https://tailwindcss.com/docs/scroll-padding
3717
3727
  */
3718
3728
  "scroll-ps": [{
3719
- "scroll-ps": k()
3729
+ "scroll-ps": A()
3720
3730
  }],
3721
3731
  /**
3722
3732
  * Scroll Padding End
3723
3733
  * @see https://tailwindcss.com/docs/scroll-padding
3724
3734
  */
3725
3735
  "scroll-pe": [{
3726
- "scroll-pe": k()
3736
+ "scroll-pe": A()
3727
3737
  }],
3728
3738
  /**
3729
3739
  * Scroll Padding Top
3730
3740
  * @see https://tailwindcss.com/docs/scroll-padding
3731
3741
  */
3732
3742
  "scroll-pt": [{
3733
- "scroll-pt": k()
3743
+ "scroll-pt": A()
3734
3744
  }],
3735
3745
  /**
3736
3746
  * Scroll Padding Right
3737
3747
  * @see https://tailwindcss.com/docs/scroll-padding
3738
3748
  */
3739
3749
  "scroll-pr": [{
3740
- "scroll-pr": k()
3750
+ "scroll-pr": A()
3741
3751
  }],
3742
3752
  /**
3743
3753
  * Scroll Padding Bottom
3744
3754
  * @see https://tailwindcss.com/docs/scroll-padding
3745
3755
  */
3746
3756
  "scroll-pb": [{
3747
- "scroll-pb": k()
3757
+ "scroll-pb": A()
3748
3758
  }],
3749
3759
  /**
3750
3760
  * Scroll Padding Left
3751
3761
  * @see https://tailwindcss.com/docs/scroll-padding
3752
3762
  */
3753
3763
  "scroll-pl": [{
3754
- "scroll-pl": k()
3764
+ "scroll-pl": A()
3755
3765
  }],
3756
3766
  /**
3757
3767
  * Scroll Snap Align
@@ -3819,7 +3829,7 @@ const qr = (r, e) => {
3819
3829
  * @see https://tailwindcss.com/docs/will-change
3820
3830
  */
3821
3831
  "will-change": [{
3822
- "will-change": ["auto", "scroll", "contents", "transform", f, m]
3832
+ "will-change": ["auto", "scroll", "contents", "transform", m, p]
3823
3833
  }],
3824
3834
  // -----------
3825
3835
  // --- SVG ---
@@ -3829,21 +3839,21 @@ const qr = (r, e) => {
3829
3839
  * @see https://tailwindcss.com/docs/fill
3830
3840
  */
3831
3841
  fill: [{
3832
- fill: ["none", ...v()]
3842
+ fill: ["none", ...b()]
3833
3843
  }],
3834
3844
  /**
3835
3845
  * Stroke Width
3836
3846
  * @see https://tailwindcss.com/docs/stroke-width
3837
3847
  */
3838
3848
  "stroke-w": [{
3839
- stroke: [C, Ne, ve, Fe]
3849
+ stroke: [C, Ne, ve, Oe]
3840
3850
  }],
3841
3851
  /**
3842
3852
  * Stroke
3843
3853
  * @see https://tailwindcss.com/docs/stroke
3844
3854
  */
3845
3855
  stroke: [{
3846
- stroke: ["none", ...v()]
3856
+ stroke: ["none", ...b()]
3847
3857
  }],
3848
3858
  // ---------------------
3849
3859
  // --- Accessibility ---
@@ -3912,42 +3922,42 @@ const qr = (r, e) => {
3912
3922
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3913
3923
  };
3914
3924
  }, Dt = /* @__PURE__ */ ut(Pt);
3915
- function n(...r) {
3925
+ function s(...r) {
3916
3926
  return Dt(Qr(r));
3917
3927
  }
3918
- const Ve = ne.forwardRef(
3928
+ const Ve = se.forwardRef(
3919
3929
  ({ className: r, variant: e = "default", size: t = "default", ...o }, i) => {
3920
- const l = n(
3930
+ const l = s(
3921
3931
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium",
3922
3932
  "transition-all duration-200 ease-out",
3923
3933
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
3924
3934
  "disabled:pointer-events-none disabled:opacity-50",
3925
3935
  "active:scale-[0.98]"
3926
- ), s = {
3927
- default: n(
3936
+ ), n = {
3937
+ default: s(
3928
3938
  "bg-primary text-primary-foreground",
3929
3939
  "hover:bg-primary/90 hover:shadow-md hover:shadow-primary/25"
3930
3940
  ),
3931
- gradient: n(
3941
+ gradient: s(
3932
3942
  "aria-gradient-bg text-white",
3933
3943
  "hover:opacity-90 hover:shadow-lg hover:shadow-indigo-500/25"
3934
3944
  ),
3935
- destructive: n(
3945
+ destructive: s(
3936
3946
  "bg-destructive text-destructive-foreground",
3937
3947
  "hover:bg-destructive/90 hover:shadow-md hover:shadow-destructive/25"
3938
3948
  ),
3939
- outline: n(
3949
+ outline: s(
3940
3950
  "border border-input bg-background",
3941
3951
  "hover:bg-accent hover:text-accent-foreground hover:border-accent"
3942
3952
  ),
3943
- secondary: n(
3953
+ secondary: s(
3944
3954
  "bg-secondary text-secondary-foreground",
3945
3955
  "hover:bg-secondary/80"
3946
3956
  ),
3947
- ghost: n(
3957
+ ghost: s(
3948
3958
  "hover:bg-accent hover:text-accent-foreground"
3949
3959
  ),
3950
- link: n(
3960
+ link: s(
3951
3961
  "text-primary underline-offset-4",
3952
3962
  "hover:underline"
3953
3963
  )
@@ -3960,7 +3970,7 @@ const Ve = ne.forwardRef(
3960
3970
  return /* @__PURE__ */ a(
3961
3971
  "button",
3962
3972
  {
3963
- className: n(l, s[e], c[t], r),
3973
+ className: s(l, n[e], c[t], r),
3964
3974
  ref: i,
3965
3975
  ...o
3966
3976
  }
@@ -3968,12 +3978,12 @@ const Ve = ne.forwardRef(
3968
3978
  }
3969
3979
  );
3970
3980
  Ve.displayName = "Button";
3971
- const Ar = ne.forwardRef(
3981
+ const Ar = se.forwardRef(
3972
3982
  ({ className: r, type: e, ...t }, o) => /* @__PURE__ */ a(
3973
3983
  "input",
3974
3984
  {
3975
3985
  type: e,
3976
- className: n(
3986
+ className: s(
3977
3987
  "flex h-9 w-full rounded-lg border border-input bg-background px-3 py-1 text-sm",
3978
3988
  "transition-all duration-200 ease-out",
3979
3989
  "file:border-0 file:bg-transparent file:text-sm file:font-medium",
@@ -3990,30 +4000,30 @@ const Ar = ne.forwardRef(
3990
4000
  Ar.displayName = "Input";
3991
4001
  function ke({ className: r, variant: e = "default", ...t }) {
3992
4002
  const o = {
3993
- default: n(
4003
+ default: s(
3994
4004
  "border-transparent bg-primary text-white",
3995
4005
  "shadow-sm"
3996
4006
  ),
3997
- secondary: n(
4007
+ secondary: s(
3998
4008
  "border-transparent bg-secondary text-secondary-foreground"
3999
4009
  ),
4000
- destructive: n(
4010
+ destructive: s(
4001
4011
  "border-transparent bg-destructive text-destructive-foreground"
4002
4012
  ),
4003
- outline: n(
4013
+ outline: s(
4004
4014
  "text-foreground border-border"
4005
4015
  ),
4006
- success: n(
4016
+ success: s(
4007
4017
  "border-transparent bg-emerald-600 text-white shadow-sm"
4008
4018
  ),
4009
- warning: n(
4019
+ warning: s(
4010
4020
  "border-transparent bg-amber-600 text-white shadow-sm"
4011
4021
  )
4012
4022
  };
4013
4023
  return /* @__PURE__ */ a(
4014
4024
  "div",
4015
4025
  {
4016
- className: n(
4026
+ className: s(
4017
4027
  "inline-flex items-center rounded-lg border px-2 py-0.5 text-[10px] font-semibold",
4018
4028
  "transition-colors duration-200",
4019
4029
  o[e],
@@ -4023,11 +4033,11 @@ function ke({ className: r, variant: e = "default", ...t }) {
4023
4033
  }
4024
4034
  );
4025
4035
  }
4026
- const kr = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4036
+ const kr = se.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4027
4037
  "div",
4028
4038
  {
4029
4039
  ref: t,
4030
- className: n(
4040
+ className: s(
4031
4041
  "rounded-lg border bg-card text-card-foreground",
4032
4042
  "shadow-sm transition-shadow duration-200",
4033
4043
  "hover:shadow-md",
@@ -4037,20 +4047,20 @@ const kr = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4037
4047
  }
4038
4048
  ));
4039
4049
  kr.displayName = "Card";
4040
- const Vt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4050
+ const Vt = se.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4041
4051
  "div",
4042
4052
  {
4043
4053
  ref: t,
4044
- className: n("flex flex-col space-y-1.5 p-6", r),
4054
+ className: s("flex flex-col space-y-1.5 p-6", r),
4045
4055
  ...e
4046
4056
  }
4047
4057
  ));
4048
4058
  Vt.displayName = "CardHeader";
4049
- const Wt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4059
+ const Wt = se.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4050
4060
  "h3",
4051
4061
  {
4052
4062
  ref: t,
4053
- className: n(
4063
+ className: s(
4054
4064
  "text-xl font-semibold leading-none tracking-tight",
4055
4065
  r
4056
4066
  ),
@@ -4058,31 +4068,31 @@ const Wt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4058
4068
  }
4059
4069
  ));
4060
4070
  Wt.displayName = "CardTitle";
4061
- const jt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4071
+ const jt = se.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4062
4072
  "p",
4063
4073
  {
4064
4074
  ref: t,
4065
- className: n("text-sm text-muted-foreground", r),
4075
+ className: s("text-sm text-muted-foreground", r),
4066
4076
  ...e
4067
4077
  }
4068
4078
  ));
4069
4079
  jt.displayName = "CardDescription";
4070
- const Bt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a("div", { ref: t, className: n("p-6 pt-0", r), ...e }));
4080
+ const Bt = se.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a("div", { ref: t, className: s("p-6 pt-0", r), ...e }));
4071
4081
  Bt.displayName = "CardContent";
4072
- const Ht = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4082
+ const Ft = se.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4073
4083
  "div",
4074
4084
  {
4075
4085
  ref: t,
4076
- className: n("flex items-center p-6 pt-0", r),
4086
+ className: s("flex items-center p-6 pt-0", r),
4077
4087
  ...e
4078
4088
  }
4079
4089
  ));
4080
- Ht.displayName = "CardFooter";
4081
- const Lt = ({ compact: r = !1 }) => {
4082
- const { sessionState: e, triggerSession: t, theme: o } = Se(), i = o === "dark", l = (s) => {
4083
- if (!s) return "N/A";
4090
+ Ft.displayName = "CardFooter";
4091
+ const Ht = ({ compact: r = !1 }) => {
4092
+ const { sessionState: e, triggerSession: t, theme: o } = Se(), i = o === "dark", l = (n) => {
4093
+ if (!n) return "N/A";
4084
4094
  try {
4085
- const c = new Date(s), d = /* @__PURE__ */ new Date(), g = c.getTime() - d.getTime();
4095
+ const c = new Date(n), d = /* @__PURE__ */ new Date(), g = c.getTime() - d.getTime();
4086
4096
  if (g < 0) return "Expired";
4087
4097
  const w = Math.floor(g / 6e4), E = Math.floor(w / 60);
4088
4098
  return E > 0 ? `${E}h ${w % 60}m` : w > 0 ? `${w}m` : "Less than 1m";
@@ -4090,24 +4100,24 @@ const Lt = ({ compact: r = !1 }) => {
4090
4100
  return "Invalid date";
4091
4101
  }
4092
4102
  };
4093
- return r ? /* @__PURE__ */ y("div", { className: "flex items-center gap-2", children: [
4094
- e.isSessionReady ? /* @__PURE__ */ y(ke, { variant: "success", className: "gap-1", children: [
4103
+ return r ? /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
4104
+ e.isSessionReady ? /* @__PURE__ */ v(ke, { variant: "success", className: "gap-1", children: [
4095
4105
  /* @__PURE__ */ a(Je, { className: "h-3 w-3" }),
4096
4106
  "Session Active"
4097
- ] }) : e.lastError ? /* @__PURE__ */ y(ke, { variant: "destructive", className: "gap-1", children: [
4098
- /* @__PURE__ */ a(He, { className: "h-3 w-3" }),
4107
+ ] }) : e.lastError ? /* @__PURE__ */ v(ke, { variant: "destructive", className: "gap-1", children: [
4108
+ /* @__PURE__ */ a(Fe, { className: "h-3 w-3" }),
4099
4109
  "Error"
4100
- ] }) : /* @__PURE__ */ y(ke, { variant: "secondary", className: "gap-1", children: [
4110
+ ] }) : /* @__PURE__ */ v(ke, { variant: "secondary", className: "gap-1", children: [
4101
4111
  /* @__PURE__ */ a(Xe, { className: "h-3 w-3" }),
4102
4112
  "Ready"
4103
4113
  ] }),
4104
- !e.isSessionReady && /* @__PURE__ */ y(
4114
+ !e.isSessionReady && /* @__PURE__ */ v(
4105
4115
  Ve,
4106
4116
  {
4107
4117
  variant: "outline",
4108
4118
  size: "sm",
4109
4119
  onClick: () => t({ userTrigger: !0 }),
4110
- className: n(
4120
+ className: s(
4111
4121
  "h-7 text-[10px] px-2.5 rounded-lg",
4112
4122
  i ? "border-gray-700 hover:bg-gray-800 hover:border-gray-600" : "border-gray-200 hover:bg-gray-50 hover:border-gray-300"
4113
4123
  ),
@@ -4117,80 +4127,80 @@ const Lt = ({ compact: r = !1 }) => {
4117
4127
  ]
4118
4128
  }
4119
4129
  )
4120
- ] }) : /* @__PURE__ */ a(kr, { className: n(
4130
+ ] }) : /* @__PURE__ */ a(kr, { className: s(
4121
4131
  "p-3 border",
4122
4132
  i ? "bg-gray-800/50 border-gray-700/50" : "bg-gray-50 border-gray-100"
4123
- ), children: /* @__PURE__ */ y("div", { className: "space-y-3", children: [
4124
- /* @__PURE__ */ y("div", { className: "flex items-center justify-between", children: [
4125
- /* @__PURE__ */ y("div", { className: "flex items-center gap-2", children: [
4126
- /* @__PURE__ */ a("div", { className: n(
4133
+ ), children: /* @__PURE__ */ v("div", { className: "space-y-3", children: [
4134
+ /* @__PURE__ */ v("div", { className: "flex items-center justify-between", children: [
4135
+ /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
4136
+ /* @__PURE__ */ a("div", { className: s(
4127
4137
  "w-6 h-6 rounded-md flex items-center justify-center",
4128
4138
  e.isSessionReady ? "bg-emerald-100 dark:bg-emerald-500/20" : i ? "bg-gray-800" : "bg-gray-100"
4129
- ), children: /* @__PURE__ */ a(Xe, { className: n(
4139
+ ), children: /* @__PURE__ */ a(Xe, { className: s(
4130
4140
  "h-3.5 w-3.5",
4131
4141
  e.isSessionReady ? "text-emerald-600 dark:text-emerald-400" : i ? "text-gray-400" : "text-gray-500"
4132
4142
  ) }) }),
4133
- /* @__PURE__ */ a("h3", { className: n(
4143
+ /* @__PURE__ */ a("h3", { className: s(
4134
4144
  "text-xs font-semibold",
4135
4145
  i ? "text-white" : "text-gray-900"
4136
4146
  ), children: "Session" })
4137
4147
  ] }),
4138
- e.isSessionReady ? /* @__PURE__ */ y(ke, { variant: "success", children: [
4148
+ e.isSessionReady ? /* @__PURE__ */ v(ke, { variant: "success", children: [
4139
4149
  /* @__PURE__ */ a(Je, { className: "h-3 w-3 mr-1" }),
4140
4150
  "Active"
4141
- ] }) : e.lastError ? /* @__PURE__ */ y(ke, { variant: "destructive", children: [
4142
- /* @__PURE__ */ a(He, { className: "h-3 w-3 mr-1" }),
4151
+ ] }) : e.lastError ? /* @__PURE__ */ v(ke, { variant: "destructive", children: [
4152
+ /* @__PURE__ */ a(Fe, { className: "h-3 w-3 mr-1" }),
4143
4153
  "Error"
4144
4154
  ] }) : /* @__PURE__ */ a(ke, { variant: "secondary", children: "Not Started" })
4145
4155
  ] }),
4146
- /* @__PURE__ */ y("div", { className: "space-y-2", children: [
4147
- e.session_id && /* @__PURE__ */ y("div", { className: n(
4156
+ /* @__PURE__ */ v("div", { className: "space-y-2", children: [
4157
+ e.session_id && /* @__PURE__ */ v("div", { className: s(
4148
4158
  "flex items-start gap-2 p-2 rounded-lg",
4149
4159
  i ? "bg-gray-800/50 border border-gray-700/50" : "bg-white border border-gray-100"
4150
4160
  ), children: [
4151
- /* @__PURE__ */ a("span", { className: n(
4161
+ /* @__PURE__ */ a("span", { className: s(
4152
4162
  "text-[10px] font-medium min-w-[60px] uppercase tracking-wide",
4153
4163
  i ? "text-gray-400" : "text-gray-500"
4154
4164
  ), children: "ID" }),
4155
- /* @__PURE__ */ a("span", { className: n(
4165
+ /* @__PURE__ */ a("span", { className: s(
4156
4166
  "text-[10px] font-mono break-all",
4157
4167
  i ? "text-gray-300" : "text-gray-700"
4158
4168
  ), children: e.session_id })
4159
4169
  ] }),
4160
- e.expires_at && /* @__PURE__ */ y("div", { className: n(
4170
+ e.expires_at && /* @__PURE__ */ v("div", { className: s(
4161
4171
  "flex items-center gap-2 p-2 rounded-lg",
4162
4172
  i ? "bg-gray-800/50 border border-gray-700/50" : "bg-white border border-gray-100"
4163
4173
  ), children: [
4164
- /* @__PURE__ */ a(zr, { className: n("h-3.5 w-3.5", i ? "text-gray-500" : "text-gray-400") }),
4165
- /* @__PURE__ */ y("span", { className: n("text-xs", i ? "text-gray-400" : "text-gray-600"), children: [
4174
+ /* @__PURE__ */ a(zr, { className: s("h-3.5 w-3.5", i ? "text-gray-500" : "text-gray-400") }),
4175
+ /* @__PURE__ */ v("span", { className: s("text-xs", i ? "text-gray-400" : "text-gray-600"), children: [
4166
4176
  "Expires in: ",
4167
4177
  /* @__PURE__ */ a("span", { className: "font-medium", children: l(e.expires_at) })
4168
4178
  ] })
4169
4179
  ] }),
4170
- e.lastError && /* @__PURE__ */ y("div", { className: n(
4180
+ e.lastError && /* @__PURE__ */ v("div", { className: s(
4171
4181
  "flex items-start gap-3 p-3 rounded-xl border",
4172
4182
  i ? "bg-red-950/30 border-red-900/50" : "bg-red-50 border-red-100"
4173
4183
  ), children: [
4174
- /* @__PURE__ */ a("div", { className: "w-6 h-6 rounded-lg bg-red-500 flex items-center justify-center shrink-0", children: /* @__PURE__ */ a(He, { className: "h-3.5 w-3.5 text-white" }) }),
4175
- /* @__PURE__ */ y("div", { className: "flex-1 min-w-0", children: [
4176
- /* @__PURE__ */ a("p", { className: n(
4184
+ /* @__PURE__ */ a("div", { className: "w-6 h-6 rounded-lg bg-red-500 flex items-center justify-center shrink-0", children: /* @__PURE__ */ a(Fe, { className: "h-3.5 w-3.5 text-white" }) }),
4185
+ /* @__PURE__ */ v("div", { className: "flex-1 min-w-0", children: [
4186
+ /* @__PURE__ */ a("p", { className: s(
4177
4187
  "text-xs font-medium mb-0.5",
4178
4188
  i ? "text-red-300" : "text-red-800"
4179
4189
  ), children: "Connection Error" }),
4180
- /* @__PURE__ */ a("p", { className: n(
4190
+ /* @__PURE__ */ a("p", { className: s(
4181
4191
  "text-[11px] leading-relaxed break-words",
4182
4192
  i ? "text-red-400" : "text-red-600"
4183
4193
  ), children: e.lastError })
4184
4194
  ] })
4185
4195
  ] })
4186
4196
  ] }),
4187
- !e.isSessionReady && /* @__PURE__ */ y(
4197
+ !e.isSessionReady && /* @__PURE__ */ v(
4188
4198
  Ve,
4189
4199
  {
4190
4200
  variant: "outline",
4191
4201
  size: "sm",
4192
4202
  onClick: () => t({ userTrigger: !0 }),
4193
- className: n(
4203
+ className: s(
4194
4204
  "w-full",
4195
4205
  i ? "border-gray-700 hover:bg-gray-800 hover:border-gray-600" : "border-gray-200 hover:bg-gray-50 hover:border-gray-300"
4196
4206
  ),
@@ -4201,15 +4211,15 @@ const Lt = ({ compact: r = !1 }) => {
4201
4211
  }
4202
4212
  )
4203
4213
  ] }) });
4204
- }, Ft = () => {
4205
- const { chatMessages: r, sendMessage: e, isConnected: t, theme: o } = Se(), [i, l] = T(""), [s, c] = T(!1), d = he(null), g = o === "dark", w = () => {
4214
+ }, Ot = () => {
4215
+ const { chatMessages: r, sendMessage: e, isConnected: t, theme: o } = Se(), [i, l] = N(""), [n, c] = N(!1), d = he(null), g = o === "dark", w = () => {
4206
4216
  d.current?.scrollIntoView({ behavior: "smooth" });
4207
4217
  };
4208
4218
  te(() => {
4209
4219
  w();
4210
4220
  }, [r]);
4211
4221
  const E = async () => {
4212
- if (!i.trim() || !t || s) return;
4222
+ if (!i.trim() || !t || n) return;
4213
4223
  const x = i.trim();
4214
4224
  l(""), c(!0);
4215
4225
  try {
@@ -4219,59 +4229,59 @@ const Lt = ({ compact: r = !1 }) => {
4219
4229
  } finally {
4220
4230
  c(!1);
4221
4231
  }
4222
- }, R = (x) => {
4232
+ }, T = (x) => {
4223
4233
  x.key === "Enter" && !x.shiftKey && (x.preventDefault(), E());
4224
4234
  }, V = (x) => new Date(x).toLocaleTimeString("en-US", {
4225
4235
  hour: "2-digit",
4226
4236
  minute: "2-digit"
4227
4237
  });
4228
- return /* @__PURE__ */ y("div", { className: n(
4238
+ return /* @__PURE__ */ v("div", { className: s(
4229
4239
  "flex flex-col h-full",
4230
4240
  g ? "bg-gray-950" : "bg-white"
4231
4241
  ), children: [
4232
- /* @__PURE__ */ a("div", { className: n(
4242
+ /* @__PURE__ */ a("div", { className: s(
4233
4243
  "px-4 py-3 border-b",
4234
4244
  g ? "border-gray-800 bg-gray-900" : "border-gray-100 bg-white"
4235
- ), children: /* @__PURE__ */ y("div", { className: "flex items-center justify-between gap-3", children: [
4236
- /* @__PURE__ */ y("div", { className: "flex items-center gap-2", children: [
4237
- /* @__PURE__ */ a("div", { className: n(
4245
+ ), children: /* @__PURE__ */ v("div", { className: "flex items-center justify-between gap-3", children: [
4246
+ /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
4247
+ /* @__PURE__ */ a("div", { className: s(
4238
4248
  "w-7 h-7 rounded-lg flex items-center justify-center",
4239
4249
  g ? "bg-indigo-900/30" : "bg-indigo-100"
4240
- ), children: /* @__PURE__ */ a(nr, { className: n(
4250
+ ), children: /* @__PURE__ */ a(sr, { className: s(
4241
4251
  "w-4 h-4",
4242
4252
  g ? "text-indigo-400" : "text-indigo-600"
4243
4253
  ) }) }),
4244
- /* @__PURE__ */ a("h3", { className: n(
4254
+ /* @__PURE__ */ a("h3", { className: s(
4245
4255
  "font-bold text-sm",
4246
4256
  g ? "text-white" : "text-gray-900"
4247
4257
  ), children: "Chat with Aria" })
4248
4258
  ] }),
4249
- /* @__PURE__ */ a(Lt, { compact: !0 })
4259
+ /* @__PURE__ */ a(Ht, { compact: !0 })
4250
4260
  ] }) }),
4251
- /* @__PURE__ */ y("div", { className: n(
4261
+ /* @__PURE__ */ v("div", { className: s(
4252
4262
  "flex-1 overflow-y-auto p-4 space-y-4",
4253
4263
  g ? "bg-gray-900/30" : "bg-gray-50/30"
4254
4264
  ), children: [
4255
- r.length === 0 ? /* @__PURE__ */ y("div", { className: "flex flex-col items-center justify-center h-full text-center px-4 aria-animate-fade-in", children: [
4256
- /* @__PURE__ */ a("div", { className: n(
4265
+ r.length === 0 ? /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center h-full text-center px-4 aria-animate-fade-in", children: [
4266
+ /* @__PURE__ */ a("div", { className: s(
4257
4267
  "rounded-2xl p-6 mb-4",
4258
4268
  g ? "bg-gradient-to-br from-indigo-900/20 to-purple-900/20" : "bg-gradient-to-br from-indigo-50 to-purple-50"
4259
- ), children: /* @__PURE__ */ a(Oe, { className: n(
4269
+ ), children: /* @__PURE__ */ a(Le, { className: s(
4260
4270
  "h-8 w-8",
4261
4271
  g ? "text-indigo-400" : "text-indigo-500"
4262
4272
  ) }) }),
4263
- /* @__PURE__ */ a("p", { className: n(
4273
+ /* @__PURE__ */ a("p", { className: s(
4264
4274
  "text-sm font-bold mb-1",
4265
4275
  g ? "text-white" : "text-gray-900"
4266
4276
  ), children: "Let's talk!" }),
4267
- /* @__PURE__ */ a("p", { className: n(
4277
+ /* @__PURE__ */ a("p", { className: s(
4268
4278
  "text-xs",
4269
4279
  g ? "text-gray-400" : "text-gray-500"
4270
4280
  ), children: "Aria is here to chat with you" })
4271
- ] }) : r.filter((x) => x.content && x.content.trim() !== "").map((x, I) => /* @__PURE__ */ y(
4281
+ ] }) : r.filter((x) => x.content && x.content.trim() !== "").map((x, I) => /* @__PURE__ */ v(
4272
4282
  "div",
4273
4283
  {
4274
- className: n(
4284
+ className: s(
4275
4285
  "flex gap-2 aria-animate-fade-in",
4276
4286
  x.role === "user" ? "flex-row-reverse" : "flex-row"
4277
4287
  ),
@@ -4280,17 +4290,17 @@ const Lt = ({ compact: r = !1 }) => {
4280
4290
  /* @__PURE__ */ a(
4281
4291
  "div",
4282
4292
  {
4283
- className: n(
4293
+ className: s(
4284
4294
  "shrink-0 w-6 h-6 rounded-full flex items-center justify-center",
4285
4295
  x.role === "user" ? "bg-indigo-500 text-white" : g ? "bg-gray-700 text-gray-300" : "bg-gray-200 text-gray-600"
4286
4296
  ),
4287
4297
  children: x.role === "user" ? /* @__PURE__ */ a(Ir, { className: "h-3 w-3" }) : /* @__PURE__ */ a(Pr, { className: "h-3 w-3" })
4288
4298
  }
4289
4299
  ),
4290
- /* @__PURE__ */ y(
4300
+ /* @__PURE__ */ v(
4291
4301
  "div",
4292
4302
  {
4293
- className: n(
4303
+ className: s(
4294
4304
  "flex flex-col max-w-[80%]",
4295
4305
  x.role === "user" ? "items-end" : "items-start"
4296
4306
  ),
@@ -4298,17 +4308,17 @@ const Lt = ({ compact: r = !1 }) => {
4298
4308
  /* @__PURE__ */ a(
4299
4309
  "div",
4300
4310
  {
4301
- className: n(
4311
+ className: s(
4302
4312
  "px-3 py-2 rounded-2xl",
4303
4313
  x.role === "user" ? "bg-indigo-500 text-white rounded-br-md" : g ? "bg-gray-800 text-gray-100 rounded-bl-md" : "bg-white shadow-sm text-gray-800 rounded-bl-md"
4304
4314
  ),
4305
- children: /* @__PURE__ */ a("p", { className: n(
4315
+ children: /* @__PURE__ */ a("p", { className: s(
4306
4316
  "text-xs leading-relaxed break-words",
4307
4317
  x.role === "user" && "text-white"
4308
4318
  ), children: x.content })
4309
4319
  }
4310
4320
  ),
4311
- /* @__PURE__ */ a("span", { className: n(
4321
+ /* @__PURE__ */ a("span", { className: s(
4312
4322
  "text-[9px] mt-1 px-1",
4313
4323
  g ? "text-gray-500" : "text-gray-400"
4314
4324
  ), children: V(x.timestamp) })
@@ -4321,10 +4331,10 @@ const Lt = ({ compact: r = !1 }) => {
4321
4331
  )),
4322
4332
  /* @__PURE__ */ a("div", { ref: d })
4323
4333
  ] }),
4324
- /* @__PURE__ */ a("div", { className: n(
4334
+ /* @__PURE__ */ a("div", { className: s(
4325
4335
  "p-3 border-t",
4326
4336
  g ? "border-gray-800 bg-gray-900" : "border-gray-100 bg-white"
4327
- ), children: /* @__PURE__ */ y("div", { className: n(
4337
+ ), children: /* @__PURE__ */ v("div", { className: s(
4328
4338
  "flex gap-2 p-1 rounded-lg border transition-all duration-200",
4329
4339
  g ? "bg-gray-850 border-gray-700 focus-within:border-primary/50" : "bg-gray-50 border-gray-200 focus-within:border-primary/50 focus-within:bg-white"
4330
4340
  ), children: [
@@ -4333,10 +4343,10 @@ const Lt = ({ compact: r = !1 }) => {
4333
4343
  {
4334
4344
  value: i,
4335
4345
  onChange: (x) => l(x.target.value),
4336
- onKeyDown: R,
4346
+ onKeyDown: T,
4337
4347
  placeholder: t ? "Message Aria..." : "Connecting...",
4338
- disabled: !t || s,
4339
- className: n(
4348
+ disabled: !t || n,
4349
+ className: s(
4340
4350
  "flex-1 border-0 bg-transparent shadow-none focus-visible:ring-0 px-2 h-8 text-xs",
4341
4351
  g ? "placeholder:text-gray-500" : "placeholder:text-gray-400"
4342
4352
  )
@@ -4346,9 +4356,9 @@ const Lt = ({ compact: r = !1 }) => {
4346
4356
  Ve,
4347
4357
  {
4348
4358
  onClick: E,
4349
- disabled: !t || !i.trim() || s,
4359
+ disabled: !t || !i.trim() || n,
4350
4360
  size: "icon",
4351
- className: n(
4361
+ className: s(
4352
4362
  "h-7 w-7 rounded-md shrink-0 transition-all duration-200",
4353
4363
  "bg-primary hover:bg-primary/90 disabled:opacity-40"
4354
4364
  ),
@@ -4363,29 +4373,29 @@ const Lt = ({ compact: r = !1 }) => {
4363
4373
  isLoading: o,
4364
4374
  isChatVisible: i,
4365
4375
  isMuted: l,
4366
- liveTranscript: s,
4376
+ liveTranscript: n,
4367
4377
  error: c,
4368
4378
  toggleChat: d,
4369
4379
  toggleMute: g,
4370
4380
  displayMode: w,
4371
4381
  theme: E,
4372
- setVideoElement: R,
4382
+ setVideoElement: T,
4373
4383
  isSessionPreloaded: V,
4374
4384
  refreshSession: x,
4375
4385
  minimizeAssistant: I,
4376
4386
  maximizeAssistant: j,
4377
4387
  toolCallState: B
4378
- } = Se(), O = he(null), D = he(null);
4388
+ } = Se(), L = he(null), D = he(null);
4379
4389
  te(() => {
4380
4390
  D.current && (D.current.scrollTop = D.current.scrollHeight);
4381
- }, [s]), te(() => (O.current && (console.log("[AriaWidget] Registering video element, preloaded:", V, "minimized:", e), R(O.current)), () => {
4382
- R(null);
4383
- }), [R, V, e]);
4391
+ }, [n]), te(() => (L.current && (console.log("[AriaWidget] Registering video element, preloaded:", V, "minimized:", e), T(L.current)), () => {
4392
+ T(null);
4393
+ }), [T, V, e]);
4384
4394
  const h = E === "dark", _ = w === "bottom-right", J = w === "center";
4385
4395
  return e ? /* @__PURE__ */ a(
4386
4396
  "div",
4387
4397
  {
4388
- className: n(
4398
+ className: s(
4389
4399
  "aria-assistant-container flex flex-col overflow-hidden aria-animate-scale-in",
4390
4400
  h && "aria-dark",
4391
4401
  "shadow-2xl rounded-xl",
@@ -4399,23 +4409,23 @@ const Lt = ({ compact: r = !1 }) => {
4399
4409
  backdropFilter: "blur(8px)",
4400
4410
  WebkitBackdropFilter: "blur(8px)"
4401
4411
  },
4402
- children: /* @__PURE__ */ y("div", { className: n(
4412
+ children: /* @__PURE__ */ v("div", { className: s(
4403
4413
  "relative flex-1 flex items-center justify-center overflow-hidden",
4404
4414
  h ? "bg-gradient-to-br from-gray-900 to-black" : "bg-gradient-to-br from-gray-100 to-gray-50"
4405
4415
  ), children: [
4406
4416
  /* @__PURE__ */ a(
4407
4417
  "video",
4408
4418
  {
4409
- ref: O,
4419
+ ref: L,
4410
4420
  autoPlay: !0,
4411
4421
  playsInline: !0,
4412
4422
  className: "w-full h-full object-cover"
4413
4423
  }
4414
4424
  ),
4415
- B.isActive && t && /* @__PURE__ */ y(
4425
+ B.isActive && t && /* @__PURE__ */ v(
4416
4426
  "div",
4417
4427
  {
4418
- className: n(
4428
+ className: s(
4419
4429
  "absolute top-3 left-3 aria-animate-fade-in z-20",
4420
4430
  "flex items-center gap-2 px-3 py-2 rounded-lg",
4421
4431
  "shadow-lg",
@@ -4423,24 +4433,24 @@ const Lt = ({ compact: r = !1 }) => {
4423
4433
  ),
4424
4434
  style: { backdropFilter: "blur(8px)" },
4425
4435
  children: [
4426
- /* @__PURE__ */ a("div", { className: n(
4436
+ /* @__PURE__ */ a("div", { className: s(
4427
4437
  "w-5 h-5 rounded-full flex items-center justify-center",
4428
4438
  h ? "bg-amber-800/50" : "bg-amber-100"
4429
- ), children: /* @__PURE__ */ a(Ze, { className: n(
4439
+ ), children: /* @__PURE__ */ a(Ze, { className: s(
4430
4440
  "w-3 h-3 animate-pulse",
4431
4441
  h ? "text-amber-400" : "text-amber-600"
4432
4442
  ) }) }),
4433
- /* @__PURE__ */ a("span", { className: n(
4443
+ /* @__PURE__ */ a("span", { className: s(
4434
4444
  "text-[10px] font-semibold",
4435
4445
  h ? "text-amber-200" : "text-amber-800"
4436
4446
  ), children: B.toolName ? B.toolName.replace(/_/g, " ") : "Processing..." })
4437
4447
  ]
4438
4448
  }
4439
4449
  ),
4440
- t && !c && /* @__PURE__ */ y(
4450
+ t && !c && /* @__PURE__ */ v(
4441
4451
  "div",
4442
4452
  {
4443
- className: n(
4453
+ className: s(
4444
4454
  "absolute bottom-3 left-1/2 transform -translate-x-1/2 z-20",
4445
4455
  "flex items-center gap-1 p-1 rounded-full",
4446
4456
  "shadow-xl",
@@ -4452,7 +4462,7 @@ const Lt = ({ compact: r = !1 }) => {
4452
4462
  "button",
4453
4463
  {
4454
4464
  onClick: g,
4455
- className: n(
4465
+ className: s(
4456
4466
  "w-8 h-8 rounded-full flex items-center justify-center transition-all duration-200",
4457
4467
  "border-0 outline-none focus:outline-none shadow-sm",
4458
4468
  l ? "bg-red-500 hover:bg-red-600 text-white" : h ? "bg-gray-800/80 hover:bg-gray-700 text-gray-300" : "bg-gray-100/80 hover:bg-gray-200 text-gray-600"
@@ -4465,7 +4475,7 @@ const Lt = ({ compact: r = !1 }) => {
4465
4475
  "button",
4466
4476
  {
4467
4477
  onClick: j,
4468
- className: n(
4478
+ className: s(
4469
4479
  "w-8 h-8 rounded-full flex items-center justify-center transition-all duration-200",
4470
4480
  "border-0 outline-none focus:outline-none shadow-sm",
4471
4481
  h ? "bg-indigo-600 hover:bg-indigo-700 text-white" : "bg-indigo-500 hover:bg-indigo-600 text-white"
@@ -4486,19 +4496,19 @@ const Lt = ({ compact: r = !1 }) => {
4486
4496
  ]
4487
4497
  }
4488
4498
  ),
4489
- o && /* @__PURE__ */ y("div", { className: n(
4499
+ o && /* @__PURE__ */ v("div", { className: s(
4490
4500
  "absolute inset-0 flex flex-col items-center justify-center z-10",
4491
4501
  h ? "bg-gradient-to-br from-gray-900 to-gray-950" : "bg-gradient-to-br from-gray-50 to-white"
4492
4502
  ), children: [
4493
- /* @__PURE__ */ y("div", { className: "relative mb-3", children: [
4494
- /* @__PURE__ */ a("div", { className: n(
4503
+ /* @__PURE__ */ v("div", { className: "relative mb-3", children: [
4504
+ /* @__PURE__ */ a("div", { className: s(
4495
4505
  "absolute -inset-2 rounded-full animate-spin",
4496
4506
  h ? "bg-gradient-to-r from-indigo-400 via-purple-400 to-pink-400" : "bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500"
4497
- ), style: { animationDuration: "3s" }, children: /* @__PURE__ */ a("div", { className: n(
4507
+ ), style: { animationDuration: "3s" }, children: /* @__PURE__ */ a("div", { className: s(
4498
4508
  "absolute inset-[2px] rounded-full",
4499
4509
  h ? "bg-gray-900" : "bg-white"
4500
4510
  ) }) }),
4501
- /* @__PURE__ */ a("div", { className: n(
4511
+ /* @__PURE__ */ a("div", { className: s(
4502
4512
  "relative w-12 h-12 rounded-full overflow-hidden shadow-lg",
4503
4513
  h ? "bg-gray-800 ring-2 ring-gray-900" : "bg-gray-100 ring-2 ring-white"
4504
4514
  ), children: /* @__PURE__ */ a(
@@ -4507,31 +4517,31 @@ const Lt = ({ compact: r = !1 }) => {
4507
4517
  src: Ge,
4508
4518
  alt: "Aria",
4509
4519
  className: "w-full h-full object-cover",
4510
- onError: (H) => {
4511
- H.currentTarget.style.display = "none";
4520
+ onError: (F) => {
4521
+ F.currentTarget.style.display = "none";
4512
4522
  }
4513
4523
  }
4514
4524
  ) })
4515
4525
  ] }),
4516
- /* @__PURE__ */ a("p", { className: n(
4526
+ /* @__PURE__ */ a("p", { className: s(
4517
4527
  "text-xs font-medium",
4518
4528
  h ? "text-gray-400" : "text-gray-600"
4519
4529
  ), children: "Connecting..." })
4520
4530
  ] }),
4521
- c && /* @__PURE__ */ y("div", { className: n(
4531
+ c && /* @__PURE__ */ v("div", { className: s(
4522
4532
  "absolute inset-0 flex flex-col items-center justify-center z-10 p-4",
4523
4533
  h ? "bg-gray-950/90" : "bg-white/90"
4524
4534
  ), children: [
4525
4535
  /* @__PURE__ */ a("div", { className: "w-10 h-10 rounded-full bg-red-500/10 flex items-center justify-center mb-2", children: /* @__PURE__ */ a(_e, { className: "w-5 h-5 text-red-500" }) }),
4526
- /* @__PURE__ */ a("p", { className: n(
4536
+ /* @__PURE__ */ a("p", { className: s(
4527
4537
  "text-xs font-medium text-center mb-2",
4528
4538
  h ? "text-red-300" : "text-red-700"
4529
4539
  ), children: "Connection error" }),
4530
- /* @__PURE__ */ y(
4540
+ /* @__PURE__ */ v(
4531
4541
  "button",
4532
4542
  {
4533
4543
  onClick: () => x(),
4534
- className: n(
4544
+ className: s(
4535
4545
  "inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium",
4536
4546
  "transition-all duration-200",
4537
4547
  h ? "bg-indigo-600 hover:bg-indigo-700 text-white" : "bg-indigo-500 hover:bg-indigo-600 text-white"
@@ -4548,7 +4558,7 @@ const Lt = ({ compact: r = !1 }) => {
4548
4558
  ) : /* @__PURE__ */ a(
4549
4559
  "div",
4550
4560
  {
4551
- className: n(
4561
+ className: s(
4552
4562
  "aria-assistant-container flex flex-col overflow-hidden aria-animate-scale-in",
4553
4563
  h && "aria-dark",
4554
4564
  // Base styling
@@ -4569,47 +4579,47 @@ const Lt = ({ compact: r = !1 }) => {
4569
4579
  backdropFilter: "blur(8px)",
4570
4580
  WebkitBackdropFilter: "blur(8px)"
4571
4581
  },
4572
- children: /* @__PURE__ */ y("div", { className: "flex-1 flex overflow-hidden min-h-0", children: [
4573
- /* @__PURE__ */ y("div", { className: n(
4582
+ children: /* @__PURE__ */ v("div", { className: "flex-1 flex overflow-hidden min-h-0", children: [
4583
+ /* @__PURE__ */ v("div", { className: s(
4574
4584
  "relative flex items-center justify-center overflow-hidden",
4575
4585
  h ? "bg-gradient-to-br from-gray-900 to-black" : "bg-gradient-to-br from-gray-100 to-gray-50",
4576
4586
  i ? "flex-1" : "w-full"
4577
4587
  ), children: [
4578
- o && /* @__PURE__ */ y(
4588
+ o && /* @__PURE__ */ v(
4579
4589
  "div",
4580
4590
  {
4581
- className: n(
4591
+ className: s(
4582
4592
  "absolute inset-0 flex flex-col items-center justify-center z-10",
4583
4593
  h ? "bg-gradient-to-br from-gray-900 to-gray-950" : "bg-gradient-to-br from-gray-50 to-white"
4584
4594
  ),
4585
4595
  children: [
4586
- /* @__PURE__ */ y("div", { className: "absolute inset-0 overflow-hidden pointer-events-none", children: [
4587
- /* @__PURE__ */ a("div", { className: n(
4596
+ /* @__PURE__ */ v("div", { className: "absolute inset-0 overflow-hidden pointer-events-none", children: [
4597
+ /* @__PURE__ */ a("div", { className: s(
4588
4598
  "absolute w-96 h-96 rounded-full opacity-20 blur-3xl",
4589
4599
  "animate-pulse",
4590
4600
  h ? "bg-indigo-900" : "bg-indigo-300"
4591
4601
  ), style: { top: "20%", left: "10%", animationDuration: "3s" } }),
4592
- /* @__PURE__ */ a("div", { className: n(
4602
+ /* @__PURE__ */ a("div", { className: s(
4593
4603
  "absolute w-64 h-64 rounded-full opacity-20 blur-3xl",
4594
4604
  "animate-pulse",
4595
4605
  h ? "bg-purple-900" : "bg-purple-300"
4596
4606
  ), style: { bottom: "20%", right: "10%", animationDuration: "4s", animationDelay: "1s" } })
4597
4607
  ] }),
4598
- /* @__PURE__ */ y("div", { className: "relative flex flex-col items-center", children: [
4599
- /* @__PURE__ */ y("div", { className: "relative mb-6", children: [
4600
- /* @__PURE__ */ a("div", { className: n(
4608
+ /* @__PURE__ */ v("div", { className: "relative flex flex-col items-center", children: [
4609
+ /* @__PURE__ */ v("div", { className: "relative mb-6", children: [
4610
+ /* @__PURE__ */ a("div", { className: s(
4601
4611
  "absolute -inset-3 rounded-full",
4602
4612
  "animate-spin",
4603
4613
  h ? "bg-gradient-to-r from-indigo-400 via-purple-400 to-pink-400" : "bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500"
4604
- ), style: { animationDuration: "3s" }, children: /* @__PURE__ */ a("div", { className: n(
4614
+ ), style: { animationDuration: "3s" }, children: /* @__PURE__ */ a("div", { className: s(
4605
4615
  "absolute inset-[3px] rounded-full",
4606
4616
  h ? "bg-gray-900" : "bg-white"
4607
4617
  ) }) }),
4608
- /* @__PURE__ */ a("div", { className: n(
4618
+ /* @__PURE__ */ a("div", { className: s(
4609
4619
  "absolute -inset-1.5 rounded-full opacity-60 animate-pulse",
4610
4620
  h ? "bg-gradient-to-r from-indigo-500 to-purple-500" : "bg-gradient-to-r from-indigo-400 to-purple-400"
4611
4621
  ) }),
4612
- /* @__PURE__ */ a("div", { className: n(
4622
+ /* @__PURE__ */ a("div", { className: s(
4613
4623
  "relative w-20 h-20 rounded-full overflow-hidden",
4614
4624
  "shadow-xl",
4615
4625
  h ? "bg-gray-800 ring-4 ring-gray-900" : "bg-gray-100 ring-4 ring-white"
@@ -4619,31 +4629,31 @@ const Lt = ({ compact: r = !1 }) => {
4619
4629
  src: Ge,
4620
4630
  alt: "Aria",
4621
4631
  className: "w-full h-full object-cover",
4622
- onError: (H) => {
4623
- H.currentTarget.style.display = "none";
4632
+ onError: (F) => {
4633
+ F.currentTarget.style.display = "none";
4624
4634
  }
4625
4635
  }
4626
4636
  ) })
4627
4637
  ] }),
4628
- /* @__PURE__ */ a("h3", { className: n(
4638
+ /* @__PURE__ */ a("h3", { className: s(
4629
4639
  "text-2xl font-bold tracking-tight mb-2",
4630
4640
  h ? "text-white" : "text-gray-900"
4631
4641
  ), children: "Aria is joining..." }),
4632
- /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5 mb-6", children: [0, 1, 2].map((H) => /* @__PURE__ */ a(
4642
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5 mb-6", children: [0, 1, 2].map((F) => /* @__PURE__ */ a(
4633
4643
  "div",
4634
4644
  {
4635
- className: n(
4645
+ className: s(
4636
4646
  "w-2.5 h-2.5 rounded-full",
4637
4647
  h ? "bg-indigo-400" : "bg-indigo-500"
4638
4648
  ),
4639
4649
  style: {
4640
4650
  animation: "aria-loading-bounce 1.4s ease-in-out infinite",
4641
- animationDelay: `${H * 0.15}s`
4651
+ animationDelay: `${F * 0.15}s`
4642
4652
  }
4643
4653
  },
4644
- H
4654
+ F
4645
4655
  )) }),
4646
- /* @__PURE__ */ a("p", { className: n(
4656
+ /* @__PURE__ */ a("p", { className: s(
4647
4657
  "text-sm font-medium px-4 py-2 rounded-full",
4648
4658
  h ? "bg-gray-800 text-gray-400" : "bg-gray-100 text-gray-600"
4649
4659
  ), children: "Get ready to chat" })
@@ -4654,30 +4664,30 @@ const Lt = ({ compact: r = !1 }) => {
4654
4664
  c && /* @__PURE__ */ a(
4655
4665
  "div",
4656
4666
  {
4657
- className: n(
4667
+ className: s(
4658
4668
  "absolute inset-0 flex flex-col items-center justify-center z-10 p-6",
4659
4669
  h ? "bg-gray-950/80" : "bg-white/80"
4660
4670
  ),
4661
4671
  style: { backdropFilter: "blur(4px)" },
4662
- children: /* @__PURE__ */ a("div", { className: n(
4672
+ children: /* @__PURE__ */ a("div", { className: s(
4663
4673
  "rounded-lg p-6 max-w-sm w-full shadow-lg border",
4664
4674
  h ? "bg-gray-900 border-red-900/30" : "bg-white border-red-100"
4665
- ), children: /* @__PURE__ */ y("div", { className: "flex flex-col items-center text-center gap-3", children: [
4675
+ ), children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center text-center gap-3", children: [
4666
4676
  /* @__PURE__ */ a("div", { className: "w-12 h-12 rounded-full bg-red-500/10 flex items-center justify-center", children: /* @__PURE__ */ a(_e, { className: "w-6 h-6 text-red-500" }) }),
4667
- /* @__PURE__ */ y("div", { children: [
4668
- /* @__PURE__ */ a("p", { className: n(
4677
+ /* @__PURE__ */ v("div", { children: [
4678
+ /* @__PURE__ */ a("p", { className: s(
4669
4679
  "text-base font-bold mb-2",
4670
4680
  h ? "text-red-200" : "text-red-900"
4671
4681
  ), children: "Couldn't reach Aria" }),
4672
- /* @__PURE__ */ a("p", { className: n(
4682
+ /* @__PURE__ */ a("p", { className: s(
4673
4683
  "text-sm leading-relaxed mb-4",
4674
4684
  h ? "text-red-400" : "text-red-600"
4675
4685
  ), children: c }),
4676
- /* @__PURE__ */ y(
4686
+ /* @__PURE__ */ v(
4677
4687
  "button",
4678
4688
  {
4679
4689
  onClick: () => x(),
4680
- className: n(
4690
+ className: s(
4681
4691
  "inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium",
4682
4692
  "transition-all duration-200",
4683
4693
  h ? "bg-indigo-600 hover:bg-indigo-700 text-white" : "bg-indigo-500 hover:bg-indigo-600 text-white"
@@ -4695,16 +4705,16 @@ const Lt = ({ compact: r = !1 }) => {
4695
4705
  /* @__PURE__ */ a(
4696
4706
  "video",
4697
4707
  {
4698
- ref: O,
4708
+ ref: L,
4699
4709
  autoPlay: !0,
4700
4710
  playsInline: !0,
4701
4711
  className: "w-full h-full object-contain"
4702
4712
  }
4703
4713
  ),
4704
- B.isActive && t && /* @__PURE__ */ y(
4714
+ B.isActive && t && /* @__PURE__ */ v(
4705
4715
  "div",
4706
4716
  {
4707
- className: n(
4717
+ className: s(
4708
4718
  "absolute top-3 left-3 aria-animate-fade-in z-20",
4709
4719
  "flex items-center gap-2 px-3 py-2 rounded-lg",
4710
4720
  "shadow-lg",
@@ -4712,59 +4722,59 @@ const Lt = ({ compact: r = !1 }) => {
4712
4722
  ),
4713
4723
  style: { backdropFilter: "blur(8px)" },
4714
4724
  children: [
4715
- /* @__PURE__ */ a("div", { className: n(
4725
+ /* @__PURE__ */ a("div", { className: s(
4716
4726
  "w-6 h-6 rounded-full flex items-center justify-center",
4717
4727
  h ? "bg-amber-800/50" : "bg-amber-100"
4718
- ), children: /* @__PURE__ */ a(Ze, { className: n(
4728
+ ), children: /* @__PURE__ */ a(Ze, { className: s(
4719
4729
  "w-3.5 h-3.5 animate-pulse",
4720
4730
  h ? "text-amber-400" : "text-amber-600"
4721
4731
  ) }) }),
4722
- /* @__PURE__ */ y("div", { className: "flex flex-col", children: [
4723
- /* @__PURE__ */ a("span", { className: n(
4732
+ /* @__PURE__ */ v("div", { className: "flex flex-col", children: [
4733
+ /* @__PURE__ */ a("span", { className: s(
4724
4734
  "text-xs font-semibold",
4725
4735
  h ? "text-amber-200" : "text-amber-800"
4726
4736
  ), children: B.toolName ? `Running: ${B.toolName.replace(/_/g, " ")}` : "Processing..." }),
4727
- /* @__PURE__ */ a("span", { className: n(
4737
+ /* @__PURE__ */ a("span", { className: s(
4728
4738
  "text-[10px]",
4729
4739
  h ? "text-amber-400" : "text-amber-600"
4730
4740
  ), children: "Please wait..." })
4731
4741
  ] }),
4732
- /* @__PURE__ */ a("div", { className: "flex items-center gap-0.5 ml-1", children: [0, 1, 2].map((H) => /* @__PURE__ */ a(
4742
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-0.5 ml-1", children: [0, 1, 2].map((F) => /* @__PURE__ */ a(
4733
4743
  "div",
4734
4744
  {
4735
- className: n(
4745
+ className: s(
4736
4746
  "w-1.5 h-1.5 rounded-full",
4737
4747
  h ? "bg-amber-400" : "bg-amber-500"
4738
4748
  ),
4739
4749
  style: {
4740
4750
  animation: "aria-loading-bounce 1.4s ease-in-out infinite",
4741
- animationDelay: `${H * 0.15}s`
4751
+ animationDelay: `${F * 0.15}s`
4742
4752
  }
4743
4753
  },
4744
- H
4754
+ F
4745
4755
  )) })
4746
4756
  ]
4747
4757
  }
4748
4758
  ),
4749
- s && t && !B.isActive && /* @__PURE__ */ a(
4759
+ n && t && !B.isActive && /* @__PURE__ */ a(
4750
4760
  "div",
4751
4761
  {
4752
- className: n(
4762
+ className: s(
4753
4763
  "absolute top-0 left-0 right-0 aria-animate-fade-in",
4754
4764
  "px-4 py-2",
4755
4765
  h ? "bg-gradient-to-b from-white/60 to-transparent text-gray-900" : "bg-gradient-to-b from-black/60 to-transparent text-white"
4756
4766
  ),
4757
4767
  style: { backdropFilter: "blur(4px)" },
4758
- children: /* @__PURE__ */ y("div", { className: "flex items-start gap-2 max-w-full", children: [
4768
+ children: /* @__PURE__ */ v("div", { className: "flex items-start gap-2 max-w-full", children: [
4759
4769
  /* @__PURE__ */ a("div", { className: "w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse shrink-0 mt-1" }),
4760
- /* @__PURE__ */ a("p", { ref: D, className: "text-xs leading-relaxed flex-1 max-h-[3.5em] overflow-y-auto scrollbar-hide", children: s })
4770
+ /* @__PURE__ */ a("p", { ref: D, className: "text-xs leading-relaxed flex-1 max-h-[3.5em] overflow-y-auto scrollbar-hide", children: n })
4761
4771
  ] })
4762
4772
  }
4763
4773
  ),
4764
- t && !c && /* @__PURE__ */ y(
4774
+ t && !c && /* @__PURE__ */ v(
4765
4775
  "div",
4766
4776
  {
4767
- className: n(
4777
+ className: s(
4768
4778
  "absolute bottom-4 left-1/2 transform -translate-x-1/2 z-20",
4769
4779
  "flex items-center gap-1.5 p-1 rounded-full",
4770
4780
  "shadow-xl",
@@ -4776,20 +4786,20 @@ const Lt = ({ compact: r = !1 }) => {
4776
4786
  "button",
4777
4787
  {
4778
4788
  onClick: d,
4779
- className: n(
4789
+ className: s(
4780
4790
  "w-9 h-9 rounded-full flex items-center justify-center transition-all duration-200",
4781
4791
  "border-0 outline-none focus:outline-none shadow-sm",
4782
4792
  i ? h ? "bg-indigo-600 hover:bg-indigo-700 text-white" : "bg-indigo-500 hover:bg-indigo-600 text-white" : h ? "bg-gray-800/80 hover:bg-gray-700 text-gray-300" : "bg-gray-100/80 hover:bg-gray-200 text-gray-600"
4783
4793
  ),
4784
4794
  title: i ? "Hide Chat" : "Show Chat",
4785
- children: /* @__PURE__ */ a(nr, { className: "h-4 w-4" })
4795
+ children: /* @__PURE__ */ a(sr, { className: "h-4 w-4" })
4786
4796
  }
4787
4797
  ),
4788
4798
  /* @__PURE__ */ a(
4789
4799
  "button",
4790
4800
  {
4791
4801
  onClick: g,
4792
- className: n(
4802
+ className: s(
4793
4803
  "w-9 h-9 rounded-full flex items-center justify-center transition-all duration-200",
4794
4804
  "border-0 outline-none focus:outline-none shadow-sm",
4795
4805
  l ? "bg-red-500 hover:bg-red-600 text-white" : h ? "bg-gray-800/80 hover:bg-gray-700 text-gray-300" : "bg-gray-100/80 hover:bg-gray-200 text-gray-600"
@@ -4802,7 +4812,7 @@ const Lt = ({ compact: r = !1 }) => {
4802
4812
  "button",
4803
4813
  {
4804
4814
  onClick: I,
4805
- className: n(
4815
+ className: s(
4806
4816
  "w-9 h-9 rounded-full flex items-center justify-center transition-all duration-200",
4807
4817
  "border-0 outline-none focus:outline-none shadow-sm",
4808
4818
  h ? "bg-gray-800/80 hover:bg-gray-700 text-gray-300" : "bg-gray-100/80 hover:bg-gray-200 text-gray-600"
@@ -4824,11 +4834,11 @@ const Lt = ({ compact: r = !1 }) => {
4824
4834
  }
4825
4835
  )
4826
4836
  ] }),
4827
- i && /* @__PURE__ */ a("div", { className: n(
4837
+ i && /* @__PURE__ */ a("div", { className: s(
4828
4838
  "flex flex-col shrink-0 border-l",
4829
4839
  _ ? "w-[320px]" : "w-[360px]",
4830
4840
  h ? "bg-gray-900 border-gray-800" : "bg-white border-gray-100"
4831
- ), children: /* @__PURE__ */ a(Ft, {}) })
4841
+ ), children: /* @__PURE__ */ a(Ot, {}) })
4832
4842
  ] })
4833
4843
  }
4834
4844
  );
@@ -4839,30 +4849,30 @@ const Lt = ({ compact: r = !1 }) => {
4839
4849
  style: o,
4840
4850
  as: i = "div"
4841
4851
  }) => {
4842
- const l = he(null), [s, c] = T(null);
4852
+ const l = he(null), [n, c] = N(null);
4843
4853
  te(() => {
4844
4854
  const w = l.current;
4845
4855
  if (!w) return;
4846
4856
  let E = w.shadowRoot;
4847
4857
  E || (E = w.attachShadow({ mode: "open" })), c(E);
4848
4858
  }, []), te(() => {
4849
- if (!s || !e) return;
4850
- const w = s.querySelector("style[data-aria-styles]");
4859
+ if (!n || !e) return;
4860
+ const w = n.querySelector("style[data-aria-styles]");
4851
4861
  if (w) {
4852
4862
  w.textContent = e;
4853
4863
  return;
4854
4864
  }
4855
4865
  const E = document.createElement("style");
4856
- return E.setAttribute("data-aria-styles", "true"), E.textContent = e, s.prepend(E), () => {
4866
+ return E.setAttribute("data-aria-styles", "true"), E.textContent = e, n.prepend(E), () => {
4857
4867
  E.remove();
4858
4868
  };
4859
- }, [s, e]);
4860
- const [d, g] = T(null);
4869
+ }, [n, e]);
4870
+ const [d, g] = N(null);
4861
4871
  return te(() => {
4862
- if (!s) return;
4863
- let w = s.querySelector(".aria-shadow-content");
4864
- w || (w = document.createElement("div"), w.className = "aria-shadow-content", s.appendChild(w)), g(w);
4865
- }, [s]), /* @__PURE__ */ a(
4872
+ if (!n) return;
4873
+ let w = n.querySelector(".aria-shadow-content");
4874
+ w || (w = document.createElement("div"), w.className = "aria-shadow-content", n.appendChild(w)), g(w);
4875
+ }, [n]), /* @__PURE__ */ a(
4866
4876
  i,
4867
4877
  {
4868
4878
  ref: l,
@@ -4875,14 +4885,14 @@ const Lt = ({ compact: r = !1 }) => {
4875
4885
  function je() {
4876
4886
  return Er;
4877
4887
  }
4878
- const ao = Er, Ot = ({
4888
+ const ao = Er, Lt = ({
4879
4889
  label: r,
4880
4890
  showAvatar: e = !1,
4881
4891
  onTrigger: t,
4882
4892
  className: o,
4883
4893
  ...i
4884
4894
  }) => {
4885
- const { openAssistant: l, isSessionPreloaded: s, sessionManagerStatus: c, config: d, isOpen: g, theme: w } = Se(), E = r || d.triggerLabel || "Talk to Aria", R = w === "dark", V = s || c === "ready";
4895
+ const { openAssistant: l, isSessionPreloaded: n, sessionManagerStatus: c, config: d, isOpen: g, theme: w } = Se(), E = r || d.triggerLabel || "Talk to Aria", T = w === "dark", V = n || c === "ready";
4886
4896
  return g ? null : /* @__PURE__ */ a(
4887
4897
  We,
4888
4898
  {
@@ -4893,24 +4903,24 @@ const ao = Er, Ot = ({
4893
4903
  right: "1.5rem",
4894
4904
  zIndex: 9997
4895
4905
  },
4896
- children: /* @__PURE__ */ a("div", { className: n("aria-assistant-container", R && "aria-dark"), children: /* @__PURE__ */ y(
4906
+ children: /* @__PURE__ */ a("div", { className: s("aria-assistant-container", T && "aria-dark"), children: /* @__PURE__ */ v(
4897
4907
  "button",
4898
4908
  {
4899
4909
  onClick: (x) => {
4900
4910
  x.preventDefault(), l("user"), t?.();
4901
4911
  },
4902
- className: n(
4912
+ className: s(
4903
4913
  "group relative flex items-center gap-3 px-3.5 py-2.5 rounded-xl",
4904
4914
  "transition-all duration-200 ease-out",
4905
4915
  "aria-animate-slide-up",
4906
4916
  "border-none outline-none",
4907
4917
  // Light mode styling
4908
- !R && [
4918
+ !T && [
4909
4919
  "bg-white shadow-[0_8px_30px_rgb(0,0,0,0.12)]",
4910
4920
  "hover:bg-gray-50 hover:shadow-[0_8px_30px_rgb(0,0,0,0.16)] hover:-translate-y-0.5"
4911
4921
  ],
4912
4922
  // Dark mode styling
4913
- R && [
4923
+ T && [
4914
4924
  "bg-gray-900 shadow-[0_8px_30px_rgb(0,0,0,0.3)]",
4915
4925
  "hover:bg-gray-850 hover:shadow-[0_8px_30px_rgb(0,0,0,0.4)] hover:-translate-y-0.5"
4916
4926
  ],
@@ -4918,10 +4928,10 @@ const ao = Er, Ot = ({
4918
4928
  ),
4919
4929
  ...i,
4920
4930
  children: [
4921
- e ? /* @__PURE__ */ y("div", { className: n(
4931
+ e ? /* @__PURE__ */ v("div", { className: s(
4922
4932
  "relative w-9 h-9 rounded-lg overflow-hidden shrink-0",
4923
4933
  "shadow-sm transition-all duration-200",
4924
- R ? "bg-gray-800" : "bg-gray-100"
4934
+ T ? "bg-gray-800" : "bg-gray-100"
4925
4935
  ), children: [
4926
4936
  /* @__PURE__ */ a(
4927
4937
  "img",
@@ -4940,27 +4950,27 @@ const ao = Er, Ot = ({
4940
4950
  "div",
4941
4951
  {
4942
4952
  className: "hidden w-full h-full items-center justify-center aria-gradient-bg text-white",
4943
- children: /* @__PURE__ */ a(Oe, { className: "w-4 h-4" })
4953
+ children: /* @__PURE__ */ a(Le, { className: "w-4 h-4" })
4944
4954
  }
4945
4955
  ),
4946
- /* @__PURE__ */ a("span", { className: n(
4956
+ /* @__PURE__ */ a("span", { className: s(
4947
4957
  "absolute bottom-0 right-0 w-2.5 h-2.5 rounded-full border-2",
4948
- R ? "border-gray-900" : "border-white",
4958
+ T ? "border-gray-900" : "border-white",
4949
4959
  V ? "bg-emerald-500" : "bg-amber-500 animate-pulse"
4950
4960
  ) })
4951
- ] }) : /* @__PURE__ */ a("div", { className: n(
4961
+ ] }) : /* @__PURE__ */ a("div", { className: s(
4952
4962
  "relative w-9 h-9 rounded-lg flex items-center justify-center shrink-0",
4953
4963
  "aria-gradient-bg text-white shadow-sm",
4954
4964
  "transition-transform duration-200 group-hover:scale-105"
4955
- ), children: /* @__PURE__ */ a(Oe, { className: "w-4 h-4" }) }),
4956
- /* @__PURE__ */ y("div", { className: "relative flex flex-col items-start min-w-0 text-left", children: [
4957
- /* @__PURE__ */ a("span", { className: n(
4965
+ ), children: /* @__PURE__ */ a(Le, { className: "w-4 h-4" }) }),
4966
+ /* @__PURE__ */ v("div", { className: "relative flex flex-col items-start min-w-0 text-left", children: [
4967
+ /* @__PURE__ */ a("span", { className: s(
4958
4968
  "font-bold text-[13px] tracking-tight leading-none",
4959
- R ? "text-white" : "text-gray-900"
4969
+ T ? "text-white" : "text-gray-900"
4960
4970
  ), children: E }),
4961
- /* @__PURE__ */ a("span", { className: n(
4971
+ /* @__PURE__ */ a("span", { className: s(
4962
4972
  "text-[10px] font-medium mt-1 leading-none opacity-70",
4963
- R ? "text-gray-400" : "text-gray-500"
4973
+ T ? "text-gray-400" : "text-gray-500"
4964
4974
  ), children: "I'm here to chat" })
4965
4975
  ] })
4966
4976
  ]
@@ -4973,15 +4983,15 @@ const ao = Er, Ot = ({
4973
4983
  showAvatar: e = !0,
4974
4984
  triggerLabel: t
4975
4985
  }) => {
4976
- const { isOpen: o, isMinimized: i, closeAssistant: l, minimizeAssistant: s } = Se();
4977
- return /* @__PURE__ */ y(Re, { children: [
4978
- r && !o && /* @__PURE__ */ a(Ot, { showAvatar: e, label: t }),
4979
- o && /* @__PURE__ */ y(Re, { children: [
4986
+ const { isOpen: o, isMinimized: i, closeAssistant: l, minimizeAssistant: n } = Se();
4987
+ return /* @__PURE__ */ v(Te, { children: [
4988
+ r && !o && /* @__PURE__ */ a(Lt, { showAvatar: e, label: t }),
4989
+ o && /* @__PURE__ */ v(Te, { children: [
4980
4990
  !i && /* @__PURE__ */ a(
4981
4991
  "div",
4982
4992
  {
4983
4993
  onClick: (c) => {
4984
- c.preventDefault(), c.stopPropagation(), s();
4994
+ c.preventDefault(), c.stopPropagation(), n();
4985
4995
  },
4986
4996
  style: {
4987
4997
  position: "fixed",
@@ -5012,11 +5022,11 @@ const ao = Er, Ot = ({
5012
5022
  ] })
5013
5023
  ] });
5014
5024
  }, io = ({ config: r, children: e }) => {
5015
- const [t, o] = T(!1), [i, l] = T(!1), [s, c] = T(!1), [d, g] = T(!1), [w, E] = T([]), [R, V] = T(""), [x, I] = T(!1), [j, B] = T(!1), [O, D] = T(null), [h, _] = T("user"), [J, H] = T("bottom-right"), [k, q] = T({
5025
+ const [t, o] = N(!1), [i, l] = N(!1), [n, c] = N(!1), [d, g] = N(!1), [w, E] = N([]), [T, V] = N(""), [x, I] = N(!1), [j, B] = N(!1), [L, D] = N(null), [h, _] = N("user"), [J, F] = N("bottom-right"), [A, Q] = N({
5016
5026
  isActive: !1,
5017
5027
  toolName: null,
5018
5028
  toolData: null
5019
- }), [oe, X] = T({
5029
+ }), [oe, X] = N({
5020
5030
  session_id: null,
5021
5031
  token: null,
5022
5032
  expires_at: null,
@@ -5024,17 +5034,17 @@ const ao = Er, Ot = ({
5024
5034
  lastError: null,
5025
5035
  isPreloaded: !1,
5026
5036
  isRefreshing: !1
5027
- }), [G, ue] = T("idle"), [ae, S] = T(!1), U = r.theme || "light", b = he(null), v = he(null), le = he(null), ie = M((u) => {
5028
- const { newStatus: A } = u.data;
5029
- ue(A), A === "preloading" || A === "connecting" ? t && g(!0) : A === "ready" ? (g(!1), c(!0)) : A === "error" && g(!1);
5030
- }, [t]), se = M((u) => {
5031
- const A = u.data;
5032
- if (console.log("[AriaProvider] Session ready event:", A), b.current) {
5033
- const $ = b.current.getSessionState();
5037
+ }), [q, ue] = N("idle"), [ae, S] = N(!1), U = r.theme || "light", y = he(null), b = he(null), le = he(null), ie = M((u) => {
5038
+ const { newStatus: k } = u.data;
5039
+ ue(k), k === "preloading" || k === "connecting" ? t && g(!0) : k === "ready" ? (g(!1), c(!0)) : k === "error" && g(!1);
5040
+ }, [t]), ne = M((u) => {
5041
+ const k = u.data;
5042
+ if (console.log("[AriaProvider] Session ready event:", k), y.current) {
5043
+ const $ = y.current.getSessionState();
5034
5044
  X($);
5035
5045
  }
5036
- if (A.lazyInit && A.tokenReady && t && b.current && !b.current.isAnamClientInitialized()) {
5037
- console.log("[AriaProvider] Token received while widget is open, initializing Anam client"), g(!0), b.current.initializeSessionOnDemand().then(() => {
5046
+ if (k.lazyInit && k.tokenReady && t && y.current && !y.current.isAnamClientInitialized()) {
5047
+ console.log("[AriaProvider] Token received while widget is open, initializing Anam client"), g(!0), y.current.initializeSessionOnDemand().then(() => {
5038
5048
  console.log("[AriaProvider] Anam client initialized after token received"), g(!1), c(!0), D(null);
5039
5049
  }).catch((xe) => {
5040
5050
  console.error("[AriaProvider] Failed to initialize Anam client:", xe), g(!1), D(xe instanceof Error ? xe.message : "Failed to initialize session");
@@ -5043,152 +5053,143 @@ const ao = Er, Ot = ({
5043
5053
  }
5044
5054
  c(!0), g(!1), D(null);
5045
5055
  }, [t]), re = M((u) => {
5046
- const A = u.error?.message || "Session error";
5047
- if (console.error("[AriaProvider] Session error:", A), D(A), g(!1), b.current) {
5048
- const $ = b.current.getSessionState();
5056
+ const k = u.error?.message || "Session error";
5057
+ if (console.error("[AriaProvider] Session error:", k), D(k), g(!1), y.current) {
5058
+ const $ = y.current.getSessionState();
5049
5059
  X($);
5050
5060
  }
5051
5061
  }, []), W = M((u) => {
5052
- const { connected: A } = u.data;
5053
- if (c(A), !A && b.current) {
5054
- const $ = b.current.getSessionState();
5062
+ const { connected: k } = u.data;
5063
+ if (c(k), !k && y.current) {
5064
+ const $ = y.current.getSessionState();
5055
5065
  X($);
5056
5066
  }
5057
- }, []), L = M((u) => {
5058
- const { messages: A } = u.data;
5059
- A && E(A);
5067
+ }, []), H = M((u) => {
5068
+ const { messages: k } = u.data;
5069
+ k && E(k);
5060
5070
  }, []), K = M((u) => {
5061
- const { liveTranscript: A } = u.data;
5062
- A !== void 0 && V(A);
5071
+ const { liveTranscript: k } = u.data;
5072
+ k !== void 0 && V(k);
5063
5073
  }, []), ce = M((u) => {
5064
5074
  console.log("[AriaProvider] WebSocket trigger event:", u.data), le.current?.("websocket");
5065
5075
  }, []), P = M((u) => {
5066
- const A = u.data;
5067
- console.log("[AriaProvider] Tool call event:", A), q({
5068
- isActive: A.isActive,
5069
- toolName: A.toolName,
5070
- toolData: A.toolData
5076
+ const k = u.data;
5077
+ console.log("[AriaProvider] Tool call event:", k), Q({
5078
+ isActive: k.isActive,
5079
+ toolName: k.toolName,
5080
+ toolData: k.toolData
5071
5081
  });
5072
5082
  }, []);
5073
5083
  te(() => {
5074
- const u = Q.getInstance(r);
5075
- b.current = u, u.addEventListener("status_change", ie), u.addEventListener("session_ready", se), u.addEventListener("session_error", re), u.addEventListener("connection_change", W), u.addEventListener("message_history", L), u.addEventListener("message_stream", K), u.addEventListener("tool_call", P), u.setWebSocketTriggerCallback(ce), X(u.getSessionState()), ue(u.getStatus()), c(u.isConnected()), E(u.getChatMessages()), V(u.getLiveTranscript()), B(u.isMuted()), S(u.isSessionPaused());
5076
- const A = u.getToolCallState();
5077
- return q(A), !u.isConnected() && u.getStatus() === "idle" && u.connect(), () => {
5078
- u.removeEventListener("status_change", ie), u.removeEventListener("session_ready", se), u.removeEventListener("session_error", re), u.removeEventListener("connection_change", W), u.removeEventListener("message_history", L), u.removeEventListener("message_stream", K), u.removeEventListener("tool_call", P), u.setWebSocketTriggerCallback(null);
5084
+ const u = G.getInstance(r);
5085
+ y.current = u, u.addEventListener("status_change", ie), u.addEventListener("session_ready", ne), u.addEventListener("session_error", re), u.addEventListener("connection_change", W), u.addEventListener("message_history", H), u.addEventListener("message_stream", K), u.addEventListener("tool_call", P), u.setWebSocketTriggerCallback(ce), X(u.getSessionState()), ue(u.getStatus()), c(u.isConnected()), E(u.getChatMessages()), V(u.getLiveTranscript()), B(u.isMuted()), S(u.isSessionPaused());
5086
+ const k = u.getToolCallState();
5087
+ return Q(k), !u.isConnected() && u.getStatus() === "idle" && u.connect(), () => {
5088
+ u.removeEventListener("status_change", ie), u.removeEventListener("session_ready", ne), u.removeEventListener("session_error", re), u.removeEventListener("connection_change", W), u.removeEventListener("message_history", H), u.removeEventListener("message_stream", K), u.removeEventListener("tool_call", P), u.setWebSocketTriggerCallback(null), console.log("[AriaProvider] Component unmounting, ending session"), u.forceEndSession();
5079
5089
  };
5080
5090
  }, [
5081
5091
  r,
5082
5092
  ie,
5083
- se,
5093
+ ne,
5084
5094
  re,
5085
5095
  W,
5086
- L,
5096
+ H,
5087
5097
  K,
5088
5098
  P,
5089
5099
  ce
5090
5100
  ]);
5091
5101
  const pe = M((u) => {
5092
- const A = v.current;
5093
- v.current = u, u && b.current ? (console.log("[AriaProvider] Attaching video stream to element"), b.current.attachToVideoElement(u)) : !u && A && b.current && (console.log("[AriaProvider] Detaching video stream from element"), b.current.detachFromVideoElement(A));
5102
+ const k = b.current;
5103
+ b.current = u, u && y.current ? (console.log("[AriaProvider] Attaching video stream to element"), y.current.attachToVideoElement(u)) : !u && k && y.current && (console.log("[AriaProvider] Detaching video stream from element"), y.current.detachFromVideoElement(k));
5094
5104
  }, []), de = M((u) => {
5095
- if (!b.current) {
5105
+ if (!y.current) {
5096
5106
  console.error("[AriaProvider] Session manager not initialized");
5097
5107
  return;
5098
5108
  }
5099
- const A = u?.userTrigger ?? !0;
5100
- b.current.triggerSession(A);
5109
+ const k = u?.userTrigger ?? !0;
5110
+ y.current.triggerSession(k);
5101
5111
  }, []), me = M(async () => {
5102
- b.current && (b.current.isConnected() || b.current.connect());
5112
+ y.current && (y.current.isConnected() || y.current.connect());
5103
5113
  }, []), be = M(async () => {
5104
- if (b.current)
5114
+ if (y.current)
5105
5115
  try {
5106
- await b.current.forceEndSession(), c(!1), E([]), V("");
5107
- const u = b.current.getSessionState();
5116
+ await y.current.forceEndSession(), c(!1), E([]), V("");
5117
+ const u = y.current.getSessionState();
5108
5118
  X(u);
5109
5119
  } catch (u) {
5110
- const A = u instanceof Error ? u.message : "Failed to stop session";
5111
- D(A), r.onError?.(u instanceof Error ? u : new Error(A));
5120
+ const k = u instanceof Error ? u.message : "Failed to stop session";
5121
+ D(k), r.onError?.(u instanceof Error ? u : new Error(k));
5112
5122
  }
5113
5123
  }, [r]), fe = M(async () => {
5114
- b.current && await b.current.refreshSession();
5115
- }, []), p = M((u = "user") => {
5116
- if (_(u), H(u === "websocket" ? "center" : "bottom-right"), o(!0), l(!1), D(null), !b.current) return;
5117
- const A = b.current.isSessionPaused();
5118
- if (console.log("[AriaProvider] openAssistant - isSessionPaused:", A, "persistSession:", r.persistSession), A) {
5119
- console.log("[AriaProvider] Resuming paused session"), g(!0), b.current.resumeSession().then(() => {
5124
+ y.current && await y.current.refreshSession();
5125
+ }, []), f = M((u = "user") => {
5126
+ if (_(u), F(u === "websocket" ? "center" : "bottom-right"), o(!0), l(!1), D(null), !y.current) return;
5127
+ const k = y.current.isSessionPaused();
5128
+ if (console.log("[AriaProvider] openAssistant - isSessionPaused:", k, "persistSession:", r.persistSession), k) {
5129
+ console.log("[AriaProvider] Resuming paused session"), g(!0), y.current.resumeSession().then(() => {
5120
5130
  g(!1), c(!0), S(!1);
5121
- const ee = b.current.getSessionState();
5122
- X(ee), E(b.current.getChatMessages());
5131
+ const ee = y.current.getSessionState();
5132
+ X(ee), E(y.current.getChatMessages());
5123
5133
  }).catch((ee) => {
5124
5134
  console.error("[AriaProvider] Failed to resume session:", ee), g(!1), S(!1), D(ee instanceof Error ? ee.message : "Failed to resume session");
5125
5135
  });
5126
5136
  return;
5127
5137
  }
5128
- const $ = b.current.isAnamClientInitialized(), xe = b.current.hasSessionToken(), Ke = b.current.getStatus();
5129
- console.log("[AriaProvider] openAssistant - isAnamReady:", $, "hasToken:", xe, "status:", Ke), $ && Ke === "ready" ? (g(!1), c(!0), console.log("[AriaProvider] Opening with already initialized session")) : xe ? (g(!0), console.log("[AriaProvider] Initializing Anam client on demand (lazy init)"), b.current.initializeSessionOnDemand().then(() => {
5138
+ const $ = y.current.isAnamClientInitialized(), xe = y.current.hasSessionToken(), Ke = y.current.getStatus();
5139
+ console.log("[AriaProvider] openAssistant - isAnamReady:", $, "hasToken:", xe, "status:", Ke), $ && Ke === "ready" ? (g(!1), c(!0), console.log("[AriaProvider] Opening with already initialized session")) : xe ? (g(!0), console.log("[AriaProvider] Initializing Anam client on demand (lazy init)"), y.current.initializeSessionOnDemand().then(() => {
5130
5140
  console.log("[AriaProvider] Anam client initialized successfully"), g(!1), c(!0);
5131
- const ee = b.current.getSessionState();
5141
+ const ee = y.current.getSessionState();
5132
5142
  X(ee);
5133
5143
  }).catch((ee) => {
5134
5144
  console.error("[AriaProvider] Failed to initialize Anam client:", ee), g(!1), ee.message?.includes("expired") ? D("Session expired, getting a new session...") : D(ee instanceof Error ? ee.message : "Failed to initialize session");
5135
- })) : (g(!0), console.log("[AriaProvider] Opening, waiting for session token..."), b.current.isConnected() ? console.log("[AriaProvider] WebSocket connected, waiting for token response...") : (console.log("[AriaProvider] WebSocket not connected, connecting..."), b.current.connect()));
5145
+ })) : (g(!0), console.log("[AriaProvider] Opening, waiting for session token..."), y.current.isConnected() ? console.log("[AriaProvider] WebSocket connected, waiting for token response...") : (console.log("[AriaProvider] WebSocket not connected, connecting..."), y.current.connect()));
5136
5146
  }, [r.persistSession]);
5137
5147
  te(() => {
5138
- le.current = p;
5139
- }, [p]);
5140
- const N = M(() => {
5148
+ le.current = f;
5149
+ }, [f]);
5150
+ const R = M(() => {
5141
5151
  console.log("[AriaProvider] Minimizing assistant"), l(!0);
5142
5152
  }, []), Z = M(() => {
5143
5153
  console.log("[AriaProvider] Maximizing assistant"), l(!1);
5144
5154
  }, []), ye = M(() => {
5145
- if (o(!1), l(!1), !b.current) return;
5146
- v.current && b.current.detachFromVideoElement(v.current), V(""), b.current.clearLiveTranscript();
5147
- const u = b.current.isPersistSessionEnabled();
5148
- if (console.log("[AriaProvider] closeAssistant - persistSession enabled:", u, "config:", r.persistSession), u)
5149
- console.log("[AriaProvider] Pausing session (persistSession: true)"), b.current.pauseSession(), S(!0);
5150
- else {
5151
- console.log("[AriaProvider] Ending session (persistSession: false)"), b.current.endCurrentSession(), c(!1), E([]);
5152
- const A = b.current.getSessionState();
5153
- X(A);
5154
- }
5155
- }, [r.persistSession]), Ce = M(() => {
5155
+ o(!1), l(!1), y.current && (b.current && y.current.detachFromVideoElement(b.current), V(""), console.log("[AriaProvider] Pausing session (widget closed)"), y.current.pauseSession(), S(!0));
5156
+ }, []), Ce = M(() => {
5156
5157
  I((u) => !u);
5157
5158
  }, []), Y = M(async (u) => {
5158
- if (!b.current || !s)
5159
+ if (!y.current || !n)
5159
5160
  throw new Error("Not connected to Aria");
5160
5161
  try {
5161
- await b.current.sendMessage(u);
5162
- } catch (A) {
5163
- const $ = A instanceof Error ? A.message : "Failed to send message";
5164
- throw D($), r.onError?.(A instanceof Error ? A : new Error($)), A;
5162
+ await y.current.sendMessage(u);
5163
+ } catch (k) {
5164
+ const $ = k instanceof Error ? k.message : "Failed to send message";
5165
+ throw D($), r.onError?.(k instanceof Error ? k : new Error($)), k;
5165
5166
  }
5166
- }, [s, r]), Mr = M(() => {
5167
- if (!b.current) return;
5168
- const u = b.current.toggleMute();
5167
+ }, [n, r]), Mr = M(() => {
5168
+ if (!y.current) return;
5169
+ const u = y.current.toggleMute();
5169
5170
  B(u);
5170
5171
  }, []), Cr = M(() => oe.session_id, [oe.session_id]), Nr = {
5171
5172
  // UI State
5172
5173
  isOpen: t,
5173
5174
  isMinimized: i,
5174
- isConnected: s,
5175
+ isConnected: n,
5175
5176
  isLoading: d,
5176
5177
  chatMessages: w,
5177
- liveTranscript: R,
5178
+ liveTranscript: T,
5178
5179
  isChatVisible: x,
5179
5180
  isMuted: j,
5180
- error: O,
5181
+ error: L,
5181
5182
  // Tool Call State
5182
- toolCallState: k,
5183
+ toolCallState: A,
5183
5184
  // Session State
5184
5185
  sessionState: oe,
5185
- sessionManagerStatus: G,
5186
- isSessionPreloaded: oe.isPreloaded && G === "ready",
5186
+ sessionManagerStatus: q,
5187
+ isSessionPreloaded: oe.isPreloaded && q === "ready",
5187
5188
  isSessionPaused: ae,
5188
5189
  // Actions
5189
- openAssistant: p,
5190
+ openAssistant: f,
5190
5191
  closeAssistant: ye,
5191
- minimizeAssistant: N,
5192
+ minimizeAssistant: R,
5192
5193
  maximizeAssistant: Z,
5193
5194
  toggleChat: Ce,
5194
5195
  sendMessage: Y,
@@ -5207,7 +5208,7 @@ const ao = Er, Ot = ({
5207
5208
  // Utilities
5208
5209
  getSessionId: Cr
5209
5210
  };
5210
- return /* @__PURE__ */ y(lr.Provider, { value: Nr, children: [
5211
+ return /* @__PURE__ */ v(lr.Provider, { value: Nr, children: [
5211
5212
  e,
5212
5213
  r.showAssistant !== !1 && /* @__PURE__ */ a(
5213
5214
  _t,
@@ -5218,7 +5219,7 @@ const ao = Er, Ot = ({
5218
5219
  }
5219
5220
  )
5220
5221
  ] });
5221
- }, so = () => {
5222
+ }, no = () => {
5222
5223
  const {
5223
5224
  sessionState: r,
5224
5225
  sessionManagerStatus: e,
@@ -5226,7 +5227,7 @@ const ao = Er, Ot = ({
5226
5227
  isSessionPaused: o,
5227
5228
  isConnected: i,
5228
5229
  isLoading: l,
5229
- stopSession: s,
5230
+ stopSession: n,
5230
5231
  refreshSession: c,
5231
5232
  startSession: d,
5232
5233
  triggerSession: g,
@@ -5238,13 +5239,13 @@ const ao = Er, Ot = ({
5238
5239
  isExpiringSoon: !1,
5239
5240
  timeUntilExpiry: null
5240
5241
  };
5241
- const O = new Date(r.expires_at).getTime(), D = Date.now(), h = O - D, _ = 300 * 1e3;
5242
+ const L = new Date(r.expires_at).getTime(), D = Date.now(), h = L - D, _ = 300 * 1e3;
5242
5243
  return {
5243
5244
  isExpired: h <= 0,
5244
5245
  isExpiringSoon: h > 0 && h <= _,
5245
5246
  timeUntilExpiry: h > 0 ? h : null
5246
5247
  };
5247
- }, [r.expires_at]), R = Be(() => ({
5248
+ }, [r.expires_at]), T = Be(() => ({
5248
5249
  sessionState: r,
5249
5250
  status: e,
5250
5251
  isPreloaded: t,
@@ -5263,21 +5264,21 @@ const ao = Er, Ot = ({
5263
5264
  w,
5264
5265
  E
5265
5266
  ]), V = M(async () => {
5266
- await s();
5267
- }, [s]), x = M(async () => {
5267
+ await n();
5268
+ }, [n]), x = M(async () => {
5268
5269
  await c();
5269
5270
  }, [c]), I = M(async () => {
5270
5271
  await d();
5271
- }, [d]), j = M((O = !0) => {
5272
- g({ userTrigger: O });
5272
+ }, [d]), j = M((L = !0) => {
5273
+ g({ userTrigger: L });
5273
5274
  }, [g]), B = Be(() => ({
5274
5275
  endSession: V,
5275
5276
  refreshSession: x,
5276
5277
  startSession: I,
5277
5278
  triggerSession: j
5278
5279
  }), [V, x, I, j]);
5279
- return { session: R, actions: B };
5280
- }, no = ({ open: r, onOpenChange: e, children: t }) => /* @__PURE__ */ a(Re, { children: r && /* @__PURE__ */ y("div", { className: "fixed inset-0 z-50 flex items-center justify-center aria-animate-fade-in", children: [
5280
+ return { session: T, actions: B };
5281
+ }, so = ({ open: r, onOpenChange: e, children: t }) => /* @__PURE__ */ a(Te, { children: r && /* @__PURE__ */ v("div", { className: "fixed inset-0 z-50 flex items-center justify-center aria-animate-fade-in", children: [
5281
5282
  /* @__PURE__ */ a(
5282
5283
  "div",
5283
5284
  {
@@ -5286,12 +5287,12 @@ const ao = Er, Ot = ({
5286
5287
  }
5287
5288
  ),
5288
5289
  t
5289
- ] }) }), Ut = ne.forwardRef(
5290
+ ] }) }), Ut = se.forwardRef(
5290
5291
  ({ className: r, children: e, ...t }, o) => /* @__PURE__ */ a(
5291
5292
  "div",
5292
5293
  {
5293
5294
  ref: o,
5294
- className: n(
5295
+ className: s(
5295
5296
  "fixed z-50 bg-background shadow-2xl rounded-2xl border aria-animate-scale-in",
5296
5297
  "max-h-[90vh] overflow-auto",
5297
5298
  r
@@ -5308,7 +5309,7 @@ const Gt = ({
5308
5309
  }) => /* @__PURE__ */ a(
5309
5310
  "div",
5310
5311
  {
5311
- className: n(
5312
+ className: s(
5312
5313
  "flex flex-col space-y-2 text-center sm:text-left p-6 pb-4",
5313
5314
  r
5314
5315
  ),
@@ -5316,11 +5317,11 @@ const Gt = ({
5316
5317
  }
5317
5318
  );
5318
5319
  Gt.displayName = "DialogHeader";
5319
- const Qt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
5320
+ const Qt = se.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
5320
5321
  "h2",
5321
5322
  {
5322
5323
  ref: t,
5323
- className: n(
5324
+ className: s(
5324
5325
  "text-lg font-semibold leading-none tracking-tight",
5325
5326
  r
5326
5327
  ),
@@ -5332,10 +5333,10 @@ const qt = ({
5332
5333
  className: r,
5333
5334
  onClick: e,
5334
5335
  ...t
5335
- }) => /* @__PURE__ */ y(
5336
+ }) => /* @__PURE__ */ v(
5336
5337
  "button",
5337
5338
  {
5338
- className: n(
5339
+ className: s(
5339
5340
  "absolute right-4 top-4 rounded-xl p-1.5",
5340
5341
  "opacity-70 transition-all duration-200",
5341
5342
  "hover:opacity-100 hover:bg-muted",
@@ -5412,11 +5413,11 @@ const Xt = ({
5412
5413
  triggerLabel: e,
5413
5414
  container: t
5414
5415
  }) => {
5415
- const [o, i] = T(!1), [l, s] = T(!1), [c, d] = T(!1), [g, w] = T(!1), [E, R] = T([]), [V, x] = T(""), [I, j] = T(!1), [B, O] = T(!1), [D, h] = T(null), [_, J] = T("user"), [H, k] = T("bottom-right"), [q, oe] = T({
5416
+ const [o, i] = N(!1), [l, n] = N(!1), [c, d] = N(!1), [g, w] = N(!1), [E, T] = N([]), [V, x] = N(""), [I, j] = N(!1), [B, L] = N(!1), [D, h] = N(null), [_, J] = N("user"), [F, A] = N("bottom-right"), [Q, oe] = N({
5416
5417
  isActive: !1,
5417
5418
  toolName: null,
5418
5419
  toolData: null
5419
- }), [X, G] = T({
5420
+ }), [X, q] = N({
5420
5421
  session_id: null,
5421
5422
  token: null,
5422
5423
  expires_at: null,
@@ -5424,50 +5425,50 @@ const Xt = ({
5424
5425
  lastError: null,
5425
5426
  isPreloaded: !1,
5426
5427
  isRefreshing: !1
5427
- }), [, ue] = T("idle"), [, ae] = T(!1), S = he(null), U = he(null), b = M((p) => {
5428
- const { newStatus: N } = p.data;
5429
- ue(N), N === "preloading" || N === "connecting" ? o && w(!0) : N === "ready" ? (w(!1), d(!0)) : N === "error" && w(!1);
5430
- }, [o]), v = M((p) => {
5431
- if (console.log("[AriaStandaloneUI] Session ready event:", p.data), S.current) {
5432
- const N = S.current.getSessionState();
5433
- G(N);
5428
+ }), [, ue] = N("idle"), [, ae] = N(!1), S = he(null), U = he(null), y = M((f) => {
5429
+ const { newStatus: R } = f.data;
5430
+ ue(R), R === "preloading" || R === "connecting" ? o && w(!0) : R === "ready" ? (w(!1), d(!0)) : R === "error" && w(!1);
5431
+ }, [o]), b = M((f) => {
5432
+ if (console.log("[AriaStandaloneUI] Session ready event:", f.data), S.current) {
5433
+ const R = S.current.getSessionState();
5434
+ q(R);
5434
5435
  }
5435
5436
  d(!0), w(!1), h(null);
5436
- }, []), le = M((p) => {
5437
- const N = p.error?.message || "Session error";
5438
- if (console.error("[AriaStandaloneUI] Session error:", N), h(N), w(!1), S.current) {
5437
+ }, []), le = M((f) => {
5438
+ const R = f.error?.message || "Session error";
5439
+ if (console.error("[AriaStandaloneUI] Session error:", R), h(R), w(!1), S.current) {
5439
5440
  const Z = S.current.getSessionState();
5440
- G(Z);
5441
+ q(Z);
5441
5442
  }
5442
- }, []), ie = M((p) => {
5443
- const { connected: N } = p.data;
5444
- if (d(N), !N && S.current) {
5443
+ }, []), ie = M((f) => {
5444
+ const { connected: R } = f.data;
5445
+ if (d(R), !R && S.current) {
5445
5446
  const Z = S.current.getSessionState();
5446
- G(Z);
5447
+ q(Z);
5447
5448
  }
5448
- }, []), se = M((p) => {
5449
- const { messages: N } = p.data;
5450
- N && R(N);
5451
- }, []), re = M((p) => {
5452
- const { liveTranscript: N } = p.data;
5453
- N !== void 0 && x(N);
5454
- }, []), W = M((p) => {
5455
- const N = p.data;
5449
+ }, []), ne = M((f) => {
5450
+ const { messages: R } = f.data;
5451
+ R && T(R);
5452
+ }, []), re = M((f) => {
5453
+ const { liveTranscript: R } = f.data;
5454
+ R !== void 0 && x(R);
5455
+ }, []), W = M((f) => {
5456
+ const R = f.data;
5456
5457
  oe({
5457
- isActive: N.isActive,
5458
- toolName: N.toolName,
5459
- toolData: N.toolData
5458
+ isActive: R.isActive,
5459
+ toolName: R.toolName,
5460
+ toolData: R.toolData
5460
5461
  });
5461
- }, []), L = M((p) => {
5462
- const N = U.current;
5463
- U.current = p, p && S.current ? (console.log("[AriaStandaloneUI] Attaching video stream to element"), S.current.attachToVideoElement(p)) : !p && N && S.current && (console.log("[AriaStandaloneUI] Detaching video stream from element"), S.current.detachFromVideoElement(N));
5464
- }, []), K = M((p = "user") => {
5465
- if (J(p), k(p === "websocket" ? "center" : "bottom-right"), i(!0), s(!1), h(null), !S.current) return;
5462
+ }, []), H = M((f) => {
5463
+ const R = U.current;
5464
+ U.current = f, f && S.current ? (console.log("[AriaStandaloneUI] Attaching video stream to element"), S.current.attachToVideoElement(f)) : !f && R && S.current && (console.log("[AriaStandaloneUI] Detaching video stream from element"), S.current.detachFromVideoElement(R));
5465
+ }, []), K = M((f = "user") => {
5466
+ if (J(f), A(f === "websocket" ? "center" : "bottom-right"), i(!0), n(!1), h(null), !S.current) return;
5466
5467
  if (S.current.isSessionPaused()) {
5467
5468
  w(!0), S.current.resumeSession().then(() => {
5468
5469
  w(!1), d(!0), ae(!1);
5469
5470
  const Y = S.current.getSessionState();
5470
- G(Y), R(S.current.getChatMessages());
5471
+ q(Y), T(S.current.getChatMessages());
5471
5472
  }).catch((Y) => {
5472
5473
  w(!1), ae(!1), h(Y instanceof Error ? Y.message : "Failed to resume session");
5473
5474
  });
@@ -5477,76 +5478,69 @@ const Xt = ({
5477
5478
  Z && Ce === "ready" ? (w(!1), d(!0)) : ye ? (w(!0), S.current.initializeSessionOnDemand().then(() => {
5478
5479
  w(!1), d(!0);
5479
5480
  const Y = S.current.getSessionState();
5480
- G(Y);
5481
+ q(Y);
5481
5482
  }).catch((Y) => {
5482
5483
  w(!1), h(Y instanceof Error ? Y.message : "Failed to initialize session");
5483
5484
  })) : (w(!0), S.current.isConnected() || S.current.connect());
5484
5485
  }, []), ce = M(() => {
5485
- s(!0);
5486
+ n(!0);
5486
5487
  }, []), P = M(() => {
5487
- s(!1);
5488
+ n(!1);
5488
5489
  }, []), pe = M(() => {
5489
- if (i(!1), s(!1), !S.current) return;
5490
- if (U.current && S.current.detachFromVideoElement(U.current), x(""), S.current.clearLiveTranscript(), S.current.isPersistSessionEnabled())
5491
- S.current.pauseSession(), ae(!0);
5492
- else {
5493
- S.current.endCurrentSession(), d(!1), R([]);
5494
- const N = S.current.getSessionState();
5495
- G(N);
5496
- }
5490
+ i(!1), n(!1), S.current && (U.current && S.current.detachFromVideoElement(U.current), x(""), console.log("[AriaStandaloneUI] Pausing session (widget closed)"), S.current.pauseSession(), ae(!0));
5497
5491
  }, []), de = M(() => {
5498
5492
  console.log("[AriaStandaloneUI] WebSocket trigger event"), K("websocket");
5499
5493
  }, [K]);
5500
5494
  te(() => {
5501
- if (!Q.hasInstance()) {
5495
+ if (!G.hasInstance()) {
5502
5496
  console.error("[AriaStandaloneUI] AriaSessionManager not initialized");
5503
5497
  return;
5504
5498
  }
5505
- const p = Q.getInstance({});
5506
- return S.current = p, p.addEventListener("status_change", b), p.addEventListener("session_ready", v), p.addEventListener("session_error", le), p.addEventListener("connection_change", ie), p.addEventListener("message_history", se), p.addEventListener("message_stream", re), p.addEventListener("tool_call", W), p.setWebSocketTriggerCallback(de), queueMicrotask(() => {
5507
- G(p.getSessionState()), ue(p.getStatus()), d(p.isConnected()), R(p.getChatMessages()), x(p.getLiveTranscript()), O(p.isMuted()), ae(p.isSessionPaused());
5508
- const Z = p.getToolCallState();
5499
+ const f = G.getInstance({});
5500
+ return S.current = f, f.addEventListener("status_change", y), f.addEventListener("session_ready", b), f.addEventListener("session_error", le), f.addEventListener("connection_change", ie), f.addEventListener("message_history", ne), f.addEventListener("message_stream", re), f.addEventListener("tool_call", W), f.setWebSocketTriggerCallback(de), queueMicrotask(() => {
5501
+ q(f.getSessionState()), ue(f.getStatus()), d(f.isConnected()), T(f.getChatMessages()), x(f.getLiveTranscript()), L(f.isMuted()), ae(f.isSessionPaused());
5502
+ const Z = f.getToolCallState();
5509
5503
  oe(Z);
5510
5504
  }), () => {
5511
- p.removeEventListener("status_change", b), p.removeEventListener("session_ready", v), p.removeEventListener("session_error", le), p.removeEventListener("connection_change", ie), p.removeEventListener("message_history", se), p.removeEventListener("message_stream", re), p.removeEventListener("tool_call", W), p.setWebSocketTriggerCallback(null);
5505
+ f.removeEventListener("status_change", y), f.removeEventListener("session_ready", b), f.removeEventListener("session_error", le), f.removeEventListener("connection_change", ie), f.removeEventListener("message_history", ne), f.removeEventListener("message_stream", re), f.removeEventListener("tool_call", W), f.setWebSocketTriggerCallback(null);
5512
5506
  };
5513
5507
  }, [
5508
+ y,
5514
5509
  b,
5515
- v,
5516
5510
  le,
5517
5511
  ie,
5518
- se,
5512
+ ne,
5519
5513
  re,
5520
5514
  W,
5521
5515
  de
5522
5516
  ]), te(() => {
5523
- const p = (Ce) => {
5517
+ const f = (Ce) => {
5524
5518
  K(Ce.detail?.mode || "user");
5525
- }, N = () => {
5519
+ }, R = () => {
5526
5520
  pe();
5527
5521
  }, Z = () => {
5528
5522
  ce();
5529
5523
  }, ye = () => {
5530
5524
  P();
5531
5525
  };
5532
- return window.addEventListener("aria:open", p), window.addEventListener("aria:close", N), window.addEventListener("aria:minimize", Z), window.addEventListener("aria:maximize", ye), () => {
5533
- window.removeEventListener("aria:open", p), window.removeEventListener("aria:close", N), window.removeEventListener("aria:minimize", Z), window.removeEventListener("aria:maximize", ye);
5526
+ return window.addEventListener("aria:open", f), window.addEventListener("aria:close", R), window.addEventListener("aria:minimize", Z), window.addEventListener("aria:maximize", ye), () => {
5527
+ window.removeEventListener("aria:open", f), window.removeEventListener("aria:close", R), window.removeEventListener("aria:minimize", Z), window.removeEventListener("aria:maximize", ye);
5534
5528
  };
5535
5529
  }, [K, pe, ce, P]), te(() => {
5536
5530
  t.setAttribute("data-aria-open", String(o));
5537
5531
  }, [o, t]);
5538
5532
  const me = M(() => {
5539
- j((p) => !p);
5540
- }, []), be = M(async (p) => {
5533
+ j((f) => !f);
5534
+ }, []), be = M(async (f) => {
5541
5535
  if (!S.current || !c)
5542
5536
  throw new Error("Not connected to Aria");
5543
- await S.current.sendMessage(p);
5537
+ await S.current.sendMessage(f);
5544
5538
  }, [c]), fe = M(() => {
5545
5539
  if (!S.current) return;
5546
- const p = S.current.toggleMute();
5547
- O(p);
5540
+ const f = S.current.toggleMute();
5541
+ L(f);
5548
5542
  }, []);
5549
- return /* @__PURE__ */ y(Re, { children: [
5543
+ return /* @__PURE__ */ v(Te, { children: [
5550
5544
  !o && /* @__PURE__ */ a(
5551
5545
  Zt,
5552
5546
  {
@@ -5556,12 +5550,12 @@ const Xt = ({
5556
5550
  onClick: () => K("user")
5557
5551
  }
5558
5552
  ),
5559
- o && /* @__PURE__ */ y(Re, { children: [
5553
+ o && /* @__PURE__ */ v(Te, { children: [
5560
5554
  !l && /* @__PURE__ */ a(
5561
5555
  "div",
5562
5556
  {
5563
- onClick: (p) => {
5564
- p.preventDefault(), p.stopPropagation(), ce();
5557
+ onClick: (f) => {
5558
+ f.preventDefault(), f.stopPropagation(), ce();
5565
5559
  },
5566
5560
  style: {
5567
5561
  position: "fixed",
@@ -5592,7 +5586,7 @@ const Xt = ({
5592
5586
  isMinimized: l,
5593
5587
  onMaximize: P,
5594
5588
  theme: r,
5595
- displayMode: H,
5589
+ displayMode: F,
5596
5590
  triggerMode: _,
5597
5591
  isConnected: c,
5598
5592
  isLoading: g,
@@ -5601,9 +5595,9 @@ const Xt = ({
5601
5595
  isChatVisible: I,
5602
5596
  isMuted: B,
5603
5597
  error: D,
5604
- toolCallState: q,
5598
+ toolCallState: Q,
5605
5599
  sessionState: X,
5606
- setVideoElement: L,
5600
+ setVideoElement: H,
5607
5601
  toggleChat: me,
5608
5602
  sendMessage: be,
5609
5603
  toggleMute: fe
@@ -5628,7 +5622,7 @@ const Xt = ({
5628
5622
  right: "24px",
5629
5623
  zIndex: 9997
5630
5624
  },
5631
- children: /* @__PURE__ */ y(
5625
+ children: /* @__PURE__ */ v(
5632
5626
  "button",
5633
5627
  {
5634
5628
  onClick: o,
@@ -5655,32 +5649,32 @@ const Xt = ({
5655
5649
  AriaStandaloneUI: Xt
5656
5650
  }, Symbol.toStringTag, { value: "Module" }));
5657
5651
  export {
5658
- Te as Aria,
5652
+ Re as Aria,
5659
5653
  _t as AriaAssistant,
5660
- Te as AriaCore,
5654
+ Re as AriaCore,
5661
5655
  io as AriaProvider,
5662
- Q as AriaSessionManager,
5663
- Ot as AriaTriggerButton,
5656
+ G as AriaSessionManager,
5657
+ Lt as AriaTriggerButton,
5664
5658
  Sr as AriaWidget,
5665
5659
  ke as Badge,
5666
5660
  Ve as Button,
5667
5661
  kr as Card,
5668
5662
  Bt as CardContent,
5669
5663
  jt as CardDescription,
5670
- Ht as CardFooter,
5664
+ Ft as CardFooter,
5671
5665
  Vt as CardHeader,
5672
5666
  Wt as CardTitle,
5673
- Ft as ChatPanel,
5674
- no as Dialog,
5667
+ Ot as ChatPanel,
5668
+ so as Dialog,
5675
5669
  qt as DialogClose,
5676
5670
  Ut as DialogContent,
5677
5671
  Gt as DialogHeader,
5678
5672
  Qt as DialogTitle,
5679
5673
  Ar as Input,
5680
- Lt as SessionInfo,
5674
+ Ht as SessionInfo,
5681
5675
  We as ShadowContainer,
5682
5676
  ao as ariaStyles,
5683
- n as cn,
5677
+ s as cn,
5684
5678
  qe as decodeJWT,
5685
5679
  Jt as extractSessionIdFromToken,
5686
5680
  je as getAriaStyles,
@@ -5688,6 +5682,6 @@ export {
5688
5682
  Kt as isJWT,
5689
5683
  co as isTokenExpired,
5690
5684
  Se as useAria,
5691
- so as useAriaSession
5685
+ no as useAriaSession
5692
5686
  };
5693
5687
  //# sourceMappingURL=index.js.map