orb-ui 0.2.2 → 0.2.4
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/LICENSE +21 -0
- package/README.md +64 -30
- package/dist/adapters/elevenlabs/index.d.ts +85 -0
- package/dist/adapters/index.d.ts +3 -0
- package/dist/adapters/types.d.ts +11 -0
- package/dist/adapters/vapi/index.d.ts +42 -0
- package/dist/adapters.cjs +1 -1
- package/dist/adapters.js +130 -134
- package/dist/components/Orb/Orb.d.ts +2 -0
- package/dist/components/Orb/Orb.types.d.ts +68 -0
- package/dist/components/Orb/index.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/orb-ui.cjs +2 -2
- package/dist/orb-ui.js +556 -512
- package/dist/themes/bars/BarsTheme.d.ts +14 -0
- package/dist/themes/bars/index.d.ts +1 -0
- package/dist/themes/circle/CircleTheme.d.ts +14 -0
- package/dist/themes/circle/index.d.ts +1 -0
- package/dist/themes/debug/DebugTheme.d.ts +15 -0
- package/dist/themes/debug/index.d.ts +1 -0
- package/dist/themes/index.d.ts +3 -0
- package/package.json +50 -27
- package/dist/adapters.d.ts +0 -145
- package/dist/orb-ui.d.ts +0 -56
package/dist/orb-ui.js
CHANGED
|
@@ -1,522 +1,566 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { useCallback as e, useEffect as t, useLayoutEffect as n, useRef as r, useState as i } from "react";
|
|
2
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
3
|
+
//#region src/adapters/types.ts
|
|
4
|
+
function s(e) {
|
|
5
|
+
let t = Math.min(e / .5, 1);
|
|
6
|
+
return t **= 1.3, t;
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/themes/debug/DebugTheme.tsx
|
|
10
|
+
var c = [
|
|
11
|
+
"idle",
|
|
12
|
+
"connecting",
|
|
13
|
+
"listening",
|
|
14
|
+
"speaking",
|
|
15
|
+
"error"
|
|
16
|
+
], l = {
|
|
17
|
+
idle: "#888",
|
|
18
|
+
connecting: "#f0c040",
|
|
19
|
+
listening: "#40c0f0",
|
|
20
|
+
speaking: "#40f080",
|
|
21
|
+
error: "#f04040"
|
|
19
22
|
};
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
23
|
+
function u({ state: e, volume: t, size: n, className: r, style: i, disabled: s = !1, onStart: u, onStop: d, ...f }) {
|
|
24
|
+
return /* @__PURE__ */ o("div", {
|
|
25
|
+
...f,
|
|
26
|
+
className: r,
|
|
27
|
+
style: {
|
|
28
|
+
width: n,
|
|
29
|
+
fontFamily: "monospace",
|
|
30
|
+
fontSize: 12,
|
|
31
|
+
background: "#111",
|
|
32
|
+
color: "#ccc",
|
|
33
|
+
border: "1px solid #333",
|
|
34
|
+
borderRadius: 8,
|
|
35
|
+
padding: 12,
|
|
36
|
+
boxSizing: "border-box",
|
|
37
|
+
userSelect: "none",
|
|
38
|
+
...i
|
|
39
|
+
},
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ a("div", {
|
|
42
|
+
style: {
|
|
43
|
+
color: "#555",
|
|
44
|
+
marginBottom: 10,
|
|
45
|
+
fontSize: 10,
|
|
46
|
+
letterSpacing: 1
|
|
47
|
+
},
|
|
48
|
+
children: "ORB DEBUG"
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ o("div", {
|
|
51
|
+
style: { marginBottom: 8 },
|
|
52
|
+
children: [/* @__PURE__ */ a("span", {
|
|
53
|
+
style: { color: "#555" },
|
|
54
|
+
children: "state "
|
|
55
|
+
}), /* @__PURE__ */ a("span", {
|
|
56
|
+
style: {
|
|
57
|
+
color: l[e],
|
|
58
|
+
fontWeight: "bold"
|
|
59
|
+
},
|
|
60
|
+
children: e
|
|
61
|
+
})]
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ o("div", {
|
|
64
|
+
style: { marginBottom: 10 },
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ a("span", {
|
|
67
|
+
style: { color: "#555" },
|
|
68
|
+
children: "volume "
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ a("span", {
|
|
71
|
+
style: { color: "#ccc" },
|
|
72
|
+
children: t.toFixed(2)
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ a("div", {
|
|
75
|
+
style: {
|
|
76
|
+
marginTop: 4,
|
|
77
|
+
height: 4,
|
|
78
|
+
background: "#222",
|
|
79
|
+
borderRadius: 2,
|
|
80
|
+
overflow: "hidden"
|
|
81
|
+
},
|
|
82
|
+
children: /* @__PURE__ */ a("div", { style: {
|
|
83
|
+
height: "100%",
|
|
84
|
+
width: `${t * 100}%`,
|
|
85
|
+
background: l[e],
|
|
86
|
+
borderRadius: 2,
|
|
87
|
+
transition: "width 50ms linear"
|
|
88
|
+
} })
|
|
89
|
+
})
|
|
90
|
+
]
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ o("div", {
|
|
93
|
+
style: { marginBottom: 10 },
|
|
94
|
+
children: [/* @__PURE__ */ a("div", {
|
|
95
|
+
style: {
|
|
96
|
+
color: "#555",
|
|
97
|
+
marginBottom: 4,
|
|
98
|
+
fontSize: 10
|
|
99
|
+
},
|
|
100
|
+
children: "force state"
|
|
101
|
+
}), /* @__PURE__ */ a("div", {
|
|
102
|
+
style: {
|
|
103
|
+
display: "flex",
|
|
104
|
+
flexWrap: "wrap",
|
|
105
|
+
gap: 4
|
|
106
|
+
},
|
|
107
|
+
children: c.map((t) => /* @__PURE__ */ a("button", {
|
|
108
|
+
disabled: s,
|
|
109
|
+
style: {
|
|
110
|
+
fontSize: 10,
|
|
111
|
+
padding: "2px 6px",
|
|
112
|
+
background: e === t ? l[t] : "#222",
|
|
113
|
+
color: e === t ? "#000" : "#888",
|
|
114
|
+
border: `1px solid ${e === t ? l[t] : "#333"}`,
|
|
115
|
+
borderRadius: 3,
|
|
116
|
+
cursor: s ? "not-allowed" : "pointer"
|
|
117
|
+
},
|
|
118
|
+
onClick: () => {
|
|
119
|
+
console.warn(`[orb-ui debug] To force state '${t}', use controlled mode: <Orb state="${t}" />`);
|
|
120
|
+
},
|
|
121
|
+
children: t
|
|
122
|
+
}, t))
|
|
123
|
+
})]
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ o("div", {
|
|
126
|
+
style: {
|
|
127
|
+
display: "flex",
|
|
128
|
+
gap: 6
|
|
129
|
+
},
|
|
130
|
+
children: [/* @__PURE__ */ a("button", {
|
|
131
|
+
disabled: s,
|
|
132
|
+
onClick: u,
|
|
133
|
+
style: {
|
|
134
|
+
flex: 1,
|
|
135
|
+
padding: "4px 0",
|
|
136
|
+
background: "#1a3a1a",
|
|
137
|
+
color: "#40f080",
|
|
138
|
+
border: "1px solid #40f080",
|
|
139
|
+
borderRadius: 4,
|
|
140
|
+
cursor: s ? "not-allowed" : "pointer",
|
|
141
|
+
fontSize: 11
|
|
142
|
+
},
|
|
143
|
+
children: "Start"
|
|
144
|
+
}), /* @__PURE__ */ a("button", {
|
|
145
|
+
disabled: s,
|
|
146
|
+
onClick: d,
|
|
147
|
+
style: {
|
|
148
|
+
flex: 1,
|
|
149
|
+
padding: "4px 0",
|
|
150
|
+
background: "#3a1a1a",
|
|
151
|
+
color: "#f04040",
|
|
152
|
+
border: "1px solid #f04040",
|
|
153
|
+
borderRadius: 4,
|
|
154
|
+
cursor: s ? "not-allowed" : "pointer",
|
|
155
|
+
fontSize: 11
|
|
156
|
+
},
|
|
157
|
+
children: "Stop"
|
|
158
|
+
})]
|
|
159
|
+
})
|
|
160
|
+
]
|
|
161
|
+
});
|
|
143
162
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/themes/circle/CircleTheme.tsx
|
|
165
|
+
var d = typeof window < "u" ? n : t;
|
|
166
|
+
function f(e) {
|
|
167
|
+
return [
|
|
168
|
+
parseInt(e.slice(1, 3), 16),
|
|
169
|
+
parseInt(e.slice(3, 5), 16),
|
|
170
|
+
parseInt(e.slice(5, 7), 16)
|
|
171
|
+
];
|
|
150
172
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
173
|
+
var p = {
|
|
174
|
+
idle: "#cccccc",
|
|
175
|
+
connecting: "#cccccc",
|
|
176
|
+
listening: "#999999",
|
|
177
|
+
speaking: "#e8e8e8",
|
|
178
|
+
error: "#f87171"
|
|
179
|
+
}, m = "\n@keyframes orb-circle-idle-pulse {\n from { transform: scale(1); }\n to { transform: scale(1.06); }\n}\n@keyframes orb-circle-connecting-pulse {\n 0% { opacity: 1; transform: scale(1); }\n 50% { opacity: 0.6; transform: scale(0.95); }\n 100% { opacity: 1; transform: scale(1); }\n}\n", h = .95, g = .08, _ = .82, v = .18, y = 24, b = 0, x = .55, S = .12, C = .002;
|
|
180
|
+
function w({ state: e, volume: n, size: i, className: s, style: c, disabled: l = !1, interactive: u = !1, onClick: w, ...T }) {
|
|
181
|
+
let E = r(null), D = r(null), O = r(null), k = r(0), A = r(n);
|
|
182
|
+
d(() => {
|
|
183
|
+
A.current = n;
|
|
184
|
+
}, [n]);
|
|
185
|
+
let j = r(1), M = r(0), N = r(f(p.idle)), P = .06, F = r(_), I = r(v);
|
|
186
|
+
t(() => {
|
|
187
|
+
let e = "orb-circle-keyframes";
|
|
188
|
+
if (!document.getElementById(e)) {
|
|
189
|
+
let t = document.createElement("style");
|
|
190
|
+
t.id = e, t.textContent = m, document.head.appendChild(t);
|
|
191
|
+
}
|
|
192
|
+
}, []), t(() => {
|
|
193
|
+
let t = E.current;
|
|
194
|
+
if (t) if (e === "listening" || e === "speaking") {
|
|
195
|
+
let n = e === "speaking" ? h : _, r = e === "speaking" ? g : v, i = e === "speaking" ? y : b, a = () => {
|
|
196
|
+
let o = A.current;
|
|
197
|
+
F.current += (n - F.current) * P, I.current += (r - I.current) * P;
|
|
198
|
+
let s = F.current + o * I.current, c = o * i;
|
|
199
|
+
e === "listening" ? (j.current += (s - j.current) * x, M.current += (c - M.current) * x) : (j.current = s, M.current = c);
|
|
200
|
+
let l = f(p[e]), [u, d, m] = N.current;
|
|
201
|
+
N.current = [
|
|
202
|
+
u + (l[0] - u) * .05,
|
|
203
|
+
d + (l[1] - d) * .05,
|
|
204
|
+
m + (l[2] - m) * .05
|
|
205
|
+
];
|
|
206
|
+
let [h, g, _] = N.current.map(Math.round);
|
|
207
|
+
t.style.transform = `scale(${j.current})`, t.style.background = `rgb(${h},${g},${_})`, t.style.boxShadow = "none", t.style.animation = "none";
|
|
208
|
+
let v = D.current;
|
|
209
|
+
if (v) {
|
|
210
|
+
let e = M.current;
|
|
211
|
+
v.style.transform = `scale(${j.current})`, v.style.boxShadow = e > .5 ? `0 0 ${e}px ${e * .4}px rgb(${h},${g},${_})` : "none";
|
|
212
|
+
}
|
|
213
|
+
k.current = requestAnimationFrame(a);
|
|
214
|
+
};
|
|
215
|
+
return k.current = requestAnimationFrame(a), () => {
|
|
216
|
+
cancelAnimationFrame(k.current);
|
|
217
|
+
};
|
|
218
|
+
} else {
|
|
219
|
+
cancelAnimationFrame(k.current);
|
|
220
|
+
let n = p[e] ?? p.idle, r = f(n), i = () => {
|
|
221
|
+
j.current += (1 - j.current) * S, M.current += (0 - M.current) * S;
|
|
222
|
+
let [a, o, s] = N.current;
|
|
223
|
+
N.current = [
|
|
224
|
+
a + (r[0] - a) * S,
|
|
225
|
+
o + (r[1] - o) * S,
|
|
226
|
+
s + (r[2] - s) * S
|
|
227
|
+
];
|
|
228
|
+
let [c, l, u] = N.current.map(Math.round);
|
|
229
|
+
t.style.transform = `scale(${j.current})`, t.style.background = `rgb(${c},${l},${u})`, t.style.boxShadow = "none", t.style.animation = "none", D.current && (D.current.style.transform = `scale(${j.current})`, D.current.style.boxShadow = "none");
|
|
230
|
+
let d = Math.abs(j.current - 1) < C, f = M.current < .1, p = N.current.every((e, t) => Math.abs(e - r[t]) < 1);
|
|
231
|
+
if (d && f && p) {
|
|
232
|
+
j.current = 1, M.current = 0, N.current = r, t.style.transform = "", t.style.boxShadow = "none", t.style.background = n, D.current && (D.current.style.transform = "scale(1)", D.current.style.boxShadow = "none"), e === "idle" ? t.style.animation = "orb-circle-idle-pulse 3s ease-in-out infinite alternate" : e === "connecting" ? t.style.animation = "orb-circle-connecting-pulse 1.5s ease-in-out infinite" : t.style.animation = "none";
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
k.current = requestAnimationFrame(i);
|
|
236
|
+
};
|
|
237
|
+
return k.current = requestAnimationFrame(i), () => cancelAnimationFrame(k.current);
|
|
238
|
+
}
|
|
239
|
+
}, [e]);
|
|
240
|
+
let L = i * .55, R = {
|
|
241
|
+
width: i,
|
|
242
|
+
height: i,
|
|
243
|
+
display: "flex",
|
|
244
|
+
alignItems: "center",
|
|
245
|
+
justifyContent: "center",
|
|
246
|
+
position: "relative",
|
|
247
|
+
...c
|
|
248
|
+
}, z = /* @__PURE__ */ o("span", {
|
|
249
|
+
ref: O,
|
|
250
|
+
onMouseEnter: () => {
|
|
251
|
+
O.current && !l && (O.current.style.transform = "scale(1.06)", O.current.style.filter = "brightness(1.12)");
|
|
252
|
+
},
|
|
253
|
+
onMouseLeave: () => {
|
|
254
|
+
O.current && (O.current.style.transform = "scale(1)", O.current.style.filter = "brightness(1)");
|
|
255
|
+
},
|
|
256
|
+
onTouchEnd: () => {
|
|
257
|
+
setTimeout(() => {
|
|
258
|
+
O.current && (O.current.style.transform = "scale(1)", O.current.style.filter = "brightness(1)");
|
|
259
|
+
}, 200);
|
|
260
|
+
},
|
|
261
|
+
style: {
|
|
262
|
+
position: "relative",
|
|
263
|
+
display: "inline-block",
|
|
264
|
+
transition: "transform 0.3s ease, filter 0.3s ease",
|
|
265
|
+
cursor: u ? l ? "not-allowed" : "pointer" : "default",
|
|
266
|
+
borderRadius: "50%",
|
|
267
|
+
lineHeight: 0
|
|
268
|
+
},
|
|
269
|
+
children: [/* @__PURE__ */ a("span", {
|
|
270
|
+
ref: D,
|
|
271
|
+
style: {
|
|
272
|
+
position: "absolute",
|
|
273
|
+
display: "block",
|
|
274
|
+
width: L,
|
|
275
|
+
height: L,
|
|
276
|
+
borderRadius: "50%",
|
|
277
|
+
pointerEvents: "none"
|
|
278
|
+
}
|
|
279
|
+
}), /* @__PURE__ */ a("span", {
|
|
280
|
+
ref: E,
|
|
281
|
+
style: {
|
|
282
|
+
position: "relative",
|
|
283
|
+
display: "block",
|
|
284
|
+
width: L,
|
|
285
|
+
height: L,
|
|
286
|
+
borderRadius: "50%",
|
|
287
|
+
background: p[e]
|
|
288
|
+
}
|
|
289
|
+
})]
|
|
290
|
+
});
|
|
291
|
+
return u ? /* @__PURE__ */ a("button", {
|
|
292
|
+
...T,
|
|
293
|
+
type: "button",
|
|
294
|
+
className: s,
|
|
295
|
+
disabled: l,
|
|
296
|
+
onClick: l ? void 0 : w,
|
|
297
|
+
style: {
|
|
298
|
+
appearance: "none",
|
|
299
|
+
WebkitAppearance: "none",
|
|
300
|
+
border: 0,
|
|
301
|
+
padding: 0,
|
|
302
|
+
margin: 0,
|
|
303
|
+
background: "transparent",
|
|
304
|
+
color: "inherit",
|
|
305
|
+
font: "inherit",
|
|
306
|
+
cursor: l ? "not-allowed" : "pointer",
|
|
307
|
+
...R
|
|
308
|
+
},
|
|
309
|
+
children: z
|
|
310
|
+
}) : /* @__PURE__ */ a("div", {
|
|
311
|
+
...T,
|
|
312
|
+
className: s,
|
|
313
|
+
style: R,
|
|
314
|
+
children: z
|
|
315
|
+
});
|
|
161
316
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
ce(() => {
|
|
171
|
-
h.current = o;
|
|
172
|
-
}, [o]);
|
|
173
|
-
const c = s(1), u = s(0), p = s(Y(H.idle)), T = 0.06, S = s(z), g = s(ee);
|
|
174
|
-
B(() => {
|
|
175
|
-
const f = "orb-circle-keyframes";
|
|
176
|
-
if (!document.getElementById(f)) {
|
|
177
|
-
const x = document.createElement("style");
|
|
178
|
-
x.id = f, x.textContent = ue, document.head.appendChild(x);
|
|
179
|
-
}
|
|
180
|
-
}, []), B(() => {
|
|
181
|
-
const f = M.current;
|
|
182
|
-
if (f)
|
|
183
|
-
if (n === "listening" || n === "speaking") {
|
|
184
|
-
const x = n === "speaking" ? ae : z, q = n === "speaking" ? fe : ee, L = n === "speaking" ? de : me, F = () => {
|
|
185
|
-
const $ = h.current;
|
|
186
|
-
S.current += (x - S.current) * T, g.current += (q - g.current) * T;
|
|
187
|
-
const i = S.current + $ * g.current, w = $ * L;
|
|
188
|
-
n === "listening" ? (c.current += (i - c.current) * 0.45, u.current += (w - u.current) * 0.45) : (c.current = i, u.current = w);
|
|
189
|
-
const P = Y(H[n]), [V, O, G] = p.current;
|
|
190
|
-
p.current = [
|
|
191
|
-
V + (P[0] - V) * 0.05,
|
|
192
|
-
O + (P[1] - O) * 0.05,
|
|
193
|
-
G + (P[2] - G) * 0.05
|
|
194
|
-
];
|
|
195
|
-
const [W, b, a] = p.current.map(Math.round);
|
|
196
|
-
f.style.transform = `scale(${c.current})`, f.style.background = `rgb(${W},${b},${a})`, f.style.boxShadow = "none", f.style.animation = "none";
|
|
197
|
-
const v = t.current;
|
|
198
|
-
if (v) {
|
|
199
|
-
const R = u.current;
|
|
200
|
-
v.style.transform = `scale(${c.current})`, v.style.boxShadow = R > 0.5 ? `0 0 ${R}px ${R * 0.4}px rgb(${W},${b},${a})` : "none";
|
|
201
|
-
}
|
|
202
|
-
m.current = requestAnimationFrame(F);
|
|
203
|
-
};
|
|
204
|
-
return m.current = requestAnimationFrame(F), () => {
|
|
205
|
-
cancelAnimationFrame(m.current);
|
|
206
|
-
};
|
|
207
|
-
} else {
|
|
208
|
-
cancelAnimationFrame(m.current), c.current = 1, u.current = 0, p.current = Y(H[n] ?? H.idle), f.style.transform = "", f.style.boxShadow = "none", t.current && (t.current.style.boxShadow = "none");
|
|
209
|
-
const x = H[n] ?? H.idle, [q, L, F] = Y(x);
|
|
210
|
-
f.style.background = x, n === "idle" ? f.style.animation = "orb-circle-idle-pulse 3s ease-in-out infinite alternate" : n === "connecting" ? f.style.animation = "orb-circle-connecting-pulse 1.5s ease-in-out infinite" : f.style.animation = "none";
|
|
211
|
-
}
|
|
212
|
-
}, [n]);
|
|
213
|
-
const y = e * 0.55;
|
|
214
|
-
return /* @__PURE__ */ l(
|
|
215
|
-
"div",
|
|
216
|
-
{
|
|
217
|
-
className: k,
|
|
218
|
-
style: {
|
|
219
|
-
width: e,
|
|
220
|
-
height: e,
|
|
221
|
-
display: "flex",
|
|
222
|
-
alignItems: "center",
|
|
223
|
-
justifyContent: "center",
|
|
224
|
-
position: "relative",
|
|
225
|
-
...A
|
|
226
|
-
},
|
|
227
|
-
children: /* @__PURE__ */ N(
|
|
228
|
-
"div",
|
|
229
|
-
{
|
|
230
|
-
ref: r,
|
|
231
|
-
onClick: d,
|
|
232
|
-
onMouseEnter: () => {
|
|
233
|
-
r.current && (r.current.style.transform = "scale(1.06)", r.current.style.filter = "brightness(1.12)");
|
|
234
|
-
},
|
|
235
|
-
onMouseLeave: () => {
|
|
236
|
-
r.current && (r.current.style.transform = "scale(1)", r.current.style.filter = "brightness(1)");
|
|
237
|
-
},
|
|
238
|
-
onTouchEnd: () => {
|
|
239
|
-
setTimeout(() => {
|
|
240
|
-
r.current && (r.current.style.transform = "scale(1)", r.current.style.filter = "brightness(1)");
|
|
241
|
-
}, 200);
|
|
242
|
-
},
|
|
243
|
-
style: {
|
|
244
|
-
transition: "transform 0.3s ease, filter 0.3s ease",
|
|
245
|
-
cursor: d ? "pointer" : "default",
|
|
246
|
-
borderRadius: "50%",
|
|
247
|
-
lineHeight: 0
|
|
248
|
-
},
|
|
249
|
-
children: [
|
|
250
|
-
/* @__PURE__ */ l(
|
|
251
|
-
"div",
|
|
252
|
-
{
|
|
253
|
-
ref: t,
|
|
254
|
-
style: {
|
|
255
|
-
position: "absolute",
|
|
256
|
-
width: y,
|
|
257
|
-
height: y,
|
|
258
|
-
borderRadius: "50%",
|
|
259
|
-
pointerEvents: "none"
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
),
|
|
263
|
-
/* @__PURE__ */ l(
|
|
264
|
-
"div",
|
|
265
|
-
{
|
|
266
|
-
ref: M,
|
|
267
|
-
style: {
|
|
268
|
-
position: "relative",
|
|
269
|
-
width: y,
|
|
270
|
-
height: y,
|
|
271
|
-
borderRadius: "50%",
|
|
272
|
-
background: H[n]
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
)
|
|
276
|
-
]
|
|
277
|
-
}
|
|
278
|
-
)
|
|
279
|
-
}
|
|
280
|
-
);
|
|
281
|
-
}
|
|
282
|
-
const C = 5, he = 1.4, be = Math.PI * 2 / C, j = {
|
|
283
|
-
idle: "#cccccc",
|
|
284
|
-
connecting: "#cccccc",
|
|
285
|
-
listening: "#999999",
|
|
286
|
-
speaking: "#e8e8e8",
|
|
287
|
-
error: "#f87171"
|
|
317
|
+
//#endregion
|
|
318
|
+
//#region src/themes/bars/BarsTheme.tsx
|
|
319
|
+
var T = 5, E = 1.4, D = Math.PI * 2 / T, O = {
|
|
320
|
+
idle: "#cccccc",
|
|
321
|
+
connecting: "#cccccc",
|
|
322
|
+
listening: "#999999",
|
|
323
|
+
speaking: "#e8e8e8",
|
|
324
|
+
error: "#f87171"
|
|
288
325
|
};
|
|
289
|
-
function
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
326
|
+
function k(e) {
|
|
327
|
+
return [
|
|
328
|
+
parseInt(e.slice(1, 3), 16),
|
|
329
|
+
parseInt(e.slice(3, 5), 16),
|
|
330
|
+
parseInt(e.slice(5, 7), 16)
|
|
331
|
+
];
|
|
295
332
|
}
|
|
296
|
-
function
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
333
|
+
function A({ state: e, volume: n, size: i, className: o, style: s, disabled: c = !1, interactive: l = !1, onClick: u, ...d }) {
|
|
334
|
+
let f = r([]), p = r(null), m = r(0), h = r(Array(T).fill(0)), g = r(n), _ = r(!1), v = r(0), y = r(k(O.idle)), b = r(null), x = r(Array(T).fill(0)), S = r(e);
|
|
335
|
+
t(() => {
|
|
336
|
+
e !== S.current && (x.current = [...h.current], b.current = Date.now(), S.current = e);
|
|
337
|
+
}, [e]), t(() => {
|
|
338
|
+
g.current = n;
|
|
339
|
+
}, [n]), t(() => {
|
|
340
|
+
let t = i * .55, n = i * .06, r = O[e] ?? O.idle, a = i * .1, o = Array.from({ length: T }, (e, t) => {
|
|
341
|
+
let n = (T - 1) / 2;
|
|
342
|
+
return 1 - .7 * (Math.abs(t - n) / n);
|
|
343
|
+
}), s = () => {
|
|
344
|
+
let e = _.current ? a : 0;
|
|
345
|
+
v.current += (e - v.current) * .15;
|
|
346
|
+
}, c = (n, r) => {
|
|
347
|
+
s();
|
|
348
|
+
let i = k(r), [a, c, l] = y.current;
|
|
349
|
+
y.current = [
|
|
350
|
+
a + (i[0] - a) * .08,
|
|
351
|
+
c + (i[1] - c) * .08,
|
|
352
|
+
l + (i[2] - l) * .08
|
|
353
|
+
];
|
|
354
|
+
let [u, d, p] = y.current.map(Math.round), m = `rgb(${u},${d},${p})`;
|
|
355
|
+
for (let r = 0; r < T; r++) {
|
|
356
|
+
let i = f.current[r];
|
|
357
|
+
if (!i) continue;
|
|
358
|
+
let a = e === "idle" ? o[r] : 1, s = v.current * a;
|
|
359
|
+
i.style.height = `${Math.min(n[r] + s, t)}px`, i.style.background = m, i.style.animation = "none";
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
if (e === "listening" || e === "speaking") {
|
|
363
|
+
let i = e === "speaking" ? 1 : .4, a = () => {
|
|
364
|
+
let o = g.current, s = Date.now() / 1e3;
|
|
365
|
+
for (let r = 0; r < T; r++) {
|
|
366
|
+
let a = .5 + .15 * Math.sin(s * E * i * Math.PI * 2 + r * D), c = n + (t - n) * o * a;
|
|
367
|
+
if (b.current !== null) {
|
|
368
|
+
let e = Date.now() - b.current, t = Math.min(e / 300, 1), n = 1 - (1 - t) * (1 - t);
|
|
369
|
+
c = x.current[r] + (c - x.current[r]) * n, t >= 1 && (b.current = null);
|
|
370
|
+
}
|
|
371
|
+
let l = e === "listening" ? .45 : 1;
|
|
372
|
+
h.current[r] += (c - h.current[r]) * l;
|
|
373
|
+
}
|
|
374
|
+
c(h.current, r), m.current = requestAnimationFrame(a);
|
|
375
|
+
};
|
|
376
|
+
return m.current = requestAnimationFrame(a), () => cancelAnimationFrame(m.current);
|
|
377
|
+
}
|
|
378
|
+
if (e === "connecting") {
|
|
379
|
+
let e = Date.now(), i = () => {
|
|
380
|
+
let a = (Date.now() - e) / 1e3;
|
|
381
|
+
s();
|
|
382
|
+
for (let e = 0; e < T; e++) {
|
|
383
|
+
let r = (a * .6 + e / T * .5) % 1, i = r < .5 ? Math.sin(r / .5 * Math.PI) : 0, o = n + (t * .4 - n) * i;
|
|
384
|
+
h.current[e] += (o - h.current[e]) * .15;
|
|
385
|
+
}
|
|
386
|
+
c(h.current, r), m.current = requestAnimationFrame(i);
|
|
387
|
+
};
|
|
388
|
+
return m.current = requestAnimationFrame(i), () => cancelAnimationFrame(m.current);
|
|
389
|
+
}
|
|
390
|
+
cancelAnimationFrame(m.current);
|
|
391
|
+
let l = () => {
|
|
392
|
+
s();
|
|
393
|
+
for (let e = 0; e < T; e++) h.current[e] += (n - h.current[e]) * .16;
|
|
394
|
+
c(h.current, r), m.current = requestAnimationFrame(l);
|
|
395
|
+
};
|
|
396
|
+
return m.current = requestAnimationFrame(l), () => cancelAnimationFrame(m.current);
|
|
397
|
+
}, [e, i]);
|
|
398
|
+
let C = i * .055, w = i * .035, A = i * .03, j = i * .55, M = i * .06, N = {
|
|
399
|
+
width: i,
|
|
400
|
+
height: i,
|
|
401
|
+
display: "flex",
|
|
402
|
+
alignItems: "center",
|
|
403
|
+
justifyContent: "center",
|
|
404
|
+
position: "relative",
|
|
405
|
+
...s
|
|
406
|
+
}, P = /* @__PURE__ */ a("span", {
|
|
407
|
+
ref: p,
|
|
408
|
+
onMouseEnter: () => {
|
|
409
|
+
c || (_.current = !0, p.current && (p.current.style.filter = "brightness(1.35)"));
|
|
410
|
+
},
|
|
411
|
+
onMouseLeave: () => {
|
|
412
|
+
_.current = !1, p.current && (p.current.style.filter = "brightness(1)");
|
|
413
|
+
},
|
|
414
|
+
onTouchEnd: () => {
|
|
415
|
+
setTimeout(() => {
|
|
416
|
+
_.current = !1, p.current && (p.current.style.filter = "brightness(1)");
|
|
417
|
+
}, 200);
|
|
418
|
+
},
|
|
419
|
+
style: {
|
|
420
|
+
display: "flex",
|
|
421
|
+
alignItems: "center",
|
|
422
|
+
justifyContent: "center",
|
|
423
|
+
gap: w,
|
|
424
|
+
transition: "filter 0.3s ease",
|
|
425
|
+
cursor: l ? c ? "not-allowed" : "pointer" : "default"
|
|
426
|
+
},
|
|
427
|
+
children: Array.from({ length: T }, (t, n) => /* @__PURE__ */ a("span", {
|
|
428
|
+
ref: (e) => {
|
|
429
|
+
f.current[n] = e;
|
|
430
|
+
},
|
|
431
|
+
style: {
|
|
432
|
+
width: C,
|
|
433
|
+
minHeight: M,
|
|
434
|
+
maxHeight: j,
|
|
435
|
+
height: M,
|
|
436
|
+
borderRadius: A,
|
|
437
|
+
background: O[e] ?? O.idle
|
|
438
|
+
}
|
|
439
|
+
}, n))
|
|
440
|
+
});
|
|
441
|
+
return l ? /* @__PURE__ */ a("button", {
|
|
442
|
+
...d,
|
|
443
|
+
type: "button",
|
|
444
|
+
className: o,
|
|
445
|
+
disabled: c,
|
|
446
|
+
onClick: c ? void 0 : u,
|
|
447
|
+
style: {
|
|
448
|
+
appearance: "none",
|
|
449
|
+
WebkitAppearance: "none",
|
|
450
|
+
border: 0,
|
|
451
|
+
padding: 0,
|
|
452
|
+
margin: 0,
|
|
453
|
+
background: "transparent",
|
|
454
|
+
color: "inherit",
|
|
455
|
+
font: "inherit",
|
|
456
|
+
cursor: c ? "not-allowed" : "pointer",
|
|
457
|
+
...N
|
|
458
|
+
},
|
|
459
|
+
children: P
|
|
460
|
+
}) : /* @__PURE__ */ a("div", {
|
|
461
|
+
...d,
|
|
462
|
+
className: o,
|
|
463
|
+
style: N,
|
|
464
|
+
children: P
|
|
465
|
+
});
|
|
424
466
|
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
467
|
+
//#endregion
|
|
468
|
+
//#region src/components/Orb/Orb.tsx
|
|
469
|
+
function j() {
|
|
470
|
+
let e = null, t = null, n = null, r = 0, i = 0, a = null;
|
|
471
|
+
if (typeof navigator < "u" && navigator.mediaDevices?.getUserMedia) {
|
|
472
|
+
let e = navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);
|
|
473
|
+
navigator.mediaDevices.getUserMedia = async (t) => {
|
|
474
|
+
let n = await e(t);
|
|
475
|
+
return t?.audio && (a = n), n;
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
function o(o) {
|
|
479
|
+
if (!(!a || t)) try {
|
|
480
|
+
e = new AudioContext(), t = e.createAnalyser(), t.fftSize = 256, n = e.createMediaStreamSource(a), n.connect(t);
|
|
481
|
+
let c = new Uint8Array(t.frequencyBinCount), l = () => {
|
|
482
|
+
if (!t) return;
|
|
483
|
+
t.getByteFrequencyData(c);
|
|
484
|
+
let e = 0;
|
|
485
|
+
for (let t = 0; t < c.length; t++) e += c[t] * c[t];
|
|
486
|
+
let n = Math.sqrt(e / c.length) / 255, a = n > i ? .7 : .3;
|
|
487
|
+
i += (n - i) * a, o(s(i)), r = requestAnimationFrame(l);
|
|
488
|
+
};
|
|
489
|
+
r = requestAnimationFrame(l);
|
|
490
|
+
} catch (e) {
|
|
491
|
+
console.warn("[orb-ui] Mic monitor failed:", e);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
function c() {
|
|
495
|
+
cancelAnimationFrame(r), r = 0, i = 0, n?.disconnect(), n = null, t = null;
|
|
496
|
+
}
|
|
497
|
+
function l() {
|
|
498
|
+
c(), e &&= (e.close().catch(() => {}), null), a?.getTracks().forEach((e) => {
|
|
499
|
+
e.readyState === "live" && e.stop();
|
|
500
|
+
}), a = null;
|
|
501
|
+
}
|
|
502
|
+
return {
|
|
503
|
+
start: o,
|
|
504
|
+
stop: c,
|
|
505
|
+
release: l
|
|
506
|
+
};
|
|
462
507
|
}
|
|
463
|
-
function
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
508
|
+
function M({ state: n, volume: o, adapter: s, theme: c = "debug", size: l = 200, className: d, style: f, disabled: p = !1, onStart: m, onStop: h, ...g }) {
|
|
509
|
+
let [_, v] = i("idle"), [y, b] = i(0), [x, S] = i(0), C = r(j()), T = r(!1);
|
|
510
|
+
t(() => {
|
|
511
|
+
if (v("idle"), b(0), S(0), s) return s.subscribe({
|
|
512
|
+
onStateChange: v,
|
|
513
|
+
onVolumeChange: b
|
|
514
|
+
});
|
|
515
|
+
}, [s]);
|
|
516
|
+
let E = n ?? _;
|
|
517
|
+
t(() => {
|
|
518
|
+
let e = C.current;
|
|
519
|
+
if (E === "listening" && s) {
|
|
520
|
+
let t = setTimeout(() => {
|
|
521
|
+
e.start(S), T.current = !0;
|
|
522
|
+
}, 500);
|
|
523
|
+
return () => {
|
|
524
|
+
clearTimeout(t), e.stop(), T.current = !1, S(0);
|
|
525
|
+
};
|
|
526
|
+
} else e.stop(), T.current = !1, S(0);
|
|
527
|
+
}, [E, s]), t(() => () => C.current.release(), []);
|
|
528
|
+
let D = o ?? (E === "listening" && T.current ? x : y), O = E !== "idle" && E !== "error", k = e(() => {
|
|
529
|
+
p || (O ? h ? h() : s?.stop?.() : m ? m() : s?.start?.());
|
|
530
|
+
}, [
|
|
531
|
+
s,
|
|
532
|
+
p,
|
|
533
|
+
O,
|
|
534
|
+
m,
|
|
535
|
+
h
|
|
536
|
+
]), M = O ? !!(s?.stop || h) : !!(s?.start || m), N = M && !p ? k : void 0, P = {
|
|
537
|
+
state: E,
|
|
538
|
+
volume: D,
|
|
539
|
+
size: l,
|
|
540
|
+
className: d,
|
|
541
|
+
style: f,
|
|
542
|
+
disabled: p,
|
|
543
|
+
...g,
|
|
544
|
+
"aria-label": g["aria-label"] ?? (M ? `${O ? "Stop" : "Start"} voice session` : void 0)
|
|
545
|
+
}, F = {
|
|
546
|
+
...P,
|
|
547
|
+
interactive: M
|
|
548
|
+
};
|
|
549
|
+
switch (c) {
|
|
550
|
+
case "circle": return /* @__PURE__ */ a(w, {
|
|
551
|
+
...F,
|
|
552
|
+
onClick: N
|
|
553
|
+
});
|
|
554
|
+
case "bars": return /* @__PURE__ */ a(A, {
|
|
555
|
+
...F,
|
|
556
|
+
onClick: N
|
|
557
|
+
});
|
|
558
|
+
default: return /* @__PURE__ */ a(u, {
|
|
559
|
+
...P,
|
|
560
|
+
onStart: p ? void 0 : m ?? (() => s?.start?.()),
|
|
561
|
+
onStop: p ? void 0 : h ?? (() => s?.stop?.())
|
|
562
|
+
});
|
|
563
|
+
}
|
|
518
564
|
}
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
pe as VoiceOrb
|
|
522
|
-
};
|
|
565
|
+
//#endregion
|
|
566
|
+
export { M as Orb, M as VoiceOrb };
|