@eka-care/medassist-widget 0.1.107-dev.0 → 0.1.107-dev.1

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.
@@ -1,4 +1,4 @@
1
- var On, K, Ni, bt, Ho, ki, Ii, yr, Zn, kn, Ri, oo, Hr, jr, Ai, er = {}, tr = [], Cl = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Pn = Array.isArray;
1
+ var On, K, Ni, bt, Ho, ki, Ii, yr, Zn, kn, Ai, oo, Hr, jr, Ri, er = {}, tr = [], Cl = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Pn = Array.isArray;
2
2
  function st(e, t) {
3
3
  for (var n in t) e[n] = t[n];
4
4
  return e;
@@ -97,7 +97,7 @@ function Vn(e, t, n, r, o) {
97
97
  if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || jo(e.style, t, "");
98
98
  if (n) for (t in n) r && n[t] == r[t] || jo(e.style, t, n[t]);
99
99
  }
100
- else if (t[0] == "o" && t[1] == "n") s = t != (t = t.replace(Ri, "$1")), l = t.toLowerCase(), t = l in e || t == "onFocusOut" || t == "onFocusIn" ? l.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + s] = n, n ? r ? n[kn] = r[kn] : (n[kn] = oo, e.addEventListener(t, s ? jr : Hr, s)) : e.removeEventListener(t, s ? jr : Hr, s);
100
+ else if (t[0] == "o" && t[1] == "n") s = t != (t = t.replace(Ai, "$1")), l = t.toLowerCase(), t = l in e || t == "onFocusOut" || t == "onFocusIn" ? l.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + s] = n, n ? r ? n[kn] = r[kn] : (n[kn] = oo, e.addEventListener(t, s ? jr : Hr, s)) : e.removeEventListener(t, s ? jr : Hr, s);
101
101
  else {
102
102
  if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
103
103
  else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
@@ -221,14 +221,14 @@ function Ui(e, t, n) {
221
221
  function Il(e, t, n) {
222
222
  return this.constructor(e, n);
223
223
  }
224
- function An(e, t, n) {
224
+ function Rn(e, t, n) {
225
225
  var r, o, s, l;
226
226
  t == document && (t = document.documentElement), K.__ && K.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, s = [], l = [], io(t, e = (!r && n || t).__k = $e(_e, null, [e]), o || er, er, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? On.call(t.childNodes) : null, s, !r && n ? n : o ? o.__e : t.firstChild, r, l), Di(s, e, l);
227
227
  }
228
228
  function Vi(e, t) {
229
- An(e, t, Vi);
229
+ Rn(e, t, Vi);
230
230
  }
231
- function Rl(e, t, n) {
231
+ function Al(e, t, n) {
232
232
  var r, o, s, l, i = st({}, e.props);
233
233
  for (s in e.type && e.type.defaultProps && (l = e.type.defaultProps), t) s == "key" ? r = t[s] : s == "ref" ? o = t[s] : i[s] = t[s] === void 0 && l != null ? l[s] : t[s];
234
234
  return arguments.length > 2 && (i.children = arguments.length > 3 ? On.call(arguments, 2) : n), In(e.type, i, r || e.key, o || e.ref, null);
@@ -252,7 +252,7 @@ function dt(e) {
252
252
  };
253
253
  }), n.children;
254
254
  }
255
- return t.__c = "__cC" + Ai++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
255
+ return t.__c = "__cC" + Ri++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
256
256
  return n.children(r);
257
257
  }).contextType = t, t;
258
258
  }
@@ -270,13 +270,13 @@ On = tr.slice, K = { __e: function(e, t, n, r) {
270
270
  this.__v && (this.__e = !0, e && this.__h.push(e), Gr(this));
271
271
  }, Ye.prototype.render = _e, bt = [], ki = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ii = function(e, t) {
272
272
  return e.__v.__b - t.__v.__b;
273
- }, nr.__r = 0, yr = Math.random().toString(8), Zn = "__d" + yr, kn = "__a" + yr, Ri = /(PointerCapture)$|Capture$/i, oo = 0, Hr = Go(!1), jr = Go(!0), Ai = 0;
274
- var Al = 0;
273
+ }, nr.__r = 0, yr = Math.random().toString(8), Zn = "__d" + yr, kn = "__a" + yr, Ai = /(PointerCapture)$|Capture$/i, oo = 0, Hr = Go(!1), jr = Go(!0), Ri = 0;
274
+ var Rl = 0;
275
275
  function a(e, t, n, r, o, s) {
276
276
  t || (t = {});
277
277
  var l, i, c = t;
278
278
  if ("ref" in c) for (i in c = {}, t) i == "ref" ? l = t[i] : c[i] = t[i];
279
- var d = { type: e, props: c, key: n, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Al, __i: -1, __u: 0, __source: o, __self: s };
279
+ var d = { type: e, props: c, key: n, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Rl, __i: -1, __u: 0, __source: o, __self: s };
280
280
  if (typeof e == "function" && (l = e.defaultProps)) for (i in l) c[i] === void 0 && (c[i] = l[i]);
281
281
  return K.vnode && K.vnode(d), d;
282
282
  }
@@ -323,7 +323,7 @@ function Yt(e, t, n) {
323
323
  }
324
324
  return r.__N || r.__;
325
325
  }
326
- function z(e, t) {
326
+ function $(e, t) {
327
327
  var n = Ot(ut++, 3);
328
328
  !Ee.__s && ho(n.__H, t) && (n.__ = e, n.u = t, fe.__H.__h.push(n));
329
329
  }
@@ -467,7 +467,7 @@ function fo(e, t) {
467
467
  var n = t(), r = F({ t: { __: n, u: t } }), o = r[0].t, s = r[1];
468
468
  return ht(function() {
469
469
  o.__ = n, o.u = t, Sr(o) && s({ t: o });
470
- }, [e, n, t]), z(function() {
470
+ }, [e, n, t]), $(function() {
471
471
  return Sr(o) && s({ t: o }), e(function() {
472
472
  Sr(o) && s({ t: o });
473
473
  });
@@ -547,7 +547,7 @@ function ji(e, t, n) {
547
547
  return ji(r, t, n);
548
548
  }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
549
549
  }
550
- function Ae() {
550
+ function Re() {
551
551
  this.__u = 0, this.o = null, this.__b = null;
552
552
  }
553
553
  function Gi(e) {
@@ -573,7 +573,7 @@ function zt() {
573
573
  K.unmount = function(e) {
574
574
  var t = e.__c;
575
575
  t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), ns && ns(e);
576
- }, (Ae.prototype = new Ye()).__c = function(e, t) {
576
+ }, (Re.prototype = new Ye()).__c = function(e, t) {
577
577
  var n = t.__c, r = this;
578
578
  r.o == null && (r.o = []), r.o.push(n);
579
579
  var o = Gi(r.__v), s = !1, l = function() {
@@ -593,9 +593,9 @@ K.unmount = function(e) {
593
593
  }
594
594
  };
595
595
  r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(l, l);
596
- }, Ae.prototype.componentWillUnmount = function() {
596
+ }, Re.prototype.componentWillUnmount = function() {
597
597
  this.o = [];
598
- }, Ae.prototype.render = function(e, t) {
598
+ }, Re.prototype.render = function(e, t) {
599
599
  if (this.__b) {
600
600
  if (this.__v.__k) {
601
601
  var n = document.createElement("div"), r = this.__v.__k[0].__c;
@@ -621,7 +621,7 @@ function Fl(e) {
621
621
  function Ul(e) {
622
622
  var t = this, n = e.h;
623
623
  if (t.componentWillUnmount = function() {
624
- An(null, t.v), t.v = null, t.h = null;
624
+ Rn(null, t.v), t.v = null, t.h = null;
625
625
  }, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
626
626
  for (var r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
627
627
  t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
@@ -632,7 +632,7 @@ function Ul(e) {
632
632
  this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
633
633
  } };
634
634
  }
635
- An($e(Fl, { context: t.context }, e.__v), t.v);
635
+ Rn($e(Fl, { context: t.context }, e.__v), t.v);
636
636
  }
637
637
  function Wi(e, t) {
638
638
  var n = $e(Ul, { __v: e, h: t });
@@ -662,7 +662,7 @@ var qi = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 601
662
662
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
663
663
  };
664
664
  function bo(e, t, n) {
665
- return t.__k == null && (t.textContent = ""), An(e, t), typeof n == "function" && n(), e ? e.__c : null;
665
+ return t.__k == null && (t.textContent = ""), Rn(e, t), typeof n == "function" && n(), e ? e.__c : null;
666
666
  }
667
667
  function Yi(e, t, n) {
668
668
  return Vi(e, t), typeof n == "function" && n(), e ? e.__c : null;
@@ -715,7 +715,7 @@ K.diffed = function(e) {
715
715
  };
716
716
  var Ki = { ReactCurrentDispatcher: { current: { readContext: function(e) {
717
717
  return yo.__n[e.__c].props.value;
718
- }, useCallback: de, useContext: ft, useDebugValue: co, useDeferredValue: po, useEffect: z, useId: uo, useImperativeHandle: lo, useInsertionEffect: _o, useLayoutEffect: ht, useMemo: ue, useReducer: Yt, useRef: Y, useState: F, useSyncExternalStore: fo, useTransition: go } } }, Gl = "18.3.1";
718
+ }, useCallback: de, useContext: ft, useDebugValue: co, useDeferredValue: po, useEffect: $, useId: uo, useImperativeHandle: lo, useInsertionEffect: _o, useLayoutEffect: ht, useMemo: ue, useReducer: Yt, useRef: Y, useState: F, useSyncExternalStore: fo, useTransition: go } } }, Gl = "18.3.1";
719
719
  function Zi(e) {
720
720
  return $e.bind(null, e);
721
721
  }
@@ -729,10 +729,10 @@ function Ji(e) {
729
729
  return !!e && typeof e.displayName == "string" && e.displayName.indexOf("Memo(") == 0;
730
730
  }
731
731
  function vt(e) {
732
- return je(e) ? Rl.apply(null, arguments) : e;
732
+ return je(e) ? Al.apply(null, arguments) : e;
733
733
  }
734
734
  function vo(e) {
735
- return !!e.__k && (An(null, e), !0);
735
+ return !!e.__k && (Rn(null, e), !0);
736
736
  }
737
737
  function Qi(e) {
738
738
  return e && (e.base || e.nodeType === 1 && e) || null;
@@ -746,8 +746,8 @@ var ea = function(e, t) {
746
746
  };
747
747
  var r = e(t);
748
748
  return K.debounceRendering = n, r;
749
- }, na = je, Nn = { useState: F, useId: uo, useReducer: Yt, useEffect: z, useLayoutEffect: ht, useInsertionEffect: _o, useTransition: go, useDeferredValue: po, useSyncExternalStore: fo, startTransition: mo, useRef: Y, useImperativeHandle: lo, useMemo: ue, useCallback: de, useContext: ft, useDebugValue: co, version: "18.3.1", Children: He, render: bo, hydrate: Yi, unmountComponentAtNode: vo, createPortal: Wi, createElement: $e, createContext: dt, createFactory: Zi, cloneElement: vt, createRef: Mi, Fragment: _e, isValidElement: je, isElement: na, isFragment: Xi, isMemo: Ji, findDOMNode: Qi, Component: Ye, PureComponent: rr, memo: Eo, forwardRef: X, flushSync: ta, unstable_batchedUpdates: ea, StrictMode: _e, Suspense: Ae, SuspenseList: zt, lazy: ze, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ki };
750
- const ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Children: He, Component: Ye, Fragment: _e, PureComponent: rr, StrictMode: _e, Suspense: Ae, SuspenseList: zt, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ki, cloneElement: vt, createContext: dt, createElement: $e, createFactory: Zi, createPortal: Wi, createRef: Mi, default: Nn, findDOMNode: Qi, flushSync: ta, forwardRef: X, hydrate: Yi, isElement: na, isFragment: Xi, isMemo: Ji, isValidElement: je, lazy: ze, memo: Eo, render: bo, startTransition: mo, unmountComponentAtNode: vo, unstable_batchedUpdates: ea, useCallback: de, useContext: ft, useDebugValue: co, useDeferredValue: po, useEffect: z, useErrorBoundary: Ml, useId: uo, useImperativeHandle: lo, useInsertionEffect: _o, useLayoutEffect: ht, useMemo: ue, useReducer: Yt, useRef: Y, useState: F, useSyncExternalStore: fo, useTransition: go, version: Gl }, Symbol.toStringTag, { value: "Module" }));
749
+ }, na = je, Nn = { useState: F, useId: uo, useReducer: Yt, useEffect: $, useLayoutEffect: ht, useInsertionEffect: _o, useTransition: go, useDeferredValue: po, useSyncExternalStore: fo, startTransition: mo, useRef: Y, useImperativeHandle: lo, useMemo: ue, useCallback: de, useContext: ft, useDebugValue: co, version: "18.3.1", Children: He, render: bo, hydrate: Yi, unmountComponentAtNode: vo, createPortal: Wi, createElement: $e, createContext: dt, createFactory: Zi, cloneElement: vt, createRef: Mi, Fragment: _e, isValidElement: je, isElement: na, isFragment: Xi, isMemo: Ji, findDOMNode: Qi, Component: Ye, PureComponent: rr, memo: Eo, forwardRef: X, flushSync: ta, unstable_batchedUpdates: ea, StrictMode: _e, Suspense: Re, SuspenseList: zt, lazy: ze, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ki };
750
+ const ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Children: He, Component: Ye, Fragment: _e, PureComponent: rr, StrictMode: _e, Suspense: Re, SuspenseList: zt, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ki, cloneElement: vt, createContext: dt, createElement: $e, createFactory: Zi, createPortal: Wi, createRef: Mi, default: Nn, findDOMNode: Qi, flushSync: ta, forwardRef: X, hydrate: Yi, isElement: na, isFragment: Xi, isMemo: Ji, isValidElement: je, lazy: ze, memo: Eo, render: bo, startTransition: mo, unmountComponentAtNode: vo, unstable_batchedUpdates: ea, useCallback: de, useContext: ft, useDebugValue: co, useDeferredValue: po, useEffect: $, useErrorBoundary: Ml, useId: uo, useImperativeHandle: lo, useInsertionEffect: _o, useLayoutEffect: ht, useMemo: ue, useReducer: Yt, useRef: Y, useState: F, useSyncExternalStore: fo, useTransition: go, version: Gl }, Symbol.toStringTag, { value: "Module" }));
751
751
  function Wl(e) {
752
752
  return {
753
753
  // eslint-disable-next-line
@@ -875,7 +875,7 @@ function tc(e) {
875
875
  MOUNT: "mounted"
876
876
  }
877
877
  });
878
- return z(() => {
878
+ return $(() => {
879
879
  const d = $n(r.current);
880
880
  s.current = i === "mounted" ? d : "none";
881
881
  }, [i]), jt(() => {
@@ -967,7 +967,7 @@ function oc(...e) {
967
967
  }
968
968
  function yt(e) {
969
969
  const t = Y(e);
970
- return z(() => {
970
+ return $(() => {
971
971
  t.current = e;
972
972
  }), ue(() => (...n) => t.current?.(...n), []);
973
973
  }
@@ -1084,7 +1084,7 @@ aa.displayName = ia;
1084
1084
  var it = "ScrollAreaScrollbar", Co = X(
1085
1085
  (e, t) => {
1086
1086
  const { forceMount: n, ...r } = e, o = Ke(it, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: l } = o, i = e.orientation === "horizontal";
1087
- return z(() => (i ? s(!0) : l(!0), () => {
1087
+ return $(() => (i ? s(!0) : l(!0), () => {
1088
1088
  i ? s(!1) : l(!1);
1089
1089
  }), [i, s, l]), o.type === "hover" ? /* @__PURE__ */ a(dc, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ a(uc, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ a(la, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ a(To, { ...r, ref: t }) : null;
1090
1090
  }
@@ -1092,7 +1092,7 @@ var it = "ScrollAreaScrollbar", Co = X(
1092
1092
  Co.displayName = it;
1093
1093
  var dc = X((e, t) => {
1094
1094
  const { forceMount: n, ...r } = e, o = Ke(it, e.__scopeScrollArea), [s, l] = F(!1);
1095
- return z(() => {
1095
+ return $(() => {
1096
1096
  const i = o.scrollArea;
1097
1097
  let c = 0;
1098
1098
  if (i) {
@@ -1132,12 +1132,12 @@ var dc = X((e, t) => {
1132
1132
  POINTER_ENTER: "interacting"
1133
1133
  }
1134
1134
  });
1135
- return z(() => {
1135
+ return $(() => {
1136
1136
  if (i === "idle") {
1137
1137
  const d = window.setTimeout(() => c("HIDE"), o.scrollHideDelay);
1138
1138
  return () => window.clearTimeout(d);
1139
1139
  }
1140
- }, [i, o.scrollHideDelay, c]), z(() => {
1140
+ }, [i, o.scrollHideDelay, c]), $(() => {
1141
1141
  const d = o.viewport, m = s ? "scrollLeft" : "scrollTop";
1142
1142
  if (d) {
1143
1143
  let u = d[m];
@@ -1228,7 +1228,7 @@ var dc = X((e, t) => {
1228
1228
  ) : null;
1229
1229
  }), hc = X((e, t) => {
1230
1230
  const { sizes: n, onSizesChange: r, ...o } = e, s = Ke(it, e.__scopeScrollArea), [l, i] = F(), c = Y(null), d = Pt(t, c, s.onScrollbarXChange);
1231
- return z(() => {
1231
+ return $(() => {
1232
1232
  c.current && i(getComputedStyle(c.current));
1233
1233
  }, [c]), /* @__PURE__ */ a(
1234
1234
  da,
@@ -1267,7 +1267,7 @@ var dc = X((e, t) => {
1267
1267
  );
1268
1268
  }), fc = X((e, t) => {
1269
1269
  const { sizes: n, onSizesChange: r, ...o } = e, s = Ke(it, e.__scopeScrollArea), [l, i] = F(), c = Y(null), d = Pt(t, c, s.onScrollbarYChange);
1270
- return z(() => {
1270
+ return $(() => {
1271
1271
  c.current && i(getComputedStyle(c.current));
1272
1272
  }, [c]), /* @__PURE__ */ a(
1273
1273
  da,
@@ -1325,13 +1325,13 @@ var dc = X((e, t) => {
1325
1325
  d({ x: N, y: M });
1326
1326
  }
1327
1327
  }
1328
- return z(() => {
1328
+ return $(() => {
1329
1329
  const v = (N) => {
1330
1330
  const M = N.target;
1331
1331
  _?.contains(M) && T(N, C);
1332
1332
  };
1333
1333
  return document.addEventListener("wheel", v, { passive: !1 }), () => document.removeEventListener("wheel", v, { passive: !1 });
1334
- }, [E, _, C, T]), z(S, [r, S]), Gt(_, x), Gt(h.content, x), /* @__PURE__ */ a(
1334
+ }, [E, _, C, T]), $(S, [r, S]), Gt(_, x), Gt(h.content, x), /* @__PURE__ */ a(
1335
1335
  mc,
1336
1336
  {
1337
1337
  scope: n,
@@ -1372,7 +1372,7 @@ var dc = X((e, t) => {
1372
1372
  ), d = Y(void 0), m = ur(() => {
1373
1373
  d.current && (d.current(), d.current = void 0);
1374
1374
  }, 100);
1375
- return z(() => {
1375
+ return $(() => {
1376
1376
  const u = s.viewport;
1377
1377
  if (u) {
1378
1378
  const p = () => {
@@ -1475,7 +1475,7 @@ var Ec = (e, t = () => {
1475
1475
  };
1476
1476
  function ur(e, t) {
1477
1477
  const n = yt(e), r = Y(0);
1478
- return z(() => () => window.clearTimeout(r.current), []), de(() => {
1478
+ return $(() => () => window.clearTimeout(r.current), []), de(() => {
1479
1479
  window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
1480
1480
  }, [n, t]);
1481
1481
  }
@@ -3470,10 +3470,10 @@ function Ca() {
3470
3470
  }
3471
3471
  return En.ErrorUtils = t, En;
3472
3472
  }
3473
- var bn = {}, yn = {}, Rs;
3473
+ var bn = {}, yn = {}, As;
3474
3474
  function Nc() {
3475
- if (Rs) return yn;
3476
- Rs = 1, Object.defineProperty(yn, "__esModule", { value: !0 }), yn.VoiceAudioAnalyser = void 0;
3475
+ if (As) return yn;
3476
+ As = 1, Object.defineProperty(yn, "__esModule", { value: !0 }), yn.VoiceAudioAnalyser = void 0;
3477
3477
  const e = 256;
3478
3478
  let t = class {
3479
3479
  audioCtx = null;
@@ -3499,9 +3499,9 @@ function Nc() {
3499
3499
  };
3500
3500
  return yn.VoiceAudioAnalyser = t, yn;
3501
3501
  }
3502
- var Nt = {}, As;
3502
+ var Nt = {}, Rs;
3503
3503
  function Ta() {
3504
- return As || (As = 1, Object.defineProperty(Nt, "__esModule", { value: !0 }), Nt.VOICE_AGENT_EVENTS = Nt.VOICE_AGENT_STATE = void 0, Nt.VOICE_AGENT_STATE = {
3504
+ return Rs || (Rs = 1, Object.defineProperty(Nt, "__esModule", { value: !0 }), Nt.VOICE_AGENT_EVENTS = Nt.VOICE_AGENT_STATE = void 0, Nt.VOICE_AGENT_STATE = {
3505
3505
  IDLE: "idle",
3506
3506
  CONNECTING: "connecting",
3507
3507
  CONNECTED: "connected",
@@ -4230,11 +4230,11 @@ function Ic() {
4230
4230
  return rn.SynapseSDK = u, rn;
4231
4231
  }
4232
4232
  var Nr = {}, Ps;
4233
- function Rc() {
4233
+ function Ac() {
4234
4234
  return Ps || (Ps = 1, Object.defineProperty(Nr, "__esModule", { value: !0 })), Nr;
4235
4235
  }
4236
4236
  var vn = {}, Ls;
4237
- function Ac() {
4237
+ function Rc() {
4238
4238
  return Ls || (Ls = 1, Object.defineProperty(vn, "__esModule", { value: !0 }), vn.USER_FEEDBACK = void 0, vn.USER_FEEDBACK = {
4239
4239
  LIKE: "LIKE",
4240
4240
  DISLIKE: "DISLIKE",
@@ -4363,11 +4363,11 @@ function Vc() {
4363
4363
  var c = /* @__PURE__ */ Sa();
4364
4364
  Object.defineProperty(e, "ResourceManager", { enumerable: !0, get: function() {
4365
4365
  return c.ResourceManager;
4366
- } }), n(/* @__PURE__ */ Rc(), e);
4366
+ } }), n(/* @__PURE__ */ Ac(), e);
4367
4367
  var d = /* @__PURE__ */ va();
4368
4368
  Object.defineProperty(e, "Session", { enumerable: !0, get: function() {
4369
4369
  return d.Session;
4370
- } }), n(/* @__PURE__ */ Ac(), e);
4370
+ } }), n(/* @__PURE__ */ Rc(), e);
4371
4371
  var m = /* @__PURE__ */ Mc();
4372
4372
  Object.defineProperty(e, "ToolCall", { enumerable: !0, get: function() {
4373
4373
  return m.ToolCall;
@@ -4498,10 +4498,10 @@ const $c = (e, t) => {
4498
4498
  const n = ka();
4499
4499
  for (const r in e) {
4500
4500
  const o = e[r];
4501
- Ro(o, n, r, t);
4501
+ Ao(o, n, r, t);
4502
4502
  }
4503
4503
  return n;
4504
- }, Ro = (e, t, n, r) => {
4504
+ }, Ao = (e, t, n, r) => {
4505
4505
  const o = e.length;
4506
4506
  for (let s = 0; s < o; s++) {
4507
4507
  const l = e[s];
@@ -4518,11 +4518,11 @@ const $c = (e, t) => {
4518
4518
  }
4519
4519
  Zc(e, t, n, r);
4520
4520
  }, Yc = (e, t, n) => {
4521
- const r = e === "" ? t : Ra(t, e);
4521
+ const r = e === "" ? t : Aa(t, e);
4522
4522
  r.classGroupId = n;
4523
4523
  }, Kc = (e, t, n, r) => {
4524
4524
  if (Xc(e)) {
4525
- Ro(e(r), t, n, r);
4525
+ Ao(e(r), t, n, r);
4526
4526
  return;
4527
4527
  }
4528
4528
  t.validators === null && (t.validators = []), t.validators.push(zc(n, e));
@@ -4530,9 +4530,9 @@ const $c = (e, t) => {
4530
4530
  const o = Object.entries(e), s = o.length;
4531
4531
  for (let l = 0; l < s; l++) {
4532
4532
  const [i, c] = o[l];
4533
- Ro(c, Ra(t, i), n, r);
4533
+ Ao(c, Aa(t, i), n, r);
4534
4534
  }
4535
- }, Ra = (e, t) => {
4535
+ }, Aa = (e, t) => {
4536
4536
  let n = e;
4537
4537
  const r = t.split(ar), o = r.length;
4538
4538
  for (let s = 0; s < o; s++) {
@@ -4683,14 +4683,14 @@ const $c = (e, t) => {
4683
4683
  }, sd = (...e) => {
4684
4684
  let t = 0, n, r, o = "";
4685
4685
  for (; t < e.length; )
4686
- (n = e[t++]) && (r = Aa(n)) && (o && (o += " "), o += r);
4686
+ (n = e[t++]) && (r = Ra(n)) && (o && (o += " "), o += r);
4687
4687
  return o;
4688
- }, Aa = (e) => {
4688
+ }, Ra = (e) => {
4689
4689
  if (typeof e == "string")
4690
4690
  return e;
4691
4691
  let t, n = "";
4692
4692
  for (let r = 0; r < e.length; r++)
4693
- e[r] && (t = Aa(e[r])) && (n && (n += " "), n += t);
4693
+ e[r] && (t = Ra(e[r])) && (n && (n += " "), n += t);
4694
4694
  return n;
4695
4695
  }, id = (e, ...t) => {
4696
4696
  let n, r, o, s;
@@ -4708,12 +4708,12 @@ const $c = (e, t) => {
4708
4708
  }, ad = [], we = (e) => {
4709
4709
  const t = (n) => n[e] || ad;
4710
4710
  return t.isThemeGetter = !0, t;
4711
- }, Ma = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Oa = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ld = /^\d+\/\d+$/, cd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, dd = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ud = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, hd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, fd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ut = (e) => ld.test(e), te = (e) => !!e && !Number.isNaN(Number(e)), pt = (e) => !!e && Number.isInteger(Number(e)), Rr = (e) => e.endsWith("%") && te(e.slice(0, -1)), at = (e) => cd.test(e), md = () => !0, pd = (e) => (
4711
+ }, Ma = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Oa = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ld = /^\d+\/\d+$/, cd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, dd = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ud = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, hd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, fd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ut = (e) => ld.test(e), te = (e) => !!e && !Number.isNaN(Number(e)), pt = (e) => !!e && Number.isInteger(Number(e)), Ar = (e) => e.endsWith("%") && te(e.slice(0, -1)), at = (e) => cd.test(e), md = () => !0, pd = (e) => (
4712
4712
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
4713
4713
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
4714
4714
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
4715
4715
  dd.test(e) && !ud.test(e)
4716
- ), Pa = () => !1, gd = (e) => hd.test(e), _d = (e) => fd.test(e), Ed = (e) => !U(e) && !V(e), bd = (e) => Kt(e, Fa, Pa), U = (e) => Ma.test(e), It = (e) => Kt(e, Ua, pd), Ar = (e) => Kt(e, Cd, te), qs = (e) => Kt(e, La, Pa), yd = (e) => Kt(e, Da, _d), zn = (e) => Kt(e, Va, gd), V = (e) => Oa.test(e), Tn = (e) => Zt(e, Ua), vd = (e) => Zt(e, Td), Ys = (e) => Zt(e, La), Sd = (e) => Zt(e, Fa), wd = (e) => Zt(e, Da), Bn = (e) => Zt(e, Va, !0), Kt = (e, t, n) => {
4716
+ ), Pa = () => !1, gd = (e) => hd.test(e), _d = (e) => fd.test(e), Ed = (e) => !U(e) && !V(e), bd = (e) => Kt(e, Fa, Pa), U = (e) => Ma.test(e), It = (e) => Kt(e, Ua, pd), Rr = (e) => Kt(e, Cd, te), qs = (e) => Kt(e, La, Pa), yd = (e) => Kt(e, Da, _d), zn = (e) => Kt(e, Va, gd), V = (e) => Oa.test(e), Tn = (e) => Zt(e, Ua), vd = (e) => Zt(e, Td), Ys = (e) => Zt(e, La), Sd = (e) => Zt(e, Fa), wd = (e) => Zt(e, Da), Bn = (e) => Zt(e, Va, !0), Kt = (e, t, n) => {
4717
4717
  const r = Ma.exec(e);
4718
4718
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
4719
4719
  }, Zt = (e, t, n = !1) => {
@@ -4740,13 +4740,13 @@ const $c = (e, t) => {
4740
4740
  "left-bottom"
4741
4741
  ], T = () => [...C(), V, U], S = () => ["auto", "hidden", "clip", "visible", "scroll"], x = () => ["auto", "contain", "none"], w = () => [V, U, c], v = () => [Ut, "full", "auto", ...w()], N = () => [pt, "none", "subgrid", V, U], M = () => ["auto", {
4742
4742
  span: ["full", pt, V, U]
4743
- }, pt, V, U], k = () => [pt, "auto", V, U], D = () => ["auto", "min", "max", "fr", V, U], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], $ = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...w()], Z = () => [Ut, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], A = () => [e, V, U], me = () => [...C(), Ys, qs, {
4743
+ }, pt, V, U], k = () => [pt, "auto", V, U], D = () => ["auto", "min", "max", "fr", V, U], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], z = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...w()], Z = () => [Ut, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], R = () => [e, V, U], me = () => [...C(), Ys, qs, {
4744
4744
  position: [V, U]
4745
4745
  }], he = () => ["no-repeat", {
4746
4746
  repeat: ["", "x", "y", "space", "round"]
4747
4747
  }], Q = () => ["auto", "cover", "contain", Sd, bd, {
4748
4748
  size: [V, U]
4749
- }], J = () => [Rr, Tn, It], ee = () => [
4749
+ }], J = () => [Ar, Tn, It], ee = () => [
4750
4750
  // Deprecated since Tailwind CSS v4.0.0
4751
4751
  "",
4752
4752
  "none",
@@ -4754,7 +4754,7 @@ const $c = (e, t) => {
4754
4754
  d,
4755
4755
  V,
4756
4756
  U
4757
- ], se = () => ["", te, Tn, It], Ce = () => ["solid", "dashed", "dotted", "double"], P = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ne = () => [te, Rr, Ys, qs], Se = () => [
4757
+ ], se = () => ["", te, Tn, It], Ce = () => ["solid", "dashed", "dotted", "double"], P = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ne = () => [te, Ar, Ys, qs], Se = () => [
4758
4758
  // Deprecated since Tailwind CSS v4.0.0
4759
4759
  "",
4760
4760
  "none",
@@ -5171,14 +5171,14 @@ const $c = (e, t) => {
5171
5171
  * @see https://tailwindcss.com/docs/justify-items
5172
5172
  */
5173
5173
  "justify-items": [{
5174
- "justify-items": [...$(), "normal"]
5174
+ "justify-items": [...z(), "normal"]
5175
5175
  }],
5176
5176
  /**
5177
5177
  * Justify Self
5178
5178
  * @see https://tailwindcss.com/docs/justify-self
5179
5179
  */
5180
5180
  "justify-self": [{
5181
- "justify-self": ["auto", ...$()]
5181
+ "justify-self": ["auto", ...z()]
5182
5182
  }],
5183
5183
  /**
5184
5184
  * Align Content
@@ -5192,7 +5192,7 @@ const $c = (e, t) => {
5192
5192
  * @see https://tailwindcss.com/docs/align-items
5193
5193
  */
5194
5194
  "align-items": [{
5195
- items: [...$(), {
5195
+ items: [...z(), {
5196
5196
  baseline: ["", "last"]
5197
5197
  }]
5198
5198
  }],
@@ -5201,7 +5201,7 @@ const $c = (e, t) => {
5201
5201
  * @see https://tailwindcss.com/docs/align-self
5202
5202
  */
5203
5203
  "align-self": [{
5204
- self: ["auto", ...$(), {
5204
+ self: ["auto", ...z(), {
5205
5205
  baseline: ["", "last"]
5206
5206
  }]
5207
5207
  }],
@@ -5217,14 +5217,14 @@ const $c = (e, t) => {
5217
5217
  * @see https://tailwindcss.com/docs/place-items
5218
5218
  */
5219
5219
  "place-items": [{
5220
- "place-items": [...$(), "baseline"]
5220
+ "place-items": [...z(), "baseline"]
5221
5221
  }],
5222
5222
  /**
5223
5223
  * Place Self
5224
5224
  * @see https://tailwindcss.com/docs/place-self
5225
5225
  */
5226
5226
  "place-self": [{
5227
- "place-self": ["auto", ...$()]
5227
+ "place-self": ["auto", ...z()]
5228
5228
  }],
5229
5229
  // Spacing
5230
5230
  /**
@@ -5471,14 +5471,14 @@ const $c = (e, t) => {
5471
5471
  * @see https://tailwindcss.com/docs/font-weight
5472
5472
  */
5473
5473
  "font-weight": [{
5474
- font: [r, V, Ar]
5474
+ font: [r, V, Rr]
5475
5475
  }],
5476
5476
  /**
5477
5477
  * Font Stretch
5478
5478
  * @see https://tailwindcss.com/docs/font-stretch
5479
5479
  */
5480
5480
  "font-stretch": [{
5481
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Rr, U]
5481
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ar, U]
5482
5482
  }],
5483
5483
  /**
5484
5484
  * Font Family
@@ -5529,7 +5529,7 @@ const $c = (e, t) => {
5529
5529
  * @see https://tailwindcss.com/docs/line-clamp
5530
5530
  */
5531
5531
  "line-clamp": [{
5532
- "line-clamp": [te, "none", V, Ar]
5532
+ "line-clamp": [te, "none", V, Rr]
5533
5533
  }],
5534
5534
  /**
5535
5535
  * Line Height
@@ -5576,14 +5576,14 @@ const $c = (e, t) => {
5576
5576
  * @see https://v3.tailwindcss.com/docs/placeholder-color
5577
5577
  */
5578
5578
  "placeholder-color": [{
5579
- placeholder: A()
5579
+ placeholder: R()
5580
5580
  }],
5581
5581
  /**
5582
5582
  * Text Color
5583
5583
  * @see https://tailwindcss.com/docs/text-color
5584
5584
  */
5585
5585
  "text-color": [{
5586
- text: A()
5586
+ text: R()
5587
5587
  }],
5588
5588
  /**
5589
5589
  * Text Decoration
@@ -5609,7 +5609,7 @@ const $c = (e, t) => {
5609
5609
  * @see https://tailwindcss.com/docs/text-decoration-color
5610
5610
  */
5611
5611
  "text-decoration-color": [{
5612
- decoration: A()
5612
+ decoration: R()
5613
5613
  }],
5614
5614
  /**
5615
5615
  * Text Underline Offset
@@ -5747,7 +5747,7 @@ const $c = (e, t) => {
5747
5747
  * @see https://tailwindcss.com/docs/background-color
5748
5748
  */
5749
5749
  "bg-color": [{
5750
- bg: A()
5750
+ bg: R()
5751
5751
  }],
5752
5752
  /**
5753
5753
  * Gradient Color Stops From Position
@@ -5775,21 +5775,21 @@ const $c = (e, t) => {
5775
5775
  * @see https://tailwindcss.com/docs/gradient-color-stops
5776
5776
  */
5777
5777
  "gradient-from": [{
5778
- from: A()
5778
+ from: R()
5779
5779
  }],
5780
5780
  /**
5781
5781
  * Gradient Color Stops Via
5782
5782
  * @see https://tailwindcss.com/docs/gradient-color-stops
5783
5783
  */
5784
5784
  "gradient-via": [{
5785
- via: A()
5785
+ via: R()
5786
5786
  }],
5787
5787
  /**
5788
5788
  * Gradient Color Stops To
5789
5789
  * @see https://tailwindcss.com/docs/gradient-color-stops
5790
5790
  */
5791
5791
  "gradient-to": [{
5792
- to: A()
5792
+ to: R()
5793
5793
  }],
5794
5794
  // ---------------
5795
5795
  // --- Borders ---
@@ -6005,70 +6005,70 @@ const $c = (e, t) => {
6005
6005
  * @see https://tailwindcss.com/docs/border-color
6006
6006
  */
6007
6007
  "border-color": [{
6008
- border: A()
6008
+ border: R()
6009
6009
  }],
6010
6010
  /**
6011
6011
  * Border Color X
6012
6012
  * @see https://tailwindcss.com/docs/border-color
6013
6013
  */
6014
6014
  "border-color-x": [{
6015
- "border-x": A()
6015
+ "border-x": R()
6016
6016
  }],
6017
6017
  /**
6018
6018
  * Border Color Y
6019
6019
  * @see https://tailwindcss.com/docs/border-color
6020
6020
  */
6021
6021
  "border-color-y": [{
6022
- "border-y": A()
6022
+ "border-y": R()
6023
6023
  }],
6024
6024
  /**
6025
6025
  * Border Color S
6026
6026
  * @see https://tailwindcss.com/docs/border-color
6027
6027
  */
6028
6028
  "border-color-s": [{
6029
- "border-s": A()
6029
+ "border-s": R()
6030
6030
  }],
6031
6031
  /**
6032
6032
  * Border Color E
6033
6033
  * @see https://tailwindcss.com/docs/border-color
6034
6034
  */
6035
6035
  "border-color-e": [{
6036
- "border-e": A()
6036
+ "border-e": R()
6037
6037
  }],
6038
6038
  /**
6039
6039
  * Border Color Top
6040
6040
  * @see https://tailwindcss.com/docs/border-color
6041
6041
  */
6042
6042
  "border-color-t": [{
6043
- "border-t": A()
6043
+ "border-t": R()
6044
6044
  }],
6045
6045
  /**
6046
6046
  * Border Color Right
6047
6047
  * @see https://tailwindcss.com/docs/border-color
6048
6048
  */
6049
6049
  "border-color-r": [{
6050
- "border-r": A()
6050
+ "border-r": R()
6051
6051
  }],
6052
6052
  /**
6053
6053
  * Border Color Bottom
6054
6054
  * @see https://tailwindcss.com/docs/border-color
6055
6055
  */
6056
6056
  "border-color-b": [{
6057
- "border-b": A()
6057
+ "border-b": R()
6058
6058
  }],
6059
6059
  /**
6060
6060
  * Border Color Left
6061
6061
  * @see https://tailwindcss.com/docs/border-color
6062
6062
  */
6063
6063
  "border-color-l": [{
6064
- "border-l": A()
6064
+ "border-l": R()
6065
6065
  }],
6066
6066
  /**
6067
6067
  * Divide Color
6068
6068
  * @see https://tailwindcss.com/docs/divide-color
6069
6069
  */
6070
6070
  "divide-color": [{
6071
- divide: A()
6071
+ divide: R()
6072
6072
  }],
6073
6073
  /**
6074
6074
  * Outline Style
@@ -6096,7 +6096,7 @@ const $c = (e, t) => {
6096
6096
  * @see https://tailwindcss.com/docs/outline-color
6097
6097
  */
6098
6098
  "outline-color": [{
6099
- outline: A()
6099
+ outline: R()
6100
6100
  }],
6101
6101
  // ---------------
6102
6102
  // --- Effects ---
@@ -6120,7 +6120,7 @@ const $c = (e, t) => {
6120
6120
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
6121
6121
  */
6122
6122
  "shadow-color": [{
6123
- shadow: A()
6123
+ shadow: R()
6124
6124
  }],
6125
6125
  /**
6126
6126
  * Inset Box Shadow
@@ -6134,7 +6134,7 @@ const $c = (e, t) => {
6134
6134
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
6135
6135
  */
6136
6136
  "inset-shadow-color": [{
6137
- "inset-shadow": A()
6137
+ "inset-shadow": R()
6138
6138
  }],
6139
6139
  /**
6140
6140
  * Ring Width
@@ -6155,7 +6155,7 @@ const $c = (e, t) => {
6155
6155
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
6156
6156
  */
6157
6157
  "ring-color": [{
6158
- ring: A()
6158
+ ring: R()
6159
6159
  }],
6160
6160
  /**
6161
6161
  * Ring Offset Width
@@ -6173,7 +6173,7 @@ const $c = (e, t) => {
6173
6173
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
6174
6174
  */
6175
6175
  "ring-offset-color": [{
6176
- "ring-offset": A()
6176
+ "ring-offset": R()
6177
6177
  }],
6178
6178
  /**
6179
6179
  * Inset Ring Width
@@ -6187,7 +6187,7 @@ const $c = (e, t) => {
6187
6187
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
6188
6188
  */
6189
6189
  "inset-ring-color": [{
6190
- "inset-ring": A()
6190
+ "inset-ring": R()
6191
6191
  }],
6192
6192
  /**
6193
6193
  * Text Shadow
@@ -6201,7 +6201,7 @@ const $c = (e, t) => {
6201
6201
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
6202
6202
  */
6203
6203
  "text-shadow-color": [{
6204
- "text-shadow": A()
6204
+ "text-shadow": R()
6205
6205
  }],
6206
6206
  /**
6207
6207
  * Opacity
@@ -6252,10 +6252,10 @@ const $c = (e, t) => {
6252
6252
  "mask-linear-to": ne()
6253
6253
  }],
6254
6254
  "mask-image-linear-from-color": [{
6255
- "mask-linear-from": A()
6255
+ "mask-linear-from": R()
6256
6256
  }],
6257
6257
  "mask-image-linear-to-color": [{
6258
- "mask-linear-to": A()
6258
+ "mask-linear-to": R()
6259
6259
  }],
6260
6260
  "mask-image-t-from-pos": [{
6261
6261
  "mask-t-from": ne()
@@ -6264,10 +6264,10 @@ const $c = (e, t) => {
6264
6264
  "mask-t-to": ne()
6265
6265
  }],
6266
6266
  "mask-image-t-from-color": [{
6267
- "mask-t-from": A()
6267
+ "mask-t-from": R()
6268
6268
  }],
6269
6269
  "mask-image-t-to-color": [{
6270
- "mask-t-to": A()
6270
+ "mask-t-to": R()
6271
6271
  }],
6272
6272
  "mask-image-r-from-pos": [{
6273
6273
  "mask-r-from": ne()
@@ -6276,10 +6276,10 @@ const $c = (e, t) => {
6276
6276
  "mask-r-to": ne()
6277
6277
  }],
6278
6278
  "mask-image-r-from-color": [{
6279
- "mask-r-from": A()
6279
+ "mask-r-from": R()
6280
6280
  }],
6281
6281
  "mask-image-r-to-color": [{
6282
- "mask-r-to": A()
6282
+ "mask-r-to": R()
6283
6283
  }],
6284
6284
  "mask-image-b-from-pos": [{
6285
6285
  "mask-b-from": ne()
@@ -6288,10 +6288,10 @@ const $c = (e, t) => {
6288
6288
  "mask-b-to": ne()
6289
6289
  }],
6290
6290
  "mask-image-b-from-color": [{
6291
- "mask-b-from": A()
6291
+ "mask-b-from": R()
6292
6292
  }],
6293
6293
  "mask-image-b-to-color": [{
6294
- "mask-b-to": A()
6294
+ "mask-b-to": R()
6295
6295
  }],
6296
6296
  "mask-image-l-from-pos": [{
6297
6297
  "mask-l-from": ne()
@@ -6300,10 +6300,10 @@ const $c = (e, t) => {
6300
6300
  "mask-l-to": ne()
6301
6301
  }],
6302
6302
  "mask-image-l-from-color": [{
6303
- "mask-l-from": A()
6303
+ "mask-l-from": R()
6304
6304
  }],
6305
6305
  "mask-image-l-to-color": [{
6306
- "mask-l-to": A()
6306
+ "mask-l-to": R()
6307
6307
  }],
6308
6308
  "mask-image-x-from-pos": [{
6309
6309
  "mask-x-from": ne()
@@ -6312,10 +6312,10 @@ const $c = (e, t) => {
6312
6312
  "mask-x-to": ne()
6313
6313
  }],
6314
6314
  "mask-image-x-from-color": [{
6315
- "mask-x-from": A()
6315
+ "mask-x-from": R()
6316
6316
  }],
6317
6317
  "mask-image-x-to-color": [{
6318
- "mask-x-to": A()
6318
+ "mask-x-to": R()
6319
6319
  }],
6320
6320
  "mask-image-y-from-pos": [{
6321
6321
  "mask-y-from": ne()
@@ -6324,10 +6324,10 @@ const $c = (e, t) => {
6324
6324
  "mask-y-to": ne()
6325
6325
  }],
6326
6326
  "mask-image-y-from-color": [{
6327
- "mask-y-from": A()
6327
+ "mask-y-from": R()
6328
6328
  }],
6329
6329
  "mask-image-y-to-color": [{
6330
- "mask-y-to": A()
6330
+ "mask-y-to": R()
6331
6331
  }],
6332
6332
  "mask-image-radial": [{
6333
6333
  "mask-radial": [V, U]
@@ -6339,10 +6339,10 @@ const $c = (e, t) => {
6339
6339
  "mask-radial-to": ne()
6340
6340
  }],
6341
6341
  "mask-image-radial-from-color": [{
6342
- "mask-radial-from": A()
6342
+ "mask-radial-from": R()
6343
6343
  }],
6344
6344
  "mask-image-radial-to-color": [{
6345
- "mask-radial-to": A()
6345
+ "mask-radial-to": R()
6346
6346
  }],
6347
6347
  "mask-image-radial-shape": [{
6348
6348
  "mask-radial": ["circle", "ellipse"]
@@ -6366,10 +6366,10 @@ const $c = (e, t) => {
6366
6366
  "mask-conic-to": ne()
6367
6367
  }],
6368
6368
  "mask-image-conic-from-color": [{
6369
- "mask-conic-from": A()
6369
+ "mask-conic-from": R()
6370
6370
  }],
6371
6371
  "mask-image-conic-to-color": [{
6372
- "mask-conic-to": A()
6372
+ "mask-conic-to": R()
6373
6373
  }],
6374
6374
  /**
6375
6375
  * Mask Mode
@@ -6476,7 +6476,7 @@ const $c = (e, t) => {
6476
6476
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
6477
6477
  */
6478
6478
  "drop-shadow-color": [{
6479
- "drop-shadow": A()
6479
+ "drop-shadow": R()
6480
6480
  }],
6481
6481
  /**
6482
6482
  * Grayscale
@@ -6847,7 +6847,7 @@ const $c = (e, t) => {
6847
6847
  * @see https://tailwindcss.com/docs/accent-color
6848
6848
  */
6849
6849
  accent: [{
6850
- accent: A()
6850
+ accent: R()
6851
6851
  }],
6852
6852
  /**
6853
6853
  * Appearance
@@ -6861,7 +6861,7 @@ const $c = (e, t) => {
6861
6861
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
6862
6862
  */
6863
6863
  "caret-color": [{
6864
- caret: A()
6864
+ caret: R()
6865
6865
  }],
6866
6866
  /**
6867
6867
  * Color Scheme
@@ -7107,21 +7107,21 @@ const $c = (e, t) => {
7107
7107
  * @see https://tailwindcss.com/docs/fill
7108
7108
  */
7109
7109
  fill: [{
7110
- fill: ["none", ...A()]
7110
+ fill: ["none", ...R()]
7111
7111
  }],
7112
7112
  /**
7113
7113
  * Stroke Width
7114
7114
  * @see https://tailwindcss.com/docs/stroke-width
7115
7115
  */
7116
7116
  "stroke-w": [{
7117
- stroke: [te, Tn, It, Ar]
7117
+ stroke: [te, Tn, It, Rr]
7118
7118
  }],
7119
7119
  /**
7120
7120
  * Stroke
7121
7121
  * @see https://tailwindcss.com/docs/stroke
7122
7122
  */
7123
7123
  stroke: [{
7124
- stroke: ["none", ...A()]
7124
+ stroke: ["none", ...R()]
7125
7125
  }],
7126
7126
  // ---------------------
7127
7127
  // --- Accessibility ---
@@ -7242,12 +7242,12 @@ const za = X(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__P
7242
7242
  }
7243
7243
  ));
7244
7244
  za.displayName = Co.displayName;
7245
- var Rd = Symbol.for("react.lazy"), lr = ra[" use ".trim().toString()];
7246
- function Ad(e) {
7245
+ var Ad = Symbol.for("react.lazy"), lr = ra[" use ".trim().toString()];
7246
+ function Rd(e) {
7247
7247
  return typeof e == "object" && e !== null && "then" in e;
7248
7248
  }
7249
7249
  function Ba(e) {
7250
- return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Rd && "_payload" in e && Ad(e._payload);
7250
+ return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Ad && "_payload" in e && Rd(e._payload);
7251
7251
  }
7252
7252
  // @__NO_SIDE_EFFECTS__
7253
7253
  function Ha(e) {
@@ -7425,7 +7425,7 @@ const Fe = (e, t) => {
7425
7425
  );
7426
7426
  return n.displayName = Xs(e), n;
7427
7427
  };
7428
- const Gd = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Ao = Fe("chevron-down", Gd);
7428
+ const Gd = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Ro = Fe("chevron-down", Gd);
7429
7429
  const Wd = [
7430
7430
  [
7431
7431
  "path",
@@ -7866,7 +7866,7 @@ const bu = (e) => {
7866
7866
  return e.setSynapse;
7867
7867
  }, Cu = () => {
7868
7868
  const [e, t] = F(O.VOICE_AGENT_STATE.IDLE), [n, r] = F(!1), o = Su(), { setError: s } = oe();
7869
- z(() => {
7869
+ $(() => {
7870
7870
  if (!o) return;
7871
7871
  const m = o.voice, u = (h) => {
7872
7872
  t(h);
@@ -7942,17 +7942,17 @@ const Iu = X(({ className: e, ...t }, n) => /* @__PURE__ */ a(
7942
7942
  }
7943
7943
  ));
7944
7944
  Iu.displayName = "CardFooter";
7945
- const Mr = 5, Ru = 10 * 1024 * 1024, Gn = { width: 384, height: 600 }, Wn = 20, Au = 150;
7945
+ const Mr = 5, Au = 10 * 1024 * 1024, Gn = { width: 384, height: 600 }, Wn = 20, Ru = 150;
7946
7946
  function Mu({ defaultPosition: e, enabled: t = !0, onDragStart: n, onDragEnd: r } = {}) {
7947
7947
  const o = de(() => typeof window > "u" ? { x: 0, y: 0 } : {
7948
7948
  x: window.innerWidth - Gn.width - Wn,
7949
7949
  y: window.innerHeight - Gn.height - Wn
7950
7950
  }, []), [s, l] = F(() => e ?? o()), [i, c] = F(!1), d = Y({ x: 0, y: 0 }), m = Y(null), u = Y(!1);
7951
- z(() => {
7951
+ $(() => {
7952
7952
  t || (u.current = !1);
7953
7953
  }, [t]), ht(() => {
7954
7954
  !t || u.current || typeof window > "u" || (l(e || o()), u.current = !0);
7955
- }, [t, e, o]), z(() => {
7955
+ }, [t, e, o]), $(() => {
7956
7956
  if (!t || typeof window > "u") return;
7957
7957
  let b = null;
7958
7958
  const y = () => {
@@ -7967,7 +7967,7 @@ function Mu({ defaultPosition: e, enabled: t = !0, onDragStart: n, onDragEnd: r
7967
7967
  return T === g.x && S === g.y ? g : { x: T, y: S };
7968
7968
  });
7969
7969
  }, f = () => {
7970
- b !== null && clearTimeout(b), b = setTimeout(y, Au);
7970
+ b !== null && clearTimeout(b), b = setTimeout(y, Ru);
7971
7971
  };
7972
7972
  return window.addEventListener("resize", f), () => {
7973
7973
  window.removeEventListener("resize", f), b !== null && clearTimeout(b);
@@ -8006,14 +8006,14 @@ function Mu({ defaultPosition: e, enabled: t = !0, onDragStart: n, onDragEnd: r
8006
8006
  ), _ = de(() => {
8007
8007
  !t || !i || (c(!1), r?.());
8008
8008
  }, [i, r]);
8009
- return z(() => {
8009
+ return $(() => {
8010
8010
  if (!t) return;
8011
8011
  const b = m.current;
8012
8012
  if (b)
8013
8013
  return b.addEventListener("mousedown", p), () => {
8014
8014
  b.removeEventListener("mousedown", p);
8015
8015
  };
8016
- }, [t, p]), z(() => {
8016
+ }, [t, p]), $(() => {
8017
8017
  if (i)
8018
8018
  return document.addEventListener("mousemove", h), document.addEventListener("mouseup", _), document.body.style.cursor = "grabbing", document.body.style.userSelect = "none", () => {
8019
8019
  document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", _), document.body.style.cursor = "", document.body.style.userSelect = "";
@@ -8427,7 +8427,7 @@ Ja.displayName = Xa;
8427
8427
  var Qa = "AvatarFallback", el = X(
8428
8428
  (e, t) => {
8429
8429
  const { __scopeAvatar: n, delayMs: r, ...o } = e, s = Ka(Qa, n), [l, i] = F(r === void 0);
8430
- return z(() => {
8430
+ return $(() => {
8431
8431
  if (r !== void 0) {
8432
8432
  const c = window.setTimeout(() => i(!0), r);
8433
8433
  return () => window.clearTimeout(c);
@@ -8505,7 +8505,7 @@ function ah() {
8505
8505
  }
8506
8506
  function cl() {
8507
8507
  const [e, t] = F(ah);
8508
- return z(() => {
8508
+ return $(() => {
8509
8509
  if (typeof window > "u" || !window.matchMedia) return;
8510
8510
  const n = window.matchMedia(al), r = ll.test(navigator?.userAgent ?? ""), o = () => t(n.matches || r);
8511
8511
  return o(), n.addEventListener("change", o), () => n.removeEventListener("change", o);
@@ -8528,7 +8528,7 @@ function lh({
8528
8528
  C.current = null, E(!1);
8529
8529
  }, 6e3), l());
8530
8530
  }, [g, l]);
8531
- z(() => {
8531
+ $(() => {
8532
8532
  f === O.ConnectionStatus.CONNECTED && (E(!1), C.current && clearTimeout(C.current));
8533
8533
  }, [f]);
8534
8534
  const w = (() => {
@@ -8653,12 +8653,12 @@ function ai({
8653
8653
  className: r = ""
8654
8654
  }) {
8655
8655
  const [o, s] = F(!1), [l, i] = F(""), c = e?.type?.startsWith("image/") ?? !1, d = e?.type === "application/pdf";
8656
- z(() => {
8656
+ $(() => {
8657
8657
  if (c) {
8658
8658
  const p = URL.createObjectURL(e);
8659
8659
  return i(p), () => URL.revokeObjectURL(p);
8660
8660
  }
8661
- }, [e, c]), z(() => {
8661
+ }, [e, c]), $(() => {
8662
8662
  s(!1);
8663
8663
  }, [e]);
8664
8664
  const m = () => c ? "text-green-600" : "text-text-secondary", u = (p) => {
@@ -9195,7 +9195,7 @@ function hh({
9195
9195
  children: [
9196
9196
  /* @__PURE__ */ a(ch, {}),
9197
9197
  /* @__PURE__ */ a("span", { className: "text-sm font-medium text-foreground", children: dh }),
9198
- /* @__PURE__ */ a(Ao, { className: "h-4 w-4 text-muted-foreground", "aria-hidden": !0 })
9198
+ /* @__PURE__ */ a(Ro, { className: "h-4 w-4 text-muted-foreground", "aria-hidden": !0 })
9199
9199
  ]
9200
9200
  }
9201
9201
  ),
@@ -9265,11 +9265,11 @@ function gh({
9265
9265
  () => new RegExp(n?.pattern ?? `^\\d{${_}}$`),
9266
9266
  [n?.pattern, _]
9267
9267
  );
9268
- z(() => {
9268
+ $(() => {
9269
9269
  p.current = r;
9270
- }, [r]), z(() => {
9270
+ }, [r]), $(() => {
9271
9271
  h.current = o;
9272
- }, [o]), z(() => {
9272
+ }, [o]), $(() => {
9273
9273
  if (!s) return;
9274
9274
  const k = s.toLowerCase();
9275
9275
  k.includes("otp") && (k.includes("invalid") || k.includes("incorrect") || k.includes("wrong")) && (u.current = !1, m(!1));
@@ -9286,8 +9286,8 @@ function gh({
9286
9286
  }, []), C = ue(() => Array.from({ length: _ }, (k, D) => D), [_]), T = de(
9287
9287
  (k) => {
9288
9288
  for (let H = 0; H < _; H++) {
9289
- const $ = l.current[H];
9290
- $ && ($.value = k[H] ?? "");
9289
+ const z = l.current[H];
9290
+ z && (z.value = k[H] ?? "");
9291
9291
  }
9292
9292
  f();
9293
9293
  const D = Math.min(k.length, _ - 1);
@@ -9301,8 +9301,8 @@ function gh({
9301
9301
  T(H.slice(0, _));
9302
9302
  return;
9303
9303
  }
9304
- const $ = H.slice(-1);
9305
- D.target.value = $, f(), $ && g(k);
9304
+ const z = H.slice(-1);
9305
+ D.target.value = z, f(), z && g(k);
9306
9306
  },
9307
9307
  [f, T, g, _]
9308
9308
  ), x = de(
@@ -9341,9 +9341,9 @@ function gh({
9341
9341
  u.current = !1, m(!1), l.current[0]?.focus(), h.current?.(), c(mh);
9342
9342
  }
9343
9343
  }, [e, i]);
9344
- z(() => {
9344
+ $(() => {
9345
9345
  e || l.current[0]?.focus();
9346
- }, [e]), z(() => {
9346
+ }, [e]), $(() => {
9347
9347
  if (d) {
9348
9348
  i > 0 && c(0);
9349
9349
  return;
@@ -9590,7 +9590,7 @@ function wh({
9590
9590
  activeElicitationState: C,
9591
9591
  isFullScreen: T
9592
9592
  }) {
9593
- const S = Y(null), x = Y(null), w = e.trim().length > 0 || i, v = _ === void 0 || _.includes(O.SYNAPSE_CONVERSATION.AUDIO), N = _ === void 0 || _.includes(O.SYNAPSE_CONVERSATION.VOICE), M = w || !v, k = w, D = _ === void 0 || _.includes(O.SYNAPSE_CONVERSATION.FILE), H = (d || p !== pe.IDLE) && !l, $ = L(
9593
+ const S = Y(null), x = Y(null), w = e.trim().length > 0 || i, v = _ === void 0 || _.includes(O.SYNAPSE_CONVERSATION.AUDIO), N = _ === void 0 || _.includes(O.SYNAPSE_CONVERSATION.VOICE), M = w || !v, k = w, D = _ === void 0 || _.includes(O.SYNAPSE_CONVERSATION.FILE), H = (d || p !== pe.IDLE) && !l, z = L(
9594
9594
  "rounded-full transition-all duration-200 ",
9595
9595
  l ? "bg-gradient-to-r from-rose-400 via-primary to-indigo-500 text-white ring-2 ring-white/60 animate-pulse shadow-[0_0_20px_rgba(139,92,246,0.45)]" : H ? "text-primary/50 cursor-not-allowed shadow-none" : "text-foreground hover:bg-primary hover:text-primary-foreground"
9596
9596
  ), W = (Q) => {
@@ -9598,7 +9598,7 @@ function wh({
9598
9598
  J.length > 0 && r(J);
9599
9599
  }, Z = () => {
9600
9600
  d || (S.current && (S.current.value = ""), S.current?.click());
9601
- }, A = (Q) => {
9601
+ }, R = (Q) => {
9602
9602
  Q.key === "Enter" && !Q.shiftKey && k && !d && (Q.preventDefault(), n());
9603
9603
  }, me = (Q) => {
9604
9604
  Q.style.height = "auto", Q.style.overflow = "hidden";
@@ -9607,9 +9607,9 @@ function wh({
9607
9607
  }, he = (Q) => {
9608
9608
  me(Q.currentTarget);
9609
9609
  };
9610
- return z(() => {
9610
+ return $(() => {
9611
9611
  x.current && me(x.current);
9612
- }, [e]), z(() => {
9612
+ }, [e]), $(() => {
9613
9613
  !d && !u && x.current?.focus();
9614
9614
  }, [d]), b && y ? /* @__PURE__ */ a("div", { className: "px-4 py-2 flex justify-unset", children: /* @__PURE__ */ a(
9615
9615
  "button",
@@ -9697,7 +9697,7 @@ function wh({
9697
9697
  fontWeight: 400,
9698
9698
  padding: 0
9699
9699
  },
9700
- onKeyPress: A,
9700
+ onKeyPress: R,
9701
9701
  title: "Enter your message",
9702
9702
  "aria-label": "Enter your message",
9703
9703
  className: L(
@@ -9764,7 +9764,7 @@ function wh({
9764
9764
  disabled: H,
9765
9765
  className: L(
9766
9766
  "h-10 w-10 shrink-0 p-2",
9767
- $
9767
+ z
9768
9768
  ),
9769
9769
  title: "Start recording",
9770
9770
  "aria-label": "Start recording",
@@ -9862,7 +9862,7 @@ function wh({
9862
9862
  fontSize: "16px",
9863
9863
  lineHeight: "1.4"
9864
9864
  },
9865
- onKeyPress: A,
9865
+ onKeyPress: R,
9866
9866
  title: "Enter your message",
9867
9867
  "aria-label": "Enter your message",
9868
9868
  className: L(
@@ -9931,7 +9931,7 @@ function wh({
9931
9931
  size: "icon",
9932
9932
  onClick: s,
9933
9933
  disabled: H,
9934
- className: L("h-10 w-10 shrink-0", $),
9934
+ className: L("h-10 w-10 shrink-0", z),
9935
9935
  title: "Start recording",
9936
9936
  "aria-label": "Start recording",
9937
9937
  children: /* @__PURE__ */ a(Js, { className: "w-5 h-5", strokeWidth: 1.5 })
@@ -10010,7 +10010,7 @@ function Th() {
10010
10010
  const e = oe((r) => r.toastMessage), t = oe((r) => r.setToastMessage), n = de(() => {
10011
10011
  t(null);
10012
10012
  }, [t]);
10013
- return z(() => {
10013
+ return $(() => {
10014
10014
  if (!e) return;
10015
10015
  const r = window.setTimeout(n, 3e3);
10016
10016
  return () => window.clearTimeout(r);
@@ -10049,7 +10049,7 @@ function xh({ isOpen: e, onClose: t, botName: n }) {
10049
10049
  )
10050
10050
  ] }) });
10051
10051
  }
10052
- const Nh = ze(() => import("./medassist-widget-mood-angry-BQqxy8gg.js").then((e) => ({ default: e.MoodAngry }))), kh = ze(() => import("./medassist-widget-mood-bad-BBDRkdRc.js").then((e) => ({ default: e.MoodBad }))), Ih = ze(() => import("./medassist-widget-mood-neutral-CbcKAQbC.js").then((e) => ({ default: e.MoodNeutral }))), Rh = ze(() => import("./medassist-widget-mood-poor-t4w5iE4B.js").then((e) => ({ default: e.MoodPoor }))), Ah = ze(() => import("./medassist-widget-mood-happy-oLG7NUhq.js").then((e) => ({ default: e.MoodHappy }))), Mh = [
10052
+ const Nh = ze(() => import("./medassist-widget-mood-angry-BQqxy8gg.js").then((e) => ({ default: e.MoodAngry }))), kh = ze(() => import("./medassist-widget-mood-bad-BBDRkdRc.js").then((e) => ({ default: e.MoodBad }))), Ih = ze(() => import("./medassist-widget-mood-neutral-CbcKAQbC.js").then((e) => ({ default: e.MoodNeutral }))), Ah = ze(() => import("./medassist-widget-mood-poor-t4w5iE4B.js").then((e) => ({ default: e.MoodPoor }))), Rh = ze(() => import("./medassist-widget-mood-happy-oLG7NUhq.js").then((e) => ({ default: e.MoodHappy }))), Mh = [
10053
10053
  { label: "Took longer than expected", value: "took_longer" },
10054
10054
  { label: "Asking too many questions", value: "too_many_questions" },
10055
10055
  { label: "Irrelevant response", value: "irrelevant_response" },
@@ -10058,8 +10058,8 @@ const Nh = ze(() => import("./medassist-widget-mood-angry-BQqxy8gg.js").then((e)
10058
10058
  { Icon: Nh, label: "Bad", score: 1 },
10059
10059
  { Icon: kh, label: "Poor", score: 2 },
10060
10060
  { Icon: Ih, label: "Okay", score: 3 },
10061
- { Icon: Rh, label: "Good", score: 4 },
10062
- { Icon: Ah, label: "Great!", score: 5 }
10061
+ { Icon: Ah, label: "Good", score: 4 },
10062
+ { Icon: Rh, label: "Great!", score: 5 }
10063
10063
  ];
10064
10064
  function Ph(e, t) {
10065
10065
  return e <= 2 ? t.form?.detractors ?? [] : e === 3 ? t.form?.passives ?? [] : t.form?.promoters ?? [];
@@ -10110,7 +10110,7 @@ function Lh({
10110
10110
  {
10111
10111
  className: `rounded-xl p-1 transition-all ${T ? "border-2 border-primary bg-primary/15" : "border-2 border-transparent"} ${S ? "opacity-50" : ""}`,
10112
10112
  style: T ? { filter: "brightness(1.25)" } : void 0,
10113
- children: /* @__PURE__ */ a(Ae, { fallback: /* @__PURE__ */ a("div", { className: "w-10 h-10 rounded-xl bg-surface-secondary" }), children: /* @__PURE__ */ a(g, {}) })
10113
+ children: /* @__PURE__ */ a(Re, { fallback: /* @__PURE__ */ a("div", { className: "w-10 h-10 rounded-xl bg-surface-secondary" }), children: /* @__PURE__ */ a(g, {}) })
10114
10114
  }
10115
10115
  ),
10116
10116
  /* @__PURE__ */ a(
@@ -10206,13 +10206,13 @@ function ul({
10206
10206
  hideWatermark: C = !1,
10207
10207
  feedbackModal: T
10208
10208
  }) {
10209
- const [S, x] = F(!1), [w, v] = F(!1), [N, M] = F(!1), k = Y(null), D = _, H = D === "full", $ = Y(null), [W, Z] = F("");
10210
- z(() => {
10211
- $.current !== null && $.current !== D && Z(
10209
+ const [S, x] = F(!1), [w, v] = F(!1), [N, M] = F(!1), k = Y(null), D = _, H = D === "full", z = Y(null), [W, Z] = F("");
10210
+ $(() => {
10211
+ z.current !== null && z.current !== D && Z(
10212
10212
  D === "full" ? "Switched to fullscreen mode" : D === "widget" ? "Switched to widget mode" : "Switched to mobile layout"
10213
- ), $.current = D;
10213
+ ), z.current = D;
10214
10214
  }, [D]);
10215
- const A = ue(() => Fu(E), [E]), { setIsMobile: me } = oe((P) => P), he = !!y, Q = async (P) => {
10215
+ const R = ue(() => Fu(E), [E]), { setIsMobile: me } = oe((P) => P), he = !!y, Q = async (P) => {
10216
10216
  if (!(!p?.onSend || w)) {
10217
10217
  v(!0);
10218
10218
  try {
@@ -10222,11 +10222,11 @@ function ul({
10222
10222
  }
10223
10223
  }
10224
10224
  };
10225
- z(() => {
10225
+ $(() => {
10226
10226
  if (!k.current) return;
10227
- const P = D === "full" ? { ...A, headerTinted: !1 } : A;
10228
- ri(k.current, P), D === "full" && !A.backgroundImage ? (k.current.style.setProperty("--background", "0 0% 100%"), k.current.style.setProperty("--widget-bg-overlay", "transparent")) : (k.current.style.removeProperty("--background"), k.current.style.removeProperty("--widget-bg-overlay"), ri(k.current, A));
10229
- }, [A, D]), z(() => {
10227
+ const P = D === "full" ? { ...R, headerTinted: !1 } : R;
10228
+ ri(k.current, P), D === "full" && !R.backgroundImage ? (k.current.style.setProperty("--background", "0 0% 100%"), k.current.style.setProperty("--widget-bg-overlay", "transparent")) : (k.current.style.removeProperty("--background"), k.current.style.removeProperty("--widget-bg-overlay"), ri(k.current, R));
10229
+ }, [R, D]), $(() => {
10230
10230
  const P = () => {
10231
10231
  const ne = window?.innerWidth ?? 0, Se = navigator?.userAgent?.toLowerCase() ?? "", ce = ne < 768 || /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(
10232
10232
  Se
@@ -10273,7 +10273,7 @@ function ul({
10273
10273
  window.removeEventListener("resize", Te), P && (P.style.width = "", P.style.height = "", P.style.maxHeight = "", P.style.transition = "");
10274
10274
  };
10275
10275
  }
10276
- }, [e, S]), z(() => {
10276
+ }, [e, S]), $(() => {
10277
10277
  if (e) {
10278
10278
  const P = k.current, ne = window.scrollY, Se = document.body.style.cssText, ce = document.documentElement.style.overflow, ye = window.innerWidth - document.documentElement.clientWidth;
10279
10279
  document.body.style.position = "fixed", document.body.style.top = `-${ne}px`, document.body.style.left = "0", document.body.style.right = "0", document.body.style.width = "100%", document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden", ye > 0 && !S && (document.body.style.paddingRight = `${ye}px`);
@@ -10304,7 +10304,7 @@ function ul({
10304
10304
  const { position: J, elementRef: ee } = Mu({
10305
10305
  enabled: e && !S && !H
10306
10306
  });
10307
- z(() => {
10307
+ $(() => {
10308
10308
  k.current && (ee.current = k.current);
10309
10309
  }, [ee]);
10310
10310
  const se = L(
@@ -10326,7 +10326,7 @@ function ul({
10326
10326
  "shadow-2xl",
10327
10327
  "flex",
10328
10328
  "overflow-hidden",
10329
- A.backgroundImage ? "theme-with-background" : "",
10329
+ R.backgroundImage ? "theme-with-background" : "",
10330
10330
  S ? "rounded-none border-0 flex-col" : H ? "rounded-none border-0 flex-row" : "rounded-3xl flex-col"
10331
10331
  );
10332
10332
  return /* @__PURE__ */ a(
@@ -10381,7 +10381,7 @@ function ul({
10381
10381
  width: "100vw",
10382
10382
  maxHeight: "100svh",
10383
10383
  height: "100svh",
10384
- backgroundColor: A.backgroundImage ? "transparent" : "hsl(var(--background))"
10384
+ backgroundColor: R.backgroundImage ? "transparent" : "hsl(var(--background))"
10385
10385
  }
10386
10386
  // Ensure proper font rendering
10387
10387
  // WebkitFontSmoothing: "antialiased",
@@ -10430,7 +10430,7 @@ function ul({
10430
10430
  Wt,
10431
10431
  {
10432
10432
  className: Ce,
10433
- "data-text-color": A.textColor,
10433
+ "data-text-color": R.textColor,
10434
10434
  style: S ? void 0 : { border: "1.5px solid hsl(var(--primary) / 0.5)" },
10435
10435
  children: [
10436
10436
  /* @__PURE__ */ a(
@@ -10453,19 +10453,19 @@ function ul({
10453
10453
  children: W
10454
10454
  }
10455
10455
  ),
10456
- !A.backgroundImage && /* @__PURE__ */ a(
10456
+ !R.backgroundImage && /* @__PURE__ */ a(
10457
10457
  "div",
10458
10458
  {
10459
10459
  className: "absolute inset-0 pointer-events-none",
10460
10460
  style: { backgroundColor: "var(--widget-bg-overlay)" }
10461
10461
  }
10462
10462
  ),
10463
- A.backgroundImage && /* @__PURE__ */ a(
10463
+ R.backgroundImage && /* @__PURE__ */ a(
10464
10464
  "div",
10465
10465
  {
10466
10466
  className: "absolute inset-0 -z-10",
10467
10467
  style: {
10468
- backgroundImage: `url(${A.backgroundImage})`,
10468
+ backgroundImage: `url(${R.backgroundImage})`,
10469
10469
  backgroundSize: "cover",
10470
10470
  backgroundPosition: "center",
10471
10471
  backgroundRepeat: "no-repeat",
@@ -10475,12 +10475,12 @@ function ul({
10475
10475
  }
10476
10476
  }
10477
10477
  ),
10478
- A.backgroundImage && /* @__PURE__ */ a(
10478
+ R.backgroundImage && /* @__PURE__ */ a(
10479
10479
  "div",
10480
10480
  {
10481
10481
  className: "absolute inset-0 -z-10",
10482
10482
  style: {
10483
- backgroundColor: A.textColor === "white" ? "rgba(0, 0, 0, 0.4)" : "rgba(255, 255, 255, 0.4)"
10483
+ backgroundColor: R.textColor === "white" ? "rgba(0, 0, 0, 0.4)" : "rgba(255, 255, 255, 0.4)"
10484
10484
  }
10485
10485
  }
10486
10486
  ),
@@ -10515,7 +10515,7 @@ function ul({
10515
10515
  ...!S && !H && {
10516
10516
  cursor: e ? "grab" : "default"
10517
10517
  }
10518
- }, children: /* @__PURE__ */ a(Ae, { fallback: /* @__PURE__ */ a(Hu, {}), children: /* @__PURE__ */ a(
10518
+ }, children: /* @__PURE__ */ a(Re, { fallback: /* @__PURE__ */ a(Hu, {}), children: /* @__PURE__ */ a(
10519
10519
  lh,
10520
10520
  {
10521
10521
  onClose: t,
@@ -10526,12 +10526,12 @@ function ul({
10526
10526
  iconUrl: r,
10527
10527
  startNewConversation: o,
10528
10528
  voiceAgentState: g,
10529
- headerTinted: H ? !1 : A.headerTinted,
10529
+ headerTinted: H ? !1 : R.headerTinted,
10530
10530
  onToggleDisplayMode: b
10531
10531
  }
10532
10532
  ) }) }),
10533
10533
  (() => {
10534
- const P = H && !!i, ne = p && g === O.VOICE_AGENT_STATE.IDLE ? /* @__PURE__ */ a(Ae, { fallback: /* @__PURE__ */ a(ju, {}), children: /* @__PURE__ */ a(
10534
+ const P = H && !!i, ne = p && g === O.VOICE_AGENT_STATE.IDLE ? /* @__PURE__ */ a(Re, { fallback: /* @__PURE__ */ a(ju, {}), children: /* @__PURE__ */ a(
10535
10535
  wh,
10536
10536
  {
10537
10537
  value: p.value,
@@ -10547,7 +10547,7 @@ function ul({
10547
10547
  isMobile: S,
10548
10548
  placeholder: p.placeholder,
10549
10549
  recordingStatus: p.recordingStatus,
10550
- theme: A,
10550
+ theme: R,
10551
10551
  onStartNewChat: o,
10552
10552
  showStartNewChatButton: s,
10553
10553
  isVoiceAgentActive: p.isVoiceAgentActive,
@@ -10736,7 +10736,7 @@ function hl() {
10736
10736
  const [e, t] = F(
10737
10737
  typeof navigator < "u" ? navigator.onLine : !0
10738
10738
  );
10739
- return z(() => {
10739
+ return $(() => {
10740
10740
  const n = () => t(!0), r = () => t(!1);
10741
10741
  return window.addEventListener("online", n), window.addEventListener("offline", r), () => {
10742
10742
  window.removeEventListener("online", n), window.removeEventListener("offline", r);
@@ -10745,34 +10745,41 @@ function hl() {
10745
10745
  }
10746
10746
  const fl = (e) => Object.fromEntries(
10747
10747
  Object.entries(e).filter(([, t]) => t !== void 0)
10748
- ), Dm = (e) => e ? e.split(" ").map((t) => t[0]).slice(0, 2).join("").toUpperCase() : "DR", Fm = (e) => {
10748
+ ), Fm = (e) => e ? e.split(" ").map((t) => t[0]).slice(0, 2).join("").toUpperCase() : "DR", Um = (e) => {
10749
10749
  const t = new Date(e), n = t.toLocaleDateString(void 0, { weekday: "short" }), r = t.toLocaleDateString(void 0, { day: "2-digit" }), o = t.toLocaleDateString(void 0, { month: "short" });
10750
10750
  return { weekday: n, dayNum: r, month: o };
10751
- }, Um = (e) => {
10751
+ }, Vm = (e) => {
10752
10752
  const t = new Date(e);
10753
10753
  return isNaN(t.getTime()) ? e : t.toLocaleDateString("en-GB", { day: "numeric", month: "long", year: "numeric" });
10754
- }, Vm = (e, t) => {
10754
+ }, Vh = (e, t) => {
10755
10755
  const n = new Date(e);
10756
10756
  return n.setUTCDate(n.getUTCDate() + t), n.toISOString().slice(0, 10);
10757
- }, Vh = (e = [], t = []) => {
10757
+ }, $h = (e = [], t = [], n) => {
10758
+ if (!e.length && !t.length && n) {
10759
+ const o = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), s = n || o;
10760
+ return Array.from({ length: 3 }, (l, i) => ({
10761
+ date: Vh(s, i),
10762
+ slots: []
10763
+ }));
10764
+ }
10758
10765
  if (!e.length) return t;
10759
10766
  if (!t.length) return e;
10760
- const n = e.map((r) => ({ ...r }));
10761
- for (const r of t) {
10762
- const o = r.date ? n.findIndex((s) => s.date === r.date) : -1;
10763
- if (o === -1)
10764
- n.push({ ...r });
10767
+ const r = e.map((o) => ({ ...o }));
10768
+ for (const o of t) {
10769
+ const s = o.date ? r.findIndex((l) => l.date === o.date) : -1;
10770
+ if (s === -1)
10771
+ r.push({ ...o });
10765
10772
  else {
10766
- const s = n[o];
10767
- n[o] = {
10768
- ...s,
10769
- ...fl(r),
10770
- slots: r.slots ?? s.slots
10773
+ const l = r[s];
10774
+ r[s] = {
10775
+ ...l,
10776
+ ...fl(o),
10777
+ slots: o.slots ?? l.slots
10771
10778
  };
10772
10779
  }
10773
10780
  }
10774
- return n;
10775
- }, $h = (e = [], t = []) => {
10781
+ return r;
10782
+ }, zh = (e = [], t = []) => {
10776
10783
  if (!e.length) return t;
10777
10784
  if (!t.length) return e;
10778
10785
  const n = e.map((r) => ({ ...r }));
@@ -10785,14 +10792,14 @@ const fl = (e) => Object.fromEntries(
10785
10792
  n[o] = {
10786
10793
  ...s,
10787
10794
  ...fl(r),
10788
- availability: Vh(s.availability, r.availability)
10795
+ availability: $h(s.availability, r.availability, r.preferred_date || s.preferred_date)
10789
10796
  };
10790
10797
  }
10791
10798
  }
10792
10799
  return n;
10793
- }, di = (e) => !!e && Array.isArray(e.doctors), zh = (e, t, n) => e ? t ? n !== O.SYNAPSE_COMPONENTS.DOCTOR_CARD ? t : !di(e) || !di(t) ? e : {
10800
+ }, di = (e) => !!e && Array.isArray(e.doctors), Bh = (e, t, n) => e ? t ? n !== O.SYNAPSE_COMPONENTS.DOCTOR_CARD ? t : !di(e) || !di(t) ? e : {
10794
10801
  ...t,
10795
- doctors: $h(e.doctors, t.doctors),
10802
+ doctors: zh(e.doctors, t.doctors),
10796
10803
  doctor_details: {
10797
10804
  ...e.doctor_details || {},
10798
10805
  ...t.doctor_details || {}
@@ -10800,7 +10807,7 @@ const fl = (e) => Object.fromEntries(
10800
10807
  } : e : t, gt = (e) => {
10801
10808
  const t = e;
10802
10809
  return t?.message ? t.error?.msg || t.message : e instanceof Error ? e.message : "An unexpected error occurred";
10803
- }, Bh = ({
10810
+ }, Hh = ({
10804
10811
  environment: e,
10805
10812
  connectionType: t,
10806
10813
  baseUrl: n,
@@ -10809,13 +10816,13 @@ const fl = (e) => Object.fromEntries(
10809
10816
  authToken: s
10810
10817
  // onInlineText,
10811
10818
  }) => {
10812
- const [l, i] = F([]), c = Y([]), [d, m] = F(!1), u = Y(0), [p, h] = F(!1), [_, b] = F([]), y = Y(null), f = wu(), g = Y(null), { isOnline: E } = hl(), C = Y(!1), T = oe((R) => R.agentId), S = oe((R) => R.sessionId), x = oe((R) => R.sessionToken), w = oe((R) => R.isStreaming), v = oe((R) => R.isWaitingForResponse), N = oe((R) => R.initialMessage), M = oe((R) => R.userId), k = oe((R) => R.fileUploadPerSession), {
10819
+ const [l, i] = F([]), c = Y([]), [d, m] = F(!1), u = Y(0), [p, h] = F(!1), [_, b] = F([]), y = Y(null), f = wu(), g = Y(null), { isOnline: E } = hl(), C = Y(!1), T = oe((A) => A.agentId), S = oe((A) => A.sessionId), x = oe((A) => A.sessionToken), w = oe((A) => A.isStreaming), v = oe((A) => A.isWaitingForResponse), N = oe((A) => A.initialMessage), M = oe((A) => A.userId), k = oe((A) => A.fileUploadPerSession), {
10813
10820
  setSessionId: D,
10814
10821
  setSessionToken: H,
10815
- setError: $,
10822
+ setError: z,
10816
10823
  setConnectionStatus: W,
10817
10824
  setShowRetryButton: Z,
10818
- setStartNewConnection: A,
10825
+ setStartNewConnection: R,
10819
10826
  setIsStreaming: me,
10820
10827
  setIsWaitingForResponse: he,
10821
10828
  setProgressMessage: Q,
@@ -10829,14 +10836,14 @@ const fl = (e) => Object.fromEntries(
10829
10836
  setToastMessage: ce,
10830
10837
  upsertElicitationState: ye
10831
10838
  } = oe.getState();
10832
- z(() => {
10839
+ $(() => {
10833
10840
  E ? p ? Me() && (W(ke.CONNECTED), Ue()) : W(ke.CONNECTING) : W(ke.NOT_CONNECTED);
10834
- }, [E, p]), z(() => {
10835
- S && (i((R) => [...R, ...Ce(S) || []]), b([]));
10836
- }, [S]), z(() => {
10841
+ }, [E, p]), $(() => {
10842
+ S && (i((A) => [...A, ...Ce(S) || []]), b([]));
10843
+ }, [S]), $(() => {
10837
10844
  if (h(!1), !T)
10838
10845
  return;
10839
- const R = new O.SynapseSDK({
10846
+ const A = new O.SynapseSDK({
10840
10847
  agentId: T,
10841
10848
  environment: e,
10842
10849
  ...t && { connectionType: t },
@@ -10844,34 +10851,32 @@ const fl = (e) => Object.fromEntries(
10844
10851
  callbacks: {
10845
10852
  onError: (I) => {
10846
10853
  switch (I.code) {
10854
+ case O.SynapseErrorCode.API:
10847
10855
  case O.SynapseErrorCode.SESSION: {
10848
- const B = I.context;
10849
- B?.stage === "handleSessionExpiry" || B?.stage === "refreshSession" ? E ? ($({
10856
+ const B = I;
10857
+ B.context?.stage === "handleSessionExpiry" || B.context?.stage === "refreshSession" || B.status === 404 || B?.context?.staus === 404 ? E ? R(!0) : (z({
10850
10858
  title: "Internet connection Failed!",
10851
10859
  description: gt(I)
10852
- }), Z(!0)) : ($({
10853
- title: "Your session has ended.",
10854
- description: "Please start a new Chat."
10855
- }), Z(!0)) : (W(ke.NOT_CONNECTED), $({
10860
+ }), Z(!0)) : (W(ke.NOT_CONNECTED), z({
10856
10861
  title: "Something went wrong!",
10857
10862
  description: gt(I)
10858
10863
  }), Z(!0));
10859
10864
  break;
10860
10865
  }
10861
10866
  case O.SynapseErrorCode.RECORDING:
10862
- $({
10867
+ z({
10863
10868
  title: "Recording failed",
10864
10869
  description: gt(I)
10865
10870
  });
10866
10871
  break;
10867
10872
  case O.SynapseErrorCode.CONNECTION:
10868
- Me() || (W(ke.NOT_CONNECTED), u.current < 2 ? (u.current = u.current + 1, ve(S, x)) : (Z(!0), $({
10873
+ Me() || (W(ke.NOT_CONNECTED), u.current < 2 ? (u.current = u.current + 1, ve(S, x)) : (Z(!0), z({
10869
10874
  title: "Trying to connect...",
10870
10875
  description: gt(I)
10871
10876
  })));
10872
10877
  break;
10873
10878
  default:
10874
- $({
10879
+ z({
10875
10880
  title: "Something went wrong",
10876
10881
  description: gt(I)
10877
10882
  }), Z(!0);
@@ -10887,52 +10892,52 @@ const fl = (e) => Object.fromEntries(
10887
10892
  ...o && { auth: o },
10888
10893
  ...s && { authToken: s }
10889
10894
  });
10890
- return y.current = R, f(R), h(!0), () => {
10895
+ return y.current = A, f(A), h(!0), () => {
10891
10896
  h(!1), y.current?.endSession(), y.current = null, f(null), g.current && (clearTimeout(g.current), g.current = null);
10892
10897
  };
10893
- }, [T, e, o, s]), z(() => {
10898
+ }, [T, e, o, s]), $(() => {
10894
10899
  c.current = l;
10895
- }, [l]), z(() => {
10896
- const R = c.current[c.current.length - 1];
10897
- !R?.role || !S || (R?.role === We.USER && !R.isStored ? se(S, { ...R, isStored: !0 }) : !w && !R.isStored && (i((I) => {
10900
+ }, [l]), $(() => {
10901
+ const A = c.current[c.current.length - 1];
10902
+ !A?.role || !S || (A?.role === We.USER && !A.isStored ? se(S, { ...A, isStored: !0 }) : !w && !A.isStored && (i((I) => {
10898
10903
  const B = [...I];
10899
10904
  return B[B.length - 1] = {
10900
- ...R,
10905
+ ...A,
10901
10906
  isStored: !0
10902
10907
  }, B;
10903
- }), se(S, { ...R, isStored: !0 })));
10904
- }, [l, w]), z(() => () => {
10905
- const R = c.current[c.current.length - 1];
10906
- R && !R?.isStored && S && se(S, { ...R, isStored: !0 });
10907
- }, []), z(() => (g.current && (clearTimeout(g.current), g.current = null), v && !w ? g.current = setTimeout(() => {
10908
+ }), se(S, { ...A, isStored: !0 })));
10909
+ }, [l, w]), $(() => () => {
10910
+ const A = c.current[c.current.length - 1];
10911
+ A && !A?.isStored && S && se(S, { ...A, isStored: !0 });
10912
+ }, []), $(() => (g.current && (clearTimeout(g.current), g.current = null), v && !w ? g.current = setTimeout(() => {
10908
10913
  he(!1), g.current = null;
10909
10914
  }, 3e4) : w && g.current && (clearTimeout(g.current), g.current = null), () => {
10910
10915
  g.current && (clearTimeout(g.current), g.current = null);
10911
10916
  }), [v, w, he]);
10912
- const ve = async (R, I, B = !1) => {
10917
+ const ve = async (A, I, B = !1) => {
10913
10918
  try {
10914
10919
  const q = await y.current?.startSession({
10915
- session_id: R || "",
10920
+ session_id: A || "",
10916
10921
  session_token: I || ""
10917
10922
  });
10918
10923
  q?.session_id && q?.session_token && (D(q.session_id), H(q.session_token)), q?.user_id && ne(q.user_id), q?.error?.msg && ce(q.error.msg);
10919
10924
  } catch (q) {
10920
- const re = q, ae = re.context?.stage === "handleSessionExpiry" || re.context?.stage === "refreshSession" || re.status === 404, Le = re.status === 403;
10921
- ae ? ($(null), W(ke.NOT_CONNECTED), A(!0)) : Le && !B ? (ee(), Ue(), await ve(void 0, void 0, !0)) : ($({
10925
+ const re = q, ae = re.context?.stage === "handleSessionExpiry" || re.context?.stage === "refreshSession" || re.status === 404 || re.context?.status == 404, Le = re.status === 403;
10926
+ ae ? (z(null), W(ke.NOT_CONNECTED), R(!0)) : Le && !B ? (ee(), Ue(), await ve(void 0, void 0, !0)) : (z({
10922
10927
  title: "Connection Lost!",
10923
10928
  description: gt(q)
10924
10929
  }), Z(!0));
10925
10930
  }
10926
- }, Pe = async (R = !1) => {
10931
+ }, Pe = async (A = !1) => {
10927
10932
  try {
10928
10933
  if (!y.current) {
10929
- $({
10934
+ z({
10930
10935
  title: "SDK not initialized",
10931
10936
  description: "Please ensure agentId is configured"
10932
10937
  }), m(!1);
10933
10938
  return;
10934
10939
  }
10935
- if (m(!0), R) {
10940
+ if (m(!0), A) {
10936
10941
  W(ke.CONNECTING), i([]), await ee(), await y?.current?.endSession(), Ue(), await ve(), Oe();
10937
10942
  return;
10938
10943
  }
@@ -10945,10 +10950,10 @@ const fl = (e) => Object.fromEntries(
10945
10950
  }, Me = () => y.current?.isConnected() ?? !1, Te = () => {
10946
10951
  y.current?.endSession();
10947
10952
  }, Ue = () => {
10948
- u.current = 0, Z(!1), A(!1), $(null);
10953
+ u.current = 0, Z(!1), R(!1), z(null);
10949
10954
  }, Oe = () => {
10950
- y.current?.on(O.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK, (R) => {
10951
- const I = R;
10955
+ y.current?.on(O.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK, (A) => {
10956
+ const I = A;
10952
10957
  if (I.data?.text && I.messageId) {
10953
10958
  w || (he(!1), me(!0)), Me() && W(ke.CONNECTED), Ue();
10954
10959
  const B = I.data.text, q = I.messageId, re = C.current;
@@ -10981,13 +10986,13 @@ const fl = (e) => Object.fromEntries(
10981
10986
  Ue(), W(ke.CONNECTED);
10982
10987
  }), y.current?.on(
10983
10988
  O.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,
10984
- (R) => {
10989
+ (A) => {
10985
10990
  C.current = !0;
10986
- const I = R;
10991
+ const I = A;
10987
10992
  if (!I?.messageId || !I?.data || !I?.data?.details?.component || !I?.data?.tool_id)
10988
10993
  return;
10989
10994
  v && he(!1);
10990
- const { messageId: B, data: q } = I, re = q.tool_id, ae = `${B}::${re}`, De = oe.getState().elicitationState[ae], Je = q.details?.component, Ve = I?.data?.details?._meta?.tool_result, Dt = q.details?.input, Ne = zh(De?.ui_input, Dt, Je);
10995
+ const { messageId: B, data: q } = I, re = q.tool_id, ae = `${B}::${re}`, De = oe.getState().elicitationState[ae], Je = q.details?.component, Ve = I?.data?.details?._meta?.tool_result, Dt = q.details?.input, Ne = Bh(De?.ui_input, Dt, Je);
10991
10996
  let Ge = I.data.details?._meta?.disp_toast_msg;
10992
10997
  const nt = q?.details?._meta?.schema?.required || [];
10993
10998
  switch (q?.details?.status) {
@@ -11091,27 +11096,27 @@ const fl = (e) => Object.fromEntries(
11091
11096
  } catch {
11092
11097
  }
11093
11098
  }
11094
- ), y.current?.on(O.SYNAPSE_REALTIME_EVENTS.DISCONNECTED, (R) => {
11095
- R?.reason !== O.DisconnectionReason.CLIENT_CLOSED && (u.current < 2 ? (W(ke.NOT_CONNECTED), u.current = u.current + 1, Z(!0), $({
11099
+ ), y.current?.on(O.SYNAPSE_REALTIME_EVENTS.DISCONNECTED, (A) => {
11100
+ A?.reason !== O.DisconnectionReason.CLIENT_CLOSED && (u.current < 2 ? (W(ke.NOT_CONNECTED), u.current = u.current + 1, Z(!0), z({
11096
11101
  title: "Something went wrong!",
11097
11102
  description: "Please try again."
11098
- })) : (W(ke.NOT_CONNECTED), $({
11103
+ })) : (W(ke.NOT_CONNECTED), z({
11099
11104
  title: "Something went wrong!",
11100
11105
  description: "Please start a new Chat."
11101
- }), A(!0)));
11102
- }), y.current?.on(O.SYNAPSE_REALTIME_EVENTS.ERROR, (R) => {
11103
- switch (R?.data?.code) {
11106
+ }), R(!0)));
11107
+ }), y.current?.on(O.SYNAPSE_REALTIME_EVENTS.ERROR, (A) => {
11108
+ switch (A?.data?.code) {
11104
11109
  case O.SYNAPSE_REALTIME_ERROR_CODES.SESSION_INACTIVE:
11105
- $({
11110
+ z({
11106
11111
  title: "Session not found",
11107
11112
  description: "Please start a new session"
11108
- }), A(!0), J(pe.IDLE);
11113
+ }), R(!0), J(pe.IDLE);
11109
11114
  return;
11110
11115
  case O.SYNAPSE_REALTIME_ERROR_CODES.SESSION_TOKEN_MISMATCH:
11111
- $({
11116
+ z({
11112
11117
  title: "Session not found",
11113
11118
  description: "Please start a new chat from onError callback"
11114
- }), A(!0), J(pe.IDLE);
11119
+ }), R(!0), J(pe.IDLE);
11115
11120
  return;
11116
11121
  case O.SYNAPSE_REALTIME_ERROR_CODES.INVALID_EVENT:
11117
11122
  return;
@@ -11122,44 +11127,44 @@ const fl = (e) => Object.fromEntries(
11122
11127
  u.current++, Un();
11123
11128
  return;
11124
11129
  }
11125
- $({
11130
+ z({
11126
11131
  title: "Error parsing request",
11127
11132
  description: "please try again"
11128
11133
  }), Z(!0), J(pe.IDLE);
11129
11134
  return;
11130
11135
  case O.SYNAPSE_REALTIME_ERROR_CODES.TIMEOUT:
11131
- $({
11136
+ z({
11132
11137
  title: "Request timed out",
11133
11138
  description: "please try again"
11134
11139
  }), Z(!0), J(pe.IDLE);
11135
11140
  return;
11136
11141
  case O.SYNAPSE_REALTIME_ERROR_CODES.PROMPT_FETCH_ERROR:
11137
- $({
11142
+ z({
11138
11143
  title: "Something went wrong",
11139
11144
  description: "please try again"
11140
11145
  }), Z(!0), J(pe.IDLE);
11141
11146
  return;
11142
11147
  case O.SYNAPSE_REALTIME_ERROR_CODES.INVALID_FILE_REQUEST:
11143
- $({
11148
+ z({
11144
11149
  title: "Something went wrong",
11145
11150
  description: "please try again"
11146
11151
  }), Z(!0), J(pe.IDLE);
11147
11152
  return;
11148
11153
  case O.SYNAPSE_REALTIME_ERROR_CODES.SERVER_ERROR:
11149
- $({
11154
+ z({
11150
11155
  title: "Something went wrong",
11151
11156
  description: "please try again"
11152
11157
  }), Z(!0), J(pe.IDLE);
11153
11158
  return;
11154
11159
  default:
11155
- $({
11160
+ z({
11156
11161
  title: "Something went wrong",
11157
11162
  description: "please try again"
11158
11163
  }), Z(!0), J(pe.IDLE);
11159
11164
  return;
11160
11165
  }
11161
- }), y.current?.on(O.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT, async (R) => {
11162
- const I = R;
11166
+ }), y.current?.on(O.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT, async (A) => {
11167
+ const I = A;
11163
11168
  I?.data?.text && (i((B) => [...B, {
11164
11169
  id: Date.now().toString(),
11165
11170
  content: I.data.text || "",
@@ -11167,13 +11172,13 @@ const fl = (e) => Object.fromEntries(
11167
11172
  timestamp: Vt(Date.now()),
11168
11173
  isStored: !0
11169
11174
  }]), J(pe.IDLE)), me(!1), he(!1), Q(null);
11170
- }), y.current?.on(O.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE, (R) => {
11175
+ }), y.current?.on(O.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE, (A) => {
11171
11176
  C.current = !0;
11172
- const I = R;
11177
+ const I = A;
11173
11178
  I.data?.text && (he(!1), Q(I.data.text));
11174
- }), y.current?.on(O.SYNAPSE_REALTIME_EVENTS.TOOL_START, (R) => {
11179
+ }), y.current?.on(O.SYNAPSE_REALTIME_EVENTS.TOOL_START, (A) => {
11175
11180
  C.current = !0;
11176
- const I = R;
11181
+ const I = A;
11177
11182
  if (I.data?.name && I.messageId) {
11178
11183
  const B = I.messageId;
11179
11184
  i((q) => {
@@ -11190,9 +11195,9 @@ const fl = (e) => Object.fromEntries(
11190
11195
  return q;
11191
11196
  });
11192
11197
  }
11193
- }), y.current?.on(O.SYNAPSE_REALTIME_EVENTS.TOOL_END, (R) => {
11198
+ }), y.current?.on(O.SYNAPSE_REALTIME_EVENTS.TOOL_END, (A) => {
11194
11199
  C.current = !0;
11195
- const I = R;
11200
+ const I = A;
11196
11201
  if (I.data?.name && I.messageId) {
11197
11202
  const B = I.messageId;
11198
11203
  i((q) => {
@@ -11211,7 +11216,7 @@ const fl = (e) => Object.fromEntries(
11211
11216
  }
11212
11217
  });
11213
11218
  }, xe = async ({
11214
- message: R,
11219
+ message: A,
11215
11220
  files: I,
11216
11221
  audio: B,
11217
11222
  toolCalled: q,
@@ -11222,16 +11227,16 @@ const fl = (e) => Object.fromEntries(
11222
11227
  tool_key: Je
11223
11228
  }) => {
11224
11229
  const Ve = oe.getState().elicitationState, Dt = Object.values(Ve).some((Ne) => Ne.active);
11225
- if (!(!q && (!I || I.length === 0) && !R?.trim() && !B?.audio && !re && !Dt && !De && !Object.keys(De || {}).length)) {
11230
+ if (!(!q && (!I || I.length === 0) && !A?.trim() && !B?.audio && !re && !Dt && !De && !Object.keys(De || {}).length)) {
11226
11231
  if (I && I.length > 3) {
11227
- $({
11232
+ z({
11228
11233
  title: "Maximum 3 files are allowed to be sent at a time",
11229
11234
  description: "Please try again"
11230
11235
  });
11231
11236
  return;
11232
11237
  }
11233
11238
  if (I && I.length > 0 && I.reduce((Ne, Ge) => Ne + Ge.size, 0) > 10 * 1024 * 1024) {
11234
- $({
11239
+ z({
11235
11240
  title: "Total file size limit of 10MB exceeded",
11236
11241
  description: "Please reduce the size of the files or try again with less files"
11237
11242
  });
@@ -11239,13 +11244,13 @@ const fl = (e) => Object.fromEntries(
11239
11244
  }
11240
11245
  if (I && I.length > 0 && I.length + k > Mr) {
11241
11246
  const Ne = Mr - k;
11242
- $({
11247
+ z({
11243
11248
  title: `You can only upload up to ${Mr} files per session`,
11244
11249
  description: `${Ne <= 0 ? "Maximum file upload limit reached" : `You have ${Ne} file${Ne === 1 ? "" : "s"} upload${Ne === 1 ? "" : "s"} left`}`
11245
11250
  });
11246
11251
  return;
11247
11252
  } else I && I.length && Se(k + I.length);
11248
- $(null), Z(!1), Me() && W(ke.CONNECTED);
11253
+ z(null), Z(!1), Me() && W(ke.CONNECTED);
11249
11254
  try {
11250
11255
  const Ne = l.length == 2 && _.length == 2 ? _ : null;
11251
11256
  let Ge = null, nt = null;
@@ -11255,7 +11260,7 @@ const fl = (e) => Object.fromEntries(
11255
11260
  if (re) {
11256
11261
  const nn = re[ge];
11257
11262
  nn !== void 0 && (be[ge] = nn);
11258
- } else Ie.length === 1 && (be[ge] = R);
11263
+ } else Ie.length === 1 && (be[ge] = A);
11259
11264
  return be;
11260
11265
  }, {}), Ct = G.mcp_meta_fields?.reduce((be, ge) => (Ie.includes(ge) ? be[ge] = Qe[ge] : G.server_input?.[ge] && (be[ge] = G.server_input[ge]), ae && !be.is_resend && (be.is_resend = ae), be), {}), Er = Object.keys(G.server_input || {})?.reduce((be, ge) => {
11261
11266
  const nn = !Object.keys(Ct || {})?.includes(ge), Bo = !!G.server_input?.[ge];
@@ -11291,7 +11296,7 @@ const fl = (e) => Object.fromEntries(
11291
11296
  }) : [], Ct = De ?? G?.tool_result;
11292
11297
  await y.current?.sendMessage({
11293
11298
  // Always a string — a tool_result forward with no user text sends "".
11294
- message: R ?? "",
11299
+ message: A ?? "",
11295
11300
  files: I,
11296
11301
  audio: B,
11297
11302
  ...Ne && { initial_prompts: Ne },
@@ -11302,7 +11307,7 @@ const fl = (e) => Object.fromEntries(
11302
11307
  ...Ct && { tool_result: Ct }
11303
11308
  });
11304
11309
  }
11305
- (R || I && I.length > 0 || B?.audio || gr || nt) && (i((Ie) => {
11310
+ (A || I && I.length > 0 || B?.audio || gr || nt) && (i((Ie) => {
11306
11311
  if (Ge) return Ie;
11307
11312
  const Qe = Ie.length === 0 && N?.text ? [{
11308
11313
  id: "initial-bot-message",
@@ -11316,7 +11321,7 @@ const fl = (e) => Object.fromEntries(
11316
11321
  ...Qe,
11317
11322
  {
11318
11323
  id: Date.now().toString(),
11319
- content: gr || nt || R || "",
11324
+ content: gr || nt || A || "",
11320
11325
  files: I || [],
11321
11326
  audio: B,
11322
11327
  role: We.USER,
@@ -11334,7 +11339,7 @@ const fl = (e) => Object.fromEntries(
11334
11339
  ...Ie === ie ? {
11335
11340
  response_value: {
11336
11341
  ...Qe?.response_value || {},
11337
- label: gr || R || ""
11342
+ label: gr || A || ""
11338
11343
  }
11339
11344
  } : {}
11340
11345
  });
@@ -11342,38 +11347,38 @@ const fl = (e) => Object.fromEntries(
11342
11347
  } catch {
11343
11348
  }
11344
11349
  }
11345
- }, Xe = (R) => R.type.toLowerCase() && ![
11350
+ }, Xe = (A) => A.type.toLowerCase() && ![
11346
11351
  "application/pdf",
11347
11352
  "image/jpeg",
11348
11353
  "image/jpg",
11349
11354
  "image/png"
11350
- ].includes(R.type) ? ($({
11351
- title: `File type not supported: ${R.name}`,
11355
+ ].includes(A.type) ? (z({
11356
+ title: `File type not supported: ${A.name}`,
11352
11357
  description: "Only PDF, images (JPG, JPEG, PNG) are allowed."
11353
- }), !1) : R.size > 3 * 1024 * 1024 ? ($({
11358
+ }), !1) : A.size > 3 * 1024 * 1024 ? (z({
11354
11359
  title: "File size limit of 3MB exceeded",
11355
11360
  description: "Please reduce the size of the file or try again with a smaller file"
11356
11361
  }), !1) : !0, Xt = async () => {
11357
11362
  try {
11358
11363
  await y.current?.startRecording({
11359
- onChunks: async (R) => {
11360
- J(pe.PROCESSING), await xe({ audio: R }), J(pe.TRANSCRIBING);
11364
+ onChunks: async (A) => {
11365
+ J(pe.PROCESSING), await xe({ audio: A }), J(pe.TRANSCRIBING);
11361
11366
  },
11362
- onError(R) {
11367
+ onError(A) {
11363
11368
  J(pe.IDLE);
11364
11369
  }
11365
11370
  }), J(pe.LISTENING);
11366
- } catch (R) {
11367
- throw J(pe.IDLE), R;
11371
+ } catch (A) {
11372
+ throw J(pe.IDLE), A;
11368
11373
  }
11369
11374
  }, Jt = () => {
11370
11375
  y.current?.endRecording();
11371
- }, Lt = async (R, I, B) => {
11376
+ }, Lt = async (A, I, B) => {
11372
11377
  try {
11373
11378
  if (!Me())
11374
11379
  throw new Error("Not connected to the server");
11375
11380
  await y.current?.callTool(
11376
- R,
11381
+ A,
11377
11382
  I,
11378
11383
  B
11379
11384
  );
@@ -11385,27 +11390,27 @@ const fl = (e) => Object.fromEntries(
11385
11390
  }, Un = async () => {
11386
11391
  if (Me()) {
11387
11392
  W(ke.CONNECTED);
11388
- const R = c.current[c.current.length - 1];
11389
- if (R && R.role === We.USER)
11393
+ const A = c.current[c.current.length - 1];
11394
+ if (A && A.role === We.USER)
11390
11395
  try {
11391
11396
  y.current?.sendMessage({
11392
- message: R.content,
11393
- files: R.files || [],
11394
- messageId: R.id,
11395
- audio: R.audio
11397
+ message: A.content,
11398
+ files: A.files || [],
11399
+ messageId: A.id,
11400
+ audio: A.audio
11396
11401
  });
11397
11402
  } catch {
11398
11403
  }
11399
11404
  } else if (W(ke.NOT_CONNECTED), u.current < 2) {
11400
11405
  u.current++;
11401
- const { sessionId: R, sessionToken: I } = oe.getState();
11402
- await ve(R, I);
11403
- } else u.current === 2 ? (u.current++, Z(!0), $({
11406
+ const { sessionId: A, sessionToken: I } = oe.getState();
11407
+ await ve(A, I);
11408
+ } else u.current === 2 ? (u.current++, Z(!0), z({
11404
11409
  title: "Trying to connect..."
11405
- })) : ($({
11410
+ })) : (z({
11406
11411
  title: "Something went wrong!",
11407
11412
  description: "Please start a new chat."
11408
- }), A(!0));
11413
+ }), R(!0));
11409
11414
  };
11410
11415
  return {
11411
11416
  sendMessage: xe,
@@ -11420,21 +11425,21 @@ const fl = (e) => Object.fromEntries(
11420
11425
  isValidFile: Xe,
11421
11426
  handleStartNewConnection: Qt,
11422
11427
  callTool: Lt,
11423
- handleInitialTaskClick: async (R) => {
11424
- if (!N?.suggestions?.length || !R)
11428
+ handleInitialTaskClick: async (A) => {
11429
+ if (!N?.suggestions?.length || !A)
11425
11430
  return;
11426
11431
  const I = N.suggestions.find(
11427
- (B) => B.value === R
11432
+ (B) => B.value === A
11428
11433
  );
11429
11434
  if (!I || !I.response) {
11430
- await xe({ message: R });
11435
+ await xe({ message: A });
11431
11436
  return;
11432
11437
  }
11433
11438
  i((B) => [
11434
11439
  ...B,
11435
11440
  {
11436
11441
  id: Date.now().toString(),
11437
- content: R,
11442
+ content: A,
11438
11443
  role: We.USER,
11439
11444
  timestamp: Vt(Date.now()),
11440
11445
  isStored: !1
@@ -11450,42 +11455,42 @@ const fl = (e) => Object.fromEntries(
11450
11455
  isStored: !1
11451
11456
  }
11452
11457
  ]
11453
- ), b([{ role: "user", text: R }, { role: "assistant", text: I.response }]);
11458
+ ), b([{ role: "user", text: A }, { role: "assistant", text: I.response }]);
11454
11459
  },
11455
- sendMessageFeedback: async (R, I, B) => {
11460
+ sendMessageFeedback: async (A, I, B) => {
11456
11461
  if (Me())
11457
11462
  try {
11458
- await y.current?.sendMessageFeedback(I, R, B);
11463
+ await y.current?.sendMessageFeedback(I, A, B);
11459
11464
  } catch {
11460
11465
  }
11461
11466
  },
11462
- sendSessionFeedback: async (R, I) => {
11463
- if (!(!Me() || !R?.length && !I))
11467
+ sendSessionFeedback: async (A, I) => {
11468
+ if (!(!Me() || !A?.length && !I))
11464
11469
  try {
11465
- await y.current?.sendSessionFeedback(R, I);
11470
+ await y.current?.sendSessionFeedback(A, I);
11466
11471
  } catch {
11467
11472
  }
11468
11473
  },
11469
- clearElicitationState: async (R, I) => {
11470
- const B = oe.getState().elicitationState, q = R ? B[R] : void 0;
11474
+ clearElicitationState: async (A, I) => {
11475
+ const B = oe.getState().elicitationState, q = A ? B[A] : void 0;
11471
11476
  try {
11472
11477
  await xe({
11473
11478
  message: I || "User aborted elicitation",
11474
11479
  tool_declined: !0,
11475
11480
  tool_result: q?.tool_result,
11476
- tool_key: R
11481
+ tool_key: A
11477
11482
  });
11478
11483
  } catch {
11479
11484
  } finally {
11480
- R && q && ye(R, { ...q, active: !1, disabled: !0 });
11485
+ A && q && ye(A, { ...q, active: !1, disabled: !0 });
11481
11486
  }
11482
11487
  }
11483
11488
  };
11484
- }, Hh = 32, jh = 100, Gh = 320;
11485
- function Wh() {
11489
+ }, jh = 32, Gh = 100, Wh = 320;
11490
+ function qh() {
11486
11491
  return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
11487
11492
  }
11488
- function qh({
11493
+ function Yh({
11489
11494
  messageCount: e,
11490
11495
  isStreaming: t,
11491
11496
  isFirstMessage: n,
@@ -11494,7 +11499,7 @@ function qh({
11494
11499
  const o = Y(null), s = Y(null), [l, i] = F(!1), c = Y(null), d = Y(!1), m = Y("auto"), u = Y(!0), p = de(() => o.current?.querySelector(
11495
11500
  "[data-radix-scroll-area-viewport]"
11496
11501
  ) || null, []), h = de(
11497
- (y) => Wh() ? "auto" : y,
11502
+ (y) => qh() ? "auto" : y,
11498
11503
  []
11499
11504
  ), _ = de(
11500
11505
  (y) => {
@@ -11513,19 +11518,19 @@ function qh({
11513
11518
  },
11514
11519
  [_]
11515
11520
  );
11516
- return z(() => () => {
11521
+ return $(() => () => {
11517
11522
  c.current !== null && (cancelAnimationFrame(c.current), c.current = null), d.current = !1;
11518
- }, []), z(() => {
11523
+ }, []), $(() => {
11519
11524
  if (!e) return;
11520
11525
  b(t || n ? "auto" : "smooth");
11521
- }, [e, t, n, b]), z(() => {
11526
+ }, [e, t, n, b]), $(() => {
11522
11527
  if (!e || !u.current) return;
11523
11528
  const y = setTimeout(
11524
11529
  () => b("auto"),
11525
- Gh
11530
+ Wh
11526
11531
  );
11527
11532
  return () => clearTimeout(y);
11528
- }, [r, e, b]), z(() => {
11533
+ }, [r, e, b]), $(() => {
11529
11534
  let y = !1, f = null, g = null, E = 0;
11530
11535
  const C = () => {
11531
11536
  if (y) return;
@@ -11536,7 +11541,7 @@ function qh({
11536
11541
  }
11537
11542
  const w = () => {
11538
11543
  const { scrollTop: M, scrollHeight: k, clientHeight: D } = T;
11539
- return k - M - D <= Hh;
11544
+ return k - M - D <= jh;
11540
11545
  };
11541
11546
  u.current = !0;
11542
11547
  let v = 0;
@@ -11550,7 +11555,7 @@ function qh({
11550
11555
  T.addEventListener("scroll", N, { passive: !0 }), g = () => T.removeEventListener("scroll", N), f = new ResizeObserver(() => {
11551
11556
  if (!u.current) return;
11552
11557
  const M = Date.now();
11553
- M - E < jh || (E = M, v++, b("auto"));
11558
+ M - E < Gh || (E = M, v++, b("auto"));
11554
11559
  }), f.observe(x);
11555
11560
  };
11556
11561
  return C(), () => {
@@ -11565,7 +11570,7 @@ function qh({
11565
11570
  };
11566
11571
  }
11567
11572
  const to = "eka-medassist-agent-config";
11568
- function Yh(e) {
11573
+ function Kh(e) {
11569
11574
  try {
11570
11575
  const t = localStorage.getItem(to);
11571
11576
  return (t ? JSON.parse(t) : {})[e]?.feedback_hidden === !0;
@@ -11573,14 +11578,14 @@ function Yh(e) {
11573
11578
  return !1;
11574
11579
  }
11575
11580
  }
11576
- function Kh(e) {
11581
+ function Zh(e) {
11577
11582
  try {
11578
11583
  const t = localStorage.getItem(to), n = t ? JSON.parse(t) : {};
11579
11584
  n[e] || (n[e] = {}), n[e].feedback_hidden = !0, localStorage.setItem(to, JSON.stringify(n));
11580
11585
  } catch {
11581
11586
  }
11582
11587
  }
11583
- function Zh({ isOpen: e, agentId: t, config: n }) {
11588
+ function Xh({ isOpen: e, agentId: t, config: n }) {
11584
11589
  const {
11585
11590
  state: r,
11586
11591
  isMuted: o,
@@ -11595,10 +11600,10 @@ function Zh({ isOpen: e, agentId: t, config: n }) {
11595
11600
  ), g = () => f((j) => j === "full" ? "widget" : "full"), C = cl() ? "mobile" : y, [T, S] = F([]), x = Y(!1), [w, v] = F(!1), [N, M] = F(!1), k = Y(null), {
11596
11601
  setAgentId: D,
11597
11602
  startNewConnection: H,
11598
- showRetryButton: $,
11603
+ showRetryButton: z,
11599
11604
  clearError: W,
11600
11605
  error: Z,
11601
- connectionStatus: A,
11606
+ connectionStatus: R,
11602
11607
  recordingStatus: me,
11603
11608
  isWaitingForResponse: he,
11604
11609
  isStreaming: Q,
@@ -11621,7 +11626,7 @@ function Zh({ isOpen: e, agentId: t, config: n }) {
11621
11626
  sendMessageFeedback: Xe,
11622
11627
  clearElicitationState: Xt,
11623
11628
  sendSessionFeedback: Jt
11624
- } = Bh({
11629
+ } = Hh({
11625
11630
  environment: n.environment,
11626
11631
  connectionType: n.connectionType,
11627
11632
  baseUrl: n.baseUrl ? n.baseUrl : void 0,
@@ -11629,22 +11634,22 @@ function Zh({ isOpen: e, agentId: t, config: n }) {
11629
11634
  ...n?.auth && { auth: n.auth },
11630
11635
  ...n?.authToken && { authToken: n.authToken }
11631
11636
  });
11632
- z(() => {
11637
+ $(() => {
11633
11638
  t && (k.current !== t && (bu(t), yu(t), D(t), (n.displayMode === "full" || n.displayMode === "widget") && (b(n.displayMode), ne(n.displayMode)), n?.context && Object.keys(n?.context || {}).length && se(n.context), (n?.initialMessage?.text || n?.initialMessage?.suggestions?.length) && P(n.initialMessage), k.current = t), e && Me && !x.current && (x.current = !0, Pe(!1)));
11634
- }, [e, Me, t]), z(() => () => {
11639
+ }, [e, Me, t]), $(() => () => {
11635
11640
  l();
11636
11641
  }, []);
11637
11642
  const Lt = () => {
11638
- n.feedback && !Yh(t) ? M(!0) : n.onClose();
11643
+ n.feedback && !Kh(t) ? M(!0) : n.onClose();
11639
11644
  }, Qt = async (j, ie) => {
11640
11645
  await Jt(j, ie), M(!1), n.onClose();
11641
11646
  }, Un = () => {
11642
11647
  M(!1), n.onClose();
11643
11648
  }, Vo = () => {
11644
- Kh(t), M(!1), n.onClose();
11649
+ Zh(t), M(!1), n.onClose();
11645
11650
  }, $o = () => {
11646
11651
  M(!1);
11647
- }, zo = ce.length > 0, pr = ce.length === 1, R = ue(() => {
11652
+ }, zo = ce.length > 0, pr = ce.length === 1, A = ue(() => {
11648
11653
  const j = ce[ce.length - 1], ie = j?.tool_keys?.[j.tool_keys.length - 1];
11649
11654
  if (!ie) return null;
11650
11655
  const G = Se[ie];
@@ -11652,17 +11657,17 @@ function Zh({ isOpen: e, agentId: t, config: n }) {
11652
11657
  }, [ce, Se]), I = ue(() => {
11653
11658
  const j = n?.initialMessage;
11654
11659
  return !!j?.text || !!j?.suggestions?.length;
11655
- }, [n?.initialMessage]), B = ue(() => I && ce?.length === 0, [ce, I]), q = ue(() => R ? R.component === O.SYNAPSE_COMPONENTS.MOBILE || R.component === O.SYNAPSE_COMPONENTS.OTP || R.component === O.SYNAPSE_COMPONENTS.EMAIL : !1, [R]), {
11660
+ }, [n?.initialMessage]), B = ue(() => I && ce?.length === 0, [ce, I]), q = ue(() => A ? A.component === O.SYNAPSE_COMPONENTS.MOBILE || A.component === O.SYNAPSE_COMPONENTS.OTP || A.component === O.SYNAPSE_COMPONENTS.EMAIL : !1, [A]), {
11656
11661
  scrollAreaRef: re,
11657
11662
  messagesEndRef: ae,
11658
11663
  showScrollButton: Le,
11659
11664
  scrollToBottom: De
11660
- } = qh({
11665
+ } = Yh({
11661
11666
  messageCount: ce.length,
11662
11667
  isStreaming: Q,
11663
11668
  isFirstMessage: pr,
11664
11669
  resolvedMode: C
11665
- }), Je = A === O.ConnectionStatus.CONNECTED, Ve = he || Q, Dt = ue(() => me === pe.IDLE ? null : me === pe.LISTENING ? "Listening..." : me === pe.PROCESSING ? "Processing..." : me === pe.TRANSCRIBING ? "Transcribing..." : null, [me]), Ne = Dt && me !== pe.IDLE ? Dt : he || Q ? "Please wait for the response..." : "Type a reply…", Ge = async (j) => {
11670
+ }), Je = R === O.ConnectionStatus.CONNECTED, Ve = he || Q, Dt = ue(() => me === pe.IDLE ? null : me === pe.LISTENING ? "Listening..." : me === pe.PROCESSING ? "Processing..." : me === pe.TRANSCRIBING ? "Transcribing..." : null, [me]), Ne = Dt && me !== pe.IDLE ? Dt : he || Q ? "Please wait for the response..." : "Type a reply…", Ge = async (j) => {
11666
11671
  if (Ve)
11667
11672
  return;
11668
11673
  const ie = j?.message ?? u;
@@ -11682,7 +11687,7 @@ function Zh({ isOpen: e, agentId: t, config: n }) {
11682
11687
  }
11683
11688
  if (ie?.length > 0 && ie.reduce((G, Be) => G + Be.size, 0) > 10 * 1024 * 1024) {
11684
11689
  J({
11685
- title: `Total file size limit of ${Ru} MB exceeded`,
11690
+ title: `Total file size limit of ${Au} MB exceeded`,
11686
11691
  description: "Please reduce the size of the files or try again with less files"
11687
11692
  });
11688
11693
  return;
@@ -11748,13 +11753,13 @@ function Zh({ isOpen: e, agentId: t, config: n }) {
11748
11753
  messagesEndRef: ae,
11749
11754
  // Store values
11750
11755
  startNewConnection: H,
11751
- showRetryButton: $,
11756
+ showRetryButton: z,
11752
11757
  clearError: W,
11753
11758
  error: Z,
11754
- connectionStatus: A,
11759
+ connectionStatus: R,
11755
11760
  isStreaming: Q,
11756
11761
  sessionId: ee,
11757
- activeElicitation: R,
11762
+ activeElicitation: A,
11758
11763
  // Derived
11759
11764
  inConversation: zo,
11760
11765
  isFirstMessage: pr,
@@ -11797,16 +11802,16 @@ function Zh({ isOpen: e, agentId: t, config: n }) {
11797
11802
  handleVoiceAgentClick: d
11798
11803
  };
11799
11804
  }
11800
- function At() {
11801
- return At = Object.assign ? Object.assign.bind() : function(e) {
11805
+ function Rt() {
11806
+ return Rt = Object.assign ? Object.assign.bind() : function(e) {
11802
11807
  for (var t = 1; t < arguments.length; t++) {
11803
11808
  var n = arguments[t];
11804
11809
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
11805
11810
  }
11806
11811
  return e;
11807
- }, At.apply(this, arguments);
11812
+ }, Rt.apply(this, arguments);
11808
11813
  }
11809
- const Xh = ["children", "options"], ui = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { class: "className", for: "htmlFor" }), hi = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, Jh = ["style", "script", "pre"], Qh = ["src", "href", "data", "formAction", "srcDoc", "action"], ef = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, tf = /\n{2,}$/, fi = /^(\s*>[\s\S]*?)(?=\n\n|$)/, nf = /^ *> ?/gm, rf = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, of = /^ {2,}\n/, sf = /^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/, mi = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, pi = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, af = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, lf = /^(?:\n *)*\n/, cf = /\r\n?/g, df = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, uf = /^\[\^([^\]]+)]/, hf = /\f/g, ff = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, mf = /^\s*?\[(x|\s)\]/, gi = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, _i = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Ei = /^([^\n]+)\n *(=|-)\2{2,} *\n/, Fr = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, pf = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, bi = /^<!--[\s\S]*?(?:-->)/, gf = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Ur = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, _f = /^\{.*\}$/, Ef = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, bf = /^<([^ >]+[:@\/][^ >]+)>/, yf = /-([a-z])?/gi, yi = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, vf = /^[^\n]+(?: \n|\n{2,})/, Sf = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, wf = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, Cf = /^\[([^\]]*)\] ?\[([^\]]*)\]/, Tf = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, xf = /\t/g, Nf = /(^ *\||\| *$)/g, kf = /^ *:-+: *$/, If = /^ *:-+ *$/, Rf = /^ *-+: *$/, fr = (e) => `(?=[\\s\\S]+?\\1${e ? "\\1" : ""})`, mr = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", Af = RegExp(`^([*_])\\1${fr(1)}${mr}\\1\\1(?!\\1)`), Mf = RegExp(`^([*_])${fr(0)}${mr}\\1(?!\\1)`), Of = RegExp(`^(==)${fr(0)}${mr}\\1`), Pf = RegExp(`^(~~)${fr(0)}${mr}\\1`), Lf = /^(:[a-zA-Z0-9-_]+:)/, Df = /^\\([^0-9A-Za-z\s])/, Ff = /\\([^0-9A-Za-z\s])/g, Uf = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/, Vf = /^\n+/, $f = /^([ \t]*)/, zf = /(?:^|\n)( *)$/, Fo = "(?:\\d+\\.)", Uo = "(?:[*+-])";
11814
+ const Jh = ["children", "options"], ui = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { class: "className", for: "htmlFor" }), hi = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, Qh = ["style", "script", "pre"], ef = ["src", "href", "data", "formAction", "srcDoc", "action"], tf = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, nf = /\n{2,}$/, fi = /^(\s*>[\s\S]*?)(?=\n\n|$)/, rf = /^ *> ?/gm, of = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, sf = /^ {2,}\n/, af = /^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/, mi = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, pi = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, lf = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, cf = /^(?:\n *)*\n/, df = /\r\n?/g, uf = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, hf = /^\[\^([^\]]+)]/, ff = /\f/g, mf = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, pf = /^\s*?\[(x|\s)\]/, gi = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, _i = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Ei = /^([^\n]+)\n *(=|-)\2{2,} *\n/, Fr = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, gf = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, bi = /^<!--[\s\S]*?(?:-->)/, _f = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Ur = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Ef = /^\{.*\}$/, bf = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, yf = /^<([^ >]+[:@\/][^ >]+)>/, vf = /-([a-z])?/gi, yi = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, Sf = /^[^\n]+(?: \n|\n{2,})/, wf = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, Cf = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, Tf = /^\[([^\]]*)\] ?\[([^\]]*)\]/, xf = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Nf = /\t/g, kf = /(^ *\||\| *$)/g, If = /^ *:-+: *$/, Af = /^ *:-+ *$/, Rf = /^ *-+: *$/, fr = (e) => `(?=[\\s\\S]+?\\1${e ? "\\1" : ""})`, mr = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", Mf = RegExp(`^([*_])\\1${fr(1)}${mr}\\1\\1(?!\\1)`), Of = RegExp(`^([*_])${fr(0)}${mr}\\1(?!\\1)`), Pf = RegExp(`^(==)${fr(0)}${mr}\\1`), Lf = RegExp(`^(~~)${fr(0)}${mr}\\1`), Df = /^(:[a-zA-Z0-9-_]+:)/, Ff = /^\\([^0-9A-Za-z\s])/, Uf = /\\([^0-9A-Za-z\s])/g, Vf = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/, $f = /^\n+/, zf = /^([ \t]*)/, Bf = /(?:^|\n)( *)$/, Fo = "(?:\\d+\\.)", Uo = "(?:[*+-])";
11810
11815
  function ml(e) {
11811
11816
  return "( *)(" + (e === 1 ? Fo : Uo) + ") +";
11812
11817
  }
@@ -11814,23 +11819,23 @@ const pl = ml(1), gl = ml(2);
11814
11819
  function _l(e) {
11815
11820
  return RegExp("^" + (e === 1 ? pl : gl));
11816
11821
  }
11817
- const Bf = _l(1), Hf = _l(2);
11822
+ const Hf = _l(1), jf = _l(2);
11818
11823
  function El(e) {
11819
11824
  return RegExp("^" + (e === 1 ? pl : gl) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? Fo : Uo) + " )[^\\n]*)*(\\n|$)", "gm");
11820
11825
  }
11821
- const jf = El(1), Gf = El(2);
11826
+ const Gf = El(1), Wf = El(2);
11822
11827
  function bl(e) {
11823
11828
  const t = e === 1 ? Fo : Uo;
11824
11829
  return RegExp("^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)");
11825
11830
  }
11826
11831
  const yl = bl(1), vl = bl(2);
11827
11832
  function vi(e, t) {
11828
- const n = t === 1, r = n ? yl : vl, o = n ? jf : Gf, s = n ? Bf : Hf;
11833
+ const n = t === 1, r = n ? yl : vl, o = n ? Gf : Wf, s = n ? Hf : jf;
11829
11834
  return { t: (l) => s.test(l), o: qt(function(l, i) {
11830
- const c = zf.exec(i.prevCapture);
11835
+ const c = Bf.exec(i.prevCapture);
11831
11836
  return c && (i.list || !i.inline && !i.simple) ? r.exec(l = c[1] + l) : null;
11832
11837
  }), i: 1, u(l, i, c) {
11833
- const d = n ? +l[2] : void 0, m = l[0].replace(tf, `
11838
+ const d = n ? +l[2] : void 0, m = l[0].replace(nf, `
11834
11839
  `).match(o);
11835
11840
  let u = !1;
11836
11841
  return { items: m.map(function(p, h) {
@@ -11840,9 +11845,9 @@ function vi(e, t) {
11840
11845
  u = g;
11841
11846
  const E = c.inline, C = c.list;
11842
11847
  let T;
11843
- c.list = !0, g ? (c.inline = !1, T = Rn(y) + `
11848
+ c.list = !0, g ? (c.inline = !1, T = An(y) + `
11844
11849
 
11845
- `) : (c.inline = !0, T = Rn(y));
11850
+ `) : (c.inline = !0, T = An(y));
11846
11851
  const S = i(T, c);
11847
11852
  return c.inline = E, c.list = C, S;
11848
11853
  }), ordered: n, start: d };
@@ -11850,11 +11855,11 @@ function vi(e, t) {
11850
11855
  return e("li", { key: m }, i(d, c));
11851
11856
  })) };
11852
11857
  }
11853
- const Wf = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), qf = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;
11858
+ const qf = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Yf = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;
11854
11859
  function Si(e) {
11855
11860
  return typeof e == "string";
11856
11861
  }
11857
- function Rn(e) {
11862
+ function An(e) {
11858
11863
  let t = e.length;
11859
11864
  for (; t > 0 && e[t - 1] <= " "; ) t--;
11860
11865
  return e.slice(0, t);
@@ -11862,7 +11867,7 @@ function Rn(e) {
11862
11867
  function Jn(e, t) {
11863
11868
  return e.startsWith(t);
11864
11869
  }
11865
- function Yf(e, t, n) {
11870
+ function Kf(e, t, n) {
11866
11871
  if (Array.isArray(n)) {
11867
11872
  for (let r = 0; r < n.length; r++) if (Jn(e, n[r])) return !0;
11868
11873
  return !1;
@@ -11872,8 +11877,8 @@ function Yf(e, t, n) {
11872
11877
  function xn(e) {
11873
11878
  return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
11874
11879
  }
11875
- function Kf(e) {
11876
- return Rf.test(e) ? "right" : kf.test(e) ? "center" : If.test(e) ? "left" : null;
11880
+ function Zf(e) {
11881
+ return Rf.test(e) ? "right" : If.test(e) ? "center" : Af.test(e) ? "left" : null;
11877
11882
  }
11878
11883
  function wi(e, t, n, r) {
11879
11884
  const o = n.inTable;
@@ -11888,9 +11893,9 @@ function wi(e, t, n, r) {
11888
11893
  c.trim() === "|" && (i(), r) ? d !== 0 && d !== m.length - 1 && s.push([]) : l += c;
11889
11894
  }), i(), n.inTable = o, s;
11890
11895
  }
11891
- function Zf(e, t, n) {
11896
+ function Xf(e, t, n) {
11892
11897
  n.inline = !0;
11893
- const r = e[2] ? e[2].replace(Nf, "").split("|").map(Kf) : [], o = e[3] ? (function(l, i, c) {
11898
+ const r = e[2] ? e[2].replace(kf, "").split("|").map(Zf) : [], o = e[3] ? (function(l, i, c) {
11894
11899
  return l.trim().split(`
11895
11900
  `).map(function(d) {
11896
11901
  return wi(d, i, c, !0);
@@ -11904,7 +11909,7 @@ function Ci(e, t) {
11904
11909
  function qt(e) {
11905
11910
  return e.inline = 1, e;
11906
11911
  }
11907
- function Rt(e) {
11912
+ function At(e) {
11908
11913
  return qt(function(t, n) {
11909
11914
  return n.inline ? e.exec(t) : null;
11910
11915
  });
@@ -11924,18 +11929,18 @@ function Yn(e) {
11924
11929
  return e.exec(t);
11925
11930
  });
11926
11931
  }
11927
- const Xf = /(javascript|vbscript|data(?!:image)):/i;
11928
- function Jf(e) {
11932
+ const Jf = /(javascript|vbscript|data(?!:image)):/i;
11933
+ function Qf(e) {
11929
11934
  try {
11930
11935
  const t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "");
11931
- if (Xf.test(t)) return null;
11936
+ if (Jf.test(t)) return null;
11932
11937
  } catch {
11933
11938
  return null;
11934
11939
  }
11935
11940
  return e;
11936
11941
  }
11937
11942
  function ot(e) {
11938
- return e && e.replace(Ff, "$1");
11943
+ return e && e.replace(Uf, "$1");
11939
11944
  }
11940
11945
  function Qn(e, t, n) {
11941
11946
  const r = n.inline || !1, o = n.simple || !1;
@@ -11943,13 +11948,13 @@ function Qn(e, t, n) {
11943
11948
  const s = e(t, n);
11944
11949
  return n.inline = r, n.simple = o, s;
11945
11950
  }
11946
- function Qf(e, t, n) {
11951
+ function em(e, t, n) {
11947
11952
  const r = n.inline || !1, o = n.simple || !1;
11948
11953
  n.inline = !1, n.simple = !0;
11949
11954
  const s = e(t, n);
11950
11955
  return n.inline = r, n.simple = o, s;
11951
11956
  }
11952
- function em(e, t, n) {
11957
+ function tm(e, t, n) {
11953
11958
  const r = n.inline || !1;
11954
11959
  n.inline = !1;
11955
11960
  const o = e(t, n);
@@ -11962,7 +11967,7 @@ function $r() {
11962
11967
  function zr() {
11963
11968
  return null;
11964
11969
  }
11965
- function tm(...e) {
11970
+ function nm(...e) {
11966
11971
  return e.filter(Boolean).join(" ");
11967
11972
  }
11968
11973
  function Br(e, t, n) {
@@ -11971,9 +11976,9 @@ function Br(e, t, n) {
11971
11976
  for (; o.length && (r = r[o[0]], r !== void 0); ) o.shift();
11972
11977
  return r || n;
11973
11978
  }
11974
- function nm(e = "", t = {}) {
11975
- t.overrides = t.overrides || {}, t.namedCodesToUnicode = t.namedCodesToUnicode ? At({}, hi, t.namedCodesToUnicode) : hi;
11976
- const n = t.slugify || xn, r = t.sanitizer || Jf, o = t.createElement || $e, s = [fi, mi, pi, t.enforceAtxHeadings ? _i : gi, Ei, yi, yl, vl], l = [...s, vf, Fr, bi, Ur];
11979
+ function rm(e = "", t = {}) {
11980
+ t.overrides = t.overrides || {}, t.namedCodesToUnicode = t.namedCodesToUnicode ? Rt({}, hi, t.namedCodesToUnicode) : hi;
11981
+ const n = t.slugify || xn, r = t.sanitizer || Qf, o = t.createElement || $e, s = [fi, mi, pi, t.enforceAtxHeadings ? _i : gi, Ei, yi, yl, vl], l = [...s, Sf, Fr, bi, Ur];
11977
11982
  function i(f, g) {
11978
11983
  for (let E = 0; E < f.length; E++) if (f[E].test(g)) return !0;
11979
11984
  return !1;
@@ -11983,13 +11988,13 @@ function nm(e = "", t = {}) {
11983
11988
  return o((function(T, S) {
11984
11989
  const x = Br(S, T);
11985
11990
  return x ? typeof x == "function" || typeof x == "object" && "render" in x ? x : Br(S, T + ".component", T) : T;
11986
- })(f, t.overrides), At({}, g, C, { className: tm(g?.className, C.className) || void 0 }), ...E);
11991
+ })(f, t.overrides), Rt({}, g, C, { className: nm(g?.className, C.className) || void 0 }), ...E);
11987
11992
  }
11988
11993
  function d(f) {
11989
- f = f.replace(ff, "");
11994
+ f = f.replace(mf, "");
11990
11995
  let g = !1;
11991
- t.forceInline ? g = !0 : t.forceBlock || (g = Tf.test(f) === !1);
11992
- const E = b(_(g ? f : Rn(f).replace(Vf, "") + `
11996
+ t.forceInline ? g = !0 : t.forceBlock || (g = xf.test(f) === !1);
11997
+ const E = b(_(g ? f : An(f).replace($f, "") + `
11993
11998
 
11994
11999
  `, { inline: g }));
11995
12000
  for (; Si(E[E.length - 1]) && !E[E.length - 1].trim(); ) E.pop();
@@ -12005,12 +12010,12 @@ function nm(e = "", t = {}) {
12005
12010
  }
12006
12011
  function m(f, g) {
12007
12012
  if (!g || !g.trim()) return null;
12008
- const E = g.match(ef);
12013
+ const E = g.match(tf);
12009
12014
  return E ? E.reduce(function(C, T) {
12010
12015
  const S = T.indexOf("=");
12011
12016
  if (S !== -1) {
12012
12017
  const x = (function(M) {
12013
- return M.indexOf("-") !== -1 && M.match(gf) === null && (M = M.replace(yf, function(k, D) {
12018
+ return M.indexOf("-") !== -1 && M.match(_f) === null && (M = M.replace(vf, function(k, D) {
12014
12019
  return D.toUpperCase();
12015
12020
  })), M;
12016
12021
  })(T.slice(0, S)).trim(), w = (function(M) {
@@ -12019,13 +12024,13 @@ function nm(e = "", t = {}) {
12019
12024
  })(T.slice(S + 1).trim()), v = ui[x] || x;
12020
12025
  if (v === "ref") return C;
12021
12026
  const N = C[v] = (function(M, k, D, H) {
12022
- return k === "style" ? (function($) {
12027
+ return k === "style" ? (function(z) {
12023
12028
  const W = [];
12024
- let Z = "", A = !1, me = !1, he = "";
12025
- if (!$) return W;
12026
- for (let J = 0; J < $.length; J++) {
12027
- const ee = $[J];
12028
- if (ee !== '"' && ee !== "'" || A || (me ? ee === he && (me = !1, he = "") : (me = !0, he = ee)), ee === "(" && Z.endsWith("url") ? A = !0 : ee === ")" && A && (A = !1), ee !== ";" || me || A) Z += ee;
12029
+ let Z = "", R = !1, me = !1, he = "";
12030
+ if (!z) return W;
12031
+ for (let J = 0; J < z.length; J++) {
12032
+ const ee = z[J];
12033
+ if (ee !== '"' && ee !== "'" || R || (me ? ee === he && (me = !1, he = "") : (me = !0, he = ee)), ee === "(" && Z.endsWith("url") ? R = !0 : ee === ")" && R && (R = !1), ee !== ";" || me || R) Z += ee;
12029
12034
  else {
12030
12035
  const se = Z.trim();
12031
12036
  if (se) {
@@ -12047,9 +12052,9 @@ function nm(e = "", t = {}) {
12047
12052
  }
12048
12053
  }
12049
12054
  return W;
12050
- })(D).reduce(function($, [W, Z]) {
12051
- return $[W.replace(/(-[a-z])/g, (A) => A[1].toUpperCase())] = H(Z, M, W), $;
12052
- }, {}) : Qh.indexOf(k) !== -1 ? H(ot(D), M, k) : (D.match(_f) && (D = ot(D.slice(1, D.length - 1))), D === "true" || D !== "false" && D);
12055
+ })(D).reduce(function(z, [W, Z]) {
12056
+ return z[W.replace(/(-[a-z])/g, (R) => R[1].toUpperCase())] = H(Z, M, W), z;
12057
+ }, {}) : ef.indexOf(k) !== -1 ? H(ot(D), M, k) : (D.match(Ef) && (D = ot(D.slice(1, D.length - 1))), D === "true" || D !== "false" && D);
12053
12058
  })(f, x, w, r);
12054
12059
  typeof N == "string" && (Fr.test(N) || Ur.test(N)) && (C[v] = d(N.trim()));
12055
12060
  } else T !== "style" && (C[ui[T] || T] = !0);
@@ -12057,31 +12062,31 @@ function nm(e = "", t = {}) {
12057
12062
  }, {}) : null;
12058
12063
  }
12059
12064
  const u = [], p = {}, h = { 0: { t: [">"], o: lt(fi), i: 1, u(f, g, E) {
12060
- const [, C, T] = f[0].replace(nf, "").match(rf);
12065
+ const [, C, T] = f[0].replace(rf, "").match(of);
12061
12066
  return { alert: C, children: g(T, E) };
12062
12067
  }, l(f, g, E) {
12063
12068
  const C = { key: E.key };
12064
12069
  return f.alert && (C.className = "markdown-alert-" + n(f.alert.toLowerCase(), xn), f.children.unshift({ attrs: {}, children: [{ type: "27", text: f.alert }], noInnerParse: !0, type: "11", tag: "header" })), c("blockquote", C, g(f.children, E));
12065
- } }, 1: { t: [" "], o: Yn(of), i: 1, u: $r, l: (f, g, E) => c("br", { key: E.key }) }, 2: { t: ["--", "__", "**", "- ", "* ", "_ "], o: lt(sf), i: 1, u: $r, l: (f, g, E) => c("hr", { key: E.key }) }, 3: { t: [" "], o: lt(pi), i: 0, u: (f) => ({ lang: void 0, text: ot(Rn(f[0].replace(/^ {4}/gm, ""))) }), l: (f, g, E) => c("pre", { key: E.key }, c("code", At({}, f.attrs, { className: f.lang ? "lang-" + f.lang : "" }), f.text)) }, 4: { t: ["```", "~~~"], o: lt(mi), i: 0, u: (f) => ({ attrs: m("code", f[3] || ""), lang: f[2] || void 0, text: f[4], type: "3" }) }, 5: { t: ["`"], o: _t(af), i: 3, u: (f) => ({ text: ot(f[2]) }), l: (f, g, E) => c("code", { key: E.key }, f.text) }, 6: { t: ["[^"], o: lt(df), i: 0, u: (f) => (u.push({ footnote: f[2], identifier: f[1] }), {}), l: zr }, 7: { t: ["[^"], o: Rt(uf), i: 1, u: (f) => ({ target: "#" + n(f[1], xn), text: f[1] }), l: (f, g, E) => c("a", { key: E.key, href: r(f.target, "a", "href") }, c("sup", { key: E.key }, f.text)) }, 8: { t: ["[ ]", "[x]"], o: Rt(mf), i: 1, u: (f) => ({ completed: f[1].toLowerCase() === "x" }), l: (f, g, E) => c("input", { checked: f.completed, key: E.key, readOnly: !0, type: "checkbox" }) }, 9: { t: ["#"], o: lt(t.enforceAtxHeadings ? _i : gi), i: 1, u: (f, g, E) => ({ children: Qn(g, f[2], E), id: n(f[2], xn), level: f[1].length }), l: (f, g, E) => c("h" + f.level, { id: f.id, key: E.key }, g(f.children, E)) }, 10: { t: (f) => {
12070
+ } }, 1: { t: [" "], o: Yn(sf), i: 1, u: $r, l: (f, g, E) => c("br", { key: E.key }) }, 2: { t: ["--", "__", "**", "- ", "* ", "_ "], o: lt(af), i: 1, u: $r, l: (f, g, E) => c("hr", { key: E.key }) }, 3: { t: [" "], o: lt(pi), i: 0, u: (f) => ({ lang: void 0, text: ot(An(f[0].replace(/^ {4}/gm, ""))) }), l: (f, g, E) => c("pre", { key: E.key }, c("code", Rt({}, f.attrs, { className: f.lang ? "lang-" + f.lang : "" }), f.text)) }, 4: { t: ["```", "~~~"], o: lt(mi), i: 0, u: (f) => ({ attrs: m("code", f[3] || ""), lang: f[2] || void 0, text: f[4], type: "3" }) }, 5: { t: ["`"], o: _t(lf), i: 3, u: (f) => ({ text: ot(f[2]) }), l: (f, g, E) => c("code", { key: E.key }, f.text) }, 6: { t: ["[^"], o: lt(uf), i: 0, u: (f) => (u.push({ footnote: f[2], identifier: f[1] }), {}), l: zr }, 7: { t: ["[^"], o: At(hf), i: 1, u: (f) => ({ target: "#" + n(f[1], xn), text: f[1] }), l: (f, g, E) => c("a", { key: E.key, href: r(f.target, "a", "href") }, c("sup", { key: E.key }, f.text)) }, 8: { t: ["[ ]", "[x]"], o: At(pf), i: 1, u: (f) => ({ completed: f[1].toLowerCase() === "x" }), l: (f, g, E) => c("input", { checked: f.completed, key: E.key, readOnly: !0, type: "checkbox" }) }, 9: { t: ["#"], o: lt(t.enforceAtxHeadings ? _i : gi), i: 1, u: (f, g, E) => ({ children: Qn(g, f[2], E), id: n(f[2], xn), level: f[1].length }), l: (f, g, E) => c("h" + f.level, { id: f.id, key: E.key }, g(f.children, E)) }, 10: { t: (f) => {
12066
12071
  const g = f.indexOf(`
12067
12072
  `);
12068
12073
  return g > 0 && g < f.length - 1 && (f[g + 1] === "=" || f[g + 1] === "-");
12069
12074
  }, o: lt(Ei), i: 1, u: (f, g, E) => ({ children: Qn(g, f[1], E), level: f[2] === "=" ? 1 : 2, type: "9" }) }, 11: { t: ["<"], o: Yn(Fr), i: 1, u(f, g, E) {
12070
- const [, C] = f[3].match($f), T = RegExp("^" + C, "gm"), S = f[3].replace(T, ""), x = i(l, S) ? em : Qn, w = f[1].toLowerCase(), v = Jh.indexOf(w) !== -1, N = (v ? w : f[1]).trim(), M = { attrs: m(N, f[2]), noInnerParse: v, tag: N };
12075
+ const [, C] = f[3].match(zf), T = RegExp("^" + C, "gm"), S = f[3].replace(T, ""), x = i(l, S) ? tm : Qn, w = f[1].toLowerCase(), v = Qh.indexOf(w) !== -1, N = (v ? w : f[1]).trim(), M = { attrs: m(N, f[2]), noInnerParse: v, tag: N };
12071
12076
  if (E.inAnchor = E.inAnchor || w === "a", v) M.text = f[3];
12072
12077
  else {
12073
12078
  const k = E.inHTML;
12074
12079
  E.inHTML = !0, M.children = x(g, S, E), E.inHTML = k;
12075
12080
  }
12076
12081
  return E.inAnchor = !1, M;
12077
- }, l: (f, g, E) => c(f.tag, At({ key: E.key }, f.attrs), f.text || (f.children ? g(f.children, E) : "")) }, 13: { t: ["<"], o: Yn(Ur), i: 1, u(f) {
12082
+ }, l: (f, g, E) => c(f.tag, Rt({ key: E.key }, f.attrs), f.text || (f.children ? g(f.children, E) : "")) }, 13: { t: ["<"], o: Yn(Ur), i: 1, u(f) {
12078
12083
  const g = f[1].trim();
12079
12084
  return { attrs: m(g, f[2] || ""), tag: g };
12080
- }, l: (f, g, E) => c(f.tag, At({}, f.attrs, { key: E.key })) }, 12: { t: ["<!--"], o: Yn(bi), i: 1, u: () => ({}), l: zr }, 14: { t: ["!["], o: _t(qf), i: 1, u: (f) => ({ alt: ot(f[1]), target: ot(f[2]), title: ot(f[3]) }), l: (f, g, E) => c("img", { key: E.key, alt: f.alt || void 0, title: f.title || void 0, src: r(f.target, "img", "src") }) }, 15: { t: ["["], o: Rt(Wf), i: 3, u: (f, g, E) => ({ children: Qf(g, f[1], E), target: ot(f[2]), title: ot(f[3]) }), l: (f, g, E) => c("a", { key: E.key, href: r(f.target, "a", "href"), title: f.title }, g(f.children, E)) }, 16: { t: ["<"], o: Rt(bf), i: 0, u(f) {
12085
+ }, l: (f, g, E) => c(f.tag, Rt({}, f.attrs, { key: E.key })) }, 12: { t: ["<!--"], o: Yn(bi), i: 1, u: () => ({}), l: zr }, 14: { t: ["!["], o: _t(Yf), i: 1, u: (f) => ({ alt: ot(f[1]), target: ot(f[2]), title: ot(f[3]) }), l: (f, g, E) => c("img", { key: E.key, alt: f.alt || void 0, title: f.title || void 0, src: r(f.target, "img", "src") }) }, 15: { t: ["["], o: At(qf), i: 3, u: (f, g, E) => ({ children: em(g, f[1], E), target: ot(f[2]), title: ot(f[3]) }), l: (f, g, E) => c("a", { key: E.key, href: r(f.target, "a", "href"), title: f.title }, g(f.children, E)) }, 16: { t: ["<"], o: At(yf), i: 0, u(f) {
12081
12086
  let g = f[1], E = !1;
12082
12087
  return g.indexOf("@") !== -1 && g.indexOf("//") === -1 && (E = !0, g = g.replace("mailto:", "")), { children: [{ text: g, type: "27" }], target: E ? "mailto:" + g : g, type: "15" };
12083
- } }, 17: { t: (f, g) => !g.inAnchor && !t.disableAutoLink && (Jn(f, "http://") || Jn(f, "https://")), o: Rt(Ef), i: 0, u: (f) => ({ children: [{ text: f[1], type: "27" }], target: f[1], title: void 0, type: "15" }) }, 20: vi(c, 1), 33: vi(c, 2), 19: { t: [`
12084
- `], o: lt(lf), i: 3, u: $r, l: () => `
12088
+ } }, 17: { t: (f, g) => !g.inAnchor && !t.disableAutoLink && (Jn(f, "http://") || Jn(f, "https://")), o: At(bf), i: 0, u: (f) => ({ children: [{ text: f[1], type: "27" }], target: f[1], title: void 0, type: "15" }) }, 20: vi(c, 1), 33: vi(c, 2), 19: { t: [`
12089
+ `], o: lt(cf), i: 3, u: $r, l: () => `
12085
12090
  ` }, 21: { o: qt(function(f, g) {
12086
12091
  if (g.inline || g.simple || g.inHTML && f.indexOf(`
12087
12092
 
@@ -12095,9 +12100,9 @@ function nm(e = "", t = {}) {
12095
12100
  if (i(s, x) || (E += x, S === -1 || !x.trim())) break;
12096
12101
  C = S + 1;
12097
12102
  }
12098
- const T = Rn(E);
12103
+ const T = An(E);
12099
12104
  return T === "" ? null : [E, , T];
12100
- }), i: 3, u: Vr, l: (f, g, E) => c("p", { key: E.key }, g(f.children, E)) }, 22: { t: ["["], o: Rt(Sf), i: 0, u: (f) => (p[f[1]] = { target: f[2], title: f[4] }, {}), l: zr }, 23: { t: ["!["], o: _t(wf), i: 0, u: (f) => ({ alt: f[1] ? ot(f[1]) : void 0, ref: f[2] }), l: (f, g, E) => p[f.ref] ? c("img", { key: E.key, alt: f.alt, src: r(p[f.ref].target, "img", "src"), title: p[f.ref].title }) : null }, 24: { t: (f) => f[0] === "[" && f.indexOf("](") === -1, o: Rt(Cf), i: 0, u: (f, g, E) => ({ children: g(f[1], E), fallbackChildren: f[0], ref: f[2] }), l: (f, g, E) => p[f.ref] ? c("a", { key: E.key, href: r(p[f.ref].target, "a", "href"), title: p[f.ref].title }, g(f.children, E)) : c("span", { key: E.key }, f.fallbackChildren) }, 25: { t: ["|"], o: lt(yi), i: 1, u: Zf, l(f, g, E) {
12105
+ }), i: 3, u: Vr, l: (f, g, E) => c("p", { key: E.key }, g(f.children, E)) }, 22: { t: ["["], o: At(wf), i: 0, u: (f) => (p[f[1]] = { target: f[2], title: f[4] }, {}), l: zr }, 23: { t: ["!["], o: _t(Cf), i: 0, u: (f) => ({ alt: f[1] ? ot(f[1]) : void 0, ref: f[2] }), l: (f, g, E) => p[f.ref] ? c("img", { key: E.key, alt: f.alt, src: r(p[f.ref].target, "img", "src"), title: p[f.ref].title }) : null }, 24: { t: (f) => f[0] === "[" && f.indexOf("](") === -1, o: At(Tf), i: 0, u: (f, g, E) => ({ children: g(f[1], E), fallbackChildren: f[0], ref: f[2] }), l: (f, g, E) => p[f.ref] ? c("a", { key: E.key, href: r(p[f.ref].target, "a", "href"), title: p[f.ref].title }, g(f.children, E)) : c("span", { key: E.key }, f.fallbackChildren) }, 25: { t: ["|"], o: lt(yi), i: 1, u: Xf, l(f, g, E) {
12101
12106
  const C = f;
12102
12107
  return c("table", { key: E.key }, c("thead", null, c("tr", null, C.header.map(function(T, S) {
12103
12108
  return c("th", { key: S, style: Ci(C, S) }, g(T, E));
@@ -12108,14 +12113,14 @@ function nm(e = "", t = {}) {
12108
12113
  })));
12109
12114
  } }, 27: { o: qt(function(f, g) {
12110
12115
  let E;
12111
- return Jn(f, ":") && (E = Lf.exec(f)), E || Uf.exec(f);
12116
+ return Jn(f, ":") && (E = Df.exec(f)), E || Vf.exec(f);
12112
12117
  }), i: 4, u(f) {
12113
12118
  const g = f[0];
12114
- return { text: g.indexOf("&") === -1 ? g : g.replace(pf, (E, C) => t.namedCodesToUnicode[C] || E) };
12115
- }, l: (f) => f.text }, 28: { t: ["**", "__"], o: _t(Af), i: 2, u: (f, g, E) => ({ children: g(f[2], E) }), l: (f, g, E) => c("strong", { key: E.key }, g(f.children, E)) }, 29: { t: (f) => {
12119
+ return { text: g.indexOf("&") === -1 ? g : g.replace(gf, (E, C) => t.namedCodesToUnicode[C] || E) };
12120
+ }, l: (f) => f.text }, 28: { t: ["**", "__"], o: _t(Mf), i: 2, u: (f, g, E) => ({ children: g(f[2], E) }), l: (f, g, E) => c("strong", { key: E.key }, g(f.children, E)) }, 29: { t: (f) => {
12116
12121
  const g = f[0];
12117
12122
  return (g === "*" || g === "_") && f[1] !== g;
12118
- }, o: _t(Mf), i: 3, u: (f, g, E) => ({ children: g(f[2], E) }), l: (f, g, E) => c("em", { key: E.key }, g(f.children, E)) }, 30: { t: ["\\"], o: _t(Df), i: 1, u: (f) => ({ text: f[1], type: "27" }) }, 31: { t: ["=="], o: _t(Of), i: 3, u: Vr, l: (f, g, E) => c("mark", { key: E.key }, g(f.children, E)) }, 32: { t: ["~~"], o: _t(Pf), i: 3, u: Vr, l: (f, g, E) => c("del", { key: E.key }, g(f.children, E)) } };
12123
+ }, o: _t(Of), i: 3, u: (f, g, E) => ({ children: g(f[2], E) }), l: (f, g, E) => c("em", { key: E.key }, g(f.children, E)) }, 30: { t: ["\\"], o: _t(Ff), i: 1, u: (f) => ({ text: f[1], type: "27" }) }, 31: { t: ["=="], o: _t(Pf), i: 3, u: Vr, l: (f, g, E) => c("mark", { key: E.key }, g(f.children, E)) }, 32: { t: ["~~"], o: _t(Lf), i: 3, u: Vr, l: (f, g, E) => c("del", { key: E.key }, g(f.children, E)) } };
12119
12124
  t.disableParsingRawHTML === !0 && (delete h[11], delete h[13]);
12120
12125
  const _ = (function(f) {
12121
12126
  var g = Object.keys(f);
@@ -12123,7 +12128,7 @@ function nm(e = "", t = {}) {
12123
12128
  var S = [];
12124
12129
  if (T.prevCapture = T.prevCapture || "", C.trim()) for (; C; ) for (var x = 0; x < g.length; ) {
12125
12130
  var w = g[x], v = f[w];
12126
- if (!v.t || Yf(C, T, v.t)) {
12131
+ if (!v.t || Kf(C, T, v.t)) {
12127
12132
  var N = v.o(C, T);
12128
12133
  if (N && N[0]) {
12129
12134
  C = C.substring(N[0].length);
@@ -12140,8 +12145,8 @@ function nm(e = "", t = {}) {
12140
12145
  return f[C].i - f[T].i || (C < T ? -1 : 1);
12141
12146
  }), function(C, T) {
12142
12147
  return E((function(S) {
12143
- return S.replace(cf, `
12144
- `).replace(hf, "").replace(xf, " ");
12148
+ return S.replace(df, `
12149
+ `).replace(ff, "").replace(Nf, " ");
12145
12150
  })(C), T);
12146
12151
  };
12147
12152
  })(h), b = /* @__PURE__ */ (function(f, g) {
@@ -12166,35 +12171,35 @@ function nm(e = "", t = {}) {
12166
12171
  return c("div", { id: n(f.identifier, xn), key: f.identifier }, f.identifier, b(_(f.footnote, { inline: !0 })));
12167
12172
  }))) : y;
12168
12173
  }
12169
- const rm = (e) => {
12174
+ const om = (e) => {
12170
12175
  let { children: t, options: n } = e, r = (function(o, s) {
12171
12176
  if (o == null) return {};
12172
12177
  var l, i, c = {}, d = Object.keys(o);
12173
12178
  for (i = 0; i < d.length; i++) s.indexOf(l = d[i]) >= 0 || (c[l] = o[l]);
12174
12179
  return c;
12175
- })(e, Xh);
12176
- return vt(nm(t ?? "", n), r);
12177
- }, om = {
12180
+ })(e, Jh);
12181
+ return vt(rm(t ?? "", n), r);
12182
+ }, sm = {
12178
12183
  disableParsingRawHTML: !0,
12179
12184
  forceBlock: !0
12180
12185
  };
12181
12186
  function no({ children: e }) {
12182
- return /* @__PURE__ */ a(rm, { options: om, children: e });
12187
+ return /* @__PURE__ */ a(om, { options: sm, children: e });
12183
12188
  }
12184
- const sm = ze(
12185
- () => Promise.resolve().then(() => fm).then((e) => ({ default: e.Pills }))
12186
- ), im = ze(
12187
- () => import("./medassist-widget-MultiSelect-BnExX-Ty.js").then((e) => ({ default: e.MultiSelectGroup }))
12189
+ const im = ze(
12190
+ () => Promise.resolve().then(() => mm).then((e) => ({ default: e.Pills }))
12188
12191
  ), am = ze(
12189
- () => import("./medassist-widget-FocusCarousel-BsLIZftX.js").then((e) => ({ default: e.FocusCarousel }))
12192
+ () => import("./medassist-widget-MultiSelect-BnExX-Ty.js").then((e) => ({ default: e.MultiSelectGroup }))
12190
12193
  ), lm = ze(
12191
- () => import("./medassist-widget-DoctorCard-DH9Bk806.js").then((e) => ({ default: e.DoctorCard }))
12194
+ () => import("./medassist-widget-FocusCarousel-BsLIZftX.js").then((e) => ({ default: e.FocusCarousel }))
12192
12195
  ), cm = ze(
12193
- () => import("./medassist-widget-CardList-CYHOG9Tn.js").then((e) => ({ default: e.CardList }))
12196
+ () => import("./medassist-widget-DoctorCard-H-PKOqlH.js").then((e) => ({ default: e.DoctorCard }))
12194
12197
  ), dm = ze(
12198
+ () => import("./medassist-widget-CardList-CYHOG9Tn.js").then((e) => ({ default: e.CardList }))
12199
+ ), um = ze(
12195
12200
  () => import("./medassist-widget-MediaCard-yhz2Z0ZQ.js").then((e) => ({ default: e.MediaCard }))
12196
12201
  );
12197
- function Re({ className: e }) {
12202
+ function Ae({ className: e }) {
12198
12203
  return /* @__PURE__ */ a(
12199
12204
  "div",
12200
12205
  {
@@ -12211,9 +12216,9 @@ function Re({ className: e }) {
12211
12216
  function $t({ variant: e }) {
12212
12217
  return e === "pill" ? /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-2 mt-3", "aria-busy": !0, "aria-label": "Loading options", children: [
12213
12218
  /* @__PURE__ */ a(Kn, {}),
12214
- /* @__PURE__ */ a(Re, { className: "h-8 w-20 rounded-full" }),
12215
- /* @__PURE__ */ a(Re, { className: "h-8 w-24 rounded-full" }),
12216
- /* @__PURE__ */ a(Re, { className: "h-8 w-16 rounded-full" })
12219
+ /* @__PURE__ */ a(Ae, { className: "h-8 w-20 rounded-full" }),
12220
+ /* @__PURE__ */ a(Ae, { className: "h-8 w-24 rounded-full" }),
12221
+ /* @__PURE__ */ a(Ae, { className: "h-8 w-16 rounded-full" })
12217
12222
  ] }) : e === "media" ? /* @__PURE__ */ a(
12218
12223
  "div",
12219
12224
  {
@@ -12222,10 +12227,10 @@ function $t({ variant: e }) {
12222
12227
  "aria-label": "Loading media",
12223
12228
  children: [
12224
12229
  /* @__PURE__ */ a(Kn, {}),
12225
- /* @__PURE__ */ a(Re, { className: "h-24 w-full rounded-lg" }),
12230
+ /* @__PURE__ */ a(Ae, { className: "h-24 w-full rounded-lg" }),
12226
12231
  /* @__PURE__ */ a("div", { className: "mt-3 space-y-2", children: [
12227
- /* @__PURE__ */ a(Re, { className: "h-3 w-3/4 rounded" }),
12228
- /* @__PURE__ */ a(Re, { className: "h-3 w-1/2 rounded" })
12232
+ /* @__PURE__ */ a(Ae, { className: "h-3 w-3/4 rounded" }),
12233
+ /* @__PURE__ */ a(Ae, { className: "h-3 w-1/2 rounded" })
12229
12234
  ] })
12230
12235
  ]
12231
12236
  }
@@ -12237,13 +12242,13 @@ function $t({ variant: e }) {
12237
12242
  "aria-label": "Loading input",
12238
12243
  children: [
12239
12244
  /* @__PURE__ */ a(Kn, {}),
12240
- /* @__PURE__ */ a(Re, { className: "h-3 w-32 rounded mb-3" }),
12245
+ /* @__PURE__ */ a(Ae, { className: "h-3 w-32 rounded mb-3" }),
12241
12246
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
12242
- /* @__PURE__ */ a(Re, { className: "h-9 w-full rounded-lg" }),
12243
- /* @__PURE__ */ a(Re, { className: "h-9 w-full rounded-lg" }),
12244
- /* @__PURE__ */ a(Re, { className: "h-9 w-full rounded-lg" })
12247
+ /* @__PURE__ */ a(Ae, { className: "h-9 w-full rounded-lg" }),
12248
+ /* @__PURE__ */ a(Ae, { className: "h-9 w-full rounded-lg" }),
12249
+ /* @__PURE__ */ a(Ae, { className: "h-9 w-full rounded-lg" })
12245
12250
  ] }),
12246
- /* @__PURE__ */ a(Re, { className: "mt-4 h-9 w-full rounded-lg" })
12251
+ /* @__PURE__ */ a(Ae, { className: "mt-4 h-9 w-full rounded-lg" })
12247
12252
  ]
12248
12253
  }
12249
12254
  ) : /* @__PURE__ */ a(
@@ -12255,17 +12260,17 @@ function $t({ variant: e }) {
12255
12260
  children: [
12256
12261
  /* @__PURE__ */ a(Kn, {}),
12257
12262
  /* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
12258
- /* @__PURE__ */ a(Re, { className: "h-10 w-10 rounded-full" }),
12263
+ /* @__PURE__ */ a(Ae, { className: "h-10 w-10 rounded-full" }),
12259
12264
  /* @__PURE__ */ a("div", { className: "flex-1 space-y-2", children: [
12260
- /* @__PURE__ */ a(Re, { className: "h-3 w-3/4 rounded" }),
12261
- /* @__PURE__ */ a(Re, { className: "h-3 w-1/2 rounded" })
12265
+ /* @__PURE__ */ a(Ae, { className: "h-3 w-3/4 rounded" }),
12266
+ /* @__PURE__ */ a(Ae, { className: "h-3 w-1/2 rounded" })
12262
12267
  ] })
12263
12268
  ] }),
12264
12269
  /* @__PURE__ */ a("div", { className: "mt-4 space-y-2", children: [
12265
- /* @__PURE__ */ a(Re, { className: "h-3 w-full rounded" }),
12266
- /* @__PURE__ */ a(Re, { className: "h-3 w-5/6 rounded" })
12270
+ /* @__PURE__ */ a(Ae, { className: "h-3 w-full rounded" }),
12271
+ /* @__PURE__ */ a(Ae, { className: "h-3 w-5/6 rounded" })
12267
12272
  ] }),
12268
- /* @__PURE__ */ a(Re, { className: "mt-4 h-9 w-28 rounded-lg" })
12273
+ /* @__PURE__ */ a(Ae, { className: "mt-4 h-9 w-28 rounded-lg" })
12269
12274
  ]
12270
12275
  }
12271
12276
  );
@@ -12273,7 +12278,7 @@ function $t({ variant: e }) {
12273
12278
  function Kn() {
12274
12279
  return /* @__PURE__ */ a("style", { children: "@keyframes shimmer { 100% { transform: translateX(100%); } }" });
12275
12280
  }
12276
- function um({
12281
+ function hm({
12277
12282
  messageId: e,
12278
12283
  tool_key: t,
12279
12284
  entry: n,
@@ -12281,9 +12286,9 @@ function um({
12281
12286
  disabled: o
12282
12287
  }) {
12283
12288
  const [s, l] = F([]), [i, c] = F({}), [d, m] = F(!1), [u, p] = F(5), h = n.component, _ = n.disabled, b = ue(() => n.ui_input, [n.ui_input]);
12284
- z(() => {
12289
+ $(() => {
12285
12290
  h === O.SYNAPSE_COMPONENTS.DOCTOR_CARD && b?.doctor_details && c(b.doctor_details);
12286
- }, [h, b?.doctor_details]), z(() => {
12291
+ }, [h, b?.doctor_details]), $(() => {
12287
12292
  n.disabled || (m(!1), p(5), l([]));
12288
12293
  }, [b, n.disabled]);
12289
12294
  const y = async (v) => {
@@ -12334,9 +12339,9 @@ function um({
12334
12339
  if (!h) return null;
12335
12340
  const S = h === O.SYNAPSE_COMPONENTS.PILL ? b?.options : void 0, x = h === O.SYNAPSE_COMPONENTS.CARD ? b?.cards : void 0, w = h === O.SYNAPSE_COMPONENTS.MEDIA_CARD ? b?.media_card : void 0;
12336
12341
  return /* @__PURE__ */ a("div", { className: "flex justify-end", children: [
12337
- S && /* @__PURE__ */ a(Ae, { fallback: /* @__PURE__ */ a($t, { variant: "pill" }), children: /* @__PURE__ */ a("div", { className: `flex ${S.length > 3 ? "flex-col" : "flex-wrap"} gap-2 mt-3`, children: [
12342
+ S && /* @__PURE__ */ a(Re, { fallback: /* @__PURE__ */ a($t, { variant: "pill" }), children: /* @__PURE__ */ a("div", { className: `flex ${S.length > 3 ? "flex-col" : "flex-wrap"} gap-2 mt-3`, children: [
12338
12343
  S.slice(0, u).map((v, N) => /* @__PURE__ */ a(
12339
- sm,
12344
+ im,
12340
12345
  {
12341
12346
  disabled: _ || o || d,
12342
12347
  text: v?.label || "",
@@ -12358,7 +12363,7 @@ function um({
12358
12363
  "disabled:opacity-50 disabled:cursor-not-allowed"
12359
12364
  ),
12360
12365
  children: [
12361
- /* @__PURE__ */ a(Ao, { className: "w-3.5 h-3.5" }),
12366
+ /* @__PURE__ */ a(Ro, { className: "w-3.5 h-3.5" }),
12362
12367
  "Show ",
12363
12368
  Math.min(5, S.length - u),
12364
12369
  " more"
@@ -12366,10 +12371,10 @@ function um({
12366
12371
  }
12367
12372
  )
12368
12373
  ] }) }),
12369
- h === O.SYNAPSE_COMPONENTS.MULTI && b?.options && /* @__PURE__ */ a(Ae, { fallback: /* @__PURE__ */ a($t, { variant: "input" }), children: /* @__PURE__ */ a("div", { className: "mt-3 space-y-3 break-words overflow-wrap-anywhere whitespace-pre-wrap bg-elicitationBg border border-primary/40 rounded-xl p-4", children: [
12374
+ h === O.SYNAPSE_COMPONENTS.MULTI && b?.options && /* @__PURE__ */ a(Re, { fallback: /* @__PURE__ */ a($t, { variant: "input" }), children: /* @__PURE__ */ a("div", { className: "mt-3 space-y-3 break-words overflow-wrap-anywhere whitespace-pre-wrap bg-elicitationBg border border-primary/40 rounded-xl p-4", children: [
12370
12375
  /* @__PURE__ */ a("h3", { className: "text-xs font-medium text-muted-foreground mb-2", children: "Select multiple options:" }),
12371
12376
  /* @__PURE__ */ a(
12372
- im,
12377
+ am,
12373
12378
  {
12374
12379
  options: C(),
12375
12380
  selectedValues: s,
@@ -12392,8 +12397,8 @@ function um({
12392
12397
  }
12393
12398
  )
12394
12399
  ] }) }),
12395
- T && T.length > 0 ? /* @__PURE__ */ a(Ae, { fallback: /* @__PURE__ */ a($t, { variant: "card" }), children: /* @__PURE__ */ a(
12396
- am,
12400
+ T && T.length > 0 ? /* @__PURE__ */ a(Re, { fallback: /* @__PURE__ */ a($t, { variant: "card" }), children: /* @__PURE__ */ a(
12401
+ lm,
12397
12402
  {
12398
12403
  count: T.length > 1 ? T.length + 1 : T.length,
12399
12404
  renderItem: (v, N) => {
@@ -12425,8 +12430,8 @@ function um({
12425
12430
  }
12426
12431
  );
12427
12432
  const M = T[v];
12428
- return /* @__PURE__ */ a(Ae, { fallback: /* @__PURE__ */ a($t, { variant: "card" }), children: /* @__PURE__ */ a(
12429
- lm,
12433
+ return /* @__PURE__ */ a(Re, { fallback: /* @__PURE__ */ a($t, { variant: "card" }), children: /* @__PURE__ */ a(
12434
+ cm,
12430
12435
  {
12431
12436
  doctor: M,
12432
12437
  doctorDetails: i?.[M.doctor_id],
@@ -12438,8 +12443,8 @@ function um({
12438
12443
  }
12439
12444
  }
12440
12445
  ) }) : null,
12441
- x && /* @__PURE__ */ a(Ae, { fallback: /* @__PURE__ */ a($t, { variant: "card" }), children: /* @__PURE__ */ a(
12442
- cm,
12446
+ x && /* @__PURE__ */ a(Re, { fallback: /* @__PURE__ */ a($t, { variant: "card" }), children: /* @__PURE__ */ a(
12447
+ dm,
12443
12448
  {
12444
12449
  cards: x,
12445
12450
  onSelect: async (v) => {
@@ -12454,10 +12459,10 @@ function um({
12454
12459
  disabled: _ || o
12455
12460
  }
12456
12461
  ) }),
12457
- w && /* @__PURE__ */ a(Ae, { fallback: /* @__PURE__ */ a($t, { variant: "media" }), children: /* @__PURE__ */ a("div", { className: "mt-3", children: /* @__PURE__ */ a(dm, { card: w }) }) })
12462
+ w && /* @__PURE__ */ a(Re, { fallback: /* @__PURE__ */ a($t, { variant: "media" }), children: /* @__PURE__ */ a("div", { className: "mt-3", children: /* @__PURE__ */ a(um, { card: w }) }) })
12458
12463
  ] });
12459
12464
  }
12460
- function hm({
12465
+ function fm({
12461
12466
  id: e,
12462
12467
  role: t,
12463
12468
  content: n,
@@ -12578,7 +12583,7 @@ function hm({
12578
12583
  l?.map((S) => {
12579
12584
  const x = c[S];
12580
12585
  return x ? /* @__PURE__ */ a(
12581
- um,
12586
+ hm,
12582
12587
  {
12583
12588
  messageId: e,
12584
12589
  tool_key: S,
@@ -12674,7 +12679,7 @@ function Sl({
12674
12679
  selected: l = !1
12675
12680
  }) {
12676
12681
  const [i, c] = F(!1), d = Y(null), m = Y(null);
12677
- return z(() => {
12682
+ return $(() => {
12678
12683
  const u = () => {
12679
12684
  if (d.current && m.current) {
12680
12685
  const p = d.current.offsetWidth, h = m.current.scrollWidth;
@@ -12716,8 +12721,8 @@ function Sl({
12716
12721
  }
12717
12722
  ) : null;
12718
12723
  }
12719
- const fm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Pills: Sl }, Symbol.toStringTag, { value: "Module" }));
12720
- function mm({
12724
+ const mm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Pills: Sl }, Symbol.toStringTag, { value: "Module" }));
12725
+ function pm({
12721
12726
  text: e,
12722
12727
  suggestions: t,
12723
12728
  onSendMessage: n,
@@ -12779,7 +12784,7 @@ function mm({
12779
12784
  ) })
12780
12785
  ] });
12781
12786
  }
12782
- function pm({
12787
+ function gm({
12783
12788
  messages: e,
12784
12789
  onSendMessage: t,
12785
12790
  onToggleFeedback: n,
@@ -12791,7 +12796,7 @@ function pm({
12791
12796
  }) {
12792
12797
  const c = oe((h) => h.isWaitingForResponse), d = oe((h) => h.connectionStatus), m = oe((h) => h.elicitationState), u = d === ke.CONNECTED, p = oe((h) => h.progressMessage);
12793
12798
  return e.length === 0 && !p ? /* @__PURE__ */ a(
12794
- mm,
12799
+ pm,
12795
12800
  {
12796
12801
  text: l?.text,
12797
12802
  suggestions: l?.suggestions,
@@ -12808,7 +12813,7 @@ function pm({
12808
12813
  "data-message-id": h.id,
12809
12814
  id: _ === e.length - 1 ? "last-message" : void 0,
12810
12815
  children: /* @__PURE__ */ a(
12811
- hm,
12816
+ fm,
12812
12817
  {
12813
12818
  id: h.id,
12814
12819
  role: h.role,
@@ -12832,10 +12837,10 @@ function pm({
12832
12837
  },
12833
12838
  h.id
12834
12839
  )) }),
12835
- c && /* @__PURE__ */ a(gm, {})
12840
+ c && /* @__PURE__ */ a(_m, {})
12836
12841
  ] });
12837
12842
  }
12838
- function gm() {
12843
+ function _m() {
12839
12844
  return /* @__PURE__ */ a("div", { className: "animate-slideUp", children: /* @__PURE__ */ a("div", { className: "flex justify-start", children: /* @__PURE__ */ a("div", { className: "flex gap-3", children: /* @__PURE__ */ a(Wt, { className: "px-4 py-2 rounded-lg shadow-none bg-botMessage backdrop-blur-sm text-text-primary shadow-sm", children: /* @__PURE__ */ a(
12840
12845
  "div",
12841
12846
  {
@@ -12862,7 +12867,7 @@ function Ti({
12862
12867
  isConnected: l
12863
12868
  }) {
12864
12869
  const { isOnline: i } = hl(), [c, d] = F(!0);
12865
- return z(() => {
12870
+ return $(() => {
12866
12871
  if (!r && !n && !!s) {
12867
12872
  d(!0);
12868
12873
  const p = setTimeout(() => d(!1), 5e3);
@@ -12932,8 +12937,8 @@ function Ti({
12932
12937
  }
12933
12938
  );
12934
12939
  }
12935
- const _m = ze(() => import("./medassist-widget-VoiceAgentScreen-BK0p37RC.js"));
12936
- function Em({
12940
+ const Em = ze(() => import("./medassist-widget-VoiceAgentScreen-BK0p37RC.js"));
12941
+ function bm({
12937
12942
  isOpen: e,
12938
12943
  agentId: t,
12939
12944
  config: n
@@ -12967,18 +12972,18 @@ function Em({
12967
12972
  isComposerDisabled: k,
12968
12973
  voiceAgentState: D,
12969
12974
  isMuted: H,
12970
- isVoiceAgentActive: $,
12975
+ isVoiceAgentActive: z,
12971
12976
  disconnectVoiceAgent: W,
12972
12977
  resetVoiceAgent: Z,
12973
- toggleMute: A,
12978
+ toggleMute: R,
12974
12979
  handleClose: me,
12975
12980
  showFeedbackModal: he,
12976
12981
  handleSessionFeedbackSubmit: Q,
12977
12982
  handleSessionFeedbackSkip: J,
12978
12983
  handleDontShowAgain: ee,
12979
12984
  handleCloseModal: se
12980
- } = Zh({ isOpen: e, agentId: t, config: n });
12981
- z(() => {
12985
+ } = Xh({ isOpen: e, agentId: t, config: n });
12986
+ $(() => {
12982
12987
  C.length || N("auto");
12983
12988
  }, [C.length, N]);
12984
12989
  const Ce = ue(
@@ -13043,19 +13048,19 @@ function Em({
13043
13048
  )
13044
13049
  }
13045
13050
  ) : void 0,
13046
- children: $ ? /* @__PURE__ */ a(Ae, { fallback: /* @__PURE__ */ a(xi, {}), children: /* @__PURE__ */ a(
13047
- _m,
13051
+ children: z ? /* @__PURE__ */ a(Re, { fallback: /* @__PURE__ */ a(xi, {}), children: /* @__PURE__ */ a(
13052
+ Em,
13048
13053
  {
13049
13054
  state: D,
13050
13055
  isMuted: H,
13051
13056
  onEndCall: W,
13052
13057
  onClose: Z,
13053
- onToggleMute: A,
13058
+ onToggleMute: R,
13054
13059
  agentName: n.title,
13055
13060
  iconUrl: n.iconUrl,
13056
13061
  textColor: n.theme?.textColor
13057
13062
  }
13058
- ) }) : /* @__PURE__ */ a(Ae, { fallback: /* @__PURE__ */ a(xi, {}), children: /* @__PURE__ */ a("div", { className: L("flex-1 flex flex-col min-h-0 overflow-hidden relative synapse-chat-window"), children: [
13063
+ ) }) : /* @__PURE__ */ a(Re, { fallback: /* @__PURE__ */ a(xi, {}), children: /* @__PURE__ */ a("div", { className: L("flex-1 flex flex-col min-h-0 overflow-hidden relative synapse-chat-window"), children: [
13059
13064
  /* @__PURE__ */ a("div", { className: "relative flex min-h-0 flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ a(
13060
13065
  $a,
13061
13066
  {
@@ -13076,8 +13081,8 @@ function Em({
13076
13081
  children: [
13077
13082
  g && /* @__PURE__ */ a("div", { className: "text-xs text-[var(--color-muted-foreground)] text-center mb-2", children: "Just now" }),
13078
13083
  !g && /* @__PURE__ */ a("div", { className: "text-xs text-[var(--color-muted-foreground)] text-center", children: Ce }),
13079
- /* @__PURE__ */ a(Ae, { fallback: /* @__PURE__ */ a(Gu, {}), children: /* @__PURE__ */ a(
13080
- pm,
13084
+ /* @__PURE__ */ a(Re, { fallback: /* @__PURE__ */ a(Gu, {}), children: /* @__PURE__ */ a(
13085
+ gm,
13081
13086
  {
13082
13087
  messages: C,
13083
13088
  onSendMessage: T,
@@ -13103,7 +13108,7 @@ function Em({
13103
13108
  onClick: () => N("smooth"),
13104
13109
  size: "icon",
13105
13110
  className: "h-10 w-10 rounded-full bg-surface/90 backdrop-blur-sm shadow-lg border border-border-subtle hover:bg-surface hover:shadow-xl transition-all duration-200",
13106
- children: /* @__PURE__ */ a(Ao, { className: "w-5 h-5 text-text-primary" })
13111
+ children: /* @__PURE__ */ a(Ro, { className: "w-5 h-5 text-text-primary" })
13107
13112
  }
13108
13113
  ) }),
13109
13114
  /* @__PURE__ */ a(
@@ -13141,7 +13146,7 @@ function ro(e) {
13141
13146
  return new Error("Unknown error");
13142
13147
  }
13143
13148
  }
13144
- class bm extends Ye {
13149
+ class ym extends Ye {
13145
13150
  state = { error: null };
13146
13151
  static getDerivedStateFromError(t) {
13147
13152
  return { error: ro(t) };
@@ -13151,7 +13156,7 @@ class bm extends Ye {
13151
13156
  }
13152
13157
  render() {
13153
13158
  return this.state.error ? /* @__PURE__ */ a(
13154
- Sm,
13159
+ wm,
13155
13160
  {
13156
13161
  error: this.state.error,
13157
13162
  componentStack: this.state.componentStack,
@@ -13167,12 +13172,12 @@ class bm extends Ye {
13167
13172
  ) : this.props.children;
13168
13173
  }
13169
13174
  }
13170
- function ym({ error: e }) {
13175
+ function vm({ error: e }) {
13171
13176
  throw e;
13172
13177
  }
13173
- function vm(e) {
13178
+ function Sm(e) {
13174
13179
  const [t, n] = F(null);
13175
- return z(() => {
13180
+ return $(() => {
13176
13181
  if (typeof window > "u") return;
13177
13182
  const r = (s) => {
13178
13183
  !s?.error && !s?.filename && s?.message === "Script error." || (s?.error ? n(ro(s.error)) : s?.message && n(new Error(s.message)));
@@ -13182,9 +13187,9 @@ function vm(e) {
13182
13187
  return window.addEventListener("error", r), window.addEventListener("unhandledrejection", o), () => {
13183
13188
  window.removeEventListener("error", r), window.removeEventListener("unhandledrejection", o);
13184
13189
  };
13185
- }, []), /* @__PURE__ */ a(bm, { ...e, children: t ? /* @__PURE__ */ a(ym, { error: t }) : e.children });
13190
+ }, []), /* @__PURE__ */ a(ym, { ...e, children: t ? /* @__PURE__ */ a(vm, { error: t }) : e.children });
13186
13191
  }
13187
- function Sm({
13192
+ function wm({
13188
13193
  error: e,
13189
13194
  title: t,
13190
13195
  titleImg: n,
@@ -13252,16 +13257,16 @@ function Sm({
13252
13257
  }
13253
13258
  );
13254
13259
  }
13255
- function wm({ agentId: e, config: t }) {
13260
+ function Cm({ agentId: e, config: t }) {
13256
13261
  const [n, r] = F(!1);
13257
- z(() => {
13262
+ $(() => {
13258
13263
  r(!0);
13259
13264
  }, []);
13260
13265
  const o = () => {
13261
13266
  r(!1), t?.onClose?.();
13262
13267
  };
13263
13268
  return /* @__PURE__ */ a(
13264
- vm,
13269
+ Sm,
13265
13270
  {
13266
13271
  title: t.title ?? "Medi Clinic",
13267
13272
  titleImg: t.theme?.titleImg,
@@ -13272,7 +13277,7 @@ function wm({ agentId: e, config: t }) {
13272
13277
  displayMode: t.displayMode,
13273
13278
  theme: t.theme,
13274
13279
  children: /* @__PURE__ */ a(vu, { children: /* @__PURE__ */ a(
13275
- Em,
13280
+ bm,
13276
13281
  {
13277
13282
  isOpen: n,
13278
13283
  agentId: e,
@@ -13289,17 +13294,17 @@ function wm({ agentId: e, config: t }) {
13289
13294
  }
13290
13295
  );
13291
13296
  }
13292
- const Cm = (e, t, n) => {
13297
+ const Tm = (e, t, n) => {
13293
13298
  const r = n || {}, o = Wl(e);
13294
13299
  return o.render(
13295
- /* @__PURE__ */ a(_e, { children: /* @__PURE__ */ a(wm, { agentId: t, config: r }) })
13300
+ /* @__PURE__ */ a(_e, { children: /* @__PURE__ */ a(Cm, { agentId: t, config: r }) })
13296
13301
  ), o;
13297
13302
  };
13298
- typeof window < "u" && (window.renderMedAssist = Cm);
13303
+ typeof window < "u" && (window.renderMedAssist = Tm);
13299
13304
  export {
13300
13305
  Y as A,
13301
13306
  le as B,
13302
- Ao as C,
13307
+ Ro as C,
13303
13308
  X as D,
13304
13309
  qd as F,
13305
13310
  Kd as I,
@@ -13319,21 +13324,21 @@ export {
13319
13324
  Pt as g,
13320
13325
  Mt as h,
13321
13326
  L as i,
13322
- Fm as j,
13327
+ Um as j,
13323
13328
  Tu as k,
13324
13329
  ol as l,
13325
13330
  oh as m,
13326
13331
  sl as n,
13327
- Dm as o,
13332
+ Fm as o,
13328
13333
  ku as p,
13329
13334
  de as q,
13330
13335
  no as r,
13331
- Cm as renderMedAssist,
13332
- Vm as s,
13336
+ Tm as renderMedAssist,
13337
+ Vh as s,
13333
13338
  Wt as t,
13334
13339
  a as u,
13335
- Um as v,
13340
+ Vm as v,
13336
13341
  xu as w,
13337
13342
  Iu as x,
13338
- z as y
13343
+ $ as y
13339
13344
  };