@eka-care/medassist-widget 0.1.118-dev.1 → 0.1.119-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/medassist-widget.js +733 -727
- package/package.json +1 -1
package/dist/medassist-widget.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var Dn, q,
|
|
1
|
+
var Dn, q, zi, Et, es, Hi, Bi, kr, nr, In, ji, go, Qr, eo, Gi, ir = {}, ar = [], Fl = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Fn = Array.isArray;
|
|
2
2
|
function it(e, t) {
|
|
3
3
|
for (var n in t) e[n] = t[n];
|
|
4
4
|
return e;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function _o(e) {
|
|
7
7
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
8
8
|
}
|
|
9
9
|
function ze(e, t, n) {
|
|
@@ -13,10 +13,10 @@ function ze(e, t, n) {
|
|
|
13
13
|
return Mn(e, a, r, o, null);
|
|
14
14
|
}
|
|
15
15
|
function Mn(e, t, n, r, o) {
|
|
16
|
-
var s = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ??
|
|
16
|
+
var s = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++zi, __i: -1, __u: 0 };
|
|
17
17
|
return o == null && q.vnode != null && q.vnode(s), s;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Wi() {
|
|
20
20
|
return { current: null };
|
|
21
21
|
}
|
|
22
22
|
function pe(e) {
|
|
@@ -33,39 +33,39 @@ function Bt(e, t) {
|
|
|
33
33
|
function Ul(e) {
|
|
34
34
|
if (e.__P && e.__d) {
|
|
35
35
|
var t = e.__v, n = t.__e, r = [], o = [], s = it({}, t);
|
|
36
|
-
s.__v = t.__v + 1, q.vnode && q.vnode(s),
|
|
36
|
+
s.__v = t.__v + 1, q.vnode && q.vnode(s), bo(e.__P, s, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? Bt(t), !!(32 & t.__u), o), s.__v = t.__v, s.__.__k[s.__i] = s, Zi(r, s, o), t.__e = t.__ = null, s.__e != n && qi(s);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function qi(e) {
|
|
40
40
|
if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {
|
|
41
41
|
if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;
|
|
42
|
-
}),
|
|
42
|
+
}), qi(e);
|
|
43
43
|
}
|
|
44
44
|
function to(e) {
|
|
45
|
-
(!e.__d && (e.__d = !0) && Et.push(e) && !lr.__r++ ||
|
|
45
|
+
(!e.__d && (e.__d = !0) && Et.push(e) && !lr.__r++ || es != q.debounceRendering) && ((es = q.debounceRendering) || Hi)(lr);
|
|
46
46
|
}
|
|
47
47
|
function lr() {
|
|
48
48
|
try {
|
|
49
|
-
for (var e, t = 1; Et.length; ) Et.length > t && Et.sort(
|
|
49
|
+
for (var e, t = 1; Et.length; ) Et.length > t && Et.sort(Bi), e = Et.shift(), t = Et.length, Ul(e);
|
|
50
50
|
} finally {
|
|
51
51
|
Et.length = lr.__r = 0;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ki(e, t, n, r, o, s, a, i, c, d, f) {
|
|
55
55
|
var h, u, p, E, g, S, m, _ = r && r.__k || ar, b = t.length;
|
|
56
|
-
for (c = Vl(n, t, _, c, b), h = 0; h < b; h++) (p = n.__k[h]) != null && (u = p.__i != -1 && _[p.__i] || ir, p.__i = h, S =
|
|
56
|
+
for (c = Vl(n, t, _, c, b), h = 0; h < b; h++) (p = n.__k[h]) != null && (u = p.__i != -1 && _[p.__i] || ir, p.__i = h, S = bo(e, p, u, o, s, a, i, c, d, f), E = p.__e, p.ref && u.ref != p.ref && (u.ref && Eo(u.ref, null, p), f.push(p.ref, p.__c || E, p)), g == null && E != null && (g = E), (m = !!(4 & p.__u)) || u.__k === p.__k ? (c = Yi(p, c, e, m), m && u.__e && (u.__e = null)) : typeof p.type == "function" && S !== void 0 ? c = S : E && (c = E.nextSibling), p.__u &= -7);
|
|
57
57
|
return n.__e = g, c;
|
|
58
58
|
}
|
|
59
59
|
function Vl(e, t, n, r, o) {
|
|
60
60
|
var s, a, i, c, d, f = n.length, h = f, u = 0;
|
|
61
61
|
for (e.__k = new Array(o), s = 0; s < o; s++) (a = t[s]) != null && typeof a != "boolean" && typeof a != "function" ? (typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? a = e.__k[s] = Mn(null, a, null, null, null) : Fn(a) ? a = e.__k[s] = Mn(pe, { children: a }, null, null, null) : a.constructor === void 0 && a.__b > 0 ? a = e.__k[s] = Mn(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : e.__k[s] = a, c = s + u, a.__ = e, a.__b = e.__b + 1, i = null, (d = a.__i = $l(a, n, c, h)) != -1 && (h--, (i = n[d]) && (i.__u |= 2)), i == null || i.__v == null ? (d == -1 && (o > f ? u-- : o < f && u++), typeof a.type != "function" && (a.__u |= 4)) : d != c && (d == c - 1 ? u-- : d == c + 1 ? u++ : (d > c ? u-- : u++, a.__u |= 4))) : e.__k[s] = null;
|
|
62
|
-
if (h) for (s = 0; s < f; s++) (i = n[s]) != null && (2 & i.__u) == 0 && (i.__e == r && (r = Bt(i)),
|
|
62
|
+
if (h) for (s = 0; s < f; s++) (i = n[s]) != null && (2 & i.__u) == 0 && (i.__e == r && (r = Bt(i)), Ji(i, i));
|
|
63
63
|
return r;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Yi(e, t, n, r) {
|
|
66
66
|
var o, s;
|
|
67
67
|
if (typeof e.type == "function") {
|
|
68
|
-
for (o = e.__k, s = 0; o && s < o.length; s++) o[s] && (o[s].__ = e, t =
|
|
68
|
+
for (o = e.__k, s = 0; o && s < o.length; s++) o[s] && (o[s].__ = e, t = Yi(o[s], t, n, r));
|
|
69
69
|
return t;
|
|
70
70
|
}
|
|
71
71
|
e.__e != t && (r && (t && e.type && !t.parentNode && (t = Bt(e)), n.insertBefore(e.__e, t || null)), t = e.__e);
|
|
@@ -87,17 +87,17 @@ function $l(e, t, n, r) {
|
|
|
87
87
|
}
|
|
88
88
|
return -1;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function ts(e, t, n) {
|
|
91
91
|
t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || Fl.test(t) ? n : n + "px";
|
|
92
92
|
}
|
|
93
93
|
function Gn(e, t, n, r, o) {
|
|
94
94
|
var s, a;
|
|
95
95
|
e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
|
|
96
96
|
else {
|
|
97
|
-
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n ||
|
|
98
|
-
if (n) for (t in n) r && n[t] == r[t] ||
|
|
97
|
+
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || ts(e.style, t, "");
|
|
98
|
+
if (n) for (t in n) r && n[t] == r[t] || ts(e.style, t, n[t]);
|
|
99
99
|
}
|
|
100
|
-
else if (t[0] == "o" && t[1] == "n") s = t != (t = t.replace(
|
|
100
|
+
else if (t[0] == "o" && t[1] == "n") s = t != (t = t.replace(ji, "$1")), a = t.toLowerCase(), t = a in e || t == "onFocusOut" || t == "onFocusIn" ? a.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + s] = n, n ? r ? n[In] = r[In] : (n[In] = go, e.addEventListener(t, s ? eo : Qr, s)) : e.removeEventListener(t, s ? eo : Qr, 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 {
|
|
@@ -108,17 +108,17 @@ function Gn(e, t, n, r, o) {
|
|
|
108
108
|
typeof n == "function" || (n == null || n === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ns(e) {
|
|
112
112
|
return function(t) {
|
|
113
113
|
if (this.l) {
|
|
114
114
|
var n = this.l[t.type + e];
|
|
115
|
-
if (t[nr] == null) t[nr] =
|
|
115
|
+
if (t[nr] == null) t[nr] = go++;
|
|
116
116
|
else if (t[nr] < n[In]) return;
|
|
117
117
|
return n(q.event ? q.event(t) : t);
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function bo(e, t, n, r, o, s, a, i, c, d) {
|
|
122
122
|
var f, h, u, p, E, g, S, m, _, b, x, y, C, w, T, v = t.type;
|
|
123
123
|
if (t.constructor !== void 0) return null;
|
|
124
124
|
128 & n.__u && (c = !!(32 & n.__u), s = [i = t.__e = n.__e]), (f = q.__b) && f(t);
|
|
@@ -139,13 +139,13 @@ function _o(e, t, n, r, o, s, a, i, c, d) {
|
|
|
139
139
|
else do
|
|
140
140
|
h.__d = !1, y && y(t), f = h.render(h.props, h.state, h.context), h.state = h.__s;
|
|
141
141
|
while (h.__d && ++C < 25);
|
|
142
|
-
h.state = h.__s, h.getChildContext != null && (r = it(it({}, r), h.getChildContext())), _ && !u && h.getSnapshotBeforeUpdate != null && (g = h.getSnapshotBeforeUpdate(p, E)), w = f != null && f.type === pe && f.key == null ?
|
|
142
|
+
h.state = h.__s, h.getChildContext != null && (r = it(it({}, r), h.getChildContext())), _ && !u && h.getSnapshotBeforeUpdate != null && (g = h.getSnapshotBeforeUpdate(p, E)), w = f != null && f.type === pe && f.key == null ? Xi(f.props.children) : f, i = Ki(e, Fn(w) ? w : [w], t, n, r, o, s, a, i, c, d), h.base = t.__e, t.__u &= -161, h.__h.length && a.push(h), S && (h.__E = h.__ = null);
|
|
143
143
|
} catch (N) {
|
|
144
144
|
if (t.__v = null, c || s != null) if (N.then) {
|
|
145
145
|
for (t.__u |= c ? 160 : 128; i && i.nodeType == 8 && i.nextSibling; ) i = i.nextSibling;
|
|
146
146
|
s[s.indexOf(i)] = null, t.__e = i;
|
|
147
147
|
} else {
|
|
148
|
-
for (T = s.length; T--; )
|
|
148
|
+
for (T = s.length; T--; ) _o(s[T]);
|
|
149
149
|
no(t);
|
|
150
150
|
}
|
|
151
151
|
else t.__e = n.__e, t.__k = n.__k, N.then || no(t);
|
|
@@ -157,8 +157,8 @@ function _o(e, t, n, r, o, s, a, i, c, d) {
|
|
|
157
157
|
function no(e) {
|
|
158
158
|
e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(no));
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
for (var r = 0; r < n.length; r++)
|
|
160
|
+
function Zi(e, t, n) {
|
|
161
|
+
for (var r = 0; r < n.length; r++) Eo(n[r], n[++r], n[++r]);
|
|
162
162
|
q.__c && q.__c(t, e), e.some(function(o) {
|
|
163
163
|
try {
|
|
164
164
|
e = o.__h, o.__h = [], e.some(function(s) {
|
|
@@ -169,8 +169,8 @@ function Yi(e, t, n) {
|
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
return typeof e != "object" || e == null || e.__b > 0 ? e : Fn(e) ? e.map(
|
|
172
|
+
function Xi(e) {
|
|
173
|
+
return typeof e != "object" || e == null || e.__b > 0 ? e : Fn(e) ? e.map(Xi) : e.constructor !== void 0 ? null : it({}, e);
|
|
174
174
|
}
|
|
175
175
|
function zl(e, t, n, r, o, s, a, i, c) {
|
|
176
176
|
var d, f, h, u, p, E, g, S = n.props || ir, m = t.props, _ = t.type;
|
|
@@ -190,12 +190,12 @@ function zl(e, t, n, r, o, s, a, i, c) {
|
|
|
190
190
|
for (d in S) p = S[d], d == "dangerouslySetInnerHTML" ? h = p : d == "children" || d in m || d == "value" && "defaultValue" in m || d == "checked" && "defaultChecked" in m || Gn(e, d, null, p, o);
|
|
191
191
|
for (d in m) p = m[d], d == "children" ? u = p : d == "dangerouslySetInnerHTML" ? f = p : d == "value" ? E = p : d == "checked" ? g = p : i && typeof p != "function" || S[d] === p || Gn(e, d, p, S[d], o);
|
|
192
192
|
if (f) i || h && (f.__html == h.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = [];
|
|
193
|
-
else if (h && (e.innerHTML = ""),
|
|
193
|
+
else if (h && (e.innerHTML = ""), Ki(t.type == "template" ? e.content : e, Fn(u) ? u : [u], t, n, r, _ == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, s, a, s ? s[0] : n.__k && Bt(n, 0), i, c), s != null) for (d = s.length; d--; ) _o(s[d]);
|
|
194
194
|
i && _ != "textarea" || (d = "value", _ == "progress" && E == null ? e.removeAttribute("value") : E != null && (E !== e[d] || _ == "progress" && !E || _ == "option" && E != S[d]) && Gn(e, d, E, S[d], o), d = "checked", g != null && g != e[d] && Gn(e, d, g, S[d], o));
|
|
195
195
|
}
|
|
196
196
|
return e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Eo(e, t, n) {
|
|
199
199
|
try {
|
|
200
200
|
if (typeof e == "function") {
|
|
201
201
|
var r = typeof e.__u == "function";
|
|
@@ -205,9 +205,9 @@ function bo(e, t, n) {
|
|
|
205
205
|
q.__e(o, n);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function Ji(e, t, n) {
|
|
209
209
|
var r, o;
|
|
210
|
-
if (q.unmount && q.unmount(e), (r = e.ref) && (r.current && r.current != e.__e ||
|
|
210
|
+
if (q.unmount && q.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || Eo(r, null, t)), (r = e.__c) != null) {
|
|
211
211
|
if (r.componentWillUnmount) try {
|
|
212
212
|
r.componentWillUnmount();
|
|
213
213
|
} catch (s) {
|
|
@@ -215,18 +215,18 @@ function Xi(e, t, n) {
|
|
|
215
215
|
}
|
|
216
216
|
r.base = r.__P = null;
|
|
217
217
|
}
|
|
218
|
-
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] &&
|
|
219
|
-
n ||
|
|
218
|
+
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && Ji(r[o], t, n || typeof e.type != "function");
|
|
219
|
+
n || _o(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
220
220
|
}
|
|
221
221
|
function Hl(e, t, n) {
|
|
222
222
|
return this.constructor(e, n);
|
|
223
223
|
}
|
|
224
224
|
function Pn(e, t, n) {
|
|
225
225
|
var r, o, s, a;
|
|
226
|
-
t == document && (t = document.documentElement), q.__ && q.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, s = [], a = [],
|
|
226
|
+
t == document && (t = document.documentElement), q.__ && q.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, s = [], a = [], bo(t, e = (!r && n || t).__k = ze(pe, null, [e]), o || ir, ir, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Dn.call(t.childNodes) : null, s, !r && n ? n : o ? o.__e : t.firstChild, r, a), Zi(s, e, a);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
Pn(e, t,
|
|
228
|
+
function Qi(e, t) {
|
|
229
|
+
Pn(e, t, Qi);
|
|
230
230
|
}
|
|
231
231
|
function Bl(e, t, n) {
|
|
232
232
|
var r, o, s, a, i = it({}, e.props);
|
|
@@ -252,7 +252,7 @@ function ht(e) {
|
|
|
252
252
|
};
|
|
253
253
|
}), n.children;
|
|
254
254
|
}
|
|
255
|
-
return t.__c = "__cC" +
|
|
255
|
+
return t.__c = "__cC" + Gi++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
|
|
256
256
|
return n.children(r);
|
|
257
257
|
}).contextType = t, t;
|
|
258
258
|
}
|
|
@@ -263,14 +263,14 @@ Dn = ar.slice, q = { __e: function(e, t, n, r) {
|
|
|
263
263
|
e = i;
|
|
264
264
|
}
|
|
265
265
|
throw e;
|
|
266
|
-
} },
|
|
266
|
+
} }, zi = 0, Xe.prototype.setState = function(e, t) {
|
|
267
267
|
var n;
|
|
268
268
|
n = this.__s != null && this.__s != this.state ? this.__s : this.__s = it({}, this.state), typeof e == "function" && (e = e(it({}, n), this.props)), e && it(n, e), e != null && this.__v && (t && this._sb.push(t), to(this));
|
|
269
269
|
}, Xe.prototype.forceUpdate = function(e) {
|
|
270
270
|
this.__v && (this.__e = !0, e && this.__h.push(e), to(this));
|
|
271
|
-
}, Xe.prototype.render = pe, Et = [],
|
|
271
|
+
}, Xe.prototype.render = pe, Et = [], Hi = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Bi = function(e, t) {
|
|
272
272
|
return e.__v.__b - t.__v.__b;
|
|
273
|
-
}, lr.__r = 0, kr = Math.random().toString(8), nr = "__d" + kr, In = "__a" + kr,
|
|
273
|
+
}, lr.__r = 0, kr = Math.random().toString(8), nr = "__d" + kr, In = "__a" + kr, ji = /(PointerCapture)$|Capture$/i, go = 0, Qr = ns(!1), eo = ns(!0), Gi = 0;
|
|
274
274
|
var jl = 0;
|
|
275
275
|
function l(e, t, n, r, o, s) {
|
|
276
276
|
t || (t = {});
|
|
@@ -280,18 +280,18 @@ function l(e, t, n, r, o, s) {
|
|
|
280
280
|
if (typeof e == "function" && (a = e.defaultProps)) for (i in a) c[i] === void 0 && (c[i] = a[i]);
|
|
281
281
|
return q.vnode && q.vnode(d), d;
|
|
282
282
|
}
|
|
283
|
-
var ft, fe, Ar,
|
|
283
|
+
var ft, fe, Ar, rs, jt = 0, ea = [], ye = q, os = ye.__b, ss = ye.__r, is = ye.diffed, as = ye.__c, ls = ye.unmount, cs = ye.__;
|
|
284
284
|
function Lt(e, t) {
|
|
285
285
|
ye.__h && ye.__h(fe, e, jt || t), jt = 0;
|
|
286
286
|
var n = fe.__H || (fe.__H = { __: [], __h: [] });
|
|
287
287
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
288
288
|
}
|
|
289
289
|
function U(e) {
|
|
290
|
-
return jt = 1, Yt(
|
|
290
|
+
return jt = 1, Yt(ta, e);
|
|
291
291
|
}
|
|
292
292
|
function Yt(e, t, n) {
|
|
293
293
|
var r = Lt(ft++, 2);
|
|
294
|
-
if (r.t = e, !r.__c && (r.__ = [n ? n(t) :
|
|
294
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : ta(void 0, t), function(i) {
|
|
295
295
|
var c = r.__N ? r.__N[0] : r.__[0], d = r.t(c, i);
|
|
296
296
|
c !== d && (r.__N = [d, r.__[1]], r.__c.setState({}));
|
|
297
297
|
}], r.__c = fe, !fe.__f)) {
|
|
@@ -325,18 +325,18 @@ function Yt(e, t, n) {
|
|
|
325
325
|
}
|
|
326
326
|
function H(e, t) {
|
|
327
327
|
var n = Lt(ft++, 3);
|
|
328
|
-
!ye.__s &&
|
|
328
|
+
!ye.__s && wo(n.__H, t) && (n.__ = e, n.u = t, fe.__H.__h.push(n));
|
|
329
329
|
}
|
|
330
330
|
function mt(e, t) {
|
|
331
331
|
var n = Lt(ft++, 4);
|
|
332
|
-
!ye.__s &&
|
|
332
|
+
!ye.__s && wo(n.__H, t) && (n.__ = e, n.u = t, fe.__h.push(n));
|
|
333
333
|
}
|
|
334
334
|
function W(e) {
|
|
335
335
|
return jt = 5, de(function() {
|
|
336
336
|
return { current: e };
|
|
337
337
|
}, []);
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function yo(e, t, n) {
|
|
340
340
|
jt = 6, mt(function() {
|
|
341
341
|
if (typeof e == "function") {
|
|
342
342
|
var r = e(t());
|
|
@@ -351,7 +351,7 @@ function Eo(e, t, n) {
|
|
|
351
351
|
}
|
|
352
352
|
function de(e, t) {
|
|
353
353
|
var n = Lt(ft++, 7);
|
|
354
|
-
return
|
|
354
|
+
return wo(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
355
355
|
}
|
|
356
356
|
function ce(e, t) {
|
|
357
357
|
return jt = 8, de(function() {
|
|
@@ -362,7 +362,7 @@ function pt(e) {
|
|
|
362
362
|
var t = fe.context[e.__c], n = Lt(ft++, 9);
|
|
363
363
|
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(fe)), t.props.value) : e.__;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function vo(e, t) {
|
|
366
366
|
ye.useDebugValue && ye.useDebugValue(t ? t(e) : e);
|
|
367
367
|
}
|
|
368
368
|
function Gl(e) {
|
|
@@ -373,7 +373,7 @@ function Gl(e) {
|
|
|
373
373
|
n[1](void 0);
|
|
374
374
|
}];
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function So() {
|
|
377
377
|
var e = Lt(ft++, 11);
|
|
378
378
|
if (!e.__) {
|
|
379
379
|
for (var t = fe.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
@@ -383,7 +383,7 @@ function vo() {
|
|
|
383
383
|
return e.__;
|
|
384
384
|
}
|
|
385
385
|
function Wl() {
|
|
386
|
-
for (var e; e =
|
|
386
|
+
for (var e; e = ea.shift(); ) {
|
|
387
387
|
var t = e.__H;
|
|
388
388
|
if (e.__P && t) try {
|
|
389
389
|
t.__h.some(rr), t.__h.some(ro), t.__h = [];
|
|
@@ -393,19 +393,19 @@ function Wl() {
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
ye.__b = function(e) {
|
|
396
|
-
fe = null,
|
|
396
|
+
fe = null, os && os(e);
|
|
397
397
|
}, ye.__ = function(e, t) {
|
|
398
|
-
e && t.__k && t.__k.__m && (e.__m = t.__k.__m),
|
|
398
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), cs && cs(e, t);
|
|
399
399
|
}, ye.__r = function(e) {
|
|
400
|
-
|
|
400
|
+
ss && ss(e), ft = 0;
|
|
401
401
|
var t = (fe = e.__c).__H;
|
|
402
402
|
t && (Ar === fe ? (t.__h = [], fe.__h = [], t.__.some(function(n) {
|
|
403
403
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
404
404
|
})) : (t.__h.some(rr), t.__h.some(ro), t.__h = [], ft = 0)), Ar = fe;
|
|
405
405
|
}, ye.diffed = function(e) {
|
|
406
|
-
|
|
406
|
+
is && is(e);
|
|
407
407
|
var t = e.__c;
|
|
408
|
-
t && t.__H && (t.__H.__h.length && (
|
|
408
|
+
t && t.__H && (t.__H.__h.length && (ea.push(t) !== 1 && rs === ye.requestAnimationFrame || ((rs = ye.requestAnimationFrame) || ql)(Wl)), t.__H.__.some(function(n) {
|
|
409
409
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
410
410
|
})), Ar = fe = null;
|
|
411
411
|
}, ye.__c = function(e, t) {
|
|
@@ -419,9 +419,9 @@ ye.__b = function(e) {
|
|
|
419
419
|
o.__h && (o.__h = []);
|
|
420
420
|
}), t = [], ye.__e(r, n.__v);
|
|
421
421
|
}
|
|
422
|
-
}),
|
|
422
|
+
}), as && as(e, t);
|
|
423
423
|
}, ye.unmount = function(e) {
|
|
424
|
-
|
|
424
|
+
ls && ls(e);
|
|
425
425
|
var t, n = e.__c;
|
|
426
426
|
n && n.__H && (n.__H.__.some(function(r) {
|
|
427
427
|
try {
|
|
@@ -431,12 +431,12 @@ ye.__b = function(e) {
|
|
|
431
431
|
}
|
|
432
432
|
}), n.__H = void 0, t && ye.__e(t, n.__v));
|
|
433
433
|
};
|
|
434
|
-
var
|
|
434
|
+
var ds = typeof requestAnimationFrame == "function";
|
|
435
435
|
function ql(e) {
|
|
436
436
|
var t, n = function() {
|
|
437
|
-
clearTimeout(r),
|
|
437
|
+
clearTimeout(r), ds && cancelAnimationFrame(t), setTimeout(e);
|
|
438
438
|
}, r = setTimeout(n, 35);
|
|
439
|
-
|
|
439
|
+
ds && (t = requestAnimationFrame(n));
|
|
440
440
|
}
|
|
441
441
|
function rr(e) {
|
|
442
442
|
var t = fe, n = e.__c;
|
|
@@ -446,15 +446,15 @@ function ro(e) {
|
|
|
446
446
|
var t = fe;
|
|
447
447
|
e.__c = e.__(), fe = t;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function wo(e, t) {
|
|
450
450
|
return !e || e.length !== t.length || t.some(function(n, r) {
|
|
451
451
|
return n !== e[r];
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function ta(e, t) {
|
|
455
455
|
return typeof t == "function" ? t(e) : t;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function na(e, t) {
|
|
458
458
|
for (var n in t) e[n] = t[n];
|
|
459
459
|
return e;
|
|
460
460
|
}
|
|
@@ -463,7 +463,7 @@ function oo(e, t) {
|
|
|
463
463
|
for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
|
|
464
464
|
return !1;
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function Co(e, t) {
|
|
467
467
|
var n = t(), r = U({ t: { __: n, u: t } }), o = r[0].t, s = r[1];
|
|
468
468
|
return mt(function() {
|
|
469
469
|
o.__ = n, o.u = t, Rr(o) && s({ t: o });
|
|
@@ -481,20 +481,20 @@ function Rr(e) {
|
|
|
481
481
|
}
|
|
482
482
|
var t, n;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function To(e) {
|
|
485
485
|
e();
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function xo(e) {
|
|
488
488
|
return e;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
return [!1,
|
|
490
|
+
function No() {
|
|
491
|
+
return [!1, To];
|
|
492
492
|
}
|
|
493
|
-
var
|
|
493
|
+
var ko = mt;
|
|
494
494
|
function cr(e, t) {
|
|
495
495
|
this.props = e, this.context = t;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Ao(e, t) {
|
|
498
498
|
function n(o) {
|
|
499
499
|
var s = this.props.ref;
|
|
500
500
|
return s != o.ref && s && (typeof s == "function" ? s(null) : s.current = null), t ? !t(this.props, o) || s != o.ref : oo(this.props, o);
|
|
@@ -507,21 +507,21 @@ function ko(e, t) {
|
|
|
507
507
|
(cr.prototype = new Xe()).isPureReactComponent = !0, cr.prototype.shouldComponentUpdate = function(e, t) {
|
|
508
508
|
return oo(this.props, e) || oo(this.state, t);
|
|
509
509
|
};
|
|
510
|
-
var
|
|
510
|
+
var us = q.__b;
|
|
511
511
|
q.__b = function(e) {
|
|
512
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
512
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), us && us(e);
|
|
513
513
|
};
|
|
514
514
|
var Kl = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
515
515
|
function Z(e) {
|
|
516
516
|
function t(n) {
|
|
517
|
-
var r =
|
|
517
|
+
var r = na({}, n);
|
|
518
518
|
return delete r.ref, e(r, n.ref || null);
|
|
519
519
|
}
|
|
520
520
|
return t.$$typeof = Kl, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
521
521
|
}
|
|
522
|
-
var
|
|
522
|
+
var hs = function(e, t) {
|
|
523
523
|
return e == null ? null : ut(ut(e).map(t));
|
|
524
|
-
}, Be = { map:
|
|
524
|
+
}, Be = { map: hs, forEach: hs, count: function(e) {
|
|
525
525
|
return e ? ut(e).length : 0;
|
|
526
526
|
}, only: function(e) {
|
|
527
527
|
var t = ut(e);
|
|
@@ -534,23 +534,23 @@ q.__e = function(e, t, n, r) {
|
|
|
534
534
|
}
|
|
535
535
|
Yl(e, t, n, r);
|
|
536
536
|
};
|
|
537
|
-
var
|
|
538
|
-
function
|
|
537
|
+
var fs = q.unmount;
|
|
538
|
+
function ra(e, t, n) {
|
|
539
539
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
540
540
|
typeof r.__c == "function" && r.__c();
|
|
541
|
-
}), e.__c.__H = null), (e =
|
|
542
|
-
return
|
|
541
|
+
}), e.__c.__H = null), (e = na({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
542
|
+
return ra(r, t, n);
|
|
543
543
|
})), e;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function oa(e, t, n) {
|
|
546
546
|
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
547
|
-
return
|
|
547
|
+
return oa(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
550
|
function Pe() {
|
|
551
551
|
this.__u = 0, this.o = null, this.__b = null;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function sa(e) {
|
|
554
554
|
var t = e.__ && e.__.__c;
|
|
555
555
|
return t && t.__a && t.__a(e);
|
|
556
556
|
}
|
|
@@ -572,11 +572,11 @@ function Ht() {
|
|
|
572
572
|
}
|
|
573
573
|
q.unmount = function(e) {
|
|
574
574
|
var t = e.__c;
|
|
575
|
-
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null),
|
|
575
|
+
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), fs && fs(e);
|
|
576
576
|
}, (Pe.prototype = new Xe()).__c = function(e, t) {
|
|
577
577
|
var n = t.__c, r = this;
|
|
578
578
|
r.o == null && (r.o = []), r.o.push(n);
|
|
579
|
-
var o =
|
|
579
|
+
var o = sa(r.__v), s = !1, a = function() {
|
|
580
580
|
s || r.__z || (s = !0, n.__R = null, o ? o(c) : c());
|
|
581
581
|
};
|
|
582
582
|
n.__R = a;
|
|
@@ -586,7 +586,7 @@ q.unmount = function(e) {
|
|
|
586
586
|
if (!--r.__u) {
|
|
587
587
|
if (r.state.__a) {
|
|
588
588
|
var d = r.state.__a;
|
|
589
|
-
r.__v.__k[0] =
|
|
589
|
+
r.__v.__k[0] = oa(d, d.__c.__P, d.__c.__O);
|
|
590
590
|
}
|
|
591
591
|
var f;
|
|
592
592
|
for (r.setState({ __a: r.__b = null }); f = r.o.pop(); ) f.__P = i, f.forceUpdate();
|
|
@@ -599,14 +599,14 @@ q.unmount = function(e) {
|
|
|
599
599
|
if (this.__b) {
|
|
600
600
|
if (this.__v.__k) {
|
|
601
601
|
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
602
|
-
this.__v.__k[0] =
|
|
602
|
+
this.__v.__k[0] = ra(this.__b, n, r.__O = r.__P);
|
|
603
603
|
}
|
|
604
604
|
this.__b = null;
|
|
605
605
|
}
|
|
606
606
|
var o = t.__a && ze(pe, null, e.fallback);
|
|
607
607
|
return o && (o.__u &= -33), [ze(pe, null, t.__a ? null : e.children), o];
|
|
608
608
|
};
|
|
609
|
-
var
|
|
609
|
+
var ms = function(e, t, n) {
|
|
610
610
|
if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
|
|
611
611
|
for (; n.length > 3; ) n.pop()();
|
|
612
612
|
if (n[1] < n[0]) break;
|
|
@@ -634,15 +634,15 @@ function Xl(e) {
|
|
|
634
634
|
}
|
|
635
635
|
Pn(ze(Zl, { context: t.context }, e.__v), t.v);
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function ia(e, t) {
|
|
638
638
|
var n = ze(Xl, { __v: e, h: t });
|
|
639
639
|
return n.containerInfo = t, n;
|
|
640
640
|
}
|
|
641
641
|
(Ht.prototype = new Xe()).__a = function(e) {
|
|
642
|
-
var t = this, n =
|
|
642
|
+
var t = this, n = sa(t.__v), r = t.l.get(e);
|
|
643
643
|
return r[0]++, function(o) {
|
|
644
644
|
var s = function() {
|
|
645
|
-
t.props.revealOrder ? (r.push(o),
|
|
645
|
+
t.props.revealOrder ? (r.push(o), ms(t, e, r)) : o();
|
|
646
646
|
};
|
|
647
647
|
n ? n(s) : s();
|
|
648
648
|
};
|
|
@@ -655,17 +655,17 @@ function sa(e, t) {
|
|
|
655
655
|
}, Ht.prototype.componentDidUpdate = Ht.prototype.componentDidMount = function() {
|
|
656
656
|
var e = this;
|
|
657
657
|
this.l.forEach(function(t, n) {
|
|
658
|
-
|
|
658
|
+
ms(e, n, t);
|
|
659
659
|
});
|
|
660
660
|
};
|
|
661
|
-
var
|
|
661
|
+
var aa = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Jl = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Ql = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ec = /[A-Z0-9]/g, tc = typeof document < "u", nc = function(e) {
|
|
662
662
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
663
663
|
};
|
|
664
|
-
function
|
|
664
|
+
function Ro(e, t, n) {
|
|
665
665
|
return t.__k == null && (t.textContent = ""), Pn(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
return
|
|
667
|
+
function la(e, t, n) {
|
|
668
|
+
return Qi(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
669
669
|
}
|
|
670
670
|
Xe.prototype.isReactComponent = !0, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
671
671
|
Object.defineProperty(Xe.prototype, e, { configurable: !0, get: function() {
|
|
@@ -674,18 +674,18 @@ Xe.prototype.isReactComponent = !0, ["componentWillMount", "componentWillReceive
|
|
|
674
674
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
675
675
|
} });
|
|
676
676
|
});
|
|
677
|
-
var
|
|
677
|
+
var ps = q.event;
|
|
678
678
|
q.event = function(e) {
|
|
679
|
-
return
|
|
679
|
+
return ps && (e = ps(e)), e.persist = function() {
|
|
680
680
|
}, e.isPropagationStopped = function() {
|
|
681
681
|
return this.cancelBubble;
|
|
682
682
|
}, e.isDefaultPrevented = function() {
|
|
683
683
|
return this.defaultPrevented;
|
|
684
684
|
}, e.nativeEvent = e;
|
|
685
685
|
};
|
|
686
|
-
var
|
|
686
|
+
var Io, rc = { configurable: !0, get: function() {
|
|
687
687
|
return this.class;
|
|
688
|
-
} },
|
|
688
|
+
} }, gs = q.vnode;
|
|
689
689
|
q.vnode = function(e) {
|
|
690
690
|
typeof e.type == "string" && (function(t) {
|
|
691
691
|
var n = t.props, r = t.type, o = {}, s = r.indexOf("-") == -1;
|
|
@@ -701,88 +701,88 @@ q.vnode = function(e) {
|
|
|
701
701
|
})), o.defaultValue != null && (o.value = ut(n.children).forEach(function(d) {
|
|
702
702
|
d.props.selected = o.multiple ? o.defaultValue.indexOf(d.props.value) != -1 : o.defaultValue == d.props.value;
|
|
703
703
|
}))), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", rc)) : n.className && (o.class = o.className = n.className), t.props = o;
|
|
704
|
-
})(e), e.$$typeof =
|
|
704
|
+
})(e), e.$$typeof = aa, gs && gs(e);
|
|
705
705
|
};
|
|
706
|
-
var
|
|
706
|
+
var _s = q.__r;
|
|
707
707
|
q.__r = function(e) {
|
|
708
|
-
|
|
708
|
+
_s && _s(e), Io = e.__c;
|
|
709
709
|
};
|
|
710
|
-
var
|
|
710
|
+
var bs = q.diffed;
|
|
711
711
|
q.diffed = function(e) {
|
|
712
|
-
|
|
712
|
+
bs && bs(e);
|
|
713
713
|
var t = e.props, n = e.__e;
|
|
714
|
-
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value),
|
|
714
|
+
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), Io = null;
|
|
715
715
|
};
|
|
716
|
-
var
|
|
717
|
-
return
|
|
718
|
-
}, useCallback: ce, useContext: pt, useDebugValue:
|
|
719
|
-
function
|
|
716
|
+
var ca = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
717
|
+
return Io.__n[e.__c].props.value;
|
|
718
|
+
}, useCallback: ce, useContext: pt, useDebugValue: vo, useDeferredValue: xo, useEffect: H, useId: So, useImperativeHandle: yo, useInsertionEffect: ko, useLayoutEffect: mt, useMemo: de, useReducer: Yt, useRef: W, useState: U, useSyncExternalStore: Co, useTransition: No } } }, oc = "18.3.1";
|
|
719
|
+
function da(e) {
|
|
720
720
|
return ze.bind(null, e);
|
|
721
721
|
}
|
|
722
722
|
function je(e) {
|
|
723
|
-
return !!e && e.$$typeof ===
|
|
723
|
+
return !!e && e.$$typeof === aa;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function ua(e) {
|
|
726
726
|
return je(e) && e.type === pe;
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function ha(e) {
|
|
729
729
|
return !!e && typeof e.displayName == "string" && e.displayName.indexOf("Memo(") == 0;
|
|
730
730
|
}
|
|
731
731
|
function vt(e) {
|
|
732
732
|
return je(e) ? Bl.apply(null, arguments) : e;
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function Mo(e) {
|
|
735
735
|
return !!e.__k && (Pn(null, e), !0);
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function fa(e) {
|
|
738
738
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
739
739
|
}
|
|
740
|
-
var
|
|
740
|
+
var ma = function(e, t) {
|
|
741
741
|
return e(t);
|
|
742
|
-
},
|
|
742
|
+
}, pa = function(e, t) {
|
|
743
743
|
var n = q.debounceRendering;
|
|
744
744
|
q.debounceRendering = function(o) {
|
|
745
745
|
return o();
|
|
746
746
|
};
|
|
747
747
|
var r = e(t);
|
|
748
748
|
return q.debounceRendering = n, r;
|
|
749
|
-
},
|
|
750
|
-
const
|
|
749
|
+
}, ga = je, Rn = { useState: U, useId: So, useReducer: Yt, useEffect: H, useLayoutEffect: mt, useInsertionEffect: ko, useTransition: No, useDeferredValue: xo, useSyncExternalStore: Co, startTransition: To, useRef: W, useImperativeHandle: yo, useMemo: de, useCallback: ce, useContext: pt, useDebugValue: vo, version: "18.3.1", Children: Be, render: Ro, hydrate: la, unmountComponentAtNode: Mo, createPortal: ia, createElement: ze, createContext: ht, createFactory: da, cloneElement: vt, createRef: Wi, Fragment: pe, isValidElement: je, isElement: ga, isFragment: ua, isMemo: ha, findDOMNode: fa, Component: Xe, PureComponent: cr, memo: Ao, forwardRef: Z, flushSync: pa, unstable_batchedUpdates: ma, StrictMode: pe, Suspense: Pe, SuspenseList: Ht, lazy: He, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ca };
|
|
750
|
+
const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Children: Be, Component: Xe, Fragment: pe, PureComponent: cr, StrictMode: pe, Suspense: Pe, SuspenseList: Ht, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ca, cloneElement: vt, createContext: ht, createElement: ze, createFactory: da, createPortal: ia, createRef: Wi, default: Rn, findDOMNode: fa, flushSync: pa, forwardRef: Z, hydrate: la, isElement: ga, isFragment: ua, isMemo: ha, isValidElement: je, lazy: He, memo: Ao, render: Ro, startTransition: To, unmountComponentAtNode: Mo, unstable_batchedUpdates: ma, useCallback: ce, useContext: pt, useDebugValue: vo, useDeferredValue: xo, useEffect: H, useErrorBoundary: Gl, useId: So, useImperativeHandle: yo, useInsertionEffect: ko, useLayoutEffect: mt, useMemo: de, useReducer: Yt, useRef: W, useState: U, useSyncExternalStore: Co, useTransition: No, version: oc }, Symbol.toStringTag, { value: "Module" }));
|
|
751
751
|
function sc(e) {
|
|
752
752
|
return {
|
|
753
753
|
// eslint-disable-next-line
|
|
754
754
|
render: function(t) {
|
|
755
|
-
|
|
755
|
+
Ro(t, e);
|
|
756
756
|
},
|
|
757
757
|
// eslint-disable-next-line
|
|
758
758
|
unmount: function() {
|
|
759
|
-
|
|
759
|
+
Mo(e);
|
|
760
760
|
}
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function Es(e, t) {
|
|
764
764
|
if (typeof e == "function")
|
|
765
765
|
return e(t);
|
|
766
766
|
e != null && (e.current = t);
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Oo(...e) {
|
|
769
769
|
return (t) => {
|
|
770
770
|
let n = !1;
|
|
771
771
|
const r = e.map((o) => {
|
|
772
|
-
const s =
|
|
772
|
+
const s = Es(o, t);
|
|
773
773
|
return !n && typeof s == "function" && (n = !0), s;
|
|
774
774
|
});
|
|
775
775
|
if (n)
|
|
776
776
|
return () => {
|
|
777
777
|
for (let o = 0; o < r.length; o++) {
|
|
778
778
|
const s = r[o];
|
|
779
|
-
typeof s == "function" ? s() :
|
|
779
|
+
typeof s == "function" ? s() : Es(e[o], null);
|
|
780
780
|
}
|
|
781
781
|
};
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
784
|
function Dt(...e) {
|
|
785
|
-
return ce(
|
|
785
|
+
return ce(Oo(...e), e);
|
|
786
786
|
}
|
|
787
787
|
// @__NO_SIDE_EFFECTS__
|
|
788
788
|
function ic(e) {
|
|
@@ -802,7 +802,7 @@ function ac(e) {
|
|
|
802
802
|
const { children: o, ...s } = n;
|
|
803
803
|
if (je(o)) {
|
|
804
804
|
const a = uc(o), i = dc(s, o.props);
|
|
805
|
-
return o.type !== pe && (i.ref = r ?
|
|
805
|
+
return o.type !== pe && (i.ref = r ? Oo(r, a) : a), vt(o, i);
|
|
806
806
|
}
|
|
807
807
|
return Be.count(o) > 1 ? Be.only(null) : null;
|
|
808
808
|
});
|
|
@@ -988,7 +988,7 @@ function Pt(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
988
988
|
function vc(e, t) {
|
|
989
989
|
return Yt((n, r) => t[n][r] ?? n, e);
|
|
990
990
|
}
|
|
991
|
-
var
|
|
991
|
+
var Po = "ScrollArea", [ba] = gc(Po), [Sc, Je] = ba(Po), Ea = Z(
|
|
992
992
|
(e, t) => {
|
|
993
993
|
const {
|
|
994
994
|
__scopeScrollArea: n,
|
|
@@ -1038,10 +1038,10 @@ var Oo = "ScrollArea", [_a] = gc(Oo), [Sc, Je] = _a(Oo), ba = Z(
|
|
|
1038
1038
|
);
|
|
1039
1039
|
}
|
|
1040
1040
|
);
|
|
1041
|
-
|
|
1042
|
-
var
|
|
1041
|
+
Ea.displayName = Po;
|
|
1042
|
+
var ya = "ScrollAreaViewport", va = Z(
|
|
1043
1043
|
(e, t) => {
|
|
1044
|
-
const { __scopeScrollArea: n, children: r, nonce: o, ...s } = e, a = Je(
|
|
1044
|
+
const { __scopeScrollArea: n, children: r, nonce: o, ...s } = e, a = Je(ya, n), i = W(null), c = Dt(t, i, a.onViewportChange);
|
|
1045
1045
|
return /* @__PURE__ */ l(pe, { children: [
|
|
1046
1046
|
/* @__PURE__ */ l(
|
|
1047
1047
|
"style",
|
|
@@ -1080,16 +1080,16 @@ var Ea = "ScrollAreaViewport", ya = Z(
|
|
|
1080
1080
|
] });
|
|
1081
1081
|
}
|
|
1082
1082
|
);
|
|
1083
|
-
|
|
1084
|
-
var at = "ScrollAreaScrollbar",
|
|
1083
|
+
va.displayName = ya;
|
|
1084
|
+
var at = "ScrollAreaScrollbar", Lo = Z(
|
|
1085
1085
|
(e, t) => {
|
|
1086
1086
|
const { forceMount: n, ...r } = e, o = Je(at, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = o, i = e.orientation === "horizontal";
|
|
1087
1087
|
return H(() => (i ? s(!0) : a(!0), () => {
|
|
1088
1088
|
i ? s(!1) : a(!1);
|
|
1089
|
-
}), [i, s, a]), o.type === "hover" ? /* @__PURE__ */ l(wc, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ l(Cc, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ l(
|
|
1089
|
+
}), [i, s, a]), o.type === "hover" ? /* @__PURE__ */ l(wc, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ l(Cc, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ l(Sa, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ l(Do, { ...r, ref: t }) : null;
|
|
1090
1090
|
}
|
|
1091
1091
|
);
|
|
1092
|
-
|
|
1092
|
+
Lo.displayName = at;
|
|
1093
1093
|
var wc = Z((e, t) => {
|
|
1094
1094
|
const { forceMount: n, ...r } = e, o = Je(at, e.__scopeScrollArea), [s, a] = U(!1);
|
|
1095
1095
|
return H(() => {
|
|
@@ -1106,7 +1106,7 @@ var wc = Z((e, t) => {
|
|
|
1106
1106
|
};
|
|
1107
1107
|
}
|
|
1108
1108
|
}, [o.scrollArea, o.scrollHideDelay]), /* @__PURE__ */ l(Vn, { present: n || s, children: /* @__PURE__ */ l(
|
|
1109
|
-
|
|
1109
|
+
Sa,
|
|
1110
1110
|
{
|
|
1111
1111
|
"data-state": s ? "visible" : "hidden",
|
|
1112
1112
|
...r,
|
|
@@ -1148,7 +1148,7 @@ var wc = Z((e, t) => {
|
|
|
1148
1148
|
return d.addEventListener("scroll", u), () => d.removeEventListener("scroll", u);
|
|
1149
1149
|
}
|
|
1150
1150
|
}, [o.viewport, s, c, a]), /* @__PURE__ */ l(Vn, { present: n || i !== "hidden", children: /* @__PURE__ */ l(
|
|
1151
|
-
|
|
1151
|
+
Do,
|
|
1152
1152
|
{
|
|
1153
1153
|
"data-state": i === "hidden" ? "hidden" : "visible",
|
|
1154
1154
|
...r,
|
|
@@ -1157,7 +1157,7 @@ var wc = Z((e, t) => {
|
|
|
1157
1157
|
onPointerLeave: Pt(e.onPointerLeave, () => c("POINTER_LEAVE"))
|
|
1158
1158
|
}
|
|
1159
1159
|
) });
|
|
1160
|
-
}),
|
|
1160
|
+
}), Sa = Z((e, t) => {
|
|
1161
1161
|
const n = Je(at, e.__scopeScrollArea), { forceMount: r, ...o } = e, [s, a] = U(!1), i = e.orientation === "horizontal", c = _r(() => {
|
|
1162
1162
|
if (n.viewport) {
|
|
1163
1163
|
const d = n.viewport.offsetWidth < n.viewport.scrollWidth, f = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
@@ -1165,19 +1165,19 @@ var wc = Z((e, t) => {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
}, 10);
|
|
1167
1167
|
return Wt(n.viewport, c), Wt(n.content, c), /* @__PURE__ */ l(Vn, { present: r || s, children: /* @__PURE__ */ l(
|
|
1168
|
-
|
|
1168
|
+
Do,
|
|
1169
1169
|
{
|
|
1170
1170
|
"data-state": s ? "visible" : "hidden",
|
|
1171
1171
|
...o,
|
|
1172
1172
|
ref: t
|
|
1173
1173
|
}
|
|
1174
1174
|
) });
|
|
1175
|
-
}),
|
|
1175
|
+
}), Do = Z((e, t) => {
|
|
1176
1176
|
const { orientation: n = "vertical", ...r } = e, o = Je(at, e.__scopeScrollArea), s = W(null), a = W(0), [i, c] = U({
|
|
1177
1177
|
content: 0,
|
|
1178
1178
|
viewport: 0,
|
|
1179
1179
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
1180
|
-
}), d =
|
|
1180
|
+
}), d = Na(i.viewport, i.content), f = {
|
|
1181
1181
|
...r,
|
|
1182
1182
|
sizes: i,
|
|
1183
1183
|
onSizesChange: c,
|
|
@@ -1196,7 +1196,7 @@ var wc = Z((e, t) => {
|
|
|
1196
1196
|
ref: t,
|
|
1197
1197
|
onThumbPositionChange: () => {
|
|
1198
1198
|
if (o.viewport && s.current) {
|
|
1199
|
-
const u = o.viewport.scrollLeft, p =
|
|
1199
|
+
const u = o.viewport.scrollLeft, p = ys(u, i, o.dir);
|
|
1200
1200
|
s.current.style.transform = `translate3d(${p}px, 0, 0)`;
|
|
1201
1201
|
}
|
|
1202
1202
|
},
|
|
@@ -1214,7 +1214,7 @@ var wc = Z((e, t) => {
|
|
|
1214
1214
|
ref: t,
|
|
1215
1215
|
onThumbPositionChange: () => {
|
|
1216
1216
|
if (o.viewport && s.current) {
|
|
1217
|
-
const u = o.viewport.scrollTop, p =
|
|
1217
|
+
const u = o.viewport.scrollTop, p = ys(u, i);
|
|
1218
1218
|
s.current.style.transform = `translate3d(0, ${p}px, 0)`;
|
|
1219
1219
|
}
|
|
1220
1220
|
},
|
|
@@ -1231,7 +1231,7 @@ var wc = Z((e, t) => {
|
|
|
1231
1231
|
return H(() => {
|
|
1232
1232
|
c.current && i(getComputedStyle(c.current));
|
|
1233
1233
|
}, [c]), /* @__PURE__ */ l(
|
|
1234
|
-
|
|
1234
|
+
Ca,
|
|
1235
1235
|
{
|
|
1236
1236
|
"data-orientation": "horizontal",
|
|
1237
1237
|
...o,
|
|
@@ -1249,7 +1249,7 @@ var wc = Z((e, t) => {
|
|
|
1249
1249
|
onWheelScroll: (f, h) => {
|
|
1250
1250
|
if (s.viewport) {
|
|
1251
1251
|
const u = s.viewport.scrollLeft + f.deltaX;
|
|
1252
|
-
e.onWheelScroll(u),
|
|
1252
|
+
e.onWheelScroll(u), Aa(u, h) && f.preventDefault();
|
|
1253
1253
|
}
|
|
1254
1254
|
},
|
|
1255
1255
|
onResize: () => {
|
|
@@ -1270,7 +1270,7 @@ var wc = Z((e, t) => {
|
|
|
1270
1270
|
return H(() => {
|
|
1271
1271
|
c.current && i(getComputedStyle(c.current));
|
|
1272
1272
|
}, [c]), /* @__PURE__ */ l(
|
|
1273
|
-
|
|
1273
|
+
Ca,
|
|
1274
1274
|
{
|
|
1275
1275
|
"data-orientation": "vertical",
|
|
1276
1276
|
...o,
|
|
@@ -1289,7 +1289,7 @@ var wc = Z((e, t) => {
|
|
|
1289
1289
|
onWheelScroll: (f, h) => {
|
|
1290
1290
|
if (s.viewport) {
|
|
1291
1291
|
const u = s.viewport.scrollTop + f.deltaY;
|
|
1292
|
-
e.onWheelScroll(u),
|
|
1292
|
+
e.onWheelScroll(u), Aa(u, h) && f.preventDefault();
|
|
1293
1293
|
}
|
|
1294
1294
|
},
|
|
1295
1295
|
onResize: () => {
|
|
@@ -1305,7 +1305,7 @@ var wc = Z((e, t) => {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
);
|
|
1308
|
-
}), [Nc,
|
|
1308
|
+
}), [Nc, wa] = ba(at), Ca = Z((e, t) => {
|
|
1309
1309
|
const {
|
|
1310
1310
|
__scopeScrollArea: n,
|
|
1311
1311
|
sizes: r,
|
|
@@ -1359,14 +1359,14 @@ var wc = Z((e, t) => {
|
|
|
1359
1359
|
)
|
|
1360
1360
|
}
|
|
1361
1361
|
);
|
|
1362
|
-
}), dr = "ScrollAreaThumb",
|
|
1362
|
+
}), dr = "ScrollAreaThumb", Ta = Z(
|
|
1363
1363
|
(e, t) => {
|
|
1364
|
-
const { forceMount: n, ...r } = e, o =
|
|
1364
|
+
const { forceMount: n, ...r } = e, o = wa(dr, e.__scopeScrollArea);
|
|
1365
1365
|
return /* @__PURE__ */ l(Vn, { present: n || o.hasThumb, children: /* @__PURE__ */ l(kc, { ref: t, ...r }) });
|
|
1366
1366
|
}
|
|
1367
1367
|
), kc = Z(
|
|
1368
1368
|
(e, t) => {
|
|
1369
|
-
const { __scopeScrollArea: n, style: r, ...o } = e, s = Je(dr, n), a =
|
|
1369
|
+
const { __scopeScrollArea: n, style: r, ...o } = e, s = Je(dr, n), a = wa(dr, n), { onThumbPositionChange: i } = a, c = Dt(
|
|
1370
1370
|
t,
|
|
1371
1371
|
(h) => a.onThumbChange(h)
|
|
1372
1372
|
), d = W(void 0), f = _r(() => {
|
|
@@ -1403,16 +1403,16 @@ var wc = Z((e, t) => {
|
|
|
1403
1403
|
);
|
|
1404
1404
|
}
|
|
1405
1405
|
);
|
|
1406
|
-
|
|
1407
|
-
var
|
|
1406
|
+
Ta.displayName = dr;
|
|
1407
|
+
var Fo = "ScrollAreaCorner", xa = Z(
|
|
1408
1408
|
(e, t) => {
|
|
1409
|
-
const n = Je(
|
|
1409
|
+
const n = Je(Fo, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
1410
1410
|
return n.type !== "scroll" && r ? /* @__PURE__ */ l(Ac, { ...e, ref: t }) : null;
|
|
1411
1411
|
}
|
|
1412
1412
|
);
|
|
1413
|
-
|
|
1413
|
+
xa.displayName = Fo;
|
|
1414
1414
|
var Ac = Z((e, t) => {
|
|
1415
|
-
const { __scopeScrollArea: n, ...r } = e, o = Je(
|
|
1415
|
+
const { __scopeScrollArea: n, ...r } = e, o = Je(Fo, n), [s, a] = U(0), [i, c] = U(0), d = !!(s && i);
|
|
1416
1416
|
return Wt(o.scrollbarX, () => {
|
|
1417
1417
|
const f = o.scrollbarX?.offsetHeight || 0;
|
|
1418
1418
|
o.onCornerHeightChange(f), c(f);
|
|
@@ -1439,30 +1439,30 @@ var Ac = Z((e, t) => {
|
|
|
1439
1439
|
function ur(e) {
|
|
1440
1440
|
return e ? parseInt(e, 10) : 0;
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function Na(e, t) {
|
|
1443
1443
|
const n = e / t;
|
|
1444
1444
|
return isNaN(n) ? 0 : n;
|
|
1445
1445
|
}
|
|
1446
1446
|
function gr(e) {
|
|
1447
|
-
const t =
|
|
1447
|
+
const t = Na(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
1448
1448
|
return Math.max(r, 18);
|
|
1449
1449
|
}
|
|
1450
1450
|
function Rc(e, t, n, r = "ltr") {
|
|
1451
1451
|
const o = gr(n), s = o / 2, a = t || s, i = o - a, c = n.scrollbar.paddingStart + a, d = n.scrollbar.size - n.scrollbar.paddingEnd - i, f = n.content - n.viewport, h = r === "ltr" ? [0, f] : [f * -1, 0];
|
|
1452
|
-
return
|
|
1452
|
+
return ka([c, d], h)(e);
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function ys(e, t, n = "ltr") {
|
|
1455
1455
|
const r = gr(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, a = t.content - t.viewport, i = s - r, c = n === "ltr" ? [0, a] : [a * -1, 0], d = yc(e, c);
|
|
1456
|
-
return
|
|
1456
|
+
return ka([0, a], [0, i])(d);
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function ka(e, t) {
|
|
1459
1459
|
return (n) => {
|
|
1460
1460
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
1461
1461
|
const r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
1462
1462
|
return t[0] + r * (n - e[0]);
|
|
1463
1463
|
};
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function Aa(e, t) {
|
|
1466
1466
|
return e > 0 && e < t;
|
|
1467
1467
|
}
|
|
1468
1468
|
var Ic = (e, t = () => {
|
|
@@ -1493,7 +1493,7 @@ function Wt(e, t) {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
}, [e, n]);
|
|
1495
1495
|
}
|
|
1496
|
-
var
|
|
1496
|
+
var Ra = Ea, Mc = va, Oc = xa;
|
|
1497
1497
|
function Pc(e) {
|
|
1498
1498
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
1499
1499
|
var t = e.default;
|
|
@@ -1518,10 +1518,10 @@ function Pc(e) {
|
|
|
1518
1518
|
});
|
|
1519
1519
|
}), n;
|
|
1520
1520
|
}
|
|
1521
|
-
var xt = {}, on = {}, Ir = {}, sn = {}, an = {}, ln = {},
|
|
1522
|
-
function
|
|
1523
|
-
if (
|
|
1524
|
-
|
|
1521
|
+
var xt = {}, on = {}, Ir = {}, sn = {}, an = {}, ln = {}, vs;
|
|
1522
|
+
function Uo() {
|
|
1523
|
+
if (vs) return ln;
|
|
1524
|
+
vs = 1, Object.defineProperty(ln, "__esModule", { value: !0 }), ln.EventEmitter = void 0;
|
|
1525
1525
|
let e = class {
|
|
1526
1526
|
eventListeners = /* @__PURE__ */ new Map();
|
|
1527
1527
|
on(n, r) {
|
|
@@ -1542,9 +1542,9 @@ function Fo() {
|
|
|
1542
1542
|
};
|
|
1543
1543
|
return ln.EventEmitter = e, ln;
|
|
1544
1544
|
}
|
|
1545
|
-
var Nt = {},
|
|
1545
|
+
var Nt = {}, Ss;
|
|
1546
1546
|
function $n() {
|
|
1547
|
-
return
|
|
1547
|
+
return Ss || (Ss = 1, Object.defineProperty(Nt, "__esModule", { value: !0 }), Nt.DisconnectionReason = Nt.ConnectionStatus = void 0, Nt.ConnectionStatus = {
|
|
1548
1548
|
CONNECTING: "connecting",
|
|
1549
1549
|
CONNECTED: "connected",
|
|
1550
1550
|
NOT_CONNECTED: "not_connected"
|
|
@@ -1558,11 +1558,11 @@ function $n() {
|
|
|
1558
1558
|
NETWORK_ERROR: "network_error"
|
|
1559
1559
|
}), Nt;
|
|
1560
1560
|
}
|
|
1561
|
-
var
|
|
1562
|
-
function
|
|
1563
|
-
if (
|
|
1564
|
-
|
|
1565
|
-
const e = /* @__PURE__ */
|
|
1561
|
+
var ws;
|
|
1562
|
+
function Vo() {
|
|
1563
|
+
if (ws) return an;
|
|
1564
|
+
ws = 1, Object.defineProperty(an, "__esModule", { value: !0 }), an.BaseConnection = void 0;
|
|
1565
|
+
const e = /* @__PURE__ */ Uo(), t = /* @__PURE__ */ $n();
|
|
1566
1566
|
let n = class {
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Current connection status
|
|
@@ -1676,9 +1676,9 @@ function Uo() {
|
|
|
1676
1676
|
};
|
|
1677
1677
|
return an.BaseConnection = n, an;
|
|
1678
1678
|
}
|
|
1679
|
-
var Mr = {},
|
|
1679
|
+
var Mr = {}, Cs;
|
|
1680
1680
|
function Ge() {
|
|
1681
|
-
return
|
|
1681
|
+
return Cs || (Cs = 1, (function(e) {
|
|
1682
1682
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValidationError = e.ConfigurationError = e.StoreError = e.MessageError = e.SessionError = e.FileError = e.AuthenticationError = e.RecordingError = e.ConnectionError = e.InternalServerError = e.RateLimitError = e.MethodNotAllowedError = e.NotFoundError = e.PermissionDeniedError = e.UnauthorizedError = e.BadRequestError = e.APIConnectionTimeoutError = e.APIUserAbortError = e.APIError = e.SynapseError = e.SynapseErrorCode = void 0, e.normalizeError = y, e.SynapseErrorCode = {
|
|
1683
1683
|
API: "API_ERROR",
|
|
1684
1684
|
CONNECTION: "CONNECTION_ERROR",
|
|
@@ -1880,11 +1880,11 @@ function Ge() {
|
|
|
1880
1880
|
}
|
|
1881
1881
|
})(Mr)), Mr;
|
|
1882
1882
|
}
|
|
1883
|
-
var
|
|
1884
|
-
function
|
|
1885
|
-
if (
|
|
1886
|
-
|
|
1887
|
-
const e = /* @__PURE__ */
|
|
1883
|
+
var Ts;
|
|
1884
|
+
function Ia() {
|
|
1885
|
+
if (Ts) return sn;
|
|
1886
|
+
Ts = 1, Object.defineProperty(sn, "__esModule", { value: !0 }), sn.WebSocketConnection = void 0;
|
|
1887
|
+
const e = /* @__PURE__ */ Vo(), t = /* @__PURE__ */ $n(), n = /* @__PURE__ */ Ge();
|
|
1888
1888
|
class r extends e.BaseConnection {
|
|
1889
1889
|
conversationId;
|
|
1890
1890
|
socket = null;
|
|
@@ -1998,11 +1998,11 @@ function Ra() {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
return sn.WebSocketConnection = r, sn;
|
|
2000
2000
|
}
|
|
2001
|
-
var cn = {},
|
|
2002
|
-
function
|
|
2003
|
-
if (
|
|
2004
|
-
|
|
2005
|
-
const e = /* @__PURE__ */
|
|
2001
|
+
var cn = {}, xs;
|
|
2002
|
+
function Ma() {
|
|
2003
|
+
if (xs) return cn;
|
|
2004
|
+
xs = 1, Object.defineProperty(cn, "__esModule", { value: !0 }), cn.SSEConnection = void 0;
|
|
2005
|
+
const e = /* @__PURE__ */ Vo(), t = /* @__PURE__ */ $n(), n = /* @__PURE__ */ Ge();
|
|
2006
2006
|
class r extends e.BaseConnection {
|
|
2007
2007
|
conversationId;
|
|
2008
2008
|
config;
|
|
@@ -2167,11 +2167,11 @@ function Ia() {
|
|
|
2167
2167
|
}
|
|
2168
2168
|
return cn.SSEConnection = r, cn;
|
|
2169
2169
|
}
|
|
2170
|
-
var
|
|
2171
|
-
function
|
|
2172
|
-
return
|
|
2170
|
+
var Ns;
|
|
2171
|
+
function Oa() {
|
|
2172
|
+
return Ns || (Ns = 1, (function(e) {
|
|
2173
2173
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ConnectionFactory = e.ConnectionType = void 0;
|
|
2174
|
-
const t = /* @__PURE__ */
|
|
2174
|
+
const t = /* @__PURE__ */ Ia(), n = /* @__PURE__ */ Ma(), r = /* @__PURE__ */ Ge();
|
|
2175
2175
|
e.ConnectionType = {
|
|
2176
2176
|
SOCKET: "socket",
|
|
2177
2177
|
HTTP_STREAM: "http_stream"
|
|
@@ -2196,10 +2196,10 @@ function Ma() {
|
|
|
2196
2196
|
e.ConnectionFactory = o;
|
|
2197
2197
|
})(Ir)), Ir;
|
|
2198
2198
|
}
|
|
2199
|
-
var dn = {},
|
|
2200
|
-
function
|
|
2201
|
-
if (
|
|
2202
|
-
|
|
2199
|
+
var dn = {}, ks;
|
|
2200
|
+
function Pa() {
|
|
2201
|
+
if (ks) return dn;
|
|
2202
|
+
ks = 1, Object.defineProperty(dn, "__esModule", { value: !0 }), dn.getConfig = void 0;
|
|
2203
2203
|
const e = {
|
|
2204
2204
|
WEBSOCKET_URL: "wss://matrix-ws.eka.care/reloaded",
|
|
2205
2205
|
BASE_API_URL: "https://matrix.eka.care/reloaded"
|
|
@@ -2213,10 +2213,10 @@ function Oa() {
|
|
|
2213
2213
|
}, r = (o = "production") => o === "development" ? t : o === "production" ? e : o === "staging" ? n : e;
|
|
2214
2214
|
return dn.getConfig = r, dn;
|
|
2215
2215
|
}
|
|
2216
|
-
var un = {}, hn = {},
|
|
2217
|
-
function
|
|
2218
|
-
if (
|
|
2219
|
-
|
|
2216
|
+
var un = {}, hn = {}, As;
|
|
2217
|
+
function $o() {
|
|
2218
|
+
if (As) return hn;
|
|
2219
|
+
As = 1, Object.defineProperty(hn, "__esModule", { value: !0 }), hn.HttpClient = void 0;
|
|
2220
2220
|
const e = /* @__PURE__ */ Ge();
|
|
2221
2221
|
let t = class {
|
|
2222
2222
|
baseUrl;
|
|
@@ -2327,10 +2327,10 @@ function Vo() {
|
|
|
2327
2327
|
};
|
|
2328
2328
|
return hn.HttpClient = t, hn;
|
|
2329
2329
|
}
|
|
2330
|
-
var fn = {}, mn = {},
|
|
2330
|
+
var fn = {}, mn = {}, Rs;
|
|
2331
2331
|
function zn() {
|
|
2332
|
-
if (
|
|
2333
|
-
|
|
2332
|
+
if (Rs) return mn;
|
|
2333
|
+
Rs = 1, Object.defineProperty(mn, "__esModule", { value: !0 }), mn.BaseResource = void 0;
|
|
2334
2334
|
let e = class {
|
|
2335
2335
|
client;
|
|
2336
2336
|
constructor(n) {
|
|
@@ -2379,10 +2379,10 @@ function zn() {
|
|
|
2379
2379
|
};
|
|
2380
2380
|
return mn.BaseResource = e, mn;
|
|
2381
2381
|
}
|
|
2382
|
-
var
|
|
2383
|
-
function
|
|
2384
|
-
if (
|
|
2385
|
-
|
|
2382
|
+
var Is;
|
|
2383
|
+
function La() {
|
|
2384
|
+
if (Is) return fn;
|
|
2385
|
+
Is = 1, Object.defineProperty(fn, "__esModule", { value: !0 }), fn.Session = void 0;
|
|
2386
2386
|
const e = /* @__PURE__ */ zn();
|
|
2387
2387
|
let t = class extends e.BaseResource {
|
|
2388
2388
|
//Ts implicitly calls super() here
|
|
@@ -2411,10 +2411,10 @@ function Pa() {
|
|
|
2411
2411
|
};
|
|
2412
2412
|
return fn.Session = t, fn;
|
|
2413
2413
|
}
|
|
2414
|
-
var pn = {},
|
|
2414
|
+
var pn = {}, Ms;
|
|
2415
2415
|
function Lc() {
|
|
2416
|
-
if (
|
|
2417
|
-
|
|
2416
|
+
if (Ms) return pn;
|
|
2417
|
+
Ms = 1, Object.defineProperty(pn, "__esModule", { value: !0 }), pn.Config = void 0;
|
|
2418
2418
|
const e = /* @__PURE__ */ zn();
|
|
2419
2419
|
let t = class extends e.BaseResource {
|
|
2420
2420
|
basePath = "/med-assist/agent-config";
|
|
@@ -2424,10 +2424,10 @@ function Lc() {
|
|
|
2424
2424
|
};
|
|
2425
2425
|
return pn.Config = t, pn;
|
|
2426
2426
|
}
|
|
2427
|
-
var gn = {},
|
|
2428
|
-
function
|
|
2429
|
-
if (
|
|
2430
|
-
|
|
2427
|
+
var gn = {}, Os;
|
|
2428
|
+
function zo() {
|
|
2429
|
+
if (Os) return gn;
|
|
2430
|
+
Os = 1, Object.defineProperty(gn, "__esModule", { value: !0 }), gn.Auth = void 0;
|
|
2431
2431
|
const e = /* @__PURE__ */ zn();
|
|
2432
2432
|
let t = class extends e.BaseResource {
|
|
2433
2433
|
basePath = "/med-assist/auth/token-exchange";
|
|
@@ -2445,11 +2445,11 @@ function $o() {
|
|
|
2445
2445
|
};
|
|
2446
2446
|
return gn.Auth = t, gn;
|
|
2447
2447
|
}
|
|
2448
|
-
var _n = {}, Or = {},
|
|
2449
|
-
function
|
|
2450
|
-
return
|
|
2448
|
+
var _n = {}, Or = {}, Ps;
|
|
2449
|
+
function Da() {
|
|
2450
|
+
return Ps || (Ps = 1, (function(e) {
|
|
2451
2451
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.buildPrefetchKey = void 0, e.prefetchTokenExchange = a, e.consumePrefetchedExchange = i;
|
|
2452
|
-
const t = /* @__PURE__ */
|
|
2452
|
+
const t = /* @__PURE__ */ $o(), n = /* @__PURE__ */ Pa(), r = /* @__PURE__ */ zo(), o = /* @__PURE__ */ new Map(), s = (c, d, f) => `${c.replace(/\/$/, "")}|${d}|${f ?? ""}`;
|
|
2453
2453
|
e.buildPrefetchKey = s;
|
|
2454
2454
|
function a(c) {
|
|
2455
2455
|
const d = c.serverUrl || (0, n.getConfig)(c.environment).BASE_API_URL, f = (0, e.buildPrefetchKey)(d, c.agentId, c.authToken), h = o.get(f);
|
|
@@ -2478,11 +2478,11 @@ function La() {
|
|
|
2478
2478
|
}
|
|
2479
2479
|
})(Or)), Or;
|
|
2480
2480
|
}
|
|
2481
|
-
var
|
|
2481
|
+
var Ls;
|
|
2482
2482
|
function Dc() {
|
|
2483
|
-
if (
|
|
2484
|
-
|
|
2485
|
-
const e = /* @__PURE__ */ Ge(), t = /* @__PURE__ */
|
|
2483
|
+
if (Ls) return _n;
|
|
2484
|
+
Ls = 1, Object.defineProperty(_n, "__esModule", { value: !0 }), _n.TokenManager = void 0;
|
|
2485
|
+
const e = /* @__PURE__ */ Ge(), t = /* @__PURE__ */ Da();
|
|
2486
2486
|
let n = class {
|
|
2487
2487
|
auth;
|
|
2488
2488
|
httpClient;
|
|
@@ -2582,10 +2582,10 @@ function Dc() {
|
|
|
2582
2582
|
};
|
|
2583
2583
|
return _n.TokenManager = n, _n;
|
|
2584
2584
|
}
|
|
2585
|
-
var bn = {},
|
|
2585
|
+
var bn = {}, Ds;
|
|
2586
2586
|
function Fc() {
|
|
2587
|
-
if (
|
|
2588
|
-
|
|
2587
|
+
if (Ds) return bn;
|
|
2588
|
+
Ds = 1, Object.defineProperty(bn, "__esModule", { value: !0 }), bn.VoiceResource = void 0;
|
|
2589
2589
|
const e = /* @__PURE__ */ zn();
|
|
2590
2590
|
let t = class so extends e.BaseResource {
|
|
2591
2591
|
static ICE_SERVERS_PATH = "/med-assist/voice/ice-servers";
|
|
@@ -2602,11 +2602,11 @@ function Fc() {
|
|
|
2602
2602
|
};
|
|
2603
2603
|
return bn.VoiceResource = t, bn;
|
|
2604
2604
|
}
|
|
2605
|
-
var
|
|
2606
|
-
function
|
|
2607
|
-
if (
|
|
2608
|
-
|
|
2609
|
-
const e = /* @__PURE__ */
|
|
2605
|
+
var Fs;
|
|
2606
|
+
function Fa() {
|
|
2607
|
+
if (Fs) return un;
|
|
2608
|
+
Fs = 1, Object.defineProperty(un, "__esModule", { value: !0 }), un.ResourceManager = void 0;
|
|
2609
|
+
const e = /* @__PURE__ */ $o(), t = /* @__PURE__ */ La(), n = /* @__PURE__ */ Ge(), r = /* @__PURE__ */ Lc(), o = /* @__PURE__ */ zo(), s = /* @__PURE__ */ Dc(), a = /* @__PURE__ */ Fc();
|
|
2610
2610
|
class i {
|
|
2611
2611
|
resourceConfig;
|
|
2612
2612
|
httpClient;
|
|
@@ -2781,9 +2781,9 @@ function Da() {
|
|
|
2781
2781
|
}
|
|
2782
2782
|
return un.ResourceManager = i, un;
|
|
2783
2783
|
}
|
|
2784
|
-
var En = {}, Pr = {},
|
|
2785
|
-
function
|
|
2786
|
-
return
|
|
2784
|
+
var En = {}, Pr = {}, Us;
|
|
2785
|
+
function Ho() {
|
|
2786
|
+
return Us || (Us = 1, (function(e) {
|
|
2787
2787
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.MULTI_SELECT_ADDITIONAL_OPTION = e.SOCKET_EVENTS = e.SOCKET_CONTENT_TYPES = void 0, e.IsValidSocketMesssage = t, e.SOCKET_CONTENT_TYPES = {
|
|
2788
2788
|
TEXT: "text",
|
|
2789
2789
|
AUDIO: "audio",
|
|
@@ -2823,9 +2823,9 @@ function zo() {
|
|
|
2823
2823
|
}
|
|
2824
2824
|
})(Pr)), Pr;
|
|
2825
2825
|
}
|
|
2826
|
-
var Lr = {},
|
|
2826
|
+
var Lr = {}, Vs;
|
|
2827
2827
|
function Uc() {
|
|
2828
|
-
return
|
|
2828
|
+
return Vs || (Vs = 1, (function(e) {
|
|
2829
2829
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.Filemanager = e.MAX_FILE_SIZE = void 0;
|
|
2830
2830
|
const t = /* @__PURE__ */ Ge();
|
|
2831
2831
|
e.MAX_FILE_SIZE = 3 * 1024 * 1024;
|
|
@@ -2965,11 +2965,11 @@ function Uc() {
|
|
|
2965
2965
|
e.Filemanager = n;
|
|
2966
2966
|
})(Lr)), Lr;
|
|
2967
2967
|
}
|
|
2968
|
-
var nt = {},
|
|
2968
|
+
var nt = {}, $s;
|
|
2969
2969
|
function hr() {
|
|
2970
|
-
if (
|
|
2971
|
-
|
|
2972
|
-
const e = /* @__PURE__ */
|
|
2970
|
+
if ($s) return nt;
|
|
2971
|
+
$s = 1, Object.defineProperty(nt, "__esModule", { value: !0 }), nt.SYNAPSE_REALTIME_RESERVED_EVENTS = nt.SYNAPSE_REALTIME_ERROR_CODES = nt.SYNAPSE_REALTIME_EVENTS = nt.SYNAPSE_MESSAGE_TYPES = void 0;
|
|
2972
|
+
const e = /* @__PURE__ */ Ho();
|
|
2973
2973
|
return nt.SYNAPSE_MESSAGE_TYPES = e.SOCKET_CONTENT_TYPES, nt.SYNAPSE_REALTIME_EVENTS = {
|
|
2974
2974
|
CONNECTED: "connected",
|
|
2975
2975
|
DISCONNECTED: "disconnected",
|
|
@@ -3000,10 +3000,10 @@ function hr() {
|
|
|
3000
3000
|
//to be used for session expiry
|
|
3001
3001
|
}, nt;
|
|
3002
3002
|
}
|
|
3003
|
-
var yn = {},
|
|
3003
|
+
var yn = {}, zs;
|
|
3004
3004
|
function Vc() {
|
|
3005
|
-
if (
|
|
3006
|
-
|
|
3005
|
+
if (zs) return yn;
|
|
3006
|
+
zs = 1, Object.defineProperty(yn, "__esModule", { value: !0 }), yn.AudioManager = void 0;
|
|
3007
3007
|
const e = /* @__PURE__ */ Ge();
|
|
3008
3008
|
class t {
|
|
3009
3009
|
mediaRecorder = null;
|
|
@@ -3215,11 +3215,11 @@ function Vc() {
|
|
|
3215
3215
|
}
|
|
3216
3216
|
return yn.AudioManager = t, yn;
|
|
3217
3217
|
}
|
|
3218
|
-
var
|
|
3219
|
-
function
|
|
3220
|
-
if (
|
|
3221
|
-
|
|
3222
|
-
const e = /* @__PURE__ */
|
|
3218
|
+
var Hs;
|
|
3219
|
+
function Ua() {
|
|
3220
|
+
if (Hs) return En;
|
|
3221
|
+
Hs = 1, Object.defineProperty(En, "__esModule", { value: !0 }), En.MessageManager = void 0;
|
|
3222
|
+
const e = /* @__PURE__ */ Ho(), t = /* @__PURE__ */ Uc(), n = /* @__PURE__ */ hr(), r = /* @__PURE__ */ Vc(), o = /* @__PURE__ */ Ge();
|
|
3223
3223
|
let s = class {
|
|
3224
3224
|
connection = null;
|
|
3225
3225
|
callbacks = null;
|
|
@@ -3621,10 +3621,10 @@ function Fa() {
|
|
|
3621
3621
|
};
|
|
3622
3622
|
return En.MessageManager = s, En;
|
|
3623
3623
|
}
|
|
3624
|
-
var vn = {}, Sn = {},
|
|
3624
|
+
var vn = {}, Sn = {}, Bs;
|
|
3625
3625
|
function $c() {
|
|
3626
|
-
if (
|
|
3627
|
-
|
|
3626
|
+
if (Bs) return Sn;
|
|
3627
|
+
Bs = 1, Object.defineProperty(Sn, "__esModule", { value: !0 }), Sn.VoiceAudioAnalyser = void 0;
|
|
3628
3628
|
const e = 256;
|
|
3629
3629
|
let t = class {
|
|
3630
3630
|
audioCtx = null;
|
|
@@ -3650,9 +3650,9 @@ function $c() {
|
|
|
3650
3650
|
};
|
|
3651
3651
|
return Sn.VoiceAudioAnalyser = t, Sn;
|
|
3652
3652
|
}
|
|
3653
|
-
var kt = {},
|
|
3654
|
-
function
|
|
3655
|
-
return
|
|
3653
|
+
var kt = {}, js;
|
|
3654
|
+
function Va() {
|
|
3655
|
+
return js || (js = 1, Object.defineProperty(kt, "__esModule", { value: !0 }), kt.VOICE_AGENT_EVENTS = kt.VOICE_AGENT_STATE = void 0, kt.VOICE_AGENT_STATE = {
|
|
3656
3656
|
IDLE: "idle",
|
|
3657
3657
|
CONNECTING: "connecting",
|
|
3658
3658
|
CONNECTED: "connected",
|
|
@@ -3667,11 +3667,11 @@ function Ua() {
|
|
|
3667
3667
|
ERROR: "voice:error"
|
|
3668
3668
|
}), kt;
|
|
3669
3669
|
}
|
|
3670
|
-
var
|
|
3670
|
+
var Gs;
|
|
3671
3671
|
function zc() {
|
|
3672
|
-
if (
|
|
3673
|
-
|
|
3674
|
-
const e = /* @__PURE__ */
|
|
3672
|
+
if (Gs) return vn;
|
|
3673
|
+
Gs = 1, Object.defineProperty(vn, "__esModule", { value: !0 }), vn.VoiceAgent = void 0;
|
|
3674
|
+
const e = /* @__PURE__ */ Uo(), t = /* @__PURE__ */ $c(), n = /* @__PURE__ */ Ge(), r = /* @__PURE__ */ Va(), o = 3e3, s = 8, a = 3600 * 1e3, i = 600;
|
|
3675
3675
|
function c(f, h) {
|
|
3676
3676
|
return new Promise((u) => {
|
|
3677
3677
|
if (f.iceGatheringState === "complete") {
|
|
@@ -3854,11 +3854,11 @@ function zc() {
|
|
|
3854
3854
|
};
|
|
3855
3855
|
return vn.VoiceAgent = d, vn;
|
|
3856
3856
|
}
|
|
3857
|
-
var
|
|
3857
|
+
var Ws;
|
|
3858
3858
|
function Hc() {
|
|
3859
|
-
if (
|
|
3860
|
-
|
|
3861
|
-
const e = /* @__PURE__ */
|
|
3859
|
+
if (Ws) return on;
|
|
3860
|
+
Ws = 1, Object.defineProperty(on, "__esModule", { value: !0 }), on.SynapseSDK = void 0;
|
|
3861
|
+
const e = /* @__PURE__ */ Oa(), t = /* @__PURE__ */ $n(), n = /* @__PURE__ */ Pa(), r = /* @__PURE__ */ Fa(), o = /* @__PURE__ */ Ua(), s = /* @__PURE__ */ hr(), a = /* @__PURE__ */ Uo(), i = /* @__PURE__ */ Ge(), c = /* @__PURE__ */ Ho(), d = /* @__PURE__ */ zc();
|
|
3862
3862
|
class f {
|
|
3863
3863
|
connection = null;
|
|
3864
3864
|
messageManager;
|
|
@@ -4448,26 +4448,26 @@ function Hc() {
|
|
|
4448
4448
|
}
|
|
4449
4449
|
return on.SynapseSDK = f, on;
|
|
4450
4450
|
}
|
|
4451
|
-
var Dr = {},
|
|
4451
|
+
var Dr = {}, qs;
|
|
4452
4452
|
function Bc() {
|
|
4453
|
-
return
|
|
4453
|
+
return qs || (qs = 1, Object.defineProperty(Dr, "__esModule", { value: !0 })), Dr;
|
|
4454
4454
|
}
|
|
4455
|
-
var wn = {},
|
|
4455
|
+
var wn = {}, Ks;
|
|
4456
4456
|
function jc() {
|
|
4457
|
-
return
|
|
4457
|
+
return Ks || (Ks = 1, Object.defineProperty(wn, "__esModule", { value: !0 }), wn.USER_FEEDBACK = void 0, wn.USER_FEEDBACK = {
|
|
4458
4458
|
LIKE: "LIKE",
|
|
4459
4459
|
DISLIKE: "DISLIKE",
|
|
4460
4460
|
NONE: "NONE"
|
|
4461
4461
|
}), wn;
|
|
4462
4462
|
}
|
|
4463
|
-
var Fr = {},
|
|
4463
|
+
var Fr = {}, Ys;
|
|
4464
4464
|
function Gc() {
|
|
4465
|
-
return
|
|
4465
|
+
return Ys || (Ys = 1, Object.defineProperty(Fr, "__esModule", { value: !0 })), Fr;
|
|
4466
4466
|
}
|
|
4467
|
-
var Cn = {},
|
|
4467
|
+
var Cn = {}, Zs;
|
|
4468
4468
|
function Wc() {
|
|
4469
|
-
if (
|
|
4470
|
-
|
|
4469
|
+
if (Zs) return Cn;
|
|
4470
|
+
Zs = 1, Object.defineProperty(Cn, "__esModule", { value: !0 }), Cn.ToolCall = void 0;
|
|
4471
4471
|
const e = /* @__PURE__ */ zn();
|
|
4472
4472
|
let t = class extends e.BaseResource {
|
|
4473
4473
|
basePath = "/med-assist/api-call-tool";
|
|
@@ -4479,10 +4479,10 @@ function Wc() {
|
|
|
4479
4479
|
};
|
|
4480
4480
|
return Cn.ToolCall = t, Cn;
|
|
4481
4481
|
}
|
|
4482
|
-
var Fe = {},
|
|
4482
|
+
var Fe = {}, Xs;
|
|
4483
4483
|
function qc() {
|
|
4484
|
-
if (
|
|
4485
|
-
|
|
4484
|
+
if (Xs) return Fe;
|
|
4485
|
+
Xs = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.SYNAPSE_EICITATION_STATUS = Fe.SYNAPSE_CTA_ACTIONS = Fe.SYNAPSE_TOOL_FORMATS = Fe.SYNAPSE_TOOL_CALLBACK_NAME = Fe.SYNAPSE_COMPONENTS = Fe.SYNAPSE_TOOL_NAME = void 0;
|
|
4486
4486
|
var e;
|
|
4487
4487
|
(function(a) {
|
|
4488
4488
|
a.MOBILE_VERIFICATION = "mobile_verification", a.AVAILABILITY_DATES = "availability_dates", a.AVAILABILITY_SLOTS = "availability_slots", a.DOCTOR_AVAILABILITY = "doctor_availability", a.DOCTOR_DETAILS = "doctor_details", a.GET_LOCATION = "get_location";
|
|
@@ -4508,13 +4508,13 @@ function qc() {
|
|
|
4508
4508
|
a.PROGRESS = "progress", a.SUCCESS = "success", a.FAILURE = "failure";
|
|
4509
4509
|
})(s || (Fe.SYNAPSE_EICITATION_STATUS = s = {})), Fe;
|
|
4510
4510
|
}
|
|
4511
|
-
var Ur = {},
|
|
4511
|
+
var Ur = {}, Js;
|
|
4512
4512
|
function Kc() {
|
|
4513
|
-
return
|
|
4513
|
+
return Js || (Js = 1, Object.defineProperty(Ur, "__esModule", { value: !0 })), Ur;
|
|
4514
4514
|
}
|
|
4515
|
-
var Tn = {},
|
|
4515
|
+
var Tn = {}, Qs;
|
|
4516
4516
|
function Yc() {
|
|
4517
|
-
return
|
|
4517
|
+
return Qs || (Qs = 1, Object.defineProperty(Tn, "__esModule", { value: !0 }), Tn.ErrorType = void 0, Tn.ErrorType = {
|
|
4518
4518
|
NETWORK_ERROR: "NETWORK_ERROR",
|
|
4519
4519
|
TIMEOUT_ERROR: "TIMEOUT_ERROR",
|
|
4520
4520
|
API_ERROR: "API_ERROR",
|
|
@@ -4524,10 +4524,10 @@ function Yc() {
|
|
|
4524
4524
|
UNKNOWN_ERROR: "UNKNOWN_ERROR"
|
|
4525
4525
|
}), Tn;
|
|
4526
4526
|
}
|
|
4527
|
-
var xn = {},
|
|
4527
|
+
var xn = {}, ei;
|
|
4528
4528
|
function Zc() {
|
|
4529
|
-
if (
|
|
4530
|
-
|
|
4529
|
+
if (ei) return xn;
|
|
4530
|
+
ei = 1, Object.defineProperty(xn, "__esModule", { value: !0 }), xn.ErrorUtils = void 0;
|
|
4531
4531
|
const e = /* @__PURE__ */ Ge();
|
|
4532
4532
|
class t {
|
|
4533
4533
|
/**
|
|
@@ -4605,22 +4605,22 @@ function Zc() {
|
|
|
4605
4605
|
}
|
|
4606
4606
|
return xn.ErrorUtils = t, xn;
|
|
4607
4607
|
}
|
|
4608
|
-
var Vr = {},
|
|
4608
|
+
var Vr = {}, ti;
|
|
4609
4609
|
function Xc() {
|
|
4610
|
-
return
|
|
4610
|
+
return ti || (ti = 1, Object.defineProperty(Vr, "__esModule", { value: !0 })), Vr;
|
|
4611
4611
|
}
|
|
4612
|
-
var Nn = {},
|
|
4612
|
+
var Nn = {}, ni;
|
|
4613
4613
|
function Jc() {
|
|
4614
|
-
if (
|
|
4615
|
-
|
|
4614
|
+
if (ni) return Nn;
|
|
4615
|
+
ni = 1, Object.defineProperty(Nn, "__esModule", { value: !0 }), Nn.SYNAPSE_CONVERSATION = void 0;
|
|
4616
4616
|
var e;
|
|
4617
4617
|
return (function(t) {
|
|
4618
4618
|
t.TEXT = "text", t.FILE = "file", t.AUDIO = "audio", t.VOICE = "voice";
|
|
4619
4619
|
})(e || (Nn.SYNAPSE_CONVERSATION = e = {})), Nn;
|
|
4620
4620
|
}
|
|
4621
|
-
var At = {},
|
|
4621
|
+
var At = {}, ri;
|
|
4622
4622
|
function Qc() {
|
|
4623
|
-
return
|
|
4623
|
+
return ri || (ri = 1, (function(e) {
|
|
4624
4624
|
var t = At && At.__createBinding || (Object.create ? (function(r, o, s, a) {
|
|
4625
4625
|
a === void 0 && (a = s);
|
|
4626
4626
|
var i = Object.getOwnPropertyDescriptor(o, s);
|
|
@@ -4632,12 +4632,12 @@ function Qc() {
|
|
|
4632
4632
|
})), n = At && At.__exportStar || function(r, o) {
|
|
4633
4633
|
for (var s in r) s !== "default" && !Object.prototype.hasOwnProperty.call(o, s) && t(o, r, s);
|
|
4634
4634
|
};
|
|
4635
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), n(/* @__PURE__ */
|
|
4635
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), n(/* @__PURE__ */ Va(), e);
|
|
4636
4636
|
})(At)), At;
|
|
4637
4637
|
}
|
|
4638
|
-
var
|
|
4638
|
+
var oi;
|
|
4639
4639
|
function ed() {
|
|
4640
|
-
return
|
|
4640
|
+
return oi || (oi = 1, (function(e) {
|
|
4641
4641
|
var t = xt && xt.__createBinding || (Object.create ? (function(b, x, y, C) {
|
|
4642
4642
|
C === void 0 && (C = y);
|
|
4643
4643
|
var w = Object.getOwnPropertyDescriptor(x, y);
|
|
@@ -4654,37 +4654,37 @@ function ed() {
|
|
|
4654
4654
|
Object.defineProperty(e, "SynapseSDK", { enumerable: !0, get: function() {
|
|
4655
4655
|
return r.SynapseSDK;
|
|
4656
4656
|
} });
|
|
4657
|
-
var o = /* @__PURE__ */
|
|
4657
|
+
var o = /* @__PURE__ */ Vo();
|
|
4658
4658
|
Object.defineProperty(e, "BaseConnection", { enumerable: !0, get: function() {
|
|
4659
4659
|
return o.BaseConnection;
|
|
4660
4660
|
} });
|
|
4661
|
-
var s = /* @__PURE__ */
|
|
4661
|
+
var s = /* @__PURE__ */ Ia();
|
|
4662
4662
|
Object.defineProperty(e, "WebSocketConnection", { enumerable: !0, get: function() {
|
|
4663
4663
|
return s.WebSocketConnection;
|
|
4664
4664
|
} });
|
|
4665
|
-
var a = /* @__PURE__ */
|
|
4665
|
+
var a = /* @__PURE__ */ Ma();
|
|
4666
4666
|
Object.defineProperty(e, "SSEConnection", { enumerable: !0, get: function() {
|
|
4667
4667
|
return a.SSEConnection;
|
|
4668
4668
|
} });
|
|
4669
|
-
var i = /* @__PURE__ */
|
|
4669
|
+
var i = /* @__PURE__ */ Oa();
|
|
4670
4670
|
Object.defineProperty(e, "ConnectionFactory", { enumerable: !0, get: function() {
|
|
4671
4671
|
return i.ConnectionFactory;
|
|
4672
4672
|
} }), Object.defineProperty(e, "ConnectionType", { enumerable: !0, get: function() {
|
|
4673
4673
|
return i.ConnectionType;
|
|
4674
4674
|
} }), n(/* @__PURE__ */ $n(), e);
|
|
4675
|
-
var c = /* @__PURE__ */
|
|
4675
|
+
var c = /* @__PURE__ */ Fa();
|
|
4676
4676
|
Object.defineProperty(e, "ResourceManager", { enumerable: !0, get: function() {
|
|
4677
4677
|
return c.ResourceManager;
|
|
4678
4678
|
} }), n(/* @__PURE__ */ Bc(), e);
|
|
4679
|
-
var d = /* @__PURE__ */
|
|
4679
|
+
var d = /* @__PURE__ */ La();
|
|
4680
4680
|
Object.defineProperty(e, "Session", { enumerable: !0, get: function() {
|
|
4681
4681
|
return d.Session;
|
|
4682
4682
|
} }), n(/* @__PURE__ */ jc(), e);
|
|
4683
|
-
var f = /* @__PURE__ */
|
|
4683
|
+
var f = /* @__PURE__ */ zo();
|
|
4684
4684
|
Object.defineProperty(e, "Auth", { enumerable: !0, get: function() {
|
|
4685
4685
|
return f.Auth;
|
|
4686
4686
|
} });
|
|
4687
|
-
var h = /* @__PURE__ */
|
|
4687
|
+
var h = /* @__PURE__ */ Da();
|
|
4688
4688
|
Object.defineProperty(e, "prefetchTokenExchange", { enumerable: !0, get: function() {
|
|
4689
4689
|
return h.prefetchTokenExchange;
|
|
4690
4690
|
} }), n(/* @__PURE__ */ Gc(), e);
|
|
@@ -4692,11 +4692,11 @@ function ed() {
|
|
|
4692
4692
|
Object.defineProperty(e, "ToolCall", { enumerable: !0, get: function() {
|
|
4693
4693
|
return u.ToolCall;
|
|
4694
4694
|
} }), n(/* @__PURE__ */ qc(), e);
|
|
4695
|
-
var p = /* @__PURE__ */
|
|
4695
|
+
var p = /* @__PURE__ */ Ua();
|
|
4696
4696
|
Object.defineProperty(e, "MessageManager", { enumerable: !0, get: function() {
|
|
4697
4697
|
return p.MessageManager;
|
|
4698
4698
|
} }), n(/* @__PURE__ */ hr(), e), n(/* @__PURE__ */ Kc(), e);
|
|
4699
|
-
var E = /* @__PURE__ */
|
|
4699
|
+
var E = /* @__PURE__ */ $o();
|
|
4700
4700
|
Object.defineProperty(e, "HttpClient", { enumerable: !0, get: function() {
|
|
4701
4701
|
return E.HttpClient;
|
|
4702
4702
|
} });
|
|
@@ -4741,17 +4741,17 @@ function ed() {
|
|
|
4741
4741
|
})(xt)), xt;
|
|
4742
4742
|
}
|
|
4743
4743
|
var O = /* @__PURE__ */ ed();
|
|
4744
|
-
function
|
|
4744
|
+
function $a(e) {
|
|
4745
4745
|
var t, n, r = "";
|
|
4746
4746
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
4747
4747
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
4748
4748
|
var o = e.length;
|
|
4749
|
-
for (t = 0; t < o; t++) e[t] && (n =
|
|
4749
|
+
for (t = 0; t < o; t++) e[t] && (n = $a(e[t])) && (r && (r += " "), r += n);
|
|
4750
4750
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
4751
4751
|
return r;
|
|
4752
4752
|
}
|
|
4753
|
-
function
|
|
4754
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t =
|
|
4753
|
+
function za() {
|
|
4754
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = $a(e)) && (r && (r += " "), r += t);
|
|
4755
4755
|
return r;
|
|
4756
4756
|
}
|
|
4757
4757
|
const td = (e, t) => {
|
|
@@ -4764,11 +4764,11 @@ const td = (e, t) => {
|
|
|
4764
4764
|
}, nd = (e, t) => ({
|
|
4765
4765
|
classGroupId: e,
|
|
4766
4766
|
validator: t
|
|
4767
|
-
}),
|
|
4767
|
+
}), Ha = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
4768
4768
|
nextPart: e,
|
|
4769
4769
|
validators: t,
|
|
4770
4770
|
classGroupId: n
|
|
4771
|
-
}), fr = "-",
|
|
4771
|
+
}), fr = "-", si = [], rd = "arbitrary..", od = (e) => {
|
|
4772
4772
|
const t = id(e), {
|
|
4773
4773
|
conflictingClassGroups: n,
|
|
4774
4774
|
conflictingClassGroupModifiers: r
|
|
@@ -4778,22 +4778,22 @@ const td = (e, t) => {
|
|
|
4778
4778
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
4779
4779
|
return sd(a);
|
|
4780
4780
|
const i = a.split(fr), c = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
4781
|
-
return
|
|
4781
|
+
return Ba(i, c, t);
|
|
4782
4782
|
},
|
|
4783
4783
|
getConflictingClassGroupIds: (a, i) => {
|
|
4784
4784
|
if (i) {
|
|
4785
4785
|
const c = r[a], d = n[a];
|
|
4786
|
-
return c ? d ? td(d, c) : c : d ||
|
|
4786
|
+
return c ? d ? td(d, c) : c : d || si;
|
|
4787
4787
|
}
|
|
4788
|
-
return n[a] ||
|
|
4788
|
+
return n[a] || si;
|
|
4789
4789
|
}
|
|
4790
4790
|
};
|
|
4791
|
-
},
|
|
4791
|
+
}, Ba = (e, t, n) => {
|
|
4792
4792
|
if (e.length - t === 0)
|
|
4793
4793
|
return n.classGroupId;
|
|
4794
4794
|
const o = e[t], s = n.nextPart.get(o);
|
|
4795
4795
|
if (s) {
|
|
4796
|
-
const d =
|
|
4796
|
+
const d = Ba(e, t + 1, s);
|
|
4797
4797
|
if (d) return d;
|
|
4798
4798
|
}
|
|
4799
4799
|
const a = n.validators;
|
|
@@ -4815,13 +4815,13 @@ const td = (e, t) => {
|
|
|
4815
4815
|
} = e;
|
|
4816
4816
|
return ad(n, t);
|
|
4817
4817
|
}, ad = (e, t) => {
|
|
4818
|
-
const n =
|
|
4818
|
+
const n = Ha();
|
|
4819
4819
|
for (const r in e) {
|
|
4820
4820
|
const o = e[r];
|
|
4821
|
-
|
|
4821
|
+
Bo(o, n, r, t);
|
|
4822
4822
|
}
|
|
4823
4823
|
return n;
|
|
4824
|
-
},
|
|
4824
|
+
}, Bo = (e, t, n, r) => {
|
|
4825
4825
|
const o = e.length;
|
|
4826
4826
|
for (let s = 0; s < o; s++) {
|
|
4827
4827
|
const a = e[s];
|
|
@@ -4838,11 +4838,11 @@ const td = (e, t) => {
|
|
|
4838
4838
|
}
|
|
4839
4839
|
ud(e, t, n, r);
|
|
4840
4840
|
}, cd = (e, t, n) => {
|
|
4841
|
-
const r = e === "" ? t :
|
|
4841
|
+
const r = e === "" ? t : ja(t, e);
|
|
4842
4842
|
r.classGroupId = n;
|
|
4843
4843
|
}, dd = (e, t, n, r) => {
|
|
4844
4844
|
if (hd(e)) {
|
|
4845
|
-
|
|
4845
|
+
Bo(e(r), t, n, r);
|
|
4846
4846
|
return;
|
|
4847
4847
|
}
|
|
4848
4848
|
t.validators === null && (t.validators = []), t.validators.push(nd(n, e));
|
|
@@ -4850,15 +4850,15 @@ const td = (e, t) => {
|
|
|
4850
4850
|
const o = Object.entries(e), s = o.length;
|
|
4851
4851
|
for (let a = 0; a < s; a++) {
|
|
4852
4852
|
const [i, c] = o[a];
|
|
4853
|
-
|
|
4853
|
+
Bo(c, ja(t, i), n, r);
|
|
4854
4854
|
}
|
|
4855
|
-
},
|
|
4855
|
+
}, ja = (e, t) => {
|
|
4856
4856
|
let n = e;
|
|
4857
4857
|
const r = t.split(fr), o = r.length;
|
|
4858
4858
|
for (let s = 0; s < o; s++) {
|
|
4859
4859
|
const a = r[s];
|
|
4860
4860
|
let i = n.nextPart.get(a);
|
|
4861
|
-
i || (i =
|
|
4861
|
+
i || (i = Ha(), n.nextPart.set(a, i)), n = i;
|
|
4862
4862
|
}
|
|
4863
4863
|
return n;
|
|
4864
4864
|
}, hd = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, fd = (e) => {
|
|
@@ -4885,7 +4885,7 @@ const td = (e, t) => {
|
|
|
4885
4885
|
s in n ? n[s] = a : o(s, a);
|
|
4886
4886
|
}
|
|
4887
4887
|
};
|
|
4888
|
-
}, io = "!",
|
|
4888
|
+
}, io = "!", ii = ":", md = [], ai = (e, t, n, r, o) => ({
|
|
4889
4889
|
modifiers: e,
|
|
4890
4890
|
hasImportantModifier: t,
|
|
4891
4891
|
baseClassName: n,
|
|
@@ -4903,7 +4903,7 @@ const td = (e, t) => {
|
|
|
4903
4903
|
for (let g = 0; g < f; g++) {
|
|
4904
4904
|
const S = o[g];
|
|
4905
4905
|
if (a === 0 && i === 0) {
|
|
4906
|
-
if (S ===
|
|
4906
|
+
if (S === ii) {
|
|
4907
4907
|
s.push(o.slice(c, g)), c = g + 1;
|
|
4908
4908
|
continue;
|
|
4909
4909
|
}
|
|
@@ -4924,11 +4924,11 @@ const td = (e, t) => {
|
|
|
4924
4924
|
h.startsWith(io) && (u = h.slice(1), p = !0)
|
|
4925
4925
|
);
|
|
4926
4926
|
const E = d && d > c ? d - c : void 0;
|
|
4927
|
-
return
|
|
4927
|
+
return ai(s, p, u, E);
|
|
4928
4928
|
};
|
|
4929
4929
|
if (t) {
|
|
4930
|
-
const o = t +
|
|
4931
|
-
r = (a) => a.startsWith(o) ? s(a.slice(o.length)) :
|
|
4930
|
+
const o = t + ii, s = r;
|
|
4931
|
+
r = (a) => a.startsWith(o) ? s(a.slice(o.length)) : ai(md, !1, a, void 0, !0);
|
|
4932
4932
|
}
|
|
4933
4933
|
if (n) {
|
|
4934
4934
|
const o = r;
|
|
@@ -5003,14 +5003,14 @@ const td = (e, t) => {
|
|
|
5003
5003
|
}, yd = (...e) => {
|
|
5004
5004
|
let t = 0, n, r, o = "";
|
|
5005
5005
|
for (; t < e.length; )
|
|
5006
|
-
(n = e[t++]) && (r =
|
|
5006
|
+
(n = e[t++]) && (r = Ga(n)) && (o && (o += " "), o += r);
|
|
5007
5007
|
return o;
|
|
5008
|
-
},
|
|
5008
|
+
}, Ga = (e) => {
|
|
5009
5009
|
if (typeof e == "string")
|
|
5010
5010
|
return e;
|
|
5011
5011
|
let t, n = "";
|
|
5012
5012
|
for (let r = 0; r < e.length; r++)
|
|
5013
|
-
e[r] && (t =
|
|
5013
|
+
e[r] && (t = Ga(e[r])) && (n && (n += " "), n += t);
|
|
5014
5014
|
return n;
|
|
5015
5015
|
}, vd = (e, ...t) => {
|
|
5016
5016
|
let n, r, o, s;
|
|
@@ -5028,18 +5028,18 @@ const td = (e, t) => {
|
|
|
5028
5028
|
}, Sd = [], Re = (e) => {
|
|
5029
5029
|
const t = (n) => n[e] || Sd;
|
|
5030
5030
|
return t.isThemeGetter = !0, t;
|
|
5031
|
-
},
|
|
5031
|
+
}, Wa = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qa = /^\((?:(\w[\w-]*):)?(.+)\)$/i, wd = /^\d+\/\d+$/, Cd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Td = /\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$/, xd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Nd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, kd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Vt = (e) => wd.test(e), ee = (e) => !!e && !Number.isNaN(Number(e)), gt = (e) => !!e && Number.isInteger(Number(e)), $r = (e) => e.endsWith("%") && ee(e.slice(0, -1)), ct = (e) => Cd.test(e), Ad = () => !0, Rd = (e) => (
|
|
5032
5032
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
5033
5033
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
5034
5034
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
5035
5035
|
Td.test(e) && !xd.test(e)
|
|
5036
|
-
),
|
|
5037
|
-
const r =
|
|
5036
|
+
), Ka = () => !1, Id = (e) => Nd.test(e), Md = (e) => kd.test(e), Od = (e) => !V(e) && !$(e), Pd = (e) => Zt(e, Xa, Ka), V = (e) => Wa.test(e), Rt = (e) => Zt(e, Ja, Rd), zr = (e) => Zt(e, Vd, ee), li = (e) => Zt(e, Ya, Ka), Ld = (e) => Zt(e, Za, Md), qn = (e) => Zt(e, Qa, Id), $ = (e) => qa.test(e), kn = (e) => Xt(e, Ja), Dd = (e) => Xt(e, $d), ci = (e) => Xt(e, Ya), Fd = (e) => Xt(e, Xa), Ud = (e) => Xt(e, Za), Kn = (e) => Xt(e, Qa, !0), Zt = (e, t, n) => {
|
|
5037
|
+
const r = Wa.exec(e);
|
|
5038
5038
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
5039
5039
|
}, Xt = (e, t, n = !1) => {
|
|
5040
|
-
const r =
|
|
5040
|
+
const r = qa.exec(e);
|
|
5041
5041
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
5042
|
-
},
|
|
5042
|
+
}, Ya = (e) => e === "position" || e === "percentage", Za = (e) => e === "image" || e === "url", Xa = (e) => e === "length" || e === "size" || e === "bg-size", Ja = (e) => e === "length", Vd = (e) => e === "number", $d = (e) => e === "family-name", Qa = (e) => e === "shadow", zd = () => {
|
|
5043
5043
|
const e = Re("color"), t = Re("font"), n = Re("text"), r = Re("font-weight"), o = Re("tracking"), s = Re("leading"), a = Re("breakpoint"), i = Re("container"), c = Re("spacing"), d = Re("radius"), f = Re("shadow"), h = Re("inset-shadow"), u = Re("text-shadow"), p = Re("drop-shadow"), E = Re("blur"), g = Re("perspective"), S = Re("aspect"), m = Re("ease"), _ = Re("animate"), b = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], x = () => [
|
|
5044
5044
|
"center",
|
|
5045
5045
|
"top",
|
|
@@ -5060,7 +5060,7 @@ const td = (e, t) => {
|
|
|
5060
5060
|
"left-bottom"
|
|
5061
5061
|
], y = () => [...x(), $, V], C = () => ["auto", "hidden", "clip", "visible", "scroll"], w = () => ["auto", "contain", "none"], T = () => [$, V, c], v = () => [Vt, "full", "auto", ...T()], N = () => [gt, "none", "subgrid", $, V], I = () => ["auto", {
|
|
5062
5062
|
span: ["full", gt, $, V]
|
|
5063
|
-
}, gt, $, V], R = () => [gt, "auto", $, V], L = () => ["auto", "min", "max", "fr", $, V], oe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], z = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], G = () => ["auto", ...T()], B = () => [Vt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...T()], P = () => [e, $, V], ue = () => [...x(),
|
|
5063
|
+
}, gt, $, V], R = () => [gt, "auto", $, V], L = () => ["auto", "min", "max", "fr", $, V], oe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], z = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], G = () => ["auto", ...T()], B = () => [Vt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...T()], P = () => [e, $, V], ue = () => [...x(), ci, li, {
|
|
5064
5064
|
position: [$, V]
|
|
5065
5065
|
}], he = () => ["no-repeat", {
|
|
5066
5066
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -5074,7 +5074,7 @@ const td = (e, t) => {
|
|
|
5074
5074
|
d,
|
|
5075
5075
|
$,
|
|
5076
5076
|
V
|
|
5077
|
-
], ie = () => ["", ee, kn, Rt], M = () => ["solid", "dashed", "dotted", "double"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], j = () => [ee, $r,
|
|
5077
|
+
], ie = () => ["", ee, kn, Rt], M = () => ["solid", "dashed", "dotted", "double"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], j = () => [ee, $r, ci, li], we = () => [
|
|
5078
5078
|
// Deprecated since Tailwind CSS v4.0.0
|
|
5079
5079
|
"",
|
|
5080
5080
|
"none",
|
|
@@ -7511,7 +7511,7 @@ const td = (e, t) => {
|
|
|
7511
7511
|
};
|
|
7512
7512
|
}, Hd = /* @__PURE__ */ vd(zd);
|
|
7513
7513
|
function F(...e) {
|
|
7514
|
-
return Hd(
|
|
7514
|
+
return Hd(za(e));
|
|
7515
7515
|
}
|
|
7516
7516
|
function $t(e) {
|
|
7517
7517
|
if (!e && e !== 0)
|
|
@@ -7532,22 +7532,22 @@ const Bd = (e) => {
|
|
|
7532
7532
|
default:
|
|
7533
7533
|
return !1;
|
|
7534
7534
|
}
|
|
7535
|
-
}, jd = (e) => new Promise((t) => setTimeout(t, e)),
|
|
7536
|
-
|
|
7535
|
+
}, jd = (e) => new Promise((t) => setTimeout(t, e)), el = Z(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l(
|
|
7536
|
+
Ra,
|
|
7537
7537
|
{
|
|
7538
7538
|
ref: r,
|
|
7539
7539
|
className: F("relative overflow-hidden", e),
|
|
7540
7540
|
...n,
|
|
7541
7541
|
children: [
|
|
7542
7542
|
/* @__PURE__ */ l(Mc, { className: "h-full w-full rounded-[inherit] overscroll-contain", children: t }),
|
|
7543
|
-
/* @__PURE__ */ l(
|
|
7543
|
+
/* @__PURE__ */ l(tl, {}),
|
|
7544
7544
|
/* @__PURE__ */ l(Oc, {})
|
|
7545
7545
|
]
|
|
7546
7546
|
}
|
|
7547
7547
|
));
|
|
7548
|
-
|
|
7549
|
-
const
|
|
7550
|
-
|
|
7548
|
+
el.displayName = Ra.displayName;
|
|
7549
|
+
const tl = Z(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__PURE__ */ l(
|
|
7550
|
+
Lo,
|
|
7551
7551
|
{
|
|
7552
7552
|
ref: r,
|
|
7553
7553
|
orientation: t,
|
|
@@ -7558,22 +7558,22 @@ const el = Z(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__P
|
|
|
7558
7558
|
e
|
|
7559
7559
|
),
|
|
7560
7560
|
...n,
|
|
7561
|
-
children: /* @__PURE__ */ l(
|
|
7561
|
+
children: /* @__PURE__ */ l(Ta, { className: "relative flex-1 rounded-full bg-border" })
|
|
7562
7562
|
}
|
|
7563
7563
|
));
|
|
7564
|
-
|
|
7565
|
-
var Gd = Symbol.for("react.lazy"), mr =
|
|
7564
|
+
tl.displayName = Lo.displayName;
|
|
7565
|
+
var Gd = Symbol.for("react.lazy"), mr = _a[" use ".trim().toString()];
|
|
7566
7566
|
function Wd(e) {
|
|
7567
7567
|
return typeof e == "object" && e !== null && "then" in e;
|
|
7568
7568
|
}
|
|
7569
|
-
function
|
|
7569
|
+
function nl(e) {
|
|
7570
7570
|
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Gd && "_payload" in e && Wd(e._payload);
|
|
7571
7571
|
}
|
|
7572
7572
|
// @__NO_SIDE_EFFECTS__
|
|
7573
|
-
function
|
|
7573
|
+
function rl(e) {
|
|
7574
7574
|
const t = /* @__PURE__ */ Kd(e), n = Z((r, o) => {
|
|
7575
7575
|
let { children: s, ...a } = r;
|
|
7576
|
-
|
|
7576
|
+
nl(s) && typeof mr == "function" && (s = mr(s._payload));
|
|
7577
7577
|
const i = Be.toArray(s), c = i.find(Zd);
|
|
7578
7578
|
if (c) {
|
|
7579
7579
|
const d = c.props.children, f = i.map((h) => h === c ? Be.count(d) > 1 ? Be.only(null) : je(d) ? d.props.children : null : h);
|
|
@@ -7583,14 +7583,14 @@ function nl(e) {
|
|
|
7583
7583
|
});
|
|
7584
7584
|
return n.displayName = `${e}.Slot`, n;
|
|
7585
7585
|
}
|
|
7586
|
-
var qd = /* @__PURE__ */
|
|
7586
|
+
var qd = /* @__PURE__ */ rl("Slot");
|
|
7587
7587
|
// @__NO_SIDE_EFFECTS__
|
|
7588
7588
|
function Kd(e) {
|
|
7589
7589
|
const t = Z((n, r) => {
|
|
7590
7590
|
let { children: o, ...s } = n;
|
|
7591
|
-
if (
|
|
7591
|
+
if (nl(o) && typeof mr == "function" && (o = mr(o._payload)), je(o)) {
|
|
7592
7592
|
const a = Jd(o), i = Xd(s, o.props);
|
|
7593
|
-
return o.type !== pe && (i.ref = r ?
|
|
7593
|
+
return o.type !== pe && (i.ref = r ? Oo(r, a) : a), vt(o, i);
|
|
7594
7594
|
}
|
|
7595
7595
|
return Be.count(o) > 1 ? Be.only(null) : null;
|
|
7596
7596
|
});
|
|
@@ -7615,13 +7615,13 @@ function Jd(e) {
|
|
|
7615
7615
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
7616
7616
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
7617
7617
|
}
|
|
7618
|
-
const
|
|
7618
|
+
const di = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ui = za, Qd = (e, t) => (n) => {
|
|
7619
7619
|
var r;
|
|
7620
|
-
if (t?.variants == null) return
|
|
7620
|
+
if (t?.variants == null) return ui(e, n?.class, n?.className);
|
|
7621
7621
|
const { variants: o, defaultVariants: s } = t, a = Object.keys(o).map((d) => {
|
|
7622
7622
|
const f = n?.[d], h = s?.[d];
|
|
7623
7623
|
if (f === null) return null;
|
|
7624
|
-
const u =
|
|
7624
|
+
const u = di(f) || di(h);
|
|
7625
7625
|
return o[d][u];
|
|
7626
7626
|
}), i = n && Object.entries(n).reduce((d, f) => {
|
|
7627
7627
|
let [h, u] = f;
|
|
@@ -7643,7 +7643,7 @@ const ci = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, di = $a, Q
|
|
|
7643
7643
|
u
|
|
7644
7644
|
] : d;
|
|
7645
7645
|
}, []);
|
|
7646
|
-
return
|
|
7646
|
+
return ui(e, a, c, n?.class, n?.className);
|
|
7647
7647
|
}, eu = Qd(
|
|
7648
7648
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
7649
7649
|
{
|
|
@@ -7682,10 +7682,10 @@ ae.displayName = "Button";
|
|
|
7682
7682
|
const tu = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), nu = (e) => e.replace(
|
|
7683
7683
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
7684
7684
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
7685
|
-
),
|
|
7685
|
+
), hi = (e) => {
|
|
7686
7686
|
const t = nu(e);
|
|
7687
7687
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
7688
|
-
},
|
|
7688
|
+
}, ol = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), ru = (e) => {
|
|
7689
7689
|
for (const t in e)
|
|
7690
7690
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
7691
7691
|
return !0;
|
|
@@ -7720,7 +7720,7 @@ const su = Z(
|
|
|
7720
7720
|
height: t,
|
|
7721
7721
|
stroke: e,
|
|
7722
7722
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
7723
|
-
className:
|
|
7723
|
+
className: ol("lucide", o),
|
|
7724
7724
|
...!s && !ru(i) && { "aria-hidden": "true" },
|
|
7725
7725
|
...i
|
|
7726
7726
|
},
|
|
@@ -7735,17 +7735,17 @@ const Ue = (e, t) => {
|
|
|
7735
7735
|
({ className: r, ...o }, s) => ze(su, {
|
|
7736
7736
|
ref: s,
|
|
7737
7737
|
iconNode: t,
|
|
7738
|
-
className:
|
|
7739
|
-
`lucide-${tu(
|
|
7738
|
+
className: ol(
|
|
7739
|
+
`lucide-${tu(hi(e))}`,
|
|
7740
7740
|
`lucide-${e}`,
|
|
7741
7741
|
r
|
|
7742
7742
|
),
|
|
7743
7743
|
...o
|
|
7744
7744
|
})
|
|
7745
7745
|
);
|
|
7746
|
-
return n.displayName =
|
|
7746
|
+
return n.displayName = hi(e), n;
|
|
7747
7747
|
};
|
|
7748
|
-
const iu = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]],
|
|
7748
|
+
const iu = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], jo = Ue("chevron-down", iu);
|
|
7749
7749
|
const au = [
|
|
7750
7750
|
[
|
|
7751
7751
|
"path",
|
|
@@ -7780,12 +7780,12 @@ const fu = [
|
|
|
7780
7780
|
],
|
|
7781
7781
|
["path", { d: "M12 8v6", key: "1ib9pf" }],
|
|
7782
7782
|
["path", { d: "M9 11h6", key: "1fldmi" }]
|
|
7783
|
-
],
|
|
7783
|
+
], sl = Ue("message-square-plus", fu);
|
|
7784
7784
|
const mu = [
|
|
7785
7785
|
["path", { d: "M12 19v3", key: "npa21l" }],
|
|
7786
7786
|
["path", { d: "M19 10v2a7 7 0 0 1-14 0v-2", key: "1vc78b" }],
|
|
7787
7787
|
["rect", { x: "9", y: "2", width: "6", height: "13", rx: "3", key: "s6n7sd" }]
|
|
7788
|
-
],
|
|
7788
|
+
], fi = Ue("mic", mu);
|
|
7789
7789
|
const pu = [
|
|
7790
7790
|
["path", { d: "m14 10 7-7", key: "oa77jy" }],
|
|
7791
7791
|
["path", { d: "M20 10h-6V4", key: "mjg0md" }],
|
|
@@ -7795,14 +7795,14 @@ const pu = [
|
|
|
7795
7795
|
const _u = [
|
|
7796
7796
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
7797
7797
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
7798
|
-
],
|
|
7798
|
+
], mi = Ue("plus", _u);
|
|
7799
7799
|
const bu = [
|
|
7800
7800
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
7801
7801
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
7802
7802
|
], Eu = Ue("rotate-ccw", bu);
|
|
7803
7803
|
const yu = [
|
|
7804
7804
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
|
|
7805
|
-
],
|
|
7805
|
+
], pi = Ue("square", yu);
|
|
7806
7806
|
const vu = [
|
|
7807
7807
|
["path", { d: "M7 10v12", key: "1qc93n" }],
|
|
7808
7808
|
[
|
|
@@ -7843,7 +7843,7 @@ const xu = [
|
|
|
7843
7843
|
["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
|
|
7844
7844
|
["line", { x1: "11", x2: "11", y1: "8", y2: "14", key: "1vmskp" }],
|
|
7845
7845
|
["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
|
|
7846
|
-
], Nu = Ue("zoom-in", xu),
|
|
7846
|
+
], Nu = Ue("zoom-in", xu), gi = (e) => {
|
|
7847
7847
|
let t;
|
|
7848
7848
|
const n = /* @__PURE__ */ new Set(), r = (d, f) => {
|
|
7849
7849
|
const h = typeof d == "function" ? d(t) : d;
|
|
@@ -7853,7 +7853,7 @@ const xu = [
|
|
|
7853
7853
|
}
|
|
7854
7854
|
}, o = () => t, i = { setState: r, getState: o, getInitialState: () => c, subscribe: (d) => (n.add(d), () => n.delete(d)) }, c = t = e(r, o, i);
|
|
7855
7855
|
return i;
|
|
7856
|
-
}, ku = ((e) => e ?
|
|
7856
|
+
}, ku = ((e) => e ? gi(e) : gi), Au = (e) => e;
|
|
7857
7857
|
function Ru(e, t = Au) {
|
|
7858
7858
|
const n = Rn.useSyncExternalStore(
|
|
7859
7859
|
e.subscribe,
|
|
@@ -7866,7 +7866,7 @@ const Iu = (e) => {
|
|
|
7866
7866
|
const t = ku(e), n = (r) => Ru(t, r);
|
|
7867
7867
|
return Object.assign(n, t), n;
|
|
7868
7868
|
}, Mu = ((e) => Iu);
|
|
7869
|
-
function
|
|
7869
|
+
function il(e, t) {
|
|
7870
7870
|
let n;
|
|
7871
7871
|
try {
|
|
7872
7872
|
n = e();
|
|
@@ -7906,7 +7906,7 @@ const ao = (e) => (t) => {
|
|
|
7906
7906
|
}
|
|
7907
7907
|
}, Ou = (e, t) => (n, r, o) => {
|
|
7908
7908
|
let s = {
|
|
7909
|
-
storage:
|
|
7909
|
+
storage: il(() => localStorage),
|
|
7910
7910
|
partialize: (g) => g,
|
|
7911
7911
|
version: 0,
|
|
7912
7912
|
merge: (g, S) => ({
|
|
@@ -8003,7 +8003,7 @@ var me = /* @__PURE__ */ ((e) => (e.IDLE = "idle", e.LISTENING = "listening", e.
|
|
|
8003
8003
|
let bt = "";
|
|
8004
8004
|
const br = (e) => `med-assist-store-${e}`, Lu = (e) => {
|
|
8005
8005
|
bt = br(e);
|
|
8006
|
-
},
|
|
8006
|
+
}, Du = {
|
|
8007
8007
|
sessionId: "",
|
|
8008
8008
|
refreshToken: "",
|
|
8009
8009
|
level: "",
|
|
@@ -8027,6 +8027,12 @@ const br = (e) => `med-assist-store-${e}`, Lu = (e) => {
|
|
|
8027
8027
|
elicitationState: {},
|
|
8028
8028
|
toastMessage: null,
|
|
8029
8029
|
sessionInitialMessages: {}
|
|
8030
|
+
}, lo = {
|
|
8031
|
+
...Du,
|
|
8032
|
+
sessToken: "",
|
|
8033
|
+
refreshToken: "",
|
|
8034
|
+
userId: "",
|
|
8035
|
+
level: ""
|
|
8030
8036
|
}, Q = Mu()(
|
|
8031
8037
|
Pu(
|
|
8032
8038
|
(e, t) => ({
|
|
@@ -8131,7 +8137,7 @@ const br = (e) => `med-assist-store-${e}`, Lu = (e) => {
|
|
|
8131
8137
|
setTimeoutError: (n) => e({ isTimeoutError: n }),
|
|
8132
8138
|
clearSession: async () => {
|
|
8133
8139
|
e({
|
|
8134
|
-
...
|
|
8140
|
+
...lo,
|
|
8135
8141
|
refreshToken: t().refreshToken,
|
|
8136
8142
|
sessToken: t().sessToken,
|
|
8137
8143
|
level: t().level
|
|
@@ -8140,7 +8146,7 @@ const br = (e) => `med-assist-store-${e}`, Lu = (e) => {
|
|
|
8140
8146
|
// 403 recovery: drop the persisted token pair + level so the next
|
|
8141
8147
|
// startSession re-exchanges from scratch (guest). Chat state is left
|
|
8142
8148
|
// alone — the caller pairs this with clearSession for a full reset.
|
|
8143
|
-
|
|
8149
|
+
clearUser: () => e(lo),
|
|
8144
8150
|
// Timeout management
|
|
8145
8151
|
streamingTimeoutId: null,
|
|
8146
8152
|
setStreamingTimeoutId: (n) => e({ streamingTimeoutId: n }),
|
|
@@ -8159,7 +8165,7 @@ const br = (e) => `med-assist-store-${e}`, Lu = (e) => {
|
|
|
8159
8165
|
}),
|
|
8160
8166
|
{
|
|
8161
8167
|
name: "med-assist-store",
|
|
8162
|
-
storage:
|
|
8168
|
+
storage: il(() => ({
|
|
8163
8169
|
getItem: () => bt ? sessionStorage.getItem(bt) : null,
|
|
8164
8170
|
setItem: (e, t) => {
|
|
8165
8171
|
bt && sessionStorage.setItem(bt, t);
|
|
@@ -8185,7 +8191,7 @@ const br = (e) => `med-assist-store-${e}`, Lu = (e) => {
|
|
|
8185
8191
|
})
|
|
8186
8192
|
}
|
|
8187
8193
|
)
|
|
8188
|
-
),
|
|
8194
|
+
), Fu = (e) => {
|
|
8189
8195
|
const t = br(e);
|
|
8190
8196
|
let n = null;
|
|
8191
8197
|
try {
|
|
@@ -8196,22 +8202,22 @@ const br = (e) => `med-assist-store-${e}`, Lu = (e) => {
|
|
|
8196
8202
|
}
|
|
8197
8203
|
} catch {
|
|
8198
8204
|
}
|
|
8199
|
-
Q.setState(
|
|
8200
|
-
},
|
|
8205
|
+
Q.setState(lo), n && Q.setState(n);
|
|
8206
|
+
}, Go = ht(null), Uu = ({ children: e }) => {
|
|
8201
8207
|
const [t, n] = U(null);
|
|
8202
|
-
return /* @__PURE__ */ l(
|
|
8203
|
-
},
|
|
8204
|
-
const e = pt(
|
|
8208
|
+
return /* @__PURE__ */ l(Go.Provider, { value: { synapse: t, setSynapse: n }, children: e });
|
|
8209
|
+
}, Vu = () => {
|
|
8210
|
+
const e = pt(Go);
|
|
8205
8211
|
if (!e)
|
|
8206
8212
|
throw new Error("useSynapse must be used within a SynapseProvider");
|
|
8207
8213
|
return e.synapse;
|
|
8208
|
-
},
|
|
8209
|
-
const e = pt(
|
|
8214
|
+
}, $u = () => {
|
|
8215
|
+
const e = pt(Go);
|
|
8210
8216
|
if (!e)
|
|
8211
8217
|
throw new Error("useSynapseSetter must be used within a SynapseProvider");
|
|
8212
8218
|
return e.setSynapse;
|
|
8213
|
-
},
|
|
8214
|
-
const [e, t] = U(O.VOICE_AGENT_STATE.IDLE), [n, r] = U(!1), o =
|
|
8219
|
+
}, zu = () => {
|
|
8220
|
+
const [e, t] = U(O.VOICE_AGENT_STATE.IDLE), [n, r] = U(!1), o = Vu(), { setError: s } = Q();
|
|
8215
8221
|
H(() => {
|
|
8216
8222
|
if (!o) return;
|
|
8217
8223
|
const f = o.voice, h = (p) => {
|
|
@@ -8250,7 +8256,7 @@ const br = (e) => `med-assist-store-${e}`, Lu = (e) => {
|
|
|
8250
8256
|
}
|
|
8251
8257
|
));
|
|
8252
8258
|
qt.displayName = "Card";
|
|
8253
|
-
const
|
|
8259
|
+
const Hu = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
8254
8260
|
"div",
|
|
8255
8261
|
{
|
|
8256
8262
|
ref: n,
|
|
@@ -8258,8 +8264,8 @@ const zu = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
8258
8264
|
...t
|
|
8259
8265
|
}
|
|
8260
8266
|
));
|
|
8261
|
-
|
|
8262
|
-
const
|
|
8267
|
+
Hu.displayName = "CardHeader";
|
|
8268
|
+
const Bu = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
8263
8269
|
"div",
|
|
8264
8270
|
{
|
|
8265
8271
|
ref: n,
|
|
@@ -8267,8 +8273,8 @@ const Hu = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
8267
8273
|
...t
|
|
8268
8274
|
}
|
|
8269
8275
|
));
|
|
8270
|
-
|
|
8271
|
-
const
|
|
8276
|
+
Bu.displayName = "CardTitle";
|
|
8277
|
+
const ju = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
8272
8278
|
"div",
|
|
8273
8279
|
{
|
|
8274
8280
|
ref: n,
|
|
@@ -8276,10 +8282,10 @@ const Bu = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
8276
8282
|
...t
|
|
8277
8283
|
}
|
|
8278
8284
|
));
|
|
8279
|
-
|
|
8280
|
-
const
|
|
8281
|
-
|
|
8282
|
-
const
|
|
8285
|
+
ju.displayName = "CardDescription";
|
|
8286
|
+
const Gu = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l("div", { ref: n, className: F("p-6 pt-0", e), ...t }));
|
|
8287
|
+
Gu.displayName = "CardContent";
|
|
8288
|
+
const Wu = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
8283
8289
|
"div",
|
|
8284
8290
|
{
|
|
8285
8291
|
ref: n,
|
|
@@ -8287,9 +8293,9 @@ const Gu = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
8287
8293
|
...t
|
|
8288
8294
|
}
|
|
8289
8295
|
));
|
|
8290
|
-
|
|
8291
|
-
const Hr = 5,
|
|
8292
|
-
function
|
|
8296
|
+
Wu.displayName = "CardFooter";
|
|
8297
|
+
const Hr = 5, qu = 10 * 1024 * 1024, Xn = { width: 384, height: 600 }, Jn = 20, Ku = 150;
|
|
8298
|
+
function Yu({ defaultPosition: e, enabled: t = !0, onDragStart: n, onDragEnd: r } = {}) {
|
|
8293
8299
|
const o = ce(() => typeof window > "u" ? { x: 0, y: 0 } : {
|
|
8294
8300
|
x: window.innerWidth - Xn.width - Jn,
|
|
8295
8301
|
y: window.innerHeight - Xn.height - Jn
|
|
@@ -8313,7 +8319,7 @@ function Ku({ defaultPosition: e, enabled: t = !0, onDragStart: n, onDragEnd: r
|
|
|
8313
8319
|
return y === _.x && C === _.y ? _ : { x: y, y: C };
|
|
8314
8320
|
});
|
|
8315
8321
|
}, m = () => {
|
|
8316
|
-
g !== null && clearTimeout(g), g = setTimeout(S,
|
|
8322
|
+
g !== null && clearTimeout(g), g = setTimeout(S, Ku);
|
|
8317
8323
|
};
|
|
8318
8324
|
return window.addEventListener("resize", m), () => {
|
|
8319
8325
|
window.removeEventListener("resize", m), g !== null && clearTimeout(g);
|
|
@@ -8371,19 +8377,19 @@ function Ku({ defaultPosition: e, enabled: t = !0, onDragStart: n, onDragEnd: r
|
|
|
8371
8377
|
setPosition: a
|
|
8372
8378
|
};
|
|
8373
8379
|
}
|
|
8374
|
-
const
|
|
8375
|
-
background:
|
|
8380
|
+
const co = "#6B5CE0", Zu = "#F0F0F0", Qn = {
|
|
8381
|
+
background: Zu,
|
|
8376
8382
|
// base-50 (#F0F0F0)
|
|
8377
8383
|
backgroundImage: void 0,
|
|
8378
|
-
primary:
|
|
8384
|
+
primary: co,
|
|
8379
8385
|
textColor: "black"
|
|
8380
|
-
},
|
|
8381
|
-
function
|
|
8386
|
+
}, Xu = "rgba(0, 0, 0, 0.4)", Ju = "24px";
|
|
8387
|
+
function Qu(e) {
|
|
8382
8388
|
if (e === "dark") return "white";
|
|
8383
8389
|
if (e === "light") return "black";
|
|
8384
8390
|
}
|
|
8385
|
-
function
|
|
8386
|
-
const t = e?.primary ?? e?.primaryColor ?? Qn.primary, n = e?.textColor ??
|
|
8391
|
+
function eh(e) {
|
|
8392
|
+
const t = e?.primary ?? e?.primaryColor ?? Qn.primary, n = e?.textColor ?? Qu(e?.mode);
|
|
8387
8393
|
return {
|
|
8388
8394
|
background: e?.background ?? Qn.background,
|
|
8389
8395
|
backgroundImage: e?.backgroundImage ?? Qn.backgroundImage,
|
|
@@ -8396,7 +8402,7 @@ function Qu(e) {
|
|
|
8396
8402
|
tertiaryColor: e?.tertiaryColor
|
|
8397
8403
|
};
|
|
8398
8404
|
}
|
|
8399
|
-
function
|
|
8405
|
+
function th(e) {
|
|
8400
8406
|
e = e.replace("#", "");
|
|
8401
8407
|
const t = parseInt(e.substring(0, 2), 16) / 255, n = parseInt(e.substring(2, 4), 16) / 255, r = parseInt(e.substring(4, 6), 16) / 255, o = Math.max(t, n, r), s = Math.min(t, n, r);
|
|
8402
8408
|
let a = 0, i = 0;
|
|
@@ -8419,7 +8425,7 @@ function eh(e) {
|
|
|
8419
8425
|
const d = Math.round(c * 100);
|
|
8420
8426
|
return `${a} ${i}% ${d}%`;
|
|
8421
8427
|
}
|
|
8422
|
-
function
|
|
8428
|
+
function nh(e) {
|
|
8423
8429
|
const t = e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
|
|
8424
8430
|
if (!t) throw new Error("Invalid RGB format");
|
|
8425
8431
|
const n = parseInt(t[1], 10) / 255, r = parseInt(t[2], 10) / 255, o = parseInt(t[3], 10) / 255, s = Math.max(n, r, o), a = Math.min(n, r, o);
|
|
@@ -8443,7 +8449,7 @@ function th(e) {
|
|
|
8443
8449
|
const f = Math.round(d * 100);
|
|
8444
8450
|
return `${i} ${c}% ${f}%`;
|
|
8445
8451
|
}
|
|
8446
|
-
function
|
|
8452
|
+
function rh(e) {
|
|
8447
8453
|
const t = e.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);
|
|
8448
8454
|
if (!t) throw new Error("Invalid HSL format");
|
|
8449
8455
|
return `${t[1]} ${t[2]}% ${t[3]}%`;
|
|
@@ -8451,9 +8457,9 @@ function nh(e) {
|
|
|
8451
8457
|
function Br(e) {
|
|
8452
8458
|
if (!e || typeof e != "string") throw new Error("Color must be a non-empty string");
|
|
8453
8459
|
const t = e.trim();
|
|
8454
|
-
if (t.startsWith("#")) return
|
|
8455
|
-
if (t.startsWith("rgb")) return
|
|
8456
|
-
if (t.startsWith("hsl")) return
|
|
8460
|
+
if (t.startsWith("#")) return th(t);
|
|
8461
|
+
if (t.startsWith("rgb")) return nh(t);
|
|
8462
|
+
if (t.startsWith("hsl")) return rh(t);
|
|
8457
8463
|
if (/^\d+\s+\d+%\s+\d+%$/.test(t)) return t;
|
|
8458
8464
|
throw new Error(`Unsupported color format: ${e}`);
|
|
8459
8465
|
}
|
|
@@ -8464,13 +8470,13 @@ function al(e) {
|
|
|
8464
8470
|
function jr(e) {
|
|
8465
8471
|
return al(e) > 0.5 ? "0 0% 9%" : "0 0% 98%";
|
|
8466
8472
|
}
|
|
8467
|
-
function
|
|
8473
|
+
function oh(e) {
|
|
8468
8474
|
const t = e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);
|
|
8469
8475
|
if (!t) return "0 0% 96%";
|
|
8470
8476
|
const n = t[1], r = Math.max(0, parseInt(t[2], 10) - 5);
|
|
8471
8477
|
return `${n} ${r}% 96%`;
|
|
8472
8478
|
}
|
|
8473
|
-
function
|
|
8479
|
+
function sh(e) {
|
|
8474
8480
|
const t = e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);
|
|
8475
8481
|
if (!t)
|
|
8476
8482
|
return {
|
|
@@ -8500,8 +8506,8 @@ function oh(e) {
|
|
|
8500
8506
|
900: `${n} ${Math.min(100, r + 20)}% ${Math.max(20, o - 40)}%`
|
|
8501
8507
|
};
|
|
8502
8508
|
}
|
|
8503
|
-
function
|
|
8504
|
-
const n = t.primary ??
|
|
8509
|
+
function _i(e, t) {
|
|
8510
|
+
const n = t.primary ?? co, r = t.textColor ?? "black", o = !!t.backgroundImage, s = t.mode === "dark" || r === "white", a = t.headerTinted ?? !1, i = (p, E) => {
|
|
8505
8511
|
const g = e instanceof ShadowRoot ? e.host : e;
|
|
8506
8512
|
g instanceof HTMLElement && g.style.setProperty(p, E);
|
|
8507
8513
|
};
|
|
@@ -8509,10 +8515,10 @@ function gi(e, t) {
|
|
|
8509
8515
|
try {
|
|
8510
8516
|
c = Br(n);
|
|
8511
8517
|
} catch {
|
|
8512
|
-
c = Br(
|
|
8518
|
+
c = Br(co);
|
|
8513
8519
|
}
|
|
8514
8520
|
i("--primary", c), i("--primary-foreground", jr(c)), i("--ring", c), i("--border-primary", c);
|
|
8515
|
-
const d =
|
|
8521
|
+
const d = sh(c);
|
|
8516
8522
|
for (const [p, E] of Object.entries(d))
|
|
8517
8523
|
i(`--primary-${p}`, E);
|
|
8518
8524
|
const f = jr(c);
|
|
@@ -8527,7 +8533,7 @@ function gi(e, t) {
|
|
|
8527
8533
|
}
|
|
8528
8534
|
i("--widget-bg-overlay", `hsl(${c} / ${a ? 0.05 : 0.1})`);
|
|
8529
8535
|
}
|
|
8530
|
-
if (s ? i("--bot-message-bg", "var(--black-600)") : i("--bot-message-bg", "var(--white-600)"), s ? i("--card", "0 0% 0% / 0.6") : i("--card", "0 0% 100% / 0.6"), i("--bot-message-border",
|
|
8536
|
+
if (s ? i("--bot-message-bg", "var(--black-600)") : i("--bot-message-bg", "var(--white-600)"), s ? i("--card", "0 0% 0% / 0.6") : i("--card", "0 0% 100% / 0.6"), i("--bot-message-border", oh(s ? "0 0% 100%" : "0 0% 9%")), s ? (i("--foreground", "0 0% 100%"), i("--card-foreground", "0 0% 100%"), i("--popover-foreground", "0 0% 100%"), i("--muted-foreground", "0 0% 70%"), i("--normal-text-color", "var(--white-1000)")) : (i("--foreground", "0 0% 0%"), i("--card-foreground", "0 0% 0%"), i("--popover-foreground", "0 0% 0%"), i("--muted-foreground", "0 0% 30%"), i("--normal-text-color", "var(--black-1000)")), o ? (i("--header-bg", "transparent"), i("--header-stroke", s ? "var(--white-200)" : "var(--black-200)")) : a ? (i("--header-bg", `hsl(${c})`), i("--header-stroke", `hsl(${c} / 0.3)`)) : (i("--header-bg", s ? "var(--black-700)" : "var(--white-700)"), i("--header-stroke", `hsl(${c} / 0.3)`)), o ? (i("--footer-bg", "transparent"), i("--footer-stroke", s ? "var(--white-200)" : "var(--black-200)")) : (i("--footer-bg", s ? "var(--black-700)" : "var(--white-700)"), i("--footer-stroke", `hsl(${c} / 0.3)`)), a && !o) {
|
|
8531
8537
|
const p = al(f) > 0.5;
|
|
8532
8538
|
i("--header-tagline", p ? "var(--white-600)" : "var(--black-600)");
|
|
8533
8539
|
} else
|
|
@@ -8538,7 +8544,7 @@ function gi(e, t) {
|
|
|
8538
8544
|
const u = s ? "white" : "black";
|
|
8539
8545
|
for (const p of [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1e3])
|
|
8540
8546
|
i(`--popover-${p}`, `var(--${u}-${p})`);
|
|
8541
|
-
i("--secondary", s ? "0 0% 15%" : "0 0% 96.1%"), i("--surface-secondary", s ? "0 0% 15%" : "0 0% 96.1%"), i("--secondary-foreground", s ? "0 0% 98%" : "0 0% 9%"), i("--muted", s ? "0 0% 15%" : "0 0% 96.1%"), i("--accent", c), i("--accent-foreground", jr(c)), o ? i("--surface", s ? "0 0% 0% / 0.6" : "0 0% 100% / 0.6") : i("--surface", s ? "0 0% 10%" : "0 0% 94.1%"), i("--surface-tertiary", s ? "0 0% 12%" : "0 0% 98%"), i("--border-subtle", s ? "0 0% 20%" : "0 0% 89.8%"), i("--border-medium", s ? "0 0% 30%" : "0 0% 80%"), i("--text-primary", s ? "0 0% 100%" : "0 0% 3.9%"), i("--text-secondary", s ? "0 0% 70%" : "0 0% 45.1%"), i("--text-tertiary", s ? "0 0% 60%" : "0 0% 63.9%"), i("--text-muted", s ? "0 0% 70%" : "0 0% 45.1%"), i("--border", s ? "0 0% 20%" : "0 0% 89.8%"), i("--input", s ? "0 0% 20%" : "0 0% 89.8%"), o ? (i("--theme-background-image", `url(${t.backgroundImage})`), i("--theme-background-blur",
|
|
8547
|
+
i("--secondary", s ? "0 0% 15%" : "0 0% 96.1%"), i("--surface-secondary", s ? "0 0% 15%" : "0 0% 96.1%"), i("--secondary-foreground", s ? "0 0% 98%" : "0 0% 9%"), i("--muted", s ? "0 0% 15%" : "0 0% 96.1%"), i("--accent", c), i("--accent-foreground", jr(c)), o ? i("--surface", s ? "0 0% 0% / 0.6" : "0 0% 100% / 0.6") : i("--surface", s ? "0 0% 10%" : "0 0% 94.1%"), i("--surface-tertiary", s ? "0 0% 12%" : "0 0% 98%"), i("--border-subtle", s ? "0 0% 20%" : "0 0% 89.8%"), i("--border-medium", s ? "0 0% 30%" : "0 0% 80%"), i("--text-primary", s ? "0 0% 100%" : "0 0% 3.9%"), i("--text-secondary", s ? "0 0% 70%" : "0 0% 45.1%"), i("--text-tertiary", s ? "0 0% 60%" : "0 0% 63.9%"), i("--text-muted", s ? "0 0% 70%" : "0 0% 45.1%"), i("--border", s ? "0 0% 20%" : "0 0% 89.8%"), i("--input", s ? "0 0% 20%" : "0 0% 89.8%"), o ? (i("--theme-background-image", `url(${t.backgroundImage})`), i("--theme-background-blur", Ju), i("--theme-background-overlay", Xu), h instanceof HTMLElement && h.classList.add("theme-with-background")) : (i("--theme-background-image", "none"), i("--theme-background-blur", "0px"), i("--theme-background-overlay", "rgba(0, 0, 0, 0)"), h instanceof HTMLElement && h.classList.remove("theme-with-background"));
|
|
8542
8548
|
}
|
|
8543
8549
|
function Ze({ className: e, style: t }) {
|
|
8544
8550
|
return /* @__PURE__ */ l(
|
|
@@ -8555,12 +8561,12 @@ function Ze({ className: e, style: t }) {
|
|
|
8555
8561
|
}
|
|
8556
8562
|
);
|
|
8557
8563
|
}
|
|
8558
|
-
function
|
|
8564
|
+
function Wo() {
|
|
8559
8565
|
return /* @__PURE__ */ l("style", { children: "@keyframes shimmer { 100% { transform: translateX(100%); } }" });
|
|
8560
8566
|
}
|
|
8561
|
-
function
|
|
8567
|
+
function ih() {
|
|
8562
8568
|
return /* @__PURE__ */ l("div", { className: "px-6 py-3", children: [
|
|
8563
|
-
/* @__PURE__ */ l(
|
|
8569
|
+
/* @__PURE__ */ l(Wo, {}),
|
|
8564
8570
|
/* @__PURE__ */ l("div", { className: "flex items-center justify-between", children: [
|
|
8565
8571
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-3", children: [
|
|
8566
8572
|
/* @__PURE__ */ l(Ze, { className: "w-12 h-12 rounded-full flex-shrink-0" }),
|
|
@@ -8576,9 +8582,9 @@ function sh() {
|
|
|
8576
8582
|
] })
|
|
8577
8583
|
] });
|
|
8578
8584
|
}
|
|
8579
|
-
function
|
|
8585
|
+
function ah() {
|
|
8580
8586
|
return /* @__PURE__ */ l("div", { className: "px-3 pb-2 pt-1", children: [
|
|
8581
|
-
/* @__PURE__ */ l(
|
|
8587
|
+
/* @__PURE__ */ l(Wo, {}),
|
|
8582
8588
|
/* @__PURE__ */ l(
|
|
8583
8589
|
"div",
|
|
8584
8590
|
{
|
|
@@ -8602,15 +8608,15 @@ function ih() {
|
|
|
8602
8608
|
)
|
|
8603
8609
|
] });
|
|
8604
8610
|
}
|
|
8605
|
-
function
|
|
8611
|
+
function lh() {
|
|
8606
8612
|
return /* @__PURE__ */ l("div", { className: "space-y-3 py-2", children: [
|
|
8607
|
-
/* @__PURE__ */ l(
|
|
8613
|
+
/* @__PURE__ */ l(Wo, {}),
|
|
8608
8614
|
/* @__PURE__ */ l(Ze, { className: "h-16 w-3/4 rounded-2xl" }),
|
|
8609
8615
|
/* @__PURE__ */ l(Ze, { className: "h-10 w-1/2 rounded-2xl ml-auto" }),
|
|
8610
8616
|
/* @__PURE__ */ l(Ze, { className: "h-16 w-2/3 rounded-2xl" })
|
|
8611
8617
|
] });
|
|
8612
8618
|
}
|
|
8613
|
-
function
|
|
8619
|
+
function ch(e, t = []) {
|
|
8614
8620
|
let n = [];
|
|
8615
8621
|
function r(s, a) {
|
|
8616
8622
|
const i = ht(a);
|
|
@@ -8640,9 +8646,9 @@ function lh(e, t = []) {
|
|
|
8640
8646
|
);
|
|
8641
8647
|
};
|
|
8642
8648
|
};
|
|
8643
|
-
return o.scopeName = e, [r,
|
|
8649
|
+
return o.scopeName = e, [r, dh(o, ...t)];
|
|
8644
8650
|
}
|
|
8645
|
-
function
|
|
8651
|
+
function dh(...e) {
|
|
8646
8652
|
const t = e[0];
|
|
8647
8653
|
if (e.length === 1) return t;
|
|
8648
8654
|
const n = () => {
|
|
@@ -8660,7 +8666,7 @@ function ch(...e) {
|
|
|
8660
8666
|
};
|
|
8661
8667
|
return n.scopeName = t.scopeName, n;
|
|
8662
8668
|
}
|
|
8663
|
-
var
|
|
8669
|
+
var uh = [
|
|
8664
8670
|
"a",
|
|
8665
8671
|
"button",
|
|
8666
8672
|
"div",
|
|
@@ -8678,19 +8684,19 @@ var dh = [
|
|
|
8678
8684
|
"span",
|
|
8679
8685
|
"svg",
|
|
8680
8686
|
"ul"
|
|
8681
|
-
],
|
|
8682
|
-
const n = /* @__PURE__ */
|
|
8687
|
+
], qo = uh.reduce((e, t) => {
|
|
8688
|
+
const n = /* @__PURE__ */ rl(`Primitive.${t}`), r = Z((o, s) => {
|
|
8683
8689
|
const { asChild: a, ...i } = o, c = a ? n : t;
|
|
8684
8690
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(c, { ...i, ref: s });
|
|
8685
8691
|
});
|
|
8686
8692
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
8687
8693
|
}, {}), Gr = { exports: {} }, Wr = {};
|
|
8688
|
-
const
|
|
8689
|
-
var
|
|
8690
|
-
function
|
|
8691
|
-
if (
|
|
8692
|
-
|
|
8693
|
-
var e =
|
|
8694
|
+
const hh = /* @__PURE__ */ Pc(_a);
|
|
8695
|
+
var bi;
|
|
8696
|
+
function fh() {
|
|
8697
|
+
if (bi) return Wr;
|
|
8698
|
+
bi = 1;
|
|
8699
|
+
var e = hh;
|
|
8694
8700
|
function t(h, u) {
|
|
8695
8701
|
return h === u && (h !== 0 || 1 / h === 1 / u) || h !== h && u !== u;
|
|
8696
8702
|
}
|
|
@@ -8727,46 +8733,46 @@ function hh() {
|
|
|
8727
8733
|
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : i;
|
|
8728
8734
|
return Wr.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, Wr;
|
|
8729
8735
|
}
|
|
8730
|
-
var
|
|
8731
|
-
function
|
|
8732
|
-
return
|
|
8736
|
+
var Ei;
|
|
8737
|
+
function mh() {
|
|
8738
|
+
return Ei || (Ei = 1, Gr.exports = /* @__PURE__ */ fh()), Gr.exports;
|
|
8733
8739
|
}
|
|
8734
|
-
var
|
|
8735
|
-
function
|
|
8736
|
-
return
|
|
8737
|
-
|
|
8740
|
+
var ph = /* @__PURE__ */ mh();
|
|
8741
|
+
function gh() {
|
|
8742
|
+
return ph.useSyncExternalStore(
|
|
8743
|
+
_h,
|
|
8738
8744
|
() => !0,
|
|
8739
8745
|
() => !1
|
|
8740
8746
|
);
|
|
8741
8747
|
}
|
|
8742
|
-
function
|
|
8748
|
+
function _h() {
|
|
8743
8749
|
return () => {
|
|
8744
8750
|
};
|
|
8745
8751
|
}
|
|
8746
|
-
var
|
|
8752
|
+
var Ko = "Avatar", [bh] = ch(Ko), [Eh, ll] = bh(Ko), cl = Z(
|
|
8747
8753
|
(e, t) => {
|
|
8748
8754
|
const { __scopeAvatar: n, ...r } = e, [o, s] = U("idle");
|
|
8749
8755
|
return /* @__PURE__ */ l(
|
|
8750
|
-
|
|
8756
|
+
Eh,
|
|
8751
8757
|
{
|
|
8752
8758
|
scope: n,
|
|
8753
8759
|
imageLoadingStatus: o,
|
|
8754
8760
|
onImageLoadingStatusChange: s,
|
|
8755
|
-
children: /* @__PURE__ */ l(
|
|
8761
|
+
children: /* @__PURE__ */ l(qo.span, { ...r, ref: t })
|
|
8756
8762
|
}
|
|
8757
8763
|
);
|
|
8758
8764
|
}
|
|
8759
8765
|
);
|
|
8760
|
-
cl.displayName =
|
|
8766
|
+
cl.displayName = Ko;
|
|
8761
8767
|
var dl = "AvatarImage", ul = Z(
|
|
8762
8768
|
(e, t) => {
|
|
8763
8769
|
const { __scopeAvatar: n, src: r, onLoadingStatusChange: o = () => {
|
|
8764
|
-
}, ...s } = e, a = ll(dl, n), i =
|
|
8770
|
+
}, ...s } = e, a = ll(dl, n), i = yh(r, s), c = yt((d) => {
|
|
8765
8771
|
o(d), a.onImageLoadingStatusChange(d);
|
|
8766
8772
|
});
|
|
8767
8773
|
return Gt(() => {
|
|
8768
8774
|
i !== "idle" && c(i);
|
|
8769
|
-
}, [i, c]), i === "loaded" ? /* @__PURE__ */ l(
|
|
8775
|
+
}, [i, c]), i === "loaded" ? /* @__PURE__ */ l(qo.img, { ...s, ref: t, src: r }) : null;
|
|
8770
8776
|
}
|
|
8771
8777
|
);
|
|
8772
8778
|
ul.displayName = dl;
|
|
@@ -8778,19 +8784,19 @@ var hl = "AvatarFallback", fl = Z(
|
|
|
8778
8784
|
const c = window.setTimeout(() => i(!0), r);
|
|
8779
8785
|
return () => window.clearTimeout(c);
|
|
8780
8786
|
}
|
|
8781
|
-
}, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ l(
|
|
8787
|
+
}, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ l(qo.span, { ...o, ref: t }) : null;
|
|
8782
8788
|
}
|
|
8783
8789
|
);
|
|
8784
8790
|
fl.displayName = hl;
|
|
8785
|
-
function
|
|
8791
|
+
function yi(e, t) {
|
|
8786
8792
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
8787
8793
|
}
|
|
8788
|
-
function
|
|
8789
|
-
const r =
|
|
8790
|
-
() =>
|
|
8794
|
+
function yh(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
8795
|
+
const r = gh(), o = W(null), s = r ? (o.current || (o.current = new window.Image()), o.current) : null, [a, i] = U(
|
|
8796
|
+
() => yi(s, e)
|
|
8791
8797
|
);
|
|
8792
8798
|
return Gt(() => {
|
|
8793
|
-
i(
|
|
8799
|
+
i(yi(s, e));
|
|
8794
8800
|
}, [s, e]), Gt(() => {
|
|
8795
8801
|
const c = (h) => () => {
|
|
8796
8802
|
i(h);
|
|
@@ -8815,7 +8821,7 @@ const _l = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
8815
8821
|
}
|
|
8816
8822
|
));
|
|
8817
8823
|
_l.displayName = ml.displayName;
|
|
8818
|
-
const
|
|
8824
|
+
const vh = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
8819
8825
|
pl,
|
|
8820
8826
|
{
|
|
8821
8827
|
ref: n,
|
|
@@ -8823,7 +8829,7 @@ const yh = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
8823
8829
|
...t
|
|
8824
8830
|
}
|
|
8825
8831
|
));
|
|
8826
|
-
|
|
8832
|
+
vh.displayName = pl.displayName;
|
|
8827
8833
|
const bl = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
8828
8834
|
gl,
|
|
8829
8835
|
{
|
|
@@ -8837,27 +8843,27 @@ const bl = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
8837
8843
|
));
|
|
8838
8844
|
bl.displayName = gl.displayName;
|
|
8839
8845
|
const El = ht(!1);
|
|
8840
|
-
function
|
|
8846
|
+
function Sh({ enabled: e, children: t }) {
|
|
8841
8847
|
return /* @__PURE__ */ l(El.Provider, { value: e, children: t });
|
|
8842
8848
|
}
|
|
8843
|
-
function
|
|
8849
|
+
function wh() {
|
|
8844
8850
|
return pt(El);
|
|
8845
8851
|
}
|
|
8846
8852
|
const yl = "(max-width: 768px), (pointer: coarse)", vl = /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i;
|
|
8847
|
-
function
|
|
8853
|
+
function Ch() {
|
|
8848
8854
|
if (typeof window > "u") return !1;
|
|
8849
8855
|
const e = window.matchMedia?.(yl)?.matches ?? !1, t = vl.test(navigator?.userAgent ?? "");
|
|
8850
8856
|
return e || t;
|
|
8851
8857
|
}
|
|
8852
8858
|
function Sl() {
|
|
8853
|
-
const [e, t] = U(
|
|
8859
|
+
const [e, t] = U(Ch);
|
|
8854
8860
|
return H(() => {
|
|
8855
8861
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
8856
8862
|
const n = window.matchMedia(yl), r = vl.test(navigator?.userAgent ?? ""), o = () => t(n.matches || r);
|
|
8857
8863
|
return o(), n.addEventListener("change", o), () => n.removeEventListener("change", o);
|
|
8858
8864
|
}, []), e;
|
|
8859
8865
|
}
|
|
8860
|
-
function
|
|
8866
|
+
function Th({
|
|
8861
8867
|
onClose: e,
|
|
8862
8868
|
showCloseButton: t = !0,
|
|
8863
8869
|
title: n,
|
|
@@ -8869,7 +8875,7 @@ function Ch({
|
|
|
8869
8875
|
headerTinted: c = !1,
|
|
8870
8876
|
onToggleDisplayMode: d
|
|
8871
8877
|
}) {
|
|
8872
|
-
const f = Sl(), u =
|
|
8878
|
+
const f = Sl(), u = wh() && !f, p = Q((v) => v.displayMode) === "full", E = Q((v) => v.initialDisplayMode) === "full", S = (p ? !1 : c) ? "text-primary-foreground hover:text-white hover:bg-black-100" : "text-foreground", m = Q((v) => v.connectionStatus), [_, b] = U(!1), x = W(null), y = de(() => i === "connected" || i === "connecting" || i === "listening" || i === "speaking" || i === "thinking", [i]), C = ce(() => {
|
|
8873
8879
|
_ || (b(!0), x.current && clearTimeout(x.current), x.current = setTimeout(() => {
|
|
8874
8880
|
x.current = null, b(!1);
|
|
8875
8881
|
}, 6e3), a());
|
|
@@ -8954,7 +8960,7 @@ function Ch({
|
|
|
8954
8960
|
onClick: C,
|
|
8955
8961
|
disabled: _,
|
|
8956
8962
|
className: F("h-8 w-8 p-1.5 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200 disabled:opacity-60 disabled:pointer-events-none", S),
|
|
8957
|
-
children: /* @__PURE__ */ l(
|
|
8963
|
+
children: /* @__PURE__ */ l(sl, { className: "w-5 h-5" })
|
|
8958
8964
|
}
|
|
8959
8965
|
),
|
|
8960
8966
|
u && /* @__PURE__ */ l(
|
|
@@ -8984,7 +8990,7 @@ function Ch({
|
|
|
8984
8990
|
] })
|
|
8985
8991
|
] }) });
|
|
8986
8992
|
}
|
|
8987
|
-
const
|
|
8993
|
+
const uo = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
8988
8994
|
"textarea",
|
|
8989
8995
|
{
|
|
8990
8996
|
className: F(
|
|
@@ -8995,8 +9001,8 @@ const co = Z(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
8995
9001
|
...t
|
|
8996
9002
|
}
|
|
8997
9003
|
));
|
|
8998
|
-
|
|
8999
|
-
function
|
|
9004
|
+
uo.displayName = "Textarea";
|
|
9005
|
+
function vi({
|
|
9000
9006
|
file: e,
|
|
9001
9007
|
onRemove: t,
|
|
9002
9008
|
isPreview: n = !0,
|
|
@@ -9064,7 +9070,7 @@ function yi({
|
|
|
9064
9070
|
)
|
|
9065
9071
|
] });
|
|
9066
9072
|
}
|
|
9067
|
-
function
|
|
9073
|
+
function ho({
|
|
9068
9074
|
files: e,
|
|
9069
9075
|
onRemoveFile: t,
|
|
9070
9076
|
isPreview: n = !0,
|
|
@@ -9076,7 +9082,7 @@ function uo({
|
|
|
9076
9082
|
s.map((a) => {
|
|
9077
9083
|
const i = e.indexOf(a);
|
|
9078
9084
|
return /* @__PURE__ */ l(
|
|
9079
|
-
|
|
9085
|
+
vi,
|
|
9080
9086
|
{
|
|
9081
9087
|
file: a,
|
|
9082
9088
|
onRemove: t ? () => t(i) : void 0,
|
|
@@ -9088,7 +9094,7 @@ function uo({
|
|
|
9088
9094
|
o.length > 0 && /* @__PURE__ */ l("div", { className: "flex gap-2 overflow-x-auto max-w-full p-1 scrollbar-hide", children: o.map((a) => {
|
|
9089
9095
|
const i = e.indexOf(a);
|
|
9090
9096
|
return /* @__PURE__ */ l(
|
|
9091
|
-
|
|
9097
|
+
vi,
|
|
9092
9098
|
{
|
|
9093
9099
|
file: a,
|
|
9094
9100
|
onRemove: t ? () => t(i) : void 0,
|
|
@@ -9099,7 +9105,7 @@ function uo({
|
|
|
9099
9105
|
}) })
|
|
9100
9106
|
] });
|
|
9101
9107
|
}
|
|
9102
|
-
const Ln = ({ className: e }) => /* @__PURE__ */ l("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: e, children: /* @__PURE__ */ l("path", { d: "M1.46875 0.09375L16.3125 6.9375C16.75 7.125 17 7.53125 17 8C17 8.46875 16.75 8.875 16.3125 9.0625L1.46875 15.9062C1.3125 15.9688 1.1875 16 1.03125 16C0.46875 16 0 15.5312 0 14.9688C0 14.8125 0.03125 14.6875 0.09375 14.5625L2.34375 9.5C2.5 9.15625 2.8125 8.9375 3.15625 8.90625L8.0625 8.46875C8.3125 8.46875 8.5 8.25 8.5 8C8.5 7.75 8.3125 7.5625 8.0625 7.53125L3.15625 7.09375C2.8125 7.0625 2.5 6.84375 2.34375 6.5L0.09375 1.4375C0.03125 1.3125 0 1.1875 0 1.03125C0 0.46875 0.46875 0 1.03125 0C1.1875 0 1.3125 0.03125 1.46875 0.09375Z", fill: "currentColor" }) }),
|
|
9108
|
+
const Ln = ({ className: e }) => /* @__PURE__ */ l("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: e, children: /* @__PURE__ */ l("path", { d: "M1.46875 0.09375L16.3125 6.9375C16.75 7.125 17 7.53125 17 8C17 8.46875 16.75 8.875 16.3125 9.0625L1.46875 15.9062C1.3125 15.9688 1.1875 16 1.03125 16C0.46875 16 0 15.5312 0 14.9688C0 14.8125 0.03125 14.6875 0.09375 14.5625L2.34375 9.5C2.5 9.15625 2.8125 8.9375 3.15625 8.90625L8.0625 8.46875C8.3125 8.46875 8.5 8.25 8.5 8C8.5 7.75 8.3125 7.5625 8.0625 7.53125L3.15625 7.09375C2.8125 7.0625 2.5 6.84375 2.34375 6.5L0.09375 1.4375C0.03125 1.3125 0 1.1875 0 1.03125C0 0.46875 0.46875 0 1.03125 0C1.1875 0 1.3125 0.03125 1.46875 0.09375Z", fill: "currentColor" }) }), Yo = Z(
|
|
9103
9109
|
({ className: e, type: t, ...n }, r) => {
|
|
9104
9110
|
const o = e && typeof e == "string" && e.includes("placeholder:");
|
|
9105
9111
|
return /* @__PURE__ */ l(
|
|
@@ -9118,8 +9124,8 @@ const Ln = ({ className: e }) => /* @__PURE__ */ l("svg", { width: "17", height:
|
|
|
9118
9124
|
);
|
|
9119
9125
|
}
|
|
9120
9126
|
);
|
|
9121
|
-
|
|
9122
|
-
const
|
|
9127
|
+
Yo.displayName = "Input";
|
|
9128
|
+
const xh = () => /* @__PURE__ */ l(
|
|
9123
9129
|
"svg",
|
|
9124
9130
|
{
|
|
9125
9131
|
width: "16",
|
|
@@ -9511,12 +9517,12 @@ const Th = () => /* @__PURE__ */ l(
|
|
|
9511
9517
|
/* @__PURE__ */ l("defs", { children: /* @__PURE__ */ l("clipPath", { id: "circleClip", children: /* @__PURE__ */ l("circle", { cx: "8", cy: "8", r: "8" }) }) })
|
|
9512
9518
|
]
|
|
9513
9519
|
}
|
|
9514
|
-
),
|
|
9515
|
-
function
|
|
9520
|
+
), Nh = "+91";
|
|
9521
|
+
function kh(e) {
|
|
9516
9522
|
const t = e.replace(/\D/g, ""), n = t.slice(0, 5), r = t.slice(5, 10);
|
|
9517
9523
|
return r ? `${n} ${r}` : n;
|
|
9518
9524
|
}
|
|
9519
|
-
function
|
|
9525
|
+
function Ah({
|
|
9520
9526
|
value: e,
|
|
9521
9527
|
onChange: t,
|
|
9522
9528
|
onKeyDown: n,
|
|
@@ -9543,9 +9549,9 @@ function kh({
|
|
|
9543
9549
|
fontSize: s ? "16px" : "14px"
|
|
9544
9550
|
},
|
|
9545
9551
|
children: [
|
|
9546
|
-
/* @__PURE__ */ l(
|
|
9547
|
-
/* @__PURE__ */ l("span", { className: "text-sm font-medium text-foreground", children:
|
|
9548
|
-
/* @__PURE__ */ l(
|
|
9552
|
+
/* @__PURE__ */ l(xh, {}),
|
|
9553
|
+
/* @__PURE__ */ l("span", { className: "text-sm font-medium text-foreground", children: Nh }),
|
|
9554
|
+
/* @__PURE__ */ l(jo, { className: "h-4 w-4 text-muted-foreground", "aria-hidden": !0 })
|
|
9549
9555
|
]
|
|
9550
9556
|
}
|
|
9551
9557
|
),
|
|
@@ -9559,11 +9565,11 @@ function kh({
|
|
|
9559
9565
|
),
|
|
9560
9566
|
children: [
|
|
9561
9567
|
/* @__PURE__ */ l(
|
|
9562
|
-
|
|
9568
|
+
Yo,
|
|
9563
9569
|
{
|
|
9564
9570
|
type: "tel",
|
|
9565
9571
|
autoComplete: "tel-national",
|
|
9566
|
-
value:
|
|
9572
|
+
value: kh(e),
|
|
9567
9573
|
onChange: t,
|
|
9568
9574
|
onKeyDown: n,
|
|
9569
9575
|
placeholder: "88888 88888",
|
|
@@ -9602,8 +9608,8 @@ function kh({
|
|
|
9602
9608
|
] })
|
|
9603
9609
|
] });
|
|
9604
9610
|
}
|
|
9605
|
-
const
|
|
9606
|
-
function
|
|
9611
|
+
const Rh = 6, Ih = 30, Mh = (e, t) => e.disabled === t.disabled && e.isMobile === t.isMobile && e.validation?.pattern === t.validation?.pattern && e.validation?.minLength === t.validation?.minLength && e.validation?.maxLength === t.validation?.maxLength && e.serverMessage === t.serverMessage && e.theme?.textColor === t.theme?.textColor;
|
|
9612
|
+
function Oh({
|
|
9607
9613
|
disabled: e,
|
|
9608
9614
|
isMobile: t,
|
|
9609
9615
|
validation: n,
|
|
@@ -9611,7 +9617,7 @@ function Mh({
|
|
|
9611
9617
|
onResendOtp: o,
|
|
9612
9618
|
serverMessage: s
|
|
9613
9619
|
}) {
|
|
9614
|
-
const a = W([]), [i, c] = U(0), [d, f] = U(!1), h = W(!1), u = W(r), p = W(o), E = n?.maxLength ??
|
|
9620
|
+
const a = W([]), [i, c] = U(0), [d, f] = U(!1), h = W(!1), u = W(r), p = W(o), E = n?.maxLength ?? Rh, g = de(
|
|
9615
9621
|
() => new RegExp(n?.pattern ?? `^\\d{${E}}$`),
|
|
9616
9622
|
[n?.pattern, E]
|
|
9617
9623
|
);
|
|
@@ -9688,7 +9694,7 @@ function Mh({
|
|
|
9688
9694
|
if (!(i > 0 || e)) {
|
|
9689
9695
|
for (const R of a.current)
|
|
9690
9696
|
R && (R.value = "");
|
|
9691
|
-
h.current = !1, f(!1), a.current[0]?.focus(), p.current?.(), c(
|
|
9697
|
+
h.current = !1, f(!1), a.current[0]?.focus(), p.current?.(), c(Ih);
|
|
9692
9698
|
}
|
|
9693
9699
|
}, [e, i]);
|
|
9694
9700
|
H(() => {
|
|
@@ -9770,8 +9776,8 @@ function Mh({
|
|
|
9770
9776
|
] })
|
|
9771
9777
|
] }) });
|
|
9772
9778
|
}
|
|
9773
|
-
const
|
|
9774
|
-
function
|
|
9779
|
+
const Ph = Ao(Oh, Mh);
|
|
9780
|
+
function Lh({
|
|
9775
9781
|
value: e,
|
|
9776
9782
|
onChange: t,
|
|
9777
9783
|
onKeyDown: n,
|
|
@@ -9794,7 +9800,7 @@ function Ph({
|
|
|
9794
9800
|
),
|
|
9795
9801
|
children: [
|
|
9796
9802
|
/* @__PURE__ */ l(
|
|
9797
|
-
|
|
9803
|
+
Yo,
|
|
9798
9804
|
{
|
|
9799
9805
|
type: "email",
|
|
9800
9806
|
autoComplete: "email",
|
|
@@ -9834,8 +9840,8 @@ function Ph({
|
|
|
9834
9840
|
)
|
|
9835
9841
|
] });
|
|
9836
9842
|
}
|
|
9837
|
-
const
|
|
9838
|
-
function
|
|
9843
|
+
const Si = 10, Dh = 10, Fh = /^[6-9][0-9]{9}$/, Uh = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
9844
|
+
function Vh({
|
|
9839
9845
|
elicitationEntry: e,
|
|
9840
9846
|
value: t,
|
|
9841
9847
|
onChange: n,
|
|
@@ -9856,9 +9862,9 @@ function Uh({
|
|
|
9856
9862
|
if (!E && !g && !S)
|
|
9857
9863
|
return null;
|
|
9858
9864
|
const m = u?.trim() ?? "", _ = (v) => {
|
|
9859
|
-
const N = v.target.value.replace(/\D/g, ""), I = f ??
|
|
9865
|
+
const N = v.target.value.replace(/\D/g, ""), I = f ?? Si;
|
|
9860
9866
|
n(N.slice(0, I));
|
|
9861
|
-
}, b = t.length === (d ??
|
|
9867
|
+
}, b = t.length === (d ?? Dh) && (c ? new RegExp(c).test(t) : Fh.test(t)), x = c ? new RegExp(c).test(t) : Uh.test(t), y = () => {
|
|
9862
9868
|
!x || r || a({ toolCalled: !0, tool_key: p });
|
|
9863
9869
|
}, C = (v) => {
|
|
9864
9870
|
v.key === "Enter" && (v.preventDefault(), y());
|
|
@@ -9867,7 +9873,7 @@ function Uh({
|
|
|
9867
9873
|
};
|
|
9868
9874
|
return /* @__PURE__ */ l(pe, { children: [
|
|
9869
9875
|
E && /* @__PURE__ */ l(
|
|
9870
|
-
|
|
9876
|
+
Ah,
|
|
9871
9877
|
{
|
|
9872
9878
|
value: t,
|
|
9873
9879
|
onChange: _,
|
|
@@ -9880,11 +9886,11 @@ function Uh({
|
|
|
9880
9886
|
isMobileValid: b,
|
|
9881
9887
|
theme: o,
|
|
9882
9888
|
isMobile: s,
|
|
9883
|
-
maxLength: f ??
|
|
9889
|
+
maxLength: f ?? Si
|
|
9884
9890
|
}
|
|
9885
9891
|
),
|
|
9886
9892
|
g && /* @__PURE__ */ l(
|
|
9887
|
-
|
|
9893
|
+
Ph,
|
|
9888
9894
|
{
|
|
9889
9895
|
disabled: r,
|
|
9890
9896
|
isMobile: s,
|
|
@@ -9900,7 +9906,7 @@ function Uh({
|
|
|
9900
9906
|
}
|
|
9901
9907
|
),
|
|
9902
9908
|
S && /* @__PURE__ */ l(
|
|
9903
|
-
|
|
9909
|
+
Lh,
|
|
9904
9910
|
{
|
|
9905
9911
|
value: t,
|
|
9906
9912
|
onChange: (v) => n(v.target.value),
|
|
@@ -9915,8 +9921,8 @@ function Uh({
|
|
|
9915
9921
|
)
|
|
9916
9922
|
] });
|
|
9917
9923
|
}
|
|
9918
|
-
const
|
|
9919
|
-
function
|
|
9924
|
+
const wi = ({ className: e }) => /* @__PURE__ */ l("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: e, children: /* @__PURE__ */ l("path", { d: "M6.875 0C7.375 0 7.75 0.40625 7.75 0.875V14.875C7.75 15.375 7.375 15.75 6.875 15.75C6.40625 15.75 6 15.375 6 14.875V0.875C6 0.40625 6.40625 0 6.875 0ZM12.875 2C13.375 2 13.75 2.40625 13.75 2.875V12.875C13.75 13.375 13.375 13.75 12.875 13.75C12.4062 13.75 12 13.375 12 12.875V2.875C12 2.40625 12.4062 2 12.875 2ZM3.875 3C4.375 3 4.75 3.40625 4.75 3.875V11.875C4.75 12.375 4.375 12.75 3.875 12.75C3.40625 12.75 3 12.375 3 11.875V3.875C3 3.40625 3.40625 3 3.875 3ZM9.875 4C10.375 4 10.75 4.40625 10.75 4.875V10.875C10.75 11.375 10.375 11.75 9.875 11.75C9.40625 11.75 9 11.375 9 10.875V4.875C9 4.40625 9.40625 4 9.875 4ZM0.875 6C1.375 6 1.75 6.40625 1.75 6.875V8.875C1.75 9.375 1.375 9.75 0.875 9.75C0.40625 9.75 0 9.375 0 8.875V6.875C0 6.40625 0.40625 6 0.875 6ZM15.875 6C16.375 6 16.75 6.40625 16.75 6.875V8.875C16.75 9.375 16.375 9.75 15.875 9.75C15.4062 9.75 15 9.375 15 8.875V6.875C15 6.40625 15.4062 6 15.875 6Z", fill: "currentColor" }) });
|
|
9925
|
+
function $h({
|
|
9920
9926
|
value: e,
|
|
9921
9927
|
onChange: t,
|
|
9922
9928
|
onSend: n,
|
|
@@ -9972,11 +9978,11 @@ function Vh({
|
|
|
9972
9978
|
),
|
|
9973
9979
|
children: [
|
|
9974
9980
|
/* @__PURE__ */ l("span", { children: "Start new chat" }),
|
|
9975
|
-
/* @__PURE__ */ l(
|
|
9981
|
+
/* @__PURE__ */ l(sl, { className: "w-5 h-5", "aria-hidden": !0 })
|
|
9976
9982
|
]
|
|
9977
9983
|
}
|
|
9978
9984
|
) }) : /* @__PURE__ */ l(pe, { children: b ? /* @__PURE__ */ l(
|
|
9979
|
-
|
|
9985
|
+
Vh,
|
|
9980
9986
|
{
|
|
9981
9987
|
elicitationEntry: x,
|
|
9982
9988
|
value: e,
|
|
@@ -9997,7 +10003,7 @@ function Vh({
|
|
|
9997
10003
|
},
|
|
9998
10004
|
children: [
|
|
9999
10005
|
i && c.length > 0 && /* @__PURE__ */ l("div", { className: "mb-2 pb-2 border-b border-border-subtle", children: /* @__PURE__ */ l(
|
|
10000
|
-
|
|
10006
|
+
ho,
|
|
10001
10007
|
{
|
|
10002
10008
|
files: c,
|
|
10003
10009
|
onRemoveFile: o,
|
|
@@ -10026,7 +10032,7 @@ function Vh({
|
|
|
10026
10032
|
style: { padding: "12px 8px" },
|
|
10027
10033
|
"data-name": "text-frame",
|
|
10028
10034
|
children: /* @__PURE__ */ l(
|
|
10029
|
-
|
|
10035
|
+
uo,
|
|
10030
10036
|
{
|
|
10031
10037
|
ref: w,
|
|
10032
10038
|
onInput: he,
|
|
@@ -10080,7 +10086,7 @@ function Vh({
|
|
|
10080
10086
|
),
|
|
10081
10087
|
title: "Attach file",
|
|
10082
10088
|
"aria-label": "Attach file",
|
|
10083
|
-
children: /* @__PURE__ */ l(
|
|
10089
|
+
children: /* @__PURE__ */ l(mi, { className: "w-6 h-6", strokeWidth: 1.5 })
|
|
10084
10090
|
}
|
|
10085
10091
|
) }),
|
|
10086
10092
|
/* @__PURE__ */ l(
|
|
@@ -10102,7 +10108,7 @@ function Vh({
|
|
|
10102
10108
|
),
|
|
10103
10109
|
title: "Stop recording",
|
|
10104
10110
|
"aria-label": "Stop recording",
|
|
10105
|
-
children: /* @__PURE__ */ l(
|
|
10111
|
+
children: /* @__PURE__ */ l(pi, { className: "w-4 h-4" })
|
|
10106
10112
|
}
|
|
10107
10113
|
) : v && /* @__PURE__ */ l(
|
|
10108
10114
|
ae,
|
|
@@ -10118,7 +10124,7 @@ function Vh({
|
|
|
10118
10124
|
),
|
|
10119
10125
|
title: "Start recording",
|
|
10120
10126
|
"aria-label": "Start recording",
|
|
10121
|
-
children: /* @__PURE__ */ l(
|
|
10127
|
+
children: /* @__PURE__ */ l(fi, { className: "w-6 h-6", strokeWidth: 1.5 })
|
|
10122
10128
|
}
|
|
10123
10129
|
),
|
|
10124
10130
|
I && !a ? /* @__PURE__ */ l(
|
|
@@ -10148,7 +10154,7 @@ function Vh({
|
|
|
10148
10154
|
className: "h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100 p-2",
|
|
10149
10155
|
title: "Enter voice mode",
|
|
10150
10156
|
"aria-label": "Enter voice mode",
|
|
10151
|
-
children: /* @__PURE__ */ l(
|
|
10157
|
+
children: /* @__PURE__ */ l(wi, { className: "w-4 h-4 text-primary-foreground" })
|
|
10152
10158
|
}
|
|
10153
10159
|
)
|
|
10154
10160
|
]
|
|
@@ -10186,7 +10192,7 @@ function Vh({
|
|
|
10186
10192
|
},
|
|
10187
10193
|
children: [
|
|
10188
10194
|
i && c.length > 0 && /* @__PURE__ */ l("div", { className: "mb-2 pb-2 border-b border-border-subtle", children: /* @__PURE__ */ l(
|
|
10189
|
-
|
|
10195
|
+
ho,
|
|
10190
10196
|
{
|
|
10191
10197
|
files: c,
|
|
10192
10198
|
onRemoveFile: o,
|
|
@@ -10194,7 +10200,7 @@ function Vh({
|
|
|
10194
10200
|
}
|
|
10195
10201
|
) }),
|
|
10196
10202
|
/* @__PURE__ */ l("div", { className: "px-1 pt-1 pb-0", children: /* @__PURE__ */ l(
|
|
10197
|
-
|
|
10203
|
+
uo,
|
|
10198
10204
|
{
|
|
10199
10205
|
ref: w,
|
|
10200
10206
|
onInput: he,
|
|
@@ -10238,7 +10244,7 @@ function Vh({
|
|
|
10238
10244
|
),
|
|
10239
10245
|
title: "Attach file",
|
|
10240
10246
|
"aria-label": "Attach file",
|
|
10241
|
-
children: /* @__PURE__ */ l(
|
|
10247
|
+
children: /* @__PURE__ */ l(mi, { className: "w-5 h-5", strokeWidth: 1.5 })
|
|
10242
10248
|
}
|
|
10243
10249
|
) }),
|
|
10244
10250
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
@@ -10255,7 +10261,7 @@ function Vh({
|
|
|
10255
10261
|
),
|
|
10256
10262
|
title: "Stop recording",
|
|
10257
10263
|
"aria-label": "Stop recording",
|
|
10258
|
-
children: /* @__PURE__ */ l(
|
|
10264
|
+
children: /* @__PURE__ */ l(pi, { className: "w-4 h-4" })
|
|
10259
10265
|
}
|
|
10260
10266
|
) : I ? /* @__PURE__ */ l(
|
|
10261
10267
|
ae,
|
|
@@ -10284,7 +10290,7 @@ function Vh({
|
|
|
10284
10290
|
className: F("h-10 w-10 shrink-0", z),
|
|
10285
10291
|
title: "Start recording",
|
|
10286
10292
|
"aria-label": "Start recording",
|
|
10287
|
-
children: /* @__PURE__ */ l(
|
|
10293
|
+
children: /* @__PURE__ */ l(fi, { className: "w-5 h-5", strokeWidth: 1.5 })
|
|
10288
10294
|
}
|
|
10289
10295
|
),
|
|
10290
10296
|
v && N && !a && /* @__PURE__ */ l(
|
|
@@ -10298,7 +10304,7 @@ function Vh({
|
|
|
10298
10304
|
className: "h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100",
|
|
10299
10305
|
title: "Enter voice mode",
|
|
10300
10306
|
"aria-label": "Enter voice mode",
|
|
10301
|
-
children: /* @__PURE__ */ l(
|
|
10307
|
+
children: /* @__PURE__ */ l(wi, { className: "w-4 h-4 text-primary-foreground" })
|
|
10302
10308
|
}
|
|
10303
10309
|
)
|
|
10304
10310
|
] })
|
|
@@ -10308,7 +10314,7 @@ function Vh({
|
|
|
10308
10314
|
)
|
|
10309
10315
|
] }) });
|
|
10310
10316
|
}
|
|
10311
|
-
function
|
|
10317
|
+
function zh({ message: e, onDismiss: t }) {
|
|
10312
10318
|
return /* @__PURE__ */ l(pe, { children: [
|
|
10313
10319
|
/* @__PURE__ */ l(
|
|
10314
10320
|
"div",
|
|
@@ -10356,7 +10362,7 @@ function $h({ message: e, onDismiss: t }) {
|
|
|
10356
10362
|
)
|
|
10357
10363
|
] });
|
|
10358
10364
|
}
|
|
10359
|
-
function
|
|
10365
|
+
function Hh() {
|
|
10360
10366
|
const e = Q((r) => r.toastMessage), t = Q((r) => r.setToastMessage), n = ce(() => {
|
|
10361
10367
|
t(null);
|
|
10362
10368
|
}, [t]);
|
|
@@ -10365,7 +10371,7 @@ function zh() {
|
|
|
10365
10371
|
const r = window.setTimeout(n, 3e3);
|
|
10366
10372
|
return () => window.clearTimeout(r);
|
|
10367
10373
|
}, [e, n]), e ? /* @__PURE__ */ l(
|
|
10368
|
-
|
|
10374
|
+
zh,
|
|
10369
10375
|
{
|
|
10370
10376
|
message: e,
|
|
10371
10377
|
onDismiss: n
|
|
@@ -10383,7 +10389,7 @@ function wl({ isOpen: e, children: t, align: n = "center", onClose: r }) {
|
|
|
10383
10389
|
}
|
|
10384
10390
|
) : null;
|
|
10385
10391
|
}
|
|
10386
|
-
function
|
|
10392
|
+
function Bh({ isOpen: e, onClose: t, botName: n }) {
|
|
10387
10393
|
return /* @__PURE__ */ l(wl, { isOpen: e, onClose: t, children: /* @__PURE__ */ l("div", { className: "bg-elicitationBg rounded-2xl shadow-xl mx-6 p-6 w-full max-w-[320px] flex flex-col gap-4 border border-primary/50", children: [
|
|
10388
10394
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-2", children: [
|
|
10389
10395
|
/* @__PURE__ */ l("h2", { className: "text-xl font-semibold text-foreground text-left text-pretty", children: "AI responses are not medical advice" }),
|
|
@@ -10399,22 +10405,22 @@ function Hh({ isOpen: e, onClose: t, botName: n }) {
|
|
|
10399
10405
|
)
|
|
10400
10406
|
] }) });
|
|
10401
10407
|
}
|
|
10402
|
-
const
|
|
10408
|
+
const jh = He(() => import("./medassist-widget-mood-angry-BQqxy8gg.js").then((e) => ({ default: e.MoodAngry }))), Gh = He(() => import("./medassist-widget-mood-bad-BBDRkdRc.js").then((e) => ({ default: e.MoodBad }))), Wh = He(() => import("./medassist-widget-mood-neutral-CbcKAQbC.js").then((e) => ({ default: e.MoodNeutral }))), qh = He(() => import("./medassist-widget-mood-poor-t4w5iE4B.js").then((e) => ({ default: e.MoodPoor }))), Kh = He(() => import("./medassist-widget-mood-happy-oLG7NUhq.js").then((e) => ({ default: e.MoodHappy }))), Yh = [
|
|
10403
10409
|
{ label: "Took longer than expected", value: "took_longer" },
|
|
10404
10410
|
{ label: "Asking too many questions", value: "too_many_questions" },
|
|
10405
10411
|
{ label: "Irrelevant response", value: "irrelevant_response" },
|
|
10406
10412
|
{ label: "Other", value: "other" }
|
|
10407
|
-
],
|
|
10408
|
-
{ Icon:
|
|
10409
|
-
{ Icon:
|
|
10410
|
-
{ Icon:
|
|
10411
|
-
{ Icon:
|
|
10412
|
-
{ Icon:
|
|
10413
|
+
], Zh = [
|
|
10414
|
+
{ Icon: jh, label: "Bad", score: 1 },
|
|
10415
|
+
{ Icon: Gh, label: "Poor", score: 2 },
|
|
10416
|
+
{ Icon: Wh, label: "Okay", score: 3 },
|
|
10417
|
+
{ Icon: qh, label: "Good", score: 4 },
|
|
10418
|
+
{ Icon: Kh, label: "Great!", score: 5 }
|
|
10413
10419
|
];
|
|
10414
|
-
function
|
|
10420
|
+
function Xh(e, t) {
|
|
10415
10421
|
return e <= 2 ? t.form?.detractors ?? [] : e === 3 ? t.form?.passives ?? [] : t.form?.promoters ?? [];
|
|
10416
10422
|
}
|
|
10417
|
-
function
|
|
10423
|
+
function Jh({
|
|
10418
10424
|
isOpen: e,
|
|
10419
10425
|
config: t,
|
|
10420
10426
|
onSubmit: n,
|
|
@@ -10422,7 +10428,7 @@ function Xh({
|
|
|
10422
10428
|
onClose: o,
|
|
10423
10429
|
onDontShowAgain: s
|
|
10424
10430
|
}) {
|
|
10425
|
-
const a = t.type === "nps", [i, c] = U(null), [d, f] = U(/* @__PURE__ */ new Set()), [h, u] = U(!1), p = a && i !== null ?
|
|
10431
|
+
const a = t.type === "nps", [i, c] = U(null), [d, f] = U(/* @__PURE__ */ new Set()), [h, u] = U(!1), p = a && i !== null ? Xh(i, t) : t.form?.default?.length ? t.form.default : Yh, E = (_) => {
|
|
10426
10432
|
f((b) => {
|
|
10427
10433
|
const x = new Set(b);
|
|
10428
10434
|
return x.has(_) ? x.delete(_) : x.add(_), x;
|
|
@@ -10446,7 +10452,7 @@ function Xh({
|
|
|
10446
10452
|
t.title && /* @__PURE__ */ l("h2", { className: "text-base font-semibold text-balance text-foreground text-center", children: t.title }),
|
|
10447
10453
|
t.description && /* @__PURE__ */ l("p", { className: "text-xs text-muted-foreground leading-4 text-center", children: t.description })
|
|
10448
10454
|
] }),
|
|
10449
|
-
a && /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-1", children:
|
|
10455
|
+
a && /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-1", children: Zh.map(({ Icon: _, label: b, score: x }) => {
|
|
10450
10456
|
const y = i === x, C = i !== null && !y;
|
|
10451
10457
|
return /* @__PURE__ */ l(
|
|
10452
10458
|
"button",
|
|
@@ -10561,7 +10567,7 @@ function Cl({
|
|
|
10561
10567
|
R === "full" ? "Switched to fullscreen mode" : R === "widget" ? "Switched to widget mode" : "Switched to mobile layout"
|
|
10562
10568
|
), oe.current = R;
|
|
10563
10569
|
}, [R]);
|
|
10564
|
-
const B = de(() =>
|
|
10570
|
+
const B = de(() => eh(b), [b]), { setIsMobile: P } = Q((M) => M), ue = !!S, he = async (M) => {
|
|
10565
10571
|
if (!(!u?.onSend || w)) {
|
|
10566
10572
|
T(!0);
|
|
10567
10573
|
try {
|
|
@@ -10574,7 +10580,7 @@ function Cl({
|
|
|
10574
10580
|
H(() => {
|
|
10575
10581
|
if (!I.current) return;
|
|
10576
10582
|
const M = R === "full" ? { ...B, headerTinted: !1 } : B;
|
|
10577
|
-
|
|
10583
|
+
_i(I.current, M), R === "full" && !B.backgroundImage ? (I.current.style.setProperty("--background", "0 0% 100%"), I.current.style.setProperty("--widget-bg-overlay", "transparent")) : (I.current.style.removeProperty("--background"), I.current.style.removeProperty("--widget-bg-overlay"), _i(I.current, B));
|
|
10578
10584
|
}, [B, R]), H(() => {
|
|
10579
10585
|
const M = () => {
|
|
10580
10586
|
const be = window?.innerWidth ?? 0, j = navigator?.userAgent?.toLowerCase() ?? "", we = be < 768 || /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(
|
|
@@ -10650,7 +10656,7 @@ function Cl({
|
|
|
10650
10656
|
};
|
|
10651
10657
|
}
|
|
10652
10658
|
}, [e, y]);
|
|
10653
|
-
const { position: X, elementRef: J } =
|
|
10659
|
+
const { position: X, elementRef: J } = Yu({
|
|
10654
10660
|
enabled: e && !y && !L
|
|
10655
10661
|
});
|
|
10656
10662
|
H(() => {
|
|
@@ -10834,7 +10840,7 @@ function Cl({
|
|
|
10834
10840
|
}
|
|
10835
10841
|
),
|
|
10836
10842
|
/* @__PURE__ */ l(
|
|
10837
|
-
|
|
10843
|
+
Bh,
|
|
10838
10844
|
{
|
|
10839
10845
|
isOpen: v,
|
|
10840
10846
|
onClose: () => N(!1),
|
|
@@ -10842,7 +10848,7 @@ function Cl({
|
|
|
10842
10848
|
}
|
|
10843
10849
|
),
|
|
10844
10850
|
x?.isOpen && /* @__PURE__ */ l(
|
|
10845
|
-
|
|
10851
|
+
Jh,
|
|
10846
10852
|
{
|
|
10847
10853
|
isOpen: x.isOpen,
|
|
10848
10854
|
config: x.config,
|
|
@@ -10864,8 +10870,8 @@ function Cl({
|
|
|
10864
10870
|
...!y && !L && {
|
|
10865
10871
|
cursor: e ? "grab" : "default"
|
|
10866
10872
|
}
|
|
10867
|
-
}, children: /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(
|
|
10868
|
-
|
|
10873
|
+
}, children: /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(ih, {}), children: /* @__PURE__ */ l(
|
|
10874
|
+
Th,
|
|
10869
10875
|
{
|
|
10870
10876
|
onClose: t,
|
|
10871
10877
|
showCloseButton: n,
|
|
@@ -10880,8 +10886,8 @@ function Cl({
|
|
|
10880
10886
|
}
|
|
10881
10887
|
) }) }),
|
|
10882
10888
|
(() => {
|
|
10883
|
-
const M = L && !!i, be = u && _ === O.VOICE_AGENT_STATE.IDLE ? /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(
|
|
10884
|
-
|
|
10889
|
+
const M = L && !!i, be = u && _ === O.VOICE_AGENT_STATE.IDLE ? /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(ah, {}), children: /* @__PURE__ */ l(
|
|
10890
|
+
$h,
|
|
10885
10891
|
{
|
|
10886
10892
|
value: u.value,
|
|
10887
10893
|
onChange: u.onChange,
|
|
@@ -10974,7 +10980,7 @@ function Cl({
|
|
|
10974
10980
|
return /* @__PURE__ */ l(pe, { children: [
|
|
10975
10981
|
/* @__PURE__ */ l("div", { className: "flex-1 min-h-0 overflow-hidden flex flex-col relative", children: [
|
|
10976
10982
|
Ie ?? a,
|
|
10977
|
-
/* @__PURE__ */ l(
|
|
10983
|
+
/* @__PURE__ */ l(Hh, {})
|
|
10978
10984
|
] }),
|
|
10979
10985
|
u && !M && /* @__PURE__ */ l(
|
|
10980
10986
|
"div",
|
|
@@ -11012,12 +11018,12 @@ function Cl({
|
|
|
11012
11018
|
}
|
|
11013
11019
|
);
|
|
11014
11020
|
}
|
|
11015
|
-
function
|
|
11021
|
+
function Qh() {
|
|
11016
11022
|
const e = (/* @__PURE__ */ new Date()).getHours();
|
|
11017
11023
|
return e >= 5 && e < 12 ? "Good morning. How are you feeling today?" : e >= 12 && e < 17 ? "Good afternoon. How are you feeling right now?" : e >= 17 && e < 21 ? "Good evening. How are you doing this evening?" : "Up late? I'm here whenever you need me.";
|
|
11018
11024
|
}
|
|
11019
|
-
const
|
|
11020
|
-
function
|
|
11025
|
+
const ef = 180;
|
|
11026
|
+
function tf({
|
|
11021
11027
|
description: e,
|
|
11022
11028
|
suggestions: t,
|
|
11023
11029
|
onSendMessage: n,
|
|
@@ -11035,7 +11041,7 @@ function ef({
|
|
|
11035
11041
|
};
|
|
11036
11042
|
return /* @__PURE__ */ l("div", { className: "flex-1 flex flex-col overflow-y-auto", children: /* @__PURE__ */ l("div", { className: "flex flex-col items-stretch gap-6 w-full max-w-2xl mx-auto my-auto px-4 py-6", children: [
|
|
11037
11043
|
/* @__PURE__ */ l("div", { className: "flex flex-col px-3 gap-2 items-start", children: [
|
|
11038
|
-
e && e?.trim?.()?.length <=
|
|
11044
|
+
e && e?.trim?.()?.length <= ef && /* @__PURE__ */ l(
|
|
11039
11045
|
"h2",
|
|
11040
11046
|
{
|
|
11041
11047
|
className: "text-text-primary",
|
|
@@ -11047,7 +11053,7 @@ function ef({
|
|
|
11047
11053
|
letterSpacing: "-0.025em",
|
|
11048
11054
|
margin: 0
|
|
11049
11055
|
},
|
|
11050
|
-
children:
|
|
11056
|
+
children: Qh()
|
|
11051
11057
|
}
|
|
11052
11058
|
),
|
|
11053
11059
|
e && /* @__PURE__ */ l(
|
|
@@ -11113,21 +11119,21 @@ function Tl() {
|
|
|
11113
11119
|
}
|
|
11114
11120
|
const xl = (e) => Object.fromEntries(
|
|
11115
11121
|
Object.entries(e).filter(([, t]) => t !== void 0)
|
|
11116
|
-
),
|
|
11122
|
+
), op = (e) => e ? e.split(" ").map((t) => t[0]).slice(0, 2).join("").toUpperCase() : "DR", sp = (e) => {
|
|
11117
11123
|
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" });
|
|
11118
11124
|
return { weekday: n, dayNum: r, month: o };
|
|
11119
|
-
},
|
|
11125
|
+
}, ip = (e) => {
|
|
11120
11126
|
const t = new Date(e);
|
|
11121
11127
|
return isNaN(t.getTime()) ? e : t.toLocaleDateString("en-GB", { day: "numeric", month: "long", year: "numeric" });
|
|
11122
|
-
},
|
|
11128
|
+
}, nf = (e, t) => {
|
|
11123
11129
|
const n = new Date(e);
|
|
11124
11130
|
return n.setUTCDate(n.getUTCDate() + t), n.toISOString().slice(0, 10);
|
|
11125
|
-
},
|
|
11131
|
+
}, rf = ({ prev: e = [], next: t = [], startDate: n, endDate: r, format: o }) => {
|
|
11126
11132
|
const s = o === O.SYNAPSE_TOOL_FORMATS?.DEFAULT;
|
|
11127
11133
|
if (!e.length && !t.length) {
|
|
11128
|
-
const i = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), c = n || i, d = n && r ?
|
|
11134
|
+
const i = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), c = n || i, d = n && r ? af(n, r) : s ? 31 : 3;
|
|
11129
11135
|
return Array.from({ length: d }, (f, h) => ({
|
|
11130
|
-
date:
|
|
11136
|
+
date: nf(c, h),
|
|
11131
11137
|
slots: []
|
|
11132
11138
|
}));
|
|
11133
11139
|
}
|
|
@@ -11148,7 +11154,7 @@ const xl = (e) => Object.fromEntries(
|
|
|
11148
11154
|
}
|
|
11149
11155
|
}
|
|
11150
11156
|
return a;
|
|
11151
|
-
},
|
|
11157
|
+
}, of = (e = [], t = [], n) => {
|
|
11152
11158
|
if (!e.length) return t;
|
|
11153
11159
|
if (!t.length) return e;
|
|
11154
11160
|
const r = e.map((o) => ({ ...o }));
|
|
@@ -11161,32 +11167,32 @@ const xl = (e) => Object.fromEntries(
|
|
|
11161
11167
|
r[s] = {
|
|
11162
11168
|
...a,
|
|
11163
11169
|
...xl(o),
|
|
11164
|
-
availability:
|
|
11170
|
+
availability: rf({ prev: a.availability ?? [], next: o.availability ?? [], startDate: i, endDate: c, format: n })
|
|
11165
11171
|
};
|
|
11166
11172
|
}
|
|
11167
11173
|
}
|
|
11168
11174
|
return r;
|
|
11169
|
-
},
|
|
11175
|
+
}, Ci = (e) => !!e && Array.isArray(e.doctors), sf = (e, t, n) => {
|
|
11170
11176
|
if (!e) return t;
|
|
11171
11177
|
if (!t) return e;
|
|
11172
11178
|
if (n !== O.SYNAPSE_COMPONENTS.DOCTOR_CARD) return t;
|
|
11173
|
-
if (!
|
|
11179
|
+
if (!Ci(e) || !Ci(t)) return e;
|
|
11174
11180
|
const r = e.format || t.format;
|
|
11175
11181
|
return {
|
|
11176
11182
|
...t,
|
|
11177
|
-
doctors:
|
|
11183
|
+
doctors: of(e.doctors, t.doctors, r),
|
|
11178
11184
|
doctor_details: {
|
|
11179
11185
|
...e.doctor_details || {},
|
|
11180
11186
|
...t.doctor_details || {}
|
|
11181
11187
|
}
|
|
11182
11188
|
};
|
|
11183
|
-
},
|
|
11189
|
+
}, af = (e, t) => {
|
|
11184
11190
|
const n = new Date(e), r = new Date(t), o = Math.round((r.getTime() - n.getTime()) / (1e3 * 60 * 60 * 24));
|
|
11185
11191
|
return o >= 0 ? o + 1 : 3;
|
|
11186
11192
|
}, It = (e) => {
|
|
11187
11193
|
const t = e;
|
|
11188
11194
|
return t?.message ? t.error?.msg || t.message : e instanceof Error ? e.message : "An unexpected error occurred";
|
|
11189
|
-
},
|
|
11195
|
+
}, lf = ({
|
|
11190
11196
|
environment: e,
|
|
11191
11197
|
connectionType: t,
|
|
11192
11198
|
baseUrl: n,
|
|
@@ -11194,7 +11200,7 @@ const xl = (e) => Object.fromEntries(
|
|
|
11194
11200
|
authToken: o
|
|
11195
11201
|
// onInlineText,
|
|
11196
11202
|
}) => {
|
|
11197
|
-
const [s, a] = U([]), i = W([]), [c, d] = U(!1), f = W(0), [h, u] = U(!1), [p, E] = U([]), g = W(null), S =
|
|
11203
|
+
const [s, a] = U([]), i = W([]), [c, d] = U(!1), f = W(0), [h, u] = U(!1), [p, E] = U([]), g = W(null), S = $u(), m = W(null), { isOnline: _ } = Tl(), b = W(!1), x = Q((A) => A.agentId), y = Q((A) => A.sessionId), C = Q((A) => A.isStreaming), w = Q((A) => A.isWaitingForResponse), T = Q((A) => A.initialMessage), v = Q((A) => A.userId), N = Q((A) => A.fileUploadPerSession), {
|
|
11198
11204
|
setSessionId: I,
|
|
11199
11205
|
setRefreshToken: R,
|
|
11200
11206
|
setSessToken: L,
|
|
@@ -11208,7 +11214,7 @@ const xl = (e) => Object.fromEntries(
|
|
|
11208
11214
|
setProgressMessage: X,
|
|
11209
11215
|
setRecordingStatus: J,
|
|
11210
11216
|
clearSession: K,
|
|
11211
|
-
|
|
11217
|
+
clearUser: ie,
|
|
11212
11218
|
addMessageToSession: M,
|
|
11213
11219
|
getMessagesForSession: be,
|
|
11214
11220
|
updateMessageInSession: j,
|
|
@@ -11413,7 +11419,7 @@ const xl = (e) => Object.fromEntries(
|
|
|
11413
11419
|
if (!k?.messageId || !k?.data || !k?.data?.details?.component || !k?.data?.tool_id)
|
|
11414
11420
|
return;
|
|
11415
11421
|
w && he(!1);
|
|
11416
|
-
const { messageId: D, data: Y } = k, se = Y.tool_id, re = `${D}::${se}`, Ee = Q.getState().elicitationState[re], $e = Y.details?.component, We = k?.data?.details?._meta?.tool_result, en = Y.details?.input, Ae =
|
|
11422
|
+
const { messageId: D, data: Y } = k, se = Y.tool_id, re = `${D}::${se}`, Ee = Q.getState().elicitationState[re], $e = Y.details?.component, We = k?.data?.details?._meta?.tool_result, en = Y.details?.input, Ae = sf(Ee?.ui_input, en, $e);
|
|
11417
11423
|
let qe = k.data.details?._meta?.disp_toast_msg;
|
|
11418
11424
|
const rt = Y?.details?._meta?.schema?.required || [];
|
|
11419
11425
|
switch (Y?.details?.status) {
|
|
@@ -11694,8 +11700,8 @@ const xl = (e) => Object.fromEntries(
|
|
|
11694
11700
|
} else Me.length === 1 && (Se[_e] = A);
|
|
11695
11701
|
return Se;
|
|
11696
11702
|
}, {}), Tt = te.mcp_meta_fields?.reduce((Se, _e) => (Me.includes(_e) ? Se[_e] = tt[_e] : te.server_input?.[_e] && (Se[_e] = te.server_input[_e]), re && !Se.is_resend && (Se.is_resend = re), Se), {}), xr = Object.keys(te.server_input || {})?.reduce((Se, _e) => {
|
|
11697
|
-
const rn = !Object.keys(Tt || {})?.includes(_e),
|
|
11698
|
-
return (re ? rn &&
|
|
11703
|
+
const rn = !Object.keys(Tt || {})?.includes(_e), Qo = !!te.server_input?.[_e];
|
|
11704
|
+
return (re ? rn && Qo : rn && te.required?.includes(_e) && Qo) && (Se[_e] = te.server_input?.[_e]), Se;
|
|
11699
11705
|
}, {}), Nr = re ? {} : (te.required || Me).reduce((Se, _e) => (Object.keys(Tt || {}).includes(_e) || (tt[_e] !== void 0 ? Se[_e] = tt[_e] : se && se[_e] !== void 0 && (Se[_e] = se[_e])), Se), {}), nn = {
|
|
11700
11706
|
...xr || {},
|
|
11701
11707
|
//existing inputs
|
|
@@ -11917,11 +11923,11 @@ const xl = (e) => Object.fromEntries(
|
|
|
11917
11923
|
}
|
|
11918
11924
|
}
|
|
11919
11925
|
};
|
|
11920
|
-
},
|
|
11921
|
-
function
|
|
11926
|
+
}, cf = 32, df = 100, uf = 320;
|
|
11927
|
+
function hf() {
|
|
11922
11928
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
11923
11929
|
}
|
|
11924
|
-
function
|
|
11930
|
+
function ff({
|
|
11925
11931
|
messageCount: e,
|
|
11926
11932
|
isStreaming: t,
|
|
11927
11933
|
isFirstMessage: n,
|
|
@@ -11930,7 +11936,7 @@ function hf({
|
|
|
11930
11936
|
const o = W(null), s = W(null), [a, i] = U(!1), c = W(null), d = W(!1), f = W("auto"), h = W(!0), u = ce(() => o.current?.querySelector(
|
|
11931
11937
|
"[data-radix-scroll-area-viewport]"
|
|
11932
11938
|
) || null, []), p = ce(
|
|
11933
|
-
(S) =>
|
|
11939
|
+
(S) => hf() ? "auto" : S,
|
|
11934
11940
|
[]
|
|
11935
11941
|
), E = ce(
|
|
11936
11942
|
(S) => {
|
|
@@ -11958,7 +11964,7 @@ function hf({
|
|
|
11958
11964
|
if (!e || !h.current) return;
|
|
11959
11965
|
const S = setTimeout(
|
|
11960
11966
|
() => g("auto"),
|
|
11961
|
-
|
|
11967
|
+
uf
|
|
11962
11968
|
);
|
|
11963
11969
|
return () => clearTimeout(S);
|
|
11964
11970
|
}, [r, e, g]), H(() => {
|
|
@@ -11972,7 +11978,7 @@ function hf({
|
|
|
11972
11978
|
}
|
|
11973
11979
|
const T = () => {
|
|
11974
11980
|
const { scrollTop: I, scrollHeight: R, clientHeight: L } = y;
|
|
11975
|
-
return R - I - L <=
|
|
11981
|
+
return R - I - L <= cf;
|
|
11976
11982
|
};
|
|
11977
11983
|
h.current = !0;
|
|
11978
11984
|
let v = 0;
|
|
@@ -11986,7 +11992,7 @@ function hf({
|
|
|
11986
11992
|
y.addEventListener("scroll", N, { passive: !0 }), _ = () => y.removeEventListener("scroll", N), m = new ResizeObserver(() => {
|
|
11987
11993
|
if (!h.current) return;
|
|
11988
11994
|
const I = Date.now();
|
|
11989
|
-
I - b <
|
|
11995
|
+
I - b < df || (b = I, v++, g("auto"));
|
|
11990
11996
|
}), m.observe(w);
|
|
11991
11997
|
};
|
|
11992
11998
|
return x(), () => {
|
|
@@ -12000,23 +12006,23 @@ function hf({
|
|
|
12000
12006
|
scheduleScrollToBottom: g
|
|
12001
12007
|
};
|
|
12002
12008
|
}
|
|
12003
|
-
const
|
|
12004
|
-
function
|
|
12009
|
+
const fo = "eka-medassist-agent-config";
|
|
12010
|
+
function mf(e) {
|
|
12005
12011
|
try {
|
|
12006
|
-
const t = localStorage.getItem(
|
|
12012
|
+
const t = localStorage.getItem(fo);
|
|
12007
12013
|
return (t ? JSON.parse(t) : {})[e]?.feedback_hidden === !0;
|
|
12008
12014
|
} catch {
|
|
12009
12015
|
return !1;
|
|
12010
12016
|
}
|
|
12011
12017
|
}
|
|
12012
|
-
function
|
|
12018
|
+
function pf(e) {
|
|
12013
12019
|
try {
|
|
12014
|
-
const t = localStorage.getItem(
|
|
12015
|
-
n[e] || (n[e] = {}), n[e].feedback_hidden = !0, localStorage.setItem(
|
|
12020
|
+
const t = localStorage.getItem(fo), n = t ? JSON.parse(t) : {};
|
|
12021
|
+
n[e] || (n[e] = {}), n[e].feedback_hidden = !0, localStorage.setItem(fo, JSON.stringify(n));
|
|
12016
12022
|
} catch {
|
|
12017
12023
|
}
|
|
12018
12024
|
}
|
|
12019
|
-
function
|
|
12025
|
+
function gf({ isOpen: e, agentId: t, config: n }) {
|
|
12020
12026
|
const {
|
|
12021
12027
|
state: r,
|
|
12022
12028
|
isMuted: o,
|
|
@@ -12024,7 +12030,7 @@ function pf({ isOpen: e, agentId: t, config: n }) {
|
|
|
12024
12030
|
disconnect: a,
|
|
12025
12031
|
reset: i,
|
|
12026
12032
|
toggleMute: c
|
|
12027
|
-
} =
|
|
12033
|
+
} = zu(), d = () => {
|
|
12028
12034
|
r === O.VOICE_AGENT_STATE.IDLE && s();
|
|
12029
12035
|
}, f = r !== O.VOICE_AGENT_STATE.IDLE, [h, u] = U(""), [p, E] = U(!1), g = Q((le) => le.setDisplayMode), [S, m] = U(
|
|
12030
12036
|
n.displayMode === "full" ? "full" : "widget"
|
|
@@ -12058,7 +12064,7 @@ function pf({ isOpen: e, agentId: t, config: n }) {
|
|
|
12058
12064
|
sendMessageFeedback: Ft,
|
|
12059
12065
|
clearElicitationState: lt,
|
|
12060
12066
|
sendSessionFeedback: Jt
|
|
12061
|
-
} =
|
|
12067
|
+
} = lf({
|
|
12062
12068
|
environment: n.environment,
|
|
12063
12069
|
connectionType: n.connectionType,
|
|
12064
12070
|
baseUrl: n.baseUrl ? n.baseUrl : void 0,
|
|
@@ -12066,21 +12072,21 @@ function pf({ isOpen: e, agentId: t, config: n }) {
|
|
|
12066
12072
|
...n?.authToken && { authToken: n.authToken }
|
|
12067
12073
|
});
|
|
12068
12074
|
H(() => {
|
|
12069
|
-
t && (R.current !== t && (Lu(t),
|
|
12075
|
+
t && (R.current !== t && (Lu(t), Fu(t), L(t), (n.displayMode === "full" || n.displayMode === "widget") && (g(n.displayMode), we(n.displayMode)), n?.context && Object.keys(n?.context || {}).length && ie(n.context), (n?.initialMessage?.text || n?.initialMessage?.suggestions?.length) && be(n.initialMessage), R.current = t), e && Ve && !w.current && (w.current = !0, Ne(!1)));
|
|
12070
12076
|
}, [e, Ve, t]), H(() => () => {
|
|
12071
12077
|
a();
|
|
12072
12078
|
}, []);
|
|
12073
12079
|
const vr = () => {
|
|
12074
|
-
n.feedback && !
|
|
12080
|
+
n.feedback && !mf(t) ? I(!0) : n.onClose();
|
|
12075
12081
|
}, Sr = async (le, ne) => {
|
|
12076
12082
|
await Jt(le, ne), I(!1), n.onClose();
|
|
12077
12083
|
}, Hn = () => {
|
|
12078
12084
|
I(!1), n.onClose();
|
|
12079
12085
|
}, Bn = () => {
|
|
12080
|
-
|
|
12086
|
+
pf(t), I(!1), n.onClose();
|
|
12081
12087
|
}, jn = () => {
|
|
12082
12088
|
I(!1);
|
|
12083
|
-
},
|
|
12089
|
+
}, Jo = ge.length > 0, wr = ge.length === 1, St = de(() => {
|
|
12084
12090
|
const le = ge[ge.length - 1], ne = le?.tool_keys?.[le.tool_keys.length - 1];
|
|
12085
12091
|
if (!ne) return null;
|
|
12086
12092
|
const Ce = Ie[ne];
|
|
@@ -12090,7 +12096,7 @@ function pf({ isOpen: e, agentId: t, config: n }) {
|
|
|
12090
12096
|
messagesEndRef: se,
|
|
12091
12097
|
showScrollButton: re,
|
|
12092
12098
|
scrollToBottom: ke
|
|
12093
|
-
} =
|
|
12099
|
+
} = ff({
|
|
12094
12100
|
messageCount: ge.length,
|
|
12095
12101
|
isStreaming: X,
|
|
12096
12102
|
isFirstMessage: wr,
|
|
@@ -12115,7 +12121,7 @@ function pf({ isOpen: e, agentId: t, config: n }) {
|
|
|
12115
12121
|
}
|
|
12116
12122
|
if (ne?.length > 0 && ne.reduce((Ce, te) => Ce + te.size, 0) > 10 * 1024 * 1024) {
|
|
12117
12123
|
J({
|
|
12118
|
-
title: `Total file size limit of ${
|
|
12124
|
+
title: `Total file size limit of ${qu} MB exceeded`,
|
|
12119
12125
|
description: "Please reduce the size of the files or try again with less files"
|
|
12120
12126
|
});
|
|
12121
12127
|
return;
|
|
@@ -12189,7 +12195,7 @@ function pf({ isOpen: e, agentId: t, config: n }) {
|
|
|
12189
12195
|
sessionId: K,
|
|
12190
12196
|
activeElicitation: St,
|
|
12191
12197
|
// Derived
|
|
12192
|
-
inConversation:
|
|
12198
|
+
inConversation: Jo,
|
|
12193
12199
|
isFirstMessage: wr,
|
|
12194
12200
|
isEmptyChat: k,
|
|
12195
12201
|
isAuthComponent: D,
|
|
@@ -12239,31 +12245,31 @@ function Ot() {
|
|
|
12239
12245
|
return e;
|
|
12240
12246
|
}, Ot.apply(this, arguments);
|
|
12241
12247
|
}
|
|
12242
|
-
const
|
|
12248
|
+
const _f = ["children", "options"], Ti = ["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" }), xi = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, bf = ["style", "script", "pre"], Ef = ["src", "href", "data", "formAction", "srcDoc", "action"], yf = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, vf = /\n{2,}$/, Ni = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Sf = /^ *> ?/gm, wf = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Cf = /^ {2,}\n/, Tf = /^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/, ki = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Ai = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, xf = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Nf = /^(?:\n *)*\n/, kf = /\r\n?/g, Af = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Rf = /^\[\^([^\]]+)]/, If = /\f/g, Mf = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Of = /^\s*?\[(x|\s)\]/, Ri = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Ii = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Mi = /^([^\n]+)\n *(=|-)\2{2,} *\n/, qr = /^ *(?!<[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, Oi = /^<!--[\s\S]*?(?:-->)/, Lf = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Kr = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Df = /^\{.*\}$/, Ff = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Uf = /^<([^ >]+[:@\/][^ >]+)>/, Vf = /-([a-z])?/gi, Pi = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, $f = /^[^\n]+(?: \n|\n{2,})/, zf = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, Hf = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, Bf = /^\[([^\]]*)\] ?\[([^\]]*)\]/, jf = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Gf = /\t/g, Wf = /(^ *\||\| *$)/g, qf = /^ *:-+: *$/, Kf = /^ *:-+ *$/, Yf = /^ *-+: *$/, Er = (e) => `(?=[\\s\\S]+?\\1${e ? "\\1" : ""})`, yr = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", Zf = RegExp(`^([*_])\\1${Er(1)}${yr}\\1\\1(?!\\1)`), Xf = RegExp(`^([*_])${Er(0)}${yr}\\1(?!\\1)`), Jf = RegExp(`^(==)${Er(0)}${yr}\\1`), Qf = RegExp(`^(~~)${Er(0)}${yr}\\1`), em = /^(:[a-zA-Z0-9-_]+:)/, tm = /^\\([^0-9A-Za-z\s])/, nm = /\\([^0-9A-Za-z\s])/g, rm = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/, om = /^\n+/, sm = /^([ \t]*)/, im = /(?:^|\n)( *)$/, Zo = "(?:\\d+\\.)", Xo = "(?:[*+-])";
|
|
12243
12249
|
function Nl(e) {
|
|
12244
|
-
return "( *)(" + (e === 1 ?
|
|
12250
|
+
return "( *)(" + (e === 1 ? Zo : Xo) + ") +";
|
|
12245
12251
|
}
|
|
12246
12252
|
const kl = Nl(1), Al = Nl(2);
|
|
12247
12253
|
function Rl(e) {
|
|
12248
12254
|
return RegExp("^" + (e === 1 ? kl : Al));
|
|
12249
12255
|
}
|
|
12250
|
-
const
|
|
12256
|
+
const am = Rl(1), lm = Rl(2);
|
|
12251
12257
|
function Il(e) {
|
|
12252
|
-
return RegExp("^" + (e === 1 ? kl : Al) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ?
|
|
12258
|
+
return RegExp("^" + (e === 1 ? kl : Al) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? Zo : Xo) + " )[^\\n]*)*(\\n|$)", "gm");
|
|
12253
12259
|
}
|
|
12254
|
-
const
|
|
12260
|
+
const cm = Il(1), dm = Il(2);
|
|
12255
12261
|
function Ml(e) {
|
|
12256
|
-
const t = e === 1 ?
|
|
12262
|
+
const t = e === 1 ? Zo : Xo;
|
|
12257
12263
|
return RegExp("^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)");
|
|
12258
12264
|
}
|
|
12259
12265
|
const Ol = Ml(1), Pl = Ml(2);
|
|
12260
|
-
function
|
|
12261
|
-
const n = t === 1, r = n ? Ol : Pl, o = n ?
|
|
12266
|
+
function Li(e, t) {
|
|
12267
|
+
const n = t === 1, r = n ? Ol : Pl, o = n ? cm : dm, s = n ? am : lm;
|
|
12262
12268
|
return { t: (a) => s.test(a), o: Kt(function(a, i) {
|
|
12263
|
-
const c =
|
|
12269
|
+
const c = im.exec(i.prevCapture);
|
|
12264
12270
|
return c && (i.list || !i.inline && !i.simple) ? r.exec(a = c[1] + a) : null;
|
|
12265
12271
|
}), i: 1, u(a, i, c) {
|
|
12266
|
-
const d = n ? +a[2] : void 0, f = a[0].replace(
|
|
12272
|
+
const d = n ? +a[2] : void 0, f = a[0].replace(vf, `
|
|
12267
12273
|
`).match(o);
|
|
12268
12274
|
let h = !1;
|
|
12269
12275
|
return { items: f.map(function(u, p) {
|
|
@@ -12283,8 +12289,8 @@ function Pi(e, t) {
|
|
|
12283
12289
|
return e("li", { key: f }, i(d, c));
|
|
12284
12290
|
})) };
|
|
12285
12291
|
}
|
|
12286
|
-
const
|
|
12287
|
-
function
|
|
12292
|
+
const um = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), hm = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;
|
|
12293
|
+
function Di(e) {
|
|
12288
12294
|
return typeof e == "string";
|
|
12289
12295
|
}
|
|
12290
12296
|
function On(e) {
|
|
@@ -12295,7 +12301,7 @@ function On(e) {
|
|
|
12295
12301
|
function or(e, t) {
|
|
12296
12302
|
return e.startsWith(t);
|
|
12297
12303
|
}
|
|
12298
|
-
function
|
|
12304
|
+
function fm(e, t, n) {
|
|
12299
12305
|
if (Array.isArray(n)) {
|
|
12300
12306
|
for (let r = 0; r < n.length; r++) if (or(e, n[r])) return !0;
|
|
12301
12307
|
return !1;
|
|
@@ -12305,10 +12311,10 @@ function hm(e, t, n) {
|
|
|
12305
12311
|
function An(e) {
|
|
12306
12312
|
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();
|
|
12307
12313
|
}
|
|
12308
|
-
function
|
|
12309
|
-
return
|
|
12314
|
+
function mm(e) {
|
|
12315
|
+
return Yf.test(e) ? "right" : qf.test(e) ? "center" : Kf.test(e) ? "left" : null;
|
|
12310
12316
|
}
|
|
12311
|
-
function
|
|
12317
|
+
function Fi(e, t, n, r) {
|
|
12312
12318
|
const o = n.inTable;
|
|
12313
12319
|
n.inTable = !0;
|
|
12314
12320
|
let s = [[]], a = "";
|
|
@@ -12321,17 +12327,17 @@ function Di(e, t, n, r) {
|
|
|
12321
12327
|
c.trim() === "|" && (i(), r) ? d !== 0 && d !== f.length - 1 && s.push([]) : a += c;
|
|
12322
12328
|
}), i(), n.inTable = o, s;
|
|
12323
12329
|
}
|
|
12324
|
-
function
|
|
12330
|
+
function pm(e, t, n) {
|
|
12325
12331
|
n.inline = !0;
|
|
12326
|
-
const r = e[2] ? e[2].replace(
|
|
12332
|
+
const r = e[2] ? e[2].replace(Wf, "").split("|").map(mm) : [], o = e[3] ? (function(a, i, c) {
|
|
12327
12333
|
return a.trim().split(`
|
|
12328
12334
|
`).map(function(d) {
|
|
12329
|
-
return
|
|
12335
|
+
return Fi(d, i, c, !0);
|
|
12330
12336
|
});
|
|
12331
|
-
})(e[3], t, n) : [], s =
|
|
12337
|
+
})(e[3], t, n) : [], s = Fi(e[1], t, n, !!o.length);
|
|
12332
12338
|
return n.inline = !1, o.length ? { align: r, cells: o, header: s, type: "25" } : { children: s, type: "21" };
|
|
12333
12339
|
}
|
|
12334
|
-
function
|
|
12340
|
+
function Ui(e, t) {
|
|
12335
12341
|
return e.align[t] == null ? {} : { textAlign: e.align[t] };
|
|
12336
12342
|
}
|
|
12337
12343
|
function Kt(e) {
|
|
@@ -12357,18 +12363,18 @@ function er(e) {
|
|
|
12357
12363
|
return e.exec(t);
|
|
12358
12364
|
});
|
|
12359
12365
|
}
|
|
12360
|
-
const
|
|
12361
|
-
function
|
|
12366
|
+
const gm = /(javascript|vbscript|data(?!:image)):/i;
|
|
12367
|
+
function _m(e) {
|
|
12362
12368
|
try {
|
|
12363
12369
|
const t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "");
|
|
12364
|
-
if (
|
|
12370
|
+
if (gm.test(t)) return null;
|
|
12365
12371
|
} catch {
|
|
12366
12372
|
return null;
|
|
12367
12373
|
}
|
|
12368
12374
|
return e;
|
|
12369
12375
|
}
|
|
12370
12376
|
function st(e) {
|
|
12371
|
-
return e && e.replace(
|
|
12377
|
+
return e && e.replace(nm, "$1");
|
|
12372
12378
|
}
|
|
12373
12379
|
function sr(e, t, n) {
|
|
12374
12380
|
const r = n.inline || !1, o = n.simple || !1;
|
|
@@ -12376,13 +12382,13 @@ function sr(e, t, n) {
|
|
|
12376
12382
|
const s = e(t, n);
|
|
12377
12383
|
return n.inline = r, n.simple = o, s;
|
|
12378
12384
|
}
|
|
12379
|
-
function
|
|
12385
|
+
function bm(e, t, n) {
|
|
12380
12386
|
const r = n.inline || !1, o = n.simple || !1;
|
|
12381
12387
|
n.inline = !1, n.simple = !0;
|
|
12382
12388
|
const s = e(t, n);
|
|
12383
12389
|
return n.inline = r, n.simple = o, s;
|
|
12384
12390
|
}
|
|
12385
|
-
function
|
|
12391
|
+
function Em(e, t, n) {
|
|
12386
12392
|
const r = n.inline || !1;
|
|
12387
12393
|
n.inline = !1;
|
|
12388
12394
|
const o = e(t, n);
|
|
@@ -12395,7 +12401,7 @@ function Zr() {
|
|
|
12395
12401
|
function Xr() {
|
|
12396
12402
|
return null;
|
|
12397
12403
|
}
|
|
12398
|
-
function
|
|
12404
|
+
function ym(...e) {
|
|
12399
12405
|
return e.filter(Boolean).join(" ");
|
|
12400
12406
|
}
|
|
12401
12407
|
function Jr(e, t, n) {
|
|
@@ -12404,9 +12410,9 @@ function Jr(e, t, n) {
|
|
|
12404
12410
|
for (; o.length && (r = r[o[0]], r !== void 0); ) o.shift();
|
|
12405
12411
|
return r || n;
|
|
12406
12412
|
}
|
|
12407
|
-
function
|
|
12408
|
-
t.overrides = t.overrides || {}, t.namedCodesToUnicode = t.namedCodesToUnicode ? Ot({},
|
|
12409
|
-
const n = t.slugify || An, r = t.sanitizer ||
|
|
12413
|
+
function vm(e = "", t = {}) {
|
|
12414
|
+
t.overrides = t.overrides || {}, t.namedCodesToUnicode = t.namedCodesToUnicode ? Ot({}, xi, t.namedCodesToUnicode) : xi;
|
|
12415
|
+
const n = t.slugify || An, r = t.sanitizer || _m, o = t.createElement || ze, s = [Ni, ki, Ai, t.enforceAtxHeadings ? Ii : Ri, Mi, Pi, Ol, Pl], a = [...s, $f, qr, Oi, Kr];
|
|
12410
12416
|
function i(m, _) {
|
|
12411
12417
|
for (let b = 0; b < m.length; b++) if (m[b].test(_)) return !0;
|
|
12412
12418
|
return !1;
|
|
@@ -12416,16 +12422,16 @@ function ym(e = "", t = {}) {
|
|
|
12416
12422
|
return o((function(y, C) {
|
|
12417
12423
|
const w = Jr(C, y);
|
|
12418
12424
|
return w ? typeof w == "function" || typeof w == "object" && "render" in w ? w : Jr(C, y + ".component", y) : y;
|
|
12419
|
-
})(m, t.overrides), Ot({}, _, x, { className:
|
|
12425
|
+
})(m, t.overrides), Ot({}, _, x, { className: ym(_?.className, x.className) || void 0 }), ...b);
|
|
12420
12426
|
}
|
|
12421
12427
|
function d(m) {
|
|
12422
|
-
m = m.replace(
|
|
12428
|
+
m = m.replace(Mf, "");
|
|
12423
12429
|
let _ = !1;
|
|
12424
|
-
t.forceInline ? _ = !0 : t.forceBlock || (_ =
|
|
12425
|
-
const b = g(E(_ ? m : On(m).replace(
|
|
12430
|
+
t.forceInline ? _ = !0 : t.forceBlock || (_ = jf.test(m) === !1);
|
|
12431
|
+
const b = g(E(_ ? m : On(m).replace(om, "") + `
|
|
12426
12432
|
|
|
12427
12433
|
`, { inline: _ }));
|
|
12428
|
-
for (;
|
|
12434
|
+
for (; Di(b[b.length - 1]) && !b[b.length - 1].trim(); ) b.pop();
|
|
12429
12435
|
if (t.wrapper === null) return b;
|
|
12430
12436
|
const x = t.wrapper || (_ ? "span" : "div");
|
|
12431
12437
|
let y;
|
|
@@ -12438,18 +12444,18 @@ function ym(e = "", t = {}) {
|
|
|
12438
12444
|
}
|
|
12439
12445
|
function f(m, _) {
|
|
12440
12446
|
if (!_ || !_.trim()) return null;
|
|
12441
|
-
const b = _.match(
|
|
12447
|
+
const b = _.match(yf);
|
|
12442
12448
|
return b ? b.reduce(function(x, y) {
|
|
12443
12449
|
const C = y.indexOf("=");
|
|
12444
12450
|
if (C !== -1) {
|
|
12445
12451
|
const w = (function(I) {
|
|
12446
|
-
return I.indexOf("-") !== -1 && I.match(
|
|
12452
|
+
return I.indexOf("-") !== -1 && I.match(Lf) === null && (I = I.replace(Vf, function(R, L) {
|
|
12447
12453
|
return L.toUpperCase();
|
|
12448
12454
|
})), I;
|
|
12449
12455
|
})(y.slice(0, C)).trim(), T = (function(I) {
|
|
12450
12456
|
const R = I[0];
|
|
12451
12457
|
return (R === '"' || R === "'") && I.length >= 2 && I[I.length - 1] === R ? I.slice(1, -1) : I;
|
|
12452
|
-
})(y.slice(C + 1).trim()), v =
|
|
12458
|
+
})(y.slice(C + 1).trim()), v = Ti[w] || w;
|
|
12453
12459
|
if (v === "ref") return x;
|
|
12454
12460
|
const N = x[v] = (function(I, R, L, oe) {
|
|
12455
12461
|
return R === "style" ? (function(z) {
|
|
@@ -12482,25 +12488,25 @@ function ym(e = "", t = {}) {
|
|
|
12482
12488
|
return G;
|
|
12483
12489
|
})(L).reduce(function(z, [G, B]) {
|
|
12484
12490
|
return z[G.replace(/(-[a-z])/g, (P) => P[1].toUpperCase())] = oe(B, I, G), z;
|
|
12485
|
-
}, {}) :
|
|
12491
|
+
}, {}) : Ef.indexOf(R) !== -1 ? oe(st(L), I, R) : (L.match(Df) && (L = st(L.slice(1, L.length - 1))), L === "true" || L !== "false" && L);
|
|
12486
12492
|
})(m, w, T, r);
|
|
12487
12493
|
typeof N == "string" && (qr.test(N) || Kr.test(N)) && (x[v] = d(N.trim()));
|
|
12488
|
-
} else y !== "style" && (x[
|
|
12494
|
+
} else y !== "style" && (x[Ti[y] || y] = !0);
|
|
12489
12495
|
return x;
|
|
12490
12496
|
}, {}) : null;
|
|
12491
12497
|
}
|
|
12492
|
-
const h = [], u = {}, p = { 0: { t: [">"], o: dt(
|
|
12493
|
-
const [, x, y] = m[0].replace(
|
|
12498
|
+
const h = [], u = {}, p = { 0: { t: [">"], o: dt(Ni), i: 1, u(m, _, b) {
|
|
12499
|
+
const [, x, y] = m[0].replace(Sf, "").match(wf);
|
|
12494
12500
|
return { alert: x, children: _(y, b) };
|
|
12495
12501
|
}, l(m, _, b) {
|
|
12496
12502
|
const x = { key: b.key };
|
|
12497
12503
|
return m.alert && (x.className = "markdown-alert-" + n(m.alert.toLowerCase(), An), m.children.unshift({ attrs: {}, children: [{ type: "27", text: m.alert }], noInnerParse: !0, type: "11", tag: "header" })), c("blockquote", x, _(m.children, b));
|
|
12498
|
-
} }, 1: { t: [" "], o: er(
|
|
12504
|
+
} }, 1: { t: [" "], o: er(Cf), i: 1, u: Zr, l: (m, _, b) => c("br", { key: b.key }) }, 2: { t: ["--", "__", "**", "- ", "* ", "_ "], o: dt(Tf), i: 1, u: Zr, l: (m, _, b) => c("hr", { key: b.key }) }, 3: { t: [" "], o: dt(Ai), i: 0, u: (m) => ({ lang: void 0, text: st(On(m[0].replace(/^ {4}/gm, ""))) }), l: (m, _, b) => c("pre", { key: b.key }, c("code", Ot({}, m.attrs, { className: m.lang ? "lang-" + m.lang : "" }), m.text)) }, 4: { t: ["```", "~~~"], o: dt(ki), i: 0, u: (m) => ({ attrs: f("code", m[3] || ""), lang: m[2] || void 0, text: m[4], type: "3" }) }, 5: { t: ["`"], o: _t(xf), i: 3, u: (m) => ({ text: st(m[2]) }), l: (m, _, b) => c("code", { key: b.key }, m.text) }, 6: { t: ["[^"], o: dt(Af), i: 0, u: (m) => (h.push({ footnote: m[2], identifier: m[1] }), {}), l: Xr }, 7: { t: ["[^"], o: Mt(Rf), i: 1, u: (m) => ({ target: "#" + n(m[1], An), text: m[1] }), l: (m, _, b) => c("a", { key: b.key, href: r(m.target, "a", "href") }, c("sup", { key: b.key }, m.text)) }, 8: { t: ["[ ]", "[x]"], o: Mt(Of), i: 1, u: (m) => ({ completed: m[1].toLowerCase() === "x" }), l: (m, _, b) => c("input", { checked: m.completed, key: b.key, readOnly: !0, type: "checkbox" }) }, 9: { t: ["#"], o: dt(t.enforceAtxHeadings ? Ii : Ri), i: 1, u: (m, _, b) => ({ children: sr(_, m[2], b), id: n(m[2], An), level: m[1].length }), l: (m, _, b) => c("h" + m.level, { id: m.id, key: b.key }, _(m.children, b)) }, 10: { t: (m) => {
|
|
12499
12505
|
const _ = m.indexOf(`
|
|
12500
12506
|
`);
|
|
12501
12507
|
return _ > 0 && _ < m.length - 1 && (m[_ + 1] === "=" || m[_ + 1] === "-");
|
|
12502
|
-
}, o: dt(
|
|
12503
|
-
const [, x] = m[3].match(
|
|
12508
|
+
}, o: dt(Mi), i: 1, u: (m, _, b) => ({ children: sr(_, m[1], b), level: m[2] === "=" ? 1 : 2, type: "9" }) }, 11: { t: ["<"], o: er(qr), i: 1, u(m, _, b) {
|
|
12509
|
+
const [, x] = m[3].match(sm), y = RegExp("^" + x, "gm"), C = m[3].replace(y, ""), w = i(a, C) ? Em : sr, T = m[1].toLowerCase(), v = bf.indexOf(T) !== -1, N = (v ? T : m[1]).trim(), I = { attrs: f(N, m[2]), noInnerParse: v, tag: N };
|
|
12504
12510
|
if (b.inAnchor = b.inAnchor || T === "a", v) I.text = m[3];
|
|
12505
12511
|
else {
|
|
12506
12512
|
const R = b.inHTML;
|
|
@@ -12510,11 +12516,11 @@ function ym(e = "", t = {}) {
|
|
|
12510
12516
|
}, l: (m, _, b) => c(m.tag, Ot({ key: b.key }, m.attrs), m.text || (m.children ? _(m.children, b) : "")) }, 13: { t: ["<"], o: er(Kr), i: 1, u(m) {
|
|
12511
12517
|
const _ = m[1].trim();
|
|
12512
12518
|
return { attrs: f(_, m[2] || ""), tag: _ };
|
|
12513
|
-
}, l: (m, _, b) => c(m.tag, Ot({}, m.attrs, { key: b.key })) }, 12: { t: ["<!--"], o: er(
|
|
12519
|
+
}, l: (m, _, b) => c(m.tag, Ot({}, m.attrs, { key: b.key })) }, 12: { t: ["<!--"], o: er(Oi), i: 1, u: () => ({}), l: Xr }, 14: { t: ["!["], o: _t(hm), i: 1, u: (m) => ({ alt: st(m[1]), target: st(m[2]), title: st(m[3]) }), l: (m, _, b) => c("img", { key: b.key, alt: m.alt || void 0, title: m.title || void 0, src: r(m.target, "img", "src") }) }, 15: { t: ["["], o: Mt(um), i: 3, u: (m, _, b) => ({ children: bm(_, m[1], b), target: st(m[2]), title: st(m[3]) }), l: (m, _, b) => c("a", { key: b.key, href: r(m.target, "a", "href"), title: m.title }, _(m.children, b)) }, 16: { t: ["<"], o: Mt(Uf), i: 0, u(m) {
|
|
12514
12520
|
let _ = m[1], b = !1;
|
|
12515
12521
|
return _.indexOf("@") !== -1 && _.indexOf("//") === -1 && (b = !0, _ = _.replace("mailto:", "")), { children: [{ text: _, type: "27" }], target: b ? "mailto:" + _ : _, type: "15" };
|
|
12516
|
-
} }, 17: { t: (m, _) => !_.inAnchor && !t.disableAutoLink && (or(m, "http://") || or(m, "https://")), o: Mt(
|
|
12517
|
-
`], o: dt(
|
|
12522
|
+
} }, 17: { t: (m, _) => !_.inAnchor && !t.disableAutoLink && (or(m, "http://") || or(m, "https://")), o: Mt(Ff), i: 0, u: (m) => ({ children: [{ text: m[1], type: "27" }], target: m[1], title: void 0, type: "15" }) }, 20: Li(c, 1), 33: Li(c, 2), 19: { t: [`
|
|
12523
|
+
`], o: dt(Nf), i: 3, u: Zr, l: () => `
|
|
12518
12524
|
` }, 21: { o: Kt(function(m, _) {
|
|
12519
12525
|
if (_.inline || _.simple || _.inHTML && m.indexOf(`
|
|
12520
12526
|
|
|
@@ -12530,25 +12536,25 @@ function ym(e = "", t = {}) {
|
|
|
12530
12536
|
}
|
|
12531
12537
|
const y = On(b);
|
|
12532
12538
|
return y === "" ? null : [b, , y];
|
|
12533
|
-
}), i: 3, u: Yr, l: (m, _, b) => c("p", { key: b.key }, _(m.children, b)) }, 22: { t: ["["], o: Mt(
|
|
12539
|
+
}), i: 3, u: Yr, l: (m, _, b) => c("p", { key: b.key }, _(m.children, b)) }, 22: { t: ["["], o: Mt(zf), i: 0, u: (m) => (u[m[1]] = { target: m[2], title: m[4] }, {}), l: Xr }, 23: { t: ["!["], o: _t(Hf), i: 0, u: (m) => ({ alt: m[1] ? st(m[1]) : void 0, ref: m[2] }), l: (m, _, b) => u[m.ref] ? c("img", { key: b.key, alt: m.alt, src: r(u[m.ref].target, "img", "src"), title: u[m.ref].title }) : null }, 24: { t: (m) => m[0] === "[" && m.indexOf("](") === -1, o: Mt(Bf), i: 0, u: (m, _, b) => ({ children: _(m[1], b), fallbackChildren: m[0], ref: m[2] }), l: (m, _, b) => u[m.ref] ? c("a", { key: b.key, href: r(u[m.ref].target, "a", "href"), title: u[m.ref].title }, _(m.children, b)) : c("span", { key: b.key }, m.fallbackChildren) }, 25: { t: ["|"], o: dt(Pi), i: 1, u: pm, l(m, _, b) {
|
|
12534
12540
|
const x = m;
|
|
12535
12541
|
return c("table", { key: b.key }, c("thead", null, c("tr", null, x.header.map(function(y, C) {
|
|
12536
|
-
return c("th", { key: C, style:
|
|
12542
|
+
return c("th", { key: C, style: Ui(x, C) }, _(y, b));
|
|
12537
12543
|
}))), c("tbody", null, x.cells.map(function(y, C) {
|
|
12538
12544
|
return c("tr", { key: C }, y.map(function(w, T) {
|
|
12539
|
-
return c("td", { key: T, style:
|
|
12545
|
+
return c("td", { key: T, style: Ui(x, T) }, _(w, b));
|
|
12540
12546
|
}));
|
|
12541
12547
|
})));
|
|
12542
12548
|
} }, 27: { o: Kt(function(m, _) {
|
|
12543
12549
|
let b;
|
|
12544
|
-
return or(m, ":") && (b =
|
|
12550
|
+
return or(m, ":") && (b = em.exec(m)), b || rm.exec(m);
|
|
12545
12551
|
}), i: 4, u(m) {
|
|
12546
12552
|
const _ = m[0];
|
|
12547
|
-
return { text: _.indexOf("&") === -1 ? _ : _.replace(
|
|
12548
|
-
}, l: (m) => m.text }, 28: { t: ["**", "__"], o: _t(
|
|
12553
|
+
return { text: _.indexOf("&") === -1 ? _ : _.replace(Pf, (b, x) => t.namedCodesToUnicode[x] || b) };
|
|
12554
|
+
}, l: (m) => m.text }, 28: { t: ["**", "__"], o: _t(Zf), i: 2, u: (m, _, b) => ({ children: _(m[2], b) }), l: (m, _, b) => c("strong", { key: b.key }, _(m.children, b)) }, 29: { t: (m) => {
|
|
12549
12555
|
const _ = m[0];
|
|
12550
12556
|
return (_ === "*" || _ === "_") && m[1] !== _;
|
|
12551
|
-
}, o: _t(
|
|
12557
|
+
}, o: _t(Xf), i: 3, u: (m, _, b) => ({ children: _(m[2], b) }), l: (m, _, b) => c("em", { key: b.key }, _(m.children, b)) }, 30: { t: ["\\"], o: _t(tm), i: 1, u: (m) => ({ text: m[1], type: "27" }) }, 31: { t: ["=="], o: _t(Jf), i: 3, u: Yr, l: (m, _, b) => c("mark", { key: b.key }, _(m.children, b)) }, 32: { t: ["~~"], o: _t(Qf), i: 3, u: Yr, l: (m, _, b) => c("del", { key: b.key }, _(m.children, b)) } };
|
|
12552
12558
|
t.disableParsingRawHTML === !0 && (delete p[11], delete p[13]);
|
|
12553
12559
|
const E = (function(m) {
|
|
12554
12560
|
var _ = Object.keys(m);
|
|
@@ -12556,7 +12562,7 @@ function ym(e = "", t = {}) {
|
|
|
12556
12562
|
var C = [];
|
|
12557
12563
|
if (y.prevCapture = y.prevCapture || "", x.trim()) for (; x; ) for (var w = 0; w < _.length; ) {
|
|
12558
12564
|
var T = _[w], v = m[T];
|
|
12559
|
-
if (!v.t ||
|
|
12565
|
+
if (!v.t || fm(x, y, v.t)) {
|
|
12560
12566
|
var N = v.o(x, y);
|
|
12561
12567
|
if (N && N[0]) {
|
|
12562
12568
|
x = x.substring(N[0].length);
|
|
@@ -12573,8 +12579,8 @@ function ym(e = "", t = {}) {
|
|
|
12573
12579
|
return m[x].i - m[y].i || (x < y ? -1 : 1);
|
|
12574
12580
|
}), function(x, y) {
|
|
12575
12581
|
return b((function(C) {
|
|
12576
|
-
return C.replace(
|
|
12577
|
-
`).replace(
|
|
12582
|
+
return C.replace(kf, `
|
|
12583
|
+
`).replace(If, "").replace(Gf, " ");
|
|
12578
12584
|
})(x), y);
|
|
12579
12585
|
};
|
|
12580
12586
|
})(p), g = /* @__PURE__ */ (function(m, _) {
|
|
@@ -12584,7 +12590,7 @@ function ym(e = "", t = {}) {
|
|
|
12584
12590
|
let T = !1;
|
|
12585
12591
|
for (let v = 0; v < x.length; v++) {
|
|
12586
12592
|
y.key = v;
|
|
12587
|
-
const N = b(x[v], y), I =
|
|
12593
|
+
const N = b(x[v], y), I = Di(N);
|
|
12588
12594
|
I && T ? w[w.length - 1] += N : N !== null && w.push(N), T = I;
|
|
12589
12595
|
}
|
|
12590
12596
|
return y.key = C, w;
|
|
@@ -12599,32 +12605,32 @@ function ym(e = "", t = {}) {
|
|
|
12599
12605
|
return c("div", { id: n(m.identifier, An), key: m.identifier }, m.identifier, g(E(m.footnote, { inline: !0 })));
|
|
12600
12606
|
}))) : S;
|
|
12601
12607
|
}
|
|
12602
|
-
const
|
|
12608
|
+
const Sm = (e) => {
|
|
12603
12609
|
let { children: t, options: n } = e, r = (function(o, s) {
|
|
12604
12610
|
if (o == null) return {};
|
|
12605
12611
|
var a, i, c = {}, d = Object.keys(o);
|
|
12606
12612
|
for (i = 0; i < d.length; i++) s.indexOf(a = d[i]) >= 0 || (c[a] = o[a]);
|
|
12607
12613
|
return c;
|
|
12608
|
-
})(e,
|
|
12609
|
-
return vt(
|
|
12610
|
-
},
|
|
12614
|
+
})(e, _f);
|
|
12615
|
+
return vt(vm(t ?? "", n), r);
|
|
12616
|
+
}, wm = {
|
|
12611
12617
|
disableParsingRawHTML: !0,
|
|
12612
12618
|
forceBlock: !0
|
|
12613
12619
|
};
|
|
12614
|
-
function
|
|
12615
|
-
return /* @__PURE__ */ l(
|
|
12620
|
+
function mo({ children: e }) {
|
|
12621
|
+
return /* @__PURE__ */ l(Sm, { options: wm, children: e });
|
|
12616
12622
|
}
|
|
12617
|
-
const
|
|
12618
|
-
() => Promise.resolve().then(() =>
|
|
12619
|
-
), Cm = He(
|
|
12620
|
-
() => import("./medassist-widget-MultiSelect-BnExX-Ty.js").then((e) => ({ default: e.MultiSelectGroup }))
|
|
12623
|
+
const Cm = He(
|
|
12624
|
+
() => Promise.resolve().then(() => Mm).then((e) => ({ default: e.Pills }))
|
|
12621
12625
|
), Tm = He(
|
|
12622
|
-
() => import("./medassist-widget-
|
|
12626
|
+
() => import("./medassist-widget-MultiSelect-BnExX-Ty.js").then((e) => ({ default: e.MultiSelectGroup }))
|
|
12623
12627
|
), xm = He(
|
|
12624
|
-
() => import("./medassist-widget-
|
|
12628
|
+
() => import("./medassist-widget-FocusCarousel-C8sm1Tm0.js").then((e) => ({ default: e.FocusCarousel }))
|
|
12625
12629
|
), Nm = He(
|
|
12626
|
-
() => import("./medassist-widget-
|
|
12630
|
+
() => import("./medassist-widget-DoctorCard-Cn_E83qL.js").then((e) => ({ default: e.DoctorCard }))
|
|
12627
12631
|
), km = He(
|
|
12632
|
+
() => import("./medassist-widget-CardList-Dx2bzaVC.js").then((e) => ({ default: e.CardList }))
|
|
12633
|
+
), Am = He(
|
|
12628
12634
|
() => import("./medassist-widget-MediaCard-yhz2Z0ZQ.js").then((e) => ({ default: e.MediaCard }))
|
|
12629
12635
|
);
|
|
12630
12636
|
function Oe({ className: e }) {
|
|
@@ -12706,7 +12712,7 @@ function zt({ variant: e }) {
|
|
|
12706
12712
|
function tr() {
|
|
12707
12713
|
return /* @__PURE__ */ l("style", { children: "@keyframes shimmer { 100% { transform: translateX(100%); } }" });
|
|
12708
12714
|
}
|
|
12709
|
-
function
|
|
12715
|
+
function Rm({
|
|
12710
12716
|
messageId: e,
|
|
12711
12717
|
tool_key: t,
|
|
12712
12718
|
entry: n,
|
|
@@ -12769,7 +12775,7 @@ function Am({
|
|
|
12769
12775
|
return /* @__PURE__ */ l("div", { className: "flex justify-end", children: [
|
|
12770
12776
|
C && /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(zt, { variant: "pill" }), children: /* @__PURE__ */ l("div", { className: `flex ${C.length > 3 ? "flex-col" : "flex-wrap"} gap-2 mt-3`, children: [
|
|
12771
12777
|
C.slice(0, h).map((v, N) => /* @__PURE__ */ l(
|
|
12772
|
-
|
|
12778
|
+
Cm,
|
|
12773
12779
|
{
|
|
12774
12780
|
disabled: E || o || d,
|
|
12775
12781
|
text: v?.label || "",
|
|
@@ -12791,7 +12797,7 @@ function Am({
|
|
|
12791
12797
|
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
12792
12798
|
),
|
|
12793
12799
|
children: [
|
|
12794
|
-
/* @__PURE__ */ l(
|
|
12800
|
+
/* @__PURE__ */ l(jo, { className: "w-3.5 h-3.5" }),
|
|
12795
12801
|
"Show ",
|
|
12796
12802
|
Math.min(5, C.length - h),
|
|
12797
12803
|
" more"
|
|
@@ -12802,7 +12808,7 @@ function Am({
|
|
|
12802
12808
|
p === O.SYNAPSE_COMPONENTS.MULTI && g?.options && /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(zt, { variant: "input" }), children: /* @__PURE__ */ l("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: [
|
|
12803
12809
|
/* @__PURE__ */ l("h3", { className: "text-xs font-medium text-muted-foreground mb-2", children: "Select multiple options:" }),
|
|
12804
12810
|
/* @__PURE__ */ l(
|
|
12805
|
-
|
|
12811
|
+
Tm,
|
|
12806
12812
|
{
|
|
12807
12813
|
options: x(),
|
|
12808
12814
|
selectedValues: s,
|
|
@@ -12826,7 +12832,7 @@ function Am({
|
|
|
12826
12832
|
)
|
|
12827
12833
|
] }) }),
|
|
12828
12834
|
y && y.length > 0 ? /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(zt, { variant: "card" }), children: /* @__PURE__ */ l(
|
|
12829
|
-
|
|
12835
|
+
xm,
|
|
12830
12836
|
{
|
|
12831
12837
|
count: y.length > 1 ? y.length + 1 : y.length,
|
|
12832
12838
|
renderItem: (v, N) => {
|
|
@@ -12859,7 +12865,7 @@ function Am({
|
|
|
12859
12865
|
);
|
|
12860
12866
|
const I = y[v];
|
|
12861
12867
|
return /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(zt, { variant: "card" }), children: /* @__PURE__ */ l(
|
|
12862
|
-
|
|
12868
|
+
Nm,
|
|
12863
12869
|
{
|
|
12864
12870
|
doctor: I,
|
|
12865
12871
|
doctorDetails: i?.[I.doctor_id],
|
|
@@ -12872,7 +12878,7 @@ function Am({
|
|
|
12872
12878
|
}
|
|
12873
12879
|
) }) : null,
|
|
12874
12880
|
w && /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(zt, { variant: "card" }), children: /* @__PURE__ */ l(
|
|
12875
|
-
|
|
12881
|
+
km,
|
|
12876
12882
|
{
|
|
12877
12883
|
cards: w,
|
|
12878
12884
|
onSelect: async (v) => {
|
|
@@ -12887,10 +12893,10 @@ function Am({
|
|
|
12887
12893
|
disabled: E || o
|
|
12888
12894
|
}
|
|
12889
12895
|
) }),
|
|
12890
|
-
T && /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(zt, { variant: "media" }), children: /* @__PURE__ */ l("div", { className: "mt-3", children: /* @__PURE__ */ l(
|
|
12896
|
+
T && /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(zt, { variant: "media" }), children: /* @__PURE__ */ l("div", { className: "mt-3", children: /* @__PURE__ */ l(Am, { card: T }) }) })
|
|
12891
12897
|
] });
|
|
12892
12898
|
}
|
|
12893
|
-
function
|
|
12899
|
+
function Im({
|
|
12894
12900
|
id: e,
|
|
12895
12901
|
role: t,
|
|
12896
12902
|
content: n,
|
|
@@ -12942,10 +12948,10 @@ function Rm({
|
|
|
12942
12948
|
"markdown-content",
|
|
12943
12949
|
g && !S ? "text-base leading-6" : "text-sm"
|
|
12944
12950
|
),
|
|
12945
|
-
children: /* @__PURE__ */ l(
|
|
12951
|
+
children: /* @__PURE__ */ l(mo, { children: `${n} ${!S && b && o ? "..." : ""}` })
|
|
12946
12952
|
}
|
|
12947
12953
|
),
|
|
12948
|
-
r && r.length > 0 && /* @__PURE__ */ l("div", { className: "mt-2", children: /* @__PURE__ */ l(
|
|
12954
|
+
r && r.length > 0 && /* @__PURE__ */ l("div", { className: "mt-2", children: /* @__PURE__ */ l(ho, { files: r, isPreview: !1, className: "" }) }),
|
|
12949
12955
|
s && !S && o && /* @__PURE__ */ l("p", { className: "text-sm font-medium text-muted-foreground", children: s })
|
|
12950
12956
|
]
|
|
12951
12957
|
}
|
|
@@ -13011,7 +13017,7 @@ function Rm({
|
|
|
13011
13017
|
a?.map((C) => {
|
|
13012
13018
|
const w = c[C];
|
|
13013
13019
|
return w ? /* @__PURE__ */ l(
|
|
13014
|
-
|
|
13020
|
+
Rm,
|
|
13015
13021
|
{
|
|
13016
13022
|
messageId: e,
|
|
13017
13023
|
tool_key: C,
|
|
@@ -13045,7 +13051,7 @@ function Rm({
|
|
|
13045
13051
|
"markdown-content",
|
|
13046
13052
|
g ? "text-base leading-6" : "text-sm"
|
|
13047
13053
|
),
|
|
13048
|
-
children: /* @__PURE__ */ l(
|
|
13054
|
+
children: /* @__PURE__ */ l(mo, { children: i })
|
|
13049
13055
|
}
|
|
13050
13056
|
)
|
|
13051
13057
|
}
|
|
@@ -13149,8 +13155,8 @@ function Ll({
|
|
|
13149
13155
|
}
|
|
13150
13156
|
) : null;
|
|
13151
13157
|
}
|
|
13152
|
-
const
|
|
13153
|
-
function
|
|
13158
|
+
const Mm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Pills: Ll }, Symbol.toStringTag, { value: "Module" }));
|
|
13159
|
+
function Om({
|
|
13154
13160
|
text: e,
|
|
13155
13161
|
suggestions: t,
|
|
13156
13162
|
onSendMessage: n,
|
|
@@ -13184,7 +13190,7 @@ function Mm({
|
|
|
13184
13190
|
"markdown-content",
|
|
13185
13191
|
o ? "text-base leading-6" : "text-sm"
|
|
13186
13192
|
),
|
|
13187
|
-
children: /* @__PURE__ */ l(
|
|
13193
|
+
children: /* @__PURE__ */ l(mo, { children: e })
|
|
13188
13194
|
}
|
|
13189
13195
|
)
|
|
13190
13196
|
}
|
|
@@ -13212,7 +13218,7 @@ function Mm({
|
|
|
13212
13218
|
) })
|
|
13213
13219
|
] });
|
|
13214
13220
|
}
|
|
13215
|
-
function
|
|
13221
|
+
function Pm({
|
|
13216
13222
|
messages: e,
|
|
13217
13223
|
onSendMessage: t,
|
|
13218
13224
|
onToggleFeedback: n,
|
|
@@ -13224,7 +13230,7 @@ function Om({
|
|
|
13224
13230
|
}) {
|
|
13225
13231
|
const c = Q((p) => p.isWaitingForResponse), d = Q((p) => p.connectionStatus), f = Q((p) => p.elicitationState), h = d === Te.CONNECTED, u = Q((p) => p.progressMessage);
|
|
13226
13232
|
return e.length === 0 && !u ? /* @__PURE__ */ l(
|
|
13227
|
-
|
|
13233
|
+
Om,
|
|
13228
13234
|
{
|
|
13229
13235
|
text: a?.text,
|
|
13230
13236
|
suggestions: a?.suggestions,
|
|
@@ -13241,7 +13247,7 @@ function Om({
|
|
|
13241
13247
|
"data-message-id": p.id,
|
|
13242
13248
|
id: E === e.length - 1 ? "last-message" : void 0,
|
|
13243
13249
|
children: /* @__PURE__ */ l(
|
|
13244
|
-
|
|
13250
|
+
Im,
|
|
13245
13251
|
{
|
|
13246
13252
|
id: p.id,
|
|
13247
13253
|
role: p.role,
|
|
@@ -13265,10 +13271,10 @@ function Om({
|
|
|
13265
13271
|
},
|
|
13266
13272
|
p.id
|
|
13267
13273
|
)) }),
|
|
13268
|
-
c && /* @__PURE__ */ l(
|
|
13274
|
+
c && /* @__PURE__ */ l(Lm, {})
|
|
13269
13275
|
] });
|
|
13270
13276
|
}
|
|
13271
|
-
function
|
|
13277
|
+
function Lm() {
|
|
13272
13278
|
return /* @__PURE__ */ l("div", { className: "animate-slideUp", children: /* @__PURE__ */ l("div", { className: "flex justify-start", children: /* @__PURE__ */ l("div", { className: "flex gap-3", children: /* @__PURE__ */ l(qt, { className: "px-4 py-2 rounded-lg shadow-none bg-botMessage backdrop-blur-sm text-text-primary shadow-sm", children: /* @__PURE__ */ l(
|
|
13273
13279
|
"div",
|
|
13274
13280
|
{
|
|
@@ -13285,7 +13291,7 @@ function Pm() {
|
|
|
13285
13291
|
}
|
|
13286
13292
|
) }) }) }) });
|
|
13287
13293
|
}
|
|
13288
|
-
function
|
|
13294
|
+
function Vi({
|
|
13289
13295
|
className: e = "",
|
|
13290
13296
|
onRetry: t,
|
|
13291
13297
|
showRetryButton: n,
|
|
@@ -13365,8 +13371,8 @@ function Ui({
|
|
|
13365
13371
|
}
|
|
13366
13372
|
);
|
|
13367
13373
|
}
|
|
13368
|
-
const
|
|
13369
|
-
function
|
|
13374
|
+
const Dm = He(() => import("./medassist-widget-VoiceAgentScreen-BK0p37RC.js"));
|
|
13375
|
+
function Fm({
|
|
13370
13376
|
isOpen: e,
|
|
13371
13377
|
agentId: t,
|
|
13372
13378
|
config: n
|
|
@@ -13411,7 +13417,7 @@ function Dm({
|
|
|
13411
13417
|
handleSessionFeedbackSkip: K,
|
|
13412
13418
|
handleDontShowAgain: ie,
|
|
13413
13419
|
handleCloseModal: M
|
|
13414
|
-
} =
|
|
13420
|
+
} = gf({ isOpen: e, agentId: t, config: n });
|
|
13415
13421
|
H(() => {
|
|
13416
13422
|
y.length || I("auto");
|
|
13417
13423
|
}, [y.length, I]);
|
|
@@ -13424,7 +13430,7 @@ function Dm({
|
|
|
13424
13430
|
}),
|
|
13425
13431
|
[]
|
|
13426
13432
|
);
|
|
13427
|
-
return /* @__PURE__ */ l(
|
|
13433
|
+
return /* @__PURE__ */ l(Sh, { enabled: !!n.resize, children: /* @__PURE__ */ l(
|
|
13428
13434
|
Cl,
|
|
13429
13435
|
{
|
|
13430
13436
|
isOpen: e,
|
|
@@ -13454,7 +13460,7 @@ function Dm({
|
|
|
13454
13460
|
voiceAgentState: oe,
|
|
13455
13461
|
chatComposer: R,
|
|
13456
13462
|
fullScreenEmptyState: b ? (j) => /* @__PURE__ */ l(
|
|
13457
|
-
|
|
13463
|
+
tf,
|
|
13458
13464
|
{
|
|
13459
13465
|
title: n.title,
|
|
13460
13466
|
description: x?.text,
|
|
@@ -13464,7 +13470,7 @@ function Dm({
|
|
|
13464
13470
|
composer: j.composer,
|
|
13465
13471
|
composerFooter: j.composerFooter,
|
|
13466
13472
|
connectionBanner: /* @__PURE__ */ l(
|
|
13467
|
-
|
|
13473
|
+
Vi,
|
|
13468
13474
|
{
|
|
13469
13475
|
onRetry: N,
|
|
13470
13476
|
showRetryButton: d,
|
|
@@ -13476,8 +13482,8 @@ function Dm({
|
|
|
13476
13482
|
)
|
|
13477
13483
|
}
|
|
13478
13484
|
) : void 0,
|
|
13479
|
-
children: G ? /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(
|
|
13480
|
-
|
|
13485
|
+
children: G ? /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l($i, {}), children: /* @__PURE__ */ l(
|
|
13486
|
+
Dm,
|
|
13481
13487
|
{
|
|
13482
13488
|
state: oe,
|
|
13483
13489
|
isMuted: z,
|
|
@@ -13488,9 +13494,9 @@ function Dm({
|
|
|
13488
13494
|
iconUrl: n.iconUrl,
|
|
13489
13495
|
textColor: n.theme?.textColor
|
|
13490
13496
|
}
|
|
13491
|
-
) }) : /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(
|
|
13497
|
+
) }) : /* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l($i, {}), children: /* @__PURE__ */ l("div", { className: F("flex-1 flex flex-col min-h-0 overflow-hidden relative synapse-chat-window"), children: [
|
|
13492
13498
|
/* @__PURE__ */ l("div", { className: "relative flex min-h-0 flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ l(
|
|
13493
|
-
|
|
13499
|
+
el,
|
|
13494
13500
|
{
|
|
13495
13501
|
ref: s,
|
|
13496
13502
|
className: "flex-1 min-h-0 [&>[data-radix-scroll-area-viewport]>div]:!flex [&>[data-radix-scroll-area-viewport]>div]:flex-col [&>[data-radix-scroll-area-viewport]>div]:min-h-full",
|
|
@@ -13509,8 +13515,8 @@ function Dm({
|
|
|
13509
13515
|
children: [
|
|
13510
13516
|
_ && /* @__PURE__ */ l("div", { className: "text-xs text-[var(--color-muted-foreground)] text-center mb-2", children: "Just now" }),
|
|
13511
13517
|
!_ && /* @__PURE__ */ l("div", { className: "text-xs text-[var(--color-muted-foreground)] text-center", children: be }),
|
|
13512
|
-
/* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(
|
|
13513
|
-
|
|
13518
|
+
/* @__PURE__ */ l(Pe, { fallback: /* @__PURE__ */ l(lh, {}), children: /* @__PURE__ */ l(
|
|
13519
|
+
Pm,
|
|
13514
13520
|
{
|
|
13515
13521
|
messages: y,
|
|
13516
13522
|
onSendMessage: C,
|
|
@@ -13536,11 +13542,11 @@ function Dm({
|
|
|
13536
13542
|
onClick: () => I("smooth"),
|
|
13537
13543
|
size: "icon",
|
|
13538
13544
|
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",
|
|
13539
|
-
children: /* @__PURE__ */ l(
|
|
13545
|
+
children: /* @__PURE__ */ l(jo, { className: "w-5 h-5 text-text-primary" })
|
|
13540
13546
|
}
|
|
13541
13547
|
) }),
|
|
13542
13548
|
/* @__PURE__ */ l(
|
|
13543
|
-
|
|
13549
|
+
Vi,
|
|
13544
13550
|
{
|
|
13545
13551
|
className: "mt-2",
|
|
13546
13552
|
onRetry: N,
|
|
@@ -13555,7 +13561,7 @@ function Dm({
|
|
|
13555
13561
|
}
|
|
13556
13562
|
) });
|
|
13557
13563
|
}
|
|
13558
|
-
function
|
|
13564
|
+
function $i() {
|
|
13559
13565
|
return /* @__PURE__ */ l("div", { className: "flex-1 flex flex-col min-h-0 overflow-hidden bg-surface backdrop-blur-2xl animate-pulse", children: [
|
|
13560
13566
|
/* @__PURE__ */ l("div", { className: "flex-1 p-6 space-y-4", children: [
|
|
13561
13567
|
/* @__PURE__ */ l("div", { className: "h-16 bg-surface/80 rounded-2xl border border-border-subtle/50" }),
|
|
@@ -13565,7 +13571,7 @@ function Vi() {
|
|
|
13565
13571
|
/* @__PURE__ */ l("div", { className: "h-24 border-t border-border-subtle bg-surface/80" })
|
|
13566
13572
|
] });
|
|
13567
13573
|
}
|
|
13568
|
-
function
|
|
13574
|
+
function po(e) {
|
|
13569
13575
|
if (e instanceof Error) return e;
|
|
13570
13576
|
if (typeof e == "string") return new Error(e);
|
|
13571
13577
|
try {
|
|
@@ -13574,17 +13580,17 @@ function mo(e) {
|
|
|
13574
13580
|
return new Error("Unknown error");
|
|
13575
13581
|
}
|
|
13576
13582
|
}
|
|
13577
|
-
class
|
|
13583
|
+
class Um extends Xe {
|
|
13578
13584
|
state = { error: null };
|
|
13579
13585
|
static getDerivedStateFromError(t) {
|
|
13580
|
-
return { error:
|
|
13586
|
+
return { error: po(t) };
|
|
13581
13587
|
}
|
|
13582
13588
|
componentDidCatch(t, n) {
|
|
13583
13589
|
this.setState({ componentStack: n?.componentStack });
|
|
13584
13590
|
}
|
|
13585
13591
|
render() {
|
|
13586
13592
|
return this.state.error ? /* @__PURE__ */ l(
|
|
13587
|
-
|
|
13593
|
+
zm,
|
|
13588
13594
|
{
|
|
13589
13595
|
error: this.state.error,
|
|
13590
13596
|
componentStack: this.state.componentStack,
|
|
@@ -13600,24 +13606,24 @@ class Fm extends Xe {
|
|
|
13600
13606
|
) : this.props.children;
|
|
13601
13607
|
}
|
|
13602
13608
|
}
|
|
13603
|
-
function
|
|
13609
|
+
function Vm({ error: e }) {
|
|
13604
13610
|
throw e;
|
|
13605
13611
|
}
|
|
13606
|
-
function
|
|
13612
|
+
function $m(e) {
|
|
13607
13613
|
const [t, n] = U(null);
|
|
13608
13614
|
return H(() => {
|
|
13609
13615
|
if (typeof window > "u") return;
|
|
13610
13616
|
const r = (s) => {
|
|
13611
|
-
!s?.error && !s?.filename && s?.message === "Script error." || (s?.error ? n(
|
|
13617
|
+
!s?.error && !s?.filename && s?.message === "Script error." || (s?.error ? n(po(s.error)) : s?.message && n(new Error(s.message)));
|
|
13612
13618
|
}, o = (s) => {
|
|
13613
|
-
n(
|
|
13619
|
+
n(po(s.reason));
|
|
13614
13620
|
};
|
|
13615
13621
|
return window.addEventListener("error", r), window.addEventListener("unhandledrejection", o), () => {
|
|
13616
13622
|
window.removeEventListener("error", r), window.removeEventListener("unhandledrejection", o);
|
|
13617
13623
|
};
|
|
13618
|
-
}, []), /* @__PURE__ */ l(
|
|
13624
|
+
}, []), /* @__PURE__ */ l(Um, { ...e, children: t ? /* @__PURE__ */ l(Vm, { error: t }) : e.children });
|
|
13619
13625
|
}
|
|
13620
|
-
function
|
|
13626
|
+
function zm({
|
|
13621
13627
|
error: e,
|
|
13622
13628
|
title: t,
|
|
13623
13629
|
titleImg: n,
|
|
@@ -13685,7 +13691,7 @@ function $m({
|
|
|
13685
13691
|
}
|
|
13686
13692
|
);
|
|
13687
13693
|
}
|
|
13688
|
-
function
|
|
13694
|
+
function Hm({ agentId: e, config: t }) {
|
|
13689
13695
|
const [n, r] = U(!1);
|
|
13690
13696
|
H(() => {
|
|
13691
13697
|
r(!0);
|
|
@@ -13694,7 +13700,7 @@ function zm({ agentId: e, config: t }) {
|
|
|
13694
13700
|
r(!1), t?.onClose?.();
|
|
13695
13701
|
};
|
|
13696
13702
|
return /* @__PURE__ */ l(
|
|
13697
|
-
|
|
13703
|
+
$m,
|
|
13698
13704
|
{
|
|
13699
13705
|
title: t.title ?? "Medi Clinic",
|
|
13700
13706
|
titleImg: t.theme?.titleImg,
|
|
@@ -13704,8 +13710,8 @@ function zm({ agentId: e, config: t }) {
|
|
|
13704
13710
|
environment: t.environment ?? "production",
|
|
13705
13711
|
displayMode: t.displayMode,
|
|
13706
13712
|
theme: t.theme,
|
|
13707
|
-
children: /* @__PURE__ */ l(
|
|
13708
|
-
|
|
13713
|
+
children: /* @__PURE__ */ l(Uu, { children: /* @__PURE__ */ l(
|
|
13714
|
+
Fm,
|
|
13709
13715
|
{
|
|
13710
13716
|
isOpen: n,
|
|
13711
13717
|
agentId: e,
|
|
@@ -13722,12 +13728,12 @@ function zm({ agentId: e, config: t }) {
|
|
|
13722
13728
|
}
|
|
13723
13729
|
);
|
|
13724
13730
|
}
|
|
13725
|
-
const
|
|
13731
|
+
const Bm = (e, t, n) => {
|
|
13726
13732
|
const r = n || {}, o = sc(e);
|
|
13727
13733
|
return o.render(
|
|
13728
|
-
/* @__PURE__ */ l(pe, { children: /* @__PURE__ */ l(
|
|
13734
|
+
/* @__PURE__ */ l(pe, { children: /* @__PURE__ */ l(Hm, { agentId: t, config: r }) })
|
|
13729
13735
|
), o;
|
|
13730
|
-
},
|
|
13736
|
+
}, jm = (e) => {
|
|
13731
13737
|
try {
|
|
13732
13738
|
const t = sessionStorage.getItem(br(e)), n = t ? JSON.parse(t)?.state : void 0;
|
|
13733
13739
|
return {
|
|
@@ -13737,25 +13743,25 @@ const Hm = (e, t, n) => {
|
|
|
13737
13743
|
} catch {
|
|
13738
13744
|
return {};
|
|
13739
13745
|
}
|
|
13740
|
-
},
|
|
13741
|
-
const { refreshToken: t, sessToken: n } =
|
|
13746
|
+
}, ap = (e) => {
|
|
13747
|
+
const { refreshToken: t, sessToken: n } = jm(e.agentId);
|
|
13742
13748
|
return O.prefetchTokenExchange({
|
|
13743
13749
|
...e,
|
|
13744
13750
|
refreshToken: t,
|
|
13745
13751
|
sessToken: n
|
|
13746
13752
|
});
|
|
13747
13753
|
};
|
|
13748
|
-
typeof window < "u" && (window.renderMedAssist =
|
|
13754
|
+
typeof window < "u" && (window.renderMedAssist = Bm);
|
|
13749
13755
|
export {
|
|
13750
13756
|
W as A,
|
|
13751
13757
|
ae as B,
|
|
13752
|
-
|
|
13758
|
+
jo as C,
|
|
13753
13759
|
Z as D,
|
|
13754
13760
|
lu as F,
|
|
13755
13761
|
du as I,
|
|
13756
|
-
|
|
13762
|
+
fi as M,
|
|
13757
13763
|
Un as P,
|
|
13758
|
-
|
|
13764
|
+
_a as R,
|
|
13759
13765
|
pe as S,
|
|
13760
13766
|
de as T,
|
|
13761
13767
|
pr as X,
|
|
@@ -13769,22 +13775,22 @@ export {
|
|
|
13769
13775
|
Dt as g,
|
|
13770
13776
|
Pt as h,
|
|
13771
13777
|
F as i,
|
|
13772
|
-
|
|
13773
|
-
|
|
13778
|
+
sp as j,
|
|
13779
|
+
Hu as k,
|
|
13774
13780
|
_l as l,
|
|
13775
|
-
|
|
13781
|
+
vh as m,
|
|
13776
13782
|
bl as n,
|
|
13777
|
-
|
|
13778
|
-
|
|
13779
|
-
|
|
13783
|
+
op as o,
|
|
13784
|
+
Gu as p,
|
|
13785
|
+
ap as prefetchAuth,
|
|
13780
13786
|
ce as q,
|
|
13781
|
-
|
|
13782
|
-
|
|
13783
|
-
|
|
13787
|
+
mo as r,
|
|
13788
|
+
Bm as renderMedAssist,
|
|
13789
|
+
nf as s,
|
|
13784
13790
|
qt as t,
|
|
13785
13791
|
l as u,
|
|
13786
|
-
|
|
13787
|
-
|
|
13788
|
-
|
|
13792
|
+
ip as v,
|
|
13793
|
+
Bu as w,
|
|
13794
|
+
Wu as x,
|
|
13789
13795
|
H as y
|
|
13790
13796
|
};
|