liveroom-client-element 0.0.31 → 0.0.33
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/liveroom-client-element.cjs +7 -7
- package/dist/liveroom-client-element.js +589 -589
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Mo = Object.defineProperty;
|
|
2
2
|
var Uo = (i, e, t) => e in i ? Mo(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var L = (i, e, t) => (Uo(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
function Yi() {
|
|
5
5
|
}
|
|
6
6
|
function Vr(i) {
|
|
@@ -12,7 +12,7 @@ function Vs() {
|
|
|
12
12
|
function rn(i) {
|
|
13
13
|
i.forEach(Vr);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function $r(i) {
|
|
16
16
|
return typeof i == "function";
|
|
17
17
|
}
|
|
18
18
|
function Fo(i, e) {
|
|
@@ -21,7 +21,7 @@ function Fo(i, e) {
|
|
|
21
21
|
function Bo(i) {
|
|
22
22
|
return Object.keys(i).length === 0;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Oe(i, e) {
|
|
25
25
|
i.appendChild(e);
|
|
26
26
|
}
|
|
27
27
|
function Jo(i, e, t) {
|
|
@@ -42,13 +42,13 @@ function jo(i) {
|
|
|
42
42
|
) : i.ownerDocument;
|
|
43
43
|
}
|
|
44
44
|
function Vo(i, e) {
|
|
45
|
-
return
|
|
45
|
+
return Oe(
|
|
46
46
|
/** @type {Document} */
|
|
47
47
|
i.head || i,
|
|
48
48
|
e
|
|
49
49
|
), e.sheet;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Ln(i, e, t) {
|
|
52
52
|
i.insertBefore(e, t || null);
|
|
53
53
|
}
|
|
54
54
|
function an(i) {
|
|
@@ -57,22 +57,22 @@ function an(i) {
|
|
|
57
57
|
function Xe(i) {
|
|
58
58
|
return document.createElement(i);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function $s(i) {
|
|
61
61
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function qr(i) {
|
|
64
64
|
return document.createTextNode(i);
|
|
65
65
|
}
|
|
66
66
|
function cn() {
|
|
67
|
-
return
|
|
67
|
+
return qr(" ");
|
|
68
68
|
}
|
|
69
69
|
function z(i, e, t) {
|
|
70
70
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function $o(i) {
|
|
73
73
|
return Array.from(i.childNodes);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function qo(i, e) {
|
|
76
76
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
77
77
|
e);
|
|
78
78
|
}
|
|
@@ -105,7 +105,7 @@ function Go(i) {
|
|
|
105
105
|
}
|
|
106
106
|
const mi = [], ts = [];
|
|
107
107
|
let bi = [];
|
|
108
|
-
const
|
|
108
|
+
const qs = [], zo = /* @__PURE__ */ Promise.resolve();
|
|
109
109
|
let is = !1;
|
|
110
110
|
function Ko() {
|
|
111
111
|
is || (is = !0, zo.then(vi));
|
|
@@ -136,8 +136,8 @@ function vi() {
|
|
|
136
136
|
}
|
|
137
137
|
bi.length = 0;
|
|
138
138
|
} while (mi.length);
|
|
139
|
-
for (;
|
|
140
|
-
|
|
139
|
+
for (; qs.length; )
|
|
140
|
+
qs.pop()();
|
|
141
141
|
is = !1, Vn.clear(), ji(i);
|
|
142
142
|
}
|
|
143
143
|
function Yo(i) {
|
|
@@ -168,21 +168,21 @@ function ec(i, e, t, n, s, r, a, o, c, u, d, h) {
|
|
|
168
168
|
T[i[b].key] = b;
|
|
169
169
|
const w = [], I = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), Q = [];
|
|
170
170
|
for (b = m; b--; ) {
|
|
171
|
-
const
|
|
172
|
-
let
|
|
173
|
-
|
|
171
|
+
const q = h(s, r, b), K = t(q);
|
|
172
|
+
let x = a.get(K);
|
|
173
|
+
x ? n && Q.push(() => x.p(q, e)) : (x = u(K, q), x.c()), I.set(K, w[b] = x), K in T && D.set(K, Math.abs(b - T[K]));
|
|
174
174
|
}
|
|
175
175
|
const j = /* @__PURE__ */ new Set(), de = /* @__PURE__ */ new Set();
|
|
176
|
-
function ce(
|
|
177
|
-
Wr(
|
|
176
|
+
function ce(q) {
|
|
177
|
+
Wr(q, 1), q.m(o, d), a.set(q.key, q), d = q.first, m--;
|
|
178
178
|
}
|
|
179
179
|
for (; f && m; ) {
|
|
180
|
-
const
|
|
181
|
-
|
|
180
|
+
const q = w[m - 1], K = i[f - 1], x = q.key, F = K.key;
|
|
181
|
+
q === K ? (d = q.first, f--, m--) : I.has(F) ? !a.has(x) || j.has(x) ? ce(q) : de.has(F) ? f-- : D.get(x) > D.get(F) ? (de.add(x), ce(q)) : (j.add(F), f--) : (c(K, a), f--);
|
|
182
182
|
}
|
|
183
183
|
for (; f--; ) {
|
|
184
|
-
const
|
|
185
|
-
I.has(
|
|
184
|
+
const q = i[f];
|
|
185
|
+
I.has(q.key) || c(q, a);
|
|
186
186
|
}
|
|
187
187
|
for (; m; )
|
|
188
188
|
ce(w[m - 1]);
|
|
@@ -191,7 +191,7 @@ function ec(i, e, t, n, s, r, a, o, c, u, d, h) {
|
|
|
191
191
|
function tc(i, e, t) {
|
|
192
192
|
const { fragment: n, after_update: s } = i.$$;
|
|
193
193
|
n && n.m(e, t), ns(() => {
|
|
194
|
-
const r = i.$$.on_mount.map(Vr).filter(
|
|
194
|
+
const r = i.$$.on_mount.map(Vr).filter($r);
|
|
195
195
|
i.$$.on_destroy ? i.$$.on_destroy.push(...r) : rn(r), i.$$.on_mount = [];
|
|
196
196
|
}), s.forEach(ns);
|
|
197
197
|
}
|
|
@@ -233,7 +233,7 @@ function sc(i, e, t, n, s, r, a = null, o = [-1]) {
|
|
|
233
233
|
return u.ctx && s(u.ctx[h], u.ctx[h] = b) && (!u.skip_bound && u.bound[h] && u.bound[h](b), d && nc(i, h)), f;
|
|
234
234
|
}) : [], u.update(), d = !0, rn(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
235
235
|
if (e.hydrate) {
|
|
236
|
-
const h =
|
|
236
|
+
const h = $o(e.target);
|
|
237
237
|
u.fragment && u.fragment.l(h), h.forEach(an);
|
|
238
238
|
} else
|
|
239
239
|
u.fragment && u.fragment.c();
|
|
@@ -246,23 +246,23 @@ typeof HTMLElement == "function" && (Gr = class extends HTMLElement {
|
|
|
246
246
|
constructor(e, t, n) {
|
|
247
247
|
super();
|
|
248
248
|
/** The Svelte component constructor */
|
|
249
|
-
|
|
249
|
+
L(this, "$$ctor");
|
|
250
250
|
/** Slots */
|
|
251
|
-
|
|
251
|
+
L(this, "$$s");
|
|
252
252
|
/** The Svelte component instance */
|
|
253
|
-
|
|
253
|
+
L(this, "$$c");
|
|
254
254
|
/** Whether or not the custom element is connected */
|
|
255
|
-
|
|
255
|
+
L(this, "$$cn", !1);
|
|
256
256
|
/** Component props data */
|
|
257
|
-
|
|
257
|
+
L(this, "$$d", {});
|
|
258
258
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
259
|
-
|
|
259
|
+
L(this, "$$r", !1);
|
|
260
260
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
261
|
-
|
|
261
|
+
L(this, "$$p_d", {});
|
|
262
262
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
263
|
-
|
|
263
|
+
L(this, "$$l", {});
|
|
264
264
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
265
|
-
|
|
265
|
+
L(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
266
266
|
this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
|
|
267
267
|
}
|
|
268
268
|
addEventListener(e, t, n) {
|
|
@@ -292,7 +292,7 @@ typeof HTMLElement == "function" && (Gr = class extends HTMLElement {
|
|
|
292
292
|
* @param {HTMLElement} [anchor]
|
|
293
293
|
*/
|
|
294
294
|
m: function(u, d) {
|
|
295
|
-
|
|
295
|
+
Ln(u, a, d);
|
|
296
296
|
},
|
|
297
297
|
d: function(u) {
|
|
298
298
|
u && an(a);
|
|
@@ -429,7 +429,7 @@ class ac {
|
|
|
429
429
|
*
|
|
430
430
|
* @type {any}
|
|
431
431
|
*/
|
|
432
|
-
|
|
432
|
+
L(this, "$$");
|
|
433
433
|
/**
|
|
434
434
|
* ### PRIVATE API
|
|
435
435
|
*
|
|
@@ -437,7 +437,7 @@ class ac {
|
|
|
437
437
|
*
|
|
438
438
|
* @type {any}
|
|
439
439
|
*/
|
|
440
|
-
|
|
440
|
+
L(this, "$$set");
|
|
441
441
|
}
|
|
442
442
|
/** @returns {void} */
|
|
443
443
|
$destroy() {
|
|
@@ -450,7 +450,7 @@ class ac {
|
|
|
450
450
|
* @returns {() => void}
|
|
451
451
|
*/
|
|
452
452
|
$on(e, t) {
|
|
453
|
-
if (
|
|
453
|
+
if (!$r(t))
|
|
454
454
|
return Yi;
|
|
455
455
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
456
456
|
return n.push(t), () => {
|
|
@@ -488,8 +488,8 @@ const { isArray: cc } = Array, uc = Object.keys, Qi = (i) => {
|
|
|
488
488
|
};
|
|
489
489
|
class Me {
|
|
490
490
|
constructor(e) {
|
|
491
|
-
|
|
492
|
-
|
|
491
|
+
L(this, "path");
|
|
492
|
+
L(this, "from");
|
|
493
493
|
this.path = e;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
@@ -506,7 +506,7 @@ function gc(i) {
|
|
|
506
506
|
function G(i) {
|
|
507
507
|
return vc(i) ? "" : "/" + i.map((e) => mc(String(e))).join("/");
|
|
508
508
|
}
|
|
509
|
-
const
|
|
509
|
+
const $ = (i) => typeof i == "string" ? gc(i) : i, vc = (i) => !i.length, yc = Object.prototype.hasOwnProperty;
|
|
510
510
|
function bc(i, e) {
|
|
511
511
|
return yc.call(i, e);
|
|
512
512
|
}
|
|
@@ -533,11 +533,11 @@ const { isArray: zr } = Array, ee = (i, e) => {
|
|
|
533
533
|
else
|
|
534
534
|
throw new Error("NOT_FOUND");
|
|
535
535
|
return { val: i, obj: n, key: s };
|
|
536
|
-
}, on = (i) => zr(i.obj) && typeof i.key == "number",
|
|
536
|
+
}, on = (i) => zr(i.obj) && typeof i.key == "number", Nn = (i) => typeof i.obj == "object" && typeof i.key == "string";
|
|
537
537
|
class _s extends Me {
|
|
538
538
|
constructor(t, n) {
|
|
539
539
|
super(t);
|
|
540
|
-
|
|
540
|
+
L(this, "value");
|
|
541
541
|
this.value = n;
|
|
542
542
|
}
|
|
543
543
|
op() {
|
|
@@ -581,7 +581,7 @@ class _s extends Me {
|
|
|
581
581
|
class Kr extends Me {
|
|
582
582
|
constructor(t, n) {
|
|
583
583
|
super(t);
|
|
584
|
-
|
|
584
|
+
L(this, "oldValue");
|
|
585
585
|
this.oldValue = n;
|
|
586
586
|
}
|
|
587
587
|
op() {
|
|
@@ -594,7 +594,7 @@ class Kr extends Me {
|
|
|
594
594
|
const n = ee(t, this.path);
|
|
595
595
|
if (n.val === void 0)
|
|
596
596
|
throw new Error("NOT_FOUND");
|
|
597
|
-
return
|
|
597
|
+
return Nn(n) ? delete n.obj[n.key] : on(n) ? n.val !== void 0 && n.obj.splice(n.key, 1) : t = null, { doc: t, old: n.val };
|
|
598
598
|
}
|
|
599
599
|
toJson(t) {
|
|
600
600
|
const n = {
|
|
@@ -615,8 +615,8 @@ class Kr extends Me {
|
|
|
615
615
|
class kc extends Me {
|
|
616
616
|
constructor(t, n, s) {
|
|
617
617
|
super(t);
|
|
618
|
-
|
|
619
|
-
|
|
618
|
+
L(this, "value");
|
|
619
|
+
L(this, "oldValue");
|
|
620
620
|
this.value = n, this.oldValue = s;
|
|
621
621
|
}
|
|
622
622
|
op() {
|
|
@@ -629,7 +629,7 @@ class kc extends Me {
|
|
|
629
629
|
const n = ee(t, this.path);
|
|
630
630
|
if (n.val === void 0)
|
|
631
631
|
throw new Error("NOT_FOUND");
|
|
632
|
-
return
|
|
632
|
+
return Nn(n) ? n.obj[n.key] = this.value : on(n) ? n.obj[n.key] = this.value : t = this.value, { doc: t, old: n.val };
|
|
633
633
|
}
|
|
634
634
|
toJson(t) {
|
|
635
635
|
const n = {
|
|
@@ -651,7 +651,7 @@ class kc extends Me {
|
|
|
651
651
|
class Tc extends Me {
|
|
652
652
|
constructor(t, n) {
|
|
653
653
|
super(t);
|
|
654
|
-
|
|
654
|
+
L(this, "from");
|
|
655
655
|
this.from = n;
|
|
656
656
|
}
|
|
657
657
|
op() {
|
|
@@ -661,7 +661,7 @@ class Tc extends Me {
|
|
|
661
661
|
return 4;
|
|
662
662
|
}
|
|
663
663
|
apply(t) {
|
|
664
|
-
const n = new Kr(
|
|
664
|
+
const n = new Kr($(this.from), void 0).apply(t);
|
|
665
665
|
return new _s(this.path, n.old).apply(n.doc);
|
|
666
666
|
}
|
|
667
667
|
toJson(t) {
|
|
@@ -681,7 +681,7 @@ class Tc extends Me {
|
|
|
681
681
|
class Sc extends Me {
|
|
682
682
|
constructor(t, n) {
|
|
683
683
|
super(t);
|
|
684
|
-
|
|
684
|
+
L(this, "from");
|
|
685
685
|
this.from = n;
|
|
686
686
|
}
|
|
687
687
|
op() {
|
|
@@ -746,8 +746,8 @@ const Pn = (i, e) => {
|
|
|
746
746
|
class Cc extends we {
|
|
747
747
|
constructor(t, n, s) {
|
|
748
748
|
super(t);
|
|
749
|
-
|
|
750
|
-
|
|
749
|
+
L(this, "value");
|
|
750
|
+
L(this, "not");
|
|
751
751
|
this.value = n, this.not = s;
|
|
752
752
|
}
|
|
753
753
|
op() {
|
|
@@ -809,7 +809,7 @@ class wc extends Me {
|
|
|
809
809
|
class Ec extends Me {
|
|
810
810
|
constructor(t, n) {
|
|
811
811
|
super(t);
|
|
812
|
-
|
|
812
|
+
L(this, "inc");
|
|
813
813
|
this.inc = n;
|
|
814
814
|
}
|
|
815
815
|
op() {
|
|
@@ -839,8 +839,8 @@ class Ec extends Me {
|
|
|
839
839
|
class Pc extends Me {
|
|
840
840
|
constructor(t, n, s) {
|
|
841
841
|
super(t);
|
|
842
|
-
|
|
843
|
-
|
|
842
|
+
L(this, "pos");
|
|
843
|
+
L(this, "str");
|
|
844
844
|
this.pos = n, this.str = s;
|
|
845
845
|
}
|
|
846
846
|
op() {
|
|
@@ -878,9 +878,9 @@ class Pc extends Me {
|
|
|
878
878
|
class Rc extends Me {
|
|
879
879
|
constructor(t, n, s, r) {
|
|
880
880
|
super(t);
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
881
|
+
L(this, "pos");
|
|
882
|
+
L(this, "str");
|
|
883
|
+
L(this, "len");
|
|
884
884
|
this.pos = n, this.str = s, this.len = r;
|
|
885
885
|
}
|
|
886
886
|
op() {
|
|
@@ -925,11 +925,11 @@ const { isArray: _c } = Array, ss = (i) => !!i && typeof i == "object" && typeof
|
|
|
925
925
|
const t = new RegExp(i, e ? "i" : void 0);
|
|
926
926
|
return (n) => t.test(n);
|
|
927
927
|
};
|
|
928
|
-
class
|
|
928
|
+
class xc extends Me {
|
|
929
929
|
constructor(t, n, s) {
|
|
930
930
|
super(t);
|
|
931
|
-
|
|
932
|
-
|
|
931
|
+
L(this, "pos");
|
|
932
|
+
L(this, "props");
|
|
933
933
|
this.pos = n, this.props = s;
|
|
934
934
|
}
|
|
935
935
|
op() {
|
|
@@ -943,7 +943,7 @@ class Ac extends Me {
|
|
|
943
943
|
if (n.val === void 0)
|
|
944
944
|
throw new Error("NOT_FOUND");
|
|
945
945
|
const s = this.split(n.val);
|
|
946
|
-
return
|
|
946
|
+
return Nn(n) ? n.obj[n.key] = s : on(n) ? (n.obj[n.key] = s[0], n.obj.splice(n.key + 1, 0, s[1])) : t = s, { doc: t, old: n.val };
|
|
947
947
|
}
|
|
948
948
|
split(t) {
|
|
949
949
|
if (typeof t == "string") {
|
|
@@ -1008,11 +1008,11 @@ class Ac extends Me {
|
|
|
1008
1008
|
t.encodeArrayHeader(this.props ? 4 : 3), t.writer.u8(10), t.encodeArray(this.path), t.encodeNumber(this.pos), this.props && t.encodeObject(this.props);
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
class
|
|
1011
|
+
class Ac extends Me {
|
|
1012
1012
|
constructor(t, n, s) {
|
|
1013
1013
|
super(t);
|
|
1014
|
-
|
|
1015
|
-
|
|
1014
|
+
L(this, "pos");
|
|
1015
|
+
L(this, "props");
|
|
1016
1016
|
this.pos = n, this.props = s;
|
|
1017
1017
|
}
|
|
1018
1018
|
op() {
|
|
@@ -1049,12 +1049,12 @@ class Oc extends Me {
|
|
|
1049
1049
|
t.encodeArrayHeader(this.props ? 4 : 3), t.writer.u8(11), t.encodeArray(this.path), t.encodeNumber(this.pos), this.props && t.encodeAny(this.props);
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
|
-
const { isArray:
|
|
1053
|
-
class
|
|
1052
|
+
const { isArray: Oc } = Array;
|
|
1053
|
+
class Lc extends Me {
|
|
1054
1054
|
constructor(t, n, s) {
|
|
1055
1055
|
super(t);
|
|
1056
|
-
|
|
1057
|
-
|
|
1056
|
+
L(this, "props");
|
|
1057
|
+
L(this, "deleteNull");
|
|
1058
1058
|
this.props = n, this.deleteNull = s;
|
|
1059
1059
|
}
|
|
1060
1060
|
op() {
|
|
@@ -1065,10 +1065,10 @@ class Nc extends Me {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
apply(t) {
|
|
1067
1067
|
const n = ee(t, this.path);
|
|
1068
|
-
return on(n) ? n.val !== void 0 && (n.obj[n.key] = this.extend(n.val)) :
|
|
1068
|
+
return on(n) ? n.val !== void 0 && (n.obj[n.key] = this.extend(n.val)) : Nn(n) ? n.obj[n.key] = this.extend(n.val) : t = this.extend(t), { doc: t };
|
|
1069
1069
|
}
|
|
1070
1070
|
extend(t) {
|
|
1071
|
-
if (
|
|
1071
|
+
if (Oc(t) || typeof t != "object" || !t)
|
|
1072
1072
|
return t;
|
|
1073
1073
|
for (const [n, s] of Object.entries(this.props)) {
|
|
1074
1074
|
if (n === "__proto__")
|
|
@@ -1098,7 +1098,7 @@ class Nc extends Me {
|
|
|
1098
1098
|
t.encodeArrayHeader(s ? 4 : 3), t.writer.u8(12), t.encodeArray(this.path), t.encodeObject(this.props), s && t.writer.u8(1);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
class
|
|
1101
|
+
class Nc extends we {
|
|
1102
1102
|
constructor(e) {
|
|
1103
1103
|
super(e);
|
|
1104
1104
|
}
|
|
@@ -1162,7 +1162,7 @@ const { isArray: Mc } = Array;
|
|
|
1162
1162
|
class Uc extends we {
|
|
1163
1163
|
constructor(t, n) {
|
|
1164
1164
|
super(t);
|
|
1165
|
-
|
|
1165
|
+
L(this, "type");
|
|
1166
1166
|
this.type = n;
|
|
1167
1167
|
}
|
|
1168
1168
|
op() {
|
|
@@ -1192,9 +1192,9 @@ class Uc extends we {
|
|
|
1192
1192
|
class Fc extends we {
|
|
1193
1193
|
constructor(t, n, s, r) {
|
|
1194
1194
|
super(t);
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1195
|
+
L(this, "pos");
|
|
1196
|
+
L(this, "str");
|
|
1197
|
+
L(this, "not");
|
|
1198
1198
|
this.pos = n, this.str = s, this.not = r;
|
|
1199
1199
|
}
|
|
1200
1200
|
op() {
|
|
@@ -1230,8 +1230,8 @@ class Fc extends we {
|
|
|
1230
1230
|
class Bc extends we {
|
|
1231
1231
|
constructor(t, n, s) {
|
|
1232
1232
|
super(t);
|
|
1233
|
-
|
|
1234
|
-
|
|
1233
|
+
L(this, "len");
|
|
1234
|
+
L(this, "not");
|
|
1235
1235
|
this.len = n, this.not = s;
|
|
1236
1236
|
}
|
|
1237
1237
|
op() {
|
|
@@ -1266,8 +1266,8 @@ class Bc extends we {
|
|
|
1266
1266
|
class Jc extends we {
|
|
1267
1267
|
constructor(t, n, s) {
|
|
1268
1268
|
super(t);
|
|
1269
|
-
|
|
1270
|
-
|
|
1269
|
+
L(this, "value");
|
|
1270
|
+
L(this, "ignore_case");
|
|
1271
1271
|
this.value = n, this.ignore_case = s;
|
|
1272
1272
|
}
|
|
1273
1273
|
op() {
|
|
@@ -1303,8 +1303,8 @@ class Jc extends we {
|
|
|
1303
1303
|
class jc extends we {
|
|
1304
1304
|
constructor(t, n, s) {
|
|
1305
1305
|
super(t);
|
|
1306
|
-
|
|
1307
|
-
|
|
1306
|
+
L(this, "value");
|
|
1307
|
+
L(this, "ignore_case");
|
|
1308
1308
|
this.value = n, this.ignore_case = s;
|
|
1309
1309
|
}
|
|
1310
1310
|
op() {
|
|
@@ -1340,8 +1340,8 @@ class jc extends we {
|
|
|
1340
1340
|
class Vc extends we {
|
|
1341
1341
|
constructor(t, n, s) {
|
|
1342
1342
|
super(t);
|
|
1343
|
-
|
|
1344
|
-
|
|
1343
|
+
L(this, "value");
|
|
1344
|
+
L(this, "ignore_case");
|
|
1345
1345
|
this.value = n, this.ignore_case = s;
|
|
1346
1346
|
}
|
|
1347
1347
|
op() {
|
|
@@ -1374,10 +1374,10 @@ class Vc extends we {
|
|
|
1374
1374
|
t.encodeArrayHeader(s ? 4 : 3), t.writer.u8(37), t.encodeArray(n ? this.path.slice(n.path.length) : this.path), t.encodeString(this.value), s && t.writer.u8(1);
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
|
-
class
|
|
1377
|
+
class $c extends we {
|
|
1378
1378
|
constructor(t, n) {
|
|
1379
1379
|
super(t);
|
|
1380
|
-
|
|
1380
|
+
L(this, "value");
|
|
1381
1381
|
this.value = n;
|
|
1382
1382
|
}
|
|
1383
1383
|
op() {
|
|
@@ -1407,10 +1407,10 @@ class qc extends we {
|
|
|
1407
1407
|
t.encodeArrayHeader(3), t.writer.u8(33), t.encodeArray(n ? this.path.slice(n.path.length) : this.path), t.encodeArray(this.value);
|
|
1408
1408
|
}
|
|
1409
1409
|
}
|
|
1410
|
-
class
|
|
1410
|
+
class qc extends we {
|
|
1411
1411
|
constructor(t, n) {
|
|
1412
1412
|
super(t);
|
|
1413
|
-
|
|
1413
|
+
L(this, "value");
|
|
1414
1414
|
this.value = n;
|
|
1415
1415
|
}
|
|
1416
1416
|
op() {
|
|
@@ -1440,7 +1440,7 @@ class $c extends we {
|
|
|
1440
1440
|
class Hc extends we {
|
|
1441
1441
|
constructor(t, n) {
|
|
1442
1442
|
super(t);
|
|
1443
|
-
|
|
1443
|
+
L(this, "value");
|
|
1444
1444
|
this.value = n;
|
|
1445
1445
|
}
|
|
1446
1446
|
op() {
|
|
@@ -1470,14 +1470,14 @@ class Hc extends we {
|
|
|
1470
1470
|
class Is extends we {
|
|
1471
1471
|
constructor(t, n) {
|
|
1472
1472
|
super(t);
|
|
1473
|
-
|
|
1473
|
+
L(this, "ops");
|
|
1474
1474
|
this.ops = n;
|
|
1475
1475
|
}
|
|
1476
1476
|
}
|
|
1477
1477
|
class Wc extends Is {
|
|
1478
1478
|
constructor(t, n) {
|
|
1479
1479
|
super(t, n);
|
|
1480
|
-
|
|
1480
|
+
L(this, "ops");
|
|
1481
1481
|
this.ops = n;
|
|
1482
1482
|
}
|
|
1483
1483
|
op() {
|
|
@@ -1518,7 +1518,7 @@ class Wc extends Is {
|
|
|
1518
1518
|
class Gc extends Is {
|
|
1519
1519
|
constructor(t, n) {
|
|
1520
1520
|
super(t, n);
|
|
1521
|
-
|
|
1521
|
+
L(this, "ops");
|
|
1522
1522
|
this.ops = n;
|
|
1523
1523
|
}
|
|
1524
1524
|
op() {
|
|
@@ -1558,7 +1558,7 @@ class Gc extends Is {
|
|
|
1558
1558
|
class zc extends Is {
|
|
1559
1559
|
constructor(t, n) {
|
|
1560
1560
|
super(t, n);
|
|
1561
|
-
|
|
1561
|
+
L(this, "ops");
|
|
1562
1562
|
this.ops = n;
|
|
1563
1563
|
}
|
|
1564
1564
|
op() {
|
|
@@ -1598,9 +1598,9 @@ class zc extends Is {
|
|
|
1598
1598
|
class Kc extends we {
|
|
1599
1599
|
constructor(t, n, s, r) {
|
|
1600
1600
|
super(t);
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1601
|
+
L(this, "value");
|
|
1602
|
+
L(this, "ignore_case");
|
|
1603
|
+
L(this, "matcher");
|
|
1604
1604
|
this.value = n, this.ignore_case = s, this.matcher = r(n, s);
|
|
1605
1605
|
}
|
|
1606
1606
|
op() {
|
|
@@ -1634,7 +1634,7 @@ const { isArray: Yc } = Array;
|
|
|
1634
1634
|
class Xc extends we {
|
|
1635
1635
|
constructor(t, n) {
|
|
1636
1636
|
super(t);
|
|
1637
|
-
|
|
1637
|
+
L(this, "value");
|
|
1638
1638
|
this.value = n;
|
|
1639
1639
|
}
|
|
1640
1640
|
op() {
|
|
@@ -1664,73 +1664,73 @@ class Xc extends we {
|
|
|
1664
1664
|
const Qc = (i, e) => {
|
|
1665
1665
|
switch (i.op) {
|
|
1666
1666
|
case "add":
|
|
1667
|
-
return new _s(
|
|
1667
|
+
return new _s($(i.path), i.value);
|
|
1668
1668
|
case "remove":
|
|
1669
|
-
return new Kr(
|
|
1669
|
+
return new Kr($(i.path), i.oldValue);
|
|
1670
1670
|
case "replace":
|
|
1671
|
-
return new kc(
|
|
1671
|
+
return new kc($(i.path), i.value, i.oldValue);
|
|
1672
1672
|
case "move":
|
|
1673
|
-
return new Tc(
|
|
1673
|
+
return new Tc($(i.path), $(i.from));
|
|
1674
1674
|
case "copy":
|
|
1675
|
-
return new Sc(
|
|
1675
|
+
return new Sc($(i.path), $(i.from));
|
|
1676
1676
|
case "flip":
|
|
1677
|
-
return new wc(
|
|
1677
|
+
return new wc($(i.path));
|
|
1678
1678
|
case "inc":
|
|
1679
|
-
return new Ec(
|
|
1679
|
+
return new Ec($(i.path), i.inc);
|
|
1680
1680
|
case "str_ins":
|
|
1681
|
-
return new Pc(
|
|
1681
|
+
return new Pc($(i.path), i.pos, i.str);
|
|
1682
1682
|
case "str_del":
|
|
1683
|
-
return new Rc(
|
|
1683
|
+
return new Rc($(i.path), i.pos, i.str, i.len);
|
|
1684
1684
|
case "split":
|
|
1685
|
-
return new
|
|
1685
|
+
return new xc($(i.path), i.pos, i.props || null);
|
|
1686
1686
|
case "merge":
|
|
1687
|
-
return new
|
|
1687
|
+
return new Ac($(i.path), i.pos, i.props || null);
|
|
1688
1688
|
case "extend":
|
|
1689
|
-
return new
|
|
1689
|
+
return new Lc($(i.path), i.props, !!i.deleteNull);
|
|
1690
1690
|
default:
|
|
1691
1691
|
return mn(i, e);
|
|
1692
1692
|
}
|
|
1693
1693
|
}, mn = (i, e) => {
|
|
1694
1694
|
switch (i.op) {
|
|
1695
1695
|
case "test":
|
|
1696
|
-
return new Cc(
|
|
1696
|
+
return new Cc($(i.path), i.value, !!i.not);
|
|
1697
1697
|
case "defined":
|
|
1698
|
-
return new
|
|
1698
|
+
return new Nc($(i.path));
|
|
1699
1699
|
case "undefined":
|
|
1700
|
-
return new Dc(
|
|
1700
|
+
return new Dc($(i.path));
|
|
1701
1701
|
case "type":
|
|
1702
|
-
return new Xc(
|
|
1702
|
+
return new Xc($(i.path), i.value);
|
|
1703
1703
|
case "test_type":
|
|
1704
|
-
return new Uc(
|
|
1704
|
+
return new Uc($(i.path), i.type);
|
|
1705
1705
|
case "test_string":
|
|
1706
|
-
return new Fc(
|
|
1706
|
+
return new Fc($(i.path), i.pos, i.str, !!i.not);
|
|
1707
1707
|
case "test_string_len":
|
|
1708
|
-
return new Bc(
|
|
1708
|
+
return new Bc($(i.path), i.len, !!i.not);
|
|
1709
1709
|
case "contains":
|
|
1710
|
-
return new Jc(
|
|
1710
|
+
return new Jc($(i.path), i.value, !!i.ignore_case);
|
|
1711
1711
|
case "ends":
|
|
1712
|
-
return new jc(
|
|
1712
|
+
return new jc($(i.path), i.value, !!i.ignore_case);
|
|
1713
1713
|
case "starts":
|
|
1714
|
-
return new Vc(
|
|
1714
|
+
return new Vc($(i.path), i.value, !!i.ignore_case);
|
|
1715
1715
|
case "matches":
|
|
1716
|
-
return new Kc(
|
|
1716
|
+
return new Kc($(i.path), i.value, !!i.ignore_case, e.createMatcher || Ic);
|
|
1717
1717
|
case "in":
|
|
1718
|
-
return new
|
|
1718
|
+
return new $c($(i.path), i.value);
|
|
1719
1719
|
case "less":
|
|
1720
|
-
return new $
|
|
1720
|
+
return new qc($(i.path), i.value);
|
|
1721
1721
|
case "more":
|
|
1722
|
-
return new Hc(
|
|
1722
|
+
return new Hc($(i.path), i.value);
|
|
1723
1723
|
case "and": {
|
|
1724
|
-
const t =
|
|
1725
|
-
return new Wc(t, i.apply.map((n) => mn({ ...n, path: [...t,
|
|
1724
|
+
const t = $(i.path);
|
|
1725
|
+
return new Wc(t, i.apply.map((n) => mn({ ...n, path: [...t, ...$(n.path)] }, e)));
|
|
1726
1726
|
}
|
|
1727
1727
|
case "or": {
|
|
1728
|
-
const t =
|
|
1729
|
-
return new Gc(t, i.apply.map((n) => mn({ ...n, path: [...t,
|
|
1728
|
+
const t = $(i.path);
|
|
1729
|
+
return new Gc(t, i.apply.map((n) => mn({ ...n, path: [...t, ...$(n.path)] }, e)));
|
|
1730
1730
|
}
|
|
1731
1731
|
case "not": {
|
|
1732
|
-
const t =
|
|
1733
|
-
return new zc(t, i.apply.map((n) => mn({ ...n, path: [...t,
|
|
1732
|
+
const t = $(i.path);
|
|
1733
|
+
return new zc(t, i.apply.map((n) => mn({ ...n, path: [...t, ...$(n.path)] }, e)));
|
|
1734
1734
|
}
|
|
1735
1735
|
default:
|
|
1736
1736
|
throw new Error("OP_UNKNOWN");
|
|
@@ -1747,7 +1747,7 @@ function Zc(i, e, t) {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
var Vi = (i) => typeof i == "function" ? i : function() {
|
|
1749
1749
|
return i;
|
|
1750
|
-
}, eu = typeof self < "u" ? self : null, Fi = typeof window < "u" ? window : null,
|
|
1750
|
+
}, eu = typeof self < "u" ? self : null, Fi = typeof window < "u" ? window : null, $i = eu || Fi || $i, tu = "2.0.0", Qe = { connecting: 0, open: 1, closing: 2, closed: 3 }, iu = 1e4, nu = 1e3, Ae = {
|
|
1751
1751
|
closed: "closed",
|
|
1752
1752
|
errored: "errored",
|
|
1753
1753
|
joined: "joined",
|
|
@@ -1824,20 +1824,20 @@ var Vi = (i) => typeof i == "function" ? i : function() {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
}, ru = class {
|
|
1826
1826
|
constructor(i, e, t) {
|
|
1827
|
-
this.state =
|
|
1827
|
+
this.state = Ae.closed, this.topic = i, this.params = Vi(e || {}), this.socket = t, this.bindings = [], this.bindingRef = 0, this.timeout = this.socket.timeout, this.joinedOnce = !1, this.joinPush = new un(this, bt.join, this.params, this.timeout), this.pushBuffer = [], this.stateChangeRefs = [], this.rejoinTimer = new Yr(() => {
|
|
1828
1828
|
this.socket.isConnected() && this.rejoin();
|
|
1829
1829
|
}, this.socket.rejoinAfterMs), this.stateChangeRefs.push(this.socket.onError(() => this.rejoinTimer.reset())), this.stateChangeRefs.push(this.socket.onOpen(() => {
|
|
1830
1830
|
this.rejoinTimer.reset(), this.isErrored() && this.rejoin();
|
|
1831
1831
|
})), this.joinPush.receive("ok", () => {
|
|
1832
|
-
this.state =
|
|
1832
|
+
this.state = Ae.joined, this.rejoinTimer.reset(), this.pushBuffer.forEach((n) => n.send()), this.pushBuffer = [];
|
|
1833
1833
|
}), this.joinPush.receive("error", () => {
|
|
1834
|
-
this.state =
|
|
1834
|
+
this.state = Ae.errored, this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
|
|
1835
1835
|
}), this.onClose(() => {
|
|
1836
|
-
this.rejoinTimer.reset(), this.socket.hasLogger() && this.socket.log("channel", `close ${this.topic} ${this.joinRef()}`), this.state =
|
|
1836
|
+
this.rejoinTimer.reset(), this.socket.hasLogger() && this.socket.log("channel", `close ${this.topic} ${this.joinRef()}`), this.state = Ae.closed, this.socket.remove(this);
|
|
1837
1837
|
}), this.onError((n) => {
|
|
1838
|
-
this.socket.hasLogger() && this.socket.log("channel", `error ${this.topic}`, n), this.isJoining() && this.joinPush.reset(), this.state =
|
|
1838
|
+
this.socket.hasLogger() && this.socket.log("channel", `error ${this.topic}`, n), this.isJoining() && this.joinPush.reset(), this.state = Ae.errored, this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
|
|
1839
1839
|
}), this.joinPush.receive("timeout", () => {
|
|
1840
|
-
this.socket.hasLogger() && this.socket.log("channel", `timeout ${this.topic} (${this.joinRef()})`, this.joinPush.timeout), new un(this, bt.leave, Vi({}), this.timeout).send(), this.state =
|
|
1840
|
+
this.socket.hasLogger() && this.socket.log("channel", `timeout ${this.topic} (${this.joinRef()})`, this.joinPush.timeout), new un(this, bt.leave, Vi({}), this.timeout).send(), this.state = Ae.errored, this.joinPush.reset(), this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
|
|
1841
1841
|
}), this.on(bt.reply, (n, s) => {
|
|
1842
1842
|
this.trigger(this.replyEventName(s), n);
|
|
1843
1843
|
});
|
|
@@ -1872,7 +1872,7 @@ var Vi = (i) => typeof i == "function" ? i : function() {
|
|
|
1872
1872
|
return this.canPush() ? n.send() : (n.startTimeout(), this.pushBuffer.push(n)), n;
|
|
1873
1873
|
}
|
|
1874
1874
|
leave(i = this.timeout) {
|
|
1875
|
-
this.rejoinTimer.reset(), this.joinPush.cancelTimeout(), this.state =
|
|
1875
|
+
this.rejoinTimer.reset(), this.joinPush.cancelTimeout(), this.state = Ae.leaving;
|
|
1876
1876
|
let e = () => {
|
|
1877
1877
|
this.socket.hasLogger() && this.socket.log("channel", `leave ${this.topic}`), this.trigger(bt.close, "leave");
|
|
1878
1878
|
}, t = new un(this, bt.leave, Vi({}), i);
|
|
@@ -1888,7 +1888,7 @@ var Vi = (i) => typeof i == "function" ? i : function() {
|
|
|
1888
1888
|
return this.joinPush.ref;
|
|
1889
1889
|
}
|
|
1890
1890
|
rejoin(i = this.timeout) {
|
|
1891
|
-
this.isLeaving() || (this.socket.leaveOpenTopic(this.topic), this.state =
|
|
1891
|
+
this.isLeaving() || (this.socket.leaveOpenTopic(this.topic), this.state = Ae.joining, this.joinPush.resend(i));
|
|
1892
1892
|
}
|
|
1893
1893
|
trigger(i, e, t, n) {
|
|
1894
1894
|
let s = this.onMessage(i, e, t, n);
|
|
@@ -1902,27 +1902,27 @@ var Vi = (i) => typeof i == "function" ? i : function() {
|
|
|
1902
1902
|
return `chan_reply_${i}`;
|
|
1903
1903
|
}
|
|
1904
1904
|
isClosed() {
|
|
1905
|
-
return this.state ===
|
|
1905
|
+
return this.state === Ae.closed;
|
|
1906
1906
|
}
|
|
1907
1907
|
isErrored() {
|
|
1908
|
-
return this.state ===
|
|
1908
|
+
return this.state === Ae.errored;
|
|
1909
1909
|
}
|
|
1910
1910
|
isJoined() {
|
|
1911
|
-
return this.state ===
|
|
1911
|
+
return this.state === Ae.joined;
|
|
1912
1912
|
}
|
|
1913
1913
|
isJoining() {
|
|
1914
|
-
return this.state ===
|
|
1914
|
+
return this.state === Ae.joining;
|
|
1915
1915
|
}
|
|
1916
1916
|
isLeaving() {
|
|
1917
|
-
return this.state ===
|
|
1917
|
+
return this.state === Ae.leaving;
|
|
1918
1918
|
}
|
|
1919
1919
|
}, Rn = class {
|
|
1920
1920
|
static request(i, e, t, n, s, r, a) {
|
|
1921
|
-
if (
|
|
1922
|
-
let o = new
|
|
1921
|
+
if ($i.XDomainRequest) {
|
|
1922
|
+
let o = new $i.XDomainRequest();
|
|
1923
1923
|
return this.xdomainRequest(o, i, e, n, s, r, a);
|
|
1924
1924
|
} else {
|
|
1925
|
-
let o = new
|
|
1925
|
+
let o = new $i.XMLHttpRequest();
|
|
1926
1926
|
return this.xhrRequest(o, i, e, t, n, s, r, a);
|
|
1927
1927
|
}
|
|
1928
1928
|
}
|
|
@@ -1966,7 +1966,7 @@ var Vi = (i) => typeof i == "function" ? i : function() {
|
|
|
1966
1966
|
let t = i.match(/\?/) ? "&" : "?";
|
|
1967
1967
|
return `${i}${t}${this.serialize(e)}`;
|
|
1968
1968
|
}
|
|
1969
|
-
},
|
|
1969
|
+
}, $n = class {
|
|
1970
1970
|
constructor(i) {
|
|
1971
1971
|
this.endPoint = null, this.token = null, this.skipHeartbeat = !0, this.reqs = /* @__PURE__ */ new Set(), this.onopen = function() {
|
|
1972
1972
|
}, this.onerror = function() {
|
|
@@ -2109,7 +2109,7 @@ var Vi = (i) => typeof i == "function" ? i : function() {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
}, au = class {
|
|
2111
2111
|
constructor(i, e = {}) {
|
|
2112
|
-
this.stateChangeCallbacks = { open: [], close: [], error: [], message: [] }, this.channels = [], this.sendBuffer = [], this.ref = 0, this.timeout = e.timeout || iu, this.transport = e.transport ||
|
|
2112
|
+
this.stateChangeCallbacks = { open: [], close: [], error: [], message: [] }, this.channels = [], this.sendBuffer = [], this.ref = 0, this.timeout = e.timeout || iu, this.transport = e.transport || $i.WebSocket || $n, this.establishedConnections = 0, this.defaultEncoder = dn.encode.bind(dn), this.defaultDecoder = dn.decode.bind(dn), this.closeWasClean = !1, this.binaryType = e.binaryType || "arraybuffer", this.connectClock = 1, this.transport !== $n ? (this.encode = e.encode || this.defaultEncoder, this.decode = e.decode || this.defaultDecoder) : (this.encode = this.defaultEncoder, this.decode = this.defaultDecoder);
|
|
2113
2113
|
let t = null;
|
|
2114
2114
|
Fi && Fi.addEventListener && (Fi.addEventListener("pagehide", (n) => {
|
|
2115
2115
|
this.conn && (this.disconnect(), t = this.connectClock);
|
|
@@ -2120,7 +2120,7 @@ var Vi = (i) => typeof i == "function" ? i : function() {
|
|
|
2120
2120
|
}, this.reconnectAfterMs);
|
|
2121
2121
|
}
|
|
2122
2122
|
getLongPollTransport() {
|
|
2123
|
-
return
|
|
2123
|
+
return $n;
|
|
2124
2124
|
}
|
|
2125
2125
|
replaceTransport(i) {
|
|
2126
2126
|
this.connectClock++, this.closeWasClean = !0, this.reconnectTimer.reset(), this.sendBuffer = [], this.conn && (this.conn.close(), this.conn = null), this.transport = i;
|
|
@@ -2422,7 +2422,7 @@ var Gs;
|
|
|
2422
2422
|
} : function(v, y) {
|
|
2423
2423
|
return v[y];
|
|
2424
2424
|
}
|
|
2425
|
-
}, d = Object.getPrototypeOf(Function), h = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true", f = !h && typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map :
|
|
2425
|
+
}, d = Object.getPrototypeOf(Function), h = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true", f = !h && typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Lo(), m = !h && typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : No(), b = !h && typeof WeakMap == "function" ? WeakMap : Do(), T = new b();
|
|
2426
2426
|
function w(v, y, S, E) {
|
|
2427
2427
|
if (ie(S)) {
|
|
2428
2428
|
if (!Fs(v))
|
|
@@ -2442,12 +2442,12 @@ var Gs;
|
|
|
2442
2442
|
}
|
|
2443
2443
|
e("decorate", w);
|
|
2444
2444
|
function I(v, y) {
|
|
2445
|
-
function S(E,
|
|
2445
|
+
function S(E, N) {
|
|
2446
2446
|
if (!oe(E))
|
|
2447
2447
|
throw new TypeError();
|
|
2448
|
-
if (!ie(
|
|
2448
|
+
if (!ie(N) && !_o(N))
|
|
2449
2449
|
throw new TypeError();
|
|
2450
|
-
te(v, y, E,
|
|
2450
|
+
te(v, y, E, N);
|
|
2451
2451
|
}
|
|
2452
2452
|
return S;
|
|
2453
2453
|
}
|
|
@@ -2461,13 +2461,13 @@ var Gs;
|
|
|
2461
2461
|
function Q(v, y, S) {
|
|
2462
2462
|
if (!oe(y))
|
|
2463
2463
|
throw new TypeError();
|
|
2464
|
-
return ie(S) || (S = yt(S)),
|
|
2464
|
+
return ie(S) || (S = yt(S)), xi(v, y, S);
|
|
2465
2465
|
}
|
|
2466
2466
|
e("hasMetadata", Q);
|
|
2467
2467
|
function j(v, y, S) {
|
|
2468
2468
|
if (!oe(y))
|
|
2469
2469
|
throw new TypeError();
|
|
2470
|
-
return ie(S) || (S = yt(S)),
|
|
2470
|
+
return ie(S) || (S = yt(S)), Ai(v, y, S);
|
|
2471
2471
|
}
|
|
2472
2472
|
e("hasOwnMetadata", j);
|
|
2473
2473
|
function de(v, y, S) {
|
|
@@ -2482,19 +2482,19 @@ var Gs;
|
|
|
2482
2482
|
return ie(S) || (S = yt(S)), ae(v, y, S);
|
|
2483
2483
|
}
|
|
2484
2484
|
e("getOwnMetadata", ce);
|
|
2485
|
-
function
|
|
2485
|
+
function q(v, y) {
|
|
2486
2486
|
if (!oe(v))
|
|
2487
2487
|
throw new TypeError();
|
|
2488
2488
|
return ie(y) || (y = yt(y)), pe(v, y);
|
|
2489
2489
|
}
|
|
2490
|
-
e("getMetadataKeys",
|
|
2490
|
+
e("getMetadataKeys", q);
|
|
2491
2491
|
function K(v, y) {
|
|
2492
2492
|
if (!oe(v))
|
|
2493
2493
|
throw new TypeError();
|
|
2494
2494
|
return ie(y) || (y = yt(y)), Ee(v, y);
|
|
2495
2495
|
}
|
|
2496
2496
|
e("getOwnMetadataKeys", K);
|
|
2497
|
-
function
|
|
2497
|
+
function x(v, y, S) {
|
|
2498
2498
|
if (!oe(y))
|
|
2499
2499
|
throw new TypeError();
|
|
2500
2500
|
ie(S) || (S = yt(S));
|
|
@@ -2508,24 +2508,24 @@ var Gs;
|
|
|
2508
2508
|
return !1;
|
|
2509
2509
|
if (E.size > 0)
|
|
2510
2510
|
return !0;
|
|
2511
|
-
var
|
|
2512
|
-
return
|
|
2511
|
+
var N = T.get(y);
|
|
2512
|
+
return N.delete(S), N.size > 0 || T.delete(y), !0;
|
|
2513
2513
|
}
|
|
2514
|
-
e("deleteMetadata",
|
|
2514
|
+
e("deleteMetadata", x);
|
|
2515
2515
|
function F(v, y) {
|
|
2516
2516
|
for (var S = v.length - 1; S >= 0; --S) {
|
|
2517
|
-
var E = v[S],
|
|
2518
|
-
if (!ie(
|
|
2519
|
-
if (!Bs(
|
|
2517
|
+
var E = v[S], N = E(y);
|
|
2518
|
+
if (!ie(N) && !vt(N)) {
|
|
2519
|
+
if (!Bs(N))
|
|
2520
2520
|
throw new TypeError();
|
|
2521
|
-
y =
|
|
2521
|
+
y = N;
|
|
2522
2522
|
}
|
|
2523
2523
|
}
|
|
2524
2524
|
return y;
|
|
2525
2525
|
}
|
|
2526
2526
|
function fe(v, y, S, E) {
|
|
2527
|
-
for (var
|
|
2528
|
-
var le = v[
|
|
2527
|
+
for (var N = v.length - 1; N >= 0; --N) {
|
|
2528
|
+
var le = v[N], B = le(y, S, E);
|
|
2529
2529
|
if (!ie(B) && !vt(B)) {
|
|
2530
2530
|
if (!oe(B))
|
|
2531
2531
|
throw new TypeError();
|
|
@@ -2541,22 +2541,22 @@ var Gs;
|
|
|
2541
2541
|
return;
|
|
2542
2542
|
E = new f(), T.set(v, E);
|
|
2543
2543
|
}
|
|
2544
|
-
var
|
|
2545
|
-
if (ie(
|
|
2544
|
+
var N = E.get(y);
|
|
2545
|
+
if (ie(N)) {
|
|
2546
2546
|
if (!S)
|
|
2547
2547
|
return;
|
|
2548
|
-
|
|
2548
|
+
N = new f(), E.set(y, N);
|
|
2549
2549
|
}
|
|
2550
|
-
return
|
|
2550
|
+
return N;
|
|
2551
2551
|
}
|
|
2552
|
-
function
|
|
2553
|
-
var E =
|
|
2552
|
+
function xi(v, y, S) {
|
|
2553
|
+
var E = Ai(v, y, S);
|
|
2554
2554
|
if (E)
|
|
2555
2555
|
return !0;
|
|
2556
|
-
var
|
|
2557
|
-
return vt(
|
|
2556
|
+
var N = Jn(y);
|
|
2557
|
+
return vt(N) ? !1 : xi(v, N, S);
|
|
2558
2558
|
}
|
|
2559
|
-
function
|
|
2559
|
+
function Ai(v, y, S) {
|
|
2560
2560
|
var E = Ue(
|
|
2561
2561
|
y,
|
|
2562
2562
|
S,
|
|
@@ -2566,12 +2566,12 @@ var Gs;
|
|
|
2566
2566
|
return ie(E) ? !1 : Po(E.has(v));
|
|
2567
2567
|
}
|
|
2568
2568
|
function M(v, y, S) {
|
|
2569
|
-
var E =
|
|
2569
|
+
var E = Ai(v, y, S);
|
|
2570
2570
|
if (E)
|
|
2571
2571
|
return ae(v, y, S);
|
|
2572
|
-
var
|
|
2573
|
-
if (!vt(
|
|
2574
|
-
return M(v,
|
|
2572
|
+
var N = Jn(y);
|
|
2573
|
+
if (!vt(N))
|
|
2574
|
+
return M(v, N, S);
|
|
2575
2575
|
}
|
|
2576
2576
|
function ae(v, y, S) {
|
|
2577
2577
|
var E = Ue(
|
|
@@ -2584,28 +2584,28 @@ var Gs;
|
|
|
2584
2584
|
return E.get(v);
|
|
2585
2585
|
}
|
|
2586
2586
|
function te(v, y, S, E) {
|
|
2587
|
-
var
|
|
2587
|
+
var N = Ue(
|
|
2588
2588
|
S,
|
|
2589
2589
|
E,
|
|
2590
2590
|
/*Create*/
|
|
2591
2591
|
!0
|
|
2592
2592
|
);
|
|
2593
|
-
|
|
2593
|
+
N.set(v, y);
|
|
2594
2594
|
}
|
|
2595
2595
|
function pe(v, y) {
|
|
2596
2596
|
var S = Ee(v, y), E = Jn(v);
|
|
2597
2597
|
if (E === null)
|
|
2598
2598
|
return S;
|
|
2599
|
-
var
|
|
2600
|
-
if (
|
|
2599
|
+
var N = pe(E, y);
|
|
2600
|
+
if (N.length <= 0)
|
|
2601
2601
|
return S;
|
|
2602
2602
|
if (S.length <= 0)
|
|
2603
|
-
return
|
|
2603
|
+
return N;
|
|
2604
2604
|
for (var le = new m(), B = [], J = 0, U = S; J < U.length; J++) {
|
|
2605
2605
|
var H = U[J], W = le.has(H);
|
|
2606
2606
|
W || (le.add(H), B.push(H));
|
|
2607
2607
|
}
|
|
2608
|
-
for (var zt = 0, js =
|
|
2608
|
+
for (var zt = 0, js = N; zt < js.length; zt++) {
|
|
2609
2609
|
var H = js[zt], W = le.has(H);
|
|
2610
2610
|
W || (le.add(H), B.push(H));
|
|
2611
2611
|
}
|
|
@@ -2620,16 +2620,16 @@ var Gs;
|
|
|
2620
2620
|
);
|
|
2621
2621
|
if (ie(E))
|
|
2622
2622
|
return S;
|
|
2623
|
-
for (var
|
|
2624
|
-
var J =
|
|
2623
|
+
for (var N = E.keys(), le = Io(N), B = 0; ; ) {
|
|
2624
|
+
var J = Ao(le);
|
|
2625
2625
|
if (!J)
|
|
2626
2626
|
return S.length = B, S;
|
|
2627
|
-
var U =
|
|
2627
|
+
var U = xo(J);
|
|
2628
2628
|
try {
|
|
2629
2629
|
S[B] = U;
|
|
2630
2630
|
} catch (H) {
|
|
2631
2631
|
try {
|
|
2632
|
-
|
|
2632
|
+
Oo(le);
|
|
2633
2633
|
} finally {
|
|
2634
2634
|
throw H;
|
|
2635
2635
|
}
|
|
@@ -2686,10 +2686,10 @@ var Gs;
|
|
|
2686
2686
|
}
|
|
2687
2687
|
var S = y === 3 ? "string" : y === 5 ? "number" : "default", E = Js(v, s);
|
|
2688
2688
|
if (E !== void 0) {
|
|
2689
|
-
var
|
|
2690
|
-
if (oe(
|
|
2689
|
+
var N = E.call(v, S);
|
|
2690
|
+
if (oe(N))
|
|
2691
2691
|
throw new TypeError();
|
|
2692
|
-
return
|
|
2692
|
+
return N;
|
|
2693
2693
|
}
|
|
2694
2694
|
return Eo(v, S === "default" ? "number" : S);
|
|
2695
2695
|
}
|
|
@@ -2701,16 +2701,16 @@ var Gs;
|
|
|
2701
2701
|
if (!oe(E))
|
|
2702
2702
|
return E;
|
|
2703
2703
|
}
|
|
2704
|
-
var
|
|
2705
|
-
if (li(
|
|
2706
|
-
var E =
|
|
2704
|
+
var N = v.valueOf;
|
|
2705
|
+
if (li(N)) {
|
|
2706
|
+
var E = N.call(v);
|
|
2707
2707
|
if (!oe(E))
|
|
2708
2708
|
return E;
|
|
2709
2709
|
}
|
|
2710
2710
|
} else {
|
|
2711
|
-
var
|
|
2712
|
-
if (li(
|
|
2713
|
-
var E =
|
|
2711
|
+
var N = v.valueOf;
|
|
2712
|
+
if (li(N)) {
|
|
2713
|
+
var E = N.call(v);
|
|
2714
2714
|
if (!oe(E))
|
|
2715
2715
|
return E;
|
|
2716
2716
|
}
|
|
@@ -2773,14 +2773,14 @@ var Gs;
|
|
|
2773
2773
|
throw new TypeError();
|
|
2774
2774
|
return S;
|
|
2775
2775
|
}
|
|
2776
|
-
function
|
|
2776
|
+
function xo(v) {
|
|
2777
2777
|
return v.value;
|
|
2778
2778
|
}
|
|
2779
|
-
function
|
|
2779
|
+
function Ao(v) {
|
|
2780
2780
|
var y = v.next();
|
|
2781
2781
|
return y.done ? !1 : y;
|
|
2782
2782
|
}
|
|
2783
|
-
function
|
|
2783
|
+
function Oo(v) {
|
|
2784
2784
|
var y = v.return;
|
|
2785
2785
|
y && y.call(v);
|
|
2786
2786
|
}
|
|
@@ -2791,10 +2791,10 @@ var Gs;
|
|
|
2791
2791
|
var S = v.prototype, E = S && Object.getPrototypeOf(S);
|
|
2792
2792
|
if (E == null || E === Object.prototype)
|
|
2793
2793
|
return y;
|
|
2794
|
-
var
|
|
2795
|
-
return typeof
|
|
2794
|
+
var N = E.constructor;
|
|
2795
|
+
return typeof N != "function" || N === v ? y : N;
|
|
2796
2796
|
}
|
|
2797
|
-
function
|
|
2797
|
+
function Lo() {
|
|
2798
2798
|
var v = {}, y = [], S = (
|
|
2799
2799
|
/** @class */
|
|
2800
2800
|
function() {
|
|
@@ -2868,7 +2868,7 @@ var Gs;
|
|
|
2868
2868
|
}, B.prototype.keys = function() {
|
|
2869
2869
|
return new S(this._keys, this._values, E);
|
|
2870
2870
|
}, B.prototype.values = function() {
|
|
2871
|
-
return new S(this._keys, this._values,
|
|
2871
|
+
return new S(this._keys, this._values, N);
|
|
2872
2872
|
}, B.prototype.entries = function() {
|
|
2873
2873
|
return new S(this._keys, this._values, le);
|
|
2874
2874
|
}, B.prototype["@@iterator"] = function() {
|
|
@@ -2883,14 +2883,14 @@ var Gs;
|
|
|
2883
2883
|
function E(B, J) {
|
|
2884
2884
|
return B;
|
|
2885
2885
|
}
|
|
2886
|
-
function
|
|
2886
|
+
function N(B, J) {
|
|
2887
2887
|
return J;
|
|
2888
2888
|
}
|
|
2889
2889
|
function le(B, J) {
|
|
2890
2890
|
return [B, J];
|
|
2891
2891
|
}
|
|
2892
2892
|
}
|
|
2893
|
-
function
|
|
2893
|
+
function No() {
|
|
2894
2894
|
return (
|
|
2895
2895
|
/** @class */
|
|
2896
2896
|
function() {
|
|
@@ -2934,28 +2934,28 @@ var Gs;
|
|
|
2934
2934
|
this._key = E();
|
|
2935
2935
|
}
|
|
2936
2936
|
return U.prototype.has = function(H) {
|
|
2937
|
-
var W =
|
|
2937
|
+
var W = N(
|
|
2938
2938
|
H,
|
|
2939
2939
|
/*create*/
|
|
2940
2940
|
!1
|
|
2941
2941
|
);
|
|
2942
2942
|
return W !== void 0 ? u.has(W, this._key) : !1;
|
|
2943
2943
|
}, U.prototype.get = function(H) {
|
|
2944
|
-
var W =
|
|
2944
|
+
var W = N(
|
|
2945
2945
|
H,
|
|
2946
2946
|
/*create*/
|
|
2947
2947
|
!1
|
|
2948
2948
|
);
|
|
2949
2949
|
return W !== void 0 ? u.get(W, this._key) : void 0;
|
|
2950
2950
|
}, U.prototype.set = function(H, W) {
|
|
2951
|
-
var zt =
|
|
2951
|
+
var zt = N(
|
|
2952
2952
|
H,
|
|
2953
2953
|
/*create*/
|
|
2954
2954
|
!0
|
|
2955
2955
|
);
|
|
2956
2956
|
return zt[this._key] = W, this;
|
|
2957
2957
|
}, U.prototype.delete = function(H) {
|
|
2958
|
-
var W =
|
|
2958
|
+
var W = N(
|
|
2959
2959
|
H,
|
|
2960
2960
|
/*create*/
|
|
2961
2961
|
!1
|
|
@@ -2973,7 +2973,7 @@ var Gs;
|
|
|
2973
2973
|
while (u.has(y, U));
|
|
2974
2974
|
return y[U] = !0, U;
|
|
2975
2975
|
}
|
|
2976
|
-
function
|
|
2976
|
+
function N(U, H) {
|
|
2977
2977
|
if (!t.call(U, S)) {
|
|
2978
2978
|
if (!H)
|
|
2979
2979
|
return;
|
|
@@ -3068,8 +3068,8 @@ var Xr = { exports: {} };
|
|
|
3068
3068
|
w = w ?? "WARN";
|
|
3069
3069
|
var j = "loglevel";
|
|
3070
3070
|
typeof T == "string" ? j += ":" + T : typeof T == "symbol" && (j = void 0);
|
|
3071
|
-
function de(
|
|
3072
|
-
var F = (s[
|
|
3071
|
+
function de(x) {
|
|
3072
|
+
var F = (s[x] || "silent").toUpperCase();
|
|
3073
3073
|
if (!(typeof window === t || !j)) {
|
|
3074
3074
|
try {
|
|
3075
3075
|
window.localStorage[j] = F;
|
|
@@ -3083,22 +3083,22 @@ var Xr = { exports: {} };
|
|
|
3083
3083
|
}
|
|
3084
3084
|
}
|
|
3085
3085
|
function ce() {
|
|
3086
|
-
var
|
|
3086
|
+
var x;
|
|
3087
3087
|
if (!(typeof window === t || !j)) {
|
|
3088
3088
|
try {
|
|
3089
|
-
|
|
3089
|
+
x = window.localStorage[j];
|
|
3090
3090
|
} catch {
|
|
3091
3091
|
}
|
|
3092
|
-
if (typeof
|
|
3092
|
+
if (typeof x === t)
|
|
3093
3093
|
try {
|
|
3094
3094
|
var F = window.document.cookie, fe = F.indexOf(encodeURIComponent(j) + "=");
|
|
3095
|
-
fe !== -1 && (
|
|
3095
|
+
fe !== -1 && (x = /^([^;]+)/.exec(F.slice(fe))[1]);
|
|
3096
3096
|
} catch {
|
|
3097
3097
|
}
|
|
3098
|
-
return D.levels[
|
|
3098
|
+
return D.levels[x] === void 0 && (x = void 0), x;
|
|
3099
3099
|
}
|
|
3100
3100
|
}
|
|
3101
|
-
function
|
|
3101
|
+
function q() {
|
|
3102
3102
|
if (!(typeof window === t || !j)) {
|
|
3103
3103
|
try {
|
|
3104
3104
|
window.localStorage.removeItem(j);
|
|
@@ -3120,20 +3120,20 @@ var Xr = { exports: {} };
|
|
|
3120
3120
|
SILENT: 5
|
|
3121
3121
|
}, D.methodFactory = I || d, D.getLevel = function() {
|
|
3122
3122
|
return Q;
|
|
3123
|
-
}, D.setLevel = function(
|
|
3124
|
-
if (typeof
|
|
3125
|
-
if (Q =
|
|
3123
|
+
}, D.setLevel = function(x, F) {
|
|
3124
|
+
if (typeof x == "string" && D.levels[x.toUpperCase()] !== void 0 && (x = D.levels[x.toUpperCase()]), typeof x == "number" && x >= 0 && x <= D.levels.SILENT) {
|
|
3125
|
+
if (Q = x, F !== !1 && de(x), c.call(D, x, T), typeof console === t && x < D.levels.SILENT)
|
|
3126
3126
|
return "No console available for logging";
|
|
3127
3127
|
} else
|
|
3128
|
-
throw "log.setLevel() called with invalid level: " +
|
|
3129
|
-
}, D.setDefaultLevel = function(
|
|
3130
|
-
w =
|
|
3128
|
+
throw "log.setLevel() called with invalid level: " + x;
|
|
3129
|
+
}, D.setDefaultLevel = function(x) {
|
|
3130
|
+
w = x, ce() || D.setLevel(x, !1);
|
|
3131
3131
|
}, D.resetLevel = function() {
|
|
3132
|
-
D.setLevel(w, !1),
|
|
3133
|
-
}, D.enableAll = function(
|
|
3134
|
-
D.setLevel(D.levels.TRACE,
|
|
3135
|
-
}, D.disableAll = function(
|
|
3136
|
-
D.setLevel(D.levels.SILENT,
|
|
3132
|
+
D.setLevel(w, !1), q();
|
|
3133
|
+
}, D.enableAll = function(x) {
|
|
3134
|
+
D.setLevel(D.levels.TRACE, x);
|
|
3135
|
+
}, D.disableAll = function(x) {
|
|
3136
|
+
D.setLevel(D.levels.SILENT, x);
|
|
3137
3137
|
};
|
|
3138
3138
|
var K = ce();
|
|
3139
3139
|
K == null && (K = w), D.setLevel(K, !1);
|
|
@@ -3384,7 +3384,7 @@ function ku() {
|
|
|
3384
3384
|
}
|
|
3385
3385
|
throw new Error("invalid varint");
|
|
3386
3386
|
}
|
|
3387
|
-
function
|
|
3387
|
+
function qn(i, e, t) {
|
|
3388
3388
|
for (let r = 0; r < 28; r = r + 7) {
|
|
3389
3389
|
const a = i >>> r, o = !(!(a >>> 7) && e == 0), c = (o ? a | 128 : a) & 255;
|
|
3390
3390
|
if (t.push(c), !o)
|
|
@@ -3410,10 +3410,10 @@ function zs(i) {
|
|
|
3410
3410
|
const c = Number(i.slice(a, o));
|
|
3411
3411
|
s *= t, n = n * t + c, n >= vn && (s = s + (n / vn | 0), n = n % vn);
|
|
3412
3412
|
}
|
|
3413
|
-
return r(-24, -18), r(-18, -12), r(-12, -6), r(-6), e ? ra(n, s) :
|
|
3413
|
+
return r(-24, -18), r(-18, -12), r(-12, -6), r(-6), e ? ra(n, s) : xs(n, s);
|
|
3414
3414
|
}
|
|
3415
3415
|
function Tu(i, e) {
|
|
3416
|
-
let t =
|
|
3416
|
+
let t = xs(i, e);
|
|
3417
3417
|
const n = t.hi & 2147483648;
|
|
3418
3418
|
n && (t = ra(t.lo, t.hi));
|
|
3419
3419
|
const s = sa(t.lo, t.hi);
|
|
@@ -3436,14 +3436,14 @@ function Su(i, e) {
|
|
|
3436
3436
|
hi: e >>> 0
|
|
3437
3437
|
};
|
|
3438
3438
|
}
|
|
3439
|
-
function
|
|
3439
|
+
function xs(i, e) {
|
|
3440
3440
|
return {
|
|
3441
3441
|
lo: i | 0,
|
|
3442
3442
|
hi: e | 0
|
|
3443
3443
|
};
|
|
3444
3444
|
}
|
|
3445
3445
|
function ra(i, e) {
|
|
3446
|
-
return e = ~e, i ? i = ~i + 1 : e += 1,
|
|
3446
|
+
return e = ~e, i ? i = ~i + 1 : e += 1, xs(i, e);
|
|
3447
3447
|
}
|
|
3448
3448
|
const Ks = (i) => {
|
|
3449
3449
|
const e = String(i);
|
|
@@ -3689,21 +3689,21 @@ class Eu {
|
|
|
3689
3689
|
*/
|
|
3690
3690
|
int64(e) {
|
|
3691
3691
|
let t = V.enc(e);
|
|
3692
|
-
return
|
|
3692
|
+
return qn(t.lo, t.hi, this.buf), this;
|
|
3693
3693
|
}
|
|
3694
3694
|
/**
|
|
3695
3695
|
* Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint.
|
|
3696
3696
|
*/
|
|
3697
3697
|
sint64(e) {
|
|
3698
3698
|
let t = V.enc(e), n = t.hi >> 31, s = t.lo << 1 ^ n, r = (t.hi << 1 | t.lo >>> 31) ^ n;
|
|
3699
|
-
return
|
|
3699
|
+
return qn(s, r, this.buf), this;
|
|
3700
3700
|
}
|
|
3701
3701
|
/**
|
|
3702
3702
|
* Write a `uint64` value, an unsigned 64-bit varint.
|
|
3703
3703
|
*/
|
|
3704
3704
|
uint64(e) {
|
|
3705
3705
|
let t = V.uEnc(e);
|
|
3706
|
-
return
|
|
3706
|
+
return qn(t.lo, t.hi, this.buf), this;
|
|
3707
3707
|
}
|
|
3708
3708
|
}
|
|
3709
3709
|
class Pu {
|
|
@@ -3992,18 +3992,18 @@ function Iu() {
|
|
|
3992
3992
|
if (o == se.LengthDelimited && f != k.STRING && f != k.BYTES) {
|
|
3993
3993
|
let I = e.uint32() + e.pos;
|
|
3994
3994
|
for (; e.pos < I; )
|
|
3995
|
-
w.push(
|
|
3995
|
+
w.push(qi(e, f));
|
|
3996
3996
|
} else
|
|
3997
|
-
w.push(
|
|
3997
|
+
w.push(qi(e, f));
|
|
3998
3998
|
} else
|
|
3999
|
-
u[h] =
|
|
3999
|
+
u[h] = qi(e, f);
|
|
4000
4000
|
break;
|
|
4001
4001
|
case "message":
|
|
4002
4002
|
const m = c.T;
|
|
4003
4003
|
d ? u[h].push(yn(e, new m(), n)) : u[h] instanceof _ ? yn(e, u[h], n) : (u[h] = yn(e, new m(), n), m.fieldWrapper && !c.oneof && !c.repeated && (u[h] = m.fieldWrapper.unwrapField(u[h])));
|
|
4004
4004
|
break;
|
|
4005
4005
|
case "map":
|
|
4006
|
-
let [b, T] =
|
|
4006
|
+
let [b, T] = xu(c, e, n);
|
|
4007
4007
|
u[h][b] = T;
|
|
4008
4008
|
break;
|
|
4009
4009
|
}
|
|
@@ -4014,19 +4014,19 @@ function Iu() {
|
|
|
4014
4014
|
function yn(i, e, t) {
|
|
4015
4015
|
return e.getType().runtime.bin.readMessage(e, i, i.uint32(), t), e;
|
|
4016
4016
|
}
|
|
4017
|
-
function
|
|
4017
|
+
function xu(i, e, t) {
|
|
4018
4018
|
const n = e.uint32(), s = e.pos + n;
|
|
4019
4019
|
let r, a;
|
|
4020
4020
|
for (; e.pos < s; ) {
|
|
4021
4021
|
let [o] = e.tag();
|
|
4022
4022
|
switch (o) {
|
|
4023
4023
|
case 1:
|
|
4024
|
-
r =
|
|
4024
|
+
r = qi(e, i.K);
|
|
4025
4025
|
break;
|
|
4026
4026
|
case 2:
|
|
4027
4027
|
switch (i.V.kind) {
|
|
4028
4028
|
case "scalar":
|
|
4029
|
-
a =
|
|
4029
|
+
a = qi(e, i.V.T);
|
|
4030
4030
|
break;
|
|
4031
4031
|
case "enum":
|
|
4032
4032
|
a = e.int32();
|
|
@@ -4056,7 +4056,7 @@ function Au(i, e, t) {
|
|
|
4056
4056
|
}
|
|
4057
4057
|
return [r, a];
|
|
4058
4058
|
}
|
|
4059
|
-
function
|
|
4059
|
+
function qi(i, e) {
|
|
4060
4060
|
switch (e) {
|
|
4061
4061
|
case k.STRING:
|
|
4062
4062
|
return i.string();
|
|
@@ -4090,7 +4090,7 @@ function $i(i, e) {
|
|
|
4090
4090
|
return i.sint32();
|
|
4091
4091
|
}
|
|
4092
4092
|
}
|
|
4093
|
-
function
|
|
4093
|
+
function Au(i, e, t, n, s) {
|
|
4094
4094
|
i.tag(t.no, se.LengthDelimited), i.fork();
|
|
4095
4095
|
let r = n;
|
|
4096
4096
|
switch (t.K) {
|
|
@@ -4128,7 +4128,7 @@ function Hi(i, e, t, n, s) {
|
|
|
4128
4128
|
let [r, a, o] = aa(e, n);
|
|
4129
4129
|
(!o || s) && i.tag(t, r)[a](n);
|
|
4130
4130
|
}
|
|
4131
|
-
function
|
|
4131
|
+
function Ou(i, e, t, n) {
|
|
4132
4132
|
if (!n.length)
|
|
4133
4133
|
return;
|
|
4134
4134
|
i.tag(t, se.LengthDelimited).fork();
|
|
@@ -4137,7 +4137,7 @@ function Lu(i, e, t, n) {
|
|
|
4137
4137
|
i[s](n[r]);
|
|
4138
4138
|
i.join();
|
|
4139
4139
|
}
|
|
4140
|
-
function
|
|
4140
|
+
function Lu() {
|
|
4141
4141
|
return Object.assign(Object.assign({}, Iu()), {
|
|
4142
4142
|
writeMessage(i, e, t) {
|
|
4143
4143
|
const n = i.getType();
|
|
@@ -4156,7 +4156,7 @@ function Nu() {
|
|
|
4156
4156
|
let c = s.kind == "enum" ? k.INT32 : s.T;
|
|
4157
4157
|
if (a)
|
|
4158
4158
|
if (s.packed)
|
|
4159
|
-
|
|
4159
|
+
Ou(e, c, s.no, r);
|
|
4160
4160
|
else
|
|
4161
4161
|
for (const u of r)
|
|
4162
4162
|
Hi(e, c, s.no, u, !0);
|
|
@@ -4172,7 +4172,7 @@ function Nu() {
|
|
|
4172
4172
|
break;
|
|
4173
4173
|
case "map":
|
|
4174
4174
|
for (const [u, d] of Object.entries(r))
|
|
4175
|
-
|
|
4175
|
+
Au(e, t, s, u, d);
|
|
4176
4176
|
break;
|
|
4177
4177
|
}
|
|
4178
4178
|
}
|
|
@@ -4261,7 +4261,7 @@ const oa = {
|
|
|
4261
4261
|
useProtoFieldName: !1,
|
|
4262
4262
|
prettySpaces: 0
|
|
4263
4263
|
};
|
|
4264
|
-
function
|
|
4264
|
+
function Nu(i) {
|
|
4265
4265
|
return i ? Object.assign(Object.assign({}, Zs), i) : Zs;
|
|
4266
4266
|
}
|
|
4267
4267
|
function Du(i) {
|
|
@@ -4270,7 +4270,7 @@ function Du(i) {
|
|
|
4270
4270
|
function Mu(i) {
|
|
4271
4271
|
const e = i(Uu, tr);
|
|
4272
4272
|
return {
|
|
4273
|
-
makeReadOptions:
|
|
4273
|
+
makeReadOptions: Nu,
|
|
4274
4274
|
makeWriteOptions: Du,
|
|
4275
4275
|
readMessage(t, n, s, r) {
|
|
4276
4276
|
if (n == null || Array.isArray(n) || typeof n != "object")
|
|
@@ -4315,7 +4315,7 @@ function Mu(i) {
|
|
|
4315
4315
|
break;
|
|
4316
4316
|
case "scalar":
|
|
4317
4317
|
try {
|
|
4318
|
-
b =
|
|
4318
|
+
b = Oi(u.T, m);
|
|
4319
4319
|
} catch (T) {
|
|
4320
4320
|
let w = "cannot decode field ".concat(t.typeName, ".").concat(u.name, " from JSON: ").concat(this.debug(m));
|
|
4321
4321
|
throw T instanceof Error && T.message.length > 0 && (w += ": ".concat(T.message)), new Error(w);
|
|
@@ -4344,7 +4344,7 @@ function Mu(i) {
|
|
|
4344
4344
|
break;
|
|
4345
4345
|
case "scalar":
|
|
4346
4346
|
try {
|
|
4347
|
-
T =
|
|
4347
|
+
T = Oi(u.V.T, b);
|
|
4348
4348
|
} catch (w) {
|
|
4349
4349
|
let I = "cannot decode map value for field ".concat(t.typeName, ".").concat(u.name, " from JSON: ").concat(this.debug(c));
|
|
4350
4350
|
throw w instanceof Error && w.message.length > 0 && (I += ": ".concat(w.message)), new Error(I);
|
|
@@ -4352,7 +4352,7 @@ function Mu(i) {
|
|
|
4352
4352
|
break;
|
|
4353
4353
|
}
|
|
4354
4354
|
try {
|
|
4355
|
-
f[
|
|
4355
|
+
f[Oi(u.K, u.K == k.BOOL ? m == "true" ? !0 : m == "false" ? !1 : m : m).toString()] = T;
|
|
4356
4356
|
} catch (w) {
|
|
4357
4357
|
let I = "cannot decode map key for field ".concat(t.typeName, ".").concat(u.name, " from JSON: ").concat(this.debug(c));
|
|
4358
4358
|
throw w instanceof Error && w.message.length > 0 && (I += ": ".concat(w.message)), new Error(I);
|
|
@@ -4375,7 +4375,7 @@ function Mu(i) {
|
|
|
4375
4375
|
break;
|
|
4376
4376
|
case "scalar":
|
|
4377
4377
|
try {
|
|
4378
|
-
h[d] =
|
|
4378
|
+
h[d] = Oi(u.T, c);
|
|
4379
4379
|
} catch (b) {
|
|
4380
4380
|
let T = "cannot decode field ".concat(t.typeName, ".").concat(u.name, " from JSON: ").concat(this.debug(c));
|
|
4381
4381
|
throw b instanceof Error && b.message.length > 0 && (T += ": ".concat(b.message)), new Error(T);
|
|
@@ -4408,7 +4408,7 @@ function Mu(i) {
|
|
|
4408
4408
|
}
|
|
4409
4409
|
return r;
|
|
4410
4410
|
},
|
|
4411
|
-
readScalar:
|
|
4411
|
+
readScalar: Oi,
|
|
4412
4412
|
writeScalar: tr,
|
|
4413
4413
|
debug: ca
|
|
4414
4414
|
};
|
|
@@ -4425,7 +4425,7 @@ function ca(i) {
|
|
|
4425
4425
|
return String(i);
|
|
4426
4426
|
}
|
|
4427
4427
|
}
|
|
4428
|
-
function
|
|
4428
|
+
function Oi(i, e) {
|
|
4429
4429
|
switch (i) {
|
|
4430
4430
|
case k.DOUBLE:
|
|
4431
4431
|
case k.FLOAT:
|
|
@@ -4620,7 +4620,7 @@ function Bu() {
|
|
|
4620
4620
|
continue;
|
|
4621
4621
|
const c = n.findField(o);
|
|
4622
4622
|
let u = a[s].value;
|
|
4623
|
-
c && c.kind == "message" && !(u instanceof c.T) ? u = new c.T(u) : c && c.kind === "scalar" && c.T === k.BYTES && (u =
|
|
4623
|
+
c && c.kind == "message" && !(u instanceof c.T) ? u = new c.T(u) : c && c.kind === "scalar" && c.T === k.BYTES && (u = Li(u)), r[s] = {
|
|
4624
4624
|
case: o,
|
|
4625
4625
|
value: u
|
|
4626
4626
|
};
|
|
@@ -4628,7 +4628,7 @@ function Bu() {
|
|
|
4628
4628
|
case "scalar":
|
|
4629
4629
|
case "enum":
|
|
4630
4630
|
let d = a[s];
|
|
4631
|
-
n.T === k.BYTES && (d = n.repeated ? d.map(
|
|
4631
|
+
n.T === k.BYTES && (d = n.repeated ? d.map(Li) : Li(d)), r[s] = d;
|
|
4632
4632
|
break;
|
|
4633
4633
|
case "map":
|
|
4634
4634
|
switch (n.V.kind) {
|
|
@@ -4636,7 +4636,7 @@ function Bu() {
|
|
|
4636
4636
|
case "enum":
|
|
4637
4637
|
if (n.V.T === k.BYTES)
|
|
4638
4638
|
for (const [m, b] of Object.entries(a[s]))
|
|
4639
|
-
r[s][m] =
|
|
4639
|
+
r[s][m] = Li(b);
|
|
4640
4640
|
else
|
|
4641
4641
|
Object.assign(r[s], a[s]);
|
|
4642
4642
|
break;
|
|
@@ -4655,7 +4655,7 @@ function Bu() {
|
|
|
4655
4655
|
r[s] = a[s].map((f) => f instanceof h ? f : new h(f));
|
|
4656
4656
|
else if (a[s] !== void 0) {
|
|
4657
4657
|
const f = a[s];
|
|
4658
|
-
h.fieldWrapper ? /* We can't use BytesValue.typeName as that will create a circular import */ h.typeName === "google.protobuf.BytesValue" ? r[s] =
|
|
4658
|
+
h.fieldWrapper ? /* We can't use BytesValue.typeName as that will create a circular import */ h.typeName === "google.protobuf.BytesValue" ? r[s] = Li(f) : r[s] = f : r[s] = f instanceof h ? f : new h(f);
|
|
4659
4659
|
}
|
|
4660
4660
|
break;
|
|
4661
4661
|
}
|
|
@@ -4750,7 +4750,7 @@ function ln(i) {
|
|
|
4750
4750
|
}
|
|
4751
4751
|
return i;
|
|
4752
4752
|
}
|
|
4753
|
-
function
|
|
4753
|
+
function Li(i) {
|
|
4754
4754
|
return i instanceof Uint8Array ? i : new Uint8Array(i);
|
|
4755
4755
|
}
|
|
4756
4756
|
class Ju {
|
|
@@ -4828,13 +4828,13 @@ function da(i) {
|
|
|
4828
4828
|
}
|
|
4829
4829
|
return t.join("");
|
|
4830
4830
|
}
|
|
4831
|
-
const
|
|
4831
|
+
const $u = /* @__PURE__ */ new Set([
|
|
4832
4832
|
// names reserved by JavaScript
|
|
4833
4833
|
"constructor",
|
|
4834
4834
|
"toString",
|
|
4835
4835
|
"toJSON",
|
|
4836
4836
|
"valueOf"
|
|
4837
|
-
]),
|
|
4837
|
+
]), qu = /* @__PURE__ */ new Set([
|
|
4838
4838
|
// names reserved by the runtime
|
|
4839
4839
|
"getType",
|
|
4840
4840
|
"clone",
|
|
@@ -4847,7 +4847,7 @@ const qu = /* @__PURE__ */ new Set([
|
|
|
4847
4847
|
"toJsonString",
|
|
4848
4848
|
// names reserved by the runtime for the future
|
|
4849
4849
|
"toObject"
|
|
4850
|
-
]), la = (i) => "".concat(i, "$"), Hu = (i) =>
|
|
4850
|
+
]), la = (i) => "".concat(i, "$"), Hu = (i) => qu.has(i) ? la(i) : i, Wu = (i) => $u.has(i) ? la(i) : i;
|
|
4851
4851
|
class Gu {
|
|
4852
4852
|
constructor(e) {
|
|
4853
4853
|
this.kind = "oneof", this.repeated = !1, this.packed = !1, this.opt = !1, this.default = void 0, this.fields = [], this.name = e, this.localName = ju(e);
|
|
@@ -4864,7 +4864,7 @@ class Gu {
|
|
|
4864
4864
|
return this._lookup[e];
|
|
4865
4865
|
}
|
|
4866
4866
|
}
|
|
4867
|
-
const l = bu("proto3", Fu(),
|
|
4867
|
+
const l = bu("proto3", Fu(), Lu(), Object.assign(Object.assign({}, Bu()), {
|
|
4868
4868
|
newFieldList(i) {
|
|
4869
4869
|
return new Ju(i, zu);
|
|
4870
4870
|
},
|
|
@@ -5216,7 +5216,7 @@ Pi.fields = l.util.newFieldList(() => [{
|
|
|
5216
5216
|
no: 7,
|
|
5217
5217
|
name: "enabled_codecs",
|
|
5218
5218
|
kind: "message",
|
|
5219
|
-
T:
|
|
5219
|
+
T: qe,
|
|
5220
5220
|
repeated: !0
|
|
5221
5221
|
}, {
|
|
5222
5222
|
no: 8,
|
|
@@ -5248,26 +5248,26 @@ Pi.fields = l.util.newFieldList(() => [{
|
|
|
5248
5248
|
kind: "message",
|
|
5249
5249
|
T: St
|
|
5250
5250
|
}]);
|
|
5251
|
-
class
|
|
5251
|
+
class qe extends _ {
|
|
5252
5252
|
constructor(e) {
|
|
5253
5253
|
super(), this.mime = "", this.fmtpLine = "", l.util.initPartial(e, this);
|
|
5254
5254
|
}
|
|
5255
5255
|
static fromBinary(e, t) {
|
|
5256
|
-
return new
|
|
5256
|
+
return new qe().fromBinary(e, t);
|
|
5257
5257
|
}
|
|
5258
5258
|
static fromJson(e, t) {
|
|
5259
|
-
return new
|
|
5259
|
+
return new qe().fromJson(e, t);
|
|
5260
5260
|
}
|
|
5261
5261
|
static fromJsonString(e, t) {
|
|
5262
|
-
return new
|
|
5262
|
+
return new qe().fromJsonString(e, t);
|
|
5263
5263
|
}
|
|
5264
5264
|
static equals(e, t) {
|
|
5265
|
-
return l.util.equals(
|
|
5265
|
+
return l.util.equals(qe, e, t);
|
|
5266
5266
|
}
|
|
5267
5267
|
}
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5268
|
+
qe.runtime = l;
|
|
5269
|
+
qe.typeName = "livekit.Codec";
|
|
5270
|
+
qe.fields = l.util.newFieldList(() => [{
|
|
5271
5271
|
no: 1,
|
|
5272
5272
|
name: "mime",
|
|
5273
5273
|
kind: "scalar",
|
|
@@ -6187,13 +6187,13 @@ _t.fields = l.util.newFieldList(() => [{
|
|
|
6187
6187
|
no: 1,
|
|
6188
6188
|
name: "codecs",
|
|
6189
6189
|
kind: "message",
|
|
6190
|
-
T:
|
|
6190
|
+
T: qe,
|
|
6191
6191
|
repeated: !0
|
|
6192
6192
|
}, {
|
|
6193
6193
|
no: 2,
|
|
6194
6194
|
name: "publish",
|
|
6195
6195
|
kind: "message",
|
|
6196
|
-
T:
|
|
6196
|
+
T: qe,
|
|
6197
6197
|
repeated: !0
|
|
6198
6198
|
}]);
|
|
6199
6199
|
class Xt extends _ {
|
|
@@ -6504,7 +6504,7 @@ Qt.fields = l.util.newFieldList(() => [{
|
|
|
6504
6504
|
T: 5
|
|
6505
6505
|
/* ScalarType.INT32 */
|
|
6506
6506
|
}]);
|
|
6507
|
-
const
|
|
6507
|
+
const Ni = 7e3, Ku = [0, 300, 2 * 2 * 300, 3 * 3 * 300, 4 * 4 * 300, Ni, Ni, Ni, Ni, Ni];
|
|
6508
6508
|
class Yu {
|
|
6509
6509
|
constructor(e) {
|
|
6510
6510
|
this._retryDelays = e !== void 0 ? [...e] : Ku;
|
|
@@ -6575,7 +6575,7 @@ function gi(i) {
|
|
|
6575
6575
|
}, a);
|
|
6576
6576
|
}
|
|
6577
6577
|
}
|
|
6578
|
-
var
|
|
6578
|
+
var As = { exports: {} }, ki = typeof Reflect == "object" ? Reflect : null, nr = ki && typeof ki.apply == "function" ? ki.apply : function(e, t, n) {
|
|
6579
6579
|
return Function.prototype.apply.call(e, t, n);
|
|
6580
6580
|
}, bn;
|
|
6581
6581
|
ki && typeof ki.ownKeys == "function" ? bn = ki.ownKeys : Object.getOwnPropertySymbols ? bn = function(e) {
|
|
@@ -6592,8 +6592,8 @@ var ha = Number.isNaN || function(e) {
|
|
|
6592
6592
|
function X() {
|
|
6593
6593
|
X.init.call(this);
|
|
6594
6594
|
}
|
|
6595
|
-
|
|
6596
|
-
|
|
6595
|
+
As.exports = X;
|
|
6596
|
+
As.exports.once = td;
|
|
6597
6597
|
X.EventEmitter = X;
|
|
6598
6598
|
X.prototype._events = void 0;
|
|
6599
6599
|
X.prototype._eventsCount = 0;
|
|
@@ -6805,7 +6805,7 @@ function ba(i, e, t, n) {
|
|
|
6805
6805
|
else
|
|
6806
6806
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof i);
|
|
6807
6807
|
}
|
|
6808
|
-
var gt =
|
|
6808
|
+
var gt = As.exports;
|
|
6809
6809
|
let ka = !0, Ta = !0;
|
|
6810
6810
|
function kn(i, e, t) {
|
|
6811
6811
|
const n = i.match(e);
|
|
@@ -6856,7 +6856,7 @@ function Sa() {
|
|
|
6856
6856
|
typeof console < "u" && typeof console.log == "function" && console.log.apply(console, arguments);
|
|
6857
6857
|
}
|
|
6858
6858
|
}
|
|
6859
|
-
function
|
|
6859
|
+
function Os(i, e) {
|
|
6860
6860
|
Ta && console.warn(i + " is deprecated, please use " + e + " instead.");
|
|
6861
6861
|
}
|
|
6862
6862
|
function rd(i) {
|
|
@@ -7218,7 +7218,7 @@ function Ia(i) {
|
|
|
7218
7218
|
return e.apply(this, arguments);
|
|
7219
7219
|
};
|
|
7220
7220
|
}
|
|
7221
|
-
function
|
|
7221
|
+
function xa(i) {
|
|
7222
7222
|
i.RTCPeerConnection.prototype.getLocalStreams = function() {
|
|
7223
7223
|
return this._shimmedLocalStreams = this._shimmedLocalStreams || {}, Object.keys(this._shimmedLocalStreams).map((a) => this._shimmedLocalStreams[a][0]);
|
|
7224
7224
|
};
|
|
@@ -7253,11 +7253,11 @@ function Aa(i) {
|
|
|
7253
7253
|
}), s.apply(this, arguments);
|
|
7254
7254
|
};
|
|
7255
7255
|
}
|
|
7256
|
-
function
|
|
7256
|
+
function Aa(i, e) {
|
|
7257
7257
|
if (!i.RTCPeerConnection)
|
|
7258
7258
|
return;
|
|
7259
7259
|
if (i.RTCPeerConnection.prototype.addTrack && e.version >= 65)
|
|
7260
|
-
return
|
|
7260
|
+
return xa(i);
|
|
7261
7261
|
const t = i.RTCPeerConnection.prototype.getLocalStreams;
|
|
7262
7262
|
i.RTCPeerConnection.prototype.getLocalStreams = function() {
|
|
7263
7263
|
const d = t.apply(this);
|
|
@@ -7365,7 +7365,7 @@ function ms(i, e) {
|
|
|
7365
7365
|
i.RTCPeerConnection.prototype[t] = s[t];
|
|
7366
7366
|
});
|
|
7367
7367
|
}
|
|
7368
|
-
function
|
|
7368
|
+
function Oa(i, e) {
|
|
7369
7369
|
ui(i, "negotiationneeded", (t) => {
|
|
7370
7370
|
const n = t.target;
|
|
7371
7371
|
if (!((e.version < 72 || n.getConfiguration && n.getConfiguration().sdpSemantics === "plan-b") && n.signalingState !== "stable"))
|
|
@@ -7374,9 +7374,9 @@ function La(i, e) {
|
|
|
7374
7374
|
}
|
|
7375
7375
|
var cr = /* @__PURE__ */ Object.freeze({
|
|
7376
7376
|
__proto__: null,
|
|
7377
|
-
fixNegotiationNeeded:
|
|
7378
|
-
shimAddTrackRemoveTrack:
|
|
7379
|
-
shimAddTrackRemoveTrackWithNative:
|
|
7377
|
+
fixNegotiationNeeded: Oa,
|
|
7378
|
+
shimAddTrackRemoveTrack: Aa,
|
|
7379
|
+
shimAddTrackRemoveTrackWithNative: xa,
|
|
7380
7380
|
shimGetDisplayMedia: ad,
|
|
7381
7381
|
shimGetSendersWithDtmf: Ra,
|
|
7382
7382
|
shimGetStats: _a,
|
|
@@ -7386,10 +7386,10 @@ var cr = /* @__PURE__ */ Object.freeze({
|
|
|
7386
7386
|
shimPeerConnection: ms,
|
|
7387
7387
|
shimSenderReceiverGetStats: Ia
|
|
7388
7388
|
});
|
|
7389
|
-
function
|
|
7389
|
+
function La(i, e) {
|
|
7390
7390
|
const t = i && i.navigator, n = i && i.MediaStreamTrack;
|
|
7391
7391
|
if (t.getUserMedia = function(s, r, a) {
|
|
7392
|
-
|
|
7392
|
+
Os("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia"), t.mediaDevices.getUserMedia(s).then(r, a);
|
|
7393
7393
|
}, !(e.version > 55 && "autoGainControl" in t.mediaDevices.getSupportedConstraints())) {
|
|
7394
7394
|
const s = function(a, o, c) {
|
|
7395
7395
|
o in a && !(c in a) && (a[c] = a[o], delete a[o]);
|
|
@@ -7422,7 +7422,7 @@ function od(i, e) {
|
|
|
7422
7422
|
} : n.video.mediaSource = e, i.navigator.mediaDevices.getUserMedia(n);
|
|
7423
7423
|
});
|
|
7424
7424
|
}
|
|
7425
|
-
function
|
|
7425
|
+
function Na(i) {
|
|
7426
7426
|
typeof i == "object" && i.RTCTrackEvent && "receiver" in i.RTCTrackEvent.prototype && !("transceiver" in i.RTCTrackEvent.prototype) && Object.defineProperty(i.RTCTrackEvent.prototype, "transceiver", {
|
|
7427
7427
|
get() {
|
|
7428
7428
|
return {
|
|
@@ -7499,7 +7499,7 @@ function Ma(i) {
|
|
|
7499
7499
|
}
|
|
7500
7500
|
function Ua(i) {
|
|
7501
7501
|
!i.RTCPeerConnection || "removeStream" in i.RTCPeerConnection.prototype || (i.RTCPeerConnection.prototype.removeStream = function(t) {
|
|
7502
|
-
|
|
7502
|
+
Os("removeStream", "removeTrack"), this.getSenders().forEach((n) => {
|
|
7503
7503
|
n.track && t.getTracks().includes(n.track) && this.removeTrack(n);
|
|
7504
7504
|
});
|
|
7505
7505
|
});
|
|
@@ -7575,15 +7575,15 @@ var ur = /* @__PURE__ */ Object.freeze({
|
|
|
7575
7575
|
shimCreateOffer: ja,
|
|
7576
7576
|
shimGetDisplayMedia: od,
|
|
7577
7577
|
shimGetParameters: Ja,
|
|
7578
|
-
shimGetUserMedia:
|
|
7579
|
-
shimOnTrack:
|
|
7578
|
+
shimGetUserMedia: La,
|
|
7579
|
+
shimOnTrack: Na,
|
|
7580
7580
|
shimPeerConnection: gs,
|
|
7581
7581
|
shimRTCDataChannel: Fa,
|
|
7582
7582
|
shimReceiverGetStats: Ma,
|
|
7583
7583
|
shimRemoveStream: Ua,
|
|
7584
7584
|
shimSenderGetStats: Da
|
|
7585
7585
|
});
|
|
7586
|
-
function
|
|
7586
|
+
function $a(i) {
|
|
7587
7587
|
if (!(typeof i != "object" || !i.RTCPeerConnection)) {
|
|
7588
7588
|
if ("getLocalStreams" in i.RTCPeerConnection.prototype || (i.RTCPeerConnection.prototype.getLocalStreams = function() {
|
|
7589
7589
|
return this._localStreams || (this._localStreams = []), this._localStreams;
|
|
@@ -7612,7 +7612,7 @@ function qa(i) {
|
|
|
7612
7612
|
});
|
|
7613
7613
|
}
|
|
7614
7614
|
}
|
|
7615
|
-
function
|
|
7615
|
+
function qa(i) {
|
|
7616
7616
|
if (!(typeof i != "object" || !i.RTCPeerConnection) && ("getRemoteStreams" in i.RTCPeerConnection.prototype || (i.RTCPeerConnection.prototype.getRemoteStreams = function() {
|
|
7617
7617
|
return this._remoteStreams ? this._remoteStreams : [];
|
|
7618
7618
|
}), !("onaddstream" in i.RTCPeerConnection.prototype))) {
|
|
@@ -7694,7 +7694,7 @@ function za(i) {
|
|
|
7694
7694
|
const r = [];
|
|
7695
7695
|
for (let a = 0; a < n.iceServers.length; a++) {
|
|
7696
7696
|
let o = n.iceServers[a];
|
|
7697
|
-
o.urls === void 0 && o.url ? (
|
|
7697
|
+
o.urls === void 0 && o.url ? (Os("RTCIceServer.url", "RTCIceServer.urls"), o = JSON.parse(JSON.stringify(o)), o.urls = o.url, delete o.url, r.push(o)) : r.push(n.iceServers[a]);
|
|
7698
7698
|
}
|
|
7699
7699
|
n.iceServers = r;
|
|
7700
7700
|
}
|
|
@@ -7741,9 +7741,9 @@ var dr = /* @__PURE__ */ Object.freeze({
|
|
|
7741
7741
|
shimConstraints: Ga,
|
|
7742
7742
|
shimCreateOfferLegacy: Ya,
|
|
7743
7743
|
shimGetUserMedia: Wa,
|
|
7744
|
-
shimLocalStreamsAPI:
|
|
7744
|
+
shimLocalStreamsAPI: $a,
|
|
7745
7745
|
shimRTCIceServerUrls: za,
|
|
7746
|
-
shimRemoteStreamsAPI:
|
|
7746
|
+
shimRemoteStreamsAPI: qa,
|
|
7747
7747
|
shimTrackEventTransceiver: Ka
|
|
7748
7748
|
}), Qa = { exports: {} };
|
|
7749
7749
|
(function(i) {
|
|
@@ -8356,17 +8356,17 @@ function dd() {
|
|
|
8356
8356
|
return t("Chrome shim is not included in this adapter release."), s;
|
|
8357
8357
|
if (n.version === null)
|
|
8358
8358
|
return t("Chrome shim can not determine version, not shimming."), s;
|
|
8359
|
-
t("adapter.js shimming chrome."), s.browserShim = cr, wn(i, n), En(i), wa(i, n), Ea(i), ms(i, n), Pa(i),
|
|
8359
|
+
t("adapter.js shimming chrome."), s.browserShim = cr, wn(i, n), En(i), wa(i, n), Ea(i), ms(i, n), Pa(i), Aa(i, n), Ra(i), _a(i), Ia(i), Oa(i, n), Tn(i), vs(i), ys(i), Sn(i, n), Cn(i), bs(i, n);
|
|
8360
8360
|
break;
|
|
8361
8361
|
case "firefox":
|
|
8362
8362
|
if (!ur || !gs || !e.shimFirefox)
|
|
8363
8363
|
return t("Firefox shim is not included in this adapter release."), s;
|
|
8364
|
-
t("adapter.js shimming firefox."), s.browserShim = ur, wn(i, n), En(i),
|
|
8364
|
+
t("adapter.js shimming firefox."), s.browserShim = ur, wn(i, n), En(i), La(i, n), gs(i, n), Na(i), Ua(i), Da(i), Ma(i), Fa(i), Ba(i), Ja(i), ja(i), Va(i), Tn(i), ys(i), Sn(i, n), Cn(i);
|
|
8365
8365
|
break;
|
|
8366
8366
|
case "safari":
|
|
8367
8367
|
if (!dr || !e.shimSafari)
|
|
8368
8368
|
return t("Safari shim is not included in this adapter release."), s;
|
|
8369
|
-
t("adapter.js shimming safari."), s.browserShim = dr, wn(i, n), En(i), za(i), Ya(i), Ha(i),
|
|
8369
|
+
t("adapter.js shimming safari."), s.browserShim = dr, wn(i, n), En(i), za(i), Ya(i), Ha(i), $a(i), qa(i), Ka(i), Wa(i), Xa(i), Tn(i), vs(i), Sn(i, n), Cn(i), bs(i, n);
|
|
8370
8370
|
break;
|
|
8371
8371
|
default:
|
|
8372
8372
|
t("Unsupported browser!");
|
|
@@ -8550,7 +8550,7 @@ at.fields = l.util.newFieldList(() => [{
|
|
|
8550
8550
|
no: 1,
|
|
8551
8551
|
name: "join",
|
|
8552
8552
|
kind: "message",
|
|
8553
|
-
T:
|
|
8553
|
+
T: xt,
|
|
8554
8554
|
oneof: "message"
|
|
8555
8555
|
}, {
|
|
8556
8556
|
no: 2,
|
|
@@ -8574,7 +8574,7 @@ at.fields = l.util.newFieldList(() => [{
|
|
|
8574
8574
|
no: 5,
|
|
8575
8575
|
name: "update",
|
|
8576
8576
|
kind: "message",
|
|
8577
|
-
T:
|
|
8577
|
+
T: Lt,
|
|
8578
8578
|
oneof: "message"
|
|
8579
8579
|
}, {
|
|
8580
8580
|
no: 6,
|
|
@@ -8598,7 +8598,7 @@ at.fields = l.util.newFieldList(() => [{
|
|
|
8598
8598
|
no: 10,
|
|
8599
8599
|
name: "speakers_changed",
|
|
8600
8600
|
kind: "message",
|
|
8601
|
-
T:
|
|
8601
|
+
T: Nt,
|
|
8602
8602
|
oneof: "message"
|
|
8603
8603
|
}, {
|
|
8604
8604
|
no: 11,
|
|
@@ -8640,7 +8640,7 @@ at.fields = l.util.newFieldList(() => [{
|
|
|
8640
8640
|
no: 17,
|
|
8641
8641
|
name: "track_unpublished",
|
|
8642
8642
|
kind: "message",
|
|
8643
|
-
T:
|
|
8643
|
+
T: Ot,
|
|
8644
8644
|
oneof: "message"
|
|
8645
8645
|
}, {
|
|
8646
8646
|
no: 18,
|
|
@@ -8652,13 +8652,13 @@ at.fields = l.util.newFieldList(() => [{
|
|
|
8652
8652
|
no: 19,
|
|
8653
8653
|
name: "reconnect",
|
|
8654
8654
|
kind: "message",
|
|
8655
|
-
T:
|
|
8655
|
+
T: At,
|
|
8656
8656
|
oneof: "message"
|
|
8657
8657
|
}, {
|
|
8658
8658
|
no: 20,
|
|
8659
8659
|
name: "pong_resp",
|
|
8660
8660
|
kind: "message",
|
|
8661
|
-
T:
|
|
8661
|
+
T: $t,
|
|
8662
8662
|
oneof: "message"
|
|
8663
8663
|
}, {
|
|
8664
8664
|
no: 21,
|
|
@@ -8875,26 +8875,26 @@ Ge.fields = l.util.newFieldList(() => [{
|
|
|
8875
8875
|
T: 8
|
|
8876
8876
|
/* ScalarType.BOOL */
|
|
8877
8877
|
}]);
|
|
8878
|
-
class
|
|
8878
|
+
class xt extends _ {
|
|
8879
8879
|
constructor(e) {
|
|
8880
8880
|
super(), this.otherParticipants = [], this.serverVersion = "", this.iceServers = [], this.subscriberPrimary = !1, this.alternativeUrl = "", this.serverRegion = "", this.pingTimeout = 0, this.pingInterval = 0, this.sifTrailer = new Uint8Array(0), l.util.initPartial(e, this);
|
|
8881
8881
|
}
|
|
8882
8882
|
static fromBinary(e, t) {
|
|
8883
|
-
return new
|
|
8883
|
+
return new xt().fromBinary(e, t);
|
|
8884
8884
|
}
|
|
8885
8885
|
static fromJson(e, t) {
|
|
8886
|
-
return new
|
|
8886
|
+
return new xt().fromJson(e, t);
|
|
8887
8887
|
}
|
|
8888
8888
|
static fromJsonString(e, t) {
|
|
8889
|
-
return new
|
|
8889
|
+
return new xt().fromJsonString(e, t);
|
|
8890
8890
|
}
|
|
8891
8891
|
static equals(e, t) {
|
|
8892
|
-
return l.util.equals(
|
|
8892
|
+
return l.util.equals(xt, e, t);
|
|
8893
8893
|
}
|
|
8894
8894
|
}
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8895
|
+
xt.runtime = l;
|
|
8896
|
+
xt.typeName = "livekit.JoinResponse";
|
|
8897
|
+
xt.fields = l.util.newFieldList(() => [{
|
|
8898
8898
|
no: 1,
|
|
8899
8899
|
name: "room",
|
|
8900
8900
|
kind: "message",
|
|
@@ -8969,26 +8969,26 @@ At.fields = l.util.newFieldList(() => [{
|
|
|
8969
8969
|
T: 12
|
|
8970
8970
|
/* ScalarType.BYTES */
|
|
8971
8971
|
}]);
|
|
8972
|
-
class
|
|
8972
|
+
class At extends _ {
|
|
8973
8973
|
constructor(e) {
|
|
8974
8974
|
super(), this.iceServers = [], l.util.initPartial(e, this);
|
|
8975
8975
|
}
|
|
8976
8976
|
static fromBinary(e, t) {
|
|
8977
|
-
return new
|
|
8977
|
+
return new At().fromBinary(e, t);
|
|
8978
8978
|
}
|
|
8979
8979
|
static fromJson(e, t) {
|
|
8980
|
-
return new
|
|
8980
|
+
return new At().fromJson(e, t);
|
|
8981
8981
|
}
|
|
8982
8982
|
static fromJsonString(e, t) {
|
|
8983
|
-
return new
|
|
8983
|
+
return new At().fromJsonString(e, t);
|
|
8984
8984
|
}
|
|
8985
8985
|
static equals(e, t) {
|
|
8986
|
-
return l.util.equals(
|
|
8986
|
+
return l.util.equals(At, e, t);
|
|
8987
8987
|
}
|
|
8988
8988
|
}
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8989
|
+
At.runtime = l;
|
|
8990
|
+
At.typeName = "livekit.ReconnectResponse";
|
|
8991
|
+
At.fields = l.util.newFieldList(() => [{
|
|
8992
8992
|
no: 1,
|
|
8993
8993
|
name: "ice_servers",
|
|
8994
8994
|
kind: "message",
|
|
@@ -9031,26 +9031,26 @@ ze.fields = l.util.newFieldList(() => [{
|
|
|
9031
9031
|
kind: "message",
|
|
9032
9032
|
T: _e
|
|
9033
9033
|
}]);
|
|
9034
|
-
class
|
|
9034
|
+
class Ot extends _ {
|
|
9035
9035
|
constructor(e) {
|
|
9036
9036
|
super(), this.trackSid = "", l.util.initPartial(e, this);
|
|
9037
9037
|
}
|
|
9038
9038
|
static fromBinary(e, t) {
|
|
9039
|
-
return new
|
|
9039
|
+
return new Ot().fromBinary(e, t);
|
|
9040
9040
|
}
|
|
9041
9041
|
static fromJson(e, t) {
|
|
9042
|
-
return new
|
|
9042
|
+
return new Ot().fromJson(e, t);
|
|
9043
9043
|
}
|
|
9044
9044
|
static fromJsonString(e, t) {
|
|
9045
|
-
return new
|
|
9045
|
+
return new Ot().fromJsonString(e, t);
|
|
9046
9046
|
}
|
|
9047
9047
|
static equals(e, t) {
|
|
9048
|
-
return l.util.equals(
|
|
9048
|
+
return l.util.equals(Ot, e, t);
|
|
9049
9049
|
}
|
|
9050
9050
|
}
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9051
|
+
Ot.runtime = l;
|
|
9052
|
+
Ot.typeName = "livekit.TrackUnpublishedResponse";
|
|
9053
|
+
Ot.fields = l.util.newFieldList(() => [{
|
|
9054
9054
|
no: 1,
|
|
9055
9055
|
name: "track_sid",
|
|
9056
9056
|
kind: "scalar",
|
|
@@ -9089,26 +9089,26 @@ Ce.fields = l.util.newFieldList(() => [{
|
|
|
9089
9089
|
T: 9
|
|
9090
9090
|
/* ScalarType.STRING */
|
|
9091
9091
|
}]);
|
|
9092
|
-
class
|
|
9092
|
+
class Lt extends _ {
|
|
9093
9093
|
constructor(e) {
|
|
9094
9094
|
super(), this.participants = [], l.util.initPartial(e, this);
|
|
9095
9095
|
}
|
|
9096
9096
|
static fromBinary(e, t) {
|
|
9097
|
-
return new
|
|
9097
|
+
return new Lt().fromBinary(e, t);
|
|
9098
9098
|
}
|
|
9099
9099
|
static fromJson(e, t) {
|
|
9100
|
-
return new
|
|
9100
|
+
return new Lt().fromJson(e, t);
|
|
9101
9101
|
}
|
|
9102
9102
|
static fromJsonString(e, t) {
|
|
9103
|
-
return new
|
|
9103
|
+
return new Lt().fromJsonString(e, t);
|
|
9104
9104
|
}
|
|
9105
9105
|
static equals(e, t) {
|
|
9106
|
-
return l.util.equals(
|
|
9106
|
+
return l.util.equals(Lt, e, t);
|
|
9107
9107
|
}
|
|
9108
9108
|
}
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9109
|
+
Lt.runtime = l;
|
|
9110
|
+
Lt.typeName = "livekit.ParticipantUpdate";
|
|
9111
|
+
Lt.fields = l.util.newFieldList(() => [{
|
|
9112
9112
|
no: 1,
|
|
9113
9113
|
name: "participants",
|
|
9114
9114
|
kind: "message",
|
|
@@ -9347,26 +9347,26 @@ dt.fields = l.util.newFieldList(() => [{
|
|
|
9347
9347
|
T: 9
|
|
9348
9348
|
/* ScalarType.STRING */
|
|
9349
9349
|
}]);
|
|
9350
|
-
class
|
|
9350
|
+
class Nt extends _ {
|
|
9351
9351
|
constructor(e) {
|
|
9352
9352
|
super(), this.speakers = [], l.util.initPartial(e, this);
|
|
9353
9353
|
}
|
|
9354
9354
|
static fromBinary(e, t) {
|
|
9355
|
-
return new
|
|
9355
|
+
return new Nt().fromBinary(e, t);
|
|
9356
9356
|
}
|
|
9357
9357
|
static fromJson(e, t) {
|
|
9358
|
-
return new
|
|
9358
|
+
return new Nt().fromJson(e, t);
|
|
9359
9359
|
}
|
|
9360
9360
|
static fromJsonString(e, t) {
|
|
9361
|
-
return new
|
|
9361
|
+
return new Nt().fromJsonString(e, t);
|
|
9362
9362
|
}
|
|
9363
9363
|
static equals(e, t) {
|
|
9364
|
-
return l.util.equals(
|
|
9364
|
+
return l.util.equals(Nt, e, t);
|
|
9365
9365
|
}
|
|
9366
9366
|
}
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9367
|
+
Nt.runtime = l;
|
|
9368
|
+
Nt.typeName = "livekit.SpeakersChanged";
|
|
9369
|
+
Nt.fields = l.util.newFieldList(() => [{
|
|
9370
9370
|
no: 1,
|
|
9371
9371
|
name: "speakers",
|
|
9372
9372
|
kind: "message",
|
|
@@ -9913,26 +9913,26 @@ mt.fields = l.util.newFieldList(() => [{
|
|
|
9913
9913
|
T: 3
|
|
9914
9914
|
/* ScalarType.INT64 */
|
|
9915
9915
|
}]);
|
|
9916
|
-
class
|
|
9916
|
+
class $t extends _ {
|
|
9917
9917
|
constructor(e) {
|
|
9918
9918
|
super(), this.lastPingTimestamp = V.zero, this.timestamp = V.zero, l.util.initPartial(e, this);
|
|
9919
9919
|
}
|
|
9920
9920
|
static fromBinary(e, t) {
|
|
9921
|
-
return new
|
|
9921
|
+
return new $t().fromBinary(e, t);
|
|
9922
9922
|
}
|
|
9923
9923
|
static fromJson(e, t) {
|
|
9924
|
-
return new
|
|
9924
|
+
return new $t().fromJson(e, t);
|
|
9925
9925
|
}
|
|
9926
9926
|
static fromJsonString(e, t) {
|
|
9927
|
-
return new
|
|
9927
|
+
return new $t().fromJsonString(e, t);
|
|
9928
9928
|
}
|
|
9929
9929
|
static equals(e, t) {
|
|
9930
|
-
return l.util.equals(
|
|
9930
|
+
return l.util.equals($t, e, t);
|
|
9931
9931
|
}
|
|
9932
9932
|
}
|
|
9933
|
-
|
|
9934
|
-
|
|
9935
|
-
|
|
9933
|
+
$t.runtime = l;
|
|
9934
|
+
$t.typeName = "livekit.Pong";
|
|
9935
|
+
$t.fields = l.util.newFieldList(() => [{
|
|
9936
9936
|
no: 1,
|
|
9937
9937
|
name: "last_ping_timestamp",
|
|
9938
9938
|
kind: "scalar",
|
|
@@ -9968,29 +9968,29 @@ Zt.fields = l.util.newFieldList(() => [{
|
|
|
9968
9968
|
no: 1,
|
|
9969
9969
|
name: "regions",
|
|
9970
9970
|
kind: "message",
|
|
9971
|
-
T:
|
|
9971
|
+
T: qt,
|
|
9972
9972
|
repeated: !0
|
|
9973
9973
|
}]);
|
|
9974
|
-
class
|
|
9974
|
+
class qt extends _ {
|
|
9975
9975
|
constructor(e) {
|
|
9976
9976
|
super(), this.region = "", this.url = "", this.distance = V.zero, l.util.initPartial(e, this);
|
|
9977
9977
|
}
|
|
9978
9978
|
static fromBinary(e, t) {
|
|
9979
|
-
return new
|
|
9979
|
+
return new qt().fromBinary(e, t);
|
|
9980
9980
|
}
|
|
9981
9981
|
static fromJson(e, t) {
|
|
9982
|
-
return new
|
|
9982
|
+
return new qt().fromJson(e, t);
|
|
9983
9983
|
}
|
|
9984
9984
|
static fromJsonString(e, t) {
|
|
9985
|
-
return new
|
|
9985
|
+
return new qt().fromJsonString(e, t);
|
|
9986
9986
|
}
|
|
9987
9987
|
static equals(e, t) {
|
|
9988
|
-
return l.util.equals(
|
|
9988
|
+
return l.util.equals(qt, e, t);
|
|
9989
9989
|
}
|
|
9990
9990
|
}
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9991
|
+
qt.runtime = l;
|
|
9992
|
+
qt.typeName = "livekit.RegionInfo";
|
|
9993
|
+
qt.fields = l.util.newFieldList(() => [{
|
|
9994
9994
|
no: 1,
|
|
9995
9995
|
name: "region",
|
|
9996
9996
|
kind: "scalar",
|
|
@@ -10050,7 +10050,7 @@ class ne extends Ri {
|
|
|
10050
10050
|
super(1, e), this.status = n, this.reason = t;
|
|
10051
10051
|
}
|
|
10052
10052
|
}
|
|
10053
|
-
class
|
|
10053
|
+
class Ls extends Ri {
|
|
10054
10054
|
constructor(e) {
|
|
10055
10055
|
super(21, e ?? "device is unsupported");
|
|
10056
10056
|
}
|
|
@@ -10182,7 +10182,7 @@ function yd(i) {
|
|
|
10182
10182
|
function lr(i, e) {
|
|
10183
10183
|
return (i == null ? void 0 : i.toLowerCase().replace(/audio\/|video\//y, "")) === (e == null ? void 0 : e.toLowerCase().replace(/audio\/|video\//y, ""));
|
|
10184
10184
|
}
|
|
10185
|
-
var
|
|
10185
|
+
var xn;
|
|
10186
10186
|
(function(i) {
|
|
10187
10187
|
i.telephone = {
|
|
10188
10188
|
maxBitrate: 12e3
|
|
@@ -10197,7 +10197,7 @@ var An;
|
|
|
10197
10197
|
}, i.musicHighQualityStereo = {
|
|
10198
10198
|
maxBitrate: 96e3
|
|
10199
10199
|
};
|
|
10200
|
-
})(
|
|
10200
|
+
})(xn || (xn = {}));
|
|
10201
10201
|
const en = {
|
|
10202
10202
|
h90: new Z(160, 90, 9e4, 20),
|
|
10203
10203
|
h180: new Z(320, 180, 16e4, 20),
|
|
@@ -10218,7 +10218,7 @@ const en = {
|
|
|
10218
10218
|
h720: new Z(960, 720, 13e5, 30),
|
|
10219
10219
|
h1080: new Z(1440, 1080, 23e5, 30),
|
|
10220
10220
|
h1440: new Z(1920, 1440, 38e5, 30)
|
|
10221
|
-
},
|
|
10221
|
+
}, Ns = {
|
|
10222
10222
|
h360fps3: new Z(640, 360, 2e5, 3, "medium"),
|
|
10223
10223
|
h720fps5: new Z(1280, 720, 4e5, 5, "medium"),
|
|
10224
10224
|
h720fps15: new Z(1280, 720, 15e5, 15, "medium"),
|
|
@@ -10230,14 +10230,14 @@ var P;
|
|
|
10230
10230
|
(function(i) {
|
|
10231
10231
|
i.Connected = "connected", i.Reconnecting = "reconnecting", i.Reconnected = "reconnected", i.Disconnected = "disconnected", i.ConnectionStateChanged = "connectionStateChanged", i.StateChanged = "connectionStateChanged", i.MediaDevicesChanged = "mediaDevicesChanged", i.ParticipantConnected = "participantConnected", i.ParticipantDisconnected = "participantDisconnected", i.TrackPublished = "trackPublished", i.TrackSubscribed = "trackSubscribed", i.TrackSubscriptionFailed = "trackSubscriptionFailed", i.TrackUnpublished = "trackUnpublished", i.TrackUnsubscribed = "trackUnsubscribed", i.TrackMuted = "trackMuted", i.TrackUnmuted = "trackUnmuted", i.LocalTrackPublished = "localTrackPublished", i.LocalTrackUnpublished = "localTrackUnpublished", i.LocalAudioSilenceDetected = "localAudioSilenceDetected", i.ActiveSpeakersChanged = "activeSpeakersChanged", i.ParticipantMetadataChanged = "participantMetadataChanged", i.ParticipantNameChanged = "participantNameChanged", i.RoomMetadataChanged = "roomMetadataChanged", i.DataReceived = "dataReceived", i.ConnectionQualityChanged = "connectionQualityChanged", i.TrackStreamStateChanged = "trackStreamStateChanged", i.TrackSubscriptionPermissionChanged = "trackSubscriptionPermissionChanged", i.TrackSubscriptionStatusChanged = "trackSubscriptionStatusChanged", i.AudioPlaybackStatusChanged = "audioPlaybackChanged", i.MediaDevicesError = "mediaDevicesError", i.ParticipantPermissionsChanged = "participantPermissionsChanged", i.SignalConnected = "signalConnected", i.RecordingStatusChanged = "recordingStatusChanged", i.ParticipantEncryptionStatusChanged = "participantEncryptionStatusChanged", i.EncryptionError = "encryptionError", i.DCBufferStatusChanged = "dcBufferStatusChanged", i.ActiveDeviceChanged = "activeDeviceChanged";
|
|
10232
10232
|
})(P || (P = {}));
|
|
10233
|
-
var
|
|
10233
|
+
var A;
|
|
10234
10234
|
(function(i) {
|
|
10235
10235
|
i.TrackPublished = "trackPublished", i.TrackSubscribed = "trackSubscribed", i.TrackSubscriptionFailed = "trackSubscriptionFailed", i.TrackUnpublished = "trackUnpublished", i.TrackUnsubscribed = "trackUnsubscribed", i.TrackMuted = "trackMuted", i.TrackUnmuted = "trackUnmuted", i.LocalTrackPublished = "localTrackPublished", i.LocalTrackUnpublished = "localTrackUnpublished", i.ParticipantMetadataChanged = "participantMetadataChanged", i.ParticipantNameChanged = "participantNameChanged", i.DataReceived = "dataReceived", i.IsSpeakingChanged = "isSpeakingChanged", i.ConnectionQualityChanged = "connectionQualityChanged", i.TrackStreamStateChanged = "trackStreamStateChanged", i.TrackSubscriptionPermissionChanged = "trackSubscriptionPermissionChanged", i.TrackSubscriptionStatusChanged = "trackSubscriptionStatusChanged", i.MediaDevicesError = "mediaDevicesError", i.ParticipantPermissionsChanged = "participantPermissionsChanged", i.PCTrackAdded = "pcTrackAdded";
|
|
10236
|
-
})(
|
|
10237
|
-
var
|
|
10236
|
+
})(A || (A = {}));
|
|
10237
|
+
var O;
|
|
10238
10238
|
(function(i) {
|
|
10239
10239
|
i.TransportsCreated = "transportsCreated", i.Connected = "connected", i.Disconnected = "disconnected", i.Resuming = "resuming", i.Resumed = "resumed", i.Restarting = "restarting", i.Restarted = "restarted", i.SignalResumed = "signalResumed", i.SignalRestarted = "signalRestarted", i.Closing = "closing", i.MediaTrackAdded = "mediaTrackAdded", i.ActiveSpeakersUpdate = "activeSpeakersUpdate", i.DataPacketReceived = "dataPacketReceived", i.RTPVideoMapUpdate = "rtpVideoMapUpdate", i.DCBufferStatusChanged = "dcBufferStatusChanged", i.ParticipantUpdate = "participantUpdate", i.RoomUpdate = "roomUpdate", i.SpeakersChanged = "speakersChanged", i.StreamStateChanged = "streamStateChanged", i.ConnectionQualityUpdate = "connectionQualityUpdate", i.SubscriptionError = "subscriptionError", i.SubscriptionPermissionUpdate = "subscriptionPermissionUpdate";
|
|
10240
|
-
})(
|
|
10240
|
+
})(O || (O = {}));
|
|
10241
10241
|
var R;
|
|
10242
10242
|
(function(i) {
|
|
10243
10243
|
i.Message = "message", i.Muted = "muted", i.Unmuted = "unmuted", i.Restarted = "restarted", i.Ended = "ended", i.Subscribed = "subscribed", i.Unsubscribed = "unsubscribed", i.UpdateSettings = "updateSettings", i.UpdateSubscription = "updateSubscription", i.AudioPlaybackStarted = "audioPlaybackStarted", i.AudioPlaybackFailed = "audioPlaybackFailed", i.AudioSilenceDetected = "audioSilenceDetected", i.VisibilityChanged = "visibilityChanged", i.VideoDimensionsChanged = "videoDimensionsChanged", i.ElementAttached = "elementAttached", i.ElementDetached = "elementDetached", i.UpstreamPaused = "upstreamPaused", i.UpstreamResumed = "upstreamResumed", i.SubscriptionPermissionChanged = "subscriptionPermissionChanged", i.SubscriptionStatusChanged = "subscriptionStatusChanged", i.SubscriptionFailed = "subscriptionFailed";
|
|
@@ -10319,10 +10319,10 @@ class C extends gt.EventEmitter {
|
|
|
10319
10319
|
});
|
|
10320
10320
|
}
|
|
10321
10321
|
addAppVisibilityListener() {
|
|
10322
|
-
|
|
10322
|
+
xe() ? (this.isInBackground = document.visibilityState === "hidden", document.addEventListener("visibilitychange", this.appVisibilityChangedListener)) : this.isInBackground = !1;
|
|
10323
10323
|
}
|
|
10324
10324
|
removeAppVisibilityListener() {
|
|
10325
|
-
|
|
10325
|
+
xe() && document.removeEventListener("visibilitychange", this.appVisibilityChangedListener);
|
|
10326
10326
|
}
|
|
10327
10327
|
}
|
|
10328
10328
|
function yi(i, e) {
|
|
@@ -10561,7 +10561,7 @@ const Rd = {
|
|
|
10561
10561
|
Firefox: "100"
|
|
10562
10562
|
};
|
|
10563
10563
|
function _d(i) {
|
|
10564
|
-
if (!
|
|
10564
|
+
if (!xe() || !("setCodecPreferences" in i))
|
|
10565
10565
|
return !1;
|
|
10566
10566
|
const e = _i();
|
|
10567
10567
|
if (!(e != null && e.name) || !e.version)
|
|
@@ -10582,9 +10582,9 @@ function Fn() {
|
|
|
10582
10582
|
return ((i = _i()) === null || i === void 0 ? void 0 : i.name) === "Safari";
|
|
10583
10583
|
}
|
|
10584
10584
|
function no() {
|
|
10585
|
-
return
|
|
10585
|
+
return xe() ? /Tablet|iPad|Mobile|Android|BlackBerry/.test(navigator.userAgent) : !1;
|
|
10586
10586
|
}
|
|
10587
|
-
function
|
|
10587
|
+
function xe() {
|
|
10588
10588
|
return typeof document < "u";
|
|
10589
10589
|
}
|
|
10590
10590
|
function ci() {
|
|
@@ -10605,7 +10605,7 @@ function ro() {
|
|
|
10605
10605
|
return i.platform;
|
|
10606
10606
|
}
|
|
10607
10607
|
function mr() {
|
|
10608
|
-
if (
|
|
10608
|
+
if (xe())
|
|
10609
10609
|
return window.devicePixelRatio;
|
|
10610
10610
|
if (ci()) {
|
|
10611
10611
|
let i = so();
|
|
@@ -10627,22 +10627,22 @@ function ao(i, e) {
|
|
|
10627
10627
|
}
|
|
10628
10628
|
return i === "" && e !== "" ? -1 : e === "" ? 1 : t.length == n.length ? 0 : t.length < n.length ? -1 : 1;
|
|
10629
10629
|
}
|
|
10630
|
-
function
|
|
10630
|
+
function xd(i) {
|
|
10631
10631
|
for (const e of i)
|
|
10632
10632
|
e.target.handleResize(e);
|
|
10633
10633
|
}
|
|
10634
|
-
function
|
|
10634
|
+
function Ad(i) {
|
|
10635
10635
|
for (const e of i)
|
|
10636
10636
|
e.target.handleVisibilityChanged(e);
|
|
10637
10637
|
}
|
|
10638
10638
|
let zn = null;
|
|
10639
|
-
const gr = () => (zn || (zn = new ResizeObserver(
|
|
10639
|
+
const gr = () => (zn || (zn = new ResizeObserver(xd)), zn);
|
|
10640
10640
|
let Kn = null;
|
|
10641
|
-
const vr = () => (Kn || (Kn = new IntersectionObserver(
|
|
10641
|
+
const vr = () => (Kn || (Kn = new IntersectionObserver(Ad, {
|
|
10642
10642
|
root: null,
|
|
10643
10643
|
rootMargin: "0px"
|
|
10644
10644
|
})), Kn);
|
|
10645
|
-
function
|
|
10645
|
+
function Od() {
|
|
10646
10646
|
var i;
|
|
10647
10647
|
const e = new Rt({
|
|
10648
10648
|
sdk: Ei.JS,
|
|
@@ -10700,7 +10700,7 @@ class Gt {
|
|
|
10700
10700
|
return this._locking = this._locking.then(() => t), n;
|
|
10701
10701
|
}
|
|
10702
10702
|
}
|
|
10703
|
-
function
|
|
10703
|
+
function Ld(i) {
|
|
10704
10704
|
return eo.includes(i);
|
|
10705
10705
|
}
|
|
10706
10706
|
function ri(i) {
|
|
@@ -10714,7 +10714,7 @@ function ri(i) {
|
|
|
10714
10714
|
return Array.isArray(i.ideal) ? i.ideal[0] : i.ideal;
|
|
10715
10715
|
throw Error("could not unwrap constraint");
|
|
10716
10716
|
}
|
|
10717
|
-
function
|
|
10717
|
+
function Nd(i) {
|
|
10718
10718
|
return i.startsWith("http") ? i.replace(/^(http)/, "ws") : i;
|
|
10719
10719
|
}
|
|
10720
10720
|
function br(i) {
|
|
@@ -10788,8 +10788,8 @@ class Ds {
|
|
|
10788
10788
|
});
|
|
10789
10789
|
}
|
|
10790
10790
|
connect(e, t, n, s) {
|
|
10791
|
-
this.connectOptions = n, e =
|
|
10792
|
-
const r =
|
|
10791
|
+
this.connectOptions = n, e = Nd(e), e = e.replace(/\/$/, ""), e += "/rtc";
|
|
10792
|
+
const r = Od(), a = Fd(t, r, n);
|
|
10793
10793
|
return new Promise((o, c) => g(this, void 0, void 0, function* () {
|
|
10794
10794
|
const u = () => g(this, void 0, void 0, function* () {
|
|
10795
10795
|
this.close(), clearTimeout(d), c(new ne("room connection has been cancelled (signal)"));
|
|
@@ -10868,14 +10868,14 @@ class Ds {
|
|
|
10868
10868
|
sendOffer(e) {
|
|
10869
10869
|
p.debug("sending offer", e), this.sendRequest({
|
|
10870
10870
|
case: "offer",
|
|
10871
|
-
value:
|
|
10871
|
+
value: An(e)
|
|
10872
10872
|
});
|
|
10873
10873
|
}
|
|
10874
10874
|
// answer a server-initiated offer
|
|
10875
10875
|
sendAnswer(e) {
|
|
10876
10876
|
return p.debug("sending answer"), this.sendRequest({
|
|
10877
10877
|
case: "answer",
|
|
10878
|
-
value:
|
|
10878
|
+
value: An(e)
|
|
10879
10879
|
});
|
|
10880
10880
|
}
|
|
10881
10881
|
sendIceCandidate(e, t) {
|
|
@@ -11083,7 +11083,7 @@ function kr(i) {
|
|
|
11083
11083
|
}
|
|
11084
11084
|
return e;
|
|
11085
11085
|
}
|
|
11086
|
-
function
|
|
11086
|
+
function An(i) {
|
|
11087
11087
|
return new Ce({
|
|
11088
11088
|
sdp: i.sdp,
|
|
11089
11089
|
type: i.type
|
|
@@ -11117,16 +11117,16 @@ var Sr;
|
|
|
11117
11117
|
i.Error = "cryptorError";
|
|
11118
11118
|
})(Sr || (Sr = {}));
|
|
11119
11119
|
function Vd() {
|
|
11120
|
-
return
|
|
11120
|
+
return $d() || Es();
|
|
11121
11121
|
}
|
|
11122
11122
|
function Es() {
|
|
11123
11123
|
return typeof window.RTCRtpScriptTransform < "u";
|
|
11124
11124
|
}
|
|
11125
|
-
function
|
|
11125
|
+
function $d() {
|
|
11126
11126
|
return typeof window.RTCRtpSender < "u" && // @ts-ignore
|
|
11127
11127
|
typeof window.RTCRtpSender.prototype.createEncodedStreams < "u";
|
|
11128
11128
|
}
|
|
11129
|
-
function
|
|
11129
|
+
function qd(i) {
|
|
11130
11130
|
const e = i.split("/")[1].toLowerCase();
|
|
11131
11131
|
if (!eo.includes(e))
|
|
11132
11132
|
throw Error("Video codec not supported: ".concat(e));
|
|
@@ -11423,7 +11423,7 @@ class nn extends C {
|
|
|
11423
11423
|
this._isUpstreamPaused = !0, this.emit(R.UpstreamPaused, this);
|
|
11424
11424
|
const t = _i();
|
|
11425
11425
|
if ((t == null ? void 0 : t.name) === "Safari" && ao(t.version, "12.0") < 0)
|
|
11426
|
-
throw new
|
|
11426
|
+
throw new Ls("pauseUpstream is not supported on Safari < 12.");
|
|
11427
11427
|
yield this.sender.replaceTrack(null);
|
|
11428
11428
|
} finally {
|
|
11429
11429
|
e();
|
|
@@ -11556,7 +11556,7 @@ class Wd extends gt.EventEmitter {
|
|
|
11556
11556
|
*/
|
|
11557
11557
|
setup(e) {
|
|
11558
11558
|
if (!Vd())
|
|
11559
|
-
throw new
|
|
11559
|
+
throw new Ls("tried to setup end-to-end encryption on an unsupported browser");
|
|
11560
11560
|
if (p.info("setting up e2ee"), e !== this.room) {
|
|
11561
11561
|
this.room = e, this.setupEventListeners(e, this.keyProvider);
|
|
11562
11562
|
const t = {
|
|
@@ -11583,7 +11583,7 @@ class Wd extends gt.EventEmitter {
|
|
|
11583
11583
|
!e || e.length === 0 ? p.warn("ignoring server sent trailer as it's empty") : this.postSifTrailer(e);
|
|
11584
11584
|
}
|
|
11585
11585
|
setupEngine(e) {
|
|
11586
|
-
e.on(
|
|
11586
|
+
e.on(O.RTPVideoMapUpdate, (t) => {
|
|
11587
11587
|
this.postRTPMap(t);
|
|
11588
11588
|
});
|
|
11589
11589
|
}
|
|
@@ -11612,7 +11612,7 @@ class Wd extends gt.EventEmitter {
|
|
|
11612
11612
|
this.setParticipantCryptorEnabled(this.room.localParticipant.isE2EEEnabled, this.room.localParticipant.identity), t.getKeys().forEach((n) => {
|
|
11613
11613
|
this.postKey(n);
|
|
11614
11614
|
});
|
|
11615
|
-
}), e.localParticipant.on(
|
|
11615
|
+
}), e.localParticipant.on(A.LocalTrackPublished, (n) => g(this, void 0, void 0, function* () {
|
|
11616
11616
|
this.setupE2EESender(n.track, n.track.sender);
|
|
11617
11617
|
})), t.on(ii.SetKey, (n) => this.postKey(n)).on(ii.RatchetRequest, (n, s) => this.postRatchetRequest(n, s));
|
|
11618
11618
|
}
|
|
@@ -11691,7 +11691,7 @@ class Wd extends gt.EventEmitter {
|
|
|
11691
11691
|
if (e.receiver) {
|
|
11692
11692
|
if (!(n != null && n.mimeType) || n.mimeType === "")
|
|
11693
11693
|
throw new TypeError("MimeType missing from trackInfo, cannot set up E2EE cryptor");
|
|
11694
|
-
this.handleReceiver(e.receiver, e.mediaStreamID, t, e.kind === "video" ?
|
|
11694
|
+
this.handleReceiver(e.receiver, e.mediaStreamID, t, e.kind === "video" ? qd(n.mimeType) : void 0);
|
|
11695
11695
|
}
|
|
11696
11696
|
}
|
|
11697
11697
|
setupE2EESender(e, t) {
|
|
@@ -12553,13 +12553,13 @@ const il = {
|
|
|
12553
12553
|
/**
|
|
12554
12554
|
* @deprecated
|
|
12555
12555
|
*/
|
|
12556
|
-
audioBitrate:
|
|
12557
|
-
audioPreset:
|
|
12556
|
+
audioBitrate: xn.music.maxBitrate,
|
|
12557
|
+
audioPreset: xn.music,
|
|
12558
12558
|
dtx: !0,
|
|
12559
12559
|
red: !0,
|
|
12560
12560
|
forceStereo: !1,
|
|
12561
12561
|
simulcast: !0,
|
|
12562
|
-
screenShareEncoding:
|
|
12562
|
+
screenShareEncoding: Ns.h1080fps15.encoding,
|
|
12563
12563
|
stopMicTrackOnMute: !1,
|
|
12564
12564
|
videoCodec: "vp8",
|
|
12565
12565
|
backupCodec: !1
|
|
@@ -12581,17 +12581,17 @@ const il = {
|
|
|
12581
12581
|
maxRetries: 1,
|
|
12582
12582
|
peerConnectionTimeout: 15e3,
|
|
12583
12583
|
websocketTimeout: 15e3
|
|
12584
|
-
}, _r = "_lossy", Ir = "_reliable", sl = 2 * 1e3,
|
|
12585
|
-
var
|
|
12584
|
+
}, _r = "_lossy", Ir = "_reliable", sl = 2 * 1e3, xr = "leave-reconnect";
|
|
12585
|
+
var Le;
|
|
12586
12586
|
(function(i) {
|
|
12587
12587
|
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";
|
|
12588
|
-
})(
|
|
12588
|
+
})(Le || (Le = {}));
|
|
12589
12589
|
class rl extends gt.EventEmitter {
|
|
12590
12590
|
get isClosed() {
|
|
12591
12591
|
return this._isClosed;
|
|
12592
12592
|
}
|
|
12593
12593
|
constructor(e) {
|
|
12594
|
-
super(), this.options = e, this.rtcConfig = {}, this.peerConnectionTimeout = po.peerConnectionTimeout, this.fullReconnectOnNext = !1, this.subscriberPrimary = !1, this.pcState =
|
|
12594
|
+
super(), this.options = e, this.rtcConfig = {}, this.peerConnectionTimeout = po.peerConnectionTimeout, this.fullReconnectOnNext = !1, this.subscriberPrimary = !1, this.pcState = Le.New, this._isClosed = !0, this.pendingTrackResolvers = {}, this.hasPublished = !1, this.reconnectAttempts = 0, this.reconnectStart = 0, this.attemptingReconnect = !1, this.joinAttempts = 0, this.maxJoinAttempts = 1, this.shouldFailNext = !1, this.handleDataChannel = (t) => {
|
|
12595
12595
|
let {
|
|
12596
12596
|
channel: n
|
|
12597
12597
|
} = t;
|
|
@@ -12620,7 +12620,7 @@ class rl extends gt.EventEmitter {
|
|
|
12620
12620
|
return;
|
|
12621
12621
|
}
|
|
12622
12622
|
const o = et.fromBinary(new Uint8Array(a));
|
|
12623
|
-
((n = o.value) === null || n === void 0 ? void 0 : n.case) === "speaker" ? this.emit(
|
|
12623
|
+
((n = o.value) === null || n === void 0 ? void 0 : n.case) === "speaker" ? this.emit(O.ActiveSpeakersUpdate, o.value.value.speakers) : ((s = o.value) === null || s === void 0 ? void 0 : s.case) === "user" && this.emit(O.DataPacketReceived, o.value.value, o.kind);
|
|
12624
12624
|
} finally {
|
|
12625
12625
|
r();
|
|
12626
12626
|
}
|
|
@@ -12641,7 +12641,7 @@ class rl extends gt.EventEmitter {
|
|
|
12641
12641
|
return;
|
|
12642
12642
|
p.warn("".concat(t, " disconnected")), this.reconnectAttempts === 0 && (this.reconnectStart = Date.now());
|
|
12643
12643
|
const s = (o) => {
|
|
12644
|
-
p.warn("could not recover connection after ".concat(this.reconnectAttempts, " attempts, ").concat(o, "ms. giving up")), this.emit(
|
|
12644
|
+
p.warn("could not recover connection after ".concat(this.reconnectAttempts, " attempts, ").concat(o, "ms. giving up")), this.emit(O.Disconnected), this.close();
|
|
12645
12645
|
}, r = Date.now() - this.reconnectStart;
|
|
12646
12646
|
let a = this.getNextRetryDelay({
|
|
12647
12647
|
elapsedMs: r,
|
|
@@ -12651,25 +12651,25 @@ class rl extends gt.EventEmitter {
|
|
|
12651
12651
|
s(r);
|
|
12652
12652
|
return;
|
|
12653
12653
|
}
|
|
12654
|
-
t ===
|
|
12654
|
+
t === xr && (a = 0), p.debug("reconnecting in ".concat(a, "ms")), this.clearReconnectTimeout(), this.token && this.regionUrlProvider && this.regionUrlProvider.updateToken(this.token), this.reconnectTimeout = ye.setTimeout(() => this.attemptReconnect(n), a);
|
|
12655
12655
|
}, this.waitForRestarted = () => new Promise((t, n) => {
|
|
12656
|
-
this.pcState ===
|
|
12656
|
+
this.pcState === Le.Connected && t();
|
|
12657
12657
|
const s = () => {
|
|
12658
|
-
this.off(
|
|
12658
|
+
this.off(O.Disconnected, r), t();
|
|
12659
12659
|
}, r = () => {
|
|
12660
|
-
this.off(
|
|
12660
|
+
this.off(O.Restarted, s), n();
|
|
12661
12661
|
};
|
|
12662
|
-
this.once(
|
|
12662
|
+
this.once(O.Restarted, s), this.once(O.Disconnected, r);
|
|
12663
12663
|
}), this.updateAndEmitDCBufferStatus = (t) => {
|
|
12664
12664
|
const n = this.isBufferStatusLow(t);
|
|
12665
|
-
typeof n < "u" && n !== this.dcBufferStatus.get(t) && (this.dcBufferStatus.set(t, n), this.emit(
|
|
12665
|
+
typeof n < "u" && n !== this.dcBufferStatus.get(t) && (this.dcBufferStatus.set(t, n), this.emit(O.DCBufferStatusChanged, n, t));
|
|
12666
12666
|
}, this.isBufferStatusLow = (t) => {
|
|
12667
12667
|
const n = this.dataChannelForKind(t);
|
|
12668
12668
|
if (n)
|
|
12669
12669
|
return n.bufferedAmount <= n.bufferedAmountLowThreshold;
|
|
12670
12670
|
}, this.handleBrowserOnLine = () => {
|
|
12671
12671
|
this.client.isReconnecting && (this.clearReconnectTimeout(), this.attemptReconnect(Be.RR_SIGNAL_DISCONNECTED));
|
|
12672
|
-
}, this.client = new Ds(), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new Gt(), this.dataProcessLock = new Gt(), this.dcBufferStatus = /* @__PURE__ */ new Map([[he.LOSSY, !0], [he.RELIABLE, !0]]), this.client.onParticipantUpdate = (t) => this.emit(
|
|
12672
|
+
}, this.client = new Ds(), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new Gt(), this.dataProcessLock = new Gt(), this.dcBufferStatus = /* @__PURE__ */ new Map([[he.LOSSY, !0], [he.RELIABLE, !0]]), this.client.onParticipantUpdate = (t) => this.emit(O.ParticipantUpdate, t), this.client.onConnectionQuality = (t) => this.emit(O.ConnectionQualityUpdate, t), this.client.onRoomUpdate = (t) => this.emit(O.RoomUpdate, t), this.client.onSubscriptionError = (t) => this.emit(O.SubscriptionError, t), this.client.onSubscriptionPermissionUpdate = (t) => this.emit(O.SubscriptionPermissionUpdate, t), this.client.onSpeakersChanged = (t) => this.emit(O.SpeakersChanged, t), this.client.onStreamStateUpdate = (t) => this.emit(O.StreamStateChanged, t);
|
|
12673
12673
|
}
|
|
12674
12674
|
join(e, t, n, s) {
|
|
12675
12675
|
return g(this, void 0, void 0, function* () {
|
|
@@ -12693,7 +12693,7 @@ class rl extends gt.EventEmitter {
|
|
|
12693
12693
|
return;
|
|
12694
12694
|
}
|
|
12695
12695
|
try {
|
|
12696
|
-
this._isClosed = !0, this.emit(
|
|
12696
|
+
this._isClosed = !0, this.emit(O.Closing), this.removeAllListeners(), this.deregisterOnLineListener(), this.clearPendingReconnect(), yield this.cleanupPeerConnections(), yield this.cleanupClient();
|
|
12697
12697
|
} finally {
|
|
12698
12698
|
e();
|
|
12699
12699
|
}
|
|
@@ -12792,7 +12792,7 @@ class rl extends gt.EventEmitter {
|
|
|
12792
12792
|
googDscp: !0
|
|
12793
12793
|
}]
|
|
12794
12794
|
};
|
|
12795
|
-
this.publisher = new Pr(s, r), this.subscriber = new Pr(s), this.emit(
|
|
12795
|
+
this.publisher = new Pr(s, r), this.subscriber = new Pr(s), this.emit(O.TransportsCreated, this.publisher, this.subscriber), this.publisher.pc.onicecandidate = (u) => {
|
|
12796
12796
|
u.candidate && (p.trace("adding ICE candidate for peer", u.candidate), this.client.sendIceCandidate(u.candidate, Ie.PUBLISHER));
|
|
12797
12797
|
}, this.subscriber.pc.onicecandidate = (u) => {
|
|
12798
12798
|
u.candidate && this.client.sendIceCandidate(u.candidate, Ie.SUBSCRIBER);
|
|
@@ -12802,14 +12802,14 @@ class rl extends gt.EventEmitter {
|
|
|
12802
12802
|
let a = this.publisher.pc, o = this.subscriber.pc, c = e.subscriberPrimary;
|
|
12803
12803
|
c && (a = this.subscriber.pc, o = this.publisher.pc, this.subscriber.pc.ondatachannel = this.handleDataChannel), this.primaryPC = a, a.onconnectionstatechange = () => g(this, void 0, void 0, function* () {
|
|
12804
12804
|
if (p.debug("primary PC state changed ".concat(a.connectionState)), a.connectionState === "connected") {
|
|
12805
|
-
const u = this.pcState ===
|
|
12806
|
-
this.pcState =
|
|
12805
|
+
const u = this.pcState === Le.New;
|
|
12806
|
+
this.pcState = Le.Connected, u && this.emit(O.Connected, e);
|
|
12807
12807
|
} else
|
|
12808
|
-
a.connectionState === "failed" && this.pcState ===
|
|
12808
|
+
a.connectionState === "failed" && this.pcState === Le.Connected && (this.pcState = Le.Disconnected, this.handleDisconnect("primary peerconnection", c ? Be.RR_SUBSCRIBER_FAILED : Be.RR_PUBLISHER_FAILED));
|
|
12809
12809
|
}), o.onconnectionstatechange = () => g(this, void 0, void 0, function* () {
|
|
12810
12810
|
p.debug("secondary PC state changed ".concat(o.connectionState)), o.connectionState === "failed" && this.handleDisconnect("secondary peerconnection", c ? Be.RR_PUBLISHER_FAILED : Be.RR_SUBSCRIBER_FAILED);
|
|
12811
12811
|
}), this.subscriber.pc.ontrack = (u) => {
|
|
12812
|
-
this.emit(
|
|
12812
|
+
this.emit(O.MediaTrackAdded, u.track, u.streams[0], u.receiver);
|
|
12813
12813
|
}, this.createDataChannels();
|
|
12814
12814
|
}
|
|
12815
12815
|
setupSignalClientCallbacks() {
|
|
@@ -12846,7 +12846,7 @@ class rl extends gt.EventEmitter {
|
|
|
12846
12846
|
}, this.client.onClose = () => {
|
|
12847
12847
|
this.handleDisconnect("signal", Be.RR_SIGNAL_DISCONNECTED);
|
|
12848
12848
|
}, this.client.onLeave = (e) => {
|
|
12849
|
-
e != null && e.canReconnect ? (this.fullReconnectOnNext = !0, this.primaryPC = void 0, this.handleDisconnect(
|
|
12849
|
+
e != null && e.canReconnect ? (this.fullReconnectOnNext = !0, this.primaryPC = void 0, this.handleDisconnect(xr)) : (this.emit(O.Disconnected, e == null ? void 0 : e.reason), this.close()), p.trace("leave request", {
|
|
12850
12850
|
leave: e
|
|
12851
12851
|
});
|
|
12852
12852
|
};
|
|
@@ -12965,7 +12965,7 @@ class rl extends gt.EventEmitter {
|
|
|
12965
12965
|
let a = !0;
|
|
12966
12966
|
r instanceof me ? (p.debug("received unrecoverable error", {
|
|
12967
12967
|
error: r
|
|
12968
|
-
}), a = !1) : r instanceof fn || (this.fullReconnectOnNext = !0), a ? this.handleDisconnect("reconnect", Be.RR_UNKNOWN) : (p.info("could not recover connection after ".concat(this.reconnectAttempts, " attempts, ").concat(Date.now() - this.reconnectStart, "ms. giving up")), this.emit(
|
|
12968
|
+
}), a = !1) : r instanceof fn || (this.fullReconnectOnNext = !0), a ? this.handleDisconnect("reconnect", Be.RR_UNKNOWN) : (p.info("could not recover connection after ".concat(this.reconnectAttempts, " attempts, ").concat(Date.now() - this.reconnectStart, "ms. giving up")), this.emit(O.Disconnected), yield this.close());
|
|
12969
12969
|
} finally {
|
|
12970
12970
|
this.attemptingReconnect = !1;
|
|
12971
12971
|
}
|
|
@@ -12988,7 +12988,7 @@ class rl extends gt.EventEmitter {
|
|
|
12988
12988
|
try {
|
|
12989
12989
|
if (!this.url || !this.token)
|
|
12990
12990
|
throw new me("could not reconnect, url or token not saved");
|
|
12991
|
-
p.info("reconnecting, attempt: ".concat(this.reconnectAttempts)), this.emit(
|
|
12991
|
+
p.info("reconnecting, attempt: ".concat(this.reconnectAttempts)), this.emit(O.Restarting), this.client.isConnected && (yield this.client.sendLeave()), yield this.cleanupPeerConnections(), yield this.cleanupClient();
|
|
12992
12992
|
let r;
|
|
12993
12993
|
try {
|
|
12994
12994
|
if (!this.signalOpts)
|
|
@@ -12999,7 +12999,7 @@ class rl extends gt.EventEmitter {
|
|
|
12999
12999
|
}
|
|
13000
13000
|
if (this.shouldFailNext)
|
|
13001
13001
|
throw this.shouldFailNext = !1, new Error("simulated failure");
|
|
13002
|
-
this.client.setReconnected(), this.emit(
|
|
13002
|
+
this.client.setReconnected(), this.emit(O.SignalRestarted, r), yield this.waitForPCReconnected(), (t = this.regionUrlProvider) === null || t === void 0 || t.resetAttempts(), this.emit(O.Restarted);
|
|
13003
13003
|
} catch (r) {
|
|
13004
13004
|
const a = yield (n = this.regionUrlProvider) === null || n === void 0 ? void 0 : n.getNextBestRegionUrl();
|
|
13005
13005
|
if (a) {
|
|
@@ -13017,7 +13017,7 @@ class rl extends gt.EventEmitter {
|
|
|
13017
13017
|
throw new me("could not reconnect, url or token not saved");
|
|
13018
13018
|
if (!this.publisher || !this.subscriber)
|
|
13019
13019
|
throw new me("publisher and subscriber connections unset");
|
|
13020
|
-
p.info("resuming signal connection, attempt ".concat(this.reconnectAttempts)), this.emit(
|
|
13020
|
+
p.info("resuming signal connection, attempt ".concat(this.reconnectAttempts)), this.emit(O.Resuming);
|
|
13021
13021
|
try {
|
|
13022
13022
|
this.setupSignalClientCallbacks();
|
|
13023
13023
|
const n = yield this.client.reconnect(this.url, this.token, this.participantSid, e);
|
|
@@ -13029,17 +13029,17 @@ class rl extends gt.EventEmitter {
|
|
|
13029
13029
|
let s = "";
|
|
13030
13030
|
throw n instanceof Error && (s = n.message), n instanceof ne && n.reason === 0 ? new me("could not reconnect, token might be expired") : new fn(s);
|
|
13031
13031
|
}
|
|
13032
|
-
if (this.emit(
|
|
13032
|
+
if (this.emit(O.SignalResumed), this.shouldFailNext)
|
|
13033
13033
|
throw this.shouldFailNext = !1, new Error("simulated failure");
|
|
13034
13034
|
this.subscriber.restartingIce = !0, this.hasPublished && (yield this.publisher.createAndSendOffer({
|
|
13035
13035
|
iceRestart: !0
|
|
13036
|
-
})), yield this.waitForPCReconnected(), this.client.setReconnected(), ((t = this.reliableDC) === null || t === void 0 ? void 0 : t.readyState) === "open" && this.reliableDC.id === null && this.createDataChannels(), this.emit(
|
|
13036
|
+
})), yield this.waitForPCReconnected(), this.client.setReconnected(), ((t = this.reliableDC) === null || t === void 0 ? void 0 : t.readyState) === "open" && this.reliableDC.id === null && this.createDataChannels(), this.emit(O.Resumed);
|
|
13037
13037
|
});
|
|
13038
13038
|
}
|
|
13039
13039
|
waitForPCInitialConnection(e, t) {
|
|
13040
13040
|
return g(this, void 0, void 0, function* () {
|
|
13041
|
-
if (this.pcState !==
|
|
13042
|
-
if (this.pcState !==
|
|
13041
|
+
if (this.pcState !== Le.Connected) {
|
|
13042
|
+
if (this.pcState !== Le.New)
|
|
13043
13043
|
throw new me("Expected peer connection to be new on initial connection");
|
|
13044
13044
|
return new Promise((n, s) => {
|
|
13045
13045
|
const r = () => {
|
|
@@ -13053,9 +13053,9 @@ class rl extends gt.EventEmitter {
|
|
|
13053
13053
|
const a = () => {
|
|
13054
13054
|
ye.clearTimeout(o), t == null || t.signal.removeEventListener("abort", r), n();
|
|
13055
13055
|
}, o = ye.setTimeout(() => {
|
|
13056
|
-
this.off(
|
|
13056
|
+
this.off(O.Connected, a), s(new ne("could not establish pc connection"));
|
|
13057
13057
|
}, e ?? this.peerConnectionTimeout);
|
|
13058
|
-
this.once(
|
|
13058
|
+
this.once(O.Connected, a);
|
|
13059
13059
|
});
|
|
13060
13060
|
}
|
|
13061
13061
|
});
|
|
@@ -13065,12 +13065,12 @@ class rl extends gt.EventEmitter {
|
|
|
13065
13065
|
return g(this, void 0, void 0, function* () {
|
|
13066
13066
|
const n = Date.now();
|
|
13067
13067
|
let s = n;
|
|
13068
|
-
for (this.pcState =
|
|
13068
|
+
for (this.pcState = Le.Reconnecting, p.debug("waiting for peer connection to reconnect"); s - n < this.peerConnectionTimeout && this.primaryPC !== void 0; ) {
|
|
13069
13069
|
if (
|
|
13070
13070
|
// on Safari, we don't get a connectionstatechanged event during ICE restart
|
|
13071
13071
|
// this means we'd have to check its status manually and update address
|
|
13072
13072
|
// manually
|
|
13073
|
-
s - n > sl && ((e = this.primaryPC) === null || e === void 0 ? void 0 : e.connectionState) === "connected" && (!this.hasPublished || ((t = this.publisher) === null || t === void 0 ? void 0 : t.pc.connectionState) === "connected") && (this.pcState =
|
|
13073
|
+
s - n > sl && ((e = this.primaryPC) === null || e === void 0 ? void 0 : e.connectionState) === "connected" && (!this.hasPublished || ((t = this.publisher) === null || t === void 0 ? void 0 : t.pc.connectionState) === "connected") && (this.pcState = Le.Connected), this.pcState === Le.Connected
|
|
13074
13074
|
)
|
|
13075
13075
|
return;
|
|
13076
13076
|
yield si(100), s = Date.now();
|
|
@@ -13130,11 +13130,11 @@ class rl extends gt.EventEmitter {
|
|
|
13130
13130
|
const n = () => {
|
|
13131
13131
|
p.debug("engine disconnected while negotiation was ongoing"), r(), e();
|
|
13132
13132
|
};
|
|
13133
|
-
this.isClosed && t("cannot negotiate on closed engine"), this.on(
|
|
13133
|
+
this.isClosed && t("cannot negotiate on closed engine"), this.on(O.Closing, n);
|
|
13134
13134
|
const s = setTimeout(() => {
|
|
13135
13135
|
t("negotiation timed out"), this.handleDisconnect("negotiation", Be.RR_SIGNAL_DISCONNECTED);
|
|
13136
13136
|
}, this.peerConnectionTimeout), r = () => {
|
|
13137
|
-
clearTimeout(s), this.off(
|
|
13137
|
+
clearTimeout(s), this.off(O.Closing, n);
|
|
13138
13138
|
};
|
|
13139
13139
|
this.publisher.once(Ci.NegotiationStarted, () => {
|
|
13140
13140
|
var a;
|
|
@@ -13145,8 +13145,8 @@ class rl extends gt.EventEmitter {
|
|
|
13145
13145
|
const o = /* @__PURE__ */ new Map();
|
|
13146
13146
|
a.forEach((c) => {
|
|
13147
13147
|
const u = c.codec.toLowerCase();
|
|
13148
|
-
|
|
13149
|
-
}), this.emit(
|
|
13148
|
+
Ld(u) && o.set(c.payload, u);
|
|
13149
|
+
}), this.emit(O.RTPVideoMapUpdate, o);
|
|
13150
13150
|
}), this.publisher.negotiate((a) => {
|
|
13151
13151
|
r(), t(a), a instanceof ks && (this.fullReconnectOnNext = !0), this.handleDisconnect("negotiation", Be.RR_UNKNOWN);
|
|
13152
13152
|
});
|
|
@@ -13176,10 +13176,10 @@ class rl extends gt.EventEmitter {
|
|
|
13176
13176
|
this.clearReconnectTimeout(), this.reconnectAttempts = 0;
|
|
13177
13177
|
}
|
|
13178
13178
|
registerOnLineListener() {
|
|
13179
|
-
|
|
13179
|
+
xe() && window.addEventListener("online", this.handleBrowserOnLine);
|
|
13180
13180
|
}
|
|
13181
13181
|
deregisterOnLineListener() {
|
|
13182
|
-
|
|
13182
|
+
xe() && window.removeEventListener("online", this.handleBrowserOnLine);
|
|
13183
13183
|
}
|
|
13184
13184
|
}
|
|
13185
13185
|
function al(i) {
|
|
@@ -13208,7 +13208,7 @@ function al(i) {
|
|
|
13208
13208
|
}
|
|
13209
13209
|
class fn extends Error {
|
|
13210
13210
|
}
|
|
13211
|
-
class
|
|
13211
|
+
class Ar {
|
|
13212
13212
|
constructor(e, t) {
|
|
13213
13213
|
this.lastUpdateAt = 0, this.settingsCacheTime = 3e3, this.attemptedRegions = [], this.serverUrl = new URL(e), this.token = t;
|
|
13214
13214
|
}
|
|
@@ -13351,7 +13351,7 @@ class Pe extends nn {
|
|
|
13351
13351
|
}
|
|
13352
13352
|
/* @internal */
|
|
13353
13353
|
startMonitor() {
|
|
13354
|
-
|
|
13354
|
+
xe() && (this.monitorInterval || (this.monitorInterval = setInterval(() => {
|
|
13355
13355
|
this.monitorSender();
|
|
13356
13356
|
}, Us)));
|
|
13357
13357
|
}
|
|
@@ -13415,12 +13415,12 @@ function mo(i, e) {
|
|
|
13415
13415
|
case "audio":
|
|
13416
13416
|
return new Pe(i, e, !1);
|
|
13417
13417
|
case "video":
|
|
13418
|
-
return new
|
|
13418
|
+
return new Ne(i, e, !1);
|
|
13419
13419
|
default:
|
|
13420
13420
|
throw new Ze("unsupported track type: ".concat(i.kind));
|
|
13421
13421
|
}
|
|
13422
13422
|
}
|
|
13423
|
-
const cl = Object.values(en), ul = Object.values(Ts), dl = Object.values(
|
|
13423
|
+
const cl = Object.values(en), ul = Object.values(Ts), dl = Object.values(Ns), ll = [en.h180, en.h360], hl = [Ts.h180, Ts.h360], fl = (i) => [{
|
|
13424
13424
|
scaleResolutionDownBy: 2,
|
|
13425
13425
|
fps: 3
|
|
13426
13426
|
}].map((t) => {
|
|
@@ -13453,7 +13453,7 @@ function go(i, e, t, n) {
|
|
|
13453
13453
|
if (!o)
|
|
13454
13454
|
return [a];
|
|
13455
13455
|
let h = [];
|
|
13456
|
-
i ? h = (s =
|
|
13456
|
+
i ? h = (s = Nr(n == null ? void 0 : n.screenShareSimulcastLayers)) !== null && s !== void 0 ? s : Lr(i, d) : h = (r = Nr(n == null ? void 0 : n.videoSimulcastLayers)) !== null && r !== void 0 ? r : Lr(i, d);
|
|
13457
13457
|
let f;
|
|
13458
13458
|
if (h.length > 0) {
|
|
13459
13459
|
const m = h[0];
|
|
@@ -13466,7 +13466,7 @@ function go(i, e, t, n) {
|
|
|
13466
13466
|
}
|
|
13467
13467
|
return Zn(e, t, [d]);
|
|
13468
13468
|
}
|
|
13469
|
-
function
|
|
13469
|
+
function Or(i, e, t) {
|
|
13470
13470
|
var n, s, r, a;
|
|
13471
13471
|
if (!t.backupCodec || t.backupCodec.codec === t.videoCodec)
|
|
13472
13472
|
return;
|
|
@@ -13505,7 +13505,7 @@ function ml(i, e, t) {
|
|
|
13505
13505
|
const n = e > t ? e / t : t / e;
|
|
13506
13506
|
return Math.abs(n - 16 / 9) < Math.abs(n - 4 / 3) ? cl : ul;
|
|
13507
13507
|
}
|
|
13508
|
-
function
|
|
13508
|
+
function Lr(i, e) {
|
|
13509
13509
|
if (i)
|
|
13510
13510
|
return fl(e);
|
|
13511
13511
|
const {
|
|
@@ -13540,7 +13540,7 @@ function Zn(i, e, t) {
|
|
|
13540
13540
|
}
|
|
13541
13541
|
return n;
|
|
13542
13542
|
}
|
|
13543
|
-
function
|
|
13543
|
+
function Nr(i) {
|
|
13544
13544
|
if (i)
|
|
13545
13545
|
return i.sort((e, t) => {
|
|
13546
13546
|
const {
|
|
@@ -13570,7 +13570,7 @@ class vo {
|
|
|
13570
13570
|
}
|
|
13571
13571
|
}
|
|
13572
13572
|
const gl = 5e3;
|
|
13573
|
-
class
|
|
13573
|
+
class Ne extends nn {
|
|
13574
13574
|
/**
|
|
13575
13575
|
*
|
|
13576
13576
|
* @param mediaTrack
|
|
@@ -13611,7 +13611,7 @@ class xe extends nn {
|
|
|
13611
13611
|
/* @internal */
|
|
13612
13612
|
startMonitor(e) {
|
|
13613
13613
|
var t;
|
|
13614
|
-
if (this.signalClient = e, !
|
|
13614
|
+
if (this.signalClient = e, !xe())
|
|
13615
13615
|
return;
|
|
13616
13616
|
const n = (t = this.sender) === null || t === void 0 ? void 0 : t.getParameters();
|
|
13617
13617
|
n && (this.encodings = n.encodings), !this.monitorInterval && (this.monitorInterval = setInterval(() => {
|
|
@@ -14292,7 +14292,7 @@ class vl {
|
|
|
14292
14292
|
}, this.onLeavePiP = () => {
|
|
14293
14293
|
var n;
|
|
14294
14294
|
this.isPiP = !1, (n = this.handleVisibilityChanged) === null || n === void 0 || n.call(this);
|
|
14295
|
-
}, this.element = e, this.isIntersecting = t ?? Ur(e), this.isPiP =
|
|
14295
|
+
}, this.element = e, this.isIntersecting = t ?? Ur(e), this.isPiP = xe() && document.pictureInPictureElement === e, this.visibilityChangedAt = 0;
|
|
14296
14296
|
}
|
|
14297
14297
|
width() {
|
|
14298
14298
|
return this.element.clientWidth;
|
|
@@ -14358,7 +14358,7 @@ class kt extends gt.EventEmitter {
|
|
|
14358
14358
|
* an [VideoTrack] if this publication holds a video track
|
|
14359
14359
|
*/
|
|
14360
14360
|
get videoTrack() {
|
|
14361
|
-
if (this.track instanceof
|
|
14361
|
+
if (this.track instanceof Ne || this.track instanceof Ki)
|
|
14362
14362
|
return this.track;
|
|
14363
14363
|
}
|
|
14364
14364
|
/** @internal */
|
|
@@ -14378,7 +14378,7 @@ class kt extends gt.EventEmitter {
|
|
|
14378
14378
|
e.Allowed = "allowed", e.NotAllowed = "not_allowed";
|
|
14379
14379
|
}(i.PermissionStatus || (i.PermissionStatus = {}));
|
|
14380
14380
|
})(kt || (kt = {}));
|
|
14381
|
-
class
|
|
14381
|
+
class On extends kt {
|
|
14382
14382
|
get isUpstreamPaused() {
|
|
14383
14383
|
var e;
|
|
14384
14384
|
return (e = this.track) === null || e === void 0 ? void 0 : e.isUpstreamPaused;
|
|
@@ -14522,11 +14522,11 @@ class ko extends gt.EventEmitter {
|
|
|
14522
14522
|
**/
|
|
14523
14523
|
_setMetadata(e) {
|
|
14524
14524
|
const t = this.metadata !== e, n = this.metadata;
|
|
14525
|
-
this.metadata = e, t && this.emit(
|
|
14525
|
+
this.metadata = e, t && this.emit(A.ParticipantMetadataChanged, n);
|
|
14526
14526
|
}
|
|
14527
14527
|
_setName(e) {
|
|
14528
14528
|
const t = this.name !== e;
|
|
14529
|
-
this.name = e, t && this.emit(
|
|
14529
|
+
this.name = e, t && this.emit(A.ParticipantNameChanged, e);
|
|
14530
14530
|
}
|
|
14531
14531
|
/** @internal */
|
|
14532
14532
|
setPermissions(e) {
|
|
@@ -14535,16 +14535,16 @@ class ko extends gt.EventEmitter {
|
|
|
14535
14535
|
var h;
|
|
14536
14536
|
return u !== ((h = this.permissions) === null || h === void 0 ? void 0 : h.canPublishSources[d]);
|
|
14537
14537
|
});
|
|
14538
|
-
return this.permissions = e, c && this.emit(
|
|
14538
|
+
return this.permissions = e, c && this.emit(A.ParticipantPermissionsChanged, o), c;
|
|
14539
14539
|
}
|
|
14540
14540
|
/** @internal */
|
|
14541
14541
|
setIsSpeaking(e) {
|
|
14542
|
-
e !== this.isSpeaking && (this.isSpeaking = e, e && (this.lastSpokeAt = /* @__PURE__ */ new Date()), this.emit(
|
|
14542
|
+
e !== this.isSpeaking && (this.isSpeaking = e, e && (this.lastSpokeAt = /* @__PURE__ */ new Date()), this.emit(A.IsSpeakingChanged, e));
|
|
14543
14543
|
}
|
|
14544
14544
|
/** @internal */
|
|
14545
14545
|
setConnectionQuality(e) {
|
|
14546
14546
|
const t = this._connectionQuality;
|
|
14547
|
-
this._connectionQuality = yl(e), t !== this._connectionQuality && this.emit(
|
|
14547
|
+
this._connectionQuality = yl(e), t !== this._connectionQuality && this.emit(A.ConnectionQualityChanged, this._connectionQuality);
|
|
14548
14548
|
}
|
|
14549
14549
|
/**
|
|
14550
14550
|
* @internal
|
|
@@ -14554,9 +14554,9 @@ class ko extends gt.EventEmitter {
|
|
|
14554
14554
|
}
|
|
14555
14555
|
addTrackPublication(e) {
|
|
14556
14556
|
e.on(R.Muted, () => {
|
|
14557
|
-
this.emit(
|
|
14557
|
+
this.emit(A.TrackMuted, e);
|
|
14558
14558
|
}), e.on(R.Unmuted, () => {
|
|
14559
|
-
this.emit(
|
|
14559
|
+
this.emit(A.TrackUnmuted, e);
|
|
14560
14560
|
});
|
|
14561
14561
|
const t = e;
|
|
14562
14562
|
switch (t.track && (t.track.sid = e.trackSid), this.tracks.set(e.trackSid, e), e.kind) {
|
|
@@ -14725,15 +14725,15 @@ class sn extends ko {
|
|
|
14725
14725
|
n.participantSid = this.sid;
|
|
14726
14726
|
}), this.signalClient.sendUpdateSubscription(t);
|
|
14727
14727
|
}), e.on(R.SubscriptionPermissionChanged, (t) => {
|
|
14728
|
-
this.emit(
|
|
14728
|
+
this.emit(A.TrackSubscriptionPermissionChanged, e, t);
|
|
14729
14729
|
}), e.on(R.SubscriptionStatusChanged, (t) => {
|
|
14730
|
-
this.emit(
|
|
14730
|
+
this.emit(A.TrackSubscriptionStatusChanged, e, t);
|
|
14731
14731
|
}), e.on(R.Subscribed, (t) => {
|
|
14732
|
-
this.emit(
|
|
14732
|
+
this.emit(A.TrackSubscribed, t, e);
|
|
14733
14733
|
}), e.on(R.Unsubscribed, (t) => {
|
|
14734
|
-
this.emit(
|
|
14734
|
+
this.emit(A.TrackUnsubscribed, t, e);
|
|
14735
14735
|
}), e.on(R.SubscriptionFailed, (t) => {
|
|
14736
|
-
this.emit(
|
|
14736
|
+
this.emit(A.TrackSubscriptionFailed, e.trackSid, t);
|
|
14737
14737
|
});
|
|
14738
14738
|
}
|
|
14739
14739
|
getTrack(e) {
|
|
@@ -14776,7 +14776,7 @@ class sn extends ko {
|
|
|
14776
14776
|
p.error("could not find published track", {
|
|
14777
14777
|
participant: this.sid,
|
|
14778
14778
|
trackSid: t
|
|
14779
|
-
}), this.emit(
|
|
14779
|
+
}), this.emit(A.TrackSubscriptionFailed, t);
|
|
14780
14780
|
return;
|
|
14781
14781
|
}
|
|
14782
14782
|
a === void 0 && (a = 20), setTimeout(() => {
|
|
@@ -14788,7 +14788,7 @@ class sn extends ko {
|
|
|
14788
14788
|
p.error("unable to subscribe because MediaStreamTrack is ended. Do not call MediaStreamTrack.stop()", {
|
|
14789
14789
|
participant: this.sid,
|
|
14790
14790
|
trackSid: t
|
|
14791
|
-
}), this.emit(
|
|
14791
|
+
}), this.emit(A.TrackSubscriptionFailed, t);
|
|
14792
14792
|
return;
|
|
14793
14793
|
}
|
|
14794
14794
|
const c = e.kind === "video";
|
|
@@ -14832,7 +14832,7 @@ class sn extends ko {
|
|
|
14832
14832
|
participantSid: this.sid
|
|
14833
14833
|
}), this.unpublishTrack(s.trackSid, !0));
|
|
14834
14834
|
}), n.forEach((s) => {
|
|
14835
|
-
this.emit(
|
|
14835
|
+
this.emit(A.TrackPublished, s);
|
|
14836
14836
|
}), !0;
|
|
14837
14837
|
}
|
|
14838
14838
|
/** @internal */
|
|
@@ -14851,7 +14851,7 @@ class sn extends ko {
|
|
|
14851
14851
|
this.videoTracks.delete(e);
|
|
14852
14852
|
break;
|
|
14853
14853
|
}
|
|
14854
|
-
t && this.emit(
|
|
14854
|
+
t && this.emit(A.TrackUnpublished, n);
|
|
14855
14855
|
}
|
|
14856
14856
|
/**
|
|
14857
14857
|
* @internal
|
|
@@ -14958,9 +14958,9 @@ class Fr extends ko {
|
|
|
14958
14958
|
}), this.unpublishTrack(r);
|
|
14959
14959
|
else if (r.isUserProvided)
|
|
14960
14960
|
yield r.mute();
|
|
14961
|
-
else if (r instanceof Pe || r instanceof
|
|
14961
|
+
else if (r instanceof Pe || r instanceof Ne)
|
|
14962
14962
|
try {
|
|
14963
|
-
if (
|
|
14963
|
+
if (xe())
|
|
14964
14964
|
try {
|
|
14965
14965
|
const a = yield navigator == null ? void 0 : navigator.permissions.query({
|
|
14966
14966
|
// the permission query for camera and microphone currently not supported in Safari and Firefox
|
|
@@ -15005,7 +15005,7 @@ class Fr extends ko {
|
|
|
15005
15005
|
this.engine = e, this.engine.client.onRemoteMuteChanged = (t, n) => {
|
|
15006
15006
|
const s = this.tracks.get(t);
|
|
15007
15007
|
!s || !s.track || (n ? s.mute() : s.unmute());
|
|
15008
|
-
}, this.engine.client.onSubscribedQualityUpdate = this.handleSubscribedQualityUpdate, this.engine.client.onLocalTrackUnpublished = this.handleLocalTrackUnpublished, this.engine.on(
|
|
15008
|
+
}, this.engine.client.onSubscribedQualityUpdate = this.handleSubscribedQualityUpdate, this.engine.client.onLocalTrackUnpublished = this.handleLocalTrackUnpublished, this.engine.on(O.Connected, this.handleReconnected).on(O.SignalRestarted, this.handleReconnected).on(O.SignalResumed, this.handleReconnected).on(O.Restarting, this.handleReconnecting).on(O.Resuming, this.handleReconnecting).on(O.Disconnected, this.handleDisconnected);
|
|
15009
15009
|
}
|
|
15010
15010
|
/**
|
|
15011
15011
|
* Sets and updates the metadata of the local participant.
|
|
@@ -15057,7 +15057,7 @@ class Fr extends ko {
|
|
|
15057
15057
|
/** @internal */
|
|
15058
15058
|
setPermissions(e) {
|
|
15059
15059
|
const t = this.permissions, n = super.setPermissions(e);
|
|
15060
|
-
return n && t && this.emit(
|
|
15060
|
+
return n && t && this.emit(A.ParticipantPermissionsChanged, t), n;
|
|
15061
15061
|
}
|
|
15062
15062
|
/** @internal */
|
|
15063
15063
|
setE2EEEnabled(e) {
|
|
@@ -15112,7 +15112,7 @@ class Fr extends ko {
|
|
|
15112
15112
|
} catch (u) {
|
|
15113
15113
|
throw c == null || c.forEach((d) => {
|
|
15114
15114
|
d.stop();
|
|
15115
|
-
}), u instanceof Error && !(u instanceof Ze) && this.emit(
|
|
15115
|
+
}), u instanceof Error && !(u instanceof Ze) && this.emit(A.MediaDevicesError, u), u;
|
|
15116
15116
|
} finally {
|
|
15117
15117
|
this.pendingPublishing.delete(e);
|
|
15118
15118
|
}
|
|
@@ -15180,12 +15180,12 @@ class Fr extends ko {
|
|
|
15180
15180
|
*/
|
|
15181
15181
|
createScreenTracks(e) {
|
|
15182
15182
|
return g(this, void 0, void 0, function* () {
|
|
15183
|
-
if (e === void 0 && (e = {}), e.resolution === void 0 && (e.resolution =
|
|
15184
|
-
throw new
|
|
15183
|
+
if (e === void 0 && (e = {}), e.resolution === void 0 && (e.resolution = Ns.h1080fps15.resolution), navigator.mediaDevices.getDisplayMedia === void 0)
|
|
15184
|
+
throw new Ls("getDisplayMedia not supported");
|
|
15185
15185
|
const t = Sd(e), n = yield navigator.mediaDevices.getDisplayMedia(t), s = n.getVideoTracks();
|
|
15186
15186
|
if (s.length === 0)
|
|
15187
15187
|
throw new Ze("no video track found");
|
|
15188
|
-
const r = new
|
|
15188
|
+
const r = new Ne(s[0], void 0, !1);
|
|
15189
15189
|
r.source = C.Source.ScreenShare;
|
|
15190
15190
|
const a = [r];
|
|
15191
15191
|
if (n.getAudioTracks().length > 0) {
|
|
@@ -15227,7 +15227,7 @@ class Fr extends ko {
|
|
|
15227
15227
|
e = new Pe(e, o, !0, this.audioContext);
|
|
15228
15228
|
break;
|
|
15229
15229
|
case "video":
|
|
15230
|
-
e = new
|
|
15230
|
+
e = new Ne(e, o, !0);
|
|
15231
15231
|
break;
|
|
15232
15232
|
default:
|
|
15233
15233
|
throw new Ze("unsupported MediaStreamTrack kind ".concat(e.kind));
|
|
@@ -15296,11 +15296,11 @@ class Fr extends ko {
|
|
|
15296
15296
|
height: Ue.height
|
|
15297
15297
|
}, p.error("could not determine track dimensions, using defaults", F);
|
|
15298
15298
|
}
|
|
15299
|
-
if (Q.width = F.width, Q.height = F.height, e instanceof
|
|
15299
|
+
if (Q.width = F.width, Q.height = F.height, e instanceof Ne)
|
|
15300
15300
|
if (Wi(t.videoCodec) && (t.scalabilityMode = (c = t.scalabilityMode) !== null && c !== void 0 ? c : "L3T3_KEY"), t.videoCodec && t.backupCodec && t.videoCodec !== t.backupCodec.codec) {
|
|
15301
15301
|
this.roomOptions.dynacast || (this.roomOptions.dynacast = !0);
|
|
15302
15302
|
const fe = Object.assign({}, t);
|
|
15303
|
-
fe.simulcast = !0, de =
|
|
15303
|
+
fe.simulcast = !0, de = Or(e, t.backupCodec.codec, fe), Q.simulcastCodecs = [new Je({
|
|
15304
15304
|
codec: t.videoCodec,
|
|
15305
15305
|
cid: e.mediaStreamTrack.id,
|
|
15306
15306
|
enableSimulcastLayers: !0
|
|
@@ -15325,19 +15325,19 @@ class Fr extends ko {
|
|
|
15325
15325
|
if (!this.engine || this.engine.isClosed)
|
|
15326
15326
|
throw new me("cannot publish track when not connected");
|
|
15327
15327
|
const ce = yield this.engine.addTrack(Q);
|
|
15328
|
-
let
|
|
15328
|
+
let q = !1, K = !1;
|
|
15329
15329
|
if (ce.codecs.forEach((F) => {
|
|
15330
|
-
lr(F.mimeType, t.videoCodec) ?
|
|
15330
|
+
lr(F.mimeType, t.videoCodec) ? q = !0 : t.backupCodec && lr(F.mimeType, t.backupCodec.codec) && (K = !0);
|
|
15331
15331
|
}), Q.simulcastCodecs.length > 0) {
|
|
15332
|
-
if (
|
|
15332
|
+
if (!q && !K)
|
|
15333
15333
|
throw Error("cannot publish track, codec not supported by server");
|
|
15334
|
-
if (
|
|
15334
|
+
if (!q && t.backupCodec) {
|
|
15335
15335
|
const F = t.backupCodec;
|
|
15336
15336
|
t = Object.assign({}, t), p.debug("primary codec ".concat(t.videoCodec, " not supported, fallback to ").concat(F.codec)), t.videoCodec = F.codec, t.videoEncoding = F.encoding, j = de;
|
|
15337
15337
|
}
|
|
15338
15338
|
}
|
|
15339
|
-
const
|
|
15340
|
-
if (
|
|
15339
|
+
const x = new On(e.kind, ce, e);
|
|
15340
|
+
if (x.options = t, e.sid = ce.sid, !this.engine.publisher)
|
|
15341
15341
|
throw new me("publisher is closed");
|
|
15342
15342
|
if (p.debug("publishing ".concat(e.kind, " with encodings"), {
|
|
15343
15343
|
encodings: j,
|
|
@@ -15361,7 +15361,7 @@ class Fr extends ko {
|
|
|
15361
15361
|
codec: e.codec,
|
|
15362
15362
|
maxbr: j[0].maxBitrate / 1e3
|
|
15363
15363
|
});
|
|
15364
|
-
return yield this.engine.negotiate(), e instanceof
|
|
15364
|
+
return yield this.engine.negotiate(), e instanceof Ne ? e.startMonitor(this.engine.client) : e instanceof Pe && e.startMonitor(), this.addTrackPublication(x), this.emit(A.LocalTrackPublished, x), x;
|
|
15365
15365
|
});
|
|
15366
15366
|
}
|
|
15367
15367
|
get isLocal() {
|
|
@@ -15378,9 +15378,9 @@ class Fr extends ko {
|
|
|
15378
15378
|
h.track && h.track === e && (r = h);
|
|
15379
15379
|
}), !r)
|
|
15380
15380
|
throw new Ze("track is not published");
|
|
15381
|
-
if (!(e instanceof
|
|
15381
|
+
if (!(e instanceof Ne))
|
|
15382
15382
|
throw new Ze("track is not a video track");
|
|
15383
|
-
const a = Object.assign(Object.assign({}, (s = this.roomOptions) === null || s === void 0 ? void 0 : s.publishDefaults), n), o =
|
|
15383
|
+
const a = Object.assign(Object.assign({}, (s = this.roomOptions) === null || s === void 0 ? void 0 : s.publishDefaults), n), o = Or(e, t, a);
|
|
15384
15384
|
if (!o) {
|
|
15385
15385
|
p.info("backup codec has been disabled, ignoring request to add additional codec for track");
|
|
15386
15386
|
return;
|
|
@@ -15427,7 +15427,7 @@ class Fr extends ko {
|
|
|
15427
15427
|
try {
|
|
15428
15428
|
for (const c of this.engine.publisher.pc.getTransceivers())
|
|
15429
15429
|
c.sender === o && (c.direction = "inactive", a = !0);
|
|
15430
|
-
if (this.engine.removeTrack(o) && (a = !0), e instanceof
|
|
15430
|
+
if (this.engine.removeTrack(o) && (a = !0), e instanceof Ne) {
|
|
15431
15431
|
for (const [, c] of e.simulcastCodecs)
|
|
15432
15432
|
c.sender && (this.engine.removeTrack(c.sender) && (a = !0), c.sender = void 0);
|
|
15433
15433
|
e.simulcastCodecs.clear();
|
|
@@ -15446,12 +15446,12 @@ class Fr extends ko {
|
|
|
15446
15446
|
this.videoTracks.delete(r.trackSid);
|
|
15447
15447
|
break;
|
|
15448
15448
|
}
|
|
15449
|
-
return this.emit(
|
|
15449
|
+
return this.emit(A.LocalTrackUnpublished, r), r.setTrack(void 0), a && (yield this.engine.negotiate()), r;
|
|
15450
15450
|
});
|
|
15451
15451
|
}
|
|
15452
15452
|
unpublishTracks(e) {
|
|
15453
15453
|
return g(this, void 0, void 0, function* () {
|
|
15454
|
-
return (yield Promise.all(e.map((n) => this.unpublishTrack(n)))).filter((n) => n instanceof
|
|
15454
|
+
return (yield Promise.all(e.map((n) => this.unpublishTrack(n)))).filter((n) => n instanceof On);
|
|
15455
15455
|
});
|
|
15456
15456
|
}
|
|
15457
15457
|
republishAllTracks(e) {
|
|
@@ -15462,7 +15462,7 @@ class Fr extends ko {
|
|
|
15462
15462
|
s.track && (e && (s.options = Object.assign(Object.assign({}, s.options), e)), n.push(s));
|
|
15463
15463
|
}), yield Promise.all(n.map((s) => g(this, void 0, void 0, function* () {
|
|
15464
15464
|
const r = s.track;
|
|
15465
|
-
yield this.unpublishTrack(r, !1), t && !r.isMuted && (r instanceof Pe || r instanceof
|
|
15465
|
+
yield this.unpublishTrack(r, !1), t && !r.isMuted && (r instanceof Pe || r instanceof Ne) && !r.isUserProvided && (p.debug("restarting existing track", {
|
|
15466
15466
|
track: s.trackSid
|
|
15467
15467
|
}), yield r.restartTrack()), yield this.publishTrack(r, s.options);
|
|
15468
15468
|
})));
|
|
@@ -15529,7 +15529,7 @@ class Fr extends ko {
|
|
|
15529
15529
|
let t;
|
|
15530
15530
|
return this.tracks.forEach((n) => {
|
|
15531
15531
|
const s = n.track;
|
|
15532
|
-
s && (e instanceof MediaStreamTrack ? (s instanceof Pe || s instanceof
|
|
15532
|
+
s && (e instanceof MediaStreamTrack ? (s instanceof Pe || s instanceof Ne) && s.mediaStreamTrack === e && (t = n) : e === s && (t = n));
|
|
15533
15533
|
}), t;
|
|
15534
15534
|
}
|
|
15535
15535
|
/** @internal */
|
|
@@ -15573,7 +15573,7 @@ class So extends gt.EventEmitter {
|
|
|
15573
15573
|
return p.info("already connected to room ".concat(this.name)), c(), Promise.resolve();
|
|
15574
15574
|
if (this.connectFuture)
|
|
15575
15575
|
return c(), this.connectFuture.promise;
|
|
15576
|
-
this.setAndEmitConnectionState(Y.Connecting), ((o = this.regionUrlProvider) === null || o === void 0 ? void 0 : o.getServerUrl().toString()) !== s && (this.regionUrl = void 0, this.regionUrlProvider = void 0), ws(new URL(s)) && (this.regionUrlProvider === void 0 ? this.regionUrlProvider = new
|
|
15576
|
+
this.setAndEmitConnectionState(Y.Connecting), ((o = this.regionUrlProvider) === null || o === void 0 ? void 0 : o.getServerUrl().toString()) !== s && (this.regionUrl = void 0, this.regionUrlProvider = void 0), ws(new URL(s)) && (this.regionUrlProvider === void 0 ? this.regionUrlProvider = new Ar(s, r) : this.regionUrlProvider.updateToken(r), this.regionUrlProvider.fetchRegionSettings().catch((h) => {
|
|
15577
15577
|
p.warn("could not fetch region settings", {
|
|
15578
15578
|
error: h
|
|
15579
15579
|
});
|
|
@@ -15648,7 +15648,7 @@ class So extends gt.EventEmitter {
|
|
|
15648
15648
|
} catch (d) {
|
|
15649
15649
|
throw this.recreateEngine(), this.handleDisconnect(this.options.stopLocalTrackOnUnpublish), d;
|
|
15650
15650
|
}
|
|
15651
|
-
|
|
15651
|
+
xe() && this.options.disconnectOnPageLeave && (window.addEventListener("pagehide", this.onPageLeave), window.addEventListener("beforeunload", this.onPageLeave)), xe() && (document.addEventListener("freeze", this.onPageLeave), (u = navigator.mediaDevices) === null || u === void 0 || u.addEventListener("devicechange", this.handleDeviceChange)), this.setAndEmitConnectionState(Y.Connected), this.emit(P.Connected), this.registerConnectionReconcile();
|
|
15652
15652
|
}), this.disconnect = function() {
|
|
15653
15653
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
15654
15654
|
return g(t, void 0, void 0, function* () {
|
|
@@ -15683,7 +15683,7 @@ class So extends gt.EventEmitter {
|
|
|
15683
15683
|
a.track && r.push(a);
|
|
15684
15684
|
}), yield Promise.all(r.map((a) => g(this, void 0, void 0, function* () {
|
|
15685
15685
|
const o = a.track;
|
|
15686
|
-
this.localParticipant.unpublishTrack(o, !1), o.isMuted || ((o instanceof Pe || o instanceof
|
|
15686
|
+
this.localParticipant.unpublishTrack(o, !1), o.isMuted || ((o instanceof Pe || o instanceof Ne) && o.source !== C.Source.ScreenShare && o.source !== C.Source.ScreenShareAudio && !o.isUserProvided && (p.debug("restarting existing track", {
|
|
15687
15687
|
track: a.trackSid
|
|
15688
15688
|
}), yield o.restartTrack()), p.debug("publishing new track", {
|
|
15689
15689
|
track: a.trackSid
|
|
@@ -15744,7 +15744,7 @@ class So extends gt.EventEmitter {
|
|
|
15744
15744
|
if (!a)
|
|
15745
15745
|
return;
|
|
15746
15746
|
const o = a.getTrackPublication(r.trackSid);
|
|
15747
|
-
!o || !o.track || (o.track.streamState = C.streamStateFromProto(r.state), a.emit(
|
|
15747
|
+
!o || !o.track || (o.track.streamState = C.streamStateFromProto(r.state), a.emit(A.TrackStreamStateChanged, o, o.track.streamState), this.emitWhenConnected(P.TrackStreamStateChanged, o, o.track.streamState, a));
|
|
15748
15748
|
});
|
|
15749
15749
|
}, this.handleSubscriptionPermissionUpdate = (s) => {
|
|
15750
15750
|
const r = this.participants.get(s.participantSid);
|
|
@@ -15760,7 +15760,7 @@ class So extends gt.EventEmitter {
|
|
|
15760
15760
|
a && a.setSubscriptionError(s.err);
|
|
15761
15761
|
}, this.handleDataPacket = (s, r) => {
|
|
15762
15762
|
const a = this.participants.get(s.participantSid);
|
|
15763
|
-
this.emit(P.DataReceived, s.payload, a, r, s.topic), a == null || a.emit(
|
|
15763
|
+
this.emit(P.DataReceived, s.payload, a, r, s.topic), a == null || a.emit(A.DataReceived, s.payload, r);
|
|
15764
15764
|
}, this.handleAudioPlaybackStarted = () => {
|
|
15765
15765
|
this.canPlaybackAudio || (this.audioEnabled = !0, this.emit(P.AudioPlaybackStatusChanged, !0));
|
|
15766
15766
|
}, this.handleAudioPlaybackFailed = (s) => {
|
|
@@ -15850,17 +15850,17 @@ class So extends gt.EventEmitter {
|
|
|
15850
15850
|
return (t = (e = this.roomInfo) === null || e === void 0 ? void 0 : e.numPublishers) !== null && t !== void 0 ? t : 0;
|
|
15851
15851
|
}
|
|
15852
15852
|
maybeCreateEngine() {
|
|
15853
|
-
this.engine && !this.engine.isClosed || (this.engine = new rl(this.options), this.engine.on(
|
|
15853
|
+
this.engine && !this.engine.isClosed || (this.engine = new rl(this.options), this.engine.on(O.ParticipantUpdate, this.handleParticipantUpdates).on(O.RoomUpdate, this.handleRoomUpdate).on(O.SpeakersChanged, this.handleSpeakersChanged).on(O.StreamStateChanged, this.handleStreamStateUpdate).on(O.ConnectionQualityUpdate, this.handleConnectionQualityUpdate).on(O.SubscriptionError, this.handleSubscriptionError).on(O.SubscriptionPermissionUpdate, this.handleSubscriptionPermissionUpdate).on(O.MediaTrackAdded, (e, t, n) => {
|
|
15854
15854
|
this.onTrackAdded(e, t, n);
|
|
15855
|
-
}).on(
|
|
15855
|
+
}).on(O.Disconnected, (e) => {
|
|
15856
15856
|
this.handleDisconnect(this.options.stopLocalTrackOnUnpublish, e);
|
|
15857
|
-
}).on(
|
|
15857
|
+
}).on(O.ActiveSpeakersUpdate, this.handleActiveSpeakersUpdate).on(O.DataPacketReceived, this.handleDataPacket).on(O.Resuming, () => {
|
|
15858
15858
|
this.clearConnectionReconcile(), this.setAndEmitConnectionState(Y.Reconnecting) && this.emit(P.Reconnecting), this.cachedParticipantSids = Array.from(this.participants.keys());
|
|
15859
|
-
}).on(
|
|
15859
|
+
}).on(O.Resumed, () => {
|
|
15860
15860
|
this.setAndEmitConnectionState(Y.Connected), this.emit(P.Reconnected), this.registerConnectionReconcile(), this.updateSubscriptions(), Array.from(this.participants.values()).filter((t) => !this.cachedParticipantSids.includes(t.sid)).forEach((t) => this.emit(P.ParticipantConnected, t)), this.cachedParticipantSids = [];
|
|
15861
|
-
}).on(
|
|
15861
|
+
}).on(O.SignalResumed, () => {
|
|
15862
15862
|
this.state === Y.Reconnecting && this.sendSyncState();
|
|
15863
|
-
}).on(
|
|
15863
|
+
}).on(O.Restarting, this.handleRestarting).on(O.SignalRestarted, this.handleSignalRestarted).on(O.DCBufferStatusChanged, (e, t) => {
|
|
15864
15864
|
this.emit(P.DCBufferStatusChanged, e, t);
|
|
15865
15865
|
}), this.localParticipant && this.localParticipant.setupEngine(this.engine), this.e2eeManager && this.e2eeManager.setupEngine(this.engine));
|
|
15866
15866
|
}
|
|
@@ -15891,7 +15891,7 @@ class So extends gt.EventEmitter {
|
|
|
15891
15891
|
p.debug("prepareConnection to ".concat(e));
|
|
15892
15892
|
try {
|
|
15893
15893
|
if (ws(new URL(e)) && t) {
|
|
15894
|
-
this.regionUrlProvider = new
|
|
15894
|
+
this.regionUrlProvider = new Ar(e, t);
|
|
15895
15895
|
const n = yield this.regionUrlProvider.getNextBestRegionUrl();
|
|
15896
15896
|
n && this.state === Y.Disconnected && (this.regionUrl = n, yield fetch(br(n), {
|
|
15897
15897
|
method: "HEAD"
|
|
@@ -16119,7 +16119,7 @@ class So extends gt.EventEmitter {
|
|
|
16119
16119
|
});
|
|
16120
16120
|
}
|
|
16121
16121
|
setupLocalParticipantEvents() {
|
|
16122
|
-
this.localParticipant.on(
|
|
16122
|
+
this.localParticipant.on(A.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).on(A.ParticipantNameChanged, this.onLocalParticipantNameChanged).on(A.TrackMuted, this.onLocalTrackMuted).on(A.TrackUnmuted, this.onLocalTrackUnmuted).on(A.LocalTrackPublished, this.onLocalTrackPublished).on(A.LocalTrackUnpublished, this.onLocalTrackUnpublished).on(A.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).on(A.MediaDevicesError, this.onMediaDevicesError).on(A.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged);
|
|
16123
16123
|
}
|
|
16124
16124
|
recreateEngine() {
|
|
16125
16125
|
var e;
|
|
@@ -16166,7 +16166,7 @@ class So extends gt.EventEmitter {
|
|
|
16166
16166
|
}), this.localParticipant.tracks.forEach((s) => {
|
|
16167
16167
|
var r, a;
|
|
16168
16168
|
s.track && this.localParticipant.unpublishTrack(s.track, e), e && ((r = s.track) === null || r === void 0 || r.detach(), (a = s.track) === null || a === void 0 || a.stop());
|
|
16169
|
-
}), this.localParticipant.off(
|
|
16169
|
+
}), this.localParticipant.off(A.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).off(A.ParticipantNameChanged, this.onLocalParticipantNameChanged).off(A.TrackMuted, this.onLocalTrackMuted).off(A.TrackUnmuted, this.onLocalTrackUnmuted).off(A.LocalTrackPublished, this.onLocalTrackPublished).off(A.LocalTrackUnpublished, this.onLocalTrackUnpublished).off(A.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).off(A.MediaDevicesError, this.onMediaDevicesError).off(A.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged), this.localParticipant.tracks.clear(), this.localParticipant.videoTracks.clear(), this.localParticipant.audioTracks.clear(), this.participants.clear(), this.activeSpeakers = [], this.audioContext && typeof this.options.expWebAudioMix == "boolean" && (this.audioContext.close(), this.audioContext = void 0), xe() && (window.removeEventListener("beforeunload", this.onPageLeave), window.removeEventListener("pagehide", this.onPageLeave), window.removeEventListener("freeze", this.onPageLeave), (n = navigator.mediaDevices) === null || n === void 0 || n.removeEventListener("devicechange", this.handleDeviceChange));
|
|
16170
16170
|
} finally {
|
|
16171
16171
|
this.setAndEmitConnectionState(Y.Disconnected), this.emit(P.Disconnected, t);
|
|
16172
16172
|
}
|
|
@@ -16199,33 +16199,33 @@ class So extends gt.EventEmitter {
|
|
|
16199
16199
|
if (this.participants.has(e))
|
|
16200
16200
|
return this.participants.get(e);
|
|
16201
16201
|
const n = this.createParticipant(e, t);
|
|
16202
|
-
return this.participants.set(e, n), this.identityToSid.set(t.identity, t.sid), this.emitWhenConnected(P.ParticipantConnected, n), n.on(
|
|
16202
|
+
return this.participants.set(e, n), this.identityToSid.set(t.identity, t.sid), this.emitWhenConnected(P.ParticipantConnected, n), n.on(A.TrackPublished, (s) => {
|
|
16203
16203
|
this.emitWhenConnected(P.TrackPublished, s, n);
|
|
16204
|
-
}).on(
|
|
16204
|
+
}).on(A.TrackSubscribed, (s, r) => {
|
|
16205
16205
|
s.kind === C.Kind.Audio && (s.on(R.AudioPlaybackStarted, this.handleAudioPlaybackStarted), s.on(R.AudioPlaybackFailed, this.handleAudioPlaybackFailed)), this.emit(P.TrackSubscribed, s, r, n);
|
|
16206
|
-
}).on(
|
|
16206
|
+
}).on(A.TrackUnpublished, (s) => {
|
|
16207
16207
|
this.emit(P.TrackUnpublished, s, n);
|
|
16208
|
-
}).on(
|
|
16208
|
+
}).on(A.TrackUnsubscribed, (s, r) => {
|
|
16209
16209
|
this.emit(P.TrackUnsubscribed, s, r, n);
|
|
16210
|
-
}).on(
|
|
16210
|
+
}).on(A.TrackSubscriptionFailed, (s) => {
|
|
16211
16211
|
this.emit(P.TrackSubscriptionFailed, s, n);
|
|
16212
|
-
}).on(
|
|
16212
|
+
}).on(A.TrackMuted, (s) => {
|
|
16213
16213
|
this.emitWhenConnected(P.TrackMuted, s, n);
|
|
16214
|
-
}).on(
|
|
16214
|
+
}).on(A.TrackUnmuted, (s) => {
|
|
16215
16215
|
this.emitWhenConnected(P.TrackUnmuted, s, n);
|
|
16216
|
-
}).on(
|
|
16216
|
+
}).on(A.ParticipantMetadataChanged, (s) => {
|
|
16217
16217
|
this.emitWhenConnected(P.ParticipantMetadataChanged, s, n);
|
|
16218
|
-
}).on(
|
|
16218
|
+
}).on(A.ParticipantNameChanged, (s) => {
|
|
16219
16219
|
this.emitWhenConnected(P.ParticipantNameChanged, s, n);
|
|
16220
|
-
}).on(
|
|
16220
|
+
}).on(A.ConnectionQualityChanged, (s) => {
|
|
16221
16221
|
this.emitWhenConnected(P.ConnectionQualityChanged, s, n);
|
|
16222
|
-
}).on(
|
|
16222
|
+
}).on(A.ParticipantPermissionsChanged, (s) => {
|
|
16223
16223
|
this.emitWhenConnected(P.ParticipantPermissionsChanged, s, n);
|
|
16224
|
-
}).on(
|
|
16224
|
+
}).on(A.TrackSubscriptionStatusChanged, (s, r) => {
|
|
16225
16225
|
this.emitWhenConnected(P.TrackSubscriptionStatusChanged, s, r, n);
|
|
16226
|
-
}).on(
|
|
16226
|
+
}).on(A.TrackSubscriptionFailed, (s, r) => {
|
|
16227
16227
|
this.emit(P.TrackSubscriptionFailed, s, n, r);
|
|
16228
|
-
}).on(
|
|
16228
|
+
}).on(A.TrackSubscriptionPermissionChanged, (s, r) => {
|
|
16229
16229
|
this.emitWhenConnected(P.TrackSubscriptionPermissionChanged, s, r, n);
|
|
16230
16230
|
}), t && n.updateInfo(t), n;
|
|
16231
16231
|
}
|
|
@@ -16239,11 +16239,11 @@ class So extends gt.EventEmitter {
|
|
|
16239
16239
|
c.isDesired !== r && a.push(c.trackSid);
|
|
16240
16240
|
});
|
|
16241
16241
|
}), this.engine.client.sendSyncState(new ft({
|
|
16242
|
-
answer:
|
|
16242
|
+
answer: An({
|
|
16243
16243
|
sdp: n.sdp,
|
|
16244
16244
|
type: n.type
|
|
16245
16245
|
}),
|
|
16246
|
-
offer: s ?
|
|
16246
|
+
offer: s ? An({
|
|
16247
16247
|
sdp: s.sdp,
|
|
16248
16248
|
type: s.type
|
|
16249
16249
|
}) : void 0,
|
|
@@ -16325,25 +16325,25 @@ class So extends gt.EventEmitter {
|
|
|
16325
16325
|
identity: "simulated-local",
|
|
16326
16326
|
name: "local-name"
|
|
16327
16327
|
})), this.setupLocalParticipantEvents(), this.emit(P.SignalConnected), this.emit(P.Connected), this.setAndEmitConnectionState(Y.Connected), s.video) {
|
|
16328
|
-
const a = new
|
|
16328
|
+
const a = new On(C.Kind.Video, new _e({
|
|
16329
16329
|
source: re.CAMERA,
|
|
16330
16330
|
sid: Math.floor(Math.random() * 1e4).toString(),
|
|
16331
16331
|
type: ve.AUDIO,
|
|
16332
16332
|
name: "video-dummy"
|
|
16333
|
-
}), new
|
|
16333
|
+
}), new Ne(s.useRealTracks ? (yield window.navigator.mediaDevices.getUserMedia({
|
|
16334
16334
|
video: !0
|
|
16335
16335
|
})).getVideoTracks()[0] : yr((t = 160 * r.aspectRatios[0]) !== null && t !== void 0 ? t : 1, 160, !0, !0)));
|
|
16336
|
-
this.localParticipant.addTrackPublication(a), this.localParticipant.emit(
|
|
16336
|
+
this.localParticipant.addTrackPublication(a), this.localParticipant.emit(A.LocalTrackPublished, a);
|
|
16337
16337
|
}
|
|
16338
16338
|
if (s.audio) {
|
|
16339
|
-
const a = new
|
|
16339
|
+
const a = new On(C.Kind.Audio, new _e({
|
|
16340
16340
|
source: re.MICROPHONE,
|
|
16341
16341
|
sid: Math.floor(Math.random() * 1e4).toString(),
|
|
16342
16342
|
type: ve.AUDIO
|
|
16343
16343
|
}), new Pe(s.useRealTracks ? (yield navigator.mediaDevices.getUserMedia({
|
|
16344
16344
|
audio: !0
|
|
16345
16345
|
})).getAudioTracks()[0] : Yn()));
|
|
16346
|
-
this.localParticipant.addTrackPublication(a), this.localParticipant.emit(
|
|
16346
|
+
this.localParticipant.addTrackPublication(a), this.localParticipant.emit(A.LocalTrackPublished, a);
|
|
16347
16347
|
}
|
|
16348
16348
|
for (let a = 0; a < r.count - 1; a += 1) {
|
|
16349
16349
|
let o = new De({
|
|
@@ -16384,26 +16384,26 @@ class So extends gt.EventEmitter {
|
|
|
16384
16384
|
}), super.emit(e, ...n);
|
|
16385
16385
|
}
|
|
16386
16386
|
}
|
|
16387
|
-
var
|
|
16387
|
+
var $e;
|
|
16388
16388
|
(function(i) {
|
|
16389
16389
|
i[i.IDLE = 0] = "IDLE", i[i.RUNNING = 1] = "RUNNING", i[i.SKIPPED = 2] = "SKIPPED", i[i.SUCCESS = 3] = "SUCCESS", i[i.FAILED = 4] = "FAILED";
|
|
16390
|
-
})(
|
|
16390
|
+
})($e || ($e = {}));
|
|
16391
16391
|
class Ii extends gt.EventEmitter {
|
|
16392
16392
|
constructor(e, t) {
|
|
16393
16393
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
16394
|
-
super(), this.status =
|
|
16394
|
+
super(), this.status = $e.IDLE, this.logs = [], this.errorsAsWarnings = !1, this.url = e, this.token = t, this.name = this.constructor.name, this.room = new So(n.roomOptions), this.connectOptions = n.connectOptions, n.errorsAsWarnings && (this.errorsAsWarnings = n.errorsAsWarnings);
|
|
16395
16395
|
}
|
|
16396
16396
|
run(e) {
|
|
16397
16397
|
return g(this, void 0, void 0, function* () {
|
|
16398
|
-
if (this.status !==
|
|
16398
|
+
if (this.status !== $e.IDLE)
|
|
16399
16399
|
throw Error("check is running already");
|
|
16400
|
-
this.setStatus(
|
|
16400
|
+
this.setStatus($e.RUNNING);
|
|
16401
16401
|
try {
|
|
16402
16402
|
yield this.perform();
|
|
16403
16403
|
} catch (t) {
|
|
16404
16404
|
t instanceof Error && (this.errorsAsWarnings ? this.appendWarning(t.message) : this.appendError(t.message));
|
|
16405
16405
|
}
|
|
16406
|
-
return yield this.disconnect(), yield new Promise((t) => setTimeout(t, 500)), this.status !==
|
|
16406
|
+
return yield this.disconnect(), yield new Promise((t) => setTimeout(t, 500)), this.status !== $e.SKIPPED && this.setStatus(this.isSuccess() ? $e.SUCCESS : $e.FAILED), e && e(), this.getInfo();
|
|
16407
16407
|
});
|
|
16408
16408
|
}
|
|
16409
16409
|
isSuccess() {
|
|
@@ -16420,7 +16420,7 @@ class Ii extends gt.EventEmitter {
|
|
|
16420
16420
|
});
|
|
16421
16421
|
}
|
|
16422
16422
|
skip() {
|
|
16423
|
-
this.setStatus(
|
|
16423
|
+
this.setStatus($e.SKIPPED);
|
|
16424
16424
|
}
|
|
16425
16425
|
appendMessage(e) {
|
|
16426
16426
|
this.logs.push({
|
|
@@ -16656,7 +16656,7 @@ class Fl extends gt.EventEmitter {
|
|
|
16656
16656
|
const e = this.checkResults.size;
|
|
16657
16657
|
return this.checkResults.set(e, {
|
|
16658
16658
|
logs: [],
|
|
16659
|
-
status:
|
|
16659
|
+
status: $e.IDLE,
|
|
16660
16660
|
name: "",
|
|
16661
16661
|
description: ""
|
|
16662
16662
|
}), e;
|
|
@@ -16665,7 +16665,7 @@ class Fl extends gt.EventEmitter {
|
|
|
16665
16665
|
this.checkResults.set(e, t), this.emit("checkUpdate", e, t);
|
|
16666
16666
|
}
|
|
16667
16667
|
isSuccess() {
|
|
16668
|
-
return Array.from(this.checkResults.values()).every((e) => e.status !==
|
|
16668
|
+
return Array.from(this.checkResults.values()).every((e) => e.status !== $e.FAILED);
|
|
16669
16669
|
}
|
|
16670
16670
|
getResults() {
|
|
16671
16671
|
return Array.from(this.checkResults.values());
|
|
@@ -16711,7 +16711,7 @@ class Fl extends gt.EventEmitter {
|
|
|
16711
16711
|
});
|
|
16712
16712
|
}
|
|
16713
16713
|
}
|
|
16714
|
-
function
|
|
16714
|
+
function xl() {
|
|
16715
16715
|
const i = document.createElement("style");
|
|
16716
16716
|
return i.textContent = `
|
|
16717
16717
|
* {
|
|
@@ -16719,7 +16719,7 @@ function Al() {
|
|
|
16719
16719
|
}
|
|
16720
16720
|
`, i;
|
|
16721
16721
|
}
|
|
16722
|
-
function
|
|
16722
|
+
function Al() {
|
|
16723
16723
|
const i = document.createElement("style");
|
|
16724
16724
|
return i.textContent = `
|
|
16725
16725
|
* {
|
|
@@ -16728,8 +16728,8 @@ function Ol() {
|
|
|
16728
16728
|
}
|
|
16729
16729
|
`, i;
|
|
16730
16730
|
}
|
|
16731
|
-
function
|
|
16732
|
-
Jo(i, "svelte-
|
|
16731
|
+
function Ol(i) {
|
|
16732
|
+
Jo(i, "svelte-xrxt5b", '#liveroom-client-element.svelte-xrxt5b.svelte-xrxt5b{font-family:Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}#users-container.svelte-xrxt5b.svelte-xrxt5b{z-index:99999;position:fixed;inset:0;overflow:hidden;pointer-events:none}.user.svelte-xrxt5b.svelte-xrxt5b{z-index:10;position:absolute;top:0;left:0;user-select:none;transform:translate(var(--x), var(--y));transition:transform 100ms linear;will-change:transform}.user.svelte-xrxt5b .cursor.svelte-xrxt5b{position:absolute;top:0;left:0;color:var(--color);transform-origin:top left;transform:rotate(6deg)}.user[data-isself="true"].svelte-xrxt5b .cursor.svelte-xrxt5b{display:none}.user-label.svelte-xrxt5b.svelte-xrxt5b{font-weight:600;color:black;background-color:var(--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:9999px;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-xrxt5b .user-label.svelte-xrxt5b{display:flex;flex-direction:column;justify-content:center;align-items:center}.user.svelte-xrxt5b .user-label[data-hidevideo="true"].svelte-xrxt5b{position:absolute;top:20px;left:16px}.user.svelte-xrxt5b .user-label[data-hidevideo="false"].svelte-xrxt5b{position:relative;margin:0.5rem 0 0 0.5rem}.user[data-isself="true"].svelte-xrxt5b .user-label.svelte-xrxt5b{display:none}.user-label.svelte-xrxt5b .user-name.svelte-xrxt5b{display:flex;justify-content:center;align-items:center;background-color:var(--color);font-size:0.7rem}.user.svelte-xrxt5b .user-label[data-hidevideo="true"] .user-name.svelte-xrxt5b{padding:0.15rem 0.5rem}.user.svelte-xrxt5b .user-label[data-hidevideo="false"] .user-name.svelte-xrxt5b{position:absolute;inset-inline:0;bottom:-2px;padding:0.15rem 0.5rem 0.35rem 0.5rem}.user.svelte-xrxt5b .user-label #video-container.svelte-xrxt5b{height:7rem;width:7rem;overflow:hidden;display:flex;justify-content:center;align-items:center}.user.svelte-xrxt5b .user-label[data-hidevideo="true"] #video-container.svelte-xrxt5b{display:none}.user.svelte-xrxt5b .user-label #video-container video.svelte-xrxt5b{height:100%;aspect-ratio:16 / 9;transform:scaleX(-1)}.user.svelte-xrxt5b .halo.svelte-xrxt5b{transform:scale(0);z-index:-1;position:absolute;top:-60px;left:-60px;width:120px;height:120px;border-radius:9999px;background-color:var(--color);opacity:0.25;transition:transform 100ms ease-out;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-xrxt5b .halo[data-show="true"].svelte-xrxt5b{transform:scale(1)}');
|
|
16733
16733
|
}
|
|
16734
16734
|
function Br(i, e, t) {
|
|
16735
16735
|
const n = i.slice();
|
|
@@ -16753,10 +16753,10 @@ function Jr(i) {
|
|
|
16753
16753
|
e = Xe("div");
|
|
16754
16754
|
for (let a = 0; a < t.length; a += 1)
|
|
16755
16755
|
t[a].c();
|
|
16756
|
-
z(e, "id", "users-container"), z(e, "class", "svelte-
|
|
16756
|
+
z(e, "id", "users-container"), z(e, "class", "svelte-xrxt5b");
|
|
16757
16757
|
},
|
|
16758
16758
|
m(a, o) {
|
|
16759
|
-
|
|
16759
|
+
Ln(a, e, o);
|
|
16760
16760
|
for (let c = 0; c < t.length; c += 1)
|
|
16761
16761
|
t[c] && t[c].m(e, null);
|
|
16762
16762
|
},
|
|
@@ -16778,14 +16778,14 @@ function jr(i, e) {
|
|
|
16778
16778
|
let t, n, s, r, a, o, c, u, d = (
|
|
16779
16779
|
/*user*/
|
|
16780
16780
|
e[28]
|
|
16781
|
-
), h, f, m
|
|
16781
|
+
), h, f, m = (
|
|
16782
16782
|
/*user*/
|
|
16783
16783
|
e[28].name + ""
|
|
16784
|
-
), T, w, I, D, Q, j, de;
|
|
16784
|
+
), b, T, w, I, D, Q, j, de;
|
|
16785
16785
|
const ce = () => (
|
|
16786
16786
|
/*video_binding*/
|
|
16787
16787
|
e[12](c, d)
|
|
16788
|
-
),
|
|
16788
|
+
), q = () => (
|
|
16789
16789
|
/*video_binding*/
|
|
16790
16790
|
e[12](null, d)
|
|
16791
16791
|
);
|
|
@@ -16793,9 +16793,9 @@ function jr(i, e) {
|
|
|
16793
16793
|
key: i,
|
|
16794
16794
|
first: null,
|
|
16795
16795
|
c() {
|
|
16796
|
-
t = Xe("div"), n =
|
|
16797
|
-
e[28].id}`), z(c, "class", "svelte-
|
|
16798
|
-
e[28].camera_enabled), z(
|
|
16796
|
+
t = Xe("div"), n = $s("svg"), s = $s("path"), r = cn(), a = Xe("div"), o = Xe("div"), c = Xe("video"), h = cn(), f = Xe("div"), b = qr(m), w = cn(), I = Xe("div"), Q = cn(), z(s, "d", "M2.2706 0.0593359L25.4277 8.05957H25.45926C25.65896 8.13153 25.83096 8.25952 25.95221 8.42653C26.07357 8.59354 26.13851 8.79166 26.13851 8.99459C26.13851 9.19751 26.07357 9.39564 25.95221 9.56265C25.83096 9.72966 25.65896 9.85765 25.45926 9.92962L15.3543 13.7698L11.3124 23.37C11.2344 23.5561 11.0994 23.7156 10.9248 23.828C10.7503 23.9402 10.5443 24.0002 10.3335 24C10.1172 24 9.9061 23.9365 9.7291 23.8184C9.552 23.7004 9.4176 23.5332 9.344 23.34L0.9233 1.33937C0.8555 1.16076 0.8426 0.967504 0.8861 0.782189C0.9297 0.596873 1.0278 0.427163 1.1691 0.292901C1.3105 0.158639 1.4891 0.0653762 1.6841 0.0240151C1.8792 -0.0173461 2.0826 -0.00509504 2.2706 0.0593359Z"), z(n, "width", "23"), z(n, "viewBox", "0 0 27 24"), z(n, "fill", "currentColor"), z(n, "aria-hidden", "true"), z(n, "xmlns", "http://www.w3.org/2000/svg"), z(n, "class", "cursor svelte-xrxt5b"), z(c, "id", u = `user-video-${/*user*/
|
|
16797
|
+
e[28].id}`), z(c, "class", "svelte-xrxt5b"), z(o, "id", "video-container"), z(o, "class", "svelte-xrxt5b"), z(f, "class", "user-name svelte-xrxt5b"), z(a, "class", "user-label svelte-xrxt5b"), z(a, "data-hidevideo", T = !/*user*/
|
|
16798
|
+
e[28].camera_enabled), z(I, "class", "halo svelte-xrxt5b"), z(I, "data-show", D = /*user*/
|
|
16799
16799
|
(e[28].id == /*me*/
|
|
16800
16800
|
e[0].id && /*user*/
|
|
16801
16801
|
e[28].is_shift_key_down || /*user*/
|
|
@@ -16804,7 +16804,7 @@ function jr(i, e) {
|
|
|
16804
16804
|
(e[28].is_shift_key_down || /*user*/
|
|
16805
16805
|
e[28].is_mouse_down)) && /*users_count*/
|
|
16806
16806
|
e[3] > 1), z(t, "id", j = "user-" + /*user*/
|
|
16807
|
-
e[28].id), z(t, "class", "user svelte-
|
|
16807
|
+
e[28].id), z(t, "class", "user svelte-xrxt5b"), z(t, "data-isself", de = /*user*/
|
|
16808
16808
|
e[28].id == /*me*/
|
|
16809
16809
|
e[0].id), hi(
|
|
16810
16810
|
t,
|
|
@@ -16819,19 +16819,19 @@ function jr(i, e) {
|
|
|
16819
16819
|
e[28].y
|
|
16820
16820
|
) + "vh"), this.first = t;
|
|
16821
16821
|
},
|
|
16822
|
-
m(K,
|
|
16823
|
-
|
|
16822
|
+
m(K, x) {
|
|
16823
|
+
Ln(K, t, x), Oe(t, n), Oe(n, s), Oe(t, r), Oe(t, a), Oe(a, o), Oe(o, c), ce(), Oe(a, h), Oe(a, f), Oe(f, b), Oe(t, w), Oe(t, I), Oe(t, Q);
|
|
16824
16824
|
},
|
|
16825
|
-
p(K,
|
|
16826
|
-
e = K,
|
|
16825
|
+
p(K, x) {
|
|
16826
|
+
e = K, x & /*users*/
|
|
16827
16827
|
2 && u !== (u = `user-video-${/*user*/
|
|
16828
16828
|
e[28].id}`) && z(c, "id", u), d !== /*user*/
|
|
16829
|
-
e[28] && (
|
|
16830
|
-
e[28], ce()),
|
|
16831
|
-
2 &&
|
|
16832
|
-
e[28].
|
|
16833
|
-
2 &&
|
|
16834
|
-
e[28].
|
|
16829
|
+
e[28] && (q(), d = /*user*/
|
|
16830
|
+
e[28], ce()), x & /*users*/
|
|
16831
|
+
2 && m !== (m = /*user*/
|
|
16832
|
+
e[28].name + "") && qo(b, m), x & /*users*/
|
|
16833
|
+
2 && T !== (T = !/*user*/
|
|
16834
|
+
e[28].camera_enabled) && z(a, "data-hidevideo", T), x & /*users, me, users_count*/
|
|
16835
16835
|
11 && D !== (D = /*user*/
|
|
16836
16836
|
(e[28].id == /*me*/
|
|
16837
16837
|
e[0].id && /*user*/
|
|
@@ -16840,33 +16840,33 @@ function jr(i, e) {
|
|
|
16840
16840
|
e[0].id && /*user*/
|
|
16841
16841
|
(e[28].is_shift_key_down || /*user*/
|
|
16842
16842
|
e[28].is_mouse_down)) && /*users_count*/
|
|
16843
|
-
e[3] > 1) && z(I, "data-show", D),
|
|
16843
|
+
e[3] > 1) && z(I, "data-show", D), x & /*users*/
|
|
16844
16844
|
2 && j !== (j = "user-" + /*user*/
|
|
16845
|
-
e[28].id) && z(t, "id", j),
|
|
16845
|
+
e[28].id) && z(t, "id", j), x & /*users, me*/
|
|
16846
16846
|
3 && de !== (de = /*user*/
|
|
16847
16847
|
e[28].id == /*me*/
|
|
16848
|
-
e[0].id) && z(t, "data-isself", de),
|
|
16848
|
+
e[0].id) && z(t, "data-isself", de), x & /*users*/
|
|
16849
16849
|
2 && hi(
|
|
16850
16850
|
t,
|
|
16851
16851
|
"--color",
|
|
16852
16852
|
/*user*/
|
|
16853
16853
|
e[28].color
|
|
16854
|
-
),
|
|
16854
|
+
), x & /*users*/
|
|
16855
16855
|
2 && hi(t, "--x", parseFloat(
|
|
16856
16856
|
/*user*/
|
|
16857
16857
|
e[28].x
|
|
16858
|
-
) + "vw"),
|
|
16858
|
+
) + "vw"), x & /*users*/
|
|
16859
16859
|
2 && hi(t, "--y", parseFloat(
|
|
16860
16860
|
/*user*/
|
|
16861
16861
|
e[28].y
|
|
16862
16862
|
) + "vh");
|
|
16863
16863
|
},
|
|
16864
16864
|
d(K) {
|
|
16865
|
-
K && an(t),
|
|
16865
|
+
K && an(t), q();
|
|
16866
16866
|
}
|
|
16867
16867
|
};
|
|
16868
16868
|
}
|
|
16869
|
-
function
|
|
16869
|
+
function Ll(i) {
|
|
16870
16870
|
let e, t = (
|
|
16871
16871
|
/*me*/
|
|
16872
16872
|
i[0] && /*users*/
|
|
@@ -16874,10 +16874,10 @@ function Nl(i) {
|
|
|
16874
16874
|
);
|
|
16875
16875
|
return {
|
|
16876
16876
|
c() {
|
|
16877
|
-
e = Xe("div"), t && t.c(), z(e, "id", "liveroom-client-element"), z(e, "class", "svelte-
|
|
16877
|
+
e = Xe("div"), t && t.c(), z(e, "id", "liveroom-client-element"), z(e, "class", "svelte-xrxt5b");
|
|
16878
16878
|
},
|
|
16879
16879
|
m(n, s) {
|
|
16880
|
-
|
|
16880
|
+
Ln(n, e, s), t && t.m(e, null);
|
|
16881
16881
|
},
|
|
16882
16882
|
p(n, [s]) {
|
|
16883
16883
|
/*me*/
|
|
@@ -16897,8 +16897,8 @@ function Rs(i, e) {
|
|
|
16897
16897
|
const { overflowY: t, overflowX: n } = getComputedStyle(i);
|
|
16898
16898
|
return e === "vertical" && ["auto", "scroll"].includes(t) && i.scrollHeight > i.clientHeight || e === "horizontal" && ["auto", "scroll"].includes(n) && i.scrollWidth > i.clientWidth ? i : i.parentElement ? Rs(i.parentElement, e) : window;
|
|
16899
16899
|
}
|
|
16900
|
-
function
|
|
16901
|
-
let { version: n } = e, { url: s } = e, { room_id: r } = e, { user_name: a = void 0 } = e, o, c, u = !1, d =
|
|
16900
|
+
function Nl(i, e, t) {
|
|
16901
|
+
let { version: n } = e, { url: s } = e, { room_id: r } = e, { user_name: a = void 0 } = e, o, c, u = !1, d = xl(), h = Al(), f, m, b, T, w = {}, I;
|
|
16902
16902
|
Wo(async () => {
|
|
16903
16903
|
console.log(`[Liveroom] Starting... (v${n})`);
|
|
16904
16904
|
const M = new URLSearchParams(window.location.search), ae = M.get("_liveroom"), te = ae == null ? void 0 : ae.split("https://meet.google.com/");
|
|
@@ -16907,7 +16907,7 @@ function xl(i, e, t) {
|
|
|
16907
16907
|
const Fe = M.get("_liveroom_user_name");
|
|
16908
16908
|
Fe && t(5, a = Fe), Q();
|
|
16909
16909
|
}), Go(() => {
|
|
16910
|
-
j(),
|
|
16910
|
+
j(), xi();
|
|
16911
16911
|
});
|
|
16912
16912
|
async function D() {
|
|
16913
16913
|
if (console.log("[LiveKit] Beginning setup..."), t(8, c = new So({ dynacast: !0 }).on(P.TrackSubscribed, async (M, ae, te) => {
|
|
@@ -16989,10 +16989,10 @@ function xl(i, e, t) {
|
|
|
16989
16989
|
pe && document.head.appendChild(h), (Ee instanceof HTMLElement || Ee instanceof SVGElement) && Ee.dispatchEvent(te);
|
|
16990
16990
|
}), o.addEventListener("livestate-change", ({ detail: { state: M } }) => {
|
|
16991
16991
|
t(4, r = M.room_id), t(0, f = M.me), t(1, m = M.users), t(10, b = M.livekit_ws_url), t(11, T = M.livekit_token);
|
|
16992
|
-
}), o.connect(), window.addEventListener("mousemove", de), window.addEventListener("mousedown", ce), window.addEventListener("mouseup",
|
|
16992
|
+
}), o.connect(), window.addEventListener("mousemove", de), window.addEventListener("mousedown", ce), window.addEventListener("mouseup", q), window.addEventListener("keydown", x), window.addEventListener("keyup", F), window.addEventListener("resize", fe);
|
|
16993
16993
|
}
|
|
16994
16994
|
function j() {
|
|
16995
|
-
window.removeEventListener("resize", fe), window.removeEventListener("keyup", F), window.removeEventListener("keydown",
|
|
16995
|
+
window.removeEventListener("resize", fe), window.removeEventListener("keyup", F), window.removeEventListener("keydown", x), window.removeEventListener("mouseup", q), window.removeEventListener("mousedown", ce), window.removeEventListener("mousemove", de), o == null || o.disconnect(), o = void 0, c == null || c.disconnect(), t(8, c = void 0);
|
|
16996
16996
|
}
|
|
16997
16997
|
function de(M) {
|
|
16998
16998
|
o && (f != null && f.id) && o.dispatchEvent(new CustomEvent(
|
|
@@ -17011,11 +17011,11 @@ function xl(i, e, t) {
|
|
|
17011
17011
|
function ce() {
|
|
17012
17012
|
o && (f != null && f.id) && o.dispatchEvent(new CustomEvent("mouse_down", { detail: { user_id: f.id } }));
|
|
17013
17013
|
}
|
|
17014
|
-
function
|
|
17014
|
+
function q() {
|
|
17015
17015
|
o && (f != null && f.id) && o.dispatchEvent(new CustomEvent("mouse_up", { detail: { user_id: f.id } }));
|
|
17016
17016
|
}
|
|
17017
17017
|
const K = ["Shift"];
|
|
17018
|
-
function
|
|
17018
|
+
function x(M) {
|
|
17019
17019
|
!M.repeat && K.includes(M.key) && o && (f != null && f.id) && o.dispatchEvent(new CustomEvent("key_down", { detail: { key: M.key, user_id: f.id } }));
|
|
17020
17020
|
}
|
|
17021
17021
|
function F(M) {
|
|
@@ -17036,10 +17036,10 @@ function xl(i, e, t) {
|
|
|
17036
17036
|
function Ue() {
|
|
17037
17037
|
document.head.appendChild(d), document.head.appendChild(h), t(9, u = !0);
|
|
17038
17038
|
}
|
|
17039
|
-
function
|
|
17039
|
+
function xi() {
|
|
17040
17040
|
document.head.removeChild(d), document.head.removeChild(h), t(9, u = !1);
|
|
17041
17041
|
}
|
|
17042
|
-
function
|
|
17042
|
+
function Ai(M, ae) {
|
|
17043
17043
|
ts[M ? "unshift" : "push"](() => {
|
|
17044
17044
|
w[ae.id] = M, t(2, w);
|
|
17045
17045
|
});
|
|
@@ -17051,7 +17051,7 @@ function xl(i, e, t) {
|
|
|
17051
17051
|
3331 && !c && f && m && b && T && D(), i.$$.dirty & /*users*/
|
|
17052
17052
|
2 && t(3, I = Object.keys(m || {}).length), i.$$.dirty & /*isClickBlocked, users*/
|
|
17053
17053
|
514 && !u && m && Object.values(m).some((M) => M.type == "admin" && M.is_space_key_down) && Ue(), i.$$.dirty & /*isClickBlocked, users*/
|
|
17054
|
-
514 && u && m && Object.values(m).filter((M) => M.type == "admin").every((M) => !M.is_space_key_down) &&
|
|
17054
|
+
514 && u && m && Object.values(m).filter((M) => M.type == "admin").every((M) => !M.is_space_key_down) && xi();
|
|
17055
17055
|
}, [
|
|
17056
17056
|
f,
|
|
17057
17057
|
m,
|
|
@@ -17065,7 +17065,7 @@ function xl(i, e, t) {
|
|
|
17065
17065
|
u,
|
|
17066
17066
|
b,
|
|
17067
17067
|
T,
|
|
17068
|
-
|
|
17068
|
+
Ai
|
|
17069
17069
|
];
|
|
17070
17070
|
}
|
|
17071
17071
|
class Dl extends ac {
|
|
@@ -17073,8 +17073,8 @@ class Dl extends ac {
|
|
|
17073
17073
|
super(), sc(
|
|
17074
17074
|
this,
|
|
17075
17075
|
e,
|
|
17076
|
-
xl,
|
|
17077
17076
|
Nl,
|
|
17077
|
+
Ll,
|
|
17078
17078
|
Fo,
|
|
17079
17079
|
{
|
|
17080
17080
|
version: 6,
|
|
@@ -17082,7 +17082,7 @@ class Dl extends ac {
|
|
|
17082
17082
|
room_id: 4,
|
|
17083
17083
|
user_name: 5
|
|
17084
17084
|
},
|
|
17085
|
-
|
|
17085
|
+
Ol
|
|
17086
17086
|
);
|
|
17087
17087
|
}
|
|
17088
17088
|
get version() {
|