@pagelines/sdk 1.0.839 → 1.0.841

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/AgentWrap.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./rolldown-runtime.js";
2
2
  import { s as t, t as n } from "./sdkClient.js";
3
3
  import { Agent as r, CHAT_ISSUE_COPY as i, CUSTOMER_AGENT_STATE_LABEL as a, SettingsObject as o, createLogger as s, customerAgentState as c, getDefaultAvatarUrl as u, isAssistantSilenceControl as f, parseChatCardFencePayload as p, parseChatVisualFencePayload as m } from "@pagelines/core";
4
- import { Fragment as h, Transition as _, computed as v, createBlock as te, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createTextVNode as C, createVNode as T, defineComponent as k, nextTick as A, normalizeClass as j, normalizeStyle as M, onBeforeUnmount as P, onMounted as ne, onUnmounted as re, openBlock as F, ref as I, renderList as R, renderSlot as ie, resolveDynamicComponent as B, shallowRef as H, toDisplayString as U, unref as ae, useTemplateRef as oe, vModelText as se, watch as ce, withCtx as ue, withDirectives as de, withKeys as pe, withModifiers as he } from "vue";
4
+ import { Fragment as h, Transition as _, computed as v, createBlock as te, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createTextVNode as C, createVNode as T, defineComponent as k, nextTick as A, normalizeClass as j, normalizeStyle as M, onBeforeUnmount as P, onMounted as ne, onUnmounted as re, openBlock as F, ref as I, renderList as R, renderSlot as ie, resolveDynamicComponent as B, shallowRef as H, toDisplayString as U, unref as ae, useTemplateRef as oe, vModelText as se, watch as ce, withCtx as ue, withDirectives as de, withKeys as pe, withModifiers as W } from "vue";
5
5
  //#region ui/FSpinner.vue?vue&type=script&setup=true&lang.ts
6
- var _e = { class: "spinner max-w-sm" }, W = {
6
+ var he = { class: "spinner max-w-sm" }, G = {
7
7
  class: "ring-circular h-full w-full origin-center",
8
8
  viewBox: "25 25 50 50"
9
- }, ve = /* @__PURE__ */ k({
9
+ }, _e = /* @__PURE__ */ k({
10
10
  __name: "FSpinner",
11
11
  props: {
12
12
  width: {
@@ -19,7 +19,7 @@ var _e = { class: "spinner max-w-sm" }, W = {
19
19
  }
20
20
  },
21
21
  setup(e) {
22
- return (t, n) => (F(), x("div", _e, [(F(), x("svg", W, [S("circle", {
22
+ return (t, n) => (F(), x("div", he, [(F(), x("svg", G, [S("circle", {
23
23
  class: j([e.colorMode, "ring-path"]),
24
24
  cx: "50",
25
25
  cy: "50",
@@ -30,7 +30,7 @@ var _e = { class: "spinner max-w-sm" }, W = {
30
30
  "stroke-miterlimit": "30"
31
31
  }, null, 2)]))]));
32
32
  }
33
- }), G = [
33
+ }), K = [
34
34
  {
35
35
  mode: "self",
36
36
  label: "Overview",
@@ -68,7 +68,7 @@ function recorderMimeType() {
68
68
  "audio/webm"
69
69
  ].find((e) => MediaRecorder.isTypeSupported?.(e)) || "";
70
70
  }
71
- var ye = 400, VoiceRecorderController = class extends o {
71
+ var ve = 400, VoiceRecorderController = class extends o {
72
72
  constructor(e) {
73
73
  super("VoiceRecorderController", e), t(this, "state", I({
74
74
  phase: "idle",
@@ -102,7 +102,7 @@ var ye = 400, VoiceRecorderController = class extends o {
102
102
  this.stream = t, this.recorder = r, this.chunks = [], r.addEventListener("dataavailable", (e) => {
103
103
  e.data.size > 0 && this.chunks.push(e.data);
104
104
  }), r.addEventListener("stop", async () => {
105
- let e = new Blob(this.chunks, { type: r.mimeType || n || "audio/webm" }), t = this.now() - this.startedAt, i = !this.cancelOnStop && e.size > 0 && t >= ye;
105
+ let e = new Blob(this.chunks, { type: r.mimeType || n || "audio/webm" }), t = this.now() - this.startedAt, i = !this.cancelOnStop && e.size > 0 && t >= ve;
106
106
  if (this.stopCapture(), !i) {
107
107
  this.reset();
108
108
  return;
@@ -185,7 +185,7 @@ var ye = 400, VoiceRecorderController = class extends o {
185
185
  function durableJournalOutcome(e) {
186
186
  return e.turnOutcome === "failed" ? "failed" : e.turnOutcome === "stopped" ? "stopped" : e.sender === "system" ? "failed" : "completed";
187
187
  }
188
- var K = {
188
+ var q = {
189
189
  finishing: "Finishing up",
190
190
  slowHint: "Taking longer than usual.",
191
191
  completed: "Work complete",
@@ -193,7 +193,7 @@ var K = {
193
193
  stopped: "Stopped",
194
194
  notifyHint: "Taking longer than usual. You can leave and I’ll notify you when it’s ready.",
195
195
  leaveHint: "Taking longer than usual. You can leave this chat while I work."
196
- }, be = 1e4, Se = 15e3, Ce = 6e4, we = 3;
196
+ }, ye = 1e4, be = 15e3, Se = 6e4, Ce = 3;
197
197
  function toMs(e) {
198
198
  if (!e) return;
199
199
  let t = Date.parse(e);
@@ -209,7 +209,7 @@ function milestoneRows(e, t) {
209
209
  let n = e.filter((e) => e.status === "completed" || e.status === "failed" && !!e.note).filter((e) => !t.has(e.activityId)).slice().sort(byEvent), r = [];
210
210
  for (let e of n) {
211
211
  let t = e.status === "completed" ? "done" : "failed", n = r[r.length - 1];
212
- if (t === "done" && n?.tone === "done" && n.label === e.label && eventMs(e) - n.lastMs <= Se) {
212
+ if (t === "done" && n?.tone === "done" && n.label === e.label && eventMs(e) - n.lastMs <= be) {
213
213
  n.count += 1, n.lastMs = eventMs(e);
214
214
  continue;
215
215
  }
@@ -230,12 +230,12 @@ function milestoneRows(e, t) {
230
230
  }));
231
231
  }
232
232
  function splitRows(e) {
233
- return e.length <= we ? {
233
+ return e.length <= Ce ? {
234
234
  visibleRows: e,
235
235
  hiddenRows: []
236
236
  } : {
237
- visibleRows: e.slice(e.length - we),
238
- hiddenRows: e.slice(0, e.length - we)
237
+ visibleRows: e.slice(e.length - Ce),
238
+ hiddenRows: e.slice(0, e.length - Ce)
239
239
  };
240
240
  }
241
241
  function buildWorkJournalModel(e) {
@@ -247,7 +247,7 @@ function buildWorkJournalModel(e) {
247
247
  terminal: {
248
248
  id: "work-complete",
249
249
  tone: "completed",
250
- label: K.completed
250
+ label: q.completed
251
251
  }
252
252
  };
253
253
  if (n === "failed") {
@@ -261,7 +261,7 @@ function buildWorkJournalModel(e) {
261
261
  terminal: {
262
262
  id: "work-failed",
263
263
  tone: "failed",
264
- label: K.failed,
264
+ label: q.failed,
265
265
  ...o && e?.note ? { note: e.note } : {}
266
266
  }
267
267
  };
@@ -275,18 +275,18 @@ function buildWorkJournalModel(e) {
275
275
  terminal: {
276
276
  id: "work-stopped",
277
277
  tone: "stopped",
278
- label: K.stopped
278
+ label: q.stopped
279
279
  }
280
280
  };
281
281
  }
282
282
  let { visibleRows: s, hiddenRows: c } = splitRows(milestoneRows(t, /* @__PURE__ */ new Set())), u = t.filter((e) => e.status === "started").sort(byEvent).pop(), f = t.reduce((e, t) => Math.max(e, eventMs(t)), a ?? -Infinity), p = Number.isFinite(f) ? f : r, m = t.reduce((e, t) => {
283
283
  let n = toMs(t.startedAt) ?? toMs(t.endedAt);
284
284
  return n === void 0 ? e : Math.min(e, n);
285
- }, Infinity), h = p + be, _ = (Number.isFinite(m) ? m : p) + Ce, v = r >= h, te = u || v ? {
285
+ }, Infinity), h = p + ye, _ = (Number.isFinite(m) ? m : p) + Se, v = r >= h, te = u || v ? {
286
286
  id: u?.activityId ?? "work-active",
287
287
  tone: "active",
288
- label: u?.label ?? K.finishing
289
- } : void 0, b = v ? r >= _ ? i ? K.notifyHint : K.leaveHint : K.slowHint : void 0, x = [h, _].filter((e) => e > r).sort((e, t) => e - t)[0];
288
+ label: u?.label ?? q.finishing
289
+ } : void 0, b = v ? r >= _ ? i ? q.notifyHint : q.leaveHint : q.slowHint : void 0, x = [h, _].filter((e) => e > r).sort((e, t) => e - t)[0];
290
290
  return {
291
291
  outcome: n,
292
292
  visibleRows: s,
@@ -352,17 +352,17 @@ function buildLiveTurnBlocks(e) {
352
352
  }
353
353
  //#endregion
354
354
  //#region agent/AgentController.ts
355
- var Te = /* @__PURE__ */ new Set(["CREDIT_LIMIT", "OVERAGE_CAP"]), Ee = /* @__PURE__ */ new Set([
356
- ...Te,
355
+ var we = /* @__PURE__ */ new Set(["CREDIT_LIMIT", "OVERAGE_CAP"]), Te = /* @__PURE__ */ new Set([
356
+ ...we,
357
357
  "EMPTY_STREAM",
358
358
  "RATE_LIMIT"
359
- ]), De = /* @__PURE__ */ new Set(["agent_deleted", "AGENT_DELETED"]), Oe = {
359
+ ]), Ee = /* @__PURE__ */ new Set(["agent_deleted", "AGENT_DELETED"]), De = {
360
360
  CREDIT_LIMIT: "billing_budget_reached",
361
361
  OVERAGE_CAP: "billing_runaway_cap"
362
362
  };
363
363
  function presentChatStreamError(e) {
364
- if (!(e.bucket !== void 0 || Ee.has(e.code))) return { surface: "hard" };
365
- let t = e.bucket ?? (Te.has(e.code) ? "account" : "error"), n = {
364
+ if (!(e.bucket !== void 0 || Te.has(e.code))) return { surface: "hard" };
365
+ let t = e.bucket ?? (we.has(e.code) ? "account" : "error"), n = {
366
366
  ...e.actionLabel ? { actionLabel: e.actionLabel } : {},
367
367
  ...e.actionUrl ? { actionUrl: e.actionUrl } : {},
368
368
  ...e.help ? { help: e.help } : {}
@@ -375,7 +375,7 @@ function presentChatStreamError(e) {
375
375
  ...n
376
376
  },
377
377
  sendBlockedReason: "account"
378
- } : De.has(e.code) ? {
378
+ } : Ee.has(e.code) ? {
379
379
  surface: "transcript",
380
380
  issue: {
381
381
  code: e.code,
@@ -393,7 +393,7 @@ function presentChatStreamError(e) {
393
393
  };
394
394
  }
395
395
  function transcriptMessageForChatStreamError(e) {
396
- let t = Oe[e.code];
396
+ let t = De[e.code];
397
397
  return t ? i[t].oneLine : e.error;
398
398
  }
399
399
  var AgentChatController = class extends o {
@@ -826,7 +826,7 @@ Current User:
826
826
  let e = i[i.length - 1];
827
827
  this.sharedMessages.value = e?.id === u ? [...i.slice(0, -1), r] : [...i, r];
828
828
  }
829
- r.sender === "system" && r.issue?.bucket === "account" ? this.updateState(this.textState, { sendBlockedReason: "account" }) : r.sender === "system" && r.issue?.code && De.has(r.issue.code) && this.updateState(this.textState, { sendBlockedReason: "agent_deleted" });
829
+ r.sender === "system" && r.issue?.bucket === "account" ? this.updateState(this.textState, { sendBlockedReason: "account" }) : r.sender === "system" && r.issue?.code && Ee.has(r.issue.code) && this.updateState(this.textState, { sendBlockedReason: "agent_deleted" });
830
830
  }, onDone = (e) => {
831
831
  if (!isCurrentTurn()) return;
832
832
  if (!p && !m) {
@@ -989,10 +989,10 @@ function parseButtonTemplate(e) {
989
989
  }
990
990
  //#endregion
991
991
  //#region agent/ui/ElAgentButton.vue?vue&type=script&setup=true&lang.ts
992
- var ke = {
992
+ var Oe = {
993
993
  key: 0,
994
994
  class: "absolute inset-0 flex items-center justify-center"
995
- }, Ae = /* @__PURE__ */ k({
995
+ }, ke = /* @__PURE__ */ k({
996
996
  __name: "ElAgentButton",
997
997
  props: {
998
998
  theme: { default: "primary" },
@@ -1020,7 +1020,7 @@ var ke = {
1020
1020
  md: "size-4",
1021
1021
  lg: "size-5"
1022
1022
  })[e.size]);
1023
- return (i, a) => (F(), x("button", { class: j(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer", [t.value, n.value]]) }, [e.loading ? (F(), x("div", ke, [...a[0] || (a[0] = [S("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)])])) : b("", !0), S("span", { class: j(["flex items-center gap-2 transition-opacity duration-200", e.loading ? "opacity-0" : "opacity-100"]) }, [
1023
+ return (i, a) => (F(), x("button", { class: j(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer", [t.value, n.value]]) }, [e.loading ? (F(), x("div", Oe, [...a[0] || (a[0] = [S("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)])])) : b("", !0), S("span", { class: j(["flex items-center gap-2 transition-opacity duration-200", e.loading ? "opacity-0" : "opacity-100"]) }, [
1024
1024
  e.icon ? (F(), x("i", {
1025
1025
  key: 0,
1026
1026
  class: j([e.icon, r.value])
@@ -1032,7 +1032,7 @@ var ke = {
1032
1032
  }, null, 2)) : b("", !0)
1033
1033
  ], 2)], 2));
1034
1034
  }
1035
- }), je = ["value"], Me = /* @__PURE__ */ k({
1035
+ }), Ae = ["value"], je = /* @__PURE__ */ k({
1036
1036
  __name: "AgentInputEmail",
1037
1037
  props: { modelValue: { default: "" } },
1038
1038
  emits: ["update:modelValue"],
@@ -1051,9 +1051,9 @@ var ke = {
1051
1051
  class: "w-full px-6 py-3 text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-colors",
1052
1052
  style: { "font-size": "16px" },
1053
1053
  onInput: r[0] || (r[0] = (e) => n("update:modelValue", e.target.value))
1054
- }, null, 40, je));
1054
+ }, null, 40, Ae));
1055
1055
  }
1056
- }), Ne = ["placeholder", "value"], Pe = /* @__PURE__ */ k({
1056
+ }), Me = ["placeholder", "value"], Ne = /* @__PURE__ */ k({
1057
1057
  __name: "AgentInputOneTimeCode",
1058
1058
  props: {
1059
1059
  modelValue: {},
@@ -1086,12 +1086,12 @@ var ke = {
1086
1086
  class: "w-full px-6 py-3 text-center font-mono tracking-[0.35em] text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-colors",
1087
1087
  style: { "font-size": "16px" },
1088
1088
  onInput
1089
- }, null, 40, Ne));
1089
+ }, null, 40, Me));
1090
1090
  }
1091
- }), Fe = { class: "relative flex-shrink-0" }, Ie = ["src", "alt"], Le = { class: "absolute top-1 right-1" }, Re = {
1091
+ }), Pe = { class: "relative flex-shrink-0" }, Fe = ["src", "alt"], Ie = { class: "absolute top-1 right-1" }, Le = {
1092
1092
  key: 1,
1093
1093
  class: "size-3 bg-theme-400 rounded-full ring-2 ring-white"
1094
- }, ze = { class: "min-w-0" }, Be = /* @__PURE__ */ k({
1094
+ }, Re = { class: "min-w-0" }, ze = /* @__PURE__ */ k({
1095
1095
  __name: "ElModeHeader",
1096
1096
  props: {
1097
1097
  agent: {},
@@ -1103,17 +1103,17 @@ var ke = {
1103
1103
  layout: { default: "centered" }
1104
1104
  },
1105
1105
  setup(e) {
1106
- return (t, n) => (F(), x("div", { class: j(["flex gap-4", [e.layout === "centered" ? "flex-col items-center text-center" : "flex-row items-center justify-center"]]) }, [S("div", Fe, [S("div", { class: j(["rounded-full overflow-hidden border-white", e.size === "lg" ? "w-20 h-20 sm:w-24 sm:h-24 border-4" : "w-16 sm:size-16 border-2"]) }, [S("img", {
1106
+ return (t, n) => (F(), x("div", { class: j(["flex gap-4", [e.layout === "centered" ? "flex-col items-center text-center" : "flex-row items-center justify-center"]]) }, [S("div", Pe, [S("div", { class: j(["rounded-full overflow-hidden border-white", e.size === "lg" ? "w-20 h-20 sm:w-24 sm:h-24 border-4" : "w-16 sm:size-16 border-2"]) }, [S("img", {
1107
1107
  src: e.agent.avatarUrl.value,
1108
1108
  alt: e.agent.displayName.value,
1109
1109
  class: "w-full h-full object-cover",
1110
1110
  onError: n[0] || (n[0] = (...e) => ae(handleImageError) && ae(handleImageError)(...e))
1111
- }, null, 40, Ie)], 2), S("div", Le, [e.isOnline ? (F(), x(h, { key: 0 }, [n[1] || (n[1] = S("div", {
1111
+ }, null, 40, Fe)], 2), S("div", Ie, [e.isOnline ? (F(), x(h, { key: 0 }, [n[1] || (n[1] = S("div", {
1112
1112
  class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
1113
1113
  style: { "animation-duration": "3s" }
1114
- }, null, -1)), n[2] || (n[2] = S("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))], 64)) : (F(), x("div", Re))])]), S("div", ze, [S("h1", { class: j(["font-light text-white mb-1 truncate", [e.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight", e.layout === "horizontal" ? "text-white/95" : ""]]) }, U(e.agent.displayName.value), 3), S("p", { class: j(["font-light line-clamp-1", [e.size === "lg" ? "text-base text-white/60" : "text-sm sm:text-base", e.layout === "horizontal" ? "text-white/70 truncate" : "text-white/60"]]) }, U(e.layout === "horizontal" ? e.agent.title.value || "Assistant" : e.agent.title.value), 3)])], 2));
1114
+ }, null, -1)), n[2] || (n[2] = S("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))], 64)) : (F(), x("div", Le))])]), S("div", Re, [S("h1", { class: j(["font-light text-white mb-1 truncate", [e.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight", e.layout === "horizontal" ? "text-white/95" : ""]]) }, U(e.agent.displayName.value), 3), S("p", { class: j(["font-light line-clamp-1", [e.size === "lg" ? "text-base text-white/60" : "text-sm sm:text-base", e.layout === "horizontal" ? "text-white/70 truncate" : "text-white/60"]]) }, U(e.layout === "horizontal" ? e.agent.title.value || "Assistant" : e.agent.title.value), 3)])], 2));
1115
1115
  }
1116
- }), Ve = { class: "relative shrink-0 rounded-full" }, He = ["src", "alt"], Ue = ["src", "alt"], We = ["aria-label"], Ge = /* @__PURE__ */ k({
1116
+ }), Be = { class: "relative shrink-0 rounded-full" }, Ve = ["src", "alt"], He = ["src", "alt"], Ue = ["aria-label"], We = /* @__PURE__ */ k({
1117
1117
  __name: "AgentAvatar",
1118
1118
  props: {
1119
1119
  agent: {},
@@ -1145,25 +1145,25 @@ var ke = {
1145
1145
  top: "calc(14.6% - clamp(3.5px, 7%, 7px))",
1146
1146
  right: "calc(14.6% - clamp(3.5px, 7%, 7px))"
1147
1147
  }, i = v(() => e.isLight ? "ring-white" : "ring-theme-900");
1148
- return (t, a) => (F(), x("div", Ve, [
1148
+ return (t, a) => (F(), x("div", Be, [
1149
1149
  S("img", {
1150
1150
  src: e.agent.avatarUrl.value,
1151
1151
  alt: e.agent.displayName.value,
1152
1152
  class: j(["size-full rounded-full object-cover ring-1", e.isLight ? "ring-black/5" : "ring-white/10"])
1153
- }, null, 10, He),
1153
+ }, null, 10, Ve),
1154
1154
  e.showOwnerMark && e.agent.ownerMarkUrl.value ? (F(), x("img", {
1155
1155
  key: 0,
1156
1156
  src: e.agent.ownerMarkUrl.value,
1157
1157
  alt: e.agent.owner.value?.fullName ? `Owned by ${e.agent.owner.value.fullName}` : "Owner",
1158
1158
  class: j(["absolute z-10 size-[36%] -bottom-[3%] -left-[3%] rounded-full object-cover ring-2", i.value])
1159
- }, null, 10, Ue)) : b("", !0),
1159
+ }, null, 10, He)) : b("", !0),
1160
1160
  n.value ? (F(), x("span", {
1161
1161
  key: 1,
1162
1162
  role: "status",
1163
1163
  "aria-label": e.agent.state.value.tooltip,
1164
1164
  class: j(["absolute z-10 rounded-full ring-2", [n.value, i.value]]),
1165
1165
  style: r
1166
- }, null, 10, We)) : b("", !0),
1166
+ }, null, 10, Ue)) : b("", !0),
1167
1167
  n.value && e.agent.state.value.lifecycle === "running" ? (F(), x("span", {
1168
1168
  key: 2,
1169
1169
  "aria-hidden": "true",
@@ -1172,18 +1172,18 @@ var ke = {
1172
1172
  }, null, 2)) : b("", !0)
1173
1173
  ]));
1174
1174
  }
1175
- }), Ke = {
1175
+ }), Ge = {
1176
1176
  key: 0,
1177
1177
  class: "sr-only",
1178
1178
  role: "status",
1179
1179
  "aria-live": "polite"
1180
- }, qe = ["aria-expanded", "disabled"], Je = ["aria-expanded"], Ye = {
1180
+ }, Ke = ["aria-expanded", "disabled"], qe = ["aria-expanded"], Je = {
1181
1181
  class: "flex w-5 shrink-0 justify-center self-stretch",
1182
1182
  "aria-hidden": "true"
1183
- }, Xe = ["data-journal-row"], Ze = {
1183
+ }, Ye = ["data-journal-row"], Xe = {
1184
1184
  class: "flex w-5 shrink-0 flex-col items-center self-stretch",
1185
1185
  "aria-hidden": "true"
1186
- }, Qe = { class: "flex h-[17px] shrink-0 items-center" }, q = {
1186
+ }, Ze = { class: "flex h-[17px] shrink-0 items-center" }, Qe = {
1187
1187
  key: 0,
1188
1188
  class: "sr-only"
1189
1189
  }, $e = /* @__PURE__ */ k({
@@ -1236,7 +1236,7 @@ var ke = {
1236
1236
  label: e ? "text-[13px] font-medium text-theme-900" : "text-[13px] font-medium text-white",
1237
1237
  station: {
1238
1238
  tag: "span",
1239
- class: `pageline-stroke pageline-stroke--mini h-[1.5px] w-3 rounded-full ${s.value.activeLine}`
1239
+ class: `chat-pulse-dot size-1.5 rounded-full bg-current ${s.value.activeLine}`
1240
1240
  }
1241
1241
  },
1242
1242
  failed: {
@@ -1264,7 +1264,7 @@ var ke = {
1264
1264
  };
1265
1265
  });
1266
1266
  return (t, u) => (F(), x("div", { class: j(["w-full py-0.5", s.value.muted]) }, [
1267
- a.value ? (F(), x("span", Ke, U(a.value), 1)) : b("", !0),
1267
+ a.value ? (F(), x("span", Ge, U(a.value), 1)) : b("", !0),
1268
1268
  r.value ? (F(), x("button", {
1269
1269
  key: 1,
1270
1270
  type: "button",
@@ -1286,7 +1286,7 @@ var ke = {
1286
1286
  class: j(["size-[13px] shrink-0", [n.value ? "i-tabler-chevron-down" : "i-tabler-chevron-right", s.value.muted]]),
1287
1287
  "aria-hidden": "true"
1288
1288
  }, null, 2)) : b("", !0)
1289
- ], 10, qe)) : i.value ? (F(), x("button", {
1289
+ ], 10, Ke)) : i.value ? (F(), x("button", {
1290
1290
  key: 2,
1291
1291
  type: "button",
1292
1292
  "data-test": "messaging-tool-activity-summary",
@@ -1294,28 +1294,28 @@ var ke = {
1294
1294
  "aria-expanded": n.value,
1295
1295
  class: j(["flex min-h-11 w-full gap-x-2.5 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2", s.value.ring]),
1296
1296
  onClick: toggle
1297
- }, [S("span", Ye, [S("span", {
1297
+ }, [S("span", Je, [S("span", {
1298
1298
  "data-journal-spine": "dashed",
1299
1299
  class: j(["w-0 border-l border-dashed", s.value.dashed])
1300
1300
  }, null, 2)]), S("span", { class: j(["flex min-h-[20px] items-center gap-0.5 pb-2 text-[12px] leading-none", s.value.muted]) }, [C(U(i.value) + " earlier updates ", 1), S("i", {
1301
1301
  class: j(["size-3 shrink-0", n.value ? "i-tabler-chevron-down" : "i-tabler-chevron-right"]),
1302
1302
  "aria-hidden": "true"
1303
- }, null, 2)], 2)], 10, Je)) : b("", !0),
1303
+ }, null, 2)], 2)], 10, qe)) : b("", !0),
1304
1304
  (F(!0), x(h, null, R(o.value, (e, t) => (F(), x("div", {
1305
1305
  key: e.id,
1306
1306
  "data-test": "messaging-tool-activity-row",
1307
1307
  "data-journal-row": e.tone,
1308
1308
  class: j([r.value ? "pl-[22px]" : "", "flex gap-x-2.5"])
1309
- }, [S("div", Ze, [S("span", Qe, [(F(), te(B(c.value[e.tone].station.tag), {
1309
+ }, [S("div", Xe, [S("span", Ze, [(F(), te(B(c.value[e.tone].station.tag), {
1310
1310
  "data-journal-station": e.tone,
1311
1311
  class: j(c.value[e.tone].station.class)
1312
1312
  }, null, 8, ["data-journal-station", "class"]))]), t === o.value.length - 1 ? b("", !0) : (F(), x("span", {
1313
1313
  key: 0,
1314
1314
  class: j(["w-px flex-1", s.value.spine])
1315
- }, null, 2))]), S("div", { class: j(["min-w-0 flex-1", t === o.value.length - 1 ? "" : "pb-2"]) }, [S("span", { class: j(["relative block leading-snug", c.value[e.tone].label]) }, [C(U(e.label), 1), c.value[e.tone].statusWord ? (F(), x("span", q, ", " + U(c.value[e.tone].statusWord), 1)) : b("", !0)], 2), e.note ? (F(), x("p", {
1315
+ }, null, 2))]), S("div", { class: j(["min-w-0 flex-1", t === o.value.length - 1 ? "" : "pb-2"]) }, [S("span", { class: j(["relative block leading-snug", c.value[e.tone].label]) }, [C(U(e.label), 1), c.value[e.tone].statusWord ? (F(), x("span", Qe, ", " + U(c.value[e.tone].statusWord), 1)) : b("", !0)], 2), e.note ? (F(), x("p", {
1316
1316
  key: 0,
1317
1317
  class: j(["pt-0.5 text-[11.5px] leading-snug", s.value.muted])
1318
- }, U(e.note), 3)) : b("", !0)], 2)], 10, Xe))), 128)),
1318
+ }, U(e.note), 3)) : b("", !0)], 2)], 10, Ye))), 128)),
1319
1319
  !r.value && e.model.hint ? (F(), x("p", {
1320
1320
  key: 3,
1321
1321
  "data-test": "messaging-tool-activity-hint",
@@ -1365,10 +1365,10 @@ function _unsupportedIterableToArray(e, t) {
1365
1365
  return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? _arrayLikeToArray(e, t) : void 0;
1366
1366
  }
1367
1367
  }
1368
- var et = Object.entries, tt = Object.setPrototypeOf, nt = Object.isFrozen, rt = Object.getPrototypeOf, it = Object.getOwnPropertyDescriptor, J = Object.freeze, X = Object.seal, at = Object.create, Z = typeof Reflect < "u" && Reflect, st = Z.apply, ct = Z.construct;
1369
- J || (J = function freeze(e) {
1368
+ var et = Object.entries, tt = Object.setPrototypeOf, nt = Object.isFrozen, J = Object.getPrototypeOf, rt = Object.getOwnPropertyDescriptor, X = Object.freeze, Z = Object.seal, it = Object.create, at = typeof Reflect < "u" && Reflect, st = at.apply, ct = at.construct;
1369
+ X || (X = function freeze(e) {
1370
1370
  return e;
1371
- }), X || (X = function seal(e) {
1371
+ }), Z || (Z = function seal(e) {
1372
1372
  return e;
1373
1373
  }), st || (st = function apply(e, t) {
1374
1374
  var n = [...arguments].slice(2);
@@ -1408,7 +1408,7 @@ function cleanArray(e) {
1408
1408
  return e;
1409
1409
  }
1410
1410
  function clone(e) {
1411
- let t = at(null);
1411
+ let t = it(null);
1412
1412
  for (let r of et(e)) {
1413
1413
  var n = _slicedToArray(r, 2);
1414
1414
  let i = n[0], a = n[1];
@@ -1439,12 +1439,12 @@ function stringifyValue(e) {
1439
1439
  }
1440
1440
  function lookupGetter(e, t) {
1441
1441
  for (; e !== null;) {
1442
- let n = it(e, t);
1442
+ let n = rt(e, t);
1443
1443
  if (n) {
1444
1444
  if (n.get) return unapply(n.get);
1445
1445
  if (typeof n.value == "function") return unapply(n.value);
1446
1446
  }
1447
- e = rt(e);
1447
+ e = J(e);
1448
1448
  }
1449
1449
  function fallbackValue() {
1450
1450
  return null;
@@ -1458,7 +1458,7 @@ function isRegex(e) {
1458
1458
  return !1;
1459
1459
  }
1460
1460
  }
1461
- var Ot = J(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), kt = J(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), At = J([
1461
+ var Ot = X(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), kt = X(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), At = X([
1462
1462
  "feBlend",
1463
1463
  "feColorMatrix",
1464
1464
  "feComponentTransfer",
@@ -1484,7 +1484,7 @@ var Ot = J(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
1484
1484
  "feSpotLight",
1485
1485
  "feTile",
1486
1486
  "feTurbulence"
1487
- ]), jt = J([
1487
+ ]), jt = X([
1488
1488
  "animate",
1489
1489
  "color-profile",
1490
1490
  "cursor",
@@ -1507,7 +1507,7 @@ var Ot = J(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
1507
1507
  "solidcolor",
1508
1508
  "unknown",
1509
1509
  "use"
1510
- ]), Mt = J(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Nt = J([
1510
+ ]), Mt = X(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Nt = X([
1511
1511
  "maction",
1512
1512
  "maligngroup",
1513
1513
  "malignmark",
@@ -1523,13 +1523,13 @@ var Ot = J(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
1523
1523
  "annotation-xml",
1524
1524
  "mprescripts",
1525
1525
  "none"
1526
- ]), Pt = J(["#text"]), Ft = J(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), It = J(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Lt = J(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Rt = J([
1526
+ ]), Pt = X(["#text"]), Ft = X(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), It = X(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Lt = X(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Rt = X([
1527
1527
  "xlink:href",
1528
1528
  "xml:id",
1529
1529
  "xlink:title",
1530
1530
  "xml:space",
1531
1531
  "xmlns:xlink"
1532
- ]), zt = X(/{{[\w\W]*|^[\w\W]*}}/g), Bt = X(/<%[\w\W]*|^[\w\W]*%>/g), Vt = X(/\${[\w\W]*/g), Ht = X(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ut = X(/^aria-[\-\w]+$/), Wt = X(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Gt = X(/^(?:\w+script|data):/i), Kt = X(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), qt = X(/^html$/i), Jt = X(/^[a-z][.\w]*(-[.\w]+)+$/i), Yt = X(/<[/\w!]/g), Xt = X(/<[/\w]/g), Zt = X(/<\/no(script|embed|frames)/i), Qt = X(/\/>/i), $t = {
1532
+ ]), zt = Z(/{{[\w\W]*|^[\w\W]*}}/g), Bt = Z(/<%[\w\W]*|^[\w\W]*%>/g), Vt = Z(/\${[\w\W]*/g), Ht = Z(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ut = Z(/^aria-[\-\w]+$/), Wt = Z(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Gt = Z(/^(?:\w+script|data):/i), Kt = Z(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), qt = Z(/^html$/i), Jt = Z(/^[a-z][.\w]*(-[.\w]+)+$/i), Yt = Z(/<[/\w!]/g), Xt = Z(/<[/\w]/g), Zt = Z(/<\/no(script|embed|frames)/i), Qt = Z(/\/>/i), $t = {
1533
1533
  element: 1,
1534
1534
  attribute: 2,
1535
1535
  text: 3,
@@ -1608,18 +1608,18 @@ function createDOMPurify() {
1608
1608
  return A || (k = tn(u, r), A = !0), k;
1609
1609
  }, F = t, I = F.implementation, R = F.createNodeIterator, ie = F.createDocumentFragment, B = F.getElementsByTagName, H = n.importNode, U = nn();
1610
1610
  DOMPurify.isSupported = typeof et == "function" && typeof v == "function" && I && I.createHTMLDocument !== void 0;
1611
- let ae = zt, oe = Bt, se = Vt, ce = Ht, ue = Ut, de = Gt, pe = Kt, he = Jt, _e = Wt, W = null, ve = addToSet({}, [
1611
+ let ae = zt, oe = Bt, se = Vt, ce = Ht, ue = Ut, de = Gt, pe = Kt, W = Jt, he = Wt, G = null, _e = addToSet({}, [
1612
1612
  ...Ot,
1613
1613
  ...kt,
1614
1614
  ...At,
1615
1615
  ...Mt,
1616
1616
  ...Pt
1617
- ]), G = null, ye = addToSet({}, [
1617
+ ]), K = null, ve = addToSet({}, [
1618
1618
  ...Ft,
1619
1619
  ...It,
1620
1620
  ...Lt,
1621
1621
  ...Rt
1622
- ]), K = Object.seal(at(null, {
1622
+ ]), q = Object.seal(it(null, {
1623
1623
  tagNameCheck: {
1624
1624
  writable: !0,
1625
1625
  configurable: !1,
@@ -1638,7 +1638,7 @@ function createDOMPurify() {
1638
1638
  enumerable: !0,
1639
1639
  value: !1
1640
1640
  }
1641
- })), be = null, Se = null, Ce = Object.seal(at(null, {
1641
+ })), ye = null, be = null, Se = Object.seal(it(null, {
1642
1642
  tagCheck: {
1643
1643
  writable: !0,
1644
1644
  configurable: !1,
@@ -1651,14 +1651,14 @@ function createDOMPurify() {
1651
1651
  enumerable: !0,
1652
1652
  value: null
1653
1653
  }
1654
- })), we = !0, Te = !0, Ee = !1, De = !0, Oe = !1, ke = !0, Ae = !1, je = !1, Me = null, Ne = null, Pe = !1, Fe = !1, Ie = !1, Le = !1, Re = !0, ze = !1, Be = "user-content-", Ve = !0, He = !1, Ue = {}, We = null, Ge = addToSet({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Ke = null, qe = addToSet({}, [
1654
+ })), Ce = !0, we = !0, Te = !1, Ee = !0, De = !1, Oe = !0, ke = !1, Ae = !1, je = null, Me = null, Ne = !1, Pe = !1, Fe = !1, Ie = !1, Le = !0, Re = !1, ze = "user-content-", Be = !0, Ve = !1, He = {}, Ue = null, We = addToSet({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Ge = null, Ke = addToSet({}, [
1655
1655
  "audio",
1656
1656
  "video",
1657
1657
  "img",
1658
1658
  "source",
1659
1659
  "image",
1660
1660
  "track"
1661
- ]), Je = null, Ye = addToSet({}, [
1661
+ ]), qe = null, Je = addToSet({}, [
1662
1662
  "alt",
1663
1663
  "class",
1664
1664
  "for",
@@ -1673,17 +1673,17 @@ function createDOMPurify() {
1673
1673
  "value",
1674
1674
  "style",
1675
1675
  "xmlns"
1676
- ]), Xe = "http://www.w3.org/1998/Math/MathML", Ze = "http://www.w3.org/2000/svg", Qe = "http://www.w3.org/1999/xhtml", q = Qe, $e = !1, tt = null, nt = addToSet({}, [
1676
+ ]), Ye = "http://www.w3.org/1998/Math/MathML", Xe = "http://www.w3.org/2000/svg", Ze = "http://www.w3.org/1999/xhtml", Qe = Ze, $e = !1, tt = null, nt = addToSet({}, [
1677
+ Ye,
1677
1678
  Xe,
1678
- Ze,
1679
- Qe
1680
- ], gt), rt = J([
1679
+ Ze
1680
+ ], gt), J = X([
1681
1681
  "mi",
1682
1682
  "mo",
1683
1683
  "mn",
1684
1684
  "ms",
1685
1685
  "mtext"
1686
- ]), it = addToSet({}, rt), Z = J(["annotation-xml"]), st = addToSet({}, Z), ct = addToSet({}, [
1686
+ ]), rt = addToSet({}, J), at = X(["annotation-xml"]), st = addToSet({}, at), ct = addToSet({}, [
1687
1687
  "title",
1688
1688
  "style",
1689
1689
  "font",
@@ -1694,19 +1694,19 @@ function createDOMPurify() {
1694
1694
  }, on = function _parseConfig() {
1695
1695
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1696
1696
  if (Ct && Ct === e) return;
1697
- (!e || typeof e != "object") && (e = {}), e = clone(e), xt = St.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Q = xt === "application/xhtml+xml" ? gt : ht, W = rn(e, "ALLOWED_TAGS", ve, { transform: Q }), G = rn(e, "ALLOWED_ATTR", ye, { transform: Q }), tt = rn(e, "ALLOWED_NAMESPACES", nt, { transform: gt }), Je = rn(e, "ADD_URI_SAFE_ATTR", Ye, {
1697
+ (!e || typeof e != "object") && (e = {}), e = clone(e), xt = St.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Q = xt === "application/xhtml+xml" ? gt : ht, G = rn(e, "ALLOWED_TAGS", _e, { transform: Q }), K = rn(e, "ALLOWED_ATTR", ve, { transform: Q }), tt = rn(e, "ALLOWED_NAMESPACES", nt, { transform: gt }), qe = rn(e, "ADD_URI_SAFE_ATTR", Je, {
1698
1698
  transform: Q,
1699
- base: Ye
1700
- }), Ke = rn(e, "ADD_DATA_URI_TAGS", qe, {
1699
+ base: Je
1700
+ }), Ge = rn(e, "ADD_DATA_URI_TAGS", Ke, {
1701
1701
  transform: Q,
1702
- base: qe
1703
- }), We = rn(e, "FORBID_CONTENTS", Ge, { transform: Q }), be = rn(e, "FORBID_TAGS", clone({}), { transform: Q }), Se = rn(e, "FORBID_ATTR", clone({}), { transform: Q }), Ue = wt(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? clone(e.USE_PROFILES) : e.USE_PROFILES : !1, we = e.ALLOW_ARIA_ATTR !== !1, Te = e.ALLOW_DATA_ATTR !== !1, Ee = e.ALLOW_UNKNOWN_PROTOCOLS || !1, De = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Oe = e.SAFE_FOR_TEMPLATES || !1, ke = e.SAFE_FOR_XML !== !1, Ae = e.WHOLE_DOCUMENT || !1, Fe = e.RETURN_DOM || !1, Ie = e.RETURN_DOM_FRAGMENT || !1, Le = e.RETURN_TRUSTED_TYPE || !1, Pe = e.FORCE_BODY || !1, Re = e.SANITIZE_DOM !== !1, ze = e.SANITIZE_NAMED_PROPS || !1, Ve = e.KEEP_CONTENT !== !1, He = e.IN_PLACE || !1, _e = isRegex(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Wt, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Qe, it = wt(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? clone(e.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, rt), st = wt(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? clone(e.HTML_INTEGRATION_POINTS) : addToSet({}, Z);
1704
- let t = wt(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? clone(e.CUSTOM_ELEMENT_HANDLING) : at(null);
1705
- if (K = at(null), wt(t, "tagNameCheck") && an(t.tagNameCheck) && (K.tagNameCheck = t.tagNameCheck), wt(t, "attributeNameCheck") && an(t.attributeNameCheck) && (K.attributeNameCheck = t.attributeNameCheck), wt(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (K.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), X(K), Oe && (Te = !1), Ie && (Fe = !0), Ue && (W = addToSet({}, Pt), G = at(null), Ue.html === !0 && (addToSet(W, Ot), addToSet(G, Ft)), Ue.svg === !0 && (addToSet(W, kt), addToSet(G, It), addToSet(G, Rt)), Ue.svgFilters === !0 && (addToSet(W, At), addToSet(G, It), addToSet(G, Rt)), Ue.mathMl === !0 && (addToSet(W, Mt), addToSet(G, Lt), addToSet(G, Rt))), Ce.tagCheck = null, Ce.attributeCheck = null, wt(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? Ce.tagCheck = e.ADD_TAGS : mt(e.ADD_TAGS) && (W === ve && (W = clone(W)), addToSet(W, e.ADD_TAGS, Q))), wt(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? Ce.attributeCheck = e.ADD_ATTR : mt(e.ADD_ATTR) && (G === ye && (G = clone(G)), addToSet(G, e.ADD_ATTR, Q))), wt(e, "ADD_URI_SAFE_ATTR") && mt(e.ADD_URI_SAFE_ATTR) && addToSet(Je, e.ADD_URI_SAFE_ATTR, Q), wt(e, "FORBID_CONTENTS") && mt(e.FORBID_CONTENTS) && (We === Ge && (We = clone(We)), addToSet(We, e.FORBID_CONTENTS, Q)), wt(e, "ADD_FORBID_CONTENTS") && mt(e.ADD_FORBID_CONTENTS) && (We === Ge && (We = clone(We)), addToSet(We, e.ADD_FORBID_CONTENTS, Q)), Ve && (W["#text"] = !0), Ae && addToSet(W, [
1702
+ base: Ke
1703
+ }), Ue = rn(e, "FORBID_CONTENTS", We, { transform: Q }), ye = rn(e, "FORBID_TAGS", clone({}), { transform: Q }), be = rn(e, "FORBID_ATTR", clone({}), { transform: Q }), He = wt(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? clone(e.USE_PROFILES) : e.USE_PROFILES : !1, Ce = e.ALLOW_ARIA_ATTR !== !1, we = e.ALLOW_DATA_ATTR !== !1, Te = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ee = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, De = e.SAFE_FOR_TEMPLATES || !1, Oe = e.SAFE_FOR_XML !== !1, ke = e.WHOLE_DOCUMENT || !1, Pe = e.RETURN_DOM || !1, Fe = e.RETURN_DOM_FRAGMENT || !1, Ie = e.RETURN_TRUSTED_TYPE || !1, Ne = e.FORCE_BODY || !1, Le = e.SANITIZE_DOM !== !1, Re = e.SANITIZE_NAMED_PROPS || !1, Be = e.KEEP_CONTENT !== !1, Ve = e.IN_PLACE || !1, he = isRegex(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Wt, Qe = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Ze, rt = wt(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? clone(e.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, J), st = wt(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? clone(e.HTML_INTEGRATION_POINTS) : addToSet({}, at);
1704
+ let t = wt(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? clone(e.CUSTOM_ELEMENT_HANDLING) : it(null);
1705
+ if (q = it(null), wt(t, "tagNameCheck") && an(t.tagNameCheck) && (q.tagNameCheck = t.tagNameCheck), wt(t, "attributeNameCheck") && an(t.attributeNameCheck) && (q.attributeNameCheck = t.attributeNameCheck), wt(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (q.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), Z(q), De && (we = !1), Fe && (Pe = !0), He && (G = addToSet({}, Pt), K = it(null), He.html === !0 && (addToSet(G, Ot), addToSet(K, Ft)), He.svg === !0 && (addToSet(G, kt), addToSet(K, It), addToSet(K, Rt)), He.svgFilters === !0 && (addToSet(G, At), addToSet(K, It), addToSet(K, Rt)), He.mathMl === !0 && (addToSet(G, Mt), addToSet(K, Lt), addToSet(K, Rt))), Se.tagCheck = null, Se.attributeCheck = null, wt(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? Se.tagCheck = e.ADD_TAGS : mt(e.ADD_TAGS) && (G === _e && (G = clone(G)), addToSet(G, e.ADD_TAGS, Q))), wt(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? Se.attributeCheck = e.ADD_ATTR : mt(e.ADD_ATTR) && (K === ve && (K = clone(K)), addToSet(K, e.ADD_ATTR, Q))), wt(e, "ADD_URI_SAFE_ATTR") && mt(e.ADD_URI_SAFE_ATTR) && addToSet(qe, e.ADD_URI_SAFE_ATTR, Q), wt(e, "FORBID_CONTENTS") && mt(e.FORBID_CONTENTS) && (Ue === We && (Ue = clone(Ue)), addToSet(Ue, e.FORBID_CONTENTS, Q)), wt(e, "ADD_FORBID_CONTENTS") && mt(e.ADD_FORBID_CONTENTS) && (Ue === We && (Ue = clone(Ue)), addToSet(Ue, e.ADD_FORBID_CONTENTS, Q)), Be && (G["#text"] = !0), ke && addToSet(G, [
1706
1706
  "html",
1707
1707
  "head",
1708
1708
  "body"
1709
- ]), W.table && (addToSet(W, ["tbody"]), delete be.tbody), e.TRUSTED_TYPES_POLICY) {
1709
+ ]), G.table && (addToSet(G, ["tbody"]), delete ye.tbody), e.TRUSTED_TYPES_POLICY) {
1710
1710
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Dt("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
1711
1711
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Dt("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
1712
1712
  let t = C;
@@ -1717,25 +1717,25 @@ function createDOMPurify() {
1717
1717
  throw C = t, e;
1718
1718
  }
1719
1719
  } else e.TRUSTED_TYPES_POLICY === null ? (C = void 0, T = "") : (C === void 0 && (C = re()), C && typeof T == "string" && (T = P("")));
1720
- J && J(e), Ct = e;
1720
+ X && X(e), Ct = e;
1721
1721
  }, sn = addToSet({}, [
1722
1722
  ...kt,
1723
1723
  ...At,
1724
1724
  ...jt
1725
1725
  ]), cn = addToSet({}, [...Mt, ...Nt]), ln = function _checkSvgNamespace(e, t, n) {
1726
- return t.namespaceURI === Qe ? e === "svg" : t.namespaceURI === Xe ? e === "svg" && (n === "annotation-xml" || it[n]) : !!sn[e];
1726
+ return t.namespaceURI === Ze ? e === "svg" : t.namespaceURI === Ye ? e === "svg" && (n === "annotation-xml" || rt[n]) : !!sn[e];
1727
1727
  }, un = function _checkMathMlNamespace(e, t, n) {
1728
- return t.namespaceURI === Qe ? e === "math" : t.namespaceURI === Ze ? e === "math" && st[n] : !!cn[e];
1728
+ return t.namespaceURI === Ze ? e === "math" : t.namespaceURI === Xe ? e === "math" && st[n] : !!cn[e];
1729
1729
  }, dn = function _checkHtmlNamespace(e, t, n) {
1730
- return t.namespaceURI === Ze && !st[n] || t.namespaceURI === Xe && !it[n] ? !1 : !cn[e] && (ct[e] || !sn[e]);
1730
+ return t.namespaceURI === Xe && !st[n] || t.namespaceURI === Ye && !rt[n] ? !1 : !cn[e] && (ct[e] || !sn[e]);
1731
1731
  }, fn = function _checkValidNamespace(e) {
1732
1732
  let t = v(e);
1733
1733
  (!t || !t.tagName) && (t = {
1734
- namespaceURI: q,
1734
+ namespaceURI: Qe,
1735
1735
  tagName: "template"
1736
1736
  });
1737
1737
  let n = ht(e.tagName), r = ht(t.tagName);
1738
- return tt[e.namespaceURI] ? e.namespaceURI === Ze ? ln(n, t, r) : e.namespaceURI === Xe ? un(n, t, r) : e.namespaceURI === Qe ? dn(n, t, r) : !!(xt === "application/xhtml+xml" && tt[e.namespaceURI]) : !1;
1738
+ return tt[e.namespaceURI] ? e.namespaceURI === Xe ? ln(n, t, r) : e.namespaceURI === Ye ? un(n, t, r) : e.namespaceURI === Ze ? dn(n, t, r) : !!(xt === "application/xhtml+xml" && tt[e.namespaceURI]) : !1;
1739
1739
  }, pn = function _forceRemove(e) {
1740
1740
  ft(DOMPurify.removed, { element: e });
1741
1741
  try {
@@ -1775,7 +1775,7 @@ function createDOMPurify() {
1775
1775
  from: t
1776
1776
  });
1777
1777
  }
1778
- if (t.removeAttribute(e), e === "is") if (Fe || Ie) try {
1778
+ if (t.removeAttribute(e), e === "is") if (Pe || Fe) try {
1779
1779
  pn(t);
1780
1780
  } catch {}
1781
1781
  else try {
@@ -1785,7 +1785,7 @@ function createDOMPurify() {
1785
1785
  let t = b(e);
1786
1786
  if (t) for (let n = t.length - 1; n >= 0; --n) {
1787
1787
  let r = t[n], i = r && r.name;
1788
- if (!(typeof i != "string" || G[Q(i)])) try {
1788
+ if (!(typeof i != "string" || K[Q(i)])) try {
1789
1789
  e.removeAttribute(i);
1790
1790
  } catch {}
1791
1791
  }
@@ -1798,7 +1798,7 @@ function createDOMPurify() {
1798
1798
  if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
1799
1799
  }
1800
1800
  }, vn = function _neutralizePatchLinkage(e) {
1801
- if (!ke) return;
1801
+ if (!Oe) return;
1802
1802
  let t = [e];
1803
1803
  for (; t.length > 0;) {
1804
1804
  let e = t.pop(), n = x ? x(e) : e.nodeType;
@@ -1819,24 +1819,24 @@ function createDOMPurify() {
1819
1819
  }
1820
1820
  }, yn = function _initDocument(e) {
1821
1821
  let n = null, r = null;
1822
- if (Pe) e = "<remove></remove>" + e;
1822
+ if (Ne) e = "<remove></remove>" + e;
1823
1823
  else {
1824
1824
  let t = _t(e, /^[\r\n\t ]+/);
1825
1825
  r = t && t[0];
1826
1826
  }
1827
- xt === "application/xhtml+xml" && q === Qe && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
1827
+ xt === "application/xhtml+xml" && Qe === Ze && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
1828
1828
  let i = C ? P(e) : e;
1829
- if (q === Qe) try {
1829
+ if (Qe === Ze) try {
1830
1830
  n = new c().parseFromString(i, xt);
1831
1831
  } catch {}
1832
1832
  if (!n || !n.documentElement) {
1833
- n = I.createDocument(q, "template", null);
1833
+ n = I.createDocument(Qe, "template", null);
1834
1834
  try {
1835
1835
  n.documentElement.innerHTML = $e ? T : i;
1836
1836
  } catch {}
1837
1837
  }
1838
1838
  let a = n.body || n.documentElement;
1839
- return e && r && a.insertBefore(t.createTextNode(r), a.childNodes[0] || null), q === Qe ? B.call(n, Ae ? "html" : "body")[0] : Ae ? n.documentElement : a;
1839
+ return e && r && a.insertBefore(t.createTextNode(r), a.childNodes[0] || null), Qe === Ze ? B.call(n, ke ? "html" : "body")[0] : ke ? n.documentElement : a;
1840
1840
  }, bn = function _createNodeIterator(e) {
1841
1841
  return R.call(e.ownerDocument || e, e, s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION, null);
1842
1842
  }, xn = function _stripTemplateExpressions(e) {
@@ -1873,15 +1873,15 @@ function createDOMPurify() {
1873
1873
  });
1874
1874
  }
1875
1875
  let En = function _isUnsafeNode(e, t) {
1876
- return !!(ke && e.hasChildNodes() && !Tn(e.firstElementChild) && Et(Yt, e.textContent) && Et(Yt, e.innerHTML) || ke && e.namespaceURI === Qe && t === "style" && Tn(e.firstElementChild) || e.nodeType === $t.processingInstruction || ke && e.nodeType === $t.comment && Et(Xt, e.data));
1876
+ return !!(Oe && e.hasChildNodes() && !Tn(e.firstElementChild) && Et(Yt, e.textContent) && Et(Yt, e.innerHTML) || Oe && e.namespaceURI === Ze && t === "style" && Tn(e.firstElementChild) || e.nodeType === $t.processingInstruction || Oe && e.nodeType === $t.comment && Et(Xt, e.data));
1877
1877
  }, Dn = function _sanitizeDisallowedNode(e, t) {
1878
- if (!be[t] && jn(t) && (K.tagNameCheck instanceof RegExp && Et(K.tagNameCheck, t) || K.tagNameCheck instanceof Function && K.tagNameCheck(t))) return !1;
1879
- if (Ve && !We[t]) {
1878
+ if (!ye[t] && jn(t) && (q.tagNameCheck instanceof RegExp && Et(q.tagNameCheck, t) || q.tagNameCheck instanceof Function && q.tagNameCheck(t))) return !1;
1879
+ if (Be && !Ue[t]) {
1880
1880
  let t = v(e), n = _(e);
1881
1881
  if (n && t) {
1882
1882
  let r = n.length;
1883
1883
  for (let i = r - 1; i >= 0; --i) {
1884
- let r = He ? n[i] : p(n[i], !0);
1884
+ let r = Ve ? n[i] : p(n[i], !0);
1885
1885
  t.insertBefore(r, h(e));
1886
1886
  }
1887
1887
  }
@@ -1893,26 +1893,26 @@ function createDOMPurify() {
1893
1893
  let n = Q(S ? S(e) : e.nodeName);
1894
1894
  if (_executeHooks(U.uponSanitizeElement, e, {
1895
1895
  tagName: n,
1896
- allowedTags: W
1896
+ allowedTags: G
1897
1897
  }), e !== t && v(e) === null) return !0;
1898
1898
  if (En(e, n)) return pn(e), !0;
1899
- if (be[n] || !(Ce.tagCheck instanceof Function && Ce.tagCheck(n)) && !W[n]) {
1899
+ if (ye[n] || !(Se.tagCheck instanceof Function && Se.tagCheck(n)) && !G[n]) {
1900
1900
  let t = Dn(e, n);
1901
1901
  return t === !1 && _executeHooks(U.afterSanitizeElements, e, null), t;
1902
1902
  }
1903
1903
  if ((x ? x(e) : e.nodeType) === $t.element && !fn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && Et(Zt, e.innerHTML)) return pn(e), !0;
1904
- if (Oe && e.nodeType === $t.text) {
1904
+ if (De && e.nodeType === $t.text) {
1905
1905
  let t = xn(e.textContent);
1906
1906
  e.textContent !== t && (ft(DOMPurify.removed, { element: e.cloneNode() }), e.textContent = t);
1907
1907
  }
1908
1908
  return _executeHooks(U.afterSanitizeElements, e, null), !1;
1909
1909
  }, kn = function _isValidAttribute(e, n, r) {
1910
- if (Se[n] || ke && n === "patchsrc" || ke && n === "for" && e !== "label" && e !== "output" || Re && (n === "id" || n === "name") && (r in t || r in Tt)) return !1;
1911
- let i = G[n] || Ce.attributeCheck instanceof Function && Ce.attributeCheck(n, e);
1912
- if (!(Te && Et(ce, n)) && !(we && Et(ue, n))) {
1910
+ if (be[n] || Oe && n === "patchsrc" || Oe && n === "for" && e !== "label" && e !== "output" || Le && (n === "id" || n === "name") && (r in t || r in Tt)) return !1;
1911
+ let i = K[n] || Se.attributeCheck instanceof Function && Se.attributeCheck(n, e);
1912
+ if (!(we && Et(ce, n)) && !(Ce && Et(ue, n))) {
1913
1913
  if (!i) {
1914
- if (!(jn(e) && (K.tagNameCheck instanceof RegExp && Et(K.tagNameCheck, e) || K.tagNameCheck instanceof Function && K.tagNameCheck(e)) && (K.attributeNameCheck instanceof RegExp && Et(K.attributeNameCheck, n) || K.attributeNameCheck instanceof Function && K.attributeNameCheck(n, e)) || n === "is" && K.allowCustomizedBuiltInElements && (K.tagNameCheck instanceof RegExp && Et(K.tagNameCheck, r) || K.tagNameCheck instanceof Function && K.tagNameCheck(r)))) return !1;
1915
- } else if (!Je[n] && !Et(_e, vt(r, pe, "")) && !((n === "src" || n === "xlink:href" || n === "href") && e !== "script" && yt(r, "data:") === 0 && Ke[e]) && !(Ee && !Et(de, vt(r, pe, ""))) && r) return !1;
1914
+ if (!(jn(e) && (q.tagNameCheck instanceof RegExp && Et(q.tagNameCheck, e) || q.tagNameCheck instanceof Function && q.tagNameCheck(e)) && (q.attributeNameCheck instanceof RegExp && Et(q.attributeNameCheck, n) || q.attributeNameCheck instanceof Function && q.attributeNameCheck(n, e)) || n === "is" && q.allowCustomizedBuiltInElements && (q.tagNameCheck instanceof RegExp && Et(q.tagNameCheck, r) || q.tagNameCheck instanceof Function && q.tagNameCheck(r)))) return !1;
1915
+ } else if (!qe[n] && !Et(he, vt(r, pe, "")) && !((n === "src" || n === "xlink:href" || n === "href") && e !== "script" && yt(r, "data:") === 0 && Ge[e]) && !(Te && !Et(de, vt(r, pe, ""))) && r) return !1;
1916
1916
  }
1917
1917
  return !0;
1918
1918
  }, An = addToSet({}, [
@@ -1925,7 +1925,7 @@ function createDOMPurify() {
1925
1925
  "font-face-uri",
1926
1926
  "missing-glyph"
1927
1927
  ]), jn = function _isBasicCustomElement(e) {
1928
- return !An[ht(e)] && Et(he, e);
1928
+ return !An[ht(e)] && Et(W, e);
1929
1929
  }, Mn = function _applyTrustedTypesToAttribute(e, t, n, r) {
1930
1930
  if (C && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1931
1931
  case "TrustedHTML": return P(r);
@@ -1946,12 +1946,12 @@ function createDOMPurify() {
1946
1946
  attrName: "",
1947
1947
  attrValue: "",
1948
1948
  keepAttr: !0,
1949
- allowedAttributes: G,
1949
+ allowedAttributes: K,
1950
1950
  forceKeepAttr: void 0
1951
1951
  }, r = t.length, i = Q(e.nodeName);
1952
1952
  for (; r--;) {
1953
1953
  let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, u = Q(o), f = c, p = o === "value" ? f : bt(f);
1954
- if (n.attrName = u, n.attrValue = p, n.keepAttr = !0, n.forceKeepAttr = void 0, _executeHooks(U.uponSanitizeAttribute, e, n), p = n.attrValue, ze && (u === "id" || u === "name") && yt(p, Be) !== 0 && (hn(o, e), p = Be + p), ke && Et(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, p)) {
1954
+ if (n.attrName = u, n.attrValue = p, n.keepAttr = !0, n.forceKeepAttr = void 0, _executeHooks(U.uponSanitizeAttribute, e, n), p = n.attrValue, Re && (u === "id" || u === "name") && yt(p, ze) !== 0 && (hn(o, e), p = ze + p), Oe && Et(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, p)) {
1955
1955
  hn(o, e);
1956
1956
  continue;
1957
1957
  }
@@ -1964,11 +1964,11 @@ function createDOMPurify() {
1964
1964
  hn(o, e);
1965
1965
  continue;
1966
1966
  }
1967
- if (!De && Et(Qt, p)) {
1967
+ if (!Ee && Et(Qt, p)) {
1968
1968
  hn(o, e);
1969
1969
  continue;
1970
1970
  }
1971
- if (Oe && (p = xn(p)), !kn(i, u, p)) {
1971
+ if (De && (p = xn(p)), !kn(i, u, p)) {
1972
1972
  hn(o, e);
1973
1973
  continue;
1974
1974
  }
@@ -2025,14 +2025,14 @@ function createDOMPurify() {
2025
2025
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = null, i = null, a = null, o = null;
2026
2026
  if ($e = !e, $e && (e = "<!-->"), typeof e != "string" && !Tn(e) && (e = stringifyValue(e), typeof e != "string")) throw Dt("dirty is not a string, aborting");
2027
2027
  if (!DOMPurify.isSupported) return e;
2028
- je ? (W = Me, G = Ne) : on(t), (U.uponSanitizeElement.length > 0 || U.uponSanitizeAttribute.length > 0) && (W = clone(W)), U.uponSanitizeAttribute.length > 0 && (G = clone(G)), DOMPurify.removed = [];
2029
- let s = He && typeof e != "string" && Tn(e);
2028
+ Ae ? (G = je, K = Me) : on(t), (U.uponSanitizeElement.length > 0 || U.uponSanitizeAttribute.length > 0) && (G = clone(G)), U.uponSanitizeAttribute.length > 0 && (K = clone(K)), DOMPurify.removed = [];
2029
+ let s = Ve && typeof e != "string" && Tn(e);
2030
2030
  if (s) {
2031
2031
  vn(e);
2032
2032
  let t = S ? S(e) : e.nodeName;
2033
2033
  if (typeof t == "string") {
2034
2034
  let n = Q(t);
2035
- if (!W[n] || be[n]) throw mn(e), Dt("root node is forbidden and cannot be sanitized in-place");
2035
+ if (!G[n] || ye[n]) throw mn(e), Dt("root node is forbidden and cannot be sanitized in-place");
2036
2036
  }
2037
2037
  if (Cn(e)) throw mn(e), Dt("root node is clobbered and cannot be sanitized in-place");
2038
2038
  try {
@@ -2042,10 +2042,10 @@ function createDOMPurify() {
2042
2042
  }
2043
2043
  } else if (Tn(e)) r = yn("<!---->"), i = r.ownerDocument.importNode(e, !0), i.nodeType === $t.element && i.nodeName === "BODY" || i.nodeName === "HTML" ? r = i : r.appendChild(i), In(i);
2044
2044
  else {
2045
- if (!Fe && !Oe && !Ae && e.indexOf("<") === -1) return C && Le ? P(e) : e;
2046
- if (r = yn(e), !r) return Fe ? null : Le ? T : "";
2045
+ if (!Pe && !De && !ke && e.indexOf("<") === -1) return C && Ie ? P(e) : e;
2046
+ if (r = yn(e), !r) return Pe ? null : Ie ? T : "";
2047
2047
  }
2048
- r && Pe && pn(r.firstChild);
2048
+ r && Ne && pn(r.firstChild);
2049
2049
  let c = s ? e : r, u = bn(c);
2050
2050
  try {
2051
2051
  for (; a = u.nextNode();) On(a, c), Pn(a), wn(a.content) && Fn(a.content);
@@ -2056,19 +2056,19 @@ function createDOMPurify() {
2056
2056
  }
2057
2057
  if (s) return lt(DOMPurify.removed, (e) => {
2058
2058
  e.element && _n(e.element);
2059
- }), Oe && Sn(e), e;
2060
- if (Fe) {
2061
- if (Oe && Sn(r), Ie) for (o = ie.call(r.ownerDocument); r.firstChild;) o.appendChild(r.firstChild);
2059
+ }), De && Sn(e), e;
2060
+ if (Pe) {
2061
+ if (De && Sn(r), Fe) for (o = ie.call(r.ownerDocument); r.firstChild;) o.appendChild(r.firstChild);
2062
2062
  else o = r;
2063
- return (G.shadowroot || G.shadowrootmode) && (o = H.call(n, o, !0)), o;
2063
+ return (K.shadowroot || K.shadowrootmode) && (o = H.call(n, o, !0)), o;
2064
2064
  }
2065
- let f = Ae ? r.outerHTML : r.innerHTML;
2066
- return Ae && W["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && Et(qt, r.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + r.ownerDocument.doctype.name + ">\n" + f), Oe && (f = xn(f)), C && Le ? P(f) : f;
2065
+ let f = ke ? r.outerHTML : r.innerHTML;
2066
+ return ke && G["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && Et(qt, r.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + r.ownerDocument.doctype.name + ">\n" + f), De && (f = xn(f)), C && Ie ? P(f) : f;
2067
2067
  }, DOMPurify.setConfig = function() {
2068
2068
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2069
- on(e), je = !0, Me = W, Ne = G;
2069
+ on(e), Ae = !0, je = G, Me = K;
2070
2070
  }, DOMPurify.clearConfig = function() {
2071
- Ct = null, je = !1, Me = null, Ne = null, C = k, T = "";
2071
+ Ct = null, Ae = !1, je = null, Me = null, C = k, T = "";
2072
2072
  }, DOMPurify.isValidAttribute = function(e, t, n) {
2073
2073
  Ct || on({});
2074
2074
  let r = Q(e), i = Q(t);
@@ -4084,9 +4084,9 @@ var Ir = [
4084
4084
  return t.inverted ? e === "decision" ? "rgba(255, 255, 255, 0.1)" : "rgba(255, 255, 255, 0.06)" : e === "decision" ? "color-mix(in oklch, var(--color-primary-500) 6%, var(--color-theme-0))" : e === "output" ? "color-mix(in oklch, var(--color-theme-900) 5%, var(--color-theme-0))" : "var(--color-theme-0)";
4085
4085
  }
4086
4086
  function diagramNodeStroke(e) {
4087
- return t.inverted ? "rgba(255, 255, 255, 0.22)" : ye.value;
4087
+ return t.inverted ? "rgba(255, 255, 255, 0.22)" : ve.value;
4088
4088
  }
4089
- let he = v(() => t.inverted ? "rgba(255, 255, 255, 0.95)" : "var(--color-theme-900)"), _e = v(() => t.inverted ? "rgba(255, 255, 255, 0.6)" : "var(--color-theme-500)"), W = v(() => t.inverted ? "rgba(255, 255, 255, 0.45)" : "color-mix(in oklch, var(--color-theme-900) 42%, transparent)"), ve = v(() => t.inverted ? "rgba(255, 255, 255, 0.1)" : "color-mix(in oklch, var(--color-theme-900) 8%, transparent)"), G = v(() => t.inverted ? "rgba(255, 255, 255, 0.24)" : "color-mix(in oklch, var(--color-theme-900) 18%, transparent)"), ye = v(() => t.inverted ? "rgba(255, 255, 255, 0.16)" : "color-mix(in oklch, var(--color-theme-300) 55%, transparent)"), K = v(() => t.inverted ? "rgba(255, 255, 255, 0.14)" : "color-mix(in oklch, var(--color-theme-900) 10%, transparent)"), be = v(() => t.inverted ? "transparent" : "var(--color-theme-0)"), Se = v(() => t.inverted ? "rgba(255, 255, 255, 0.18)" : "color-mix(in oklch, var(--color-theme-900) 16%, transparent)"), Ce = v(() => t.inverted ? "rgba(255, 255, 255, 0.12)" : "color-mix(in oklch, var(--color-theme-900) 9%, transparent)");
4089
+ let W = v(() => t.inverted ? "rgba(255, 255, 255, 0.95)" : "var(--color-theme-900)"), he = v(() => t.inverted ? "rgba(255, 255, 255, 0.6)" : "var(--color-theme-500)"), G = v(() => t.inverted ? "rgba(255, 255, 255, 0.45)" : "color-mix(in oklch, var(--color-theme-900) 42%, transparent)"), _e = v(() => t.inverted ? "rgba(255, 255, 255, 0.1)" : "color-mix(in oklch, var(--color-theme-900) 8%, transparent)"), K = v(() => t.inverted ? "rgba(255, 255, 255, 0.24)" : "color-mix(in oklch, var(--color-theme-900) 18%, transparent)"), ve = v(() => t.inverted ? "rgba(255, 255, 255, 0.16)" : "color-mix(in oklch, var(--color-theme-300) 55%, transparent)"), q = v(() => t.inverted ? "rgba(255, 255, 255, 0.14)" : "color-mix(in oklch, var(--color-theme-900) 10%, transparent)"), ye = v(() => t.inverted ? "transparent" : "var(--color-theme-0)"), be = v(() => t.inverted ? "rgba(255, 255, 255, 0.18)" : "color-mix(in oklch, var(--color-theme-900) 16%, transparent)"), Se = v(() => t.inverted ? "rgba(255, 255, 255, 0.12)" : "color-mix(in oklch, var(--color-theme-900) 9%, transparent)");
4090
4090
  return (e, r) => o.value ? (F(), x("section", {
4091
4091
  key: 0,
4092
4092
  "data-test": "chat-visual",
@@ -4096,18 +4096,18 @@ var Ir = [
4096
4096
  "data-diagram-type": c.value?.diagramType,
4097
4097
  class: "my-6 w-full rounded-[20px] px-4 pb-3.5 pt-4",
4098
4098
  style: M({
4099
- background: be.value,
4100
- boxShadow: `inset 0 0 0 1px ${K.value}`
4099
+ background: ye.value,
4100
+ boxShadow: `inset 0 0 0 1px ${q.value}`
4101
4101
  }),
4102
4102
  "aria-label": o.value.meta.title
4103
4103
  }, [
4104
4104
  S("header", Lr, [S("h4", {
4105
4105
  class: "text-[13px] font-semibold leading-tight",
4106
- style: M({ color: he.value })
4106
+ style: M({ color: W.value })
4107
4107
  }, U(o.value.meta.title), 5), o.value.meta.description ? (F(), x("p", {
4108
4108
  key: 0,
4109
4109
  class: "mt-0.5 text-[12px] leading-snug",
4110
- style: M({ color: _e.value })
4110
+ style: M({ color: he.value })
4111
4111
  }, U(o.value.meta.description), 5)) : b("", !0)]),
4112
4112
  S("div", {
4113
4113
  ref_key: "bodyEl",
@@ -4122,13 +4122,13 @@ var Ir = [
4122
4122
  class: "min-w-0"
4123
4123
  }, [S("div", Br, [S("span", {
4124
4124
  class: "line-clamp-2 min-w-0 font-medium leading-snug",
4125
- style: M({ color: he.value })
4125
+ style: M({ color: W.value })
4126
4126
  }, U(e.label), 5), S("span", {
4127
4127
  class: "shrink-0 font-semibold tabular-nums",
4128
- style: M({ color: he.value })
4128
+ style: M({ color: W.value })
4129
4129
  }, U(e.value), 5)]), S("div", {
4130
4130
  class: "h-2 w-full overflow-hidden rounded-full",
4131
- style: M({ background: Ce.value })
4131
+ style: M({ background: Se.value })
4132
4132
  }, [S("div", {
4133
4133
  class: "h-full rounded-full",
4134
4134
  style: M({
@@ -4151,7 +4151,7 @@ var Ir = [
4151
4151
  y2: yForValue(e),
4152
4152
  "stroke-width": "1",
4153
4153
  "vector-effect": "non-scaling-stroke",
4154
- style: M({ stroke: e === 0 ? G.value : ve.value })
4154
+ style: M({ stroke: e === 0 ? K.value : _e.value })
4155
4155
  }, null, 12, Hr))), 128)),
4156
4156
  S("g", null, [(F(!0), x(h, null, R(C.value.ticks, (e) => (F(), x("text", {
4157
4157
  key: `y-${e}`,
@@ -4159,7 +4159,7 @@ var Ir = [
4159
4159
  y: yForValue(e) + 3,
4160
4160
  "text-anchor": "end",
4161
4161
  "font-size": "9.5",
4162
- style: M({ fill: W.value })
4162
+ style: M({ fill: G.value })
4163
4163
  }, U(ae(formatChatVisualTick)({
4164
4164
  value: e,
4165
4165
  shared: T.value
@@ -4221,7 +4221,7 @@ var Ir = [
4221
4221
  "text-anchor": e.anchor,
4222
4222
  "font-size": "9.5",
4223
4223
  transform: e.angled ? `rotate(${ae(-40)} ${e.x} ${A.value.height - A.value.bottom + 12})` : void 0,
4224
- style: M({ fill: W.value })
4224
+ style: M({ fill: G.value })
4225
4225
  }, U(e.label), 13, Yr))), 128))
4226
4226
  ], 12, Vr)), oe.value.length > 1 || f.value.chartType !== "bar" ? (F(), x("div", Xr, [(F(!0), x(h, null, R(oe.value, (e) => (F(), x("div", {
4227
4227
  key: e.key,
@@ -4231,23 +4231,23 @@ var Ir = [
4231
4231
  class: "size-2.5 shrink-0 rounded-full",
4232
4232
  style: M({ background: seriesColor(e.seriesIndex) })
4233
4233
  }, null, 4),
4234
- S("span", { style: M({ color: _e.value }) }, U(e.label), 5),
4234
+ S("span", { style: M({ color: he.value }) }, U(e.label), 5),
4235
4235
  S("span", {
4236
4236
  class: "font-semibold tabular-nums",
4237
- style: M({ color: he.value })
4237
+ style: M({ color: W.value })
4238
4238
  }, U(e.value), 5)
4239
4239
  ]))), 128))])) : b("", !0)], 8, Rr)) : m.value ? (F(), x("div", Zr, [(F(!0), x(h, null, R(ce.value, (e, t) => (F(), x("div", { key: e.key }, [S("div", Qr, [S("span", {
4240
4240
  class: "truncate font-medium",
4241
- style: M({ color: he.value })
4241
+ style: M({ color: W.value })
4242
4242
  }, U(e.name), 5), S("span", $r, [S("span", {
4243
4243
  class: "font-semibold",
4244
- style: M({ color: he.value })
4244
+ style: M({ color: W.value })
4245
4245
  }, U(e.display), 5), S("span", {
4246
4246
  class: "ml-1.5",
4247
- style: M({ color: _e.value })
4247
+ style: M({ color: he.value })
4248
4248
  }, U(Math.round(e.percent * 100)) + "%", 5)])]), S("div", {
4249
4249
  class: "h-1.5 w-full overflow-hidden rounded-full",
4250
- style: M({ background: Ce.value })
4250
+ style: M({ background: Se.value })
4251
4251
  }, [S("div", {
4252
4252
  class: "h-full rounded-full",
4253
4253
  style: M({
@@ -4277,14 +4277,14 @@ var Ir = [
4277
4277
  "stroke-width": "1.4",
4278
4278
  "stroke-linecap": "round",
4279
4279
  "vector-effect": "non-scaling-stroke",
4280
- style: M({ stroke: Se.value })
4280
+ style: M({ stroke: be.value })
4281
4281
  }, null, 12, ni))), 128)),
4282
4282
  (F(!0), x(h, null, R(ue.value.edges, (e) => (F(), x("circle", {
4283
4283
  key: `${e.key}-dot`,
4284
4284
  cx: e.x2,
4285
4285
  cy: e.y2,
4286
4286
  r: "2.4",
4287
- style: M({ fill: Se.value })
4287
+ style: M({ fill: be.value })
4288
4288
  }, null, 12, ri))), 128)),
4289
4289
  (F(!0), x(h, null, R(ue.value.edges.filter((e) => e.label), (e) => (F(), x("foreignObject", {
4290
4290
  key: `${e.key}-label`,
@@ -4296,7 +4296,7 @@ var Ir = [
4296
4296
  xmlns: "http://www.w3.org/1999/xhtml",
4297
4297
  class: "flex h-full items-center justify-center px-1 text-center text-[10.5px] font-medium leading-none",
4298
4298
  style: M({
4299
- color: _e.value,
4299
+ color: he.value,
4300
4300
  background: t.inverted ? "var(--color-theme-900)" : "var(--color-theme-0)"
4301
4301
  })
4302
4302
  }, U(e.label), 5)], 8, ii))), 128)),
@@ -4333,17 +4333,17 @@ var Ir = [
4333
4333
  height: e.height - 10
4334
4334
  }, [S("div", li, [S("div", {
4335
4335
  class: "line-clamp-2 text-[13px] font-medium leading-snug",
4336
- style: M({ color: he.value })
4336
+ style: M({ color: W.value })
4337
4337
  }, U(e.label), 5), e.detail ? (F(), x("div", {
4338
4338
  key: 0,
4339
4339
  class: "mt-0.5 line-clamp-1 text-[10.5px] leading-none",
4340
- style: M({ color: _e.value })
4340
+ style: M({ color: he.value })
4341
4341
  }, U(e.detail), 5)) : b("", !0)])], 8, ci))], 8, ai))), 128))
4342
4342
  ], 12, ti))])) : b("", !0)], 512),
4343
4343
  o.value.meta.footer ? (F(), x("footer", {
4344
4344
  key: 0,
4345
4345
  class: "mt-3 text-[11px] leading-snug",
4346
- style: M({ color: W.value })
4346
+ style: M({ color: G.value })
4347
4347
  }, U(o.value.meta.footer), 5)) : b("", !0)
4348
4348
  ], 12, Ir)) : b("", !0);
4349
4349
  }
@@ -4701,7 +4701,7 @@ function deriveActivity(e) {
4701
4701
  return e.hadError ? "error" : e.sessionState === "live" ? e.speaking.agent ? "speaking" : e.speaking.user ? "listening" : e.work.active ? "working" : e.providerThinking ? "thinking" : "listening" : "connecting";
4702
4702
  }
4703
4703
  function deriveVoiceModePresentation(e) {
4704
- let t = deriveActivity(e), n = ji[t], r = t === "working" ? e.work.description || "Working on it" : n.label, i = t === "working" ? r : n.visibleText ?? "", a = e.takingLonger && (t === "thinking" || t === "working"), o = a ? `${i} ${K.slowHint}` : i;
4704
+ let t = deriveActivity(e), n = ji[t], r = t === "working" ? e.work.description || "Working on it" : n.label, i = t === "working" ? r : n.visibleText ?? "", a = e.takingLonger && (t === "thinking" || t === "working"), o = a ? `${i} ${q.slowHint}` : i;
4705
4705
  return {
4706
4706
  activity: t,
4707
4707
  label: a ? o : r,
@@ -4766,7 +4766,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
4766
4766
  ce(() => I.value.usesIdleWave, (e) => _.setIdleWave(e), { immediate: !0 }), ce(m, (e) => _.setMuted(e), { immediate: !0 }), ce(ie, (e) => {
4767
4767
  P && clearTimeout(P), c.value = !1, e && (P = setTimeout(() => {
4768
4768
  P = void 0, c.value = !0;
4769
- }, be), P.unref?.());
4769
+ }, ye), P.unref?.());
4770
4770
  }, { immediate: !0 });
4771
4771
  async function end() {
4772
4772
  k = !0, await f.value?.end();
@@ -4842,7 +4842,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
4842
4842
  "aria-hidden": "true",
4843
4843
  class: "flex-1"
4844
4844
  }, null, -1)),
4845
- S("div", Ii, [T(Ge, {
4845
+ S("div", Ii, [T(We, {
4846
4846
  agent: e.agent,
4847
4847
  "show-status": !1,
4848
4848
  "show-owner-mark": !1,
@@ -4948,16 +4948,13 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
4948
4948
  "src",
4949
4949
  "alt",
4950
4950
  "data-attachment-placement"
4951
- ], da = ["src", "data-attachment-placement"], fa = ["href", "data-attachment-placement"], pa = ["data-journal-outcome"], ma = {
4952
- key: 2,
4953
- "data-test": "messaging-tool-activity-tail",
4954
- "aria-label": "Assistant is still working",
4955
- class: "mb-4 grid h-[17px] w-5 place-items-center"
4956
- }, ha = ["data-journal-outcome"], ga = [
4957
- "data-test",
4958
- "data-working-description",
4959
- "data-taking-longer"
4960
- ], _a = { class: "truncate" }, va = ["data-issue-code"], ya = ["href"], ba = ["inert", "aria-hidden"], xa = ["data-seat-state"], Sa = ["src", "alt"], Ca = { class: "max-w-20 truncate" }, wa = ["onClick"], Ta = {
4951
+ ], da = ["src", "data-attachment-placement"], fa = ["href", "data-attachment-placement"], pa = ["data-journal-outcome"], ma = ["data-journal-outcome"], ha = ["data-test", "data-working-description"], ga = {
4952
+ key: 0,
4953
+ class: "truncate"
4954
+ }, _a = {
4955
+ key: 1,
4956
+ class: "sr-only"
4957
+ }, va = ["data-issue-code"], ya = ["href"], ba = ["inert", "aria-hidden"], xa = ["data-seat-state"], Sa = ["src", "alt"], Ca = { class: "max-w-20 truncate" }, wa = ["onClick"], Ta = {
4961
4958
  key: 0,
4962
4959
  class: "shrink-0 flex items-center justify-center size-14"
4963
4960
  }, Ea = ["data-composer-action"], Da = ["placeholder", "disabled"], Oa = { class: "font-mono text-sm tabular-nums" }, ka = { class: "mt-2.5 flex items-center" }, Aa = [
@@ -4991,7 +4988,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
4991
4988
  }, Ha = { class: "sr-only" }, Ua = {
4992
4989
  key: 2,
4993
4990
  "data-test": "messaging-ai-notice",
4994
- class: "mx-auto max-w-[720px] pt-2 text-center text-[11.5px] leading-none text-theme-300"
4991
+ class: "mx-auto max-w-[640px] @5xl/chat:max-w-[720px] pt-2 text-center text-[11.5px] leading-none text-theme-300"
4995
4992
  }, Wa = /*@__PURE__*/ k({
4996
4993
  __name: "ElAgentChat",
4997
4994
  props: {
@@ -5037,7 +5034,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5037
5034
  return e ? /\[[^\]]+\]\([^)]+\)/.test(e) : !1;
5038
5035
  }
5039
5036
  function isSystemExplainerMessage(e) {
5040
- return e.sender === "system" && (!!e.issue || e.id === ye.value);
5037
+ return e.sender === "system" && (!!e.issue || e.id === ve.value);
5041
5038
  }
5042
5039
  function isGroupEnd(e, t) {
5043
5040
  let n = e[t], r = e[t + 1];
@@ -5053,11 +5050,11 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5053
5050
  return m.value.length && P.value ? t.filter((e) => e.id !== P.value) : t;
5054
5051
  }), ae = v(() => {
5055
5052
  if (!e.chatController?.workJournal?.value) return s.value?.workingDescription?.trim() || void 0;
5056
- }), oe = v(() => e.chatController?.workJournal?.value), _e = v(() => {
5053
+ }), oe = v(() => e.chatController?.workJournal?.value), he = v(() => {
5057
5054
  if (!oe.value && !m.value.length) return;
5058
5055
  let e = B.value, t = e[e.length - 1];
5059
5056
  if (t) return t.sender === "agent" || t.sender === "system" ? e.length >= 2 ? e[e.length - 2].id : void 0 : t.id;
5060
- }), W = v(() => {
5057
+ }), G = v(() => {
5061
5058
  let t = {};
5062
5059
  for (let n of B.value) {
5063
5060
  if (n.sender === "user" || !n.toolActivities?.length) continue;
@@ -5071,7 +5068,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5071
5068
  return t;
5072
5069
  });
5073
5070
  function messageWorkJournal(e) {
5074
- return W.value[e.id];
5071
+ return G.value[e.id];
5075
5072
  }
5076
5073
  function inlineOffset(e, t) {
5077
5074
  return e.placement?.kind !== "inline" || !Number.isFinite(e.placement.offset) ? null : Math.max(0, Math.min(t.length, Math.trunc(e.placement.offset)));
@@ -5119,70 +5116,61 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5119
5116
  text: t.slice(i)
5120
5117
  }), r;
5121
5118
  }
5122
- let G = v(() => s.value?.transientIssue), ye = v(() => {
5119
+ let K = v(() => s.value?.transientIssue), ve = v(() => {
5123
5120
  if (!f.value) return;
5124
5121
  let e = B.value, t = e[e.length - 1];
5125
5122
  return t?.sender === "agent" || t?.sender === "system" ? t.id : void 0;
5126
- }), Se = v(() => !f.value || ae.value || oe.value || m.value.length ? !1 : ye.value === void 0), Ce = v(() => ae.value ?? (Se.value ? "Thinking" : void 0)), we = H(!1), Te;
5127
- ce(Ce, (e) => {
5128
- Te && clearTimeout(Te), we.value = !1, e && (Te = setTimeout(() => {
5129
- Te = void 0, we.value = !0;
5130
- }, be), Te.unref?.());
5131
- }, { immediate: !0 });
5132
- let Ee = v(() => {
5133
- let e = Ce.value;
5134
- if (e) return we.value ? `${e} ${K.slowHint}` : e;
5135
- }), De = v(() => s.value?.sendBlockedReason), Oe = v(() => De.value === "agent_deleted"), ke = v(() => p.value ? "Connecting..." : De.value === "agent_deleted" ? "This assistant was deleted" : "Send a message"), Ae = v(() => c(e.agent.state.value)), je = v(() => {
5136
- if (q.value || !Ae.value || Ae.value === "awake") return;
5123
+ }), q = v(() => !f.value || ae.value || oe.value || m.value.length ? !1 : ve.value === void 0), ye = v(() => !!ae.value || q.value), be = v(() => s.value?.sendBlockedReason), Se = v(() => be.value === "agent_deleted"), Ce = v(() => p.value ? "Connecting..." : be.value === "agent_deleted" ? "This assistant was deleted" : "Send a message"), we = v(() => c(e.agent.state.value)), Te = v(() => {
5124
+ if (qe.value || !we.value || we.value === "awake") return;
5137
5125
  let t = e.agent.displayName.value || e.agent.name.value || "Your assistant";
5138
- return Ae.value === "changing" ? `${t} will be right back…` : `${t} is ${a[Ae.value].toLowerCase()}.`;
5139
- }), Me = v(() => e.chatController?.composerState?.value ?? {
5126
+ return we.value === "changing" ? `${t} will be right back…` : `${t} is ${a[we.value].toLowerCase()}.`;
5127
+ }), Ee = v(() => e.chatController?.composerState?.value ?? {
5140
5128
  text: "",
5141
5129
  pendingAttachments: [],
5142
5130
  isUploading: !1
5143
- }), Ne = v({
5144
- get: () => Me.value.text,
5131
+ }), De = v({
5132
+ get: () => Ee.value.text,
5145
5133
  set: (t) => e.chatController?.setComposerText?.({ text: t })
5146
- }), Pe = v(() => Me.value.pendingAttachments), Fe = v(() => Me.value.isUploading), Ie = v(() => e.chatController?.voiceRecorder), Le = v(() => Ie.value?.isBusy.value ?? !1), Re = v(() => e.chatController?.canAttachFile?.value ?? !1), ze = v(() => e.chatController?.canRecordAudio?.value ?? !1), Ve = v(() => e.chatController?.composerAction?.value ?? "idle"), He = v(() => Ve.value !== "idle"), Ue = v(() => e.chatController?.composerShowsSecondaryStop?.value ?? !1), We = v(() => e.chatController?.queuedMessageIds?.value);
5134
+ }), Oe = v(() => Ee.value.pendingAttachments), ke = v(() => Ee.value.isUploading), Ae = v(() => e.chatController?.voiceRecorder), je = v(() => Ae.value?.isBusy.value ?? !1), Me = v(() => e.chatController?.canAttachFile?.value ?? !1), Ne = v(() => e.chatController?.canRecordAudio?.value ?? !1), Pe = v(() => e.chatController?.composerAction?.value ?? "idle"), Fe = v(() => Pe.value !== "idle"), Ie = v(() => e.chatController?.composerShowsSecondaryStop?.value ?? !1), Le = v(() => e.chatController?.queuedMessageIds?.value);
5147
5135
  function isQueuedMessage(e) {
5148
- return We.value?.has(e) ?? !1;
5149
- }
5150
- let Ke = v(() => Ve.value === "stop" ? "Stop reply" : Ue.value ? "Send — answered after current work" : "Send message"), qe = v(() => ze.value && !Le.value && !!Ie.value?.canUseBrowserRecording), Je = v(() => Ie.value?.isActive.value ?? !1), Ye = v(() => Ie.value?.state.value.phase === "sending"), Xe = v(() => Ie.value?.elapsedLabel.value ?? "0:00"), Ze = v(() => {
5151
- let e = Ie.value?.state.value.phase;
5152
- return e === "preparing" || e === "sending" ? Ie.value?.statusText.value ?? "Starting microphone" : lt.value ? "Release to send" : "Click mic to send";
5153
- }), Qe = v(() => Ie.value?.state.value.phase === "sending" ? "Sending voice message" : Je.value ? lt.value ? "Release to send voice message" : "Stop and send voice message" : "Record voice message"), q = I(!1), et = I(), tt = I(), nt = I(), rt = 0, it = v(() => e.chatController?.canStartVoice?.value ?? !1);
5154
- ce([() => e.agent.avatar.value?.src, it], ([e, t]) => {
5155
- let n = ++rt;
5156
- if (nt.value = void 0, !t || !e || typeof Image > "u") return;
5136
+ return Le.value?.has(e) ?? !1;
5137
+ }
5138
+ let Re = v(() => Pe.value === "stop" ? "Stop reply" : Ie.value ? "Send — answered after current work" : "Send message"), Be = v(() => Ne.value && !je.value && !!Ae.value?.canUseBrowserRecording), Ve = v(() => Ae.value?.isActive.value ?? !1), He = v(() => Ae.value?.state.value.phase === "sending"), Ue = v(() => Ae.value?.elapsedLabel.value ?? "0:00"), Ge = v(() => {
5139
+ let e = Ae.value?.state.value.phase;
5140
+ return e === "preparing" || e === "sending" ? Ae.value?.statusText.value ?? "Starting microphone" : Z.value ? "Release to send" : "Click mic to send";
5141
+ }), Ke = v(() => Ae.value?.state.value.phase === "sending" ? "Sending voice message" : Ve.value ? Z.value ? "Release to send voice message" : "Stop and send voice message" : "Record voice message"), qe = I(!1), Je = I(), Ye = I(), Xe = I(), Ze = 0, Qe = v(() => e.chatController?.canStartVoice?.value ?? !1);
5142
+ ce([() => e.agent.avatar.value?.src, Qe], ([e, t]) => {
5143
+ let n = ++Ze;
5144
+ if (Xe.value = void 0, !t || !e || typeof Image > "u") return;
5157
5145
  let r = new Image();
5158
5146
  r.onload = () => {
5159
- n === rt && (nt.value = e);
5147
+ n === Ze && (Xe.value = e);
5160
5148
  }, r.src = e;
5161
5149
  }, { immediate: !0 });
5162
- let J = v(() => it.value && !q.value && !Je.value && Ve.value === "idle"), X = v(() => !u.value), at = v(() => X.value ? `Voice available when ${e.agent.displayName.value || e.agent.name.value || "the assistant"} is awake` : "Start voice conversation");
5150
+ let et = v(() => Qe.value && !qe.value && !Ve.value && Pe.value === "idle"), tt = v(() => !u.value), nt = v(() => tt.value ? `Voice available when ${e.agent.displayName.value || e.agent.name.value || "the assistant"} is awake` : "Start voice conversation");
5163
5151
  function startVoiceConversation() {
5164
- !J.value || X.value || (tt.value = nt.value, q.value = !0);
5152
+ !et.value || tt.value || (Ye.value = Xe.value, qe.value = !0);
5165
5153
  }
5166
5154
  async function endVoiceConversation() {
5167
- if (!q.value) return;
5168
- let t = et.value?.end();
5169
- q.value = !1, tt.value = void 0, await A(), await t, i.value?.focus(), await e.chatController?.refreshMessages();
5155
+ if (!qe.value) return;
5156
+ let t = Je.value?.end();
5157
+ qe.value = !1, Ye.value = void 0, await A(), await t, i.value?.focus(), await e.chatController?.refreshMessages();
5170
5158
  }
5171
- let Z = v(() => e.variant === "light"), st = v(() => Z.value ? "bg-gradient-to-r from-transparent via-black/5 to-transparent" : "bg-gradient-to-r from-transparent via-white/5 to-transparent"), ct = v(() => Z.value ? "text-theme-300" : "text-white/30");
5159
+ let J = v(() => e.variant === "light"), rt = v(() => J.value ? "bg-gradient-to-r from-transparent via-black/5 to-transparent" : "bg-gradient-to-r from-transparent via-white/5 to-transparent"), X = v(() => J.value ? "text-theme-300" : "text-white/30");
5172
5160
  ne(async () => {
5173
5161
  e.chatController && !u.value && await e.chatController.startTextConversation();
5174
5162
  }), re(() => {
5175
- Te && clearTimeout(Te), e.chatController?.voiceRecorder?.teardown();
5163
+ e.chatController?.voiceRecorder?.teardown();
5176
5164
  });
5177
5165
  async function sendMessage() {
5178
- !e.chatController || Ve.value !== "send" || (i.value && (i.value.style.height = "auto", window.matchMedia("(pointer: coarse)").matches ? i.value.blur() : i.value.focus()), r.value?.pin(), await e.chatController.sendComposerMessage());
5166
+ !e.chatController || Pe.value !== "send" || (i.value && (i.value.style.height = "auto", window.matchMedia("(pointer: coarse)").matches ? i.value.blur() : i.value.focus()), r.value?.pin(), await e.chatController.sendComposerMessage());
5179
5167
  }
5180
5168
  async function handleCardAction(t) {
5181
- !e.chatController || Oe.value || (r.value?.pin(), await e.chatController.sendChatMessage(t));
5169
+ !e.chatController || Se.value || (r.value?.pin(), await e.chatController.sendChatMessage(t));
5182
5170
  }
5183
5171
  async function handleComposerAction() {
5184
5172
  if (e.chatController) {
5185
- if (Ve.value === "send") {
5173
+ if (Pe.value === "send") {
5186
5174
  await sendMessage();
5187
5175
  return;
5188
5176
  }
@@ -5193,44 +5181,44 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5193
5181
  e.isComposing || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), await sendMessage());
5194
5182
  }
5195
5183
  function focusComposer(e) {
5196
- Je.value || Oe.value || e.target instanceof Element && e.target.closest("button, a, textarea") || i.value?.focus();
5184
+ Ve.value || Se.value || e.target instanceof Element && e.target.closest("button, a, textarea") || i.value?.focus();
5197
5185
  }
5198
5186
  function adjustTextareaHeight() {
5199
5187
  i.value && (i.value.style.height = "auto", i.value.style.height = `${Math.min(i.value.scrollHeight, 150)}px`);
5200
5188
  }
5201
- ce(Ne, () => A(() => adjustTextareaHeight()));
5189
+ ce(De, () => A(() => adjustTextareaHeight()));
5202
5190
  function triggerFileInput() {
5203
5191
  o.value?.click();
5204
5192
  }
5205
5193
  async function handleFileSelect(t) {
5206
5194
  let n = t.target, r = n.files?.[0];
5207
- !r || !e.chatController || Le.value || (await e.chatController.attachFile({ file: r }), n.value = "");
5195
+ !r || !e.chatController || je.value || (await e.chatController.attachFile({ file: r }), n.value = "");
5208
5196
  }
5209
5197
  function removeAttachment(t) {
5210
5198
  e.chatController?.removeAttachment({ index: t });
5211
5199
  }
5212
5200
  function startRecording() {
5213
- Ie.value?.start();
5201
+ Ae.value?.start();
5214
5202
  }
5215
5203
  function finishRecording(e) {
5216
- Ie.value?.finish(e);
5204
+ Ae.value?.finish(e);
5217
5205
  }
5218
- let lt = H(!1), ut = !1;
5206
+ let Z = H(!1), it = !1;
5219
5207
  function onRecordPointerDown(e) {
5220
- e.pointerType === "touch" && (ut = !0, lt.value = !0, e.currentTarget.setPointerCapture?.(e.pointerId), startRecording());
5208
+ e.pointerType === "touch" && (it = !0, Z.value = !0, e.currentTarget.setPointerCapture?.(e.pointerId), startRecording());
5221
5209
  }
5222
5210
  function onRecordPointerUp(e) {
5223
- e.pointerType !== "touch" || !lt.value || (lt.value = !1, finishRecording({ cancelled: !1 }));
5211
+ e.pointerType !== "touch" || !Z.value || (Z.value = !1, finishRecording({ cancelled: !1 }));
5224
5212
  }
5225
5213
  function onRecordPointerCancel(e) {
5226
- e.pointerType !== "touch" || !lt.value || (lt.value = !1, ut = !1, finishRecording({ cancelled: !0 }));
5214
+ e.pointerType !== "touch" || !Z.value || (Z.value = !1, it = !1, finishRecording({ cancelled: !0 }));
5227
5215
  }
5228
5216
  function toggleRecording() {
5229
- Je.value ? finishRecording({ cancelled: !1 }) : startRecording();
5217
+ Ve.value ? finishRecording({ cancelled: !1 }) : startRecording();
5230
5218
  }
5231
5219
  function onRecordClick() {
5232
- if (ut) {
5233
- ut = !1;
5220
+ if (it) {
5221
+ it = !1;
5234
5222
  return;
5235
5223
  }
5236
5224
  toggleRecording();
@@ -5266,20 +5254,20 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5266
5254
  "data-test": "messaging-root",
5267
5255
  class: j(["@container/chat relative flex h-full flex-col", B.value.length === 0 ? "min-h-0 [justify-content:safe_center] overflow-y-auto" : ""])
5268
5256
  }, [
5269
- e.showHeader && !Z.value ? (F(), x("div", Wi, [T(Be, {
5257
+ e.showHeader && !J.value ? (F(), x("div", Wi, [T(ze, {
5270
5258
  agent: e.agent,
5271
5259
  "is-online": u.value
5272
- }, null, 8, ["agent", "is-online"])])) : e.showHeader ? (F(), x("div", Gi, [S("div", { class: j(["flex items-center gap-3", e.centered ? "max-w-[720px] mx-auto" : ""]) }, [
5273
- T(Ge, {
5260
+ }, null, 8, ["agent", "is-online"])])) : e.showHeader ? (F(), x("div", Gi, [S("div", { class: j(["flex items-center gap-3", e.centered ? "max-w-[640px] @5xl/chat:max-w-[720px] mx-auto" : ""]) }, [
5261
+ T(We, {
5274
5262
  agent: e.agent,
5275
- "is-light": Z.value,
5263
+ "is-light": J.value,
5276
5264
  class: "size-10"
5277
5265
  }, null, 8, ["agent", "is-light"]),
5278
5266
  S("div", Ki, [S("div", qi, U(e.agent.displayName.value), 1), S("div", Ji, U(e.agent.title.value || "Assistant"), 1)]),
5279
5267
  e.headerMeta ? (F(), x("span", Yi, U(e.headerMeta), 1)) : b("", !0)
5280
5268
  ], 2)])) : b("", !0),
5281
5269
  T(_, { name: "voice-call" }, {
5282
- default: ue(() => [q.value ? (F(), x("div", {
5270
+ default: ue(() => [qe.value ? (F(), x("div", {
5283
5271
  key: 0,
5284
5272
  "data-test": "voice-call-overlay",
5285
5273
  role: "dialog",
@@ -5289,10 +5277,10 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5289
5277
  onKeydown: a[0] || (a[0] = pe((e) => endVoiceConversation(), ["esc"]))
5290
5278
  }, [T(Ui, {
5291
5279
  ref_key: "voiceMode",
5292
- ref: et,
5280
+ ref: Je,
5293
5281
  agent: e.agent,
5294
5282
  "chat-controller": e.chatController,
5295
- "backdrop-src": tt.value,
5283
+ "backdrop-src": Ye.value,
5296
5284
  "is-light": !1,
5297
5285
  class: "voice-call-card h-full w-full sm:max-h-[620px] sm:max-w-[420px] sm:flex-none sm:rounded-[32px] sm:shadow-[0_32px_80px_rgba(5,15,25,0.45)]",
5298
5286
  onEnd: endVoiceConversation
@@ -5305,35 +5293,35 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5305
5293
  }),
5306
5294
  p.value ? (F(), x("div", {
5307
5295
  key: 2,
5308
- class: j(["py-16 flex flex-col items-center justify-center gap-2 text-sm", Z.value ? "text-theme-400" : "text-theme-600"])
5309
- }, [T(ve, { class: "size-4" })], 2)) : e.setupHint ? (F(), x("div", {
5296
+ class: j(["py-16 flex flex-col items-center justify-center gap-2 text-sm", J.value ? "text-theme-400" : "text-theme-600"])
5297
+ }, [T(_e, { class: "size-4" })], 2)) : e.setupHint ? (F(), x("div", {
5310
5298
  key: 3,
5311
- class: j(["flex items-center justify-center gap-1.5 py-2 text-[11px]", ct.value])
5299
+ class: j(["flex items-center justify-center gap-1.5 py-2 text-[11px]", X.value])
5312
5300
  }, [a[14] || (a[14] = S("i", { class: "i-tabler-tool size-3" }, null, -1)), S("span", null, U(e.setupHint), 1)], 2)) : b("", !0),
5313
5301
  T(hi, {
5314
5302
  ref_key: "chatScroller",
5315
5303
  ref: r,
5316
- inert: q.value,
5317
- "aria-hidden": q.value ? "true" : void 0,
5304
+ inert: qe.value,
5305
+ "aria-hidden": qe.value ? "true" : void 0,
5318
5306
  class: j(B.value.length === 0 ? "flex-none" : "flex-1")
5319
5307
  }, {
5320
- default: ue(() => [S("div", { class: j([B.value.length === 0 ? "flex flex-col items-center justify-center px-3 py-4" : e.centered ? "pt-20 pb-5 px-3 @lg/chat:px-5 space-y-2" : "pt-4 pb-[120px] px-3 @lg/chat:px-5 space-y-2", e.centered ? B.value.length === 0 ? "max-w-[900px] mx-auto w-full" : "max-w-[720px] mx-auto w-full" : ""]) }, [
5308
+ default: ue(() => [S("div", { class: j([B.value.length === 0 ? "flex flex-col items-center justify-center px-3 py-4" : e.centered ? "pt-20 pb-5 px-3 @lg/chat:px-8 space-y-2" : "pt-4 pb-[120px] px-3 @lg/chat:px-8 space-y-2", e.centered ? B.value.length === 0 ? "max-w-[900px] mx-auto w-full" : "max-w-[640px] @5xl/chat:max-w-[720px] mx-auto w-full" : ""]) }, [
5321
5309
  B.value.length === 0 && !p.value ? (F(), x("div", Zi, [ie(t.$slots, "empty-heading", {
5322
5310
  agent: e.agent,
5323
- isLight: Z.value
5324
- }, () => [T(Ge, {
5311
+ isLight: J.value
5312
+ }, () => [T(We, {
5325
5313
  agent: e.agent,
5326
- "is-light": Z.value,
5314
+ "is-light": J.value,
5327
5315
  class: "mb-4 size-20 @sm/chat:size-24"
5328
- }, null, 8, ["agent", "is-light"]), S("div", { class: j(["text-base @sm/chat:text-lg font-semibold", Z.value ? "text-theme-900" : "text-white"]) }, U(e.agent.displayName.value), 3)], !0), e.emptyStateMessage === "" ? b("", !0) : (F(), x(h, { key: 0 }, [S("p", { class: j(["mt-1 text-center text-xs @sm/chat:text-sm", ct.value]) }, U(e.emptyStateMessage || "Type your message to get started."), 3), S("div", {
5329
- class: j(["inline-flex items-center gap-1.5 mt-5 px-2.5 py-1 rounded-full text-[11px]", Z.value ? "bg-theme-50 border border-theme-100 text-theme-400" : "bg-white/10 border border-white/20 text-white/40"]),
5316
+ }, null, 8, ["agent", "is-light"]), S("div", { class: j(["text-base @sm/chat:text-lg font-semibold", J.value ? "text-theme-900" : "text-white"]) }, U(e.agent.displayName.value), 3)], !0), e.emptyStateMessage === "" ? b("", !0) : (F(), x(h, { key: 0 }, [S("p", { class: j(["mt-1 text-center text-xs @sm/chat:text-sm", X.value]) }, U(e.emptyStateMessage || "Type your message to get started."), 3), S("div", {
5317
+ class: j(["inline-flex items-center gap-1.5 mt-5 px-2.5 py-1 rounded-full text-[11px]", J.value ? "bg-theme-50 border border-theme-100 text-theme-400" : "bg-white/10 border border-white/20 text-white/40"]),
5330
5318
  title: n.value.tooltip
5331
5319
  }, [S("i", { class: j([n.value.icon, "size-3"]) }, null, 2), S("span", null, U(n.value.label), 1)], 10, Qi)], 64))])) : b("", !0),
5332
5320
  (F(!0), x(h, null, R(B.value, (e, t) => (F(), x(h, { key: e.id }, [
5333
5321
  shouldShowTimeDivider(B.value, t) ? (F(), x("div", $i, [
5334
- S("div", { class: j(["flex-1 h-px", st.value]) }, null, 2),
5335
- S("span", { class: j(["text-[10px] @sm/chat:text-[11px] font-medium shrink-0 tracking-widest uppercase", ct.value]) }, U(shouldShowTimeDivider(B.value, t)), 3),
5336
- S("div", { class: j(["flex-1 h-px", st.value]) }, null, 2)
5322
+ S("div", { class: j(["flex-1 h-px", rt.value]) }, null, 2),
5323
+ S("span", { class: j(["text-[10px] @sm/chat:text-[11px] font-medium shrink-0 tracking-widest uppercase", X.value]) }, U(shouldShowTimeDivider(B.value, t)), 3),
5324
+ S("div", { class: j(["flex-1 h-px", rt.value]) }, null, 2)
5337
5325
  ])) : b("", !0),
5338
5326
  messageWorkJournal(e) ? (F(), x("div", {
5339
5327
  key: 1,
@@ -5342,7 +5330,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5342
5330
  class: "mb-4 w-full"
5343
5331
  }, [T($e, {
5344
5332
  model: messageWorkJournal(e),
5345
- "is-light": Z.value
5333
+ "is-light": J.value
5346
5334
  }, null, 8, ["model", "is-light"])], 8, ea)) : b("", !0),
5347
5335
  isSystemExplainerMessage(e) ? (F(), x("div", {
5348
5336
  key: 2,
@@ -5356,14 +5344,14 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5356
5344
  "data-issue-bucket": e.issue?.bucket,
5357
5345
  "data-issue-action-label": e.issue?.actionLabel,
5358
5346
  "data-issue-action-url": e.issue?.actionUrl,
5359
- "data-streaming": e.id === ye.value ? "true" : void 0,
5347
+ "data-streaming": e.id === ve.value ? "true" : void 0,
5360
5348
  class: "flex gap-2 items-end justify-start mb-4"
5361
- }, [S("div", na, [S("div", { class: j(["mb-1 pl-1 text-[11px] font-medium", Z.value ? "text-theme-500" : "text-white/45"]) }, " System Message ", 2), S("div", { class: j(["pl-1", Z.value ? "text-theme-700" : "text-white/85"]) }, [e.text ? (F(), te(fi, {
5349
+ }, [S("div", na, [S("div", { class: j(["mb-1 pl-1 text-[11px] font-medium", J.value ? "text-theme-500" : "text-white/45"]) }, " System Message ", 2), S("div", { class: j(["pl-1", J.value ? "text-theme-700" : "text-white/85"]) }, [e.text ? (F(), te(fi, {
5362
5350
  key: 0,
5363
5351
  text: e.text,
5364
- inverted: !Z.value,
5365
- streaming: e.id === ye.value,
5366
- onClick: a[1] || (a[1] = he(() => {}, ["stop"])),
5352
+ inverted: !J.value,
5353
+ streaming: e.id === ve.value,
5354
+ onClick: a[1] || (a[1] = W(() => {}, ["stop"])),
5367
5355
  onAction: handleCardAction
5368
5356
  }, null, 8, [
5369
5357
  "text",
@@ -5372,13 +5360,13 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5372
5360
  ])) : e.issue?.help ? (F(), te(fi, {
5373
5361
  key: 1,
5374
5362
  text: e.issue.help,
5375
- inverted: !Z.value
5363
+ inverted: !J.value
5376
5364
  }, null, 8, ["text", "inverted"])) : b("", !0), e.issue?.actionUrl && !containsMarkdownLink(e.text) ? (F(), x("a", {
5377
5365
  key: 2,
5378
5366
  href: e.issue.actionUrl,
5379
5367
  "data-test": "messaging-system-msg-action",
5380
- class: j(["mt-2 text-[12px] font-medium inline-flex items-center gap-1", Z.value ? "text-theme-900 hover:text-theme-700" : "text-white hover:text-white/80"]),
5381
- onClick: a[2] || (a[2] = he(() => {}, ["stop"]))
5368
+ class: j(["mt-2 text-[12px] font-medium inline-flex items-center gap-1", J.value ? "text-theme-900 hover:text-theme-700" : "text-white hover:text-white/80"]),
5369
+ onClick: a[2] || (a[2] = W(() => {}, ["stop"]))
5382
5370
  }, [C(U(e.issue.actionLabel) + " ", 1), a[15] || (a[15] = S("i", { class: "i-tabler-arrow-right size-3" }, null, -1))], 10, ra)) : b("", !0)], 2)])], 8, ta)) : e.sender === "system" ? (F(), x("div", {
5383
5371
  key: 3,
5384
5372
  "data-test": "messaging-system-status-msg",
@@ -5389,15 +5377,15 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5389
5377
  "data-system-kind": e.systemKind,
5390
5378
  "data-issue-code": e.issue?.code,
5391
5379
  "data-issue-bucket": e.issue?.bucket,
5392
- "data-streaming": e.id === ye.value ? "true" : void 0,
5393
- class: j(["mb-4 flex w-fit max-w-[85%] items-start gap-2 rounded-2xl px-3 py-2 text-[13px] leading-relaxed ring-1", Z.value ? "bg-theme-100 text-theme-600 ring-theme-200" : "bg-white/10 text-white/70 ring-white/10"])
5380
+ "data-streaming": e.id === ve.value ? "true" : void 0,
5381
+ class: j(["mb-4 flex w-fit max-w-[85%] items-start gap-2 rounded-2xl px-3 py-2 text-[13px] leading-relaxed ring-1", J.value ? "bg-theme-100 text-theme-600 ring-theme-200" : "bg-white/10 text-white/70 ring-white/10"])
5394
5382
  }, [a[16] || (a[16] = S("i", {
5395
5383
  class: "i-tabler-info-circle size-4 mt-0.5 shrink-0",
5396
5384
  "aria-hidden": "true"
5397
5385
  }, null, -1)), T(fi, {
5398
5386
  text: e.text,
5399
- inverted: !Z.value,
5400
- onClick: a[3] || (a[3] = he(() => {}, ["stop"]))
5387
+ inverted: !J.value,
5388
+ onClick: a[3] || (a[3] = W(() => {}, ["stop"]))
5401
5389
  }, null, 8, ["text", "inverted"])], 10, ia)) : (F(), x("div", {
5402
5390
  key: 4,
5403
5391
  "data-test": e.sender === "agent" ? "messaging-assistant-msg" : e.sender === "user" ? "messaging-user-msg" : void 0,
@@ -5406,7 +5394,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5406
5394
  "data-conversation-id": e.conversationId,
5407
5395
  "data-message-sequence": e.sequence,
5408
5396
  "data-system-kind": e.systemKind,
5409
- "data-streaming": e.id === ye.value ? "true" : void 0,
5397
+ "data-streaming": e.id === ve.value ? "true" : void 0,
5410
5398
  "data-queued": isQueuedMessage(e.id) ? "true" : void 0,
5411
5399
  "aria-label": isQueuedMessage(e.id) ? "Sent — will be answered after the current work finishes" : void 0,
5412
5400
  class: j(["flex gap-2 items-end", {
@@ -5442,16 +5430,16 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5442
5430
  rel: "noopener",
5443
5431
  "data-test": "messaging-attachment",
5444
5432
  "data-attachment-placement": "block",
5445
- class: j(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", Z.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
5433
+ class: j(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", J.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
5446
5434
  }, [a[17] || (a[17] = S("i", { class: "i-tabler-file size-3.5" }, null, -1)), C(" " + U(e.filename), 1)], 10, ca))], 64))), 128))], 2)) : b("", !0), messageRenderParts(e).length ? (F(), x("div", {
5447
5435
  key: 1,
5448
5436
  "data-test": "messaging-message-content",
5449
- class: j(e.sender === "user" ? Z.value ? "rounded-[14px] px-4 py-2.5 bg-theme-50 text-theme-900" : "rounded-[14px] px-4 py-2.5 bg-white/10 text-white" : Z.value ? "text-theme-800" : "text-white/95")
5437
+ class: j(e.sender === "user" ? J.value ? "rounded-[14px] px-4 py-2.5 bg-theme-50 text-theme-900" : "rounded-[14px] px-4 py-2.5 bg-white/10 text-white" : J.value ? "text-theme-800" : "text-white/95")
5450
5438
  }, [(F(!0), x(h, null, R(messageRenderParts(e), (t) => (F(), x(h, { key: t.key }, [t.kind === "text" && t.text ? (F(), x("div", la, [T(fi, {
5451
5439
  text: t.text,
5452
- inverted: e.sender === "user" || !Z.value,
5453
- streaming: e.id === ye.value,
5454
- onClick: a[4] || (a[4] = he(() => {}, ["stop"])),
5440
+ inverted: e.sender === "user" || !J.value,
5441
+ streaming: e.id === ve.value,
5442
+ onClick: a[4] || (a[4] = W(() => {}, ["stop"])),
5455
5443
  onAction: handleCardAction
5456
5444
  }, null, 8, [
5457
5445
  "text",
@@ -5478,70 +5466,85 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5478
5466
  rel: "noopener",
5479
5467
  "data-test": "messaging-attachment",
5480
5468
  "data-attachment-placement": t.placement,
5481
- class: j(["my-2 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", Z.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
5469
+ class: j(["my-2 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", J.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
5482
5470
  }, [a[18] || (a[18] = S("i", { class: "i-tabler-file size-3.5" }, null, -1)), C(" " + U(t.attachment.filename), 1)], 10, fa)) : b("", !0)], 64))), 128))], 2)) : b("", !0)], 2)], 10, aa)),
5483
- e.id === _e.value ? (F(), x(h, { key: 5 }, [m.value.length ? (F(!0), x(h, { key: 0 }, R(m.value, (e) => (F(), x(h, { key: e.id }, [e.kind === "work" ? (F(), x("div", {
5471
+ e.id === he.value ? (F(), x(h, { key: 5 }, [m.value.length ? (F(!0), x(h, { key: 0 }, R(m.value, (e) => (F(), x(h, { key: e.id }, [e.kind === "work" ? (F(), x("div", {
5484
5472
  key: 0,
5485
5473
  "data-test": "messaging-tool-activity",
5486
5474
  "data-journal-outcome": e.journal.outcome,
5487
- class: "mb-4 w-full"
5475
+ class: "chat-live-enter mb-4 w-full"
5488
5476
  }, [T($e, {
5489
5477
  model: e.journal,
5490
- "is-light": Z.value
5478
+ "is-light": J.value
5491
5479
  }, null, 8, ["model", "is-light"])], 8, pa)) : e.kind === "text" && e.content ? (F(), x("div", {
5492
5480
  key: 1,
5493
5481
  "data-test": "messaging-live-text-block",
5494
- class: j(["mb-4", Z.value ? "text-theme-800" : "text-white/95"])
5482
+ class: j(["mb-4", J.value ? "text-theme-800" : "text-white/95"])
5495
5483
  }, [T(fi, {
5496
5484
  text: e.content,
5497
- inverted: !Z.value,
5485
+ inverted: !J.value,
5498
5486
  streaming: e.id === k.value,
5499
- onClick: a[5] || (a[5] = he(() => {}, ["stop"])),
5487
+ onClick: a[5] || (a[5] = W(() => {}, ["stop"])),
5500
5488
  onAction: handleCardAction
5501
5489
  }, null, 8, [
5502
5490
  "text",
5503
5491
  "inverted",
5504
5492
  "streaming"
5505
- ])], 2)) : (F(), x("div", ma, [T(ve, { class: j(["size-3.5", Z.value ? "text-theme-500" : "text-white/70"]) }, null, 8, ["class"])]))], 64))), 128)) : oe.value ? (F(), x("div", {
5493
+ ])], 2)) : (F(), x("div", {
5494
+ key: 2,
5495
+ "data-test": "messaging-tool-activity-tail",
5496
+ "aria-label": "Assistant is still working",
5497
+ class: j(["chat-live-enter mb-4 grid h-[17px] w-5 place-items-center", J.value ? "text-theme-500" : "text-white/70"])
5498
+ }, [...a[19] || (a[19] = [S("span", {
5499
+ class: "chat-dots chat-dots--mini",
5500
+ "aria-hidden": "true"
5501
+ }, [
5502
+ S("span"),
5503
+ S("span"),
5504
+ S("span")
5505
+ ], -1)])], 2))], 64))), 128)) : oe.value ? (F(), x("div", {
5506
5506
  key: 1,
5507
5507
  "data-test": "messaging-tool-activity",
5508
5508
  "data-journal-outcome": oe.value.outcome,
5509
- class: "mb-4 w-full"
5509
+ class: "chat-live-enter mb-4 w-full"
5510
5510
  }, [T($e, {
5511
5511
  model: oe.value,
5512
- "is-light": Z.value
5513
- }, null, 8, ["model", "is-light"])], 8, ha)) : b("", !0)], 64)) : b("", !0)
5512
+ "is-light": J.value
5513
+ }, null, 8, ["model", "is-light"])], 8, ma)) : b("", !0)], 64)) : b("", !0)
5514
5514
  ], 64))), 128)),
5515
- Ee.value ? (F(), x("div", {
5515
+ ye.value ? (F(), x("div", {
5516
5516
  key: 1,
5517
5517
  "data-test": ae.value ? "messaging-working-state" : "messaging-thinking-indicator",
5518
5518
  "data-working-description": ae.value,
5519
- "data-taking-longer": we.value || void 0,
5520
5519
  role: "status",
5521
5520
  "aria-live": "polite",
5522
- class: j(["mb-4 flex items-center gap-2.5 pl-0.5 text-[13.5px] leading-snug", Z.value ? "text-theme-500" : "text-white/50"])
5523
- }, [a[19] || (a[19] = S("span", {
5524
- "data-test": "messaging-thinking-line",
5525
- class: "pageline-stroke h-[1.5px] w-6 shrink-0 rounded-full",
5521
+ class: j(["chat-live-enter relative mb-4 flex h-[17px] items-center gap-2.5 pl-0.5 text-[13.5px] leading-snug", J.value ? "text-theme-500" : "text-white/50"])
5522
+ }, [a[20] || (a[20] = S("span", {
5523
+ "data-test": "messaging-thinking-dots",
5524
+ class: "chat-dots shrink-0",
5526
5525
  "aria-hidden": "true"
5527
- }, null, -1)), S("span", _a, U(Ee.value), 1)], 10, ga)) : b("", !0),
5528
- G.value ? (F(), x("div", {
5526
+ }, [
5527
+ S("span"),
5528
+ S("span"),
5529
+ S("span")
5530
+ ], -1)), ae.value ? (F(), x("span", ga, U(ae.value), 1)) : (F(), x("span", _a, "Thinking"))], 10, ha)) : b("", !0),
5531
+ K.value ? (F(), x("div", {
5529
5532
  key: 2,
5530
5533
  "data-test": "messaging-transient-issue",
5531
- "data-issue-code": G.value.code,
5532
- class: j(["flex items-center gap-1.5 pl-2 pr-3 pb-1 mb-3 text-[12px] leading-snug", Z.value ? "text-theme-600" : "text-white/60"])
5534
+ "data-issue-code": K.value.code,
5535
+ class: j(["chat-live-enter flex items-center gap-1.5 pl-2 pr-3 pb-1 mb-3 text-[12px] leading-snug", J.value ? "text-theme-600" : "text-white/60"])
5533
5536
  }, [
5534
- a[20] || (a[20] = S("i", {
5537
+ a[21] || (a[21] = S("i", {
5535
5538
  class: "i-tabler-alert-circle size-3.5 shrink-0 text-red-500",
5536
5539
  "aria-hidden": "true"
5537
5540
  }, null, -1)),
5538
- S("span", null, [C(U(G.value.message), 1), G.value.help ? (F(), x(h, { key: 0 }, [C(U(G.value.help), 1)], 64)) : b("", !0)]),
5539
- G.value.actionUrl && G.value.actionLabel ? (F(), x("a", {
5541
+ S("span", null, [C(U(K.value.message), 1), K.value.help ? (F(), x(h, { key: 0 }, [C(U(K.value.help), 1)], 64)) : b("", !0)]),
5542
+ K.value.actionUrl && K.value.actionLabel ? (F(), x("a", {
5540
5543
  key: 0,
5541
- href: G.value.actionUrl,
5544
+ href: K.value.actionUrl,
5542
5545
  class: "shrink-0 underline underline-offset-2",
5543
- onClick: a[6] || (a[6] = he(() => {}, ["stop"]))
5544
- }, U(G.value.actionLabel), 9, ya)) : b("", !0)
5546
+ onClick: a[6] || (a[6] = W(() => {}, ["stop"]))
5547
+ }, U(K.value.actionLabel), 9, ya)) : b("", !0)
5545
5548
  ], 10, va)) : b("", !0)
5546
5549
  ], 2)]),
5547
5550
  _: 3
@@ -5552,40 +5555,40 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5552
5555
  ]),
5553
5556
  S("div", {
5554
5557
  "data-test": "messaging-composer-footer",
5555
- inert: q.value,
5556
- "aria-hidden": q.value ? "true" : void 0,
5557
- class: j(["left-0 right-0 z-30 px-3 @lg/chat:px-5 pb-[max(env(safe-area-inset-bottom),1rem)]", [
5558
+ inert: qe.value,
5559
+ "aria-hidden": qe.value ? "true" : void 0,
5560
+ class: j(["left-0 right-0 z-30 px-3 @lg/chat:px-8 pb-[max(env(safe-area-inset-bottom),1rem)]", [
5558
5561
  B.value.length === 0 || e.centered ? "relative shrink-0" : "absolute bottom-0",
5559
5562
  e.centered && B.value.length > 0 ? "pt-0 sm:pb-7" : "pt-3",
5560
- Z.value ? e.centered ? "bg-theme-0" : "bg-gradient-to-t from-theme-0/90 via-theme-0/55 to-transparent" : "bg-gradient-to-t from-black/90 via-black/60 to-transparent"
5563
+ J.value ? e.centered ? "bg-transparent" : "bg-gradient-to-t from-theme-0/90 via-theme-0/55 to-transparent" : "bg-gradient-to-t from-black/90 via-black/60 to-transparent"
5561
5564
  ]])
5562
- }, [ie(t.$slots, "composer", {}, () => [je.value ? (F(), x("div", {
5565
+ }, [ie(t.$slots, "composer", {}, () => [Te.value ? (F(), x("div", {
5563
5566
  key: 0,
5564
5567
  "data-test": "messaging-seat",
5565
- "data-seat-state": Ae.value,
5568
+ "data-seat-state": we.value,
5566
5569
  role: "status",
5567
5570
  "aria-live": "polite",
5568
- class: j(["py-3 text-center text-[14px]", Z.value ? "text-theme-500" : "text-white/70"])
5569
- }, U(je.value), 11, xa)) : (F(), x(h, { key: 1 }, [
5570
- Pe.value.length > 0 ? (F(), x("div", {
5571
+ class: j(["py-3 text-center text-[14px]", J.value ? "text-theme-500" : "text-white/70"])
5572
+ }, U(Te.value), 11, xa)) : (F(), x(h, { key: 1 }, [
5573
+ Oe.value.length > 0 ? (F(), x("div", {
5571
5574
  key: 0,
5572
- class: j(["flex items-center gap-2 px-2 pb-2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", e.centered ? "max-w-[720px] mx-auto" : ""])
5573
- }, [(F(!0), x(h, null, R(Pe.value, (e, t) => (F(), x("div", {
5575
+ class: j(["flex items-center gap-2 px-2 pb-2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", e.centered ? "max-w-[640px] @5xl/chat:max-w-[720px] mx-auto" : ""])
5576
+ }, [(F(!0), x(h, null, R(Oe.value, (e, t) => (F(), x("div", {
5574
5577
  key: t,
5575
5578
  class: "relative shrink-0 group"
5576
5579
  }, [e.type === "image" ? (F(), x("img", {
5577
5580
  key: 0,
5578
5581
  src: e.src,
5579
5582
  alt: e.filename,
5580
- class: j(["size-14 rounded-xl object-cover border", Z.value ? "border-black/10" : "border-white/20"])
5583
+ class: j(["size-14 rounded-xl object-cover border", J.value ? "border-black/10" : "border-white/20"])
5581
5584
  }, null, 10, Sa)) : (F(), x("div", {
5582
5585
  key: 1,
5583
- class: j(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", Z.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
5584
- }, [a[21] || (a[21] = S("i", { class: "i-tabler-file size-4" }, null, -1)), S("span", Ca, U(e.filename), 1)], 2)), S("button", {
5585
- class: "absolute -top-1.5 -right-1.5 size-5 flex items-center justify-center rounded-full bg-theme-800 text-white text-xs scale-0 group-hover:scale-100 transition-transform cursor-pointer",
5586
+ class: j(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", J.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
5587
+ }, [a[22] || (a[22] = S("i", { class: "i-tabler-file size-4" }, null, -1)), S("span", Ca, U(e.filename), 1)], 2)), S("button", {
5588
+ class: "absolute -top-1.5 -right-1.5 size-5 flex items-center justify-center rounded-full bg-theme-800 text-white text-xs scale-0 group-hover:scale-100 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] cursor-pointer",
5586
5589
  onClick: (e) => removeAttachment(t)
5587
- }, [...a[22] || (a[22] = [S("i", { class: "i-tabler-x size-3" }, null, -1)])], 8, wa)]))), 128)), Fe.value ? (F(), x("div", Ta, [T(ve, { class: "size-5" })])) : b("", !0)], 2)) : b("", !0),
5588
- Re.value ? (F(), x("input", {
5590
+ }, [...a[23] || (a[23] = [S("i", { class: "i-tabler-x size-3" }, null, -1)])], 8, wa)]))), 128)), ke.value ? (F(), x("div", Ta, [T(_e, { class: "size-5" })])) : b("", !0)], 2)) : b("", !0),
5591
+ Me.value ? (F(), x("input", {
5589
5592
  key: 1,
5590
5593
  ref_key: "fileInput",
5591
5594
  ref: o,
@@ -5596,22 +5599,22 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5596
5599
  }, null, 544)) : b("", !0),
5597
5600
  S("div", {
5598
5601
  "data-test": "messaging-composer",
5599
- "data-composer-action": Ve.value,
5600
- class: j(["w-full cursor-text rounded-2xl px-4 pb-2.5 pt-3 transition-colors duration-200", [e.centered ? B.value.length === 0 ? "max-w-[680px] mx-auto" : "max-w-[720px] mx-auto" : "", Z.value ? "bg-white shadow-[0_1px_2px_rgba(15,23,42,0.05),0_8px_24px_rgba(15,23,42,0.05)] ring-1 ring-theme-200 hover:ring-theme-300 focus-within:ring-theme-300" : "bg-white/10 backdrop-blur-xl ring-1 ring-white/15 hover:ring-white/25 focus-within:bg-white/15 focus-within:ring-white/25"]]),
5602
+ "data-composer-action": Pe.value,
5603
+ class: j(["w-full cursor-text rounded-2xl px-4 pb-2.5 pt-3 transition-colors duration-200", [e.centered ? "mx-auto max-w-[640px] @5xl/chat:max-w-[720px] @5xl/chat:px-5 @5xl/chat:pt-3.5 @5xl/chat:pb-3" : "", J.value ? "bg-white shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_32px_rgba(15,23,42,0.07)] ring-1 ring-theme-950/10 hover:ring-theme-950/15 focus-within:ring-theme-950/15" : "bg-white/10 backdrop-blur-xl ring-1 ring-white/15 hover:ring-white/25 focus-within:bg-white/15 focus-within:ring-white/25"]]),
5601
5604
  onClick: focusComposer
5602
- }, [Je.value ? (F(), x("div", {
5605
+ }, [Ve.value ? (F(), x("div", {
5603
5606
  key: 1,
5604
5607
  "data-test": "messaging-recording-state",
5605
- class: j(["flex min-w-0 items-center gap-2 py-1", Z.value ? "text-theme-700" : "text-white/80"])
5608
+ class: j(["flex min-w-0 items-center gap-2 py-1", J.value ? "text-theme-700" : "text-white/80"])
5606
5609
  }, [
5607
- a[23] || (a[23] = S("span", { class: "size-2.5 shrink-0 rounded-full bg-red-500" }, null, -1)),
5608
- S("span", Oa, U(Xe.value), 1),
5609
- S("span", { class: j(["min-w-0 truncate text-sm", Z.value ? "text-theme-400" : "text-white/45"]) }, U(Ze.value), 3)
5610
+ a[24] || (a[24] = S("span", { class: "size-2.5 shrink-0 rounded-full bg-red-500" }, null, -1)),
5611
+ S("span", Oa, U(Ue.value), 1),
5612
+ S("span", { class: j(["min-w-0 truncate text-sm", J.value ? "text-theme-400" : "text-white/45"]) }, U(Ge.value), 3)
5610
5613
  ], 2)) : de((F(), x("textarea", {
5611
5614
  key: 0,
5612
5615
  ref_key: "textarea",
5613
5616
  ref: i,
5614
- "onUpdate:modelValue": a[7] || (a[7] = (e) => Ne.value = e),
5617
+ "onUpdate:modelValue": a[7] || (a[7] = (e) => De.value = e),
5615
5618
  "data-test": "messaging-input",
5616
5619
  rows: "1",
5617
5620
  enterkeyhint: "send",
@@ -5620,58 +5623,58 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5620
5623
  autocapitalize: "sentences",
5621
5624
  autocorrect: "on",
5622
5625
  spellcheck: "true",
5623
- placeholder: ke.value,
5624
- disabled: Oe.value,
5626
+ placeholder: Ce.value,
5627
+ disabled: Se.value,
5625
5628
  style: {
5626
5629
  fontSize: "16px",
5627
5630
  resize: "none"
5628
5631
  },
5629
- class: j(["block w-full bg-transparent leading-snug focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", Z.value ? "text-theme-900 placeholder-theme-400" : "text-white placeholder-white/50"]),
5632
+ class: j(["block w-full bg-transparent leading-snug focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", J.value ? "text-theme-900 placeholder-theme-400" : "text-white placeholder-white/50"]),
5630
5633
  onKeydown: handleKeydown
5631
- }, null, 42, Da)), [[se, Ne.value]]), S("div", ka, [
5634
+ }, null, 42, Da)), [[se, De.value]]), S("div", ka, [
5632
5635
  S("button", {
5633
5636
  class: j(["-ml-2 flex size-8 items-center justify-center transition-opacity hover:opacity-70 pointer-coarse:size-11", [
5634
- Re.value ? "cursor-pointer" : "cursor-default",
5635
- Z.value ? "text-theme-500" : "text-white/50",
5636
- Fe.value || Le.value ? "opacity-50 pointer-events-none" : ""
5637
+ Me.value ? "cursor-pointer" : "cursor-default",
5638
+ J.value ? "text-theme-500" : "text-white/50",
5639
+ ke.value || je.value ? "opacity-50 pointer-events-none" : ""
5637
5640
  ]]),
5638
- disabled: Oe.value || Fe.value || Le.value || !Re.value,
5639
- "aria-label": Re.value ? "Attach file" : "File attachments unavailable",
5640
- title: Re.value ? "Attach file" : "File attachments unavailable",
5641
- onClick: a[8] || (a[8] = (e) => Re.value && triggerFileInput())
5642
- }, [Fe.value ? (F(), x("i", ja)) : (F(), x("i", Ma)), S("span", Na, U(Re.value ? "Attach file" : "File attachments unavailable"), 1)], 10, Aa),
5643
- a[27] || (a[27] = S("div", { class: "flex-1" }, null, -1)),
5641
+ disabled: Se.value || ke.value || je.value || !Me.value,
5642
+ "aria-label": Me.value ? "Attach file" : "File attachments unavailable",
5643
+ title: Me.value ? "Attach file" : "File attachments unavailable",
5644
+ onClick: a[8] || (a[8] = (e) => Me.value && triggerFileInput())
5645
+ }, [ke.value ? (F(), x("i", ja)) : (F(), x("i", Ma)), S("span", Na, U(Me.value ? "Attach file" : "File attachments unavailable"), 1)], 10, Aa),
5646
+ a[28] || (a[28] = S("div", { class: "flex-1" }, null, -1)),
5644
5647
  S("div", Pa, [
5645
- Je.value && !Ye.value && !q.value ? (F(), x("button", {
5648
+ Ve.value && !He.value && !qe.value ? (F(), x("button", {
5646
5649
  key: 0,
5647
5650
  "data-test": "messaging-record-discard-btn",
5648
- class: j(["flex size-8 cursor-pointer items-center justify-center transition-opacity hover:opacity-70 pointer-coarse:size-11", Z.value ? "text-theme-400" : "text-white/40"]),
5651
+ class: j(["flex size-8 cursor-pointer items-center justify-center transition-opacity hover:opacity-70 pointer-coarse:size-11", J.value ? "text-theme-400" : "text-white/40"]),
5649
5652
  "aria-label": "Discard recording",
5650
5653
  title: "Discard recording",
5651
5654
  onClick: a[9] || (a[9] = (e) => finishRecording({ cancelled: !0 }))
5652
- }, [...a[24] || (a[24] = [S("i", {
5655
+ }, [...a[25] || (a[25] = [S("i", {
5653
5656
  class: "i-tabler-x size-[18px]",
5654
5657
  "aria-hidden": "true"
5655
5658
  }, null, -1)])], 2)) : b("", !0),
5656
- (qe.value || Je.value) && !Ye.value && !q.value ? (F(), x("button", {
5659
+ (Be.value || Ve.value) && !He.value && !qe.value ? (F(), x("button", {
5657
5660
  key: 1,
5658
5661
  "data-test": "messaging-record-audio-btn",
5659
- class: j(["flex size-8 cursor-pointer items-center justify-center transition-[opacity,transform] duration-200 hover:opacity-70 pointer-coarse:size-11", Je.value ? Z.value ? "text-theme-900 scale-110" : "text-white scale-110" : Z.value ? "text-theme-500" : "text-white/60"]),
5660
- "aria-label": Qe.value,
5661
- title: Qe.value,
5662
- onPointerdown: he(onRecordPointerDown, ["prevent"]),
5663
- onPointerup: he(onRecordPointerUp, ["prevent"]),
5664
- onPointercancel: he(onRecordPointerCancel, ["prevent"]),
5662
+ class: j(["flex size-8 cursor-pointer items-center justify-center transition-[opacity,transform] duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] hover:opacity-70 pointer-coarse:size-11", Ve.value ? J.value ? "text-theme-900 scale-110" : "text-white scale-110" : J.value ? "text-theme-500" : "text-white/60"]),
5663
+ "aria-label": Ke.value,
5664
+ title: Ke.value,
5665
+ onPointerdown: W(onRecordPointerDown, ["prevent"]),
5666
+ onPointerup: W(onRecordPointerUp, ["prevent"]),
5667
+ onPointercancel: W(onRecordPointerCancel, ["prevent"]),
5665
5668
  onClick: onRecordClick,
5666
- onKeydown: a[10] || (a[10] = pe(he((e) => finishRecording({ cancelled: !0 }), ["prevent"]), ["escape"]))
5667
- }, [S("i", { class: j([Je.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), S("span", Ia, U(Qe.value), 1)], 42, Fa)) : b("", !0),
5668
- J.value ? (F(), x("button", {
5669
+ onKeydown: a[10] || (a[10] = pe(W((e) => finishRecording({ cancelled: !0 }), ["prevent"]), ["escape"]))
5670
+ }, [S("i", { class: j([Ve.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), S("span", Ia, U(Ke.value), 1)], 42, Fa)) : b("", !0),
5671
+ et.value ? (F(), x("button", {
5669
5672
  key: 2,
5670
5673
  "data-test": "messaging-voice-start-btn",
5671
- class: j(["flex size-8 items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", [Z.value ? "bg-theme-900 text-theme-0 hover:bg-theme-800" : "bg-theme-0 text-theme-950 hover:bg-theme-100", X.value ? "cursor-not-allowed opacity-40" : "cursor-pointer"]]),
5672
- disabled: X.value,
5673
- "aria-label": at.value,
5674
- title: at.value,
5674
+ class: j(["flex size-8 items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", [J.value ? "bg-theme-900 text-theme-0 hover:bg-theme-800" : "bg-theme-0 text-theme-950 hover:bg-theme-100", tt.value ? "cursor-not-allowed opacity-40" : "cursor-pointer"]]),
5675
+ disabled: tt.value,
5676
+ "aria-label": nt.value,
5677
+ title: nt.value,
5675
5678
  onClick: a[11] || (a[11] = (e) => startVoiceConversation())
5676
5679
  }, [S("span", Ra, [(F(), x(h, null, R([
5677
5680
  7,
@@ -5683,25 +5686,25 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5683
5686
  key: e,
5684
5687
  class: "w-[2px] rounded-full bg-current",
5685
5688
  style: M({ height: `${e}px` })
5686
- }, null, 4)), 64))]), a[25] || (a[25] = S("span", { class: "sr-only" }, "Start voice conversation", -1))], 10, La)) : Je.value ? b("", !0) : (F(), x(h, { key: 3 }, [Ue.value ? (F(), x("button", {
5689
+ }, null, 4)), 64))]), a[26] || (a[26] = S("span", { class: "sr-only" }, "Start voice conversation", -1))], 10, La)) : Ve.value ? b("", !0) : (F(), x(h, { key: 3 }, [Ie.value ? (F(), x("button", {
5687
5690
  key: 0,
5688
5691
  "data-test": "messaging-secondary-stop-btn",
5689
- class: j(["mr-2 flex size-8 cursor-pointer items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", Z.value ? "bg-theme-100 text-theme-700 hover:bg-theme-200" : "bg-white/10 text-white/70 hover:bg-white/15"]),
5692
+ class: j(["mr-2 flex size-8 cursor-pointer items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", J.value ? "bg-theme-100 text-theme-700 hover:bg-theme-200" : "bg-white/10 text-white/70 hover:bg-white/15"]),
5690
5693
  "aria-label": "Stop work",
5691
5694
  title: "Stop work",
5692
5695
  onClick: a[12] || (a[12] = (t) => e.chatController?.stopChatTurn())
5693
- }, [...a[26] || (a[26] = [S("i", {
5696
+ }, [...a[27] || (a[27] = [S("i", {
5694
5697
  class: "i-tabler-player-stop-filled size-3.5",
5695
5698
  "aria-hidden": "true"
5696
5699
  }, null, -1), S("span", { class: "sr-only" }, "Stop work", -1)])], 2)) : b("", !0), S("button", {
5697
5700
  "data-test": "messaging-send-btn",
5698
- "data-composer-action": Ve.value,
5699
- class: j(["flex size-8 items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", He.value ? Z.value ? "bg-theme-900 text-theme-0 hover:bg-theme-800 cursor-pointer" : "bg-theme-0 text-theme-950 hover:bg-theme-100 cursor-pointer" : Z.value ? "bg-theme-100 text-theme-400" : "bg-white/10 text-white/30"]),
5700
- disabled: !He.value,
5701
- "aria-label": Ke.value,
5702
- title: Ke.value,
5701
+ "data-composer-action": Pe.value,
5702
+ class: j(["flex size-8 items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", Fe.value ? J.value ? "bg-theme-900 text-theme-0 hover:bg-theme-800 cursor-pointer" : "bg-theme-0 text-theme-950 hover:bg-theme-100 cursor-pointer" : J.value ? "bg-theme-100 text-theme-400" : "bg-white/10 text-white/30"]),
5703
+ disabled: !Fe.value,
5704
+ "aria-label": Re.value,
5705
+ title: Re.value,
5703
5706
  onClick: a[13] || (a[13] = (e) => handleComposerAction())
5704
- }, [Ve.value === "stop" ? (F(), x("i", Ba)) : (F(), x("i", Va)), S("span", Ha, U(Ke.value), 1)], 10, za)], 64))
5707
+ }, [Pe.value === "stop" ? (F(), x("i", Ba)) : (F(), x("i", Va)), S("span", Ha, U(Re.value), 1)], 10, za)], 64))
5705
5708
  ])
5706
5709
  ])], 10, Ea),
5707
5710
  e.centered && B.value.length > 0 ? (F(), x("p", Ua, U(e.agent.displayName.value) + " is AI and can make mistakes. ", 1)) : b("", !0)
@@ -5712,7 +5715,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5712
5715
  let n = e.__vccOpts || e;
5713
5716
  for (let [e, r] of t) n[e] = r;
5714
5717
  return n;
5715
- }, "default"), Ka = /*#__PURE__*/ Ga(Wa, [["__scopeId", "data-v-cde83966"]]), qa = { class: "agent-wrap" }, Ja = {
5718
+ }, "default"), Ka = /*#__PURE__*/ Ga(Wa, [["__scopeId", "data-v-c64ddbe1"]]), qa = { class: "agent-wrap" }, Ja = {
5716
5719
  key: 0,
5717
5720
  class: "flex items-center justify-center h-full"
5718
5721
  }, Ya = {
@@ -5834,6 +5837,6 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5834
5837
  }
5835
5838
  });
5836
5839
  //#endregion
5837
- export { fi as a, Me as c, handleImageError as d, parseButtonTemplate as f, ve as g, r as h, Ui as i, Ae as l, G as m, Ka as n, Be as o, AgentChatController as p, Ga as r, Pe as s, Xa as t, getAgentAvatarUrl as u };
5840
+ export { fi as a, je as c, handleImageError as d, parseButtonTemplate as f, _e as g, r as h, Ui as i, ke as l, K as m, Ka as n, ze as o, AgentChatController as p, Ga as r, Ne as s, Xa as t, getAgentAvatarUrl as u };
5838
5841
 
5839
5842
  //# sourceMappingURL=AgentWrap.js.map