@vanira/sdk 0.0.88 → 0.0.90
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/headless/index.cjs +211 -113
- package/dist/headless/index.js +17178 -12997
- package/dist/platforms/browser.cjs +9 -9
- package/dist/platforms/browser.js +681 -672
- package/dist/platforms/react-native.cjs +2 -2
- package/dist/platforms/react-native.js +164 -155
- package/dist/vanira-sdk.es.js +17606 -13417
- package/dist/vanira-sdk.js +243 -145
- package/dist/vanira-sdk.umd.js +252 -154
- package/package.json +2 -1
|
@@ -81,7 +81,7 @@ class pd {
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
const js = "https://api.vanira.io",
|
|
84
|
+
const js = "https://api.vanira.io", x = {
|
|
85
85
|
Form: "vanira_form",
|
|
86
86
|
Calendar: "vanira_calendar",
|
|
87
87
|
Navigate: "vanira_navigate",
|
|
@@ -108,7 +108,16 @@ const js = "https://api.vanira.io", N = {
|
|
|
108
108
|
KycDocumentCapture: "vanira_kyc_document_capture",
|
|
109
109
|
KycSelfieCapture: "vanira_kyc_selfie_capture",
|
|
110
110
|
KycSignatureCapture: "vanira_kyc_signature_capture"
|
|
111
|
-
}, fd = Object.values(
|
|
111
|
+
}, fd = Object.values(x), md = new Set(fd), gd = /* @__PURE__ */ new Set([
|
|
112
|
+
x.KycDocumentCapture,
|
|
113
|
+
x.KycSelfieCapture,
|
|
114
|
+
x.KycSignatureCapture
|
|
115
|
+
]);
|
|
116
|
+
[
|
|
117
|
+
...gd,
|
|
118
|
+
x.Form,
|
|
119
|
+
x.Upload
|
|
120
|
+
];
|
|
112
121
|
function Sr(i) {
|
|
113
122
|
return !!i && md.has(i);
|
|
114
123
|
}
|
|
@@ -122,67 +131,67 @@ function Ya(i) {
|
|
|
122
131
|
return i && typeof i == "object" ? i : {};
|
|
123
132
|
}
|
|
124
133
|
const Cr = {
|
|
125
|
-
type_on_whiteboard:
|
|
126
|
-
write_on_whiteboard:
|
|
127
|
-
write_on_white_board:
|
|
128
|
-
dom_typing_simulation:
|
|
129
|
-
write_latex_text:
|
|
130
|
-
write_latex_on_board:
|
|
131
|
-
latex_on_whiteboard:
|
|
132
|
-
show_geogebra:
|
|
133
|
-
geogebra_diagram:
|
|
134
|
-
geogebra:
|
|
135
|
-
erase_text:
|
|
136
|
-
dom_erase:
|
|
137
|
-
open_live_camera:
|
|
138
|
-
live_vision:
|
|
139
|
-
close_live_camera:
|
|
140
|
-
stop_live_camera:
|
|
141
|
-
open_live_screen:
|
|
142
|
-
close_live_screen:
|
|
143
|
-
screen_vision:
|
|
144
|
-
capture_screen_vision:
|
|
145
|
-
capture_screen:
|
|
146
|
-
tab_screenshot:
|
|
147
|
-
capture_tab:
|
|
148
|
-
capture_tab_screenshot:
|
|
149
|
-
screenshot_tab:
|
|
150
|
-
point_at:
|
|
151
|
-
point_at_screen:
|
|
152
|
-
draw_on_screen:
|
|
153
|
-
screen_draw:
|
|
154
|
-
clear_screen_draw:
|
|
155
|
-
clear_screen_annotations:
|
|
156
|
-
highlight_on_screen:
|
|
157
|
-
highlight_element_on_screen:
|
|
158
|
-
highlight_screen_element:
|
|
159
|
-
kyc_document_capture:
|
|
160
|
-
capture_id_document:
|
|
161
|
-
document_capture:
|
|
162
|
-
capture_kyc_document:
|
|
163
|
-
kyc_selfie_capture:
|
|
164
|
-
capture_selfie:
|
|
165
|
-
selfie_capture:
|
|
166
|
-
capture_kyc_selfie:
|
|
167
|
-
kyc_signature_capture:
|
|
168
|
-
capture_kyc_signature:
|
|
169
|
-
signature_capture:
|
|
134
|
+
type_on_whiteboard: x.TypeText,
|
|
135
|
+
write_on_whiteboard: x.TypeText,
|
|
136
|
+
write_on_white_board: x.TypeText,
|
|
137
|
+
dom_typing_simulation: x.TypeText,
|
|
138
|
+
write_latex_text: x.WriteLatexText,
|
|
139
|
+
write_latex_on_board: x.WriteLatexText,
|
|
140
|
+
latex_on_whiteboard: x.WriteLatexText,
|
|
141
|
+
show_geogebra: x.GeoGebra,
|
|
142
|
+
geogebra_diagram: x.GeoGebra,
|
|
143
|
+
geogebra: x.GeoGebra,
|
|
144
|
+
erase_text: x.EraseText,
|
|
145
|
+
dom_erase: x.EraseText,
|
|
146
|
+
open_live_camera: x.LiveVision,
|
|
147
|
+
live_vision: x.LiveVision,
|
|
148
|
+
close_live_camera: x.CloseLiveCamera,
|
|
149
|
+
stop_live_camera: x.CloseLiveCamera,
|
|
150
|
+
open_live_screen: x.LiveScreen,
|
|
151
|
+
close_live_screen: x.CloseLiveScreen,
|
|
152
|
+
screen_vision: x.ScreenVision,
|
|
153
|
+
capture_screen_vision: x.ScreenVision,
|
|
154
|
+
capture_screen: x.ScreenVision,
|
|
155
|
+
tab_screenshot: x.ScreenVision,
|
|
156
|
+
capture_tab: x.ScreenVision,
|
|
157
|
+
capture_tab_screenshot: x.ScreenVision,
|
|
158
|
+
screenshot_tab: x.ScreenVision,
|
|
159
|
+
point_at: x.PointAt,
|
|
160
|
+
point_at_screen: x.PointAt,
|
|
161
|
+
draw_on_screen: x.DrawOnScreen,
|
|
162
|
+
screen_draw: x.DrawOnScreen,
|
|
163
|
+
clear_screen_draw: x.ClearScreenDraw,
|
|
164
|
+
clear_screen_annotations: x.ClearScreenDraw,
|
|
165
|
+
highlight_on_screen: x.HighlightOnScreen,
|
|
166
|
+
highlight_element_on_screen: x.HighlightOnScreen,
|
|
167
|
+
highlight_screen_element: x.HighlightOnScreen,
|
|
168
|
+
kyc_document_capture: x.KycDocumentCapture,
|
|
169
|
+
capture_id_document: x.KycDocumentCapture,
|
|
170
|
+
document_capture: x.KycDocumentCapture,
|
|
171
|
+
capture_kyc_document: x.KycDocumentCapture,
|
|
172
|
+
kyc_selfie_capture: x.KycSelfieCapture,
|
|
173
|
+
capture_selfie: x.KycSelfieCapture,
|
|
174
|
+
selfie_capture: x.KycSelfieCapture,
|
|
175
|
+
capture_kyc_selfie: x.KycSelfieCapture,
|
|
176
|
+
kyc_signature_capture: x.KycSignatureCapture,
|
|
177
|
+
capture_kyc_signature: x.KycSignatureCapture,
|
|
178
|
+
signature_capture: x.KycSignatureCapture
|
|
170
179
|
}, _r = {
|
|
171
|
-
vanira_tab_screenshot:
|
|
172
|
-
vanira_document_capture:
|
|
173
|
-
vanira_selfie_capture:
|
|
174
|
-
vanira_signature_capture:
|
|
175
|
-
vanira_kyc_signature:
|
|
180
|
+
vanira_tab_screenshot: x.ScreenVision,
|
|
181
|
+
vanira_document_capture: x.KycDocumentCapture,
|
|
182
|
+
vanira_selfie_capture: x.KycSelfieCapture,
|
|
183
|
+
vanira_signature_capture: x.KycSignatureCapture,
|
|
184
|
+
vanira_kyc_signature: x.KycSignatureCapture
|
|
176
185
|
};
|
|
177
|
-
function
|
|
186
|
+
function vd(i, e) {
|
|
178
187
|
const t = i.commands ?? (e == null ? void 0 : e.commands) ?? i.construction ?? (e == null ? void 0 : e.construction) ?? i.geogebra_commands ?? (e == null ? void 0 : e.geogebra_commands) ?? i.script ?? (e == null ? void 0 : e.script);
|
|
179
188
|
return Array.isArray(t) ? t.some((n) => String(n).trim().length > 0) : typeof t == "string" && t.trim().length > 0;
|
|
180
189
|
}
|
|
181
|
-
function
|
|
190
|
+
function bd(i, e) {
|
|
182
191
|
const t = i.material_id ?? (e == null ? void 0 : e.material_id) ?? i.materialId ?? (e == null ? void 0 : e.materialId);
|
|
183
192
|
return typeof t == "string" && t.trim().length > 0;
|
|
184
193
|
}
|
|
185
|
-
function
|
|
194
|
+
function yd(i, e) {
|
|
186
195
|
const t = i.latex_text ?? (e == null ? void 0 : e.latex_text);
|
|
187
196
|
return typeof t == "string" && t.trim().length > 0;
|
|
188
197
|
}
|
|
@@ -190,11 +199,11 @@ function wr(i, e) {
|
|
|
190
199
|
const t = i.text_to_type ?? (e == null ? void 0 : e.text_to_type) ?? i.text ?? (e == null ? void 0 : e.text) ?? i.value ?? (e == null ? void 0 : e.value);
|
|
191
200
|
return typeof t == "string" && t.trim().length > 0;
|
|
192
201
|
}
|
|
193
|
-
function
|
|
202
|
+
function kd(i, e) {
|
|
194
203
|
const t = i.fields ?? (e == null ? void 0 : e.fields);
|
|
195
204
|
return Array.isArray(t) ? t.length > 0 : typeof t == "string" ? t.split(",").map((n) => n.trim()).filter(Boolean).length > 0 : !1;
|
|
196
205
|
}
|
|
197
|
-
function
|
|
206
|
+
function Td(i, e) {
|
|
198
207
|
const t = i == null ? void 0 : i.preset_id;
|
|
199
208
|
if (typeof t == "string") {
|
|
200
209
|
if (Sr(t)) return t;
|
|
@@ -208,21 +217,21 @@ function kd(i, e) {
|
|
|
208
217
|
if (r) return r;
|
|
209
218
|
}
|
|
210
219
|
}
|
|
211
|
-
function
|
|
220
|
+
function Sd(i, e, t) {
|
|
212
221
|
const n = Ya(e);
|
|
213
|
-
let s =
|
|
214
|
-
if (s ===
|
|
215
|
-
return
|
|
222
|
+
let s = Td(i, n);
|
|
223
|
+
if (s === x.Form && wr(n, i) && !kd(n, i))
|
|
224
|
+
return x.TypeText;
|
|
216
225
|
if (s) return s;
|
|
217
226
|
const r = String(t ?? "").trim().toLowerCase();
|
|
218
227
|
if (r && Cr[r])
|
|
219
228
|
return Cr[r];
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
222
|
-
if (
|
|
223
|
-
return
|
|
229
|
+
if (vd(n, i) || bd(n, i))
|
|
230
|
+
return x.GeoGebra;
|
|
231
|
+
if (yd(n, i))
|
|
232
|
+
return x.WriteLatexText;
|
|
224
233
|
if (wr(n, i))
|
|
225
|
-
return
|
|
234
|
+
return x.TypeText;
|
|
226
235
|
}
|
|
227
236
|
const Zn = "vanira_latest_call_id", us = "vanira_prospect_id";
|
|
228
237
|
function ei(i) {
|
|
@@ -272,7 +281,7 @@ function Er(i) {
|
|
|
272
281
|
1
|
|
273
282
|
), n(ht(window.localStorage, Zn), a, 0), n(ht(window.sessionStorage, Zn), a, 0), e.length ? (e.sort((o, d) => d.updatedAt - o.updatedAt), e[0]) : null;
|
|
274
283
|
}
|
|
275
|
-
function
|
|
284
|
+
function Cd(i, e, t) {
|
|
276
285
|
var s, r, a, o, d, c, l, u, h;
|
|
277
286
|
if (typeof window > "u" || !i || !e) return;
|
|
278
287
|
const n = {
|
|
@@ -285,17 +294,17 @@ function Sd(i, e, t) {
|
|
|
285
294
|
} catch {
|
|
286
295
|
}
|
|
287
296
|
}
|
|
288
|
-
const ji = 16 * 1024,
|
|
297
|
+
const ji = 16 * 1024, _d = 256 * 1024;
|
|
289
298
|
function Wi(i, e) {
|
|
290
299
|
return (i == null ? void 0 : i.readyState) === "open" && (e == null ? void 0 : e.readyState) === "open";
|
|
291
300
|
}
|
|
292
|
-
function
|
|
301
|
+
function wd(i, e) {
|
|
293
302
|
return {
|
|
294
303
|
control: (i == null ? void 0 : i.readyState) ?? "missing",
|
|
295
304
|
mediaBytes: (e == null ? void 0 : e.readyState) ?? "missing"
|
|
296
305
|
};
|
|
297
306
|
}
|
|
298
|
-
async function
|
|
307
|
+
async function Ed(i, e, t = 8e3) {
|
|
299
308
|
if (Wi(i, e))
|
|
300
309
|
return !0;
|
|
301
310
|
const n = Date.now() + t;
|
|
@@ -307,10 +316,10 @@ async function wd(i, e, t = 8e3) {
|
|
|
307
316
|
return Wi(i, e);
|
|
308
317
|
}
|
|
309
318
|
async function Pr(i) {
|
|
310
|
-
for (; i.bufferedAmount >
|
|
319
|
+
for (; i.bufferedAmount > _d; )
|
|
311
320
|
await new Promise((e) => setTimeout(e, 10));
|
|
312
321
|
}
|
|
313
|
-
async function
|
|
322
|
+
async function Pd(i) {
|
|
314
323
|
const {
|
|
315
324
|
bytes: e,
|
|
316
325
|
filename: t,
|
|
@@ -353,14 +362,14 @@ async function Ed(i) {
|
|
|
353
362
|
}
|
|
354
363
|
}), { media_id: c, url: "", content_type: n };
|
|
355
364
|
}
|
|
356
|
-
async function
|
|
365
|
+
async function Rd(i) {
|
|
357
366
|
return typeof i.arrayBuffer == "function" ? i.arrayBuffer() : new Response(i).arrayBuffer();
|
|
358
367
|
}
|
|
359
|
-
const
|
|
368
|
+
const Id = 15e3, hs = "vanira-connect-stall-prompt";
|
|
360
369
|
let gn = null;
|
|
361
|
-
function
|
|
370
|
+
function Md(i = Id) {
|
|
362
371
|
typeof window > "u" || (pn(!1), gn = setTimeout(() => {
|
|
363
|
-
gn = null,
|
|
372
|
+
gn = null, Dd(), window.dispatchEvent(new CustomEvent("vanira:connect-stall"));
|
|
364
373
|
}, i));
|
|
365
374
|
}
|
|
366
375
|
function pn(i = !0) {
|
|
@@ -370,7 +379,7 @@ function ps() {
|
|
|
370
379
|
var i;
|
|
371
380
|
typeof document > "u" || (i = document.getElementById(hs)) == null || i.remove();
|
|
372
381
|
}
|
|
373
|
-
function
|
|
382
|
+
function Dd() {
|
|
374
383
|
var t, n;
|
|
375
384
|
if (typeof document > "u" || document.getElementById(hs)) return;
|
|
376
385
|
const i = document.createElement("div");
|
|
@@ -414,13 +423,13 @@ function Md() {
|
|
|
414
423
|
ps(), window.location.reload();
|
|
415
424
|
}), (n = e.querySelector("#vanira-stall-dismiss")) == null || n.addEventListener("click", () => ps());
|
|
416
425
|
}
|
|
417
|
-
function
|
|
426
|
+
function Ad(i) {
|
|
418
427
|
return null;
|
|
419
428
|
}
|
|
420
429
|
function Ln() {
|
|
421
430
|
return typeof window > "u" ? "/" : `${window.location.pathname}${window.location.search}${window.location.hash}` || "/";
|
|
422
431
|
}
|
|
423
|
-
class
|
|
432
|
+
class Od {
|
|
424
433
|
constructor(e) {
|
|
425
434
|
D(this, "active", !1);
|
|
426
435
|
D(this, "initialSent", !1);
|
|
@@ -501,7 +510,7 @@ class Ad {
|
|
|
501
510
|
this.scheduleInitialContextSend();
|
|
502
511
|
return;
|
|
503
512
|
}
|
|
504
|
-
!this.isReady() ||
|
|
513
|
+
!this.isReady() || Ad() || this.sendRouteContext("route_changed", n, t, "user");
|
|
505
514
|
}
|
|
506
515
|
sendRouteContext(e, t, n, s = "user") {
|
|
507
516
|
const r = Ln();
|
|
@@ -621,7 +630,7 @@ const st = class st {
|
|
|
621
630
|
client_fields: l.client_fields || {}
|
|
622
631
|
};
|
|
623
632
|
u.name && u.tool_call_id && this.emit("tool_call", u);
|
|
624
|
-
}, this.runtime = e.runtime, typeof window < "u" && e.trackRouteContext !== !1 && (this.routeTracker = new
|
|
633
|
+
}, this.runtime = e.runtime, typeof window < "u" && e.trackRouteContext !== !1 && (this.routeTracker = new Od({
|
|
625
634
|
sendContext: (c) => this.sendContextUpdate(c),
|
|
626
635
|
isReady: () => {
|
|
627
636
|
var c;
|
|
@@ -647,7 +656,7 @@ const st = class st {
|
|
|
647
656
|
*/
|
|
648
657
|
async connect() {
|
|
649
658
|
var t;
|
|
650
|
-
this._status = "connecting", this.connectStallTimeoutMs > 0 &&
|
|
659
|
+
this._status = "connecting", this.connectStallTimeoutMs > 0 && Md(this.connectStallTimeoutMs);
|
|
651
660
|
const e = ++this.connectGeneration;
|
|
652
661
|
if (await this.loadCallSession(), !this.isConnectCancelled(e)) {
|
|
653
662
|
if (!this.serverUrl)
|
|
@@ -736,8 +745,8 @@ const st = class st {
|
|
|
736
745
|
}, this.onRemoteTrack(h, p)) : h.kind === "video" && this.onRemoteTrack(h, p);
|
|
737
746
|
};
|
|
738
747
|
const r = () => {
|
|
739
|
-
var p, g, m, T, k, S,
|
|
740
|
-
const u = ((p = this.pc) == null ? void 0 : p.connectionState) === "connected" || ((g = this.pc) == null ? void 0 : g.iceConnectionState) === "connected" || ((m = this.pc) == null ? void 0 : m.iceConnectionState) === "completed", h = ((T = this.pc) == null ? void 0 : T.connectionState) === "failed" || ((k = this.pc) == null ? void 0 : k.iceConnectionState) === "failed" || ((S = this.pc) == null ? void 0 : S.connectionState) === "closed" || ((
|
|
748
|
+
var p, g, m, T, k, S, N, v, y, C, I;
|
|
749
|
+
const u = ((p = this.pc) == null ? void 0 : p.connectionState) === "connected" || ((g = this.pc) == null ? void 0 : g.iceConnectionState) === "connected" || ((m = this.pc) == null ? void 0 : m.iceConnectionState) === "completed", h = ((T = this.pc) == null ? void 0 : T.connectionState) === "failed" || ((k = this.pc) == null ? void 0 : k.iceConnectionState) === "failed" || ((S = this.pc) == null ? void 0 : S.connectionState) === "closed" || ((N = this.pc) == null ? void 0 : N.iceConnectionState) === "closed" || ((v = this.pc) == null ? void 0 : v.connectionState) === "disconnected" || ((y = this.pc) == null ? void 0 : y.iceConnectionState) === "disconnected";
|
|
741
750
|
((C = this.pc) == null ? void 0 : C.connectionState) === "connected" && this.stopRemoteIcePolling(), u && !this.connected ? (this.connected = !0, (I = this.routeTracker) == null || I.start(), this.onConnected()) : h && this.connected && (this.connected = !1, this.liveVisionAutoStarted = !1, this.onDisconnected());
|
|
742
751
|
};
|
|
743
752
|
this.pc.onconnectionstatechange = r, this.pc.oniceconnectionstatechange = r;
|
|
@@ -816,7 +825,7 @@ const st = class st {
|
|
|
816
825
|
};
|
|
817
826
|
}
|
|
818
827
|
applyCreateCallSession(e) {
|
|
819
|
-
if (this.callId = e.callId, this.prospectId = e.prospectId || this.prospectId, this.serverUrl = e.serverUrl, this.iceServers = e.iceServers, this.callSessionLoaded = !0,
|
|
828
|
+
if (this.callId = e.callId, this.prospectId = e.prospectId || this.prospectId, this.serverUrl = e.serverUrl, this.iceServers = e.iceServers, this.callSessionLoaded = !0, Cd(this.agentId, this.callId || "", this.prospectId), this.onSessionStarted && this.prospectId && this.callId && !this.sessionStartedEmitted)
|
|
820
829
|
try {
|
|
821
830
|
this.onSessionStarted({ prospectId: this.prospectId, callId: this.callId, serverUrl: this.serverUrl }), this.sessionStartedEmitted = !0;
|
|
822
831
|
} catch {
|
|
@@ -980,7 +989,7 @@ const st = class st {
|
|
|
980
989
|
name: "open_live_camera",
|
|
981
990
|
tool_call_id: `lv_${crypto.randomUUID()}`,
|
|
982
991
|
execution_mode: "fire_and_forget",
|
|
983
|
-
client_fields: { preset_id:
|
|
992
|
+
client_fields: { preset_id: x.LiveVision },
|
|
984
993
|
arguments: {
|
|
985
994
|
mode: "live",
|
|
986
995
|
scope: t,
|
|
@@ -1008,7 +1017,7 @@ const st = class st {
|
|
|
1008
1017
|
this.dispatchBoardAbort(
|
|
1009
1018
|
"User interrupted while LaTeX was writing",
|
|
1010
1019
|
void 0,
|
|
1011
|
-
|
|
1020
|
+
x.WriteLatexText
|
|
1012
1021
|
);
|
|
1013
1022
|
break;
|
|
1014
1023
|
case "transcription":
|
|
@@ -1032,7 +1041,7 @@ const st = class st {
|
|
|
1032
1041
|
event: "client_tool_ack",
|
|
1033
1042
|
data: { tool_call_id: s }
|
|
1034
1043
|
}));
|
|
1035
|
-
const r = (n == null ? void 0 : n.arguments) || (n == null ? void 0 : n.args) || {}, a = (n == null ? void 0 : n.client_fields) || {}, o = (n == null ? void 0 : n.name) || (n == null ? void 0 : n.tool_name) || "", d =
|
|
1044
|
+
const r = (n == null ? void 0 : n.arguments) || (n == null ? void 0 : n.args) || {}, a = (n == null ? void 0 : n.client_fields) || {}, o = (n == null ? void 0 : n.name) || (n == null ? void 0 : n.tool_name) || "", d = Sd(a, r, o);
|
|
1036
1045
|
if (o === "end_call") {
|
|
1037
1046
|
s && this.sendToolResult(s, {
|
|
1038
1047
|
status: "client_ack_end_call",
|
|
@@ -1180,7 +1189,7 @@ const st = class st {
|
|
|
1180
1189
|
* @param message Optional user text message about the file
|
|
1181
1190
|
*/
|
|
1182
1191
|
async uploadMedia(e, t = "general", n = "") {
|
|
1183
|
-
return await
|
|
1192
|
+
return await Ed(this.dataChannel, this.mediaBytesChannel) ? this._uploadMediaViaDataChannel(e, t, n) : (wd(this.dataChannel, this.mediaBytesChannel), this._uploadMediaViaHTTP(e, t, n));
|
|
1184
1193
|
}
|
|
1185
1194
|
/**
|
|
1186
1195
|
* Upload a live vision / screen frame — HTTP only for now, never sends client_media_update.
|
|
@@ -1199,8 +1208,8 @@ const st = class st {
|
|
|
1199
1208
|
async _uploadBytesViaDataChannel(e, t, n, s, r) {
|
|
1200
1209
|
if (!this.callId || !this.mediaBytesChannel)
|
|
1201
1210
|
throw new Error("Upload failed: call not ready for WebRTC media upload.");
|
|
1202
|
-
const a = r || (e instanceof File ? e.name : s === "frame" ? "frame.jpg" : "upload.bin"), o = e.type || (s === "frame" ? "image/jpeg" : "application/octet-stream"), d = await
|
|
1203
|
-
return
|
|
1211
|
+
const a = r || (e instanceof File ? e.name : s === "frame" ? "frame.jpg" : "upload.bin"), o = e.type || (s === "frame" ? "image/jpeg" : "application/octet-stream"), d = await Rd(e);
|
|
1212
|
+
return Pd({
|
|
1204
1213
|
bytes: d,
|
|
1205
1214
|
filename: a,
|
|
1206
1215
|
contentType: o,
|
|
@@ -1305,7 +1314,7 @@ const st = class st {
|
|
|
1305
1314
|
D(st, "inflightCreates", /* @__PURE__ */ new Map());
|
|
1306
1315
|
let fs = st;
|
|
1307
1316
|
var Ja;
|
|
1308
|
-
const
|
|
1317
|
+
const xd = {
|
|
1309
1318
|
supportsAudioEndedEvent: !0,
|
|
1310
1319
|
supportsScreenShare: typeof navigator < "u" && typeof ((Ja = navigator.mediaDevices) == null ? void 0 : Ja.getDisplayMedia) == "function",
|
|
1311
1320
|
supportsDom: typeof document < "u",
|
|
@@ -1313,25 +1322,25 @@ const Od = {
|
|
|
1313
1322
|
supportsCustomElements: typeof customElements < "u",
|
|
1314
1323
|
supportsLocalStorage: typeof localStorage < "u",
|
|
1315
1324
|
supportsBroadcastChannel: typeof BroadcastChannel < "u"
|
|
1316
|
-
},
|
|
1325
|
+
}, Ld = {
|
|
1317
1326
|
name: "browser",
|
|
1318
1327
|
callType: "web",
|
|
1319
1328
|
runtimeName: "browser",
|
|
1320
1329
|
callIdPrefix: "web_",
|
|
1321
|
-
capabilities:
|
|
1330
|
+
capabilities: xd,
|
|
1322
1331
|
audio: new dd(),
|
|
1323
1332
|
media: new ld(),
|
|
1324
1333
|
peer: new ud(),
|
|
1325
1334
|
dataChannel: new pd()
|
|
1326
1335
|
};
|
|
1327
|
-
function
|
|
1336
|
+
function Nd(i) {
|
|
1328
1337
|
return new fs({
|
|
1329
1338
|
...i,
|
|
1330
|
-
runtime:
|
|
1339
|
+
runtime: Ld
|
|
1331
1340
|
});
|
|
1332
1341
|
}
|
|
1333
|
-
const
|
|
1334
|
-
function
|
|
1342
|
+
const Wf = Nd;
|
|
1343
|
+
function Ud(i, e) {
|
|
1335
1344
|
return e.forEach(function(t) {
|
|
1336
1345
|
t && typeof t != "string" && !Array.isArray(t) && Object.keys(t).forEach(function(n) {
|
|
1337
1346
|
if (n !== "default" && !(n in i)) {
|
|
@@ -1343,12 +1352,12 @@ function Nd(i, e) {
|
|
|
1343
1352
|
});
|
|
1344
1353
|
}), Object.freeze(i);
|
|
1345
1354
|
}
|
|
1346
|
-
var
|
|
1355
|
+
var Fd = Object.defineProperty, Bd = (i, e, t) => e in i ? Fd(i, e, {
|
|
1347
1356
|
enumerable: !0,
|
|
1348
1357
|
configurable: !0,
|
|
1349
1358
|
writable: !0,
|
|
1350
1359
|
value: t
|
|
1351
|
-
}) : i[e] = t, Rr = (i, e, t) =>
|
|
1360
|
+
}) : i[e] = t, Rr = (i, e, t) => Bd(i, typeof e != "symbol" ? e + "" : e, t);
|
|
1352
1361
|
class ge {
|
|
1353
1362
|
constructor() {
|
|
1354
1363
|
Rr(this, "_locking"), Rr(this, "_locks"), this._locking = Promise.resolve(), this._locks = 0;
|
|
@@ -1369,22 +1378,22 @@ function se(i, e) {
|
|
|
1369
1378
|
if (!i)
|
|
1370
1379
|
throw new Error(e);
|
|
1371
1380
|
}
|
|
1372
|
-
const
|
|
1381
|
+
const Vd = 34028234663852886e22, qd = -34028234663852886e22, jd = 4294967295, Wd = 2147483647, Hd = -2147483648;
|
|
1373
1382
|
function Vn(i) {
|
|
1374
1383
|
if (typeof i != "number") throw new Error("invalid int 32: " + typeof i);
|
|
1375
|
-
if (!Number.isInteger(i) || i >
|
|
1384
|
+
if (!Number.isInteger(i) || i > Wd || i < Hd) throw new Error("invalid int 32: " + i);
|
|
1376
1385
|
}
|
|
1377
1386
|
function ms(i) {
|
|
1378
1387
|
if (typeof i != "number") throw new Error("invalid uint 32: " + typeof i);
|
|
1379
|
-
if (!Number.isInteger(i) || i >
|
|
1388
|
+
if (!Number.isInteger(i) || i > jd || i < 0) throw new Error("invalid uint 32: " + i);
|
|
1380
1389
|
}
|
|
1381
1390
|
function Xa(i) {
|
|
1382
1391
|
if (typeof i != "number") throw new Error("invalid float 32: " + typeof i);
|
|
1383
|
-
if (Number.isFinite(i) && (i >
|
|
1392
|
+
if (Number.isFinite(i) && (i > Vd || i < qd))
|
|
1384
1393
|
throw new Error("invalid float 32: " + i);
|
|
1385
1394
|
}
|
|
1386
1395
|
const Za = Symbol("@bufbuild/protobuf/enum-type");
|
|
1387
|
-
function
|
|
1396
|
+
function Kd(i) {
|
|
1388
1397
|
const e = i[Za];
|
|
1389
1398
|
return se(e, "missing enum type on enum object"), e;
|
|
1390
1399
|
}
|
|
@@ -1414,7 +1423,7 @@ function to(i, e, t) {
|
|
|
1414
1423
|
}
|
|
1415
1424
|
};
|
|
1416
1425
|
}
|
|
1417
|
-
function
|
|
1426
|
+
function Gd(i, e, t) {
|
|
1418
1427
|
const n = {};
|
|
1419
1428
|
for (const s of e) {
|
|
1420
1429
|
const r = no(s);
|
|
@@ -1525,7 +1534,7 @@ class Ws {
|
|
|
1525
1534
|
return Object.getPrototypeOf(this).constructor;
|
|
1526
1535
|
}
|
|
1527
1536
|
}
|
|
1528
|
-
function
|
|
1537
|
+
function zd(i, e, t, n) {
|
|
1529
1538
|
var s;
|
|
1530
1539
|
const r = (s = n == null ? void 0 : n.localName) !== null && s !== void 0 ? s : e.substring(e.lastIndexOf(".") + 1), a = {
|
|
1531
1540
|
[r]: function(o) {
|
|
@@ -1550,7 +1559,7 @@ function Gd(i, e, t, n) {
|
|
|
1550
1559
|
}
|
|
1551
1560
|
}), a;
|
|
1552
1561
|
}
|
|
1553
|
-
function
|
|
1562
|
+
function Jd() {
|
|
1554
1563
|
let i = 0, e = 0;
|
|
1555
1564
|
for (let n = 0; n < 28; n += 7) {
|
|
1556
1565
|
let s = this.buf[this.pos++];
|
|
@@ -1595,7 +1604,7 @@ function Ir(i) {
|
|
|
1595
1604
|
}
|
|
1596
1605
|
return r(-24, -18), r(-18, -12), r(-12, -6), r(-6), e ? so(n, s) : Hs(n, s);
|
|
1597
1606
|
}
|
|
1598
|
-
function
|
|
1607
|
+
function $d(i, e) {
|
|
1599
1608
|
let t = Hs(i, e);
|
|
1600
1609
|
const n = t.hi & 2147483648;
|
|
1601
1610
|
n && (t = so(t.lo, t.hi));
|
|
@@ -1603,7 +1612,7 @@ function Jd(i, e) {
|
|
|
1603
1612
|
return n ? "-" + s : s;
|
|
1604
1613
|
}
|
|
1605
1614
|
function io(i, e) {
|
|
1606
|
-
var t =
|
|
1615
|
+
var t = Yd(i, e);
|
|
1607
1616
|
if (i = t.lo, e = t.hi, e <= 2097151)
|
|
1608
1617
|
return String(qn * e + i);
|
|
1609
1618
|
const n = i & 16777215, s = (i >>> 24 | e << 8) & 16777215, r = e >> 16 & 65535;
|
|
@@ -1611,7 +1620,7 @@ function io(i, e) {
|
|
|
1611
1620
|
const c = 1e7;
|
|
1612
1621
|
return a >= c && (o += Math.floor(a / c), a %= c), o >= c && (d += Math.floor(o / c), o %= c), d.toString() + Mr(o) + Mr(a);
|
|
1613
1622
|
}
|
|
1614
|
-
function
|
|
1623
|
+
function Yd(i, e) {
|
|
1615
1624
|
return {
|
|
1616
1625
|
lo: i >>> 0,
|
|
1617
1626
|
hi: e >>> 0
|
|
@@ -1641,7 +1650,7 @@ function Dr(i, e) {
|
|
|
1641
1650
|
e.push(1);
|
|
1642
1651
|
}
|
|
1643
1652
|
}
|
|
1644
|
-
function
|
|
1653
|
+
function Qd() {
|
|
1645
1654
|
let i = this.buf[this.pos++], e = i & 127;
|
|
1646
1655
|
if (!(i & 128))
|
|
1647
1656
|
return this.assertBounds(), e;
|
|
@@ -1656,7 +1665,7 @@ function Yd() {
|
|
|
1656
1665
|
if (i & 128) throw new Error("invalid varint");
|
|
1657
1666
|
return this.assertBounds(), e >>> 0;
|
|
1658
1667
|
}
|
|
1659
|
-
function
|
|
1668
|
+
function Xd() {
|
|
1660
1669
|
const i = new DataView(new ArrayBuffer(8));
|
|
1661
1670
|
if (typeof BigInt == "function" && typeof i.getBigInt64 == "function" && typeof i.getBigUint64 == "function" && typeof i.setBigInt64 == "function" && typeof i.setBigUint64 == "function" && (typeof process != "object" || typeof process.env != "object" || process.env.BUF_BIGINT_DISABLE !== "1")) {
|
|
1662
1671
|
const s = BigInt("-9223372036854775808"), r = BigInt("9223372036854775807"), a = BigInt("0"), o = BigInt("18446744073709551615");
|
|
@@ -1712,14 +1721,14 @@ function Qd() {
|
|
|
1712
1721
|
return typeof s != "string" && (s = s.toString()), n(s), Ir(s);
|
|
1713
1722
|
},
|
|
1714
1723
|
dec(s, r) {
|
|
1715
|
-
return
|
|
1724
|
+
return $d(s, r);
|
|
1716
1725
|
},
|
|
1717
1726
|
uDec(s, r) {
|
|
1718
1727
|
return io(s, r);
|
|
1719
1728
|
}
|
|
1720
1729
|
};
|
|
1721
1730
|
}
|
|
1722
|
-
const te =
|
|
1731
|
+
const te = Xd();
|
|
1723
1732
|
var w;
|
|
1724
1733
|
(function(i) {
|
|
1725
1734
|
i[i.DOUBLE = 1] = "DOUBLE", i[i.FLOAT = 2] = "FLOAT", i[i.INT64 = 3] = "INT64", i[i.UINT64 = 4] = "UINT64", i[i.INT32 = 5] = "INT32", i[i.FIXED64 = 6] = "FIXED64", i[i.FIXED32 = 7] = "FIXED32", i[i.BOOL = 8] = "BOOL", i[i.STRING = 9] = "STRING", i[i.BYTES = 12] = "BYTES", i[i.UINT32 = 13] = "UINT32", i[i.SFIXED32 = 15] = "SFIXED32", i[i.SFIXED64 = 16] = "SFIXED64", i[i.SINT32 = 17] = "SINT32", i[i.SINT64 = 18] = "SINT64";
|
|
@@ -1787,18 +1796,18 @@ function Ar(i, e) {
|
|
|
1787
1796
|
for (var t = 0, n = Array(e); t < e; t++) n[t] = i[t];
|
|
1788
1797
|
return n;
|
|
1789
1798
|
}
|
|
1790
|
-
function
|
|
1799
|
+
function Zd(i) {
|
|
1791
1800
|
if (Array.isArray(i)) return i;
|
|
1792
1801
|
}
|
|
1793
1802
|
function K(i, e, t) {
|
|
1794
|
-
return (e =
|
|
1803
|
+
return (e = il(e)) in i ? Object.defineProperty(i, e, {
|
|
1795
1804
|
value: t,
|
|
1796
1805
|
enumerable: !0,
|
|
1797
1806
|
configurable: !0,
|
|
1798
1807
|
writable: !0
|
|
1799
1808
|
}) : i[e] = t, i;
|
|
1800
1809
|
}
|
|
1801
|
-
function
|
|
1810
|
+
function el(i, e) {
|
|
1802
1811
|
var t = i == null ? null : typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
|
|
1803
1812
|
if (t != null) {
|
|
1804
1813
|
var n, s, r, a, o = [], d = !0, c = !1;
|
|
@@ -1819,14 +1828,14 @@ function Zd(i, e) {
|
|
|
1819
1828
|
return o;
|
|
1820
1829
|
}
|
|
1821
1830
|
}
|
|
1822
|
-
function
|
|
1831
|
+
function tl() {
|
|
1823
1832
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1824
1833
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1825
1834
|
}
|
|
1826
1835
|
function U(i, e) {
|
|
1827
|
-
return
|
|
1836
|
+
return Zd(i) || el(i, e) || sl(i, e) || tl();
|
|
1828
1837
|
}
|
|
1829
|
-
function
|
|
1838
|
+
function nl(i, e) {
|
|
1830
1839
|
if (typeof i != "object" || !i) return i;
|
|
1831
1840
|
var t = i[Symbol.toPrimitive];
|
|
1832
1841
|
if (t !== void 0) {
|
|
@@ -1836,11 +1845,11 @@ function tl(i, e) {
|
|
|
1836
1845
|
}
|
|
1837
1846
|
return (e === "string" ? String : Number)(i);
|
|
1838
1847
|
}
|
|
1839
|
-
function
|
|
1840
|
-
var e =
|
|
1848
|
+
function il(i) {
|
|
1849
|
+
var e = nl(i, "string");
|
|
1841
1850
|
return typeof e == "symbol" ? e : e + "";
|
|
1842
1851
|
}
|
|
1843
|
-
function
|
|
1852
|
+
function sl(i, e) {
|
|
1844
1853
|
if (i) {
|
|
1845
1854
|
if (typeof i == "string") return Ar(i, e);
|
|
1846
1855
|
var t = {}.toString.call(i).slice(8, -1);
|
|
@@ -1851,7 +1860,7 @@ var ae;
|
|
|
1851
1860
|
(function(i) {
|
|
1852
1861
|
i[i.Varint = 0] = "Varint", i[i.Bit64 = 1] = "Bit64", i[i.LengthDelimited = 2] = "LengthDelimited", i[i.StartGroup = 3] = "StartGroup", i[i.EndGroup = 4] = "EndGroup", i[i.Bit32 = 5] = "Bit32";
|
|
1853
1862
|
})(ae || (ae = {}));
|
|
1854
|
-
class
|
|
1863
|
+
class rl {
|
|
1855
1864
|
constructor(e) {
|
|
1856
1865
|
this.stack = [], this.textEncoder = e ?? new TextEncoder(), this.chunks = [], this.buf = [];
|
|
1857
1866
|
}
|
|
@@ -2010,9 +2019,9 @@ class sl {
|
|
|
2010
2019
|
return Hi(t.lo, t.hi, this.buf), this;
|
|
2011
2020
|
}
|
|
2012
2021
|
}
|
|
2013
|
-
class
|
|
2022
|
+
class al {
|
|
2014
2023
|
constructor(e, t) {
|
|
2015
|
-
this.varint64 =
|
|
2024
|
+
this.varint64 = Jd, this.uint32 = Qd, this.buf = e, this.len = e.length, this.pos = 0, this.view = new DataView(e.buffer, e.byteOffset, e.byteLength), this.textDecoder = t ?? new TextDecoder();
|
|
2016
2025
|
}
|
|
2017
2026
|
/**
|
|
2018
2027
|
* Reads a tag - field number and wire type.
|
|
@@ -2155,7 +2164,7 @@ class rl {
|
|
|
2155
2164
|
return this.textDecoder.decode(this.bytes());
|
|
2156
2165
|
}
|
|
2157
2166
|
}
|
|
2158
|
-
function
|
|
2167
|
+
function ol(i, e, t, n) {
|
|
2159
2168
|
let s;
|
|
2160
2169
|
return {
|
|
2161
2170
|
typeName: e,
|
|
@@ -2172,9 +2181,9 @@ function al(i, e, t, n) {
|
|
|
2172
2181
|
}
|
|
2173
2182
|
function ao(i) {
|
|
2174
2183
|
const e = i.field.localName, t = /* @__PURE__ */ Object.create(null);
|
|
2175
|
-
return t[e] =
|
|
2184
|
+
return t[e] = cl(i), [t, () => t[e]];
|
|
2176
2185
|
}
|
|
2177
|
-
function
|
|
2186
|
+
function cl(i) {
|
|
2178
2187
|
const e = i.field;
|
|
2179
2188
|
if (e.repeated)
|
|
2180
2189
|
return [];
|
|
@@ -2192,7 +2201,7 @@ function ol(i) {
|
|
|
2192
2201
|
throw "map fields are not allowed to be extensions";
|
|
2193
2202
|
}
|
|
2194
2203
|
}
|
|
2195
|
-
function
|
|
2204
|
+
function dl(i, e) {
|
|
2196
2205
|
if (!e.repeated && (e.kind == "enum" || e.kind == "scalar")) {
|
|
2197
2206
|
for (let t = i.length - 1; t >= 0; --t)
|
|
2198
2207
|
if (i[t].no == e.no)
|
|
@@ -2273,14 +2282,14 @@ const oo = {
|
|
|
2273
2282
|
return t && (e += at[s], e += "=", t == 1 && (e += "=")), e;
|
|
2274
2283
|
}
|
|
2275
2284
|
};
|
|
2276
|
-
function
|
|
2285
|
+
function ll(i, e, t) {
|
|
2277
2286
|
lo(e, i);
|
|
2278
|
-
const n = e.runtime.bin.makeReadOptions(t), s =
|
|
2287
|
+
const n = e.runtime.bin.makeReadOptions(t), s = dl(i.getType().runtime.bin.listUnknownFields(i), e.field), r = ao(e), a = U(r, 2), o = a[0], d = a[1];
|
|
2279
2288
|
for (const c of s)
|
|
2280
2289
|
e.runtime.bin.readField(o, n.readerFactory(c.data), e.field, c.wireType, n);
|
|
2281
2290
|
return d();
|
|
2282
2291
|
}
|
|
2283
|
-
function
|
|
2292
|
+
function ul(i, e, t, n) {
|
|
2284
2293
|
lo(e, i);
|
|
2285
2294
|
const s = e.runtime.bin.makeReadOptions(n), r = e.runtime.bin.makeWriteOptions(n);
|
|
2286
2295
|
if (co(i, e)) {
|
|
@@ -2365,17 +2374,17 @@ const xr = {
|
|
|
2365
2374
|
useProtoFieldName: !1,
|
|
2366
2375
|
prettySpaces: 0
|
|
2367
2376
|
};
|
|
2368
|
-
function
|
|
2377
|
+
function hl(i) {
|
|
2369
2378
|
return i ? Object.assign(Object.assign({}, xr), i) : xr;
|
|
2370
2379
|
}
|
|
2371
|
-
function
|
|
2380
|
+
function pl(i) {
|
|
2372
2381
|
return i ? Object.assign(Object.assign({}, Lr), i) : Lr;
|
|
2373
2382
|
}
|
|
2374
2383
|
const ni = Symbol(), jn = Symbol();
|
|
2375
|
-
function
|
|
2384
|
+
function fl() {
|
|
2376
2385
|
return {
|
|
2377
|
-
makeReadOptions:
|
|
2378
|
-
makeWriteOptions:
|
|
2386
|
+
makeReadOptions: hl,
|
|
2387
|
+
makeWriteOptions: pl,
|
|
2379
2388
|
readMessage(i, e, t, n) {
|
|
2380
2389
|
if (e == null || Array.isArray(e) || typeof e != "object")
|
|
2381
2390
|
throw new Error("cannot decode message ".concat(i.typeName, " from JSON: ").concat(Qe(e)));
|
|
@@ -2401,7 +2410,7 @@ function pl() {
|
|
|
2401
2410
|
if (h && h.extendee.typeName == i.typeName) {
|
|
2402
2411
|
u = !0;
|
|
2403
2412
|
const p = ao(h), g = U(p, 2), m = g[0], T = g[1];
|
|
2404
|
-
Nr(m, c, h.field, t, h),
|
|
2413
|
+
Nr(m, c, h.field, t, h), ul(n, h, T(), t);
|
|
2405
2414
|
}
|
|
2406
2415
|
}
|
|
2407
2416
|
if (!u && !t.ignoreUnknownFields)
|
|
@@ -2418,7 +2427,7 @@ function pl() {
|
|
|
2418
2427
|
if (!uo(s, i)) {
|
|
2419
2428
|
if (s.req)
|
|
2420
2429
|
throw "required field not set";
|
|
2421
|
-
if (!e.emitDefaultValues || !
|
|
2430
|
+
if (!e.emitDefaultValues || !gl(s))
|
|
2422
2431
|
continue;
|
|
2423
2432
|
}
|
|
2424
2433
|
const a = s.oneof ? i[s.oneof.localName].value : i[s.localName], o = Ur(s, a, e);
|
|
@@ -2429,7 +2438,7 @@ function pl() {
|
|
|
2429
2438
|
for (const a of t.runtime.bin.listUnknownFields(i)) {
|
|
2430
2439
|
const o = r.findExtensionFor(t.typeName, a.no);
|
|
2431
2440
|
if (o && co(i, o)) {
|
|
2432
|
-
const d =
|
|
2441
|
+
const d = ll(i, o, e), c = Ur(o.field, d, e);
|
|
2433
2442
|
c !== void 0 && (n[o.field.jsonName] = c);
|
|
2434
2443
|
}
|
|
2435
2444
|
}
|
|
@@ -2503,7 +2512,7 @@ function Nr(i, e, t, n, s) {
|
|
|
2503
2512
|
throw new Error("cannot decode field ".concat(s.typeName, ".").concat(t.name, " from JSON: map value null"));
|
|
2504
2513
|
let u;
|
|
2505
2514
|
try {
|
|
2506
|
-
u =
|
|
2515
|
+
u = ml(t.K, c);
|
|
2507
2516
|
} catch (h) {
|
|
2508
2517
|
let p = "cannot decode map key for field ".concat(s.typeName, ".").concat(t.name, " from JSON: ").concat(Qe(e));
|
|
2509
2518
|
throw h instanceof Error && h.message.length > 0 && (p += ": ".concat(h.message)), new Error(p);
|
|
@@ -2568,7 +2577,7 @@ function Nr(i, e, t, n, s) {
|
|
|
2568
2577
|
break;
|
|
2569
2578
|
}
|
|
2570
2579
|
}
|
|
2571
|
-
function
|
|
2580
|
+
function ml(i, e) {
|
|
2572
2581
|
if (i === w.BOOL)
|
|
2573
2582
|
switch (e) {
|
|
2574
2583
|
case "true":
|
|
@@ -2651,7 +2660,7 @@ function Ki(i, e, t, n) {
|
|
|
2651
2660
|
}
|
|
2652
2661
|
throw new Error("cannot decode enum ".concat(i.typeName, " from JSON: ").concat(Qe(e)));
|
|
2653
2662
|
}
|
|
2654
|
-
function
|
|
2663
|
+
function gl(i) {
|
|
2655
2664
|
return i.repeated || i.kind == "map" ? !0 : !(i.oneof || i.kind == "message" || i.opt || i.req);
|
|
2656
2665
|
}
|
|
2657
2666
|
function Ur(i, e, t) {
|
|
@@ -2748,21 +2757,21 @@ function Wn(i, e) {
|
|
|
2748
2757
|
}
|
|
2749
2758
|
const Ft = Symbol("@bufbuild/protobuf/unknown-fields"), Fr = {
|
|
2750
2759
|
readUnknownFields: !0,
|
|
2751
|
-
readerFactory: (i) => new
|
|
2760
|
+
readerFactory: (i) => new al(i)
|
|
2752
2761
|
}, Br = {
|
|
2753
2762
|
writeUnknownFields: !0,
|
|
2754
|
-
writerFactory: () => new
|
|
2763
|
+
writerFactory: () => new rl()
|
|
2755
2764
|
};
|
|
2756
|
-
function
|
|
2765
|
+
function vl(i) {
|
|
2757
2766
|
return i ? Object.assign(Object.assign({}, Fr), i) : Fr;
|
|
2758
2767
|
}
|
|
2759
|
-
function
|
|
2768
|
+
function bl(i) {
|
|
2760
2769
|
return i ? Object.assign(Object.assign({}, Br), i) : Br;
|
|
2761
2770
|
}
|
|
2762
|
-
function
|
|
2771
|
+
function yl() {
|
|
2763
2772
|
return {
|
|
2764
|
-
makeReadOptions:
|
|
2765
|
-
makeWriteOptions:
|
|
2773
|
+
makeReadOptions: vl,
|
|
2774
|
+
makeWriteOptions: bl,
|
|
2766
2775
|
listUnknownFields(i) {
|
|
2767
2776
|
var e;
|
|
2768
2777
|
return (e = i[Ft]) !== null && e !== void 0 ? e : [];
|
|
@@ -2829,7 +2838,7 @@ function Vr(i, e, t, n, s) {
|
|
|
2829
2838
|
case "enum":
|
|
2830
2839
|
const o = t.kind == "enum" ? w.INT32 : t.T;
|
|
2831
2840
|
let d = ii;
|
|
2832
|
-
if (t.kind == "scalar" && t.L > 0 && (d =
|
|
2841
|
+
if (t.kind == "scalar" && t.L > 0 && (d = Tl), r) {
|
|
2833
2842
|
let g = i[a];
|
|
2834
2843
|
if (n == ae.LengthDelimited && o != w.STRING && o != w.BYTES) {
|
|
2835
2844
|
let T = e.uint32() + e.pos;
|
|
@@ -2845,7 +2854,7 @@ function Vr(i, e, t, n, s) {
|
|
|
2845
2854
|
r ? i[a].push(Hn(e, new c(), s, t)) : ot(i[a]) ? Hn(e, i[a], s, t) : (i[a] = Hn(e, new c(), s, t), c.fieldWrapper && !t.oneof && !t.repeated && (i[a] = c.fieldWrapper.unwrapField(i[a])));
|
|
2846
2855
|
break;
|
|
2847
2856
|
case "map":
|
|
2848
|
-
let l =
|
|
2857
|
+
let l = kl(t, e, s), u = U(l, 2), h = u[0], p = u[1];
|
|
2849
2858
|
i[a][h] = p;
|
|
2850
2859
|
break;
|
|
2851
2860
|
}
|
|
@@ -2861,7 +2870,7 @@ function Hn(i, e, t, n) {
|
|
|
2861
2870
|
r
|
|
2862
2871
|
), e;
|
|
2863
2872
|
}
|
|
2864
|
-
function
|
|
2873
|
+
function kl(i, e, t) {
|
|
2865
2874
|
const n = e.uint32(), s = e.pos + n;
|
|
2866
2875
|
let r, a;
|
|
2867
2876
|
for (; e.pos < s; ) {
|
|
@@ -2899,7 +2908,7 @@ function yl(i, e, t) {
|
|
|
2899
2908
|
}
|
|
2900
2909
|
return [r, a];
|
|
2901
2910
|
}
|
|
2902
|
-
function
|
|
2911
|
+
function Tl(i, e) {
|
|
2903
2912
|
const t = ii(i, e);
|
|
2904
2913
|
return typeof t == "bigint" ? t.toString() : t;
|
|
2905
2914
|
}
|
|
@@ -2946,7 +2955,7 @@ function qr(i, e, t, n) {
|
|
|
2946
2955
|
let a = i.kind == "enum" ? w.INT32 : i.T;
|
|
2947
2956
|
if (s)
|
|
2948
2957
|
if (se(Array.isArray(e)), i.packed)
|
|
2949
|
-
|
|
2958
|
+
Cl(t, a, i.no, e);
|
|
2950
2959
|
else
|
|
2951
2960
|
for (const o of e)
|
|
2952
2961
|
bn(t, a, i.no, o);
|
|
@@ -2966,12 +2975,12 @@ function qr(i, e, t, n) {
|
|
|
2966
2975
|
for (const o of Object.entries(e)) {
|
|
2967
2976
|
var r = U(o, 2);
|
|
2968
2977
|
const d = r[0], c = r[1];
|
|
2969
|
-
|
|
2978
|
+
Sl(t, n, i, d, c);
|
|
2970
2979
|
}
|
|
2971
2980
|
break;
|
|
2972
2981
|
}
|
|
2973
2982
|
}
|
|
2974
|
-
function
|
|
2983
|
+
function Sl(i, e, t, n, s) {
|
|
2975
2984
|
i.tag(t.no, ae.LengthDelimited), i.fork();
|
|
2976
2985
|
let r = n;
|
|
2977
2986
|
switch (t.K) {
|
|
@@ -3008,7 +3017,7 @@ function bn(i, e, t, n) {
|
|
|
3008
3017
|
let s = po(e), r = U(s, 2), a = r[0], o = r[1];
|
|
3009
3018
|
i.tag(t, a)[o](n);
|
|
3010
3019
|
}
|
|
3011
|
-
function
|
|
3020
|
+
function Cl(i, e, t, n) {
|
|
3012
3021
|
if (!n.length)
|
|
3013
3022
|
return;
|
|
3014
3023
|
i.tag(t, ae.LengthDelimited).fork();
|
|
@@ -3038,7 +3047,7 @@ function po(i) {
|
|
|
3038
3047
|
const t = w[i].toLowerCase();
|
|
3039
3048
|
return [e, t];
|
|
3040
3049
|
}
|
|
3041
|
-
function
|
|
3050
|
+
function _l() {
|
|
3042
3051
|
return {
|
|
3043
3052
|
setEnumType: eo,
|
|
3044
3053
|
initPartial(i, e) {
|
|
@@ -3198,27 +3207,27 @@ function Nn(i) {
|
|
|
3198
3207
|
function an(i) {
|
|
3199
3208
|
return i instanceof Uint8Array ? i : new Uint8Array(i);
|
|
3200
3209
|
}
|
|
3201
|
-
function
|
|
3210
|
+
function wl(i, e, t) {
|
|
3202
3211
|
return {
|
|
3203
3212
|
syntax: i,
|
|
3204
|
-
json:
|
|
3205
|
-
bin:
|
|
3206
|
-
util: Object.assign(Object.assign({},
|
|
3213
|
+
json: fl(),
|
|
3214
|
+
bin: yl(),
|
|
3215
|
+
util: Object.assign(Object.assign({}, _l()), {
|
|
3207
3216
|
newFieldList: e,
|
|
3208
3217
|
initFields: t
|
|
3209
3218
|
}),
|
|
3210
3219
|
makeMessageType(n, s, r) {
|
|
3211
|
-
return
|
|
3220
|
+
return zd(this, n, s, r);
|
|
3212
3221
|
},
|
|
3213
|
-
makeEnum:
|
|
3222
|
+
makeEnum: Gd,
|
|
3214
3223
|
makeEnumType: to,
|
|
3215
|
-
getEnumType:
|
|
3224
|
+
getEnumType: Kd,
|
|
3216
3225
|
makeExtension(n, s, r) {
|
|
3217
|
-
return
|
|
3226
|
+
return ol(this, n, s, r);
|
|
3218
3227
|
}
|
|
3219
3228
|
};
|
|
3220
3229
|
}
|
|
3221
|
-
class
|
|
3230
|
+
class El {
|
|
3222
3231
|
constructor(e, t) {
|
|
3223
3232
|
this._fields = e, this._normalizer = t;
|
|
3224
3233
|
}
|
|
@@ -3259,12 +3268,12 @@ class wl {
|
|
|
3259
3268
|
}
|
|
3260
3269
|
function fo(i, e) {
|
|
3261
3270
|
const t = mo(i);
|
|
3262
|
-
return e ? t : Dl(
|
|
3271
|
+
return e ? t : Al(Dl(t));
|
|
3263
3272
|
}
|
|
3264
|
-
function
|
|
3273
|
+
function Pl(i) {
|
|
3265
3274
|
return fo(i, !1);
|
|
3266
3275
|
}
|
|
3267
|
-
const
|
|
3276
|
+
const Rl = mo;
|
|
3268
3277
|
function mo(i) {
|
|
3269
3278
|
let e = !1;
|
|
3270
3279
|
const t = [];
|
|
@@ -3293,13 +3302,13 @@ function mo(i) {
|
|
|
3293
3302
|
}
|
|
3294
3303
|
return t.join("");
|
|
3295
3304
|
}
|
|
3296
|
-
const
|
|
3305
|
+
const Il = /* @__PURE__ */ new Set([
|
|
3297
3306
|
// names reserved by JavaScript
|
|
3298
3307
|
"constructor",
|
|
3299
3308
|
"toString",
|
|
3300
3309
|
"toJSON",
|
|
3301
3310
|
"valueOf"
|
|
3302
|
-
]),
|
|
3311
|
+
]), Ml = /* @__PURE__ */ new Set([
|
|
3303
3312
|
// names reserved by the runtime
|
|
3304
3313
|
"getType",
|
|
3305
3314
|
"clone",
|
|
@@ -3312,10 +3321,10 @@ const Rl = /* @__PURE__ */ new Set([
|
|
|
3312
3321
|
"toJsonString",
|
|
3313
3322
|
// names reserved by the runtime for the future
|
|
3314
3323
|
"toObject"
|
|
3315
|
-
]), go = (i) => "".concat(i, "$"),
|
|
3316
|
-
class
|
|
3324
|
+
]), go = (i) => "".concat(i, "$"), Dl = (i) => Ml.has(i) ? go(i) : i, Al = (i) => Il.has(i) ? go(i) : i;
|
|
3325
|
+
class Ol {
|
|
3317
3326
|
constructor(e) {
|
|
3318
|
-
this.kind = "oneof", this.repeated = !1, this.packed = !1, this.opt = !1, this.req = !1, this.default = void 0, this.fields = [], this.name = e, this.localName =
|
|
3327
|
+
this.kind = "oneof", this.repeated = !1, this.packed = !1, this.opt = !1, this.req = !1, this.default = void 0, this.fields = [], this.name = e, this.localName = Pl(e);
|
|
3319
3328
|
}
|
|
3320
3329
|
addField(e) {
|
|
3321
3330
|
se(e.oneof === this, "field ".concat(e.name, " not one of ").concat(this.name)), this.fields.push(e);
|
|
@@ -3329,23 +3338,23 @@ class Al {
|
|
|
3329
3338
|
return this._lookup[e];
|
|
3330
3339
|
}
|
|
3331
3340
|
}
|
|
3332
|
-
function
|
|
3341
|
+
function xl(i, e) {
|
|
3333
3342
|
var t, n, s, r, a, o;
|
|
3334
3343
|
const d = [];
|
|
3335
3344
|
let c;
|
|
3336
3345
|
for (const l of typeof i == "function" ? i() : i) {
|
|
3337
3346
|
const u = l;
|
|
3338
|
-
if (u.localName = fo(l.name, l.oneof !== void 0), u.jsonName = (t = l.jsonName) !== null && t !== void 0 ? t :
|
|
3347
|
+
if (u.localName = fo(l.name, l.oneof !== void 0), u.jsonName = (t = l.jsonName) !== null && t !== void 0 ? t : Rl(l.name), u.repeated = (n = l.repeated) !== null && n !== void 0 ? n : !1, l.kind == "scalar" && (u.L = (s = l.L) !== null && s !== void 0 ? s : Tt.BIGINT), u.delimited = (r = l.delimited) !== null && r !== void 0 ? r : !1, u.req = (a = l.req) !== null && a !== void 0 ? a : !1, u.opt = (o = l.opt) !== null && o !== void 0 ? o : !1, l.packed === void 0 && (u.packed = l.kind == "enum" || l.kind == "scalar" && l.T != w.BYTES && l.T != w.STRING), l.oneof !== void 0) {
|
|
3339
3348
|
const h = typeof l.oneof == "string" ? l.oneof : l.oneof.name;
|
|
3340
|
-
(!c || c.name != h) && (c = new
|
|
3349
|
+
(!c || c.name != h) && (c = new Ol(h)), u.oneof = c, c.addField(u);
|
|
3341
3350
|
}
|
|
3342
3351
|
d.push(u);
|
|
3343
3352
|
}
|
|
3344
3353
|
return d;
|
|
3345
3354
|
}
|
|
3346
|
-
const b =
|
|
3355
|
+
const b = wl(
|
|
3347
3356
|
"proto3",
|
|
3348
|
-
(i) => new
|
|
3357
|
+
(i) => new El(i, (e) => xl(e)),
|
|
3349
3358
|
// TODO merge with proto2 and initExtensionField, also see initPartial, equals, clone
|
|
3350
3359
|
(i) => {
|
|
3351
3360
|
for (const e of i.getType().fields.byMember()) {
|
|
@@ -3446,7 +3455,7 @@ Ee.fields = b.util.newFieldList(() => [{
|
|
|
3446
3455
|
T: 5
|
|
3447
3456
|
/* ScalarType.INT32 */
|
|
3448
3457
|
}]);
|
|
3449
|
-
const
|
|
3458
|
+
const Ll = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
3450
3459
|
no: 1,
|
|
3451
3460
|
name: "timestamp_ms",
|
|
3452
3461
|
kind: "scalar",
|
|
@@ -3467,15 +3476,15 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
3467
3476
|
no: 4,
|
|
3468
3477
|
name: "time_series",
|
|
3469
3478
|
kind: "message",
|
|
3470
|
-
T:
|
|
3479
|
+
T: Nl,
|
|
3471
3480
|
repeated: !0
|
|
3472
3481
|
}, {
|
|
3473
3482
|
no: 5,
|
|
3474
3483
|
name: "events",
|
|
3475
3484
|
kind: "message",
|
|
3476
|
-
T:
|
|
3485
|
+
T: Fl,
|
|
3477
3486
|
repeated: !0
|
|
3478
|
-
}]),
|
|
3487
|
+
}]), Nl = /* @__PURE__ */ b.makeMessageType("livekit.TimeSeriesMetric", () => [{
|
|
3479
3488
|
no: 1,
|
|
3480
3489
|
name: "label",
|
|
3481
3490
|
kind: "scalar",
|
|
@@ -3497,7 +3506,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
3497
3506
|
no: 4,
|
|
3498
3507
|
name: "samples",
|
|
3499
3508
|
kind: "message",
|
|
3500
|
-
T:
|
|
3509
|
+
T: Ul,
|
|
3501
3510
|
repeated: !0
|
|
3502
3511
|
}, {
|
|
3503
3512
|
no: 5,
|
|
@@ -3505,7 +3514,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
3505
3514
|
kind: "scalar",
|
|
3506
3515
|
T: 13
|
|
3507
3516
|
/* ScalarType.UINT32 */
|
|
3508
|
-
}]),
|
|
3517
|
+
}]), Ul = /* @__PURE__ */ b.makeMessageType("livekit.MetricSample", () => [{
|
|
3509
3518
|
no: 1,
|
|
3510
3519
|
name: "timestamp_ms",
|
|
3511
3520
|
kind: "scalar",
|
|
@@ -3522,7 +3531,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
3522
3531
|
kind: "scalar",
|
|
3523
3532
|
T: 2
|
|
3524
3533
|
/* ScalarType.FLOAT */
|
|
3525
|
-
}]),
|
|
3534
|
+
}]), Fl = /* @__PURE__ */ b.makeMessageType("livekit.EventMetric", () => [{
|
|
3526
3535
|
no: 1,
|
|
3527
3536
|
name: "label",
|
|
3528
3537
|
kind: "scalar",
|
|
@@ -3707,7 +3716,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
3707
3716
|
}, {
|
|
3708
3717
|
no: 4,
|
|
3709
3718
|
name: "RR_SWITCH_CANDIDATE"
|
|
3710
|
-
}]),
|
|
3719
|
+
}]), Bl = /* @__PURE__ */ b.makeEnum("livekit.SubscriptionError", [{
|
|
3711
3720
|
no: 0,
|
|
3712
3721
|
name: "SE_UNKNOWN"
|
|
3713
3722
|
}, {
|
|
@@ -3838,7 +3847,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
3838
3847
|
kind: "scalar",
|
|
3839
3848
|
T: 9
|
|
3840
3849
|
/* ScalarType.STRING */
|
|
3841
|
-
}]),
|
|
3850
|
+
}]), Vl = /* @__PURE__ */ b.makeMessageType("livekit.ParticipantPermission", () => [{
|
|
3842
3851
|
no: 1,
|
|
3843
3852
|
name: "can_subscribe",
|
|
3844
3853
|
kind: "scalar",
|
|
@@ -3955,7 +3964,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
3955
3964
|
no: 11,
|
|
3956
3965
|
name: "permission",
|
|
3957
3966
|
kind: "message",
|
|
3958
|
-
T:
|
|
3967
|
+
T: Vl
|
|
3959
3968
|
}, {
|
|
3960
3969
|
no: 12,
|
|
3961
3970
|
name: "region",
|
|
@@ -3992,7 +4001,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
3992
4001
|
no: 18,
|
|
3993
4002
|
name: "kind_details",
|
|
3994
4003
|
kind: "enum",
|
|
3995
|
-
T: b.getEnumType(
|
|
4004
|
+
T: b.getEnumType(ql),
|
|
3996
4005
|
repeated: !0
|
|
3997
4006
|
}, {
|
|
3998
4007
|
no: 19,
|
|
@@ -4039,7 +4048,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
4039
4048
|
}, {
|
|
4040
4049
|
no: 8,
|
|
4041
4050
|
name: "BRIDGE"
|
|
4042
|
-
}]),
|
|
4051
|
+
}]), ql = /* @__PURE__ */ b.makeEnum("livekit.ParticipantInfo.KindDetail", [{
|
|
4043
4052
|
no: 0,
|
|
4044
4053
|
name: "CLOUD_AGENT"
|
|
4045
4054
|
}, {
|
|
@@ -4063,7 +4072,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
4063
4072
|
}, {
|
|
4064
4073
|
no: 2,
|
|
4065
4074
|
name: "CUSTOM"
|
|
4066
|
-
}]),
|
|
4075
|
+
}]), jl = /* @__PURE__ */ b.makeMessageType("livekit.SimulcastCodecInfo", () => [{
|
|
4067
4076
|
no: 1,
|
|
4068
4077
|
name: "mime_type",
|
|
4069
4078
|
kind: "scalar",
|
|
@@ -4172,7 +4181,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
4172
4181
|
no: 13,
|
|
4173
4182
|
name: "codecs",
|
|
4174
4183
|
kind: "message",
|
|
4175
|
-
T:
|
|
4184
|
+
T: jl,
|
|
4176
4185
|
repeated: !0
|
|
4177
4186
|
}, {
|
|
4178
4187
|
no: 14,
|
|
@@ -4242,7 +4251,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
4242
4251
|
name: "encryption",
|
|
4243
4252
|
kind: "enum",
|
|
4244
4253
|
T: b.getEnumType(X)
|
|
4245
|
-
}]),
|
|
4254
|
+
}]), Wl = /* @__PURE__ */ b.makeMessageType("livekit.DataTrackSubscriptionOptions", () => [{
|
|
4246
4255
|
no: 1,
|
|
4247
4256
|
name: "target_fps",
|
|
4248
4257
|
kind: "scalar",
|
|
@@ -4334,7 +4343,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
4334
4343
|
no: 3,
|
|
4335
4344
|
name: "speaker",
|
|
4336
4345
|
kind: "message",
|
|
4337
|
-
T:
|
|
4346
|
+
T: Hl,
|
|
4338
4347
|
oneof: "value"
|
|
4339
4348
|
}, {
|
|
4340
4349
|
no: 6,
|
|
@@ -4346,13 +4355,13 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
4346
4355
|
no: 7,
|
|
4347
4356
|
name: "transcription",
|
|
4348
4357
|
kind: "message",
|
|
4349
|
-
T:
|
|
4358
|
+
T: Kl,
|
|
4350
4359
|
oneof: "value"
|
|
4351
4360
|
}, {
|
|
4352
4361
|
no: 8,
|
|
4353
4362
|
name: "metrics",
|
|
4354
4363
|
kind: "message",
|
|
4355
|
-
T:
|
|
4364
|
+
T: Ll,
|
|
4356
4365
|
oneof: "value"
|
|
4357
4366
|
}, {
|
|
4358
4367
|
no: 9,
|
|
@@ -4491,7 +4500,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
4491
4500
|
kind: "message",
|
|
4492
4501
|
T: ci,
|
|
4493
4502
|
oneof: "value"
|
|
4494
|
-
}]),
|
|
4503
|
+
}]), Hl = /* @__PURE__ */ b.makeMessageType("livekit.ActiveSpeakerUpdate", () => [{
|
|
4495
4504
|
no: 1,
|
|
4496
4505
|
name: "speakers",
|
|
4497
4506
|
kind: "message",
|
|
@@ -4587,7 +4596,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
4587
4596
|
kind: "scalar",
|
|
4588
4597
|
T: 9
|
|
4589
4598
|
/* ScalarType.STRING */
|
|
4590
|
-
}]),
|
|
4599
|
+
}]), Kl = /* @__PURE__ */ b.makeMessageType("livekit.Transcription", () => [{
|
|
4591
4600
|
no: 2,
|
|
4592
4601
|
name: "transcribed_participant_identity",
|
|
4593
4602
|
kind: "scalar",
|
|
@@ -4603,9 +4612,9 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
4603
4612
|
no: 4,
|
|
4604
4613
|
name: "segments",
|
|
4605
4614
|
kind: "message",
|
|
4606
|
-
T:
|
|
4615
|
+
T: Gl,
|
|
4607
4616
|
repeated: !0
|
|
4608
|
-
}]),
|
|
4617
|
+
}]), Gl = /* @__PURE__ */ b.makeMessageType("livekit.TranscriptionSegment", () => [{
|
|
4609
4618
|
no: 1,
|
|
4610
4619
|
name: "id",
|
|
4611
4620
|
kind: "scalar",
|
|
@@ -4967,7 +4976,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
4967
4976
|
no: 4,
|
|
4968
4977
|
name: "disabled_codecs",
|
|
4969
4978
|
kind: "message",
|
|
4970
|
-
T:
|
|
4979
|
+
T: zl
|
|
4971
4980
|
}, {
|
|
4972
4981
|
no: 5,
|
|
4973
4982
|
name: "force_relay",
|
|
@@ -4978,7 +4987,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
4978
4987
|
name: "hardware_encoder",
|
|
4979
4988
|
kind: "enum",
|
|
4980
4989
|
T: b.getEnumType(_n)
|
|
4981
|
-
}]),
|
|
4990
|
+
}]), zl = /* @__PURE__ */ b.makeMessageType("livekit.DisabledCodecs", () => [{
|
|
4982
4991
|
no: 1,
|
|
4983
4992
|
name: "codecs",
|
|
4984
4993
|
kind: "message",
|
|
@@ -5168,7 +5177,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5168
5177
|
}
|
|
5169
5178
|
}], {
|
|
5170
5179
|
localName: "DataStream_Trailer"
|
|
5171
|
-
}),
|
|
5180
|
+
}), Jl = /* @__PURE__ */ b.makeMessageType("livekit.SubscribedAudioCodec", () => [{
|
|
5172
5181
|
no: 1,
|
|
5173
5182
|
name: "codec",
|
|
5174
5183
|
kind: "scalar",
|
|
@@ -5192,7 +5201,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5192
5201
|
}, {
|
|
5193
5202
|
no: 1,
|
|
5194
5203
|
name: "PAUSED"
|
|
5195
|
-
}]),
|
|
5204
|
+
}]), $l = /* @__PURE__ */ b.makeEnum("livekit.CandidateProtocol", [{
|
|
5196
5205
|
no: 0,
|
|
5197
5206
|
name: "UDP"
|
|
5198
5207
|
}, {
|
|
@@ -5201,7 +5210,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5201
5210
|
}, {
|
|
5202
5211
|
no: 2,
|
|
5203
5212
|
name: "TLS"
|
|
5204
|
-
}]),
|
|
5213
|
+
}]), Yl = /* @__PURE__ */ b.makeMessageType("livekit.SignalRequest", () => [{
|
|
5205
5214
|
no: 1,
|
|
5206
5215
|
name: "offer",
|
|
5207
5216
|
kind: "message",
|
|
@@ -5325,7 +5334,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5325
5334
|
no: 1,
|
|
5326
5335
|
name: "join",
|
|
5327
5336
|
kind: "message",
|
|
5328
|
-
T:
|
|
5337
|
+
T: eu,
|
|
5329
5338
|
oneof: "message"
|
|
5330
5339
|
}, {
|
|
5331
5340
|
no: 2,
|
|
@@ -5349,7 +5358,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5349
5358
|
no: 5,
|
|
5350
5359
|
name: "update",
|
|
5351
5360
|
kind: "message",
|
|
5352
|
-
T:
|
|
5361
|
+
T: iu,
|
|
5353
5362
|
oneof: "message"
|
|
5354
5363
|
}, {
|
|
5355
5364
|
no: 6,
|
|
@@ -5373,37 +5382,37 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5373
5382
|
no: 10,
|
|
5374
5383
|
name: "speakers_changed",
|
|
5375
5384
|
kind: "message",
|
|
5376
|
-
T:
|
|
5385
|
+
T: su,
|
|
5377
5386
|
oneof: "message"
|
|
5378
5387
|
}, {
|
|
5379
5388
|
no: 11,
|
|
5380
5389
|
name: "room_update",
|
|
5381
5390
|
kind: "message",
|
|
5382
|
-
T:
|
|
5391
|
+
T: ru,
|
|
5383
5392
|
oneof: "message"
|
|
5384
5393
|
}, {
|
|
5385
5394
|
no: 12,
|
|
5386
5395
|
name: "connection_quality",
|
|
5387
5396
|
kind: "message",
|
|
5388
|
-
T:
|
|
5397
|
+
T: ou,
|
|
5389
5398
|
oneof: "message"
|
|
5390
5399
|
}, {
|
|
5391
5400
|
no: 13,
|
|
5392
5401
|
name: "stream_state_update",
|
|
5393
5402
|
kind: "message",
|
|
5394
|
-
T:
|
|
5403
|
+
T: du,
|
|
5395
5404
|
oneof: "message"
|
|
5396
5405
|
}, {
|
|
5397
5406
|
no: 14,
|
|
5398
5407
|
name: "subscribed_quality_update",
|
|
5399
5408
|
kind: "message",
|
|
5400
|
-
T:
|
|
5409
|
+
T: uu,
|
|
5401
5410
|
oneof: "message"
|
|
5402
5411
|
}, {
|
|
5403
5412
|
no: 15,
|
|
5404
5413
|
name: "subscription_permission_update",
|
|
5405
5414
|
kind: "message",
|
|
5406
|
-
T:
|
|
5415
|
+
T: pu,
|
|
5407
5416
|
oneof: "message"
|
|
5408
5417
|
}, {
|
|
5409
5418
|
no: 16,
|
|
@@ -5415,7 +5424,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5415
5424
|
no: 17,
|
|
5416
5425
|
name: "track_unpublished",
|
|
5417
5426
|
kind: "message",
|
|
5418
|
-
T:
|
|
5427
|
+
T: nu,
|
|
5419
5428
|
oneof: "message"
|
|
5420
5429
|
}, {
|
|
5421
5430
|
no: 18,
|
|
@@ -5427,49 +5436,49 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5427
5436
|
no: 19,
|
|
5428
5437
|
name: "reconnect",
|
|
5429
5438
|
kind: "message",
|
|
5430
|
-
T:
|
|
5439
|
+
T: tu,
|
|
5431
5440
|
oneof: "message"
|
|
5432
5441
|
}, {
|
|
5433
5442
|
no: 20,
|
|
5434
5443
|
name: "pong_resp",
|
|
5435
5444
|
kind: "message",
|
|
5436
|
-
T:
|
|
5445
|
+
T: mu,
|
|
5437
5446
|
oneof: "message"
|
|
5438
5447
|
}, {
|
|
5439
5448
|
no: 21,
|
|
5440
5449
|
name: "subscription_response",
|
|
5441
5450
|
kind: "message",
|
|
5442
|
-
T:
|
|
5451
|
+
T: bu,
|
|
5443
5452
|
oneof: "message"
|
|
5444
5453
|
}, {
|
|
5445
5454
|
no: 22,
|
|
5446
5455
|
name: "request_response",
|
|
5447
5456
|
kind: "message",
|
|
5448
|
-
T:
|
|
5457
|
+
T: yu,
|
|
5449
5458
|
oneof: "message"
|
|
5450
5459
|
}, {
|
|
5451
5460
|
no: 23,
|
|
5452
5461
|
name: "track_subscribed",
|
|
5453
5462
|
kind: "message",
|
|
5454
|
-
T:
|
|
5463
|
+
T: ku,
|
|
5455
5464
|
oneof: "message"
|
|
5456
5465
|
}, {
|
|
5457
5466
|
no: 24,
|
|
5458
5467
|
name: "room_moved",
|
|
5459
5468
|
kind: "message",
|
|
5460
|
-
T:
|
|
5469
|
+
T: fu,
|
|
5461
5470
|
oneof: "message"
|
|
5462
5471
|
}, {
|
|
5463
5472
|
no: 25,
|
|
5464
5473
|
name: "media_sections_requirement",
|
|
5465
5474
|
kind: "message",
|
|
5466
|
-
T:
|
|
5475
|
+
T: Cu,
|
|
5467
5476
|
oneof: "message"
|
|
5468
5477
|
}, {
|
|
5469
5478
|
no: 26,
|
|
5470
5479
|
name: "subscribed_audio_codec_update",
|
|
5471
5480
|
kind: "message",
|
|
5472
|
-
T:
|
|
5481
|
+
T: hu,
|
|
5473
5482
|
oneof: "message"
|
|
5474
5483
|
}, {
|
|
5475
5484
|
no: 27,
|
|
@@ -5481,13 +5490,13 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5481
5490
|
no: 28,
|
|
5482
5491
|
name: "unpublish_data_track_response",
|
|
5483
5492
|
kind: "message",
|
|
5484
|
-
T:
|
|
5493
|
+
T: Ql,
|
|
5485
5494
|
oneof: "message"
|
|
5486
5495
|
}, {
|
|
5487
5496
|
no: 29,
|
|
5488
5497
|
name: "data_track_subscriber_handles",
|
|
5489
5498
|
kind: "message",
|
|
5490
|
-
T:
|
|
5499
|
+
T: Xl,
|
|
5491
5500
|
oneof: "message"
|
|
5492
5501
|
}]), bs = /* @__PURE__ */ b.makeMessageType("livekit.SimulcastCodec", () => [{
|
|
5493
5502
|
no: 1,
|
|
@@ -5644,21 +5653,21 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5644
5653
|
kind: "scalar",
|
|
5645
5654
|
T: 13
|
|
5646
5655
|
/* ScalarType.UINT32 */
|
|
5647
|
-
}]),
|
|
5656
|
+
}]), Ql = /* @__PURE__ */ b.makeMessageType("livekit.UnpublishDataTrackResponse", () => [{
|
|
5648
5657
|
no: 1,
|
|
5649
5658
|
name: "info",
|
|
5650
5659
|
kind: "message",
|
|
5651
5660
|
T: ki
|
|
5652
|
-
}]),
|
|
5661
|
+
}]), Xl = /* @__PURE__ */ b.makeMessageType("livekit.DataTrackSubscriberHandles", () => [{
|
|
5653
5662
|
no: 1,
|
|
5654
5663
|
name: "sub_handles",
|
|
5655
5664
|
kind: "map",
|
|
5656
5665
|
K: 13,
|
|
5657
5666
|
V: {
|
|
5658
5667
|
kind: "message",
|
|
5659
|
-
T:
|
|
5668
|
+
T: Zl
|
|
5660
5669
|
}
|
|
5661
|
-
}]),
|
|
5670
|
+
}]), Zl = /* @__PURE__ */ b.makeMessageType("livekit.DataTrackSubscriberHandles.PublishedDataTrack", () => [{
|
|
5662
5671
|
no: 1,
|
|
5663
5672
|
name: "publisher_identity",
|
|
5664
5673
|
kind: "scalar",
|
|
@@ -5707,7 +5716,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5707
5716
|
kind: "scalar",
|
|
5708
5717
|
T: 8
|
|
5709
5718
|
/* ScalarType.BOOL */
|
|
5710
|
-
}]),
|
|
5719
|
+
}]), eu = /* @__PURE__ */ b.makeMessageType("livekit.JoinResponse", () => [{
|
|
5711
5720
|
no: 1,
|
|
5712
5721
|
name: "room",
|
|
5713
5722
|
kind: "message",
|
|
@@ -5793,7 +5802,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5793
5802
|
kind: "scalar",
|
|
5794
5803
|
T: 8
|
|
5795
5804
|
/* ScalarType.BOOL */
|
|
5796
|
-
}]),
|
|
5805
|
+
}]), tu = /* @__PURE__ */ b.makeMessageType("livekit.ReconnectResponse", () => [{
|
|
5797
5806
|
no: 1,
|
|
5798
5807
|
name: "ice_servers",
|
|
5799
5808
|
kind: "message",
|
|
@@ -5826,7 +5835,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5826
5835
|
name: "track",
|
|
5827
5836
|
kind: "message",
|
|
5828
5837
|
T: Vt
|
|
5829
|
-
}]),
|
|
5838
|
+
}]), nu = /* @__PURE__ */ b.makeMessageType("livekit.TrackUnpublishedResponse", () => [{
|
|
5830
5839
|
no: 1,
|
|
5831
5840
|
name: "track_sid",
|
|
5832
5841
|
kind: "scalar",
|
|
@@ -5860,7 +5869,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5860
5869
|
T: 9
|
|
5861
5870
|
/* ScalarType.STRING */
|
|
5862
5871
|
}
|
|
5863
|
-
}]),
|
|
5872
|
+
}]), iu = /* @__PURE__ */ b.makeMessageType("livekit.ParticipantUpdate", () => [{
|
|
5864
5873
|
no: 1,
|
|
5865
5874
|
name: "participants",
|
|
5866
5875
|
kind: "message",
|
|
@@ -5906,7 +5915,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
5906
5915
|
no: 3,
|
|
5907
5916
|
name: "options",
|
|
5908
5917
|
kind: "message",
|
|
5909
|
-
T:
|
|
5918
|
+
T: Wl
|
|
5910
5919
|
}], {
|
|
5911
5920
|
localName: "UpdateDataSubscription_Update"
|
|
5912
5921
|
}), No = /* @__PURE__ */ b.makeMessageType("livekit.UpdateTrackSettings", () => [{
|
|
@@ -6000,7 +6009,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6000
6009
|
no: 4,
|
|
6001
6010
|
name: "regions",
|
|
6002
6011
|
kind: "message",
|
|
6003
|
-
T:
|
|
6012
|
+
T: gu
|
|
6004
6013
|
}]), Ht = /* @__PURE__ */ b.makeEnum("livekit.LeaveRequest.Action", [{
|
|
6005
6014
|
no: 0,
|
|
6006
6015
|
name: "DISCONNECT"
|
|
@@ -6068,18 +6077,18 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6068
6077
|
kind: "scalar",
|
|
6069
6078
|
T: 9
|
|
6070
6079
|
/* ScalarType.STRING */
|
|
6071
|
-
}]),
|
|
6080
|
+
}]), su = /* @__PURE__ */ b.makeMessageType("livekit.SpeakersChanged", () => [{
|
|
6072
6081
|
no: 1,
|
|
6073
6082
|
name: "speakers",
|
|
6074
6083
|
kind: "message",
|
|
6075
6084
|
T: To,
|
|
6076
6085
|
repeated: !0
|
|
6077
|
-
}]),
|
|
6086
|
+
}]), ru = /* @__PURE__ */ b.makeMessageType("livekit.RoomUpdate", () => [{
|
|
6078
6087
|
no: 1,
|
|
6079
6088
|
name: "room",
|
|
6080
6089
|
kind: "message",
|
|
6081
6090
|
T: yi
|
|
6082
|
-
}]),
|
|
6091
|
+
}]), au = /* @__PURE__ */ b.makeMessageType("livekit.ConnectionQualityInfo", () => [{
|
|
6083
6092
|
no: 1,
|
|
6084
6093
|
name: "participant_sid",
|
|
6085
6094
|
kind: "scalar",
|
|
@@ -6096,13 +6105,13 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6096
6105
|
kind: "scalar",
|
|
6097
6106
|
T: 2
|
|
6098
6107
|
/* ScalarType.FLOAT */
|
|
6099
|
-
}]),
|
|
6108
|
+
}]), ou = /* @__PURE__ */ b.makeMessageType("livekit.ConnectionQualityUpdate", () => [{
|
|
6100
6109
|
no: 1,
|
|
6101
6110
|
name: "updates",
|
|
6102
6111
|
kind: "message",
|
|
6103
|
-
T:
|
|
6112
|
+
T: au,
|
|
6104
6113
|
repeated: !0
|
|
6105
|
-
}]),
|
|
6114
|
+
}]), cu = /* @__PURE__ */ b.makeMessageType("livekit.StreamStateInfo", () => [{
|
|
6106
6115
|
no: 1,
|
|
6107
6116
|
name: "participant_sid",
|
|
6108
6117
|
kind: "scalar",
|
|
@@ -6119,11 +6128,11 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6119
6128
|
name: "state",
|
|
6120
6129
|
kind: "enum",
|
|
6121
6130
|
T: b.getEnumType(vs)
|
|
6122
|
-
}]),
|
|
6131
|
+
}]), du = /* @__PURE__ */ b.makeMessageType("livekit.StreamStateUpdate", () => [{
|
|
6123
6132
|
no: 1,
|
|
6124
6133
|
name: "stream_states",
|
|
6125
6134
|
kind: "message",
|
|
6126
|
-
T:
|
|
6135
|
+
T: cu,
|
|
6127
6136
|
repeated: !0
|
|
6128
6137
|
}]), tr = /* @__PURE__ */ b.makeMessageType("livekit.SubscribedQuality", () => [{
|
|
6129
6138
|
no: 1,
|
|
@@ -6136,7 +6145,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6136
6145
|
kind: "scalar",
|
|
6137
6146
|
T: 8
|
|
6138
6147
|
/* ScalarType.BOOL */
|
|
6139
|
-
}]),
|
|
6148
|
+
}]), lu = /* @__PURE__ */ b.makeMessageType("livekit.SubscribedCodec", () => [{
|
|
6140
6149
|
no: 1,
|
|
6141
6150
|
name: "codec",
|
|
6142
6151
|
kind: "scalar",
|
|
@@ -6148,7 +6157,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6148
6157
|
kind: "message",
|
|
6149
6158
|
T: tr,
|
|
6150
6159
|
repeated: !0
|
|
6151
|
-
}]),
|
|
6160
|
+
}]), uu = /* @__PURE__ */ b.makeMessageType("livekit.SubscribedQualityUpdate", () => [{
|
|
6152
6161
|
no: 1,
|
|
6153
6162
|
name: "track_sid",
|
|
6154
6163
|
kind: "scalar",
|
|
@@ -6164,9 +6173,9 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6164
6173
|
no: 3,
|
|
6165
6174
|
name: "subscribed_codecs",
|
|
6166
6175
|
kind: "message",
|
|
6167
|
-
T:
|
|
6176
|
+
T: lu,
|
|
6168
6177
|
repeated: !0
|
|
6169
|
-
}]),
|
|
6178
|
+
}]), hu = /* @__PURE__ */ b.makeMessageType("livekit.SubscribedAudioCodecUpdate", () => [{
|
|
6170
6179
|
no: 1,
|
|
6171
6180
|
name: "track_sid",
|
|
6172
6181
|
kind: "scalar",
|
|
@@ -6176,7 +6185,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6176
6185
|
no: 2,
|
|
6177
6186
|
name: "subscribed_audio_codecs",
|
|
6178
6187
|
kind: "message",
|
|
6179
|
-
T:
|
|
6188
|
+
T: Jl,
|
|
6180
6189
|
repeated: !0
|
|
6181
6190
|
}]), Vo = /* @__PURE__ */ b.makeMessageType("livekit.TrackPermission", () => [{
|
|
6182
6191
|
no: 1,
|
|
@@ -6214,7 +6223,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6214
6223
|
kind: "message",
|
|
6215
6224
|
T: Vo,
|
|
6216
6225
|
repeated: !0
|
|
6217
|
-
}]),
|
|
6226
|
+
}]), pu = /* @__PURE__ */ b.makeMessageType("livekit.SubscriptionPermissionUpdate", () => [{
|
|
6218
6227
|
no: 1,
|
|
6219
6228
|
name: "participant_sid",
|
|
6220
6229
|
kind: "scalar",
|
|
@@ -6232,7 +6241,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6232
6241
|
kind: "scalar",
|
|
6233
6242
|
T: 8
|
|
6234
6243
|
/* ScalarType.BOOL */
|
|
6235
|
-
}]),
|
|
6244
|
+
}]), fu = /* @__PURE__ */ b.makeMessageType("livekit.RoomMovedResponse", () => [{
|
|
6236
6245
|
no: 1,
|
|
6237
6246
|
name: "room",
|
|
6238
6247
|
kind: "message",
|
|
@@ -6356,7 +6365,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6356
6365
|
no: 5,
|
|
6357
6366
|
name: "switch_candidate_protocol",
|
|
6358
6367
|
kind: "enum",
|
|
6359
|
-
T: b.getEnumType(
|
|
6368
|
+
T: b.getEnumType($l),
|
|
6360
6369
|
oneof: "scenario"
|
|
6361
6370
|
}, {
|
|
6362
6371
|
no: 6,
|
|
@@ -6394,7 +6403,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6394
6403
|
kind: "scalar",
|
|
6395
6404
|
T: 3
|
|
6396
6405
|
/* ScalarType.INT64 */
|
|
6397
|
-
}]),
|
|
6406
|
+
}]), mu = /* @__PURE__ */ b.makeMessageType("livekit.Pong", () => [{
|
|
6398
6407
|
no: 1,
|
|
6399
6408
|
name: "last_ping_timestamp",
|
|
6400
6409
|
kind: "scalar",
|
|
@@ -6406,13 +6415,13 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6406
6415
|
kind: "scalar",
|
|
6407
6416
|
T: 3
|
|
6408
6417
|
/* ScalarType.INT64 */
|
|
6409
|
-
}]),
|
|
6418
|
+
}]), gu = /* @__PURE__ */ b.makeMessageType("livekit.RegionSettings", () => [{
|
|
6410
6419
|
no: 1,
|
|
6411
6420
|
name: "regions",
|
|
6412
6421
|
kind: "message",
|
|
6413
|
-
T:
|
|
6422
|
+
T: vu,
|
|
6414
6423
|
repeated: !0
|
|
6415
|
-
}]),
|
|
6424
|
+
}]), vu = /* @__PURE__ */ b.makeMessageType("livekit.RegionInfo", () => [{
|
|
6416
6425
|
no: 1,
|
|
6417
6426
|
name: "region",
|
|
6418
6427
|
kind: "scalar",
|
|
@@ -6430,7 +6439,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6430
6439
|
kind: "scalar",
|
|
6431
6440
|
T: 3
|
|
6432
6441
|
/* ScalarType.INT64 */
|
|
6433
|
-
}]),
|
|
6442
|
+
}]), bu = /* @__PURE__ */ b.makeMessageType("livekit.SubscriptionResponse", () => [{
|
|
6434
6443
|
no: 1,
|
|
6435
6444
|
name: "track_sid",
|
|
6436
6445
|
kind: "scalar",
|
|
@@ -6440,8 +6449,8 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6440
6449
|
no: 2,
|
|
6441
6450
|
name: "err",
|
|
6442
6451
|
kind: "enum",
|
|
6443
|
-
T: b.getEnumType(
|
|
6444
|
-
}]),
|
|
6452
|
+
T: b.getEnumType(Bl)
|
|
6453
|
+
}]), yu = /* @__PURE__ */ b.makeMessageType("livekit.RequestResponse", () => [{
|
|
6445
6454
|
no: 1,
|
|
6446
6455
|
name: "request_id",
|
|
6447
6456
|
kind: "scalar",
|
|
@@ -6539,7 +6548,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6539
6548
|
}, {
|
|
6540
6549
|
no: 10,
|
|
6541
6550
|
name: "DUPLICATE_NAME"
|
|
6542
|
-
}]),
|
|
6551
|
+
}]), ku = /* @__PURE__ */ b.makeMessageType("livekit.TrackSubscribed", () => [{
|
|
6543
6552
|
no: 1,
|
|
6544
6553
|
name: "track_sid",
|
|
6545
6554
|
kind: "scalar",
|
|
@@ -6575,7 +6584,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6575
6584
|
kind: "scalar",
|
|
6576
6585
|
T: 8,
|
|
6577
6586
|
opt: !0
|
|
6578
|
-
}]),
|
|
6587
|
+
}]), Tu = /* @__PURE__ */ b.makeMessageType("livekit.JoinRequest", () => [{
|
|
6579
6588
|
no: 1,
|
|
6580
6589
|
name: "client_info",
|
|
6581
6590
|
kind: "message",
|
|
@@ -6634,7 +6643,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6634
6643
|
name: "sync_state",
|
|
6635
6644
|
kind: "message",
|
|
6636
6645
|
T: nr
|
|
6637
|
-
}]),
|
|
6646
|
+
}]), Su = /* @__PURE__ */ b.makeMessageType("livekit.WrappedJoinRequest", () => [{
|
|
6638
6647
|
no: 1,
|
|
6639
6648
|
name: "compression",
|
|
6640
6649
|
kind: "enum",
|
|
@@ -6651,7 +6660,7 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6651
6660
|
}, {
|
|
6652
6661
|
no: 1,
|
|
6653
6662
|
name: "GZIP"
|
|
6654
|
-
}]),
|
|
6663
|
+
}]), Cu = /* @__PURE__ */ b.makeMessageType("livekit.MediaSectionsRequirement", () => [{
|
|
6655
6664
|
no: 1,
|
|
6656
6665
|
name: "num_audios",
|
|
6657
6666
|
kind: "scalar",
|
|
@@ -6664,15 +6673,15 @@ const xl = /* @__PURE__ */ b.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
6664
6673
|
T: 13
|
|
6665
6674
|
/* ScalarType.UINT32 */
|
|
6666
6675
|
}]);
|
|
6667
|
-
function
|
|
6676
|
+
function _u(i) {
|
|
6668
6677
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
6669
6678
|
}
|
|
6670
|
-
var Kn = { exports: {} },
|
|
6671
|
-
function
|
|
6679
|
+
var Kn = { exports: {} }, wu = Kn.exports, Kr;
|
|
6680
|
+
function Eu() {
|
|
6672
6681
|
return Kr || (Kr = 1, function(i) {
|
|
6673
6682
|
(function(e, t) {
|
|
6674
6683
|
i.exports ? i.exports = t() : e.log = t();
|
|
6675
|
-
})(
|
|
6684
|
+
})(wu, function() {
|
|
6676
6685
|
var e = function() {
|
|
6677
6686
|
}, t = "undefined", n = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), s = ["trace", "debug", "info", "warn", "error"], r = {}, a = null;
|
|
6678
6687
|
function o(m, T) {
|
|
@@ -6710,7 +6719,7 @@ function wu() {
|
|
|
6710
6719
|
return c(m) || u.apply(this, arguments);
|
|
6711
6720
|
}
|
|
6712
6721
|
function p(m, T) {
|
|
6713
|
-
var k = this, S,
|
|
6722
|
+
var k = this, S, N, v, y = "loglevel";
|
|
6714
6723
|
typeof m == "string" ? y += ":" + m : typeof m == "symbol" && (y = void 0);
|
|
6715
6724
|
function C(O) {
|
|
6716
6725
|
var B = (s[O] || "silent").toUpperCase();
|
|
@@ -6742,7 +6751,7 @@ function wu() {
|
|
|
6742
6751
|
return k.levels[O] === void 0 && (O = void 0), O;
|
|
6743
6752
|
}
|
|
6744
6753
|
}
|
|
6745
|
-
function
|
|
6754
|
+
function L() {
|
|
6746
6755
|
if (!(typeof window === t || !y)) {
|
|
6747
6756
|
try {
|
|
6748
6757
|
window.localStorage.removeItem(y);
|
|
@@ -6768,13 +6777,13 @@ function wu() {
|
|
|
6768
6777
|
ERROR: 4,
|
|
6769
6778
|
SILENT: 5
|
|
6770
6779
|
}, k.methodFactory = T || h, k.getLevel = function() {
|
|
6771
|
-
return v ??
|
|
6780
|
+
return v ?? N ?? S;
|
|
6772
6781
|
}, k.setLevel = function(O, B) {
|
|
6773
6782
|
return v = V(O), B !== !1 && C(v), l.call(k);
|
|
6774
6783
|
}, k.setDefaultLevel = function(O) {
|
|
6775
|
-
|
|
6784
|
+
N = V(O), I() || k.setLevel(O, !1);
|
|
6776
6785
|
}, k.resetLevel = function() {
|
|
6777
|
-
v = null,
|
|
6786
|
+
v = null, L(), l.call(k);
|
|
6778
6787
|
}, k.enableAll = function(O) {
|
|
6779
6788
|
k.setLevel(k.levels.TRACE, O);
|
|
6780
6789
|
}, k.disableAll = function(O) {
|
|
@@ -6802,7 +6811,7 @@ function wu() {
|
|
|
6802
6811
|
});
|
|
6803
6812
|
}(Kn)), Kn.exports;
|
|
6804
6813
|
}
|
|
6805
|
-
var Ei =
|
|
6814
|
+
var Ei = Eu(), ks;
|
|
6806
6815
|
(function(i) {
|
|
6807
6816
|
i[i.trace = 0] = "trace", i[i.debug = 1] = "debug", i[i.info = 2] = "info", i[i.warn = 3] = "warn", i[i.error = 4] = "error", i[i.silent = 5] = "silent";
|
|
6808
6817
|
})(ks || (ks = {}));
|
|
@@ -6815,19 +6824,19 @@ Object.values(pe).map((i) => Ei.getLogger(i));
|
|
|
6815
6824
|
q.setDefaultLevel(ks.info);
|
|
6816
6825
|
function Re(i, e) {
|
|
6817
6826
|
const t = Ei.getLogger(i);
|
|
6818
|
-
return t.setDefaultLevel(q.getLevel()), e ?
|
|
6827
|
+
return t.setDefaultLevel(q.getLevel()), e ? Pu(t, e) : t;
|
|
6819
6828
|
}
|
|
6820
|
-
function
|
|
6829
|
+
function Pu(i, e) {
|
|
6821
6830
|
const t = (s) => (r, a) => {
|
|
6822
6831
|
const o = e(), d = o || a ? Object.assign(Object.assign({}, o), a) : void 0;
|
|
6823
6832
|
i[s](r, d);
|
|
6824
6833
|
}, n = Object.create(i);
|
|
6825
6834
|
return n.trace = t("trace"), n.debug = t("debug"), n.info = t("info"), n.warn = t("warn"), n.error = t("error"), n;
|
|
6826
6835
|
}
|
|
6827
|
-
const
|
|
6828
|
-
class
|
|
6836
|
+
const Ru = Ei.getLogger(pe.E2EE), on = 7e3, Iu = [0, 300, 2 * 2 * 300, 3 * 3 * 300, 4 * 4 * 300, on, on, on, on, on];
|
|
6837
|
+
class Mu {
|
|
6829
6838
|
constructor(e) {
|
|
6830
|
-
this._retryDelays = e !== void 0 ? [...e] :
|
|
6839
|
+
this._retryDelays = e !== void 0 ? [...e] : Iu;
|
|
6831
6840
|
}
|
|
6832
6841
|
nextRetryDelayInMs(e) {
|
|
6833
6842
|
if (e.retryCount >= this._retryDelays.length) return null;
|
|
@@ -6835,7 +6844,7 @@ class Iu {
|
|
|
6835
6844
|
return e.retryCount <= 1 ? t : t + Math.random() * 1e3;
|
|
6836
6845
|
}
|
|
6837
6846
|
}
|
|
6838
|
-
function
|
|
6847
|
+
function Du(i, e) {
|
|
6839
6848
|
var t = {};
|
|
6840
6849
|
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && e.indexOf(n) < 0 && (t[n] = i[n]);
|
|
6841
6850
|
if (i != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -6883,7 +6892,7 @@ function Gr(i) {
|
|
|
6883
6892
|
function Zt(i) {
|
|
6884
6893
|
return this instanceof Zt ? (this.v = i, this) : new Zt(i);
|
|
6885
6894
|
}
|
|
6886
|
-
function
|
|
6895
|
+
function Au(i, e, t) {
|
|
6887
6896
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
6888
6897
|
var n = t.apply(i, e || []), s, r = [];
|
|
6889
6898
|
return s = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), o("next"), o("throw"), o("return", a), s[Symbol.asyncIterator] = function() {
|
|
@@ -6921,7 +6930,7 @@ function Du(i, e, t) {
|
|
|
6921
6930
|
p(g), r.shift(), r.length && d(r[0][0], r[0][1]);
|
|
6922
6931
|
}
|
|
6923
6932
|
}
|
|
6924
|
-
function
|
|
6933
|
+
function Ou(i) {
|
|
6925
6934
|
var e, t;
|
|
6926
6935
|
return e = {}, n("next"), n("throw", function(s) {
|
|
6927
6936
|
throw s;
|
|
@@ -6954,7 +6963,7 @@ function Ve(i) {
|
|
|
6954
6963
|
}
|
|
6955
6964
|
}
|
|
6956
6965
|
var Un = { exports: {} }, zr;
|
|
6957
|
-
function
|
|
6966
|
+
function xu() {
|
|
6958
6967
|
if (zr) return Un.exports;
|
|
6959
6968
|
zr = 1;
|
|
6960
6969
|
var i = typeof Reflect == "object" ? Reflect : null, e = i && typeof i.apply == "function" ? i.apply : function(y, C, I) {
|
|
@@ -7003,10 +7012,10 @@ function Ou() {
|
|
|
7003
7012
|
return d(this);
|
|
7004
7013
|
}, r.prototype.emit = function(y) {
|
|
7005
7014
|
for (var C = [], I = 1; I < arguments.length; I++) C.push(arguments[I]);
|
|
7006
|
-
var
|
|
7007
|
-
if (V !== void 0)
|
|
7008
|
-
else if (!
|
|
7009
|
-
if (
|
|
7015
|
+
var L = y === "error", V = this._events;
|
|
7016
|
+
if (V !== void 0) L = L && V.error === void 0;
|
|
7017
|
+
else if (!L) return !1;
|
|
7018
|
+
if (L) {
|
|
7010
7019
|
var A;
|
|
7011
7020
|
if (C.length > 0 && (A = C[0]), A instanceof Error)
|
|
7012
7021
|
throw A;
|
|
@@ -7022,10 +7031,10 @@ function Ou() {
|
|
|
7022
7031
|
return !0;
|
|
7023
7032
|
};
|
|
7024
7033
|
function c(v, y, C, I) {
|
|
7025
|
-
var
|
|
7034
|
+
var L, V, A;
|
|
7026
7035
|
if (o(C), V = v._events, V === void 0 ? (V = v._events = /* @__PURE__ */ Object.create(null), v._eventsCount = 0) : (V.newListener !== void 0 && (v.emit("newListener", y, C.listener ? C.listener : C), V = v._events), A = V[y]), A === void 0)
|
|
7027
7036
|
A = V[y] = C, ++v._eventsCount;
|
|
7028
|
-
else if (typeof A == "function" ? A = V[y] = I ? [C, A] : [A, C] : I ? A.unshift(C) : A.push(C),
|
|
7037
|
+
else if (typeof A == "function" ? A = V[y] = I ? [C, A] : [A, C] : I ? A.unshift(C) : A.push(C), L = d(v), L > 0 && A.length > L && !A.warned) {
|
|
7029
7038
|
A.warned = !0;
|
|
7030
7039
|
var O = new Error("Possible EventEmitter memory leak detected. " + A.length + " " + String(y) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
7031
7040
|
O.name = "MaxListenersExceededWarning", O.emitter = v, O.type = y, O.count = A.length;
|
|
@@ -7048,19 +7057,19 @@ function Ou() {
|
|
|
7048
7057
|
target: v,
|
|
7049
7058
|
type: y,
|
|
7050
7059
|
listener: C
|
|
7051
|
-
},
|
|
7052
|
-
return
|
|
7060
|
+
}, L = l.bind(I);
|
|
7061
|
+
return L.listener = C, I.wrapFn = L, L;
|
|
7053
7062
|
}
|
|
7054
7063
|
r.prototype.once = function(y, C) {
|
|
7055
7064
|
return o(C), this.on(y, u(this, y, C)), this;
|
|
7056
7065
|
}, r.prototype.prependOnceListener = function(y, C) {
|
|
7057
7066
|
return o(C), this.prependListener(y, u(this, y, C)), this;
|
|
7058
7067
|
}, r.prototype.removeListener = function(y, C) {
|
|
7059
|
-
var I,
|
|
7060
|
-
if (o(C),
|
|
7061
|
-
if (I =
|
|
7068
|
+
var I, L, V, A, O;
|
|
7069
|
+
if (o(C), L = this._events, L === void 0) return this;
|
|
7070
|
+
if (I = L[y], I === void 0) return this;
|
|
7062
7071
|
if (I === C || I.listener === C)
|
|
7063
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete
|
|
7072
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete L[y], L.removeListener && this.emit("removeListener", y, I.listener || C));
|
|
7064
7073
|
else if (typeof I != "function") {
|
|
7065
7074
|
for (V = -1, A = I.length - 1; A >= 0; A--)
|
|
7066
7075
|
if (I[A] === C || I[A].listener === C) {
|
|
@@ -7068,32 +7077,32 @@ function Ou() {
|
|
|
7068
7077
|
break;
|
|
7069
7078
|
}
|
|
7070
7079
|
if (V < 0) return this;
|
|
7071
|
-
V === 0 ? I.shift() : m(I, V), I.length === 1 && (
|
|
7080
|
+
V === 0 ? I.shift() : m(I, V), I.length === 1 && (L[y] = I[0]), L.removeListener !== void 0 && this.emit("removeListener", y, O || C);
|
|
7072
7081
|
}
|
|
7073
7082
|
return this;
|
|
7074
7083
|
}, r.prototype.off = r.prototype.removeListener, r.prototype.removeAllListeners = function(y) {
|
|
7075
|
-
var C, I,
|
|
7084
|
+
var C, I, L;
|
|
7076
7085
|
if (I = this._events, I === void 0) return this;
|
|
7077
7086
|
if (I.removeListener === void 0)
|
|
7078
7087
|
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : I[y] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete I[y]), this;
|
|
7079
7088
|
if (arguments.length === 0) {
|
|
7080
7089
|
var V = Object.keys(I), A;
|
|
7081
|
-
for (
|
|
7082
|
-
A = V[
|
|
7090
|
+
for (L = 0; L < V.length; ++L)
|
|
7091
|
+
A = V[L], A !== "removeListener" && this.removeAllListeners(A);
|
|
7083
7092
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
7084
7093
|
}
|
|
7085
7094
|
if (C = I[y], typeof C == "function")
|
|
7086
7095
|
this.removeListener(y, C);
|
|
7087
7096
|
else if (C !== void 0)
|
|
7088
|
-
for (
|
|
7089
|
-
this.removeListener(y, C[
|
|
7097
|
+
for (L = C.length - 1; L >= 0; L--)
|
|
7098
|
+
this.removeListener(y, C[L]);
|
|
7090
7099
|
return this;
|
|
7091
7100
|
};
|
|
7092
7101
|
function h(v, y, C) {
|
|
7093
7102
|
var I = v._events;
|
|
7094
7103
|
if (I === void 0) return [];
|
|
7095
|
-
var
|
|
7096
|
-
return
|
|
7104
|
+
var L = I[y];
|
|
7105
|
+
return L === void 0 ? [] : typeof L == "function" ? C ? [L.listener || L] : [L] : C ? T(L) : g(L, L.length);
|
|
7097
7106
|
}
|
|
7098
7107
|
r.prototype.listeners = function(y) {
|
|
7099
7108
|
return h(this, y, !0);
|
|
@@ -7131,36 +7140,36 @@ function Ou() {
|
|
|
7131
7140
|
}
|
|
7132
7141
|
function k(v, y) {
|
|
7133
7142
|
return new Promise(function(C, I) {
|
|
7134
|
-
function
|
|
7143
|
+
function L(A) {
|
|
7135
7144
|
v.removeListener(y, V), I(A);
|
|
7136
7145
|
}
|
|
7137
7146
|
function V() {
|
|
7138
|
-
typeof v.removeListener == "function" && v.removeListener("error",
|
|
7147
|
+
typeof v.removeListener == "function" && v.removeListener("error", L), C([].slice.call(arguments));
|
|
7139
7148
|
}
|
|
7140
|
-
|
|
7149
|
+
N(v, y, V, {
|
|
7141
7150
|
once: !0
|
|
7142
|
-
}), y !== "error" && S(v,
|
|
7151
|
+
}), y !== "error" && S(v, L, {
|
|
7143
7152
|
once: !0
|
|
7144
7153
|
});
|
|
7145
7154
|
});
|
|
7146
7155
|
}
|
|
7147
7156
|
function S(v, y, C) {
|
|
7148
|
-
typeof v.on == "function" &&
|
|
7157
|
+
typeof v.on == "function" && N(v, "error", y, C);
|
|
7149
7158
|
}
|
|
7150
|
-
function
|
|
7159
|
+
function N(v, y, C, I) {
|
|
7151
7160
|
if (typeof v.on == "function")
|
|
7152
7161
|
I.once ? v.once(y, C) : v.on(y, C);
|
|
7153
7162
|
else if (typeof v.addEventListener == "function")
|
|
7154
|
-
v.addEventListener(y, function
|
|
7155
|
-
I.once && v.removeEventListener(y,
|
|
7163
|
+
v.addEventListener(y, function L(V) {
|
|
7164
|
+
I.once && v.removeEventListener(y, L), C(V);
|
|
7156
7165
|
});
|
|
7157
7166
|
else
|
|
7158
7167
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof v);
|
|
7159
7168
|
}
|
|
7160
7169
|
return Un.exports;
|
|
7161
7170
|
}
|
|
7162
|
-
var Ie =
|
|
7163
|
-
let Go = !0,
|
|
7171
|
+
var Ie = xu();
|
|
7172
|
+
let Go = !0, Lu = !0;
|
|
7164
7173
|
function mn(i, e, t) {
|
|
7165
7174
|
const n = i.match(e);
|
|
7166
7175
|
return n && n.length >= t && parseFloat(n[t], 10);
|
|
@@ -7200,15 +7209,15 @@ function Ut(i, e, t) {
|
|
|
7200
7209
|
configurable: !0
|
|
7201
7210
|
});
|
|
7202
7211
|
}
|
|
7203
|
-
function
|
|
7212
|
+
function Nu(i) {
|
|
7204
7213
|
return typeof i != "boolean" ? new Error("Argument type: " + typeof i + ". Please use a boolean.") : (Go = i, i ? "adapter.js logging disabled" : "adapter.js logging enabled");
|
|
7205
7214
|
}
|
|
7206
|
-
function
|
|
7207
|
-
return typeof i != "boolean" ? new Error("Argument type: " + typeof i + ". Please use a boolean.") : (
|
|
7215
|
+
function Uu(i) {
|
|
7216
|
+
return typeof i != "boolean" ? new Error("Argument type: " + typeof i + ". Please use a boolean.") : (Lu = !i, "adapter.js deprecation warnings " + (i ? "disabled" : "enabled"));
|
|
7208
7217
|
}
|
|
7209
7218
|
function zo() {
|
|
7210
7219
|
}
|
|
7211
|
-
function
|
|
7220
|
+
function Fu(i) {
|
|
7212
7221
|
const e = {
|
|
7213
7222
|
browser: null,
|
|
7214
7223
|
version: null
|
|
@@ -7693,7 +7702,7 @@ function ic(i, e) {
|
|
|
7693
7702
|
}
|
|
7694
7703
|
}
|
|
7695
7704
|
}
|
|
7696
|
-
function
|
|
7705
|
+
function Bu(i, e) {
|
|
7697
7706
|
i.navigator.mediaDevices && "getDisplayMedia" in i.navigator.mediaDevices || i.navigator.mediaDevices && (i.navigator.mediaDevices.getDisplayMedia = function(n) {
|
|
7698
7707
|
if (!(n && n.video)) {
|
|
7699
7708
|
const s = new DOMException("getDisplayMedia without video constraints is undefined");
|
|
@@ -7850,7 +7859,7 @@ function pc(i) {
|
|
|
7850
7859
|
}) : e.apply(this, arguments);
|
|
7851
7860
|
};
|
|
7852
7861
|
}
|
|
7853
|
-
var Xr = /* @__PURE__ */ Object.freeze({ __proto__: null, shimAddTransceiver: lc, shimCreateAnswer: pc, shimCreateOffer: hc, shimGetDisplayMedia:
|
|
7862
|
+
var Xr = /* @__PURE__ */ Object.freeze({ __proto__: null, shimAddTransceiver: lc, shimCreateAnswer: pc, shimCreateOffer: hc, shimGetDisplayMedia: Bu, shimGetParameters: uc, shimGetStats: rc, shimGetUserMedia: ic, shimOnTrack: sc, shimPeerConnection: Cs, shimRTCDataChannel: dc, shimReceiverGetStats: oc, shimRemoveStream: cc, shimSenderGetStats: ac });
|
|
7854
7863
|
function fc(i) {
|
|
7855
7864
|
if (!(typeof i != "object" || !i.RTCPeerConnection)) {
|
|
7856
7865
|
if ("getLocalStreams" in i.RTCPeerConnection.prototype || (i.RTCPeerConnection.prototype.getLocalStreams = function() {
|
|
@@ -8003,7 +8012,7 @@ function Sc(i) {
|
|
|
8003
8012
|
typeof i != "object" || i.AudioContext || (i.AudioContext = i.webkitAudioContext);
|
|
8004
8013
|
}
|
|
8005
8014
|
var Zr = /* @__PURE__ */ Object.freeze({ __proto__: null, shimAudioContext: Sc, shimCallbacksAPI: gc, shimConstraints: bc, shimCreateOfferLegacy: Tc, shimGetUserMedia: vc, shimLocalStreamsAPI: fc, shimRTCIceServerUrls: yc, shimRemoteStreamsAPI: mc, shimTrackEventTransceiver: kc }), zi = { exports: {} }, ea;
|
|
8006
|
-
function
|
|
8015
|
+
function Vu() {
|
|
8007
8016
|
return ea || (ea = 1, function(i) {
|
|
8008
8017
|
const e = {};
|
|
8009
8018
|
e.generateIdentifier = function() {
|
|
@@ -8374,7 +8383,7 @@ t=0 0\r
|
|
|
8374
8383
|
}, i.exports = e;
|
|
8375
8384
|
}(zi)), zi.exports;
|
|
8376
8385
|
}
|
|
8377
|
-
var Cc =
|
|
8386
|
+
var Cc = Vu(), Kt = /* @__PURE__ */ _u(Cc), qu = /* @__PURE__ */ Ud({ __proto__: null, default: Kt }, [Cc]);
|
|
8378
8387
|
function Gn(i) {
|
|
8379
8388
|
if (!i.RTCIceCandidate || i.RTCIceCandidate && "foundation" in i.RTCIceCandidate.prototype)
|
|
8380
8389
|
return;
|
|
@@ -8572,21 +8581,21 @@ function Yn(i, e) {
|
|
|
8572
8581
|
return s.sdp || s.type !== "offer" && s.type !== "answer" ? t.apply(this, [s]) : (s.type === "offer" ? this.createOffer : this.createAnswer).apply(this).then((a) => t.apply(this, [a]));
|
|
8573
8582
|
});
|
|
8574
8583
|
}
|
|
8575
|
-
var
|
|
8576
|
-
function
|
|
8584
|
+
var ju = /* @__PURE__ */ Object.freeze({ __proto__: null, removeExtmapAllowMixed: Es, shimAddIceCandidateNullOrEmpty: $n, shimConnectionState: ws, shimMaxMessageSize: zn, shimParameterlessSetLocalDescription: Yn, shimRTCIceCandidate: Gn, shimRTCIceCandidateRelayProtocol: _s, shimSendThrowTypeError: Jn });
|
|
8585
|
+
function Wu() {
|
|
8577
8586
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = i.window, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
8578
8587
|
shimChrome: !0,
|
|
8579
8588
|
shimFirefox: !0,
|
|
8580
8589
|
shimSafari: !0
|
|
8581
8590
|
};
|
|
8582
|
-
const n = zo, s =
|
|
8591
|
+
const n = zo, s = Fu(e), r = {
|
|
8583
8592
|
browserDetails: s,
|
|
8584
|
-
commonShim:
|
|
8593
|
+
commonShim: ju,
|
|
8585
8594
|
extractVersion: mn,
|
|
8586
|
-
disableLog:
|
|
8587
|
-
disableWarnings:
|
|
8595
|
+
disableLog: Nu,
|
|
8596
|
+
disableWarnings: Uu,
|
|
8588
8597
|
// Expose sdp as a convenience. For production apps include directly.
|
|
8589
|
-
sdp:
|
|
8598
|
+
sdp: qu
|
|
8590
8599
|
};
|
|
8591
8600
|
switch (s.browser) {
|
|
8592
8601
|
case "chrome":
|
|
@@ -8612,7 +8621,7 @@ function ju() {
|
|
|
8612
8621
|
}
|
|
8613
8622
|
return r;
|
|
8614
8623
|
}
|
|
8615
|
-
|
|
8624
|
+
Wu({
|
|
8616
8625
|
window: typeof window > "u" ? void 0 : window
|
|
8617
8626
|
});
|
|
8618
8627
|
var Ps, _c;
|
|
@@ -8636,7 +8645,7 @@ class Se extends (_c = Promise) {
|
|
|
8636
8645
|
}
|
|
8637
8646
|
Ps = Se;
|
|
8638
8647
|
Se.resolve = (i) => Reflect.get(_c, "resolve", Ps).call(Ps, i);
|
|
8639
|
-
const
|
|
8648
|
+
const Hu = /version\/(\d+(\.?_?\d+)+)/i;
|
|
8640
8649
|
let Ji;
|
|
8641
8650
|
function Ce(i) {
|
|
8642
8651
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
@@ -8644,12 +8653,12 @@ function Ce(i) {
|
|
|
8644
8653
|
return;
|
|
8645
8654
|
const t = navigator.userAgent.toLowerCase();
|
|
8646
8655
|
if (Ji === void 0 || e) {
|
|
8647
|
-
const n =
|
|
8656
|
+
const n = Ku.find((s) => s.test.test(t));
|
|
8648
8657
|
Ji = n == null ? void 0 : n.describe(t);
|
|
8649
8658
|
}
|
|
8650
8659
|
return Ji;
|
|
8651
8660
|
}
|
|
8652
|
-
const
|
|
8661
|
+
const Ku = [
|
|
8653
8662
|
{
|
|
8654
8663
|
test: /firefox|iceweasel|fxios/i,
|
|
8655
8664
|
describe(i) {
|
|
@@ -8678,7 +8687,7 @@ const Hu = [
|
|
|
8678
8687
|
describe(i) {
|
|
8679
8688
|
return {
|
|
8680
8689
|
name: "Safari",
|
|
8681
|
-
version: Qn(
|
|
8690
|
+
version: Qn(Hu, i),
|
|
8682
8691
|
os: i.includes("mobile/") ? "iOS" : "macOS",
|
|
8683
8692
|
osVersion: $i(i)
|
|
8684
8693
|
};
|
|
@@ -8693,8 +8702,8 @@ function Qn(i, e) {
|
|
|
8693
8702
|
function $i(i) {
|
|
8694
8703
|
return i.includes("mac os") ? Qn(/\(.+?(\d+_\d+(:?_\d+)?)/, i, 1).replace(/_/g, ".") : void 0;
|
|
8695
8704
|
}
|
|
8696
|
-
var
|
|
8697
|
-
const
|
|
8705
|
+
var Gu = "2.20.0";
|
|
8706
|
+
const zu = Gu, Ju = 17, wc = 0, di = 1, $u = di;
|
|
8698
8707
|
class lt extends Error {
|
|
8699
8708
|
constructor(e, t, n) {
|
|
8700
8709
|
super(t || "an error has occurred"), this.name = "LiveKitError", this.code = e, typeof (n == null ? void 0 : n.cause) < "u" && (this.cause = n == null ? void 0 : n.cause);
|
|
@@ -8745,7 +8754,7 @@ class ct extends lt {
|
|
|
8745
8754
|
super(20, e ?? "track is invalid"), this.name = "TrackInvalidError";
|
|
8746
8755
|
}
|
|
8747
8756
|
}
|
|
8748
|
-
class
|
|
8757
|
+
class Yu extends lt {
|
|
8749
8758
|
constructor(e) {
|
|
8750
8759
|
super(10, e ?? "unsupported server"), this.name = "UnsupportedServer";
|
|
8751
8760
|
}
|
|
@@ -8760,7 +8769,7 @@ class Dt extends lt {
|
|
|
8760
8769
|
super(13, e ?? "unable to negotiate"), this.name = "NegotiationError";
|
|
8761
8770
|
}
|
|
8762
8771
|
}
|
|
8763
|
-
class
|
|
8772
|
+
class Qu extends lt {
|
|
8764
8773
|
constructor(e) {
|
|
8765
8774
|
super(14, e ?? "unable to publish data"), this.name = "PublishDataError";
|
|
8766
8775
|
}
|
|
@@ -8831,7 +8840,7 @@ var R;
|
|
|
8831
8840
|
(function(i) {
|
|
8832
8841
|
i.Message = "message", i.Muted = "muted", i.Unmuted = "unmuted", i.Restarted = "restarted", i.Ended = "ended", i.Subscribed = "subscribed", i.Unsubscribed = "unsubscribed", i.CpuConstrained = "cpuConstrained", i.UpdateSettings = "updateSettings", i.UpdateSubscription = "updateSubscription", i.AudioPlaybackStarted = "audioPlaybackStarted", i.AudioPlaybackFailed = "audioPlaybackFailed", i.AudioSilenceDetected = "audioSilenceDetected", i.VisibilityChanged = "visibilityChanged", i.VideoDimensionsChanged = "videoDimensionsChanged", i.VideoPlaybackStarted = "videoPlaybackStarted", i.VideoPlaybackFailed = "videoPlaybackFailed", i.ElementAttached = "elementAttached", i.ElementDetached = "elementDetached", i.UpstreamPaused = "upstreamPaused", i.UpstreamResumed = "upstreamResumed", i.SubscriptionPermissionChanged = "subscriptionPermissionChanged", i.SubscriptionStatusChanged = "subscriptionStatusChanged", i.SubscriptionFailed = "subscriptionFailed", i.TrackProcessorUpdate = "trackProcessorUpdate", i.AudioTrackFeatureUpdate = "audioTrackFeatureUpdate", i.TranscriptionReceived = "transcriptionReceived", i.TimeSyncUpdate = "timeSyncUpdate", i.PreConnectBufferFlushed = "preConnectBufferFlushed";
|
|
8833
8842
|
})(R || (R = {}));
|
|
8834
|
-
function
|
|
8843
|
+
function Xu(i) {
|
|
8835
8844
|
return typeof i > "u" ? i : typeof structuredClone == "function" ? typeof i == "object" && i !== null ? structuredClone(Object.assign({}, i)) : structuredClone(i) : JSON.parse(JSON.stringify(i));
|
|
8836
8845
|
}
|
|
8837
8846
|
class $ {
|
|
@@ -8860,11 +8869,11 @@ class $ {
|
|
|
8860
8869
|
};
|
|
8861
8870
|
}
|
|
8862
8871
|
}
|
|
8863
|
-
const
|
|
8872
|
+
const Zu = ["vp8", "h264"], eh = ["vp8", "h264", "vp9", "av1", "h265"];
|
|
8864
8873
|
function Ec(i) {
|
|
8865
|
-
return !!
|
|
8874
|
+
return !!Zu.find((e) => e === i);
|
|
8866
8875
|
}
|
|
8867
|
-
const
|
|
8876
|
+
const th = Ec;
|
|
8868
8877
|
var ia;
|
|
8869
8878
|
(function(i) {
|
|
8870
8879
|
i[i.PREFER_REGRESSION = 0] = "PREFER_REGRESSION", i[i.SIMULCAST = 1] = "SIMULCAST", i[i.REGRESSION = 2] = "REGRESSION";
|
|
@@ -9008,13 +9017,13 @@ function Ic() {
|
|
|
9008
9017
|
return t;
|
|
9009
9018
|
}
|
|
9010
9019
|
}
|
|
9011
|
-
function
|
|
9020
|
+
function nh(i) {
|
|
9012
9021
|
return i === "audioinput" ? _.Source.Microphone : i === "videoinput" ? _.Source.Camera : _.Source.Unknown;
|
|
9013
9022
|
}
|
|
9014
9023
|
function Ds(i) {
|
|
9015
9024
|
return i === _.Source.Microphone ? "audioinput" : i === _.Source.Camera ? "videoinput" : void 0;
|
|
9016
9025
|
}
|
|
9017
|
-
function
|
|
9026
|
+
function ih(i) {
|
|
9018
9027
|
var e, t;
|
|
9019
9028
|
let n = (e = i.video) !== null && e !== void 0 ? e : !0;
|
|
9020
9029
|
return i.resolution && i.resolution.width > 0 && i.resolution.height > 0 && (n = typeof n == "boolean" ? {} : n, Nt() ? n = Object.assign(Object.assign({}, n), {
|
|
@@ -9047,7 +9056,7 @@ function nh(i) {
|
|
|
9047
9056
|
function yn(i) {
|
|
9048
9057
|
return i.split("/")[1].toLowerCase();
|
|
9049
9058
|
}
|
|
9050
|
-
function
|
|
9059
|
+
function sh(i) {
|
|
9051
9060
|
const e = [];
|
|
9052
9061
|
return i.forEach((t) => {
|
|
9053
9062
|
t.track !== void 0 && e.push(new Xs({
|
|
@@ -9078,10 +9087,10 @@ function H(i) {
|
|
|
9078
9087
|
}, i.track ? H(i.track) : {})
|
|
9079
9088
|
};
|
|
9080
9089
|
}
|
|
9081
|
-
function
|
|
9090
|
+
function rh() {
|
|
9082
9091
|
return typeof RTCRtpReceiver < "u" && typeof RTCRtpReceiver.prototype.getSynchronizationSources == "function";
|
|
9083
9092
|
}
|
|
9084
|
-
function
|
|
9093
|
+
function ah(i, e) {
|
|
9085
9094
|
var t;
|
|
9086
9095
|
i === void 0 && (i = {}), e === void 0 && (e = {});
|
|
9087
9096
|
const n = [...Object.keys(e), ...Object.keys(i)], s = {};
|
|
@@ -9099,10 +9108,10 @@ function Mc(i) {
|
|
|
9099
9108
|
})), {
|
|
9100
9109
|
audioProcessor: t,
|
|
9101
9110
|
videoProcessor: n,
|
|
9102
|
-
optionsWithoutProcessor:
|
|
9111
|
+
optionsWithoutProcessor: Xu(e)
|
|
9103
9112
|
};
|
|
9104
9113
|
}
|
|
9105
|
-
function
|
|
9114
|
+
function oh(i) {
|
|
9106
9115
|
switch (i) {
|
|
9107
9116
|
case oe.CAMERA:
|
|
9108
9117
|
return _.Source.Camera;
|
|
@@ -9119,11 +9128,11 @@ function ah(i) {
|
|
|
9119
9128
|
function sa(i, e) {
|
|
9120
9129
|
return i.width * i.height < e.width * e.height;
|
|
9121
9130
|
}
|
|
9122
|
-
function
|
|
9131
|
+
function ch(i, e) {
|
|
9123
9132
|
var t;
|
|
9124
9133
|
return (t = i.layers) === null || t === void 0 ? void 0 : t.find((n) => n.quality === e);
|
|
9125
9134
|
}
|
|
9126
|
-
const
|
|
9135
|
+
const dh = 5e3, cn = [];
|
|
9127
9136
|
var Me;
|
|
9128
9137
|
(function(i) {
|
|
9129
9138
|
i[i.LOW = 0] = "LOW", i[i.MEDIUM = 1] = "MEDIUM", i[i.HIGH = 2] = "HIGH";
|
|
@@ -9144,7 +9153,7 @@ class _ extends Ie.EventEmitter {
|
|
|
9144
9153
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
9145
9154
|
var s;
|
|
9146
9155
|
super(), this.attachedElements = [], this.isMuted = !1, this._streamState = _.StreamState.Active, this.isInBackground = !1, this._currentBitrate = 0, this.log = q, this.appVisibilityChangedListener = () => {
|
|
9147
|
-
this.backgroundTimeout && clearTimeout(this.backgroundTimeout), document.visibilityState === "hidden" ? this.backgroundTimeout = setTimeout(() => this.handleAppVisibilityChanged(),
|
|
9156
|
+
this.backgroundTimeout && clearTimeout(this.backgroundTimeout), document.visibilityState === "hidden" ? this.backgroundTimeout = setTimeout(() => this.handleAppVisibilityChanged(), dh) : this.handleAppVisibilityChanged();
|
|
9148
9157
|
}, this.log = Re((s = n.loggerName) !== null && s !== void 0 ? s : pe.Track), this.loggerContextCb = n.loggerContextCb, this.setMaxListeners(100), this.kind = t, this._mediaStreamTrack = e, this._mediaStreamID = e.id, this.source = _.Source.Unknown;
|
|
9149
9158
|
}
|
|
9150
9159
|
get logContext() {
|
|
@@ -9326,9 +9335,9 @@ function Gt(i, e) {
|
|
|
9326
9335
|
}
|
|
9327
9336
|
i.streamStateFromProto = d;
|
|
9328
9337
|
})(_ || (_ = {}));
|
|
9329
|
-
const
|
|
9330
|
-
function
|
|
9331
|
-
const e = i.split(
|
|
9338
|
+
const lh = "|", ra = "https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension";
|
|
9339
|
+
function uh(i) {
|
|
9340
|
+
const e = i.split(lh);
|
|
9332
9341
|
return e.length > 1 ? [e[0], i.substr(e[0].length + 1)] : [i, ""];
|
|
9333
9342
|
}
|
|
9334
9343
|
function be(i) {
|
|
@@ -9340,7 +9349,7 @@ function As() {
|
|
|
9340
9349
|
function Os() {
|
|
9341
9350
|
return "addTrack" in RTCPeerConnection.prototype;
|
|
9342
9351
|
}
|
|
9343
|
-
function
|
|
9352
|
+
function hh() {
|
|
9344
9353
|
if (!("getCapabilities" in RTCRtpSender) || Nt() || Lt())
|
|
9345
9354
|
return !1;
|
|
9346
9355
|
const i = RTCRtpSender.getCapabilities("video");
|
|
@@ -9354,7 +9363,7 @@ function uh() {
|
|
|
9354
9363
|
}
|
|
9355
9364
|
return e;
|
|
9356
9365
|
}
|
|
9357
|
-
function
|
|
9366
|
+
function ph() {
|
|
9358
9367
|
if (!("getCapabilities" in RTCRtpSender) || Lt())
|
|
9359
9368
|
return !1;
|
|
9360
9369
|
if (Nt()) {
|
|
@@ -9379,20 +9388,20 @@ function qe(i) {
|
|
|
9379
9388
|
function xs(i) {
|
|
9380
9389
|
return !document || Rn() ? !1 : (i || (i = document.createElement("audio")), "setSinkId" in i);
|
|
9381
9390
|
}
|
|
9382
|
-
function
|
|
9391
|
+
function fh() {
|
|
9383
9392
|
return typeof RTCPeerConnection > "u" ? !1 : As() || Os();
|
|
9384
9393
|
}
|
|
9385
9394
|
function Lt() {
|
|
9386
9395
|
var i;
|
|
9387
9396
|
return ((i = Ce()) === null || i === void 0 ? void 0 : i.name) === "Firefox";
|
|
9388
9397
|
}
|
|
9389
|
-
function
|
|
9398
|
+
function mh() {
|
|
9390
9399
|
const i = Ce();
|
|
9391
9400
|
return !!i && i.name === "Chrome" && i.os !== "iOS";
|
|
9392
9401
|
}
|
|
9393
9402
|
function Ls() {
|
|
9394
9403
|
return typeof window < "u" && // @ts-ignore
|
|
9395
|
-
typeof window.RTCRtpScriptTransform < "u" && !
|
|
9404
|
+
typeof window.RTCRtpScriptTransform < "u" && !mh();
|
|
9396
9405
|
}
|
|
9397
9406
|
function Nt() {
|
|
9398
9407
|
var i;
|
|
@@ -9402,11 +9411,11 @@ function Rn() {
|
|
|
9402
9411
|
const i = Ce();
|
|
9403
9412
|
return (i == null ? void 0 : i.name) === "Safari" || (i == null ? void 0 : i.os) === "iOS";
|
|
9404
9413
|
}
|
|
9405
|
-
function
|
|
9414
|
+
function gh() {
|
|
9406
9415
|
const i = Ce();
|
|
9407
9416
|
return (i == null ? void 0 : i.name) === "Safari" && i.version.startsWith("17.") || (i == null ? void 0 : i.os) === "iOS" && !!(i != null && i.osVersion) && et(i.osVersion, "17") >= 0;
|
|
9408
9417
|
}
|
|
9409
|
-
function
|
|
9418
|
+
function vh(i) {
|
|
9410
9419
|
return i || (i = Ce()), (i == null ? void 0 : i.name) === "Safari" && et(i.version, "18.3") > 0 || (i == null ? void 0 : i.os) === "iOS" && !!(i != null && i.osVersion) && et(i.osVersion, "18.3") > 0;
|
|
9411
9420
|
}
|
|
9412
9421
|
function Dc() {
|
|
@@ -9416,7 +9425,7 @@ function Dc() {
|
|
|
9416
9425
|
(e = (i = navigator.userAgentData) === null || i === void 0 ? void 0 : i.mobile) !== null && e !== void 0 ? e : /Tablet|iPad|Mobile|Android|BlackBerry/.test(navigator.userAgent)
|
|
9417
9426
|
) : !1;
|
|
9418
9427
|
}
|
|
9419
|
-
function
|
|
9428
|
+
function bh() {
|
|
9420
9429
|
const i = Ce(), e = "17.2";
|
|
9421
9430
|
if (i)
|
|
9422
9431
|
return i.name !== "Safari" && i.os !== "iOS" || i.os === "iOS" && i.osVersion && et(i.osVersion, e) >= 0 ? !0 : i.name === "Safari" && et(i.version, e) >= 0;
|
|
@@ -9464,29 +9473,29 @@ function et(i, e) {
|
|
|
9464
9473
|
}
|
|
9465
9474
|
return i === "" && e !== "" ? -1 : e === "" ? 1 : t.length == n.length ? 0 : t.length < n.length ? -1 : 1;
|
|
9466
9475
|
}
|
|
9467
|
-
function
|
|
9476
|
+
function yh(i) {
|
|
9468
9477
|
for (const e of i)
|
|
9469
9478
|
e.target.handleResize(e);
|
|
9470
9479
|
}
|
|
9471
|
-
function
|
|
9480
|
+
function kh(i) {
|
|
9472
9481
|
for (const e of i)
|
|
9473
9482
|
e.target.handleVisibilityChanged(e);
|
|
9474
9483
|
}
|
|
9475
9484
|
let Qi = null;
|
|
9476
|
-
const oa = () => (Qi || (Qi = new ResizeObserver(
|
|
9485
|
+
const oa = () => (Qi || (Qi = new ResizeObserver(yh)), Qi);
|
|
9477
9486
|
let Xi = null;
|
|
9478
|
-
const ca = () => (Xi || (Xi = new IntersectionObserver(
|
|
9487
|
+
const ca = () => (Xi || (Xi = new IntersectionObserver(kh, {
|
|
9479
9488
|
root: null,
|
|
9480
9489
|
rootMargin: "0px"
|
|
9481
9490
|
})), Xi);
|
|
9482
|
-
function
|
|
9491
|
+
function Th(i) {
|
|
9483
9492
|
var e;
|
|
9484
9493
|
const t = new Po({
|
|
9485
9494
|
capabilities: i,
|
|
9486
9495
|
sdk: Ro.JS,
|
|
9487
|
-
protocol:
|
|
9488
|
-
clientProtocol:
|
|
9489
|
-
version:
|
|
9496
|
+
protocol: Ju,
|
|
9497
|
+
clientProtocol: $u,
|
|
9498
|
+
version: zu
|
|
9490
9499
|
});
|
|
9491
9500
|
return Ge() && (t.os = (e = Oc()) !== null && e !== void 0 ? e : ""), t;
|
|
9492
9501
|
}
|
|
@@ -9528,8 +9537,8 @@ class he {
|
|
|
9528
9537
|
});
|
|
9529
9538
|
}
|
|
9530
9539
|
}
|
|
9531
|
-
function
|
|
9532
|
-
return
|
|
9540
|
+
function Sh(i) {
|
|
9541
|
+
return eh.includes(i);
|
|
9533
9542
|
}
|
|
9534
9543
|
function At(i) {
|
|
9535
9544
|
if (typeof i == "string" || typeof i == "number")
|
|
@@ -9542,13 +9551,13 @@ function At(i) {
|
|
|
9542
9551
|
return Array.isArray(i.ideal) ? i.ideal[0] : i.ideal;
|
|
9543
9552
|
throw Error("could not unwrap constraint");
|
|
9544
9553
|
}
|
|
9545
|
-
function
|
|
9554
|
+
function Ch(i) {
|
|
9546
9555
|
return i.startsWith("http") ? i.replace(/^(http)/, "ws") : i;
|
|
9547
9556
|
}
|
|
9548
9557
|
function In(i) {
|
|
9549
9558
|
return i.startsWith("ws") ? i.replace(/^(ws)/, "http") : i;
|
|
9550
9559
|
}
|
|
9551
|
-
function
|
|
9560
|
+
function _h(i, e) {
|
|
9552
9561
|
return i.segments.map((t) => {
|
|
9553
9562
|
let n = t.id, s = t.text, r = t.language, a = t.startTime, o = t.endTime, d = t.final;
|
|
9554
9563
|
var c;
|
|
@@ -9565,7 +9574,7 @@ function Ch(i, e) {
|
|
|
9565
9574
|
};
|
|
9566
9575
|
});
|
|
9567
9576
|
}
|
|
9568
|
-
function
|
|
9577
|
+
function wh(i) {
|
|
9569
9578
|
const e = i.id, t = i.timestamp, n = i.message, s = i.editTimestamp;
|
|
9570
9579
|
return {
|
|
9571
9580
|
id: e,
|
|
@@ -9612,16 +9621,16 @@ function nt(i) {
|
|
|
9612
9621
|
function Ns(i) {
|
|
9613
9622
|
return !!i && !i.isLocal;
|
|
9614
9623
|
}
|
|
9615
|
-
function
|
|
9624
|
+
function Eh(i) {
|
|
9616
9625
|
return !!i && !i.isLocal;
|
|
9617
9626
|
}
|
|
9618
9627
|
function es(i) {
|
|
9619
9628
|
return Ns(i) && dt(i);
|
|
9620
9629
|
}
|
|
9621
|
-
function
|
|
9630
|
+
function Ph(i) {
|
|
9622
9631
|
return i.isLocal;
|
|
9623
9632
|
}
|
|
9624
|
-
function
|
|
9633
|
+
function Rh(i, e) {
|
|
9625
9634
|
const t = [];
|
|
9626
9635
|
let n = new TextEncoder().encode(i);
|
|
9627
9636
|
for (; n.length > e; ) {
|
|
@@ -9636,7 +9645,7 @@ function Ph(i, e) {
|
|
|
9636
9645
|
}
|
|
9637
9646
|
return n.length > 0 && t.push(n), t;
|
|
9638
9647
|
}
|
|
9639
|
-
function
|
|
9648
|
+
function Ih(i) {
|
|
9640
9649
|
var e;
|
|
9641
9650
|
const t = i.get("Cache-Control");
|
|
9642
9651
|
if (t) {
|
|
@@ -9648,21 +9657,21 @@ function Rh(i) {
|
|
|
9648
9657
|
function xc() {
|
|
9649
9658
|
return typeof CompressionStream < "u";
|
|
9650
9659
|
}
|
|
9651
|
-
function
|
|
9660
|
+
function Mh() {
|
|
9652
9661
|
return xc() && !Lt();
|
|
9653
9662
|
}
|
|
9654
|
-
function
|
|
9663
|
+
function Dh(i, e) {
|
|
9655
9664
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
9656
|
-
const n =
|
|
9665
|
+
const n = Ah(i, e);
|
|
9657
9666
|
return t ? n : ar(n, "v1");
|
|
9658
9667
|
}
|
|
9659
|
-
function
|
|
9660
|
-
const t = new URL(
|
|
9668
|
+
function Ah(i, e) {
|
|
9669
|
+
const t = new URL(Ch(i));
|
|
9661
9670
|
return e.forEach((n, s) => {
|
|
9662
9671
|
t.searchParams.set(s, n);
|
|
9663
9672
|
}), ar(t, "rtc");
|
|
9664
9673
|
}
|
|
9665
|
-
function
|
|
9674
|
+
function Oh(i) {
|
|
9666
9675
|
const e = new URL(In(i));
|
|
9667
9676
|
return ar(e, "validate");
|
|
9668
9677
|
}
|
|
@@ -9681,7 +9690,7 @@ function ua(i) {
|
|
|
9681
9690
|
return Hr.fromBinary(new Uint8Array(i));
|
|
9682
9691
|
throw new Error("could not decode websocket message: ".concat(typeof i));
|
|
9683
9692
|
}
|
|
9684
|
-
function
|
|
9693
|
+
function xh(i) {
|
|
9685
9694
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Unknown reason";
|
|
9686
9695
|
if (!(i instanceof AbortSignal))
|
|
9687
9696
|
return e;
|
|
@@ -9695,11 +9704,11 @@ function Oh(i) {
|
|
|
9695
9704
|
return "toString" in t ? t.toString() : e;
|
|
9696
9705
|
}
|
|
9697
9706
|
}
|
|
9698
|
-
const
|
|
9707
|
+
const Lh = 10, ln = "lk_e2ee", Nh = "LKFrameEncryptionKey", Uh = {
|
|
9699
9708
|
sharedKey: !1,
|
|
9700
|
-
ratchetSalt:
|
|
9709
|
+
ratchetSalt: Nh,
|
|
9701
9710
|
ratchetWindowSize: 8,
|
|
9702
|
-
failureTolerance:
|
|
9711
|
+
failureTolerance: Lh,
|
|
9703
9712
|
keyringSize: 16,
|
|
9704
9713
|
keySize: 128
|
|
9705
9714
|
};
|
|
@@ -9719,24 +9728,24 @@ var pa;
|
|
|
9719
9728
|
(function(i) {
|
|
9720
9729
|
i.Error = "cryptorError";
|
|
9721
9730
|
})(pa || (pa = {}));
|
|
9722
|
-
function Uh() {
|
|
9723
|
-
return or() || Fh();
|
|
9724
|
-
}
|
|
9725
9731
|
function Fh() {
|
|
9732
|
+
return or() || Bh();
|
|
9733
|
+
}
|
|
9734
|
+
function Bh() {
|
|
9726
9735
|
return typeof window < "u" && typeof window.RTCRtpScriptTransform < "u";
|
|
9727
9736
|
}
|
|
9728
9737
|
function or() {
|
|
9729
9738
|
return typeof window < "u" && typeof window.RTCRtpSender < "u" && // @ts-ignore
|
|
9730
9739
|
typeof window.RTCRtpSender.prototype.createEncodedStreams < "u";
|
|
9731
9740
|
}
|
|
9732
|
-
function
|
|
9741
|
+
function Vh(i) {
|
|
9733
9742
|
var e, t, n, s, r;
|
|
9734
9743
|
if (((e = i.value) === null || e === void 0 ? void 0 : e.case) !== "sipDtmf" && ((t = i.value) === null || t === void 0 ? void 0 : t.case) !== "metrics" && ((n = i.value) === null || n === void 0 ? void 0 : n.case) !== "speaker" && ((s = i.value) === null || s === void 0 ? void 0 : s.case) !== "transcription" && ((r = i.value) === null || r === void 0 ? void 0 : r.case) !== "encryptedPacket")
|
|
9735
9744
|
return new ko({
|
|
9736
9745
|
value: i.value
|
|
9737
9746
|
});
|
|
9738
9747
|
}
|
|
9739
|
-
class
|
|
9748
|
+
class Hf extends Ie.EventEmitter {
|
|
9740
9749
|
constructor() {
|
|
9741
9750
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
9742
9751
|
super(), this.latestManuallySetKeyIndex = 0, this.onKeyRatcheted = (t, n, s) => {
|
|
@@ -9745,7 +9754,7 @@ class Wf extends Ie.EventEmitter {
|
|
|
9745
9754
|
participantId: n,
|
|
9746
9755
|
keyIndex: s
|
|
9747
9756
|
});
|
|
9748
|
-
}, this.keyInfoMap = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({},
|
|
9757
|
+
}, this.keyInfoMap = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({}, Uh), e), this.on(kt.KeyRatcheted, this.onKeyRatcheted);
|
|
9749
9758
|
}
|
|
9750
9759
|
/**
|
|
9751
9760
|
* callback to invoke once a key has been set for a participant
|
|
@@ -9789,11 +9798,11 @@ function Dn(i) {
|
|
|
9789
9798
|
function ui(i) {
|
|
9790
9799
|
return !!(i != null && i.timestamp || i != null && i.frameId);
|
|
9791
9800
|
}
|
|
9792
|
-
function
|
|
9801
|
+
function qh(i) {
|
|
9793
9802
|
const e = [];
|
|
9794
9803
|
return i != null && i.timestamp && e.push(Xt.PTF_USER_TIMESTAMP), i != null && i.frameId && e.push(Xt.PTF_FRAME_ID), e;
|
|
9795
9804
|
}
|
|
9796
|
-
function
|
|
9805
|
+
function jh(i) {
|
|
9797
9806
|
if (!i || i.length === 0)
|
|
9798
9807
|
return;
|
|
9799
9808
|
const e = {};
|
|
@@ -9818,7 +9827,7 @@ function cr(i) {
|
|
|
9818
9827
|
g[m] = arguments[m];
|
|
9819
9828
|
const T = this;
|
|
9820
9829
|
return new Promise((k, S) => {
|
|
9821
|
-
const
|
|
9830
|
+
const N = function() {
|
|
9822
9831
|
if (r = void 0, c = Date.now(), !a) {
|
|
9823
9832
|
const y = i.apply(T, g);
|
|
9824
9833
|
o && o(y), l.forEach((C) => {
|
|
@@ -9827,7 +9836,7 @@ function cr(i) {
|
|
|
9827
9836
|
}), l = [];
|
|
9828
9837
|
}
|
|
9829
9838
|
}, v = a && r === void 0;
|
|
9830
|
-
if (r !== void 0 && ce.clearTimeout(r), r = ce.setTimeout(
|
|
9839
|
+
if (r !== void 0 && ce.clearTimeout(r), r = ce.setTimeout(N, u()), v) {
|
|
9831
9840
|
const y = i.apply(T, g);
|
|
9832
9841
|
return o && o(y), k(y);
|
|
9833
9842
|
}
|
|
@@ -9910,7 +9919,7 @@ class Nc extends _ {
|
|
|
9910
9919
|
}
|
|
9911
9920
|
/* @internal */
|
|
9912
9921
|
startMonitor() {
|
|
9913
|
-
this.monitorInterval || (this.monitorInterval = setInterval(() => this.monitorReceiver(), dr)),
|
|
9922
|
+
this.monitorInterval || (this.monitorInterval = setInterval(() => this.monitorReceiver(), dr)), rh() && this.registerTimeSyncUpdate();
|
|
9914
9923
|
}
|
|
9915
9924
|
registerTimeSyncUpdate() {
|
|
9916
9925
|
const e = () => {
|
|
@@ -9976,7 +9985,7 @@ class lr extends Nc {
|
|
|
9976
9985
|
}
|
|
9977
9986
|
attach(e) {
|
|
9978
9987
|
if (e ? super.attach(e) : e = super.attach(), this.adaptiveStreamSettings && this.elementInfos.find((t) => t.element === e) === void 0) {
|
|
9979
|
-
const t = new
|
|
9988
|
+
const t = new Wh(e);
|
|
9980
9989
|
this.observeElementInfo(t);
|
|
9981
9990
|
}
|
|
9982
9991
|
return e;
|
|
@@ -10096,7 +10105,7 @@ class lr extends Nc {
|
|
|
10096
10105
|
return t === "screen" ? aa() : t || (aa() > 2 ? 2 : 1);
|
|
10097
10106
|
}
|
|
10098
10107
|
}
|
|
10099
|
-
class
|
|
10108
|
+
class Wh {
|
|
10100
10109
|
get visible() {
|
|
10101
10110
|
return this.isPiP || this.isIntersecting;
|
|
10102
10111
|
}
|
|
@@ -10151,7 +10160,7 @@ function Us(i, e) {
|
|
|
10151
10160
|
i = i.offsetParent, n += i.offsetTop, s += i.offsetLeft;
|
|
10152
10161
|
return n < t.pageYOffset + t.innerHeight && s < t.pageXOffset + t.innerWidth && n + a > t.pageYOffset && s + r > t.pageXOffset && !d && l !== "none";
|
|
10153
10162
|
}
|
|
10154
|
-
class
|
|
10163
|
+
class Hh extends Ie.EventEmitter {
|
|
10155
10164
|
constructor(e, t) {
|
|
10156
10165
|
super(), this.decryptDataRequests = /* @__PURE__ */ new Map(), this.encryptDataRequests = /* @__PURE__ */ new Map(), this.onWorkerMessage = (n) => {
|
|
10157
10166
|
var s, r;
|
|
@@ -10220,7 +10229,7 @@ class Wh extends Ie.EventEmitter {
|
|
|
10220
10229
|
* @internal
|
|
10221
10230
|
*/
|
|
10222
10231
|
setup(e) {
|
|
10223
|
-
if (!
|
|
10232
|
+
if (!Fh())
|
|
10224
10233
|
throw new ir("tried to setup end-to-end encryption on an unsupported browser");
|
|
10225
10234
|
if (q.info("setting up e2ee"), e !== this.room) {
|
|
10226
10235
|
this.room = e, this.setupEventListeners(e, this.keyProvider);
|
|
@@ -10228,7 +10237,7 @@ class Wh extends Ie.EventEmitter {
|
|
|
10228
10237
|
kind: "init",
|
|
10229
10238
|
data: {
|
|
10230
10239
|
keyProviderOptions: this.keyProvider.getOptions(),
|
|
10231
|
-
loglevel:
|
|
10240
|
+
loglevel: Ru.getLevel()
|
|
10232
10241
|
}
|
|
10233
10242
|
};
|
|
10234
10243
|
this.worker && (q.info("initializing worker", {
|
|
@@ -10521,13 +10530,13 @@ class Wh extends Ie.EventEmitter {
|
|
|
10521
10530
|
}
|
|
10522
10531
|
}
|
|
10523
10532
|
}
|
|
10524
|
-
const
|
|
10525
|
-
class
|
|
10533
|
+
const Kh = 300;
|
|
10534
|
+
class Gh {
|
|
10526
10535
|
constructor() {
|
|
10527
10536
|
this.metadataMap = /* @__PURE__ */ new Map(), this.activeSsrc = 0;
|
|
10528
10537
|
}
|
|
10529
10538
|
storeMetadata(e, t, n) {
|
|
10530
|
-
for (this.activeSsrc !== 0 && this.activeSsrc !== t && this.metadataMap.clear(), this.activeSsrc = t; this.metadataMap.size >=
|
|
10539
|
+
for (this.activeSsrc !== 0 && this.activeSsrc !== t && this.metadataMap.clear(), this.activeSsrc = t; this.metadataMap.size >= Kh; ) {
|
|
10531
10540
|
const s = this.metadataMap.keys().next().value;
|
|
10532
10541
|
this.metadataMap.delete(s);
|
|
10533
10542
|
}
|
|
@@ -10540,7 +10549,7 @@ class Kh {
|
|
|
10540
10549
|
this.metadataMap.clear(), this.activeSsrc = 0;
|
|
10541
10550
|
}
|
|
10542
10551
|
}
|
|
10543
|
-
class
|
|
10552
|
+
class zh {
|
|
10544
10553
|
constructor(e) {
|
|
10545
10554
|
this.extractors = /* @__PURE__ */ new Map(), this.workerPipelines = /* @__PURE__ */ new Map(), this.onWorkerMessage = (t) => {
|
|
10546
10555
|
const n = t.data;
|
|
@@ -10581,7 +10590,7 @@ class Gh {
|
|
|
10581
10590
|
q.warn("frame metadata transform not supported; skipping extraction");
|
|
10582
10591
|
return;
|
|
10583
10592
|
}
|
|
10584
|
-
const d = new
|
|
10593
|
+
const d = new Gh(), c = e.mediaStreamID;
|
|
10585
10594
|
this.extractors.set(c, d), e.frameMetadataExtractor = d, !(!((r = this.room) === null || r === void 0) && r.hasE2EESetup) && this.setupWorkerReceiver(a, c, !0);
|
|
10586
10595
|
}
|
|
10587
10596
|
setupPassthroughReceiver(e, t) {
|
|
@@ -10657,7 +10666,7 @@ class Gh {
|
|
|
10657
10666
|
this.extractors.clear(), this.workerPipelines.clear(), (e = this.worker) === null || e === void 0 || e.terminate();
|
|
10658
10667
|
}
|
|
10659
10668
|
}
|
|
10660
|
-
const
|
|
10669
|
+
const Jh = 500, $h = 15e3;
|
|
10661
10670
|
class Jt {
|
|
10662
10671
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
10663
10672
|
constructor() {
|
|
@@ -10672,7 +10681,7 @@ class Jt {
|
|
|
10672
10681
|
if (!s)
|
|
10673
10682
|
return;
|
|
10674
10683
|
let r = (t = this.failedConnectionAttempts.get(s)) !== null && t !== void 0 ? t : 0;
|
|
10675
|
-
this.failedConnectionAttempts.set(s, r + 1), this.backOffPromises.set(s, be(Math.min(
|
|
10684
|
+
this.failedConnectionAttempts.set(s, r + 1), this.backOffPromises.set(s, be(Math.min(Jh * Math.pow(2, r), $h)));
|
|
10676
10685
|
}
|
|
10677
10686
|
getBackOffPromise(e) {
|
|
10678
10687
|
const t = new URL(e), n = t && Yi(t);
|
|
@@ -10891,7 +10900,7 @@ class tn extends xe {
|
|
|
10891
10900
|
return new tn("0x".concat(e.toString(16), " is a reserved value."), Ot.Reserved);
|
|
10892
10901
|
}
|
|
10893
10902
|
}
|
|
10894
|
-
const
|
|
10903
|
+
const Yh = {
|
|
10895
10904
|
fromNumber(i) {
|
|
10896
10905
|
if (i === 0)
|
|
10897
10906
|
throw tn.reserved(i);
|
|
@@ -10900,7 +10909,7 @@ const $h = {
|
|
|
10900
10909
|
return i;
|
|
10901
10910
|
}
|
|
10902
10911
|
};
|
|
10903
|
-
class
|
|
10912
|
+
class Qh {
|
|
10904
10913
|
constructor() {
|
|
10905
10914
|
this.value = 0;
|
|
10906
10915
|
}
|
|
@@ -10934,7 +10943,7 @@ var kn;
|
|
|
10934
10943
|
(function(i) {
|
|
10935
10944
|
i[i.WAITING = 0] = "WAITING", i[i.RUNNING = 1] = "RUNNING", i[i.COMPLETED = 2] = "COMPLETED";
|
|
10936
10945
|
})(kn || (kn = {}));
|
|
10937
|
-
class
|
|
10946
|
+
class Xh {
|
|
10938
10947
|
constructor() {
|
|
10939
10948
|
this.pendingTasks = /* @__PURE__ */ new Map(), this.taskMutex = new ge(), this.nextTaskIndex = 0;
|
|
10940
10949
|
}
|
|
@@ -10964,7 +10973,7 @@ class Qh {
|
|
|
10964
10973
|
return Array.from(this.pendingTasks.values());
|
|
10965
10974
|
}
|
|
10966
10975
|
}
|
|
10967
|
-
class
|
|
10976
|
+
class Zh {
|
|
10968
10977
|
get readyState() {
|
|
10969
10978
|
return this.ws.readyState;
|
|
10970
10979
|
}
|
|
@@ -11029,9 +11038,9 @@ class Xh {
|
|
|
11029
11038
|
}), t.signal && (t.signal.onabort = () => r.close()), this.close = a;
|
|
11030
11039
|
}
|
|
11031
11040
|
}
|
|
11032
|
-
const
|
|
11033
|
-
function
|
|
11034
|
-
const e =
|
|
11041
|
+
const ep = ["syncState", "trickle", "offer", "answer", "simulate", "leave"];
|
|
11042
|
+
function tp(i) {
|
|
11043
|
+
const e = ep.indexOf(i.case) >= 0;
|
|
11035
11044
|
return q.trace("request allowed to bypass queue:", {
|
|
11036
11045
|
canPass: e,
|
|
11037
11046
|
req: i
|
|
@@ -11041,7 +11050,7 @@ var Y;
|
|
|
11041
11050
|
(function(i) {
|
|
11042
11051
|
i[i.CONNECTING = 0] = "CONNECTING", i[i.CONNECTED = 1] = "CONNECTED", i[i.RECONNECTING = 2] = "RECONNECTING", i[i.DISCONNECTING = 3] = "DISCONNECTING", i[i.DISCONNECTED = 4] = "DISCONNECTED";
|
|
11043
11052
|
})(Y || (Y = {}));
|
|
11044
|
-
const
|
|
11053
|
+
const np = 250;
|
|
11045
11054
|
class pr {
|
|
11046
11055
|
get currentState() {
|
|
11047
11056
|
return this.state;
|
|
@@ -11060,7 +11069,7 @@ class pr {
|
|
|
11060
11069
|
var n;
|
|
11061
11070
|
this.rtt = 0, this.state = Y.DISCONNECTED, this.log = q, this._requestId = 0, this.useV0SignalPath = !1, this.resetCallbacks = () => {
|
|
11062
11071
|
this.onAnswer = void 0, this.onLeave = void 0, this.onLocalTrackPublished = void 0, this.onLocalTrackUnpublished = void 0, this.onNegotiateRequested = void 0, this.onOffer = void 0, this.onRemoteMuteChanged = void 0, this.onSubscribedQualityUpdate = void 0, this.onTokenRefresh = void 0, this.onTrickle = void 0, this.onClose = void 0, this.onMediaSectionsRequirement = void 0;
|
|
11063
|
-
}, this.loggerContextCb = t.loggerContextCb, this.log = Re((n = t.loggerName) !== null && n !== void 0 ? n : pe.Signal, () => this.logContext), this.useJSON = e, this.requestQueue = new
|
|
11072
|
+
}, this.loggerContextCb = t.loggerContextCb, this.log = Re((n = t.loggerName) !== null && n !== void 0 ? n : pe.Signal, () => this.logContext), this.useJSON = e, this.requestQueue = new Xh(), this.queuedRequests = [], this.closingLock = new ge(), this.connectionLock = new ge(), this.state = Y.DISCONNECTED;
|
|
11064
11073
|
}
|
|
11065
11074
|
get logContext() {
|
|
11066
11075
|
var e, t;
|
|
@@ -11095,27 +11104,27 @@ class pr {
|
|
|
11095
11104
|
return function* () {
|
|
11096
11105
|
const h = yield c.connectionLock.lock();
|
|
11097
11106
|
c.connectOptions = o, c.useV0SignalPath = l;
|
|
11098
|
-
const p =
|
|
11107
|
+
const p = Th(o.clientInfoCapabilities), g = l ? ip(a, p, o) : yield sp(a, p, o, u), m = Dh(r, g, l).toString(), T = Oh(m).toString();
|
|
11099
11108
|
return new Promise((k, S) => f(c, void 0, void 0, function* () {
|
|
11100
|
-
var
|
|
11109
|
+
var N, v;
|
|
11101
11110
|
try {
|
|
11102
11111
|
let y = !1;
|
|
11103
11112
|
const C = (O) => f(this, void 0, void 0, function* () {
|
|
11104
11113
|
if (y)
|
|
11105
11114
|
return;
|
|
11106
11115
|
y = !0;
|
|
11107
|
-
const B = O instanceof Event ? O.currentTarget : O, W =
|
|
11116
|
+
const B = O instanceof Event ? O.currentTarget : O, W = xh(B, "Abort handler called");
|
|
11108
11117
|
this.streamWriter && !this.isDisconnected ? this.sendLeave().then(() => this.close(W)).catch((Z) => {
|
|
11109
11118
|
this.log.error(Z), this.close();
|
|
11110
11119
|
}) : this.close(), I(), S(F.cancelled(W));
|
|
11111
11120
|
});
|
|
11112
11121
|
d == null || d.addEventListener("abort", C);
|
|
11113
11122
|
const I = () => {
|
|
11114
|
-
clearTimeout(
|
|
11115
|
-
},
|
|
11123
|
+
clearTimeout(L), d == null || d.removeEventListener("abort", C);
|
|
11124
|
+
}, L = setTimeout(() => {
|
|
11116
11125
|
C(F.timeout("room connection has timed out (signal)"));
|
|
11117
11126
|
}, o.websocketTimeout), V = (O, B) => {
|
|
11118
|
-
this.handleSignalConnected(O,
|
|
11127
|
+
this.handleSignalConnected(O, L, B);
|
|
11119
11128
|
}, A = new URL(m);
|
|
11120
11129
|
if (A.searchParams.has("access_token") && A.searchParams.set("access_token", "<redacted>"), this.ws) {
|
|
11121
11130
|
const O = performance.now();
|
|
@@ -11124,7 +11133,7 @@ class pr {
|
|
|
11124
11133
|
this.log.info("signal connecting to ".concat(A), {
|
|
11125
11134
|
reconnect: o.reconnect,
|
|
11126
11135
|
reconnectReason: o.reconnectReason
|
|
11127
|
-
}), this.ws = new
|
|
11136
|
+
}), this.ws = new Zh(m);
|
|
11128
11137
|
try {
|
|
11129
11138
|
this.ws.closed.then((ye) => {
|
|
11130
11139
|
var ut;
|
|
@@ -11139,21 +11148,21 @@ class pr {
|
|
|
11139
11148
|
});
|
|
11140
11149
|
const O = yield this.ws.opened.catch((ye) => f(this, void 0, void 0, function* () {
|
|
11141
11150
|
if (this.state !== Y.CONNECTED) {
|
|
11142
|
-
this.state = Y.DISCONNECTED, clearTimeout(
|
|
11151
|
+
this.state = Y.DISCONNECTED, clearTimeout(L);
|
|
11143
11152
|
const ut = yield this.handleConnectionError(ye, T);
|
|
11144
11153
|
S(ut);
|
|
11145
11154
|
return;
|
|
11146
11155
|
}
|
|
11147
11156
|
this.handleWSError(ye), S(ye);
|
|
11148
11157
|
}));
|
|
11149
|
-
if (clearTimeout(
|
|
11158
|
+
if (clearTimeout(L), !O)
|
|
11150
11159
|
return;
|
|
11151
11160
|
const B = O.readable.getReader();
|
|
11152
11161
|
this.streamWriter = O.writable.getWriter();
|
|
11153
11162
|
const W = yield B.read();
|
|
11154
11163
|
if (B.releaseLock(), !W.value)
|
|
11155
11164
|
throw F.internal("no message received as first message");
|
|
11156
|
-
const Z = ua(W.value), ze = this.validateFirstMessage(Z, (
|
|
11165
|
+
const Z = ua(W.value), ze = this.validateFirstMessage(Z, (N = o.reconnect) !== null && N !== void 0 ? N : !1);
|
|
11157
11166
|
if (!ze.isValid) {
|
|
11158
11167
|
S(ze.error);
|
|
11159
11168
|
return;
|
|
@@ -11205,7 +11214,7 @@ class pr {
|
|
|
11205
11214
|
reason: n
|
|
11206
11215
|
});
|
|
11207
11216
|
const r = e.ws.closed;
|
|
11208
|
-
e.ws = void 0, e.streamWriter = void 0, yield Promise.race([r, be(
|
|
11217
|
+
e.ws = void 0, e.streamWriter = void 0, yield Promise.race([r, be(np)]);
|
|
11209
11218
|
}
|
|
11210
11219
|
} catch (r) {
|
|
11211
11220
|
e.log.debug("websocket error while closing", {
|
|
@@ -11387,7 +11396,7 @@ class pr {
|
|
|
11387
11396
|
var n = this;
|
|
11388
11397
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
11389
11398
|
return function* () {
|
|
11390
|
-
if (!s && !
|
|
11399
|
+
if (!s && !tp(t) && n.state === Y.RECONNECTING) {
|
|
11391
11400
|
n.queuedRequests.push(() => f(n, void 0, void 0, function* () {
|
|
11392
11401
|
yield this.sendRequest(t, !0);
|
|
11393
11402
|
}));
|
|
@@ -11401,7 +11410,7 @@ class pr {
|
|
|
11401
11410
|
n.log.error("cannot send signal request before connected, type: ".concat(t == null ? void 0 : t.case));
|
|
11402
11411
|
return;
|
|
11403
11412
|
}
|
|
11404
|
-
const a = new
|
|
11413
|
+
const a = new Yl({
|
|
11405
11414
|
message: t
|
|
11406
11415
|
});
|
|
11407
11416
|
try {
|
|
@@ -11581,16 +11590,16 @@ function Rt(i, e) {
|
|
|
11581
11590
|
id: e
|
|
11582
11591
|
});
|
|
11583
11592
|
}
|
|
11584
|
-
function
|
|
11593
|
+
function ip(i, e, t) {
|
|
11585
11594
|
var n;
|
|
11586
11595
|
const s = new URLSearchParams();
|
|
11587
11596
|
return s.set("access_token", i), t.reconnect && (s.set("reconnect", "1"), t.sid && s.set("sid", t.sid)), s.set("auto_subscribe", t.autoSubscribe ? "1" : "0"), s.set("sdk", Ge() ? "reactnative" : "js"), s.set("version", e.version), s.set("protocol", e.protocol.toString()), s.set("client_protocol", e.clientProtocol.toString()), e.deviceModel && s.set("device_model", e.deviceModel), e.os && s.set("os", e.os), e.osVersion && s.set("os_version", e.osVersion), e.browser && s.set("browser", e.browser), e.browserVersion && s.set("browser_version", e.browserVersion), t.adaptiveStream && s.set("adaptive_stream", "1"), t.reconnectReason && s.set("reconnect_reason", t.reconnectReason.toString()), !((n = navigator.connection) === null || n === void 0) && n.type && s.set("network", navigator.connection.type), s;
|
|
11588
11597
|
}
|
|
11589
|
-
function
|
|
11598
|
+
function sp(i, e, t, n) {
|
|
11590
11599
|
return f(this, void 0, void 0, function* () {
|
|
11591
11600
|
const s = new URLSearchParams();
|
|
11592
11601
|
s.set("access_token", i);
|
|
11593
|
-
const r = new
|
|
11602
|
+
const r = new Tu({
|
|
11594
11603
|
clientInfo: e,
|
|
11595
11604
|
connectionSettings: new Ko({
|
|
11596
11605
|
autoSubscribe: !!t.autoSubscribe,
|
|
@@ -11608,18 +11617,18 @@ function ip(i, e, t, n) {
|
|
|
11608
11617
|
p.write(new Uint8Array(a)), p.close();
|
|
11609
11618
|
const g = [], m = h.readable.getReader();
|
|
11610
11619
|
for (; ; ) {
|
|
11611
|
-
const
|
|
11620
|
+
const N = yield m.read(), v = N.done, y = N.value;
|
|
11612
11621
|
if (v) break;
|
|
11613
11622
|
g.push(y);
|
|
11614
11623
|
}
|
|
11615
|
-
const T = g.reduce((
|
|
11624
|
+
const T = g.reduce((N, v) => N + v.length, 0), k = new Uint8Array(T);
|
|
11616
11625
|
let S = 0;
|
|
11617
|
-
for (const
|
|
11618
|
-
k.set(
|
|
11626
|
+
for (const N of g)
|
|
11627
|
+
k.set(N, S), S += N.length;
|
|
11619
11628
|
o = k, d = ys.GZIP;
|
|
11620
11629
|
} else
|
|
11621
11630
|
o = a, d = ys.NONE;
|
|
11622
|
-
const l = new
|
|
11631
|
+
const l = new Su({
|
|
11623
11632
|
joinRequest: o,
|
|
11624
11633
|
compression: d
|
|
11625
11634
|
}).toBinary(), u = (h) => {
|
|
@@ -11659,7 +11668,7 @@ class ga {
|
|
|
11659
11668
|
return this.buffer.length;
|
|
11660
11669
|
}
|
|
11661
11670
|
}
|
|
11662
|
-
class
|
|
11671
|
+
class rp {
|
|
11663
11672
|
/**
|
|
11664
11673
|
* @param ttl ttl of the key (ms)
|
|
11665
11674
|
*/
|
|
@@ -12195,7 +12204,7 @@ function fr() {
|
|
|
12195
12204
|
}), ss.exports;
|
|
12196
12205
|
}
|
|
12197
12206
|
var ba;
|
|
12198
|
-
function
|
|
12207
|
+
function ap() {
|
|
12199
12208
|
return ba || (ba = 1, function(i) {
|
|
12200
12209
|
var e = function(o) {
|
|
12201
12210
|
return String(Number(o)) === o ? Number(o) : o;
|
|
@@ -12263,7 +12272,7 @@ function rp() {
|
|
|
12263
12272
|
}(is)), is;
|
|
12264
12273
|
}
|
|
12265
12274
|
var rs, ya;
|
|
12266
|
-
function
|
|
12275
|
+
function op() {
|
|
12267
12276
|
if (ya) return rs;
|
|
12268
12277
|
ya = 1;
|
|
12269
12278
|
var i = fr(), e = /%[sdv%]/g, t = function(a) {
|
|
@@ -12319,14 +12328,14 @@ function ap() {
|
|
|
12319
12328
|
}, rs;
|
|
12320
12329
|
}
|
|
12321
12330
|
var ka;
|
|
12322
|
-
function
|
|
12331
|
+
function cp() {
|
|
12323
12332
|
if (ka) return Le;
|
|
12324
12333
|
ka = 1;
|
|
12325
|
-
var i =
|
|
12334
|
+
var i = ap(), e = op(), t = fr();
|
|
12326
12335
|
return Le.grammar = t, Le.write = e, Le.parse = i.parse, Le.parseParams = i.parseParams, Le.parseFmtpConfig = i.parseFmtpConfig, Le.parsePayloads = i.parsePayloads, Le.parseRemoteCandidates = i.parseRemoteCandidates, Le.parseImageAttributes = i.parseImageAttributes, Le.parseSimulcastStreamList = i.parseSimulcastStreamList, Le;
|
|
12327
12336
|
}
|
|
12328
|
-
var De =
|
|
12329
|
-
const
|
|
12337
|
+
var De = cp();
|
|
12338
|
+
const dp = 0.7, lp = 20, gt = {
|
|
12330
12339
|
NegotiationStarted: "negotiationStarted",
|
|
12331
12340
|
NegotiationComplete: "negotiationComplete",
|
|
12332
12341
|
// Fired with the offerId for every successful publisher answer application,
|
|
@@ -12353,7 +12362,7 @@ class Ta extends Ie.EventEmitter {
|
|
|
12353
12362
|
else
|
|
12354
12363
|
throw r;
|
|
12355
12364
|
}
|
|
12356
|
-
}),
|
|
12365
|
+
}), lp), this.close = () => {
|
|
12357
12366
|
this._pc && (this.pendingInitialOffer = void 0, this._pc.close(), this._pc.onconnectionstatechange = null, this._pc.oniceconnectionstatechange = null, this._pc.onicegatheringstatechange = null, this._pc.ondatachannel = null, this._pc.onnegotiationneeded = null, this._pc.onsignalingstatechange = null, this._pc.onicecandidate = null, this._pc.ondatachannel = null, this._pc.ontrack = null, this._pc.onconnectionstatechange = null, this._pc.oniceconnectionstatechange = null, this._pc = null);
|
|
12358
12367
|
}, this.log = Re((n = t.loggerName) !== null && n !== void 0 ? n : pe.PCTransport), this.loggerOptions = t, this.config = e, this._pc = this.createPC(), this.offerLock = new ge();
|
|
12359
12368
|
}
|
|
@@ -12406,7 +12415,7 @@ class Ta extends Ie.EventEmitter {
|
|
|
12406
12415
|
})), !1;
|
|
12407
12416
|
let r;
|
|
12408
12417
|
if (e.type === "offer") {
|
|
12409
|
-
let a =
|
|
12418
|
+
let a = up(e), o = a.stereoMids, d = a.nackMids;
|
|
12410
12419
|
this.remoteStereoMids = o, this.remoteNackMids = d;
|
|
12411
12420
|
} else if (e.type === "answer") {
|
|
12412
12421
|
if (this.pendingInitialOffer && this._pc) {
|
|
@@ -12508,7 +12517,7 @@ class Ta extends Ie.EventEmitter {
|
|
|
12508
12517
|
let c = 0;
|
|
12509
12518
|
if (o.rtp.some((u) => u.codec.toUpperCase() === d.codec.toUpperCase() ? (c = u.payload, !0) : !1), c === 0 || (qe(d.codec) && !Nt() && this.ensureVideoDDExtensionForSVC(o, a), !qe(d.codec)))
|
|
12510
12519
|
return !0;
|
|
12511
|
-
const l = Math.round(d.maxbr *
|
|
12520
|
+
const l = Math.round(d.maxbr * dp);
|
|
12512
12521
|
for (const u of o.fmtp)
|
|
12513
12522
|
if (u.payload === c) {
|
|
12514
12523
|
u.config.includes("x-google-start-bitrate") || (u.config += ";x-google-start-bitrate=".concat(l));
|
|
@@ -12689,7 +12698,7 @@ function Sa(i, e, t) {
|
|
|
12689
12698
|
type: "nack"
|
|
12690
12699
|
}), (e.includes(n) || e.length === 1 && e[0] === "all") && i.fmtp.some((r) => r.payload === s ? (r.config.includes("stereo=1") || (r.config += ";stereo=1"), !0) : !1));
|
|
12691
12700
|
}
|
|
12692
|
-
function
|
|
12701
|
+
function up(i) {
|
|
12693
12702
|
var e;
|
|
12694
12703
|
const t = [], n = [], s = De.parse((e = i.sdp) !== null && e !== void 0 ? e : "");
|
|
12695
12704
|
let r = 0;
|
|
@@ -12711,7 +12720,7 @@ function Fn(i) {
|
|
|
12711
12720
|
function mr(i) {
|
|
12712
12721
|
return typeof i == "number" ? i.toFixed(0) : i;
|
|
12713
12722
|
}
|
|
12714
|
-
const Fs = "vp8",
|
|
12723
|
+
const Fs = "vp8", hp = {
|
|
12715
12724
|
audioPreset: Rs.music,
|
|
12716
12725
|
dtx: !0,
|
|
12717
12726
|
red: !0,
|
|
@@ -12735,11 +12744,11 @@ const Fs = "vp8", up = {
|
|
|
12735
12744
|
ideal: "default"
|
|
12736
12745
|
},
|
|
12737
12746
|
resolution: Pn.h720.resolution
|
|
12738
|
-
},
|
|
12747
|
+
}, pp = {
|
|
12739
12748
|
adaptiveStream: !1,
|
|
12740
12749
|
dynacast: !1,
|
|
12741
12750
|
stopLocalTrackOnUnpublish: !0,
|
|
12742
|
-
reconnectPolicy: new
|
|
12751
|
+
reconnectPolicy: new Mu(),
|
|
12743
12752
|
disconnectOnPageLeave: !0,
|
|
12744
12753
|
webAudioMix: !1,
|
|
12745
12754
|
singlePeerConnection: !0
|
|
@@ -12949,13 +12958,13 @@ class Ca {
|
|
|
12949
12958
|
}
|
|
12950
12959
|
}
|
|
12951
12960
|
const vr = typeof MediaRecorder < "u";
|
|
12952
|
-
class
|
|
12961
|
+
class fp {
|
|
12953
12962
|
constructor() {
|
|
12954
12963
|
throw new Error("MediaRecorder is not available in this environment");
|
|
12955
12964
|
}
|
|
12956
12965
|
}
|
|
12957
|
-
const
|
|
12958
|
-
class
|
|
12966
|
+
const mp = vr ? MediaRecorder : fp;
|
|
12967
|
+
class gp extends mp {
|
|
12959
12968
|
constructor(e, t) {
|
|
12960
12969
|
if (!vr)
|
|
12961
12970
|
throw new Error("MediaRecorder is not available in this environment");
|
|
@@ -12986,10 +12995,10 @@ class mp extends fp {
|
|
|
12986
12995
|
}), this.addEventListener("stop", a), this.addEventListener("error", o);
|
|
12987
12996
|
}
|
|
12988
12997
|
}
|
|
12989
|
-
function
|
|
12998
|
+
function vp() {
|
|
12990
12999
|
return vr;
|
|
12991
13000
|
}
|
|
12992
|
-
const
|
|
13001
|
+
const bp = 1e3, yp = 1e4;
|
|
12993
13002
|
class Vc extends _ {
|
|
12994
13003
|
/** @internal */
|
|
12995
13004
|
get sender() {
|
|
@@ -13088,7 +13097,7 @@ class Vc extends _ {
|
|
|
13088
13097
|
waitForDimensions() {
|
|
13089
13098
|
return f(this, arguments, void 0, function() {
|
|
13090
13099
|
var e = this;
|
|
13091
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
13100
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : bp;
|
|
13092
13101
|
return function* () {
|
|
13093
13102
|
var n;
|
|
13094
13103
|
if (e.kind === _.Kind.Audio)
|
|
@@ -13165,7 +13174,7 @@ class Vc extends _ {
|
|
|
13165
13174
|
const n = yield this.trackChangeLock.lock();
|
|
13166
13175
|
try {
|
|
13167
13176
|
e || (e = this._constraints);
|
|
13168
|
-
const s = e, r = s.deviceId, a = s.facingMode, o =
|
|
13177
|
+
const s = e, r = s.deviceId, a = s.facingMode, o = Du(e, ["deviceId", "facingMode"]);
|
|
13169
13178
|
this.log.debug("restarting track with constraints", Object.assign(Object.assign({}, this.logContext), {
|
|
13170
13179
|
constraints: e
|
|
13171
13180
|
}));
|
|
@@ -13356,7 +13365,7 @@ class Vc extends _ {
|
|
|
13356
13365
|
/** @internal */
|
|
13357
13366
|
startPreConnectBuffer() {
|
|
13358
13367
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 100;
|
|
13359
|
-
if (!
|
|
13368
|
+
if (!vp()) {
|
|
13360
13369
|
this.log.warn("MediaRecorder is not available, cannot start preconnect buffer", this.logContext);
|
|
13361
13370
|
return;
|
|
13362
13371
|
}
|
|
@@ -13365,13 +13374,13 @@ class Vc extends _ {
|
|
|
13365
13374
|
return;
|
|
13366
13375
|
} else {
|
|
13367
13376
|
let t = "audio/webm;codecs=opus";
|
|
13368
|
-
MediaRecorder.isTypeSupported(t) || (t = "video/mp4"), this.localTrackRecorder = new
|
|
13377
|
+
MediaRecorder.isTypeSupported(t) || (t = "video/mp4"), this.localTrackRecorder = new gp(this, {
|
|
13369
13378
|
mimeType: t
|
|
13370
13379
|
});
|
|
13371
13380
|
}
|
|
13372
13381
|
this.localTrackRecorder.start(e), this.autoStopPreConnectBuffer = setTimeout(() => {
|
|
13373
13382
|
this.log.warn("preconnect buffer timed out, stopping recording automatically", this.logContext), this.stopPreConnectBuffer();
|
|
13374
|
-
},
|
|
13383
|
+
}, yp);
|
|
13375
13384
|
}
|
|
13376
13385
|
/** @internal */
|
|
13377
13386
|
stopPreConnectBuffer() {
|
|
@@ -13538,7 +13547,7 @@ class pi extends Vc {
|
|
|
13538
13547
|
});
|
|
13539
13548
|
}
|
|
13540
13549
|
}
|
|
13541
|
-
function
|
|
13550
|
+
function kp(i, e, t) {
|
|
13542
13551
|
switch (i.kind) {
|
|
13543
13552
|
case "audio":
|
|
13544
13553
|
return new pi(i, e, !1, void 0, t);
|
|
@@ -13548,7 +13557,7 @@ function yp(i, e, t) {
|
|
|
13548
13557
|
throw new ct("unsupported track type: ".concat(i.kind));
|
|
13549
13558
|
}
|
|
13550
13559
|
}
|
|
13551
|
-
const
|
|
13560
|
+
const Tp = Object.values(Pn), Sp = Object.values(Is), Cp = Object.values(sr), _p = [Pn.h180, Pn.h360], wp = [Is.h180, Is.h360], Ep = (i) => [{
|
|
13552
13561
|
scaleResolutionDownBy: 2,
|
|
13553
13562
|
fps: i.encoding.maxFramerate
|
|
13554
13563
|
}].map((t) => {
|
|
@@ -13562,7 +13571,7 @@ function fi(i, e, t, n) {
|
|
|
13562
13571
|
const o = n == null ? void 0 : n.simulcast, d = n == null ? void 0 : n.scalabilityMode, c = n == null ? void 0 : n.videoCodec;
|
|
13563
13572
|
if (!a && !o && !d || !e || !t)
|
|
13564
13573
|
return [{}];
|
|
13565
|
-
a || (a =
|
|
13574
|
+
a || (a = Pp(i, e, t, c), q.debug("using video encoding", a));
|
|
13566
13575
|
const l = a.maxFramerate, u = new $(e, t, a.maxBitrate, a.maxFramerate, a.priority);
|
|
13567
13576
|
if (d && qe(c)) {
|
|
13568
13577
|
const T = new jc(d), k = [];
|
|
@@ -13573,11 +13582,11 @@ function fi(i, e, t, n) {
|
|
|
13573
13582
|
// is provided. So we'll use the legacy SVC specification for now.
|
|
13574
13583
|
// TODO: when we upstream libwebrtc, this will need additional verification
|
|
13575
13584
|
Ge() || (S == null ? void 0 : S.name) === "Chrome" && et(S == null ? void 0 : S.version, "113") < 0) {
|
|
13576
|
-
const
|
|
13585
|
+
const N = T.suffix == "h" ? 2 : 3, v = vh(S);
|
|
13577
13586
|
for (let y = 0; y < T.spatial; y += 1)
|
|
13578
13587
|
k.push({
|
|
13579
13588
|
rid: Bs[2 - y],
|
|
13580
|
-
maxBitrate: a.maxBitrate / Math.pow(
|
|
13589
|
+
maxBitrate: a.maxBitrate / Math.pow(N, y),
|
|
13581
13590
|
maxFramerate: u.encoding.maxFramerate,
|
|
13582
13591
|
scaleResolutionDownBy: v ? Math.pow(2, y) : void 0
|
|
13583
13592
|
});
|
|
@@ -13623,8 +13632,8 @@ function qc(i, e, t) {
|
|
|
13623
13632
|
const o = i.mediaStreamTrack.getSettings(), d = (n = o.width) !== null && n !== void 0 ? n : (s = i.dimensions) === null || s === void 0 ? void 0 : s.width, c = (r = o.height) !== null && r !== void 0 ? r : (a = i.dimensions) === null || a === void 0 ? void 0 : a.height;
|
|
13624
13633
|
return i.source === _.Source.ScreenShare && t.simulcast && (t.simulcast = !1), fi(i.source === _.Source.ScreenShare, d, c, t);
|
|
13625
13634
|
}
|
|
13626
|
-
function
|
|
13627
|
-
const s =
|
|
13635
|
+
function Pp(i, e, t, n) {
|
|
13636
|
+
const s = Rp(i, e, t);
|
|
13628
13637
|
let r = s[0].encoding;
|
|
13629
13638
|
const a = Math.max(e, t);
|
|
13630
13639
|
for (let o = 0; o < s.length; o += 1) {
|
|
@@ -13644,17 +13653,17 @@ function Ep(i, e, t, n) {
|
|
|
13644
13653
|
}
|
|
13645
13654
|
return r;
|
|
13646
13655
|
}
|
|
13647
|
-
function
|
|
13656
|
+
function Rp(i, e, t) {
|
|
13648
13657
|
if (i)
|
|
13649
|
-
return
|
|
13658
|
+
return Cp;
|
|
13650
13659
|
const n = e > t ? e / t : t / e;
|
|
13651
|
-
return Math.abs(n - 16 / 9) < Math.abs(n - 4 / 3) ?
|
|
13660
|
+
return Math.abs(n - 16 / 9) < Math.abs(n - 4 / 3) ? Tp : Sp;
|
|
13652
13661
|
}
|
|
13653
13662
|
function _a(i, e) {
|
|
13654
13663
|
if (i)
|
|
13655
|
-
return
|
|
13664
|
+
return Ep(e);
|
|
13656
13665
|
const t = e.width, n = e.height, s = t > n ? t / n : n / t;
|
|
13657
|
-
return Math.abs(s - 16 / 9) < Math.abs(s - 4 / 3) ?
|
|
13666
|
+
return Math.abs(s - 16 / 9) < Math.abs(s - 4 / 3) ? _p : wp;
|
|
13658
13667
|
}
|
|
13659
13668
|
function as(i, e, t, n) {
|
|
13660
13669
|
const s = [];
|
|
@@ -13707,10 +13716,10 @@ class jc {
|
|
|
13707
13716
|
return "L".concat(this.spatial, "T").concat(this.temporal).concat((e = this.suffix) !== null && e !== void 0 ? e : "");
|
|
13708
13717
|
}
|
|
13709
13718
|
}
|
|
13710
|
-
function
|
|
13719
|
+
function Ip(i) {
|
|
13711
13720
|
return i.source === _.Source.ScreenShare || i.constraints.height && At(i.constraints.height) >= 1080 ? "maintain-resolution" : "balanced";
|
|
13712
13721
|
}
|
|
13713
|
-
const
|
|
13722
|
+
const Mp = 5e3;
|
|
13714
13723
|
class mi extends Vc {
|
|
13715
13724
|
get sender() {
|
|
13716
13725
|
return this._sender;
|
|
@@ -14056,7 +14065,7 @@ class mi extends Vc {
|
|
|
14056
14065
|
const n = this.simulcastCodecs.get(e);
|
|
14057
14066
|
n && (n.sender = t, setTimeout(() => {
|
|
14058
14067
|
this.subscribedCodecs && this.setPublishingCodecs(this.subscribedCodecs);
|
|
14059
|
-
},
|
|
14068
|
+
}, Mp));
|
|
14060
14069
|
}
|
|
14061
14070
|
/**
|
|
14062
14071
|
* @internal
|
|
@@ -14247,7 +14256,7 @@ function Pa(i, e, t, n) {
|
|
|
14247
14256
|
});
|
|
14248
14257
|
});
|
|
14249
14258
|
}
|
|
14250
|
-
const Ra = "_lossy", Ia = "_reliable", Ma = "_data_track",
|
|
14259
|
+
const Ra = "_lossy", Ia = "_reliable", Ma = "_data_track", Dp = 2 * 1e3, os = "leave-reconnect", Ap = 3e4, Op = 8 * 1024, xp = 256 * 1024, Lp = 3, Np = 3;
|
|
14251
14260
|
var Ae;
|
|
14252
14261
|
(function(i) {
|
|
14253
14262
|
i[i.New = 0] = "New", i[i.Connected = 1] = "Connected", i[i.Disconnected = 2] = "Disconnected", i[i.Reconnecting = 3] = "Reconnecting", i[i.Closed = 4] = "Closed";
|
|
@@ -14257,7 +14266,7 @@ var j;
|
|
|
14257
14266
|
i[i.RELIABLE = 0] = "RELIABLE", i[i.LOSSY = 1] = "LOSSY", i[i.DATA_TRACK_LOSSY = 2] = "DATA_TRACK_LOSSY";
|
|
14258
14267
|
})(j || (j = {}));
|
|
14259
14268
|
const Da = 64e3;
|
|
14260
|
-
class
|
|
14269
|
+
class Up extends Ie.EventEmitter {
|
|
14261
14270
|
get isClosed() {
|
|
14262
14271
|
return this._isClosed;
|
|
14263
14272
|
}
|
|
@@ -14269,7 +14278,7 @@ class Np extends Ie.EventEmitter {
|
|
|
14269
14278
|
}
|
|
14270
14279
|
constructor(e) {
|
|
14271
14280
|
var t;
|
|
14272
|
-
super(), this.options = e, this.rtcConfig = {}, this.peerConnectionTimeout = gr.peerConnectionTimeout, this.fullReconnectOnNext = !1, this.latestRemoteOfferId = 0, this.subscriberPrimary = !1, this.pcState = Ae.New, this._isClosed = !0, this._isNewlyCreated = !0, this.pendingTrackResolvers = {}, this.reconnectAttempts = 0, this.reconnectStart = 0, this.attemptingReconnect = !1, this.joinAttempts = 0, this.maxJoinAttempts = 1, this.shouldFailNext = !1, this.shouldFailOnV1Path = !1, this.log = q, this.reliableDataSequence = 1, this.reliableMessageBuffer = new ga(), this.reliableReceivedState = new
|
|
14281
|
+
super(), this.options = e, this.rtcConfig = {}, this.peerConnectionTimeout = gr.peerConnectionTimeout, this.fullReconnectOnNext = !1, this.latestRemoteOfferId = 0, this.subscriberPrimary = !1, this.pcState = Ae.New, this._isClosed = !0, this._isNewlyCreated = !0, this.pendingTrackResolvers = {}, this.reconnectAttempts = 0, this.reconnectStart = 0, this.attemptingReconnect = !1, this.joinAttempts = 0, this.maxJoinAttempts = 1, this.shouldFailNext = !1, this.shouldFailOnV1Path = !1, this.log = q, this.reliableDataSequence = 1, this.reliableMessageBuffer = new ga(), this.reliableReceivedState = new rp(Ap), this.lossyDataStatCurrentBytes = 0, this.lossyDataStatByterate = 0, this.lossyDataDropCount = 0, this.midToTrackId = {}, this.isWaitingForNetworkReconnect = !1, this.bufferStatusLowClosingFuture = new he(), this.handleDataChannel = (n) => f(this, [n], void 0, function(s) {
|
|
14273
14282
|
var r = this;
|
|
14274
14283
|
let a = s.channel;
|
|
14275
14284
|
return function* () {
|
|
@@ -14398,7 +14407,7 @@ class Np extends Ie.EventEmitter {
|
|
|
14398
14407
|
const s = /* @__PURE__ */ new Map();
|
|
14399
14408
|
n.forEach((r) => {
|
|
14400
14409
|
const a = r.codec.toLowerCase();
|
|
14401
|
-
|
|
14410
|
+
Sh(a) && s.set(r.payload, a);
|
|
14402
14411
|
}), this.emit(P.RTPVideoMapUpdate, s);
|
|
14403
14412
|
}, this.handleBrowserOnLine = () => f(this, void 0, void 0, function* () {
|
|
14404
14413
|
!this.url || !(yield fetch(In(this.url), {
|
|
@@ -14447,7 +14456,7 @@ class Np extends Ie.EventEmitter {
|
|
|
14447
14456
|
c._isNewlyCreated = !1, c.url = r, c.token = a, c.signalOpts = o, c.maxJoinAttempts = o.maxRetries;
|
|
14448
14457
|
try {
|
|
14449
14458
|
c.joinAttempts += 1, c.setupSignalClientCallbacks();
|
|
14450
|
-
const g = !l &&
|
|
14459
|
+
const g = !l && Mh();
|
|
14451
14460
|
let m;
|
|
14452
14461
|
if (g) {
|
|
14453
14462
|
c.pcManager || (yield c.configure(), c.applyInitialPublisherLayout());
|
|
@@ -14467,7 +14476,7 @@ class Np extends Ie.EventEmitter {
|
|
|
14467
14476
|
version: T.serverVersion,
|
|
14468
14477
|
region: T.serverRegion
|
|
14469
14478
|
}), c.log.info("connected to Livekit Server ".concat(Object.entries(k).map((S) => {
|
|
14470
|
-
let
|
|
14479
|
+
let N = U(S, 2), v = N[0], y = N[1];
|
|
14471
14480
|
return "".concat(v, ": ").concat(y);
|
|
14472
14481
|
}).join(", "))), {
|
|
14473
14482
|
joinResponse: T,
|
|
@@ -14695,7 +14704,7 @@ class Np extends Ie.EventEmitter {
|
|
|
14695
14704
|
* build a meaningful initial offer. Must be called on a configured pcManager.
|
|
14696
14705
|
*/
|
|
14697
14706
|
applyInitialPublisherLayout() {
|
|
14698
|
-
this.createDataChannels(), Ge() || this.addMediaSections(
|
|
14707
|
+
this.createDataChannels(), Ge() || this.addMediaSections(Lp, Np);
|
|
14699
14708
|
}
|
|
14700
14709
|
addMediaSections(e, t) {
|
|
14701
14710
|
var n, s;
|
|
@@ -14721,7 +14730,7 @@ class Np extends Ie.EventEmitter {
|
|
|
14721
14730
|
const e = this.dataChannelForKind(j.LOSSY);
|
|
14722
14731
|
if (e) {
|
|
14723
14732
|
const t = this.lossyDataStatByterate / 10;
|
|
14724
|
-
e.bufferedAmountLowThreshold = Math.min(Math.max(t,
|
|
14733
|
+
e.bufferedAmountLowThreshold = Math.min(Math.max(t, Op), xp);
|
|
14725
14734
|
}
|
|
14726
14735
|
}, 1e3));
|
|
14727
14736
|
}
|
|
@@ -14919,7 +14928,7 @@ class Np extends Ie.EventEmitter {
|
|
|
14919
14928
|
return f(this, void 0, void 0, function* () {
|
|
14920
14929
|
this.pcState = Ae.Reconnecting, this.log.debug("waiting for peer connection to reconnect");
|
|
14921
14930
|
try {
|
|
14922
|
-
if (yield be(
|
|
14931
|
+
if (yield be(Dp), !this.pcManager)
|
|
14923
14932
|
throw new ne("PC manager is closed");
|
|
14924
14933
|
yield this.pcManager.ensurePCTransportConnection(void 0, this.peerConnectionTimeout), this.pcState = Ae.Connected;
|
|
14925
14934
|
} catch (e) {
|
|
@@ -14948,7 +14957,7 @@ class Np extends Ie.EventEmitter {
|
|
|
14948
14957
|
return f(this, void 0, void 0, function* () {
|
|
14949
14958
|
var n, s;
|
|
14950
14959
|
if (yield this.ensurePublisherConnected(t), this.e2eeManager && this.e2eeManager.isDataChannelEncryptionEnabled) {
|
|
14951
|
-
const o =
|
|
14960
|
+
const o = Vh(e);
|
|
14952
14961
|
if (o) {
|
|
14953
14962
|
const d = yield this.e2eeManager.encryptData(o.toBinary());
|
|
14954
14963
|
e.value = {
|
|
@@ -14964,7 +14973,7 @@ class Np extends Ie.EventEmitter {
|
|
|
14964
14973
|
t === j.RELIABLE && (e.sequence = this.reliableDataSequence, this.reliableDataSequence += 1);
|
|
14965
14974
|
const r = e.toBinary(), a = Math.min((s = (n = this.pcManager) === null || n === void 0 ? void 0 : n.getMaxPublisherMessageSize()) !== null && s !== void 0 ? s : Da, Da);
|
|
14966
14975
|
if (typeof a < "u" && a !== 0 && r.byteLength > a)
|
|
14967
|
-
throw new
|
|
14976
|
+
throw new Qu("cannot publish data packet larger than ".concat(a, " bytes (got ").concat(r.byteLength, ")"));
|
|
14968
14977
|
switch (t) {
|
|
14969
14978
|
case j.LOSSY:
|
|
14970
14979
|
case j.DATA_TRACK_LOSSY:
|
|
@@ -15144,7 +15153,7 @@ class Np extends Ie.EventEmitter {
|
|
|
15144
15153
|
subscribe: !h,
|
|
15145
15154
|
participantTracks: []
|
|
15146
15155
|
}),
|
|
15147
|
-
publishTracks:
|
|
15156
|
+
publishTracks: sh(t),
|
|
15148
15157
|
dataChannels: this.dataChannelsInfo(),
|
|
15149
15158
|
trackSidsDisabled: g,
|
|
15150
15159
|
datachannelReceiveStates: this.reliableReceivedState.map((m, T) => new jo({
|
|
@@ -15202,20 +15211,20 @@ function Aa(i, e) {
|
|
|
15202
15211
|
const n = i.destinationIdentities.length !== 0 ? i.destinationIdentities : e.destinationIdentities;
|
|
15203
15212
|
i.destinationIdentities = n, e.destinationIdentities = n;
|
|
15204
15213
|
}
|
|
15205
|
-
const Vs = 5e3,
|
|
15214
|
+
const Vs = 5e3, Fp = 3e4;
|
|
15206
15215
|
class G {
|
|
15207
15216
|
static fetchRegionSettings(e, t, n) {
|
|
15208
15217
|
return f(this, void 0, void 0, function* () {
|
|
15209
15218
|
const s = yield G.fetchLock.lock();
|
|
15210
15219
|
try {
|
|
15211
|
-
const r = yield fetch("".concat(
|
|
15220
|
+
const r = yield fetch("".concat(Bp(e), "/regions"), {
|
|
15212
15221
|
headers: {
|
|
15213
15222
|
authorization: "Bearer ".concat(t)
|
|
15214
15223
|
},
|
|
15215
15224
|
signal: n
|
|
15216
15225
|
});
|
|
15217
15226
|
if (r.ok) {
|
|
15218
|
-
const a =
|
|
15227
|
+
const a = Ih(r.headers), o = a ? a * 1e3 : Vs;
|
|
15219
15228
|
return {
|
|
15220
15229
|
regionSettings: yield r.json(),
|
|
15221
15230
|
updatedAtInMs: Date.now(),
|
|
@@ -15263,7 +15272,7 @@ class G {
|
|
|
15263
15272
|
n && n.connectionCount === 0 && (q.debug("stopping region refetch after disconnect delay", {
|
|
15264
15273
|
hostname: e
|
|
15265
15274
|
}), G.stopRefetch(e)), n && (n.cleanupTimeout = void 0);
|
|
15266
|
-
},
|
|
15275
|
+
}, Fp));
|
|
15267
15276
|
}
|
|
15268
15277
|
static cancelCleanup(e) {
|
|
15269
15278
|
const t = G.connectionTrackers.get(e);
|
|
@@ -15326,7 +15335,7 @@ G.cache = /* @__PURE__ */ new Map();
|
|
|
15326
15335
|
G.settingsTimeouts = /* @__PURE__ */ new Map();
|
|
15327
15336
|
G.connectionTrackers = /* @__PURE__ */ new Map();
|
|
15328
15337
|
G.fetchLock = new ge();
|
|
15329
|
-
function
|
|
15338
|
+
function Bp(i) {
|
|
15330
15339
|
return "".concat(i.protocol.replace("ws", "http"), "//").concat(i.host, "/settings");
|
|
15331
15340
|
}
|
|
15332
15341
|
class Hc {
|
|
@@ -15347,7 +15356,7 @@ class Hc {
|
|
|
15347
15356
|
this.reader = t, this.totalByteSize = n, this._info = e, this.bytesReceived = 0;
|
|
15348
15357
|
}
|
|
15349
15358
|
}
|
|
15350
|
-
class
|
|
15359
|
+
class Vp extends Hc {
|
|
15351
15360
|
handleChunkReceived(e) {
|
|
15352
15361
|
var t;
|
|
15353
15362
|
this.bytesReceived += e.content.byteLength, this.validateBytesReceived();
|
|
@@ -15441,7 +15450,7 @@ class Bp extends Hc {
|
|
|
15441
15450
|
});
|
|
15442
15451
|
}
|
|
15443
15452
|
}
|
|
15444
|
-
class
|
|
15453
|
+
class qp extends Hc {
|
|
15445
15454
|
/**
|
|
15446
15455
|
* A TextStreamReader instance can be used as an AsyncIterator that returns the entire string
|
|
15447
15456
|
* that has been received up to the current point in time.
|
|
@@ -15559,7 +15568,7 @@ class Vp extends Hc {
|
|
|
15559
15568
|
});
|
|
15560
15569
|
}
|
|
15561
15570
|
}
|
|
15562
|
-
class
|
|
15571
|
+
class jp {
|
|
15563
15572
|
constructor() {
|
|
15564
15573
|
this.log = q, this.byteStreamControllers = /* @__PURE__ */ new Map(), this.textStreamControllers = /* @__PURE__ */ new Map(), this.byteStreamHandlers = /* @__PURE__ */ new Map(), this.textStreamHandlers = /* @__PURE__ */ new Map(), this.isConnected = !1, this.bufferedPackets = [];
|
|
15565
15574
|
}
|
|
@@ -15658,7 +15667,7 @@ class qp {
|
|
|
15658
15667
|
});
|
|
15659
15668
|
}
|
|
15660
15669
|
});
|
|
15661
|
-
r(new
|
|
15670
|
+
r(new Vp(o, d, Xn(e.totalLength)), {
|
|
15662
15671
|
identity: t
|
|
15663
15672
|
});
|
|
15664
15673
|
} else if (e.contentHeader.case === "textHeader") {
|
|
@@ -15689,7 +15698,7 @@ class qp {
|
|
|
15689
15698
|
});
|
|
15690
15699
|
}
|
|
15691
15700
|
});
|
|
15692
|
-
r(new
|
|
15701
|
+
r(new qp(o, d, Xn(e.totalLength)), {
|
|
15693
15702
|
identity: t
|
|
15694
15703
|
});
|
|
15695
15704
|
}
|
|
@@ -15721,12 +15730,12 @@ class Kc {
|
|
|
15721
15730
|
});
|
|
15722
15731
|
}
|
|
15723
15732
|
}
|
|
15724
|
-
class jp extends Kc {
|
|
15725
|
-
}
|
|
15726
15733
|
class Wp extends Kc {
|
|
15727
15734
|
}
|
|
15735
|
+
class Hp extends Kc {
|
|
15736
|
+
}
|
|
15728
15737
|
const Oa = 15e3;
|
|
15729
|
-
class
|
|
15738
|
+
class Kp {
|
|
15730
15739
|
constructor(e, t) {
|
|
15731
15740
|
this.engine = e, this.log = t;
|
|
15732
15741
|
}
|
|
@@ -15805,7 +15814,7 @@ class Hp {
|
|
|
15805
15814
|
// Implement the sink
|
|
15806
15815
|
write(m) {
|
|
15807
15816
|
return f(this, void 0, void 0, function* () {
|
|
15808
|
-
for (const T of
|
|
15817
|
+
for (const T of Rh(m, Oa)) {
|
|
15809
15818
|
const k = new oi({
|
|
15810
15819
|
content: T,
|
|
15811
15820
|
streamId: r,
|
|
@@ -15842,7 +15851,7 @@ class Hp {
|
|
|
15842
15851
|
yield g.close();
|
|
15843
15852
|
});
|
|
15844
15853
|
u.once(P.Closing, p);
|
|
15845
|
-
const g = new
|
|
15854
|
+
const g = new Wp(h, a, () => this.engine.off(P.Closing, p));
|
|
15846
15855
|
return g;
|
|
15847
15856
|
});
|
|
15848
15857
|
}
|
|
@@ -15911,7 +15920,7 @@ class Hp {
|
|
|
15911
15920
|
const p = new ge(), g = this.engine, m = this.log, T = new WritableStream({
|
|
15912
15921
|
write(S) {
|
|
15913
15922
|
return f(this, void 0, void 0, function* () {
|
|
15914
|
-
const
|
|
15923
|
+
const N = yield p.lock();
|
|
15915
15924
|
let v = 0;
|
|
15916
15925
|
try {
|
|
15917
15926
|
for (; v < S.byteLength; ) {
|
|
@@ -15929,7 +15938,7 @@ class Hp {
|
|
|
15929
15938
|
yield g.sendDataPacket(C, j.RELIABLE), h += 1, v += y.byteLength;
|
|
15930
15939
|
}
|
|
15931
15940
|
} finally {
|
|
15932
|
-
|
|
15941
|
+
N();
|
|
15933
15942
|
}
|
|
15934
15943
|
});
|
|
15935
15944
|
},
|
|
@@ -15937,21 +15946,21 @@ class Hp {
|
|
|
15937
15946
|
return f(this, void 0, void 0, function* () {
|
|
15938
15947
|
const S = new ci({
|
|
15939
15948
|
streamId: o
|
|
15940
|
-
}),
|
|
15949
|
+
}), N = new ve({
|
|
15941
15950
|
destinationIdentities: d,
|
|
15942
15951
|
value: {
|
|
15943
15952
|
case: "streamTrailer",
|
|
15944
15953
|
value: S
|
|
15945
15954
|
}
|
|
15946
15955
|
});
|
|
15947
|
-
yield g.sendDataPacket(
|
|
15956
|
+
yield g.sendDataPacket(N, j.RELIABLE);
|
|
15948
15957
|
});
|
|
15949
15958
|
},
|
|
15950
15959
|
abort(S) {
|
|
15951
15960
|
m.error("Sink error:", S);
|
|
15952
15961
|
}
|
|
15953
15962
|
});
|
|
15954
|
-
return new
|
|
15963
|
+
return new Hp(T, c);
|
|
15955
15964
|
});
|
|
15956
15965
|
}
|
|
15957
15966
|
}
|
|
@@ -15980,7 +15989,7 @@ function zc(i) {
|
|
|
15980
15989
|
e.abort(new DOMException("signal timed out after ".concat(i, " ms"), "TimeoutError"));
|
|
15981
15990
|
}, i), e.signal;
|
|
15982
15991
|
}
|
|
15983
|
-
const re = 1, tt = 2, xa = 4,
|
|
15992
|
+
const re = 1, tt = 2, xa = 4, Gp = 8, La = 0, Na = 12, Ua = 5, zp = 7, Fa = 3, Jp = 3, Ba = 2, Va = 1, qa = 0, ja = 3, Bn = 2, Wa = 2, $p = 1, Yp = 0;
|
|
15984
15993
|
var it;
|
|
15985
15994
|
(function(i) {
|
|
15986
15995
|
i[i.TooShort = 0] = "TooShort", i[i.HeaderOverrun = 1] = "HeaderOverrun", i[i.MissingExtWords = 2] = "MissingExtWords", i[i.UnsupportedVersion = 3] = "UnsupportedVersion", i[i.InvalidHandle = 4] = "InvalidHandle", i[i.MalformedExt = 5] = "MalformedExt";
|
|
@@ -16049,7 +16058,7 @@ class je extends Jc {
|
|
|
16049
16058
|
}
|
|
16050
16059
|
toBinaryInto(e) {
|
|
16051
16060
|
let t = 0;
|
|
16052
|
-
e.setUint8(t, je.tag), t += re, e.setUint8(t, je.lengthBytes), t += re, e.setBigUint64(t, this.timestamp), t +=
|
|
16061
|
+
e.setUint8(t, je.tag), t += re, e.setUint8(t, je.lengthBytes), t += re, e.setBigUint64(t, this.timestamp), t += Gp;
|
|
16053
16062
|
const n = this.toBinaryLengthBytes();
|
|
16054
16063
|
if (t !== n)
|
|
16055
16064
|
throw new Error("DataTrackUserTimestampExtension.toBinaryInto: Wrote ".concat(t, " bytes but expected length was ").concat(n, " bytes"));
|
|
@@ -16124,7 +16133,7 @@ class Yt extends Ri {
|
|
|
16124
16133
|
const a = t.getUint8(r);
|
|
16125
16134
|
r += re;
|
|
16126
16135
|
const o = t.getUint8(r);
|
|
16127
|
-
if (r += re, a !==
|
|
16136
|
+
if (r += re, a !== Yp)
|
|
16128
16137
|
switch (a) {
|
|
16129
16138
|
case nn.UserTimestamp:
|
|
16130
16139
|
if (t.byteLength - r < je.lengthBytes)
|
|
@@ -16280,11 +16289,11 @@ class On extends Ri {
|
|
|
16280
16289
|
let n = 0;
|
|
16281
16290
|
const s = t.getUint8(n);
|
|
16282
16291
|
n += re;
|
|
16283
|
-
const r = s >> Ua &
|
|
16292
|
+
const r = s >> Ua & zp;
|
|
16284
16293
|
if (r > La)
|
|
16285
16294
|
throw Te.unsupportedVersion(r);
|
|
16286
16295
|
let a;
|
|
16287
|
-
switch (s >> Fa &
|
|
16296
|
+
switch (s >> Fa & Jp) {
|
|
16288
16297
|
case Ba:
|
|
16289
16298
|
a = ee.Start;
|
|
16290
16299
|
break;
|
|
@@ -16299,11 +16308,11 @@ class On extends Ri {
|
|
|
16299
16308
|
a = ee.Inter;
|
|
16300
16309
|
break;
|
|
16301
16310
|
}
|
|
16302
|
-
const o = (s >> Wa &
|
|
16311
|
+
const o = (s >> Wa & $p) > 0;
|
|
16303
16312
|
n += re;
|
|
16304
16313
|
let d;
|
|
16305
16314
|
try {
|
|
16306
|
-
d =
|
|
16315
|
+
d = Yh.fromNumber(t.getUint16(n));
|
|
16307
16316
|
} catch (p) {
|
|
16308
16317
|
throw p instanceof tn && (p.isReason(Ot.Reserved) || p.isReason(Ot.TooLarge)) ? Te.invalidHandle(p) : p;
|
|
16309
16318
|
}
|
|
@@ -16324,8 +16333,8 @@ class On extends Ri {
|
|
|
16324
16333
|
if (n + m > t.byteLength)
|
|
16325
16334
|
throw Te.headerOverrun();
|
|
16326
16335
|
let T = new DataView(t.buffer, t.byteOffset + n, m);
|
|
16327
|
-
const k = Yt.fromBinary(T), S = U(k, 2),
|
|
16328
|
-
h =
|
|
16336
|
+
const k = Yt.fromBinary(T), S = U(k, 2), N = S[0], v = S[1];
|
|
16337
|
+
h = N, n += v;
|
|
16329
16338
|
}
|
|
16330
16339
|
return [new On({
|
|
16331
16340
|
marker: a,
|
|
@@ -16531,7 +16540,7 @@ class we extends xe {
|
|
|
16531
16540
|
}
|
|
16532
16541
|
}
|
|
16533
16542
|
const ds = Re(pe.DataTracks);
|
|
16534
|
-
class
|
|
16543
|
+
class Qp {
|
|
16535
16544
|
/**
|
|
16536
16545
|
* Creates a new pipeline with the given options.
|
|
16537
16546
|
*/
|
|
@@ -16595,8 +16604,8 @@ class Yp {
|
|
|
16595
16604
|
});
|
|
16596
16605
|
}
|
|
16597
16606
|
}
|
|
16598
|
-
const fe = Re(pe.DataTracks),
|
|
16599
|
-
class
|
|
16607
|
+
const fe = Re(pe.DataTracks), Xp = 1e4, Zp = 16;
|
|
16608
|
+
class ef extends Ie.EventEmitter {
|
|
16600
16609
|
constructor(e) {
|
|
16601
16610
|
var t;
|
|
16602
16611
|
super(), this.descriptors = /* @__PURE__ */ new Map(), this.subscriptionHandles = /* @__PURE__ */ new Map(), this.e2eeManager = (t = e == null ? void 0 : e.e2eeManager) !== null && t !== void 0 ? t : null;
|
|
@@ -16625,7 +16634,7 @@ class Zp extends Ie.EventEmitter {
|
|
|
16625
16634
|
* @internal
|
|
16626
16635
|
**/
|
|
16627
16636
|
openSubscriptionStream(e, t) {
|
|
16628
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
16637
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Zp, s = null;
|
|
16629
16638
|
const r = new he(), a = () => {
|
|
16630
16639
|
t == null || t.removeEventListener("abort", d);
|
|
16631
16640
|
}, o = () => {
|
|
@@ -16749,7 +16758,7 @@ class Zp extends Ie.EventEmitter {
|
|
|
16749
16758
|
sid: e,
|
|
16750
16759
|
subscribe: !0
|
|
16751
16760
|
});
|
|
16752
|
-
const r = zc(
|
|
16761
|
+
const r = zc(Xp);
|
|
16753
16762
|
yield s(n, t, r);
|
|
16754
16763
|
return;
|
|
16755
16764
|
}
|
|
@@ -16904,7 +16913,7 @@ class Zp extends Ie.EventEmitter {
|
|
|
16904
16913
|
return;
|
|
16905
16914
|
}
|
|
16906
16915
|
case "pending": {
|
|
16907
|
-
const a = new
|
|
16916
|
+
const a = new Qp({
|
|
16908
16917
|
info: r.info,
|
|
16909
16918
|
publisherIdentity: r.publisherIdentity,
|
|
16910
16919
|
e2eeManager: this.e2eeManager,
|
|
@@ -17248,10 +17257,10 @@ class Oi {
|
|
|
17248
17257
|
this.e2eeManager = e;
|
|
17249
17258
|
}
|
|
17250
17259
|
processFrame(e) {
|
|
17251
|
-
return
|
|
17260
|
+
return Au(this, arguments, function* () {
|
|
17252
17261
|
const n = yield Zt(this.encryptIfNeeded(e));
|
|
17253
17262
|
try {
|
|
17254
|
-
yield Zt(yield*
|
|
17263
|
+
yield Zt(yield* Ou(Ve(this.packetizer.packetize(n))));
|
|
17255
17264
|
} catch (s) {
|
|
17256
17265
|
throw s instanceof Di ? xn.packetizer(s) : s;
|
|
17257
17266
|
}
|
|
@@ -17291,11 +17300,11 @@ const $e = Re(pe.DataTracks), Ha = {
|
|
|
17291
17300
|
unpublishingFuture: new he()
|
|
17292
17301
|
};
|
|
17293
17302
|
}
|
|
17294
|
-
},
|
|
17303
|
+
}, tf = 1e4;
|
|
17295
17304
|
class yr extends Ie.EventEmitter {
|
|
17296
17305
|
constructor(e) {
|
|
17297
17306
|
var t;
|
|
17298
|
-
super(), this.handleAllocator = new
|
|
17307
|
+
super(), this.handleAllocator = new Qh(), this.descriptors = /* @__PURE__ */ new Map(), this.inFlightPacketCounter = /* @__PURE__ */ new Map(), this.e2eeManager = (t = e == null ? void 0 : e.e2eeManager) !== null && t !== void 0 ? t : null;
|
|
17299
17308
|
}
|
|
17300
17309
|
static withDescriptors(e) {
|
|
17301
17310
|
const t = new yr();
|
|
@@ -17381,7 +17390,7 @@ class yr extends Ie.EventEmitter {
|
|
|
17381
17390
|
const n = this.handleAllocator.get();
|
|
17382
17391
|
if (!n)
|
|
17383
17392
|
throw de.limitReached();
|
|
17384
|
-
const s = zc(
|
|
17393
|
+
const s = zc(tf), r = t ? Gc([t, s]) : s;
|
|
17385
17394
|
if (this.descriptors.has(n))
|
|
17386
17395
|
throw new Error("Descriptor for handle already exists");
|
|
17387
17396
|
const a = Ha.pending();
|
|
@@ -17606,7 +17615,7 @@ var me;
|
|
|
17606
17615
|
(function(i) {
|
|
17607
17616
|
i.RPC_REQUEST_ID = "lk.rpc_request_id", i.RPC_REQUEST_METHOD = "lk.rpc_request_method", i.RPC_REQUEST_RESPONSE_TIMEOUT_MS = "lk.rpc_request_response_timeout_ms", i.RPC_REQUEST_VERSION = "lk.rpc_request_version";
|
|
17608
17617
|
})(me || (me = {}));
|
|
17609
|
-
const
|
|
17618
|
+
const nf = 1, nd = 2;
|
|
17610
17619
|
function kr(i) {
|
|
17611
17620
|
return new TextEncoder().encode(i).length;
|
|
17612
17621
|
}
|
|
@@ -17621,7 +17630,7 @@ function Ka(i, e) {
|
|
|
17621
17630
|
}
|
|
17622
17631
|
return i.slice(0, t);
|
|
17623
17632
|
}
|
|
17624
|
-
class
|
|
17633
|
+
class sf extends Ie.EventEmitter {
|
|
17625
17634
|
constructor(e, t, n, s) {
|
|
17626
17635
|
super(), this.pendingAcks = /* @__PURE__ */ new Map(), this.pendingResponses = /* @__PURE__ */ new Map(), this.log = e, this.outgoingDataStreamManager = t, this.getRemoteParticipantClientProtocol = n, this.getServerVersion = s;
|
|
17627
17636
|
}
|
|
@@ -17654,10 +17663,10 @@ class nf extends Ie.EventEmitter {
|
|
|
17654
17663
|
var v;
|
|
17655
17664
|
n.pendingResponses.delete(m), (v = T.reject) === null || v === void 0 || v.call(T, J.builtIn("RESPONSE_TIMEOUT"));
|
|
17656
17665
|
}, d);
|
|
17657
|
-
const
|
|
17666
|
+
const N = T.promise.finally(() => {
|
|
17658
17667
|
clearTimeout(k), n.pendingAcks.has(m) && (n.log.warn("RPC response received before ack", m), n.pendingAcks.delete(m), clearTimeout(S));
|
|
17659
17668
|
});
|
|
17660
|
-
return [m,
|
|
17669
|
+
return [m, N];
|
|
17661
17670
|
}();
|
|
17662
17671
|
});
|
|
17663
17672
|
}
|
|
@@ -17688,7 +17697,7 @@ class nf extends Ie.EventEmitter {
|
|
|
17688
17697
|
method: n,
|
|
17689
17698
|
payload: s,
|
|
17690
17699
|
responseTimeoutMs: r,
|
|
17691
|
-
version:
|
|
17700
|
+
version: nf
|
|
17692
17701
|
})
|
|
17693
17702
|
}
|
|
17694
17703
|
})
|
|
@@ -17757,7 +17766,7 @@ class nf extends Ie.EventEmitter {
|
|
|
17757
17766
|
}
|
|
17758
17767
|
}
|
|
17759
17768
|
}
|
|
17760
|
-
class
|
|
17769
|
+
class rf extends Ie.EventEmitter {
|
|
17761
17770
|
constructor(e, t, n) {
|
|
17762
17771
|
super(), this.rpcHandlers = /* @__PURE__ */ new Map(), this.log = e, this.outgoingDataStreamManager = t, this.getRemoteParticipantClientProtocol = n;
|
|
17763
17772
|
}
|
|
@@ -17910,7 +17919,7 @@ class sf extends Ie.EventEmitter {
|
|
|
17910
17919
|
});
|
|
17911
17920
|
}
|
|
17912
17921
|
}
|
|
17913
|
-
class
|
|
17922
|
+
class af extends Nc {
|
|
17914
17923
|
constructor(e, t, n, s, r, a) {
|
|
17915
17924
|
super(e, t, _.Kind.Audio, n, a), this.monitorReceiver = () => f(this, void 0, void 0, function* () {
|
|
17916
17925
|
if (!this.receiver) {
|
|
@@ -18199,7 +18208,7 @@ function xi(i, e) {
|
|
|
18199
18208
|
m != null && m.deviceId && At(m.deviceId) !== k ? m.deviceId = k : m || (m = {
|
|
18200
18209
|
deviceId: k
|
|
18201
18210
|
});
|
|
18202
|
-
const S =
|
|
18211
|
+
const S = kp(p, m, e);
|
|
18203
18212
|
return S.kind === _.Kind.Video ? S.source = _.Source.Camera : S.kind === _.Kind.Audio && (S.source = _.Source.Microphone), S.mediaStream = h, Ze(S) && s ? yield S.setProcessor(s) : dt(S) && r && (yield S.setProcessor(r)), S;
|
|
18204
18213
|
})));
|
|
18205
18214
|
} catch (h) {
|
|
@@ -18212,7 +18221,7 @@ function xi(i, e) {
|
|
|
18212
18221
|
}
|
|
18213
18222
|
});
|
|
18214
18223
|
}
|
|
18215
|
-
function
|
|
18224
|
+
function of(i) {
|
|
18216
18225
|
return f(this, void 0, void 0, function* () {
|
|
18217
18226
|
return (yield xi({
|
|
18218
18227
|
audio: !1,
|
|
@@ -18220,7 +18229,7 @@ function af(i) {
|
|
|
18220
18229
|
}))[0];
|
|
18221
18230
|
});
|
|
18222
18231
|
}
|
|
18223
|
-
function
|
|
18232
|
+
function cf(i) {
|
|
18224
18233
|
return f(this, void 0, void 0, function* () {
|
|
18225
18234
|
return (yield xi({
|
|
18226
18235
|
audio: !0,
|
|
@@ -18232,7 +18241,7 @@ var ft;
|
|
|
18232
18241
|
(function(i) {
|
|
18233
18242
|
i.Excellent = "excellent", i.Good = "good", i.Poor = "poor", i.Lost = "lost", i.Unknown = "unknown";
|
|
18234
18243
|
})(ft || (ft = {}));
|
|
18235
|
-
function
|
|
18244
|
+
function df(i) {
|
|
18236
18245
|
switch (i) {
|
|
18237
18246
|
case fn.EXCELLENT:
|
|
18238
18247
|
return ft.Excellent;
|
|
@@ -18354,7 +18363,7 @@ class id extends Ie.EventEmitter {
|
|
|
18354
18363
|
* Updates metadata from server
|
|
18355
18364
|
**/
|
|
18356
18365
|
_setAttributes(e) {
|
|
18357
|
-
const t =
|
|
18366
|
+
const t = ah(this.attributes, e);
|
|
18358
18367
|
this._attributes = e, Object.keys(t).length > 0 && this.emit(M.AttributesChanged, t);
|
|
18359
18368
|
}
|
|
18360
18369
|
/** @internal */
|
|
@@ -18373,7 +18382,7 @@ class id extends Ie.EventEmitter {
|
|
|
18373
18382
|
/** @internal */
|
|
18374
18383
|
setConnectionQuality(e) {
|
|
18375
18384
|
const t = this._connectionQuality;
|
|
18376
|
-
this._connectionQuality =
|
|
18385
|
+
this._connectionQuality = df(e), t !== this._connectionQuality && this.emit(M.ConnectionQualityChanged, this._connectionQuality);
|
|
18377
18386
|
}
|
|
18378
18387
|
/**
|
|
18379
18388
|
* @internal
|
|
@@ -18405,7 +18414,7 @@ class id extends Ie.EventEmitter {
|
|
|
18405
18414
|
}
|
|
18406
18415
|
}
|
|
18407
18416
|
}
|
|
18408
|
-
function
|
|
18417
|
+
function lf(i) {
|
|
18409
18418
|
var e, t, n;
|
|
18410
18419
|
if (!i.participantSid && !i.participantIdentity)
|
|
18411
18420
|
throw new Error("Invalid track permission, must provide at least one of participantIdentity and participantSid");
|
|
@@ -18416,7 +18425,7 @@ function df(i) {
|
|
|
18416
18425
|
trackSids: i.allowedTrackSids || []
|
|
18417
18426
|
});
|
|
18418
18427
|
}
|
|
18419
|
-
class
|
|
18428
|
+
class uf extends id {
|
|
18420
18429
|
/** @internal */
|
|
18421
18430
|
constructor(e, t, n, s, r, a, o, d) {
|
|
18422
18431
|
super(e, t, void 0, void 0, void 0, {
|
|
@@ -18466,7 +18475,7 @@ class lf extends id {
|
|
|
18466
18475
|
this.log.debug("updating track subscription permissions", {
|
|
18467
18476
|
allParticipantsAllowed: this.allParticipantsAllowedToSubscribe,
|
|
18468
18477
|
participantTrackPermissions: this.participantTrackPermissions
|
|
18469
|
-
}), this.engine.client.sendUpdateSubscriptionPermissions(this.allParticipantsAllowedToSubscribe, this.participantTrackPermissions.map((c) =>
|
|
18478
|
+
}), this.engine.client.sendUpdateSubscriptionPermissions(this.allParticipantsAllowedToSubscribe, this.participantTrackPermissions.map((c) => lf(c)));
|
|
18470
18479
|
}, this.onTrackUnmuted = (c) => {
|
|
18471
18480
|
this.onTrackMuted(c, c.isUpstreamPaused);
|
|
18472
18481
|
}, this.onTrackMuted = (c, l) => {
|
|
@@ -18503,10 +18512,10 @@ class lf extends id {
|
|
|
18503
18512
|
return;
|
|
18504
18513
|
const T = yield m.videoTrack.setPublishingCodecs(c.subscribedCodecs);
|
|
18505
18514
|
try {
|
|
18506
|
-
for (var k = !0, S = Ve(T),
|
|
18507
|
-
p =
|
|
18515
|
+
for (var k = !0, S = Ve(T), N; N = yield S.next(), l = N.done, !l; k = !0) {
|
|
18516
|
+
p = N.value, k = !1;
|
|
18508
18517
|
const v = p;
|
|
18509
|
-
|
|
18518
|
+
th(v) && (this.log.debug("publish ".concat(v, " for ").concat(m.videoTrack.sid), H(m)), yield this.publishAdditionalCodecForTrack(m.videoTrack, v, m.options));
|
|
18510
18519
|
}
|
|
18511
18520
|
} catch (v) {
|
|
18512
18521
|
u = {
|
|
@@ -18824,8 +18833,8 @@ class lf extends id {
|
|
|
18824
18833
|
return f(this, void 0, void 0, function* () {
|
|
18825
18834
|
if (e === void 0 && (e = {}), navigator.mediaDevices.getDisplayMedia === void 0)
|
|
18826
18835
|
throw new ir("getDisplayMedia not supported");
|
|
18827
|
-
e.resolution === void 0 && !
|
|
18828
|
-
const t =
|
|
18836
|
+
e.resolution === void 0 && !gh() && (e.resolution = sr.h1080fps30.resolution);
|
|
18837
|
+
const t = ih(e), n = yield navigator.mediaDevices.getDisplayMedia(t), s = n.getVideoTracks();
|
|
18829
18838
|
if (s.length === 0)
|
|
18830
18839
|
throw new ct("no video track found");
|
|
18831
18840
|
const r = new mi(s[0], void 0, !1, {
|
|
@@ -18930,8 +18939,8 @@ class lf extends id {
|
|
|
18930
18939
|
return r.log.warn("track has already been published, skipping", H(p)), p;
|
|
18931
18940
|
const g = Object.assign(Object.assign({}, r.roomOptions.publishDefaults), s), m = "channelCount" in n.mediaStreamTrack.getSettings() && // @ts-ignore `channelCount` on getSettings() is currently only available for Safari, but is generally the best way to determine a stereo track https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSettings/channelCount
|
|
18932
18941
|
n.mediaStreamTrack.getSettings().channelCount === 2 || n.mediaStreamTrack.getConstraints().channelCount === 2, T = (c = g.forceStereo) !== null && c !== void 0 ? c : m;
|
|
18933
|
-
T && (g.dtx === void 0 && r.log.debug("Opus DTX will be disabled for stereo tracks by default. Enable them explicitly to make it work.", H(n)), g.red === void 0 && r.log.debug("Opus RED will be disabled for stereo tracks by default. Enable them explicitly to make it work."), (l = g.dtx) !== null && l !== void 0 || (g.dtx = !1), (u = g.red) !== null && u !== void 0 || (g.red = !1)), !
|
|
18934
|
-
const k = new Promise((S,
|
|
18942
|
+
T && (g.dtx === void 0 && r.log.debug("Opus DTX will be disabled for stereo tracks by default. Enable them explicitly to make it work.", H(n)), g.red === void 0 && r.log.debug("Opus RED will be disabled for stereo tracks by default. Enable them explicitly to make it work."), (l = g.dtx) !== null && l !== void 0 || (g.dtx = !1), (u = g.red) !== null && u !== void 0 || (g.red = !1)), !bh() && r.roomOptions.e2ee && (r.log.info("End-to-end encryption is set up, simulcast publishing will be disabled on Safari versions and iOS browsers running iOS < v17.2"), g.simulcast = !1), g.source && (n.source = g.source);
|
|
18943
|
+
const k = new Promise((S, N) => f(r, void 0, void 0, function* () {
|
|
18935
18944
|
try {
|
|
18936
18945
|
if (this.engine.client.currentState !== Y.CONNECTED) {
|
|
18937
18946
|
this.log.debug("deferring track publication until signal is connected", {
|
|
@@ -18939,7 +18948,7 @@ class lf extends id {
|
|
|
18939
18948
|
});
|
|
18940
18949
|
let v = !1;
|
|
18941
18950
|
const y = setTimeout(() => {
|
|
18942
|
-
v = !0, n.stop(),
|
|
18951
|
+
v = !0, n.stop(), N(new ta("publishing rejected as engine not connected within timeout", 408));
|
|
18943
18952
|
}, 15e3);
|
|
18944
18953
|
if (yield this.waitUntilEngineConnected(), clearTimeout(y), v)
|
|
18945
18954
|
return;
|
|
@@ -18950,10 +18959,10 @@ class lf extends id {
|
|
|
18950
18959
|
const v = yield this.publish(n, g, T);
|
|
18951
18960
|
S(v);
|
|
18952
18961
|
} catch (v) {
|
|
18953
|
-
|
|
18962
|
+
N(v);
|
|
18954
18963
|
}
|
|
18955
18964
|
} catch (v) {
|
|
18956
|
-
|
|
18965
|
+
N(v);
|
|
18957
18966
|
}
|
|
18958
18967
|
}));
|
|
18959
18968
|
r.pendingPublishPromises.set(n, k);
|
|
@@ -18978,19 +18987,19 @@ class lf extends id {
|
|
|
18978
18987
|
if (!this.permissions)
|
|
18979
18988
|
return this.log.warn("no permissions present for publishing track", H(e)), !1;
|
|
18980
18989
|
const t = this.permissions, n = t.canPublish, s = t.canPublishSources;
|
|
18981
|
-
return n && (s.length === 0 || s.map((r) =>
|
|
18990
|
+
return n && (s.length === 0 || s.map((r) => oh(r)).includes(e.source)) ? !0 : (this.log.warn("insufficient permissions to publish", H(e)), !1);
|
|
18982
18991
|
}
|
|
18983
18992
|
publish(e, t, n) {
|
|
18984
18993
|
return f(this, void 0, void 0, function* () {
|
|
18985
18994
|
var s, r, a, o, d, c, l, u, h, p;
|
|
18986
18995
|
if (!this.hasPermissionsToPublish(e))
|
|
18987
18996
|
throw new ta("failed to publish track, insufficient permissions", 403);
|
|
18988
|
-
Array.from(this.trackPublications.values()).find((A) => zt(e) && A.source === e.source) && e.source !== _.Source.Unknown && this.log.info("publishing a second track with the same source: ".concat(e.source), H(e)), t.stopMicTrackOnMute && Ze(e) && (e.stopOnMute = !0), e.source === _.Source.ScreenShare && Lt() && (t.simulcast = !1), t.videoCodec === "av1" && !
|
|
18997
|
+
Array.from(this.trackPublications.values()).find((A) => zt(e) && A.source === e.source) && e.source !== _.Source.Unknown && this.log.info("publishing a second track with the same source: ".concat(e.source), H(e)), t.stopMicTrackOnMute && Ze(e) && (e.stopOnMute = !0), e.source === _.Source.ScreenShare && Lt() && (t.simulcast = !1), t.videoCodec === "av1" && !hh() && (t.videoCodec = void 0), t.videoCodec === "vp9" && !ph() && (t.videoCodec = void 0), t.videoCodec === void 0 && (t.videoCodec = Fs), this.enabledPublishVideoCodecs.length > 0 && (this.enabledPublishVideoCodecs.some((A) => t.videoCodec === yn(A.mime)) || (t.videoCodec = yn(this.enabledPublishVideoCodecs[0].mime)));
|
|
18989
18998
|
const m = t.videoCodec;
|
|
18990
18999
|
e.on(R.Muted, this.onTrackMuted), e.on(R.Unmuted, this.onTrackUnmuted), e.on(R.Ended, this.handleTrackEnded), e.on(R.UpstreamPaused, this.onTrackUpstreamPaused), e.on(R.UpstreamResumed, this.onTrackUpstreamResumed), e.on(R.AudioTrackFeatureUpdate, this.onTrackFeatureUpdate);
|
|
18991
19000
|
const T = [], k = !(!((s = t.dtx) !== null && s !== void 0) || s), S = e.getSourceTrackSettings();
|
|
18992
19001
|
S.autoGainControl && T.push(le.TF_AUTO_GAIN_CONTROL), S.echoCancellation && T.push(le.TF_ECHO_CANCELLATION), S.noiseSuppression && T.push(le.TF_NOISE_SUPPRESSION), S.channelCount && S.channelCount > 1 && T.push(le.TF_STEREO), k && T.push(le.TF_NO_DTX), nt(e) && e.hasPreConnectBuffer && T.push(le.TF_PRECONNECT_BUFFER);
|
|
18993
|
-
const
|
|
19002
|
+
const N = this.normalizeRequestedFrameMetadataOptions(e, t), v = new En({
|
|
18994
19003
|
// get local track id for use during publishing
|
|
18995
19004
|
cid: e.mediaStreamTrack.id,
|
|
18996
19005
|
name: t.name,
|
|
@@ -19004,7 +19013,7 @@ class lf extends id {
|
|
|
19004
19013
|
stream: t == null ? void 0 : t.stream,
|
|
19005
19014
|
backupCodecPolicy: t == null ? void 0 : t.backupCodecPolicy,
|
|
19006
19015
|
audioFeatures: T,
|
|
19007
|
-
packetTrailerFeatures:
|
|
19016
|
+
packetTrailerFeatures: N
|
|
19008
19017
|
});
|
|
19009
19018
|
let y;
|
|
19010
19019
|
if (e.kind === _.Kind.Video) {
|
|
@@ -19041,7 +19050,7 @@ class lf extends id {
|
|
|
19041
19050
|
var A, O, B;
|
|
19042
19051
|
if (!this.engine.pcManager)
|
|
19043
19052
|
throw new ne("pcManager is not ready");
|
|
19044
|
-
if (e.sender = yield this.engine.createSender(e, t, y), Je(e) && (e.publishOptions = t), this.emit(M.LocalSenderCreated, e.sender, e), Je(e) && ((A = t.degradationPreference) !== null && A !== void 0 || (t.degradationPreference =
|
|
19053
|
+
if (e.sender = yield this.engine.createSender(e, t, y), Je(e) && (e.publishOptions = t), this.emit(M.LocalSenderCreated, e.sender, e), Je(e) && ((A = t.degradationPreference) !== null && A !== void 0 || (t.degradationPreference = Ip(e)), e.setDegradationPreference(t.degradationPreference)), y)
|
|
19045
19054
|
if (Lt() && e.kind === _.Kind.Audio) {
|
|
19046
19055
|
let W;
|
|
19047
19056
|
for (const Z of this.engine.pcManager.publisher.getTransceivers())
|
|
@@ -19062,7 +19071,7 @@ class lf extends id {
|
|
|
19062
19071
|
yield this.engine.negotiate();
|
|
19063
19072
|
});
|
|
19064
19073
|
let I;
|
|
19065
|
-
const
|
|
19074
|
+
const L = new Promise((A, O) => f(this, void 0, void 0, function* () {
|
|
19066
19075
|
var B;
|
|
19067
19076
|
try {
|
|
19068
19077
|
I = yield this.engine.addTrack(v), A(I);
|
|
@@ -19082,10 +19091,10 @@ class lf extends id {
|
|
|
19082
19091
|
O(W);
|
|
19083
19092
|
}
|
|
19084
19093
|
}));
|
|
19085
|
-
if (this.enabledPublishVideoCodecs.length > 0 &&
|
|
19086
|
-
I = (yield Promise.all([
|
|
19094
|
+
if (this.enabledPublishVideoCodecs.length > 0 && N.length === 0)
|
|
19095
|
+
I = (yield Promise.all([L, C()]))[0];
|
|
19087
19096
|
else {
|
|
19088
|
-
I = yield
|
|
19097
|
+
I = yield L;
|
|
19089
19098
|
let A;
|
|
19090
19099
|
if (I.codecs.forEach((O) => {
|
|
19091
19100
|
A === void 0 && (A = O.mimeType);
|
|
@@ -19179,7 +19188,7 @@ class lf extends id {
|
|
|
19179
19188
|
return t.frameMetadata = void 0, t.packetTrailer = void 0, [];
|
|
19180
19189
|
if (!this.canPublishFrameMetadata())
|
|
19181
19190
|
return this.log.warn("frame metadata transform not supported; not advertising features", Object.assign(Object.assign({}, this.logContext), H(e))), t.frameMetadata = void 0, t.packetTrailer = void 0, [];
|
|
19182
|
-
const r =
|
|
19191
|
+
const r = qh(s), a = jh(r);
|
|
19183
19192
|
return t.frameMetadata = a, t.packetTrailer = a, r;
|
|
19184
19193
|
}
|
|
19185
19194
|
get isLocal() {
|
|
@@ -19556,7 +19565,7 @@ class Ga extends DOMException {
|
|
|
19556
19565
|
super(e, "AbortError"), this.reason = t;
|
|
19557
19566
|
}
|
|
19558
19567
|
}
|
|
19559
|
-
class
|
|
19568
|
+
class hf extends Map {
|
|
19560
19569
|
constructor() {
|
|
19561
19570
|
super(...arguments), this.pending = /* @__PURE__ */ new Map();
|
|
19562
19571
|
}
|
|
@@ -19603,7 +19612,7 @@ class uf extends Map {
|
|
|
19603
19612
|
});
|
|
19604
19613
|
}
|
|
19605
19614
|
}
|
|
19606
|
-
class
|
|
19615
|
+
class pf extends rt {
|
|
19607
19616
|
constructor(e, t, n, s) {
|
|
19608
19617
|
super(e, t.sid, t.name, s), this.track = void 0, this.allowed = !0, this.requestedDisabled = void 0, this.visible = !0, this.handleEnded = (r) => {
|
|
19609
19618
|
this.setTrack(void 0), this.emit(R.Ended, r);
|
|
@@ -19737,7 +19746,7 @@ class hf extends rt {
|
|
|
19737
19746
|
if (t)
|
|
19738
19747
|
sa(this.videoDimensionsAdaptiveStream, t) && (this.log.debug("using adaptive stream dimensions instead of requested", Object.assign(Object.assign({}, this.logContext), this.videoDimensionsAdaptiveStream)), t = this.videoDimensionsAdaptiveStream);
|
|
19739
19748
|
else if (this.requestedMaxQuality !== void 0 && this.trackInfo) {
|
|
19740
|
-
const n =
|
|
19749
|
+
const n = ch(this.trackInfo, this.requestedMaxQuality);
|
|
19741
19750
|
n && sa(this.videoDimensionsAdaptiveStream, n) && (this.log.debug("using adaptive stream dimensions instead of max quality layer", Object.assign(Object.assign({}, this.logContext), this.videoDimensionsAdaptiveStream)), t = this.videoDimensionsAdaptiveStream);
|
|
19742
19751
|
} else
|
|
19743
19752
|
this.log.debug("using adaptive stream dimensions", Object.assign(Object.assign({}, this.logContext), this.videoDimensionsAdaptiveStream)), t = this.videoDimensionsAdaptiveStream;
|
|
@@ -19769,7 +19778,7 @@ class vi extends id {
|
|
|
19769
19778
|
/** @internal */
|
|
19770
19779
|
constructor(e, t, n, s, r, a, o) {
|
|
19771
19780
|
let d = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : wn.STANDARD, c = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : [], l = arguments.length > 9 && arguments[9] !== void 0 ? arguments[9] : wc;
|
|
19772
|
-
super(t, n || "", s, r, a, o, d), this.signalClient = e, this.trackPublications = /* @__PURE__ */ new Map(), this.audioTrackPublications = /* @__PURE__ */ new Map(), this.videoTrackPublications = /* @__PURE__ */ new Map(), this.dataTracks = new
|
|
19781
|
+
super(t, n || "", s, r, a, o, d), this.signalClient = e, this.trackPublications = /* @__PURE__ */ new Map(), this.audioTrackPublications = /* @__PURE__ */ new Map(), this.videoTrackPublications = /* @__PURE__ */ new Map(), this.dataTracks = new hf(c.map((u) => [u.info.name, u])), this.volumeMap = /* @__PURE__ */ new Map(), this.clientProtocol = l;
|
|
19773
19782
|
}
|
|
19774
19783
|
addTrackPublication(e) {
|
|
19775
19784
|
super.addTrackPublication(e), e.on(R.UpdateSettings, (t) => {
|
|
@@ -19845,7 +19854,7 @@ class vi extends id {
|
|
|
19845
19854
|
}
|
|
19846
19855
|
const d = e.kind === "video";
|
|
19847
19856
|
let c;
|
|
19848
|
-
return d ? c = new lr(e, t, s, r) : c = new
|
|
19857
|
+
return d ? c = new lr(e, t, s, r) : c = new af(e, t, s, this.audioContext, this.audioOutput), c.source = o.source, c.isMuted = o.isMuted, c.setMediaStream(n), c.start(), o.setTrack(c), this.volumeMap.has(o.source) && Ns(c) && Ze(c) && c.setVolume(this.volumeMap.get(o.source)), o;
|
|
19849
19858
|
}
|
|
19850
19859
|
/** @internal */
|
|
19851
19860
|
get hasMetadata() {
|
|
@@ -19871,7 +19880,7 @@ class vi extends id {
|
|
|
19871
19880
|
const d = _.kindFromProto(s.type);
|
|
19872
19881
|
if (!d)
|
|
19873
19882
|
return;
|
|
19874
|
-
o = new
|
|
19883
|
+
o = new pf(d, s, (r = this.signalClient.connectOptions) === null || r === void 0 ? void 0 : r.autoSubscribe, {
|
|
19875
19884
|
loggerContextCb: () => this.logContext,
|
|
19876
19885
|
loggerName: (a = this.loggerOptions) === null || a === void 0 ? void 0 : a.loggerName
|
|
19877
19886
|
}), o.updateInfo(s), n.set(s.sid, o);
|
|
@@ -19943,7 +19952,7 @@ var z;
|
|
|
19943
19952
|
(function(i) {
|
|
19944
19953
|
i.Disconnected = "disconnected", i.Connecting = "connecting", i.Connected = "connected", i.Reconnecting = "reconnecting", i.SignalReconnecting = "signalReconnecting";
|
|
19945
19954
|
})(z || (z = {}));
|
|
19946
|
-
const
|
|
19955
|
+
const ff = 4 * 1e3;
|
|
19947
19956
|
class sn extends Ie.EventEmitter {
|
|
19948
19957
|
get hasE2EESetup() {
|
|
19949
19958
|
return this.e2eeManager !== void 0;
|
|
@@ -19956,7 +19965,7 @@ class sn extends Ie.EventEmitter {
|
|
|
19956
19965
|
var t, n, s, r, a, o, d;
|
|
19957
19966
|
if (super(), t = this, this.state = z.Disconnected, this.activeSpeakers = [], this.isE2EEEnabled = !1, this.audioEnabled = !0, this.e2eeStateMutex = new ge(), this.isVideoPlaybackBlocked = !1, this.log = q, this.bufferedEvents = [], this.isResuming = !1, this.connect = (c, l, u) => f(this, void 0, void 0, function* () {
|
|
19958
19967
|
var h;
|
|
19959
|
-
if (!
|
|
19968
|
+
if (!fh())
|
|
19960
19969
|
throw Ge() ? Error("WebRTC isn't detected, have you called registerGlobals?") : Error("LiveKit doesn't seem to be supported on this browser. Try to update your browser and make sure no browser extensions are disabling webRTC.");
|
|
19961
19970
|
const p = yield this.disconnectLock.lock();
|
|
19962
19971
|
if (this.state === z.Connected)
|
|
@@ -19972,7 +19981,7 @@ class sn extends Ie.EventEmitter {
|
|
|
19972
19981
|
});
|
|
19973
19982
|
}));
|
|
19974
19983
|
const g = (T, k, S) => f(this, void 0, void 0, function* () {
|
|
19975
|
-
var
|
|
19984
|
+
var N, v;
|
|
19976
19985
|
this.abortController && this.abortController.abort();
|
|
19977
19986
|
const y = new AbortController();
|
|
19978
19987
|
this.abortController = y, p == null || p();
|
|
@@ -19984,10 +19993,10 @@ class sn extends Ie.EventEmitter {
|
|
|
19984
19993
|
if (this.regionUrlProvider && C instanceof F && C.reason !== Q.Cancelled && C.reason !== Q.NotAllowed) {
|
|
19985
19994
|
let I = null;
|
|
19986
19995
|
try {
|
|
19987
|
-
this.log.debug("Fetching next region"), I = yield this.regionUrlProvider.getNextBestRegionUrl((
|
|
19988
|
-
} catch (
|
|
19989
|
-
if (
|
|
19990
|
-
this.handleDisconnect(this.options.stopLocalTrackOnUnpublish), k(
|
|
19996
|
+
this.log.debug("Fetching next region"), I = yield this.regionUrlProvider.getNextBestRegionUrl((N = this.abortController) === null || N === void 0 ? void 0 : N.signal);
|
|
19997
|
+
} catch (L) {
|
|
19998
|
+
if (L instanceof F && (L.status === 401 || L.reason === Q.Cancelled)) {
|
|
19999
|
+
this.handleDisconnect(this.options.stopLocalTrackOnUnpublish), k(L);
|
|
19991
20000
|
return;
|
|
19992
20001
|
}
|
|
19993
20002
|
}
|
|
@@ -20015,7 +20024,7 @@ class sn extends Ie.EventEmitter {
|
|
|
20015
20024
|
websocketTimeout: h.websocketTimeout
|
|
20016
20025
|
}, g.signal, !p.singlePeerConnection), k = T.joinResponse, S = T.serverInfo;
|
|
20017
20026
|
if (this.serverInfo = S, !S.version)
|
|
20018
|
-
throw new
|
|
20027
|
+
throw new Yu("unknown server version");
|
|
20019
20028
|
return S.version === "0.15.1" && this.options.dynacast && (this.log.debug("disabling dynacast due to server version"), p.dynacast = !1), k;
|
|
20020
20029
|
}), this.applyJoinResponse = (c) => {
|
|
20021
20030
|
const l = c.participant;
|
|
@@ -20240,10 +20249,10 @@ class sn extends Ie.EventEmitter {
|
|
|
20240
20249
|
}, this.handleSipDtmf = (c, l) => {
|
|
20241
20250
|
this.emit(E.SipDTMFReceived, l, c), c == null || c.emit(M.SipDTMFReceived, l);
|
|
20242
20251
|
}, this.handleTranscription = (c, l) => {
|
|
20243
|
-
const u = l.transcribedParticipantIdentity === this.localParticipant.identity ? this.localParticipant : this.getParticipantByIdentity(l.transcribedParticipantIdentity), h = u == null ? void 0 : u.trackPublications.get(l.trackId), p =
|
|
20252
|
+
const u = l.transcribedParticipantIdentity === this.localParticipant.identity ? this.localParticipant : this.getParticipantByIdentity(l.transcribedParticipantIdentity), h = u == null ? void 0 : u.trackPublications.get(l.trackId), p = _h(l, this.transcriptionReceivedTimes);
|
|
20244
20253
|
h == null || h.emit(R.TranscriptionReceived, p), u == null || u.emit(M.TranscriptionReceived, p, h), this.emit(E.TranscriptionReceived, p, u, h);
|
|
20245
20254
|
}, this.handleChatMessage = (c, l) => {
|
|
20246
|
-
const u =
|
|
20255
|
+
const u = wh(l);
|
|
20247
20256
|
this.emit(E.ChatMessage, u, c);
|
|
20248
20257
|
}, this.handleMetrics = (c, l) => {
|
|
20249
20258
|
this.emit(E.MetricsReceived, c, l);
|
|
@@ -20309,7 +20318,7 @@ class sn extends Ie.EventEmitter {
|
|
|
20309
20318
|
this.emit(E.ParticipantPermissionsChanged, c, this.localParticipant);
|
|
20310
20319
|
}, this.onLocalChatMessageSent = (c) => {
|
|
20311
20320
|
this.emit(E.ChatMessage, c, this.localParticipant);
|
|
20312
|
-
}, this.setMaxListeners(100), this.remoteParticipants = /* @__PURE__ */ new Map(), this.sidToIdentity = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({},
|
|
20321
|
+
}, this.setMaxListeners(100), this.remoteParticipants = /* @__PURE__ */ new Map(), this.sidToIdentity = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({}, pp), e), this.log = Re((n = this.options.loggerName) !== null && n !== void 0 ? n : pe.Room, () => this.logContext), this.transcriptionReceivedTimes = /* @__PURE__ */ new Map(), this.options.audioCaptureDefaults = Object.assign(Object.assign({}, Fc), e == null ? void 0 : e.audioCaptureDefaults), this.options.videoCaptureDefaults = Object.assign(Object.assign({}, Bc), e == null ? void 0 : e.videoCaptureDefaults), this.options.publishDefaults = Object.assign(Object.assign({}, hp), e == null ? void 0 : e.publishDefaults), this.maybeCreateEngine(), this.incomingDataStreamManager = new jp(), this.outgoingDataStreamManager = new Kp(this.engine, this.log), this.incomingDataTrackManager = new ef({
|
|
20313
20322
|
e2eeManager: this.e2eeManager
|
|
20314
20323
|
}), this.incomingDataTrackManager.on("sfuUpdateSubscription", (c) => {
|
|
20315
20324
|
this.engine.client.sendUpdateDataSubscription(c.sid, c.subscribe);
|
|
@@ -20332,18 +20341,18 @@ class sn extends Ie.EventEmitter {
|
|
|
20332
20341
|
}).on("packetAvailable", (c) => {
|
|
20333
20342
|
let l = c.handle, u = c.bytes;
|
|
20334
20343
|
this.engine.sendLossyBytes(u, j.DATA_TRACK_LOSSY, "wait").finally(() => this.outgoingDataTrackManager.handlePacketSendComplete(l));
|
|
20335
|
-
}), this.registerRpcDataStreamHandler(), this.rpcClientManager = new
|
|
20344
|
+
}), this.registerRpcDataStreamHandler(), this.rpcClientManager = new sf(this.log, this.outgoingDataStreamManager, this.getRemoteParticipantClientProtocol, () => {
|
|
20336
20345
|
var c, l;
|
|
20337
20346
|
return (l = (c = this.engine.latestJoinResponse) === null || c === void 0 ? void 0 : c.serverInfo) === null || l === void 0 ? void 0 : l.version;
|
|
20338
20347
|
}), this.rpcClientManager.on("sendDataPacket", (c) => {
|
|
20339
20348
|
let l = c.packet;
|
|
20340
20349
|
var u;
|
|
20341
20350
|
(u = this.engine) === null || u === void 0 || u.sendDataPacket(l, j.RELIABLE);
|
|
20342
|
-
}), this.rpcServerManager = new
|
|
20351
|
+
}), this.rpcServerManager = new rf(this.log, this.outgoingDataStreamManager, this.getRemoteParticipantClientProtocol), this.rpcServerManager.on("sendDataPacket", (c) => {
|
|
20343
20352
|
let l = c.packet;
|
|
20344
20353
|
var u;
|
|
20345
20354
|
(u = this.engine) === null || u === void 0 || u.sendDataPacket(l, j.RELIABLE);
|
|
20346
|
-
}), this.disconnectLock = new ge(), this.localParticipant = new
|
|
20355
|
+
}), this.disconnectLock = new ge(), this.localParticipant = new uf("", "", this.engine, this.options, this.outgoingDataStreamManager, this.outgoingDataTrackManager, this.rpcClientManager, this.rpcServerManager), this.setupFrameMetadata(), (this.options.e2ee || this.options.encryption) && this.setupE2EE(), this.engine.e2eeManager = this.e2eeManager, this.incomingDataTrackManager.updateE2eeManager((s = this.e2eeManager) !== null && s !== void 0 ? s : null), this.outgoingDataTrackManager.updateE2eeManager((r = this.e2eeManager) !== null && r !== void 0 ? r : null), this.options.videoCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("videoinput", At(this.options.videoCaptureDefaults.deviceId)), this.options.audioCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("audioinput", At(this.options.audioCaptureDefaults.deviceId)), !((a = this.options.audioOutput) === null || a === void 0) && a.deviceId && this.switchActiveDevice("audiooutput", At(this.options.audioOutput.deviceId)).catch((c) => this.log.warn("Could not set audio output: ".concat(c.message))), Pe()) {
|
|
20347
20356
|
const c = new AbortController();
|
|
20348
20357
|
let l;
|
|
20349
20358
|
if (sn.cleanupRegistry) {
|
|
@@ -20429,8 +20438,8 @@ class sn extends Ie.EventEmitter {
|
|
|
20429
20438
|
setupE2EE() {
|
|
20430
20439
|
var e, t;
|
|
20431
20440
|
const n = !!this.options.encryption, s = this.options.encryption || this.options.e2ee;
|
|
20432
|
-
s && ("e2eeManager" in s ? (this.e2eeManager = s.e2eeManager, this.e2eeManager.isDataChannelEncryptionEnabled = n) : this.e2eeManager = new
|
|
20433
|
-
|
|
20441
|
+
s && ("e2eeManager" in s ? (this.e2eeManager = s.e2eeManager, this.e2eeManager.isDataChannelEncryptionEnabled = n) : this.e2eeManager = new Hh(s, n), this.e2eeManager.on(mt.ParticipantEncryptionStatusChanged, (r, a) => {
|
|
20442
|
+
Ph(a) && (this.isE2EEEnabled = r), this.emit(E.ParticipantEncryptionStatusChanged, r, a);
|
|
20434
20443
|
}), this.e2eeManager.on(mt.EncryptionError, (r, a) => {
|
|
20435
20444
|
const o = a ? this.getParticipantByIdentity(a) : void 0;
|
|
20436
20445
|
this.emit(E.EncryptionError, r, o);
|
|
@@ -20439,7 +20448,7 @@ class sn extends Ie.EventEmitter {
|
|
|
20439
20448
|
setupFrameMetadata() {
|
|
20440
20449
|
var e;
|
|
20441
20450
|
const t = (e = this.options.frameMetadata) !== null && e !== void 0 ? e : this.options.packetTrailer;
|
|
20442
|
-
this.frameMetadataManager = new
|
|
20451
|
+
this.frameMetadataManager = new zh(t), this.frameMetadataManager.setup(this);
|
|
20443
20452
|
}
|
|
20444
20453
|
get logContext() {
|
|
20445
20454
|
var e, t, n;
|
|
@@ -20490,7 +20499,7 @@ class sn extends Ie.EventEmitter {
|
|
|
20490
20499
|
return (t = (e = this.roomInfo) === null || e === void 0 ? void 0 : e.numPublishers) !== null && t !== void 0 ? t : 0;
|
|
20491
20500
|
}
|
|
20492
20501
|
maybeCreateEngine() {
|
|
20493
|
-
this.engine && (this.engine.isNewlyCreated || !this.engine.isClosed) || (this.engine = new
|
|
20502
|
+
this.engine && (this.engine.isNewlyCreated || !this.engine.isClosed) || (this.engine = new Up(this.options), this.engine.e2eeManager = this.e2eeManager, this.engine.on(P.ParticipantUpdate, this.handleParticipantUpdates).on(P.RoomUpdate, this.handleRoomUpdate).on(P.SpeakersChanged, this.handleSpeakersChanged).on(P.StreamStateChanged, this.handleStreamStateUpdate).on(P.ConnectionQualityUpdate, this.handleConnectionQualityUpdate).on(P.SubscriptionError, this.handleSubscriptionError).on(P.SubscriptionPermissionUpdate, this.handleSubscriptionPermissionUpdate).on(P.MediaTrackAdded, (e, t, n) => {
|
|
20494
20503
|
this.onTrackAdded(e, t, n);
|
|
20495
20504
|
}).on(P.Disconnected, (e) => {
|
|
20496
20505
|
this.handleDisconnect(this.options.stopLocalTrackOnUnpublish, e);
|
|
@@ -20778,11 +20787,11 @@ class sn extends Ie.EventEmitter {
|
|
|
20778
20787
|
} catch (v) {
|
|
20779
20788
|
throw r.options.audioCaptureDefaults.deviceId = k, v;
|
|
20780
20789
|
}
|
|
20781
|
-
const
|
|
20790
|
+
const N = S.some((v) => {
|
|
20782
20791
|
var y, C;
|
|
20783
20792
|
return (C = (y = v.track) === null || y === void 0 ? void 0 : y.isMuted) !== null && C !== void 0 ? C : !1;
|
|
20784
20793
|
});
|
|
20785
|
-
g &&
|
|
20794
|
+
g && N && (m = !0);
|
|
20786
20795
|
} else if (n === "videoinput") {
|
|
20787
20796
|
m = r.localParticipant.videoTrackPublications.size === 0;
|
|
20788
20797
|
const k = (d = r.getActiveDevice(n)) !== null && d !== void 0 ? d : r.options.videoCaptureDefaults.deviceId;
|
|
@@ -20796,11 +20805,11 @@ class sn extends Ie.EventEmitter {
|
|
|
20796
20805
|
} catch (v) {
|
|
20797
20806
|
throw r.options.videoCaptureDefaults.deviceId = k, v;
|
|
20798
20807
|
}
|
|
20799
|
-
const
|
|
20808
|
+
const N = S.some((v) => {
|
|
20800
20809
|
var y, C;
|
|
20801
20810
|
return (C = (y = v.track) === null || y === void 0 ? void 0 : y.isMuted) !== null && C !== void 0 ? C : !1;
|
|
20802
20811
|
});
|
|
20803
|
-
g &&
|
|
20812
|
+
g && N && (m = !0);
|
|
20804
20813
|
} else if (n === "audiooutput") {
|
|
20805
20814
|
if (m = !0, !xs() && !r.options.webAudioMix || r.options.webAudioMix && r.audioContext && !("setSinkId" in r.audioContext))
|
|
20806
20815
|
throw new Error("cannot switch audio output, the current browser does not support it");
|
|
@@ -20848,7 +20857,7 @@ class sn extends Ie.EventEmitter {
|
|
|
20848
20857
|
this.log.debug("skipping incoming track as it already ended");
|
|
20849
20858
|
return;
|
|
20850
20859
|
}
|
|
20851
|
-
const s =
|
|
20860
|
+
const s = uh(t.id), r = s[0];
|
|
20852
20861
|
let a = s[1], o = e.id;
|
|
20853
20862
|
if (a && a.startsWith("TR") && (o = a), r === this.localParticipant.sid) {
|
|
20854
20863
|
this.log.warn("tried to create RemoteParticipant for local participant");
|
|
@@ -20942,7 +20951,7 @@ class sn extends Ie.EventEmitter {
|
|
|
20942
20951
|
}
|
|
20943
20952
|
const o = ["audiooutput", "audioinput", "videoinput"];
|
|
20944
20953
|
for (let d of o) {
|
|
20945
|
-
const c =
|
|
20954
|
+
const c = nh(d), l = this.localParticipant.getTrackPublication(c);
|
|
20946
20955
|
if (l && (!((e = l.track) === null || e === void 0) && e.isUserProvided))
|
|
20947
20956
|
continue;
|
|
20948
20957
|
const u = r.filter((p) => p.kind === d), h = this.getActiveDevice(d);
|
|
@@ -21030,7 +21039,7 @@ class sn extends Ie.EventEmitter {
|
|
|
21030
21039
|
updateSubscriptions() {
|
|
21031
21040
|
for (const e of this.remoteParticipants.values())
|
|
21032
21041
|
for (const t of e.videoTrackPublications.values())
|
|
21033
|
-
t.isSubscribed &&
|
|
21042
|
+
t.isSubscribed && Eh(t) && t.emitTrackUpdate();
|
|
21034
21043
|
}
|
|
21035
21044
|
getRemoteParticipantBySid(e) {
|
|
21036
21045
|
const t = this.sidToIdentity.get(e);
|
|
@@ -21070,7 +21079,7 @@ class sn extends Ie.EventEmitter {
|
|
|
21070
21079
|
transportsConnectedOrConnecting: this.engine.verifyTransport()
|
|
21071
21080
|
} : void 0
|
|
21072
21081
|
}), e >= 3 && (this.recreateEngine(), this.handleDisconnect(this.options.stopLocalTrackOnUnpublish, He.STATE_MISMATCH))) : e = 0;
|
|
21073
|
-
},
|
|
21082
|
+
}, ff);
|
|
21074
21083
|
}
|
|
21075
21084
|
clearConnectionReconcile() {
|
|
21076
21085
|
this.connectionReconcileInterval && ce.clearInterval(this.connectionReconcileInterval);
|
|
@@ -21304,7 +21313,7 @@ class Ct extends Ie.EventEmitter {
|
|
|
21304
21313
|
};
|
|
21305
21314
|
}
|
|
21306
21315
|
}
|
|
21307
|
-
class
|
|
21316
|
+
class mf extends Ct {
|
|
21308
21317
|
get description() {
|
|
21309
21318
|
return "Cloud regions";
|
|
21310
21319
|
}
|
|
@@ -21360,7 +21369,7 @@ class ff extends Ct {
|
|
|
21360
21369
|
}
|
|
21361
21370
|
}
|
|
21362
21371
|
const ls = 1e4;
|
|
21363
|
-
class
|
|
21372
|
+
class gf extends Ct {
|
|
21364
21373
|
get description() {
|
|
21365
21374
|
return "Connection via UDP vs TCP";
|
|
21366
21375
|
}
|
|
@@ -21414,14 +21423,14 @@ class mf extends Ct {
|
|
|
21414
21423
|
});
|
|
21415
21424
|
}
|
|
21416
21425
|
}
|
|
21417
|
-
class
|
|
21426
|
+
class vf extends Ct {
|
|
21418
21427
|
get description() {
|
|
21419
21428
|
return "Can publish audio";
|
|
21420
21429
|
}
|
|
21421
21430
|
perform() {
|
|
21422
21431
|
return f(this, void 0, void 0, function* () {
|
|
21423
21432
|
var e;
|
|
21424
|
-
const t = yield this.connect(), n = yield
|
|
21433
|
+
const t = yield this.connect(), n = yield cf();
|
|
21425
21434
|
if (yield Rc(n, 1e3))
|
|
21426
21435
|
throw new Error("unable to detect audio from microphone");
|
|
21427
21436
|
this.appendMessage("detected audio from microphone"), t.localParticipant.publishTrack(n), yield new Promise((o) => setTimeout(o, 3e3));
|
|
@@ -21437,14 +21446,14 @@ class gf extends Ct {
|
|
|
21437
21446
|
});
|
|
21438
21447
|
}
|
|
21439
21448
|
}
|
|
21440
|
-
class
|
|
21449
|
+
class bf extends Ct {
|
|
21441
21450
|
get description() {
|
|
21442
21451
|
return "Can publish video";
|
|
21443
21452
|
}
|
|
21444
21453
|
perform() {
|
|
21445
21454
|
return f(this, void 0, void 0, function* () {
|
|
21446
21455
|
var e;
|
|
21447
|
-
const t = yield this.connect(), n = yield
|
|
21456
|
+
const t = yield this.connect(), n = yield of();
|
|
21448
21457
|
yield this.checkForVideo(n.mediaStreamTrack), t.localParticipant.publishTrack(n), yield new Promise((a) => setTimeout(a, 5e3));
|
|
21449
21458
|
const s = yield (e = n.sender) === null || e === void 0 ? void 0 : e.getStats();
|
|
21450
21459
|
if (!s)
|
|
@@ -21484,7 +21493,7 @@ class vf extends Ct {
|
|
|
21484
21493
|
});
|
|
21485
21494
|
}
|
|
21486
21495
|
}
|
|
21487
|
-
class
|
|
21496
|
+
class yf extends Ct {
|
|
21488
21497
|
get description() {
|
|
21489
21498
|
return "Resuming connection after interruption";
|
|
21490
21499
|
}
|
|
@@ -21509,7 +21518,7 @@ class bf extends Ct {
|
|
|
21509
21518
|
});
|
|
21510
21519
|
}
|
|
21511
21520
|
}
|
|
21512
|
-
class
|
|
21521
|
+
class kf extends Ct {
|
|
21513
21522
|
get description() {
|
|
21514
21523
|
return "Can connect via TURN";
|
|
21515
21524
|
}
|
|
@@ -21535,7 +21544,7 @@ class yf extends Ct {
|
|
|
21535
21544
|
});
|
|
21536
21545
|
}
|
|
21537
21546
|
}
|
|
21538
|
-
class
|
|
21547
|
+
class Tf extends Ct {
|
|
21539
21548
|
get description() {
|
|
21540
21549
|
return "Establishing WebRTC connection";
|
|
21541
21550
|
}
|
|
@@ -21549,7 +21558,7 @@ class kf extends Ct {
|
|
|
21549
21558
|
if (r.candidate) {
|
|
21550
21559
|
const o = new RTCIceCandidate(r);
|
|
21551
21560
|
let d = "".concat(o.protocol, " ").concat(o.address, ":").concat(o.port, " ").concat(o.type);
|
|
21552
|
-
o.address && (
|
|
21561
|
+
o.address && (Sf(o.address) ? d += " (private)" : o.protocol === "tcp" && o.tcpType === "passive" ? (e = !0, d += " (passive)") : o.protocol === "udp" && (t = !0)), this.appendMessage(d);
|
|
21553
21562
|
}
|
|
21554
21563
|
s && s(r, a);
|
|
21555
21564
|
}, !((n = this.room.engine.pcManager) === null || n === void 0) && n.subscriber && (this.room.engine.pcManager.subscriber.onIceCandidateError = (r) => {
|
|
@@ -21565,7 +21574,7 @@ class kf extends Ct {
|
|
|
21565
21574
|
});
|
|
21566
21575
|
}
|
|
21567
21576
|
}
|
|
21568
|
-
function
|
|
21577
|
+
function Sf(i) {
|
|
21569
21578
|
const e = i.split(".");
|
|
21570
21579
|
if (e.length === 4) {
|
|
21571
21580
|
if (e[0] === "10")
|
|
@@ -21580,7 +21589,7 @@ function Tf(i) {
|
|
|
21580
21589
|
}
|
|
21581
21590
|
return !1;
|
|
21582
21591
|
}
|
|
21583
|
-
class
|
|
21592
|
+
class Cf extends Ct {
|
|
21584
21593
|
get description() {
|
|
21585
21594
|
return "Connecting to signal connection via WebSocket";
|
|
21586
21595
|
}
|
|
@@ -21612,7 +21621,7 @@ class Sf extends Ct {
|
|
|
21612
21621
|
});
|
|
21613
21622
|
}
|
|
21614
21623
|
}
|
|
21615
|
-
class
|
|
21624
|
+
class Kf extends Ie.EventEmitter {
|
|
21616
21625
|
constructor(e, t) {
|
|
21617
21626
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
21618
21627
|
super(), this.options = {}, this.checkResults = /* @__PURE__ */ new Map(), this.url = e, this.token = t, this.options = n;
|
|
@@ -21647,37 +21656,37 @@ class Hf extends Ie.EventEmitter {
|
|
|
21647
21656
|
}
|
|
21648
21657
|
checkWebsocket() {
|
|
21649
21658
|
return f(this, void 0, void 0, function* () {
|
|
21650
|
-
return this.createAndRunCheck(
|
|
21659
|
+
return this.createAndRunCheck(Cf);
|
|
21651
21660
|
});
|
|
21652
21661
|
}
|
|
21653
21662
|
checkWebRTC() {
|
|
21654
21663
|
return f(this, void 0, void 0, function* () {
|
|
21655
|
-
return this.createAndRunCheck(
|
|
21664
|
+
return this.createAndRunCheck(Tf);
|
|
21656
21665
|
});
|
|
21657
21666
|
}
|
|
21658
21667
|
checkTURN() {
|
|
21659
21668
|
return f(this, void 0, void 0, function* () {
|
|
21660
|
-
return this.createAndRunCheck(
|
|
21669
|
+
return this.createAndRunCheck(kf);
|
|
21661
21670
|
});
|
|
21662
21671
|
}
|
|
21663
21672
|
checkReconnect() {
|
|
21664
21673
|
return f(this, void 0, void 0, function* () {
|
|
21665
|
-
return this.createAndRunCheck(
|
|
21674
|
+
return this.createAndRunCheck(yf);
|
|
21666
21675
|
});
|
|
21667
21676
|
}
|
|
21668
21677
|
checkPublishAudio() {
|
|
21669
21678
|
return f(this, void 0, void 0, function* () {
|
|
21670
|
-
return this.createAndRunCheck(
|
|
21679
|
+
return this.createAndRunCheck(vf);
|
|
21671
21680
|
});
|
|
21672
21681
|
}
|
|
21673
21682
|
checkPublishVideo() {
|
|
21674
21683
|
return f(this, void 0, void 0, function* () {
|
|
21675
|
-
return this.createAndRunCheck(
|
|
21684
|
+
return this.createAndRunCheck(bf);
|
|
21676
21685
|
});
|
|
21677
21686
|
}
|
|
21678
21687
|
checkConnectionProtocol() {
|
|
21679
21688
|
return f(this, void 0, void 0, function* () {
|
|
21680
|
-
const e = yield this.createAndRunCheck(
|
|
21689
|
+
const e = yield this.createAndRunCheck(gf);
|
|
21681
21690
|
if (e.data && "protocol" in e.data) {
|
|
21682
21691
|
const t = e.data;
|
|
21683
21692
|
this.options.protocol = t.protocol;
|
|
@@ -21687,7 +21696,7 @@ class Hf extends Ie.EventEmitter {
|
|
|
21687
21696
|
}
|
|
21688
21697
|
checkCloudRegion() {
|
|
21689
21698
|
return f(this, void 0, void 0, function* () {
|
|
21690
|
-
return this.createAndRunCheck(
|
|
21699
|
+
return this.createAndRunCheck(mf);
|
|
21691
21700
|
});
|
|
21692
21701
|
}
|
|
21693
21702
|
}
|
|
@@ -21700,7 +21709,7 @@ class _e extends Error {
|
|
|
21700
21709
|
}
|
|
21701
21710
|
}
|
|
21702
21711
|
K(_e, "code", "ERR_JOSE_GENERIC");
|
|
21703
|
-
class
|
|
21712
|
+
class _f extends _e {
|
|
21704
21713
|
constructor(e, t) {
|
|
21705
21714
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "unspecified", s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "unspecified";
|
|
21706
21715
|
super(e, {
|
|
@@ -21712,8 +21721,8 @@ class Cf extends _e {
|
|
|
21712
21721
|
}), K(this, "code", "ERR_JWT_CLAIM_VALIDATION_FAILED"), K(this, "claim", void 0), K(this, "reason", void 0), K(this, "payload", void 0), this.claim = n, this.reason = s, this.payload = t;
|
|
21713
21722
|
}
|
|
21714
21723
|
}
|
|
21715
|
-
K(
|
|
21716
|
-
class
|
|
21724
|
+
K(_f, "code", "ERR_JWT_CLAIM_VALIDATION_FAILED");
|
|
21725
|
+
class wf extends _e {
|
|
21717
21726
|
constructor(e, t) {
|
|
21718
21727
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "unspecified", s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "unspecified";
|
|
21719
21728
|
super(e, {
|
|
@@ -21725,92 +21734,92 @@ class _f extends _e {
|
|
|
21725
21734
|
}), K(this, "code", "ERR_JWT_EXPIRED"), K(this, "claim", void 0), K(this, "reason", void 0), K(this, "payload", void 0), this.claim = n, this.reason = s, this.payload = t;
|
|
21726
21735
|
}
|
|
21727
21736
|
}
|
|
21728
|
-
K(
|
|
21729
|
-
class
|
|
21737
|
+
K(wf, "code", "ERR_JWT_EXPIRED");
|
|
21738
|
+
class Ef extends _e {
|
|
21730
21739
|
constructor() {
|
|
21731
21740
|
super(...arguments), K(this, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
|
|
21732
21741
|
}
|
|
21733
21742
|
}
|
|
21734
|
-
K(
|
|
21735
|
-
class
|
|
21743
|
+
K(Ef, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
|
|
21744
|
+
class Pf extends _e {
|
|
21736
21745
|
constructor() {
|
|
21737
21746
|
super(...arguments), K(this, "code", "ERR_JOSE_NOT_SUPPORTED");
|
|
21738
21747
|
}
|
|
21739
21748
|
}
|
|
21740
|
-
K(
|
|
21741
|
-
class
|
|
21749
|
+
K(Pf, "code", "ERR_JOSE_NOT_SUPPORTED");
|
|
21750
|
+
class Rf extends _e {
|
|
21742
21751
|
constructor() {
|
|
21743
21752
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "decryption operation failed", t = arguments.length > 1 ? arguments[1] : void 0;
|
|
21744
21753
|
super(e, t), K(this, "code", "ERR_JWE_DECRYPTION_FAILED");
|
|
21745
21754
|
}
|
|
21746
21755
|
}
|
|
21747
|
-
K(
|
|
21748
|
-
class
|
|
21756
|
+
K(Rf, "code", "ERR_JWE_DECRYPTION_FAILED");
|
|
21757
|
+
class If extends _e {
|
|
21749
21758
|
constructor() {
|
|
21750
21759
|
super(...arguments), K(this, "code", "ERR_JWE_INVALID");
|
|
21751
21760
|
}
|
|
21752
21761
|
}
|
|
21753
|
-
K(
|
|
21754
|
-
class
|
|
21762
|
+
K(If, "code", "ERR_JWE_INVALID");
|
|
21763
|
+
class Mf extends _e {
|
|
21755
21764
|
constructor() {
|
|
21756
21765
|
super(...arguments), K(this, "code", "ERR_JWS_INVALID");
|
|
21757
21766
|
}
|
|
21758
21767
|
}
|
|
21759
|
-
K(
|
|
21760
|
-
class
|
|
21768
|
+
K(Mf, "code", "ERR_JWS_INVALID");
|
|
21769
|
+
class Df extends _e {
|
|
21761
21770
|
constructor() {
|
|
21762
21771
|
super(...arguments), K(this, "code", "ERR_JWT_INVALID");
|
|
21763
21772
|
}
|
|
21764
21773
|
}
|
|
21765
|
-
K(
|
|
21766
|
-
class
|
|
21774
|
+
K(Df, "code", "ERR_JWT_INVALID");
|
|
21775
|
+
class Af extends _e {
|
|
21767
21776
|
constructor() {
|
|
21768
21777
|
super(...arguments), K(this, "code", "ERR_JWK_INVALID");
|
|
21769
21778
|
}
|
|
21770
21779
|
}
|
|
21771
|
-
K(
|
|
21772
|
-
class
|
|
21780
|
+
K(Af, "code", "ERR_JWK_INVALID");
|
|
21781
|
+
class Of extends _e {
|
|
21773
21782
|
constructor() {
|
|
21774
21783
|
super(...arguments), K(this, "code", "ERR_JWKS_INVALID");
|
|
21775
21784
|
}
|
|
21776
21785
|
}
|
|
21777
|
-
K(
|
|
21778
|
-
class
|
|
21786
|
+
K(Of, "code", "ERR_JWKS_INVALID");
|
|
21787
|
+
class xf extends _e {
|
|
21779
21788
|
constructor() {
|
|
21780
21789
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "no applicable key found in the JSON Web Key Set", t = arguments.length > 1 ? arguments[1] : void 0;
|
|
21781
21790
|
super(e, t), K(this, "code", "ERR_JWKS_NO_MATCHING_KEY");
|
|
21782
21791
|
}
|
|
21783
21792
|
}
|
|
21784
|
-
K(
|
|
21785
|
-
class
|
|
21793
|
+
K(xf, "code", "ERR_JWKS_NO_MATCHING_KEY");
|
|
21794
|
+
class Lf extends _e {
|
|
21786
21795
|
constructor() {
|
|
21787
21796
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "multiple matching keys found in the JSON Web Key Set", t = arguments.length > 1 ? arguments[1] : void 0;
|
|
21788
21797
|
super(e, t), K(this, Symbol.asyncIterator, void 0), K(this, "code", "ERR_JWKS_MULTIPLE_MATCHING_KEYS");
|
|
21789
21798
|
}
|
|
21790
21799
|
}
|
|
21791
|
-
K(
|
|
21792
|
-
class
|
|
21800
|
+
K(Lf, "code", "ERR_JWKS_MULTIPLE_MATCHING_KEYS");
|
|
21801
|
+
class Nf extends _e {
|
|
21793
21802
|
constructor() {
|
|
21794
21803
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "request timed out", t = arguments.length > 1 ? arguments[1] : void 0;
|
|
21795
21804
|
super(e, t), K(this, "code", "ERR_JWKS_TIMEOUT");
|
|
21796
21805
|
}
|
|
21797
21806
|
}
|
|
21798
|
-
K(
|
|
21799
|
-
class
|
|
21807
|
+
K(Nf, "code", "ERR_JWKS_TIMEOUT");
|
|
21808
|
+
class Uf extends _e {
|
|
21800
21809
|
constructor() {
|
|
21801
21810
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "signature verification failed", t = arguments.length > 1 ? arguments[1] : void 0;
|
|
21802
21811
|
super(e, t), K(this, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
|
|
21803
21812
|
}
|
|
21804
21813
|
}
|
|
21805
|
-
K(
|
|
21806
|
-
const
|
|
21807
|
-
function
|
|
21814
|
+
K(Uf, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
|
|
21815
|
+
const Ff = "core-bridge-";
|
|
21816
|
+
function Bf(i) {
|
|
21808
21817
|
return i.replace(/\/$/, "");
|
|
21809
21818
|
}
|
|
21810
|
-
function
|
|
21819
|
+
function Vf() {
|
|
21811
21820
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `call-${Date.now()}-${Math.random().toString(36).slice(2, 11)}`;
|
|
21812
21821
|
}
|
|
21813
|
-
class
|
|
21822
|
+
class Gf {
|
|
21814
21823
|
constructor(e) {
|
|
21815
21824
|
D(this, "serverUrl");
|
|
21816
21825
|
D(this, "agentId");
|
|
@@ -21827,7 +21836,7 @@ class Kf {
|
|
|
21827
21836
|
D(this, "disconnecting", !1);
|
|
21828
21837
|
if (!e.serverUrl) throw new Error("serverUrl is required");
|
|
21829
21838
|
if (!e.agentId) throw new Error("agentId is required");
|
|
21830
|
-
this.serverUrl =
|
|
21839
|
+
this.serverUrl = Bf(e.serverUrl), this.agentId = e.agentId, this.callId = e.callId ?? Vf(), this.authToken = e.token, this.continuedCallId = e.continuedCallId, this.bridgePrefix = e.bridgeIdentityPrefix ?? Ff, this.onConnected = e.onConnected, this.onDisconnected = e.onDisconnected, this.onError = e.onError;
|
|
21831
21840
|
}
|
|
21832
21841
|
get isConnected() {
|
|
21833
21842
|
return this.connected;
|
|
@@ -22074,7 +22083,7 @@ const jt = class jt {
|
|
|
22074
22083
|
D(jt, "HEARTBEAT_INTERVAL_MS", 5e3), /** How old (ms) a heartbeat must be before we consider the tab dead */
|
|
22075
22084
|
D(jt, "HEARTBEAT_TIMEOUT_MS", 15e3);
|
|
22076
22085
|
let za = jt;
|
|
22077
|
-
class
|
|
22086
|
+
class zf {
|
|
22078
22087
|
static async fetchWidgetConfig(e, t) {
|
|
22079
22088
|
var s;
|
|
22080
22089
|
const n = { "Content-Type": "application/json" };
|
|
@@ -22094,8 +22103,8 @@ class Gf {
|
|
|
22094
22103
|
}
|
|
22095
22104
|
}
|
|
22096
22105
|
let hn = "https://inboxapi.vanira.io";
|
|
22097
|
-
const
|
|
22098
|
-
class
|
|
22106
|
+
const qf = "https://coredb.travelr.club/v1/graphql";
|
|
22107
|
+
class Jf {
|
|
22099
22108
|
static setChatUrl(e) {
|
|
22100
22109
|
hn = e;
|
|
22101
22110
|
}
|
|
@@ -22109,7 +22118,7 @@ class zf {
|
|
|
22109
22118
|
}
|
|
22110
22119
|
`;
|
|
22111
22120
|
try {
|
|
22112
|
-
const a = await (await fetch(
|
|
22121
|
+
const a = await (await fetch(qf, {
|
|
22113
22122
|
method: "POST",
|
|
22114
22123
|
headers: { "Content-Type": "application/json" },
|
|
22115
22124
|
body: JSON.stringify({
|
|
@@ -22166,11 +22175,11 @@ class zf {
|
|
|
22166
22175
|
if (!T.ok) throw new Error("Chat request failed");
|
|
22167
22176
|
const k = (l = T.body) == null ? void 0 : l.getReader(), S = new TextDecoder();
|
|
22168
22177
|
if (!k) throw new Error("No reader");
|
|
22169
|
-
let
|
|
22178
|
+
let N = "", v = "", y = null, C = null;
|
|
22170
22179
|
for (; ; ) {
|
|
22171
|
-
const { done: I, value:
|
|
22180
|
+
const { done: I, value: L } = await k.read();
|
|
22172
22181
|
if (I) break;
|
|
22173
|
-
v += S.decode(
|
|
22182
|
+
v += S.decode(L, { stream: !0 });
|
|
22174
22183
|
const V = v.split(`
|
|
22175
22184
|
`);
|
|
22176
22185
|
v = V.pop() || "";
|
|
@@ -22189,7 +22198,7 @@ class zf {
|
|
|
22189
22198
|
continue;
|
|
22190
22199
|
}
|
|
22191
22200
|
const Z = (p = (h = (u = W.choices) == null ? void 0 : u[0]) == null ? void 0 : h.delta) == null ? void 0 : p.content;
|
|
22192
|
-
Z && (
|
|
22201
|
+
Z && (N += Z, r(N)), W.widget && a(W.widget), W.chat_id && !y && (y = W.chat_id), W.conversation_id && !C && (C = W.conversation_id);
|
|
22193
22202
|
} catch {
|
|
22194
22203
|
}
|
|
22195
22204
|
}
|
|
@@ -22267,15 +22276,15 @@ export {
|
|
|
22267
22276
|
pd as BrowserDataChannelAdapter,
|
|
22268
22277
|
ld as BrowserMediaAdapter,
|
|
22269
22278
|
ud as BrowserPeerAdapter,
|
|
22270
|
-
|
|
22271
|
-
|
|
22272
|
-
|
|
22279
|
+
Jf as ChatService,
|
|
22280
|
+
zf as ConfigService,
|
|
22281
|
+
Gf as LiveKitVoiceClient,
|
|
22273
22282
|
za as SessionManager,
|
|
22274
22283
|
fs as VaniraAI,
|
|
22275
22284
|
fs as VaniraClient,
|
|
22276
22285
|
fs as WebRTCClient,
|
|
22277
|
-
|
|
22278
|
-
|
|
22279
|
-
|
|
22280
|
-
|
|
22286
|
+
xd as browserCapabilities,
|
|
22287
|
+
Ld as browserRuntime,
|
|
22288
|
+
Wf as createBrowserAI,
|
|
22289
|
+
Nd as createBrowserClient
|
|
22281
22290
|
};
|