@moq/watch 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/audio/decoder.d.ts.map +1 -1
- package/audio/mse.d.ts.map +1 -1
- package/audio/source.d.ts.map +1 -1
- package/broadcast-b-IDmAB3.js +6870 -0
- package/broadcast-b-IDmAB3.js.map +1 -0
- package/broadcast.d.ts +3 -2
- package/broadcast.d.ts.map +1 -1
- package/element.d.ts +2 -2
- package/element.d.ts.map +1 -1
- package/element.js +5 -4
- package/element.js.map +1 -1
- package/index.js +75 -60
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/sync.d.ts +1 -1
- package/sync.d.ts.map +1 -1
- package/ui/components/BufferControl.d.ts.map +1 -1
- package/ui/index.js +371 -368
- package/ui/index.js.map +1 -1
- package/video/mse.d.ts.map +1 -1
- package/video/renderer.d.ts.map +1 -1
- package/video/source.d.ts.map +1 -1
- package/broadcast-DFnI-aDr.js +0 -8253
- package/broadcast-DFnI-aDr.js.map +0 -1
package/ui/index.js
CHANGED
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
import { Button as
|
|
2
|
-
import { Signals as
|
|
3
|
-
const
|
|
4
|
-
equals:
|
|
1
|
+
import { Button as ct, Icon as W, Stats as Nt } from "@moq/ui-core";
|
|
2
|
+
import { Signals as Ut } from "@moq/hang";
|
|
3
|
+
const Kt = !1, Dt = (t, e) => t === e, Ht = /* @__PURE__ */ Symbol("solid-track"), rt = {
|
|
4
|
+
equals: Dt
|
|
5
5
|
};
|
|
6
|
-
let
|
|
7
|
-
const F = 1,
|
|
6
|
+
let qt = Vt;
|
|
7
|
+
const F = 1, at = 2, Rt = {
|
|
8
8
|
owned: null,
|
|
9
9
|
cleanups: null,
|
|
10
10
|
context: null,
|
|
11
11
|
owner: null
|
|
12
12
|
};
|
|
13
|
-
var
|
|
14
|
-
let ht = null,
|
|
15
|
-
function
|
|
16
|
-
const n =
|
|
13
|
+
var g = null;
|
|
14
|
+
let ht = null, Gt = null, b = null, k = null, T = null, ut = 0;
|
|
15
|
+
function nt(t, e) {
|
|
16
|
+
const n = b, a = g, r = t.length === 0, o = e === void 0 ? a : e, s = r ? Rt : {
|
|
17
17
|
owned: null,
|
|
18
18
|
cleanups: null,
|
|
19
19
|
context: o ? o.context : null,
|
|
20
20
|
owner: o
|
|
21
|
-
}, i = r ? t : () => t(() => L(() =>
|
|
22
|
-
|
|
21
|
+
}, i = r ? t : () => t(() => L(() => Q(s)));
|
|
22
|
+
g = s, b = null;
|
|
23
23
|
try {
|
|
24
|
-
return
|
|
24
|
+
return Z(i, !0);
|
|
25
25
|
} finally {
|
|
26
|
-
|
|
26
|
+
b = n, g = a;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
e = e ? Object.assign({},
|
|
29
|
+
function E(t, e) {
|
|
30
|
+
e = e ? Object.assign({}, rt, e) : rt;
|
|
31
31
|
const n = {
|
|
32
32
|
value: t,
|
|
33
33
|
observers: null,
|
|
34
34
|
observerSlots: null,
|
|
35
35
|
comparator: e.equals || void 0
|
|
36
|
-
}, a = (r) => (typeof r == "function" && (r = r(n.value)),
|
|
37
|
-
return [
|
|
36
|
+
}, a = (r) => (typeof r == "function" && (r = r(n.value)), Lt(n, r));
|
|
37
|
+
return [It.bind(n), a];
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const a =
|
|
41
|
-
|
|
39
|
+
function I(t, e, n) {
|
|
40
|
+
const a = xt(t, e, !1, F);
|
|
41
|
+
X(a);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
45
|
-
const a =
|
|
46
|
-
a.user = !0,
|
|
43
|
+
function jt(t, e, n) {
|
|
44
|
+
qt = te;
|
|
45
|
+
const a = xt(t, e, !1, F);
|
|
46
|
+
a.user = !0, T ? T.push(a) : X(a);
|
|
47
47
|
}
|
|
48
48
|
function B(t, e, n) {
|
|
49
|
-
n = n ? Object.assign({},
|
|
50
|
-
const a =
|
|
51
|
-
return a.observers = null, a.observerSlots = null, a.comparator = n.equals || void 0,
|
|
49
|
+
n = n ? Object.assign({}, rt, n) : rt;
|
|
50
|
+
const a = xt(t, e, !0, 0);
|
|
51
|
+
return a.observers = null, a.observerSlots = null, a.comparator = n.equals || void 0, X(a), It.bind(a);
|
|
52
52
|
}
|
|
53
53
|
function L(t) {
|
|
54
|
-
if (
|
|
55
|
-
const e =
|
|
56
|
-
|
|
54
|
+
if (b === null) return t();
|
|
55
|
+
const e = b;
|
|
56
|
+
b = null;
|
|
57
57
|
try {
|
|
58
58
|
return t();
|
|
59
59
|
} finally {
|
|
60
|
-
|
|
60
|
+
b = e;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
63
|
+
function Wt(t) {
|
|
64
|
+
jt(() => L(t));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
66
|
+
function ft(t) {
|
|
67
|
+
return g === null || (g.cleanups === null ? g.cleanups = [t] : g.cleanups.push(t)), t;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
69
|
+
function Jt() {
|
|
70
|
+
return g;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Qt(t, e) {
|
|
73
73
|
const n = /* @__PURE__ */ Symbol("context");
|
|
74
74
|
return {
|
|
75
75
|
id: n,
|
|
76
|
-
Provider:
|
|
76
|
+
Provider: ne(n),
|
|
77
77
|
defaultValue: t
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Tt(t) {
|
|
81
81
|
let e;
|
|
82
|
-
return
|
|
82
|
+
return g && g.context && (e = g.context[t.id]) !== void 0 ? e : t.defaultValue;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Xt(t) {
|
|
85
85
|
const e = B(t), n = B(() => vt(e()));
|
|
86
86
|
return n.toArray = () => {
|
|
87
87
|
const a = n();
|
|
88
88
|
return Array.isArray(a) ? a : a != null ? [a] : [];
|
|
89
89
|
}, n;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function It() {
|
|
92
92
|
if (this.sources && this.state)
|
|
93
|
-
if (this.state === F)
|
|
93
|
+
if (this.state === F) X(this);
|
|
94
94
|
else {
|
|
95
|
-
const t =
|
|
96
|
-
|
|
95
|
+
const t = k;
|
|
96
|
+
k = null, Z(() => it(this), !1), k = t;
|
|
97
97
|
}
|
|
98
|
-
if (
|
|
98
|
+
if (b) {
|
|
99
99
|
const t = this.observers ? this.observers.length : 0;
|
|
100
|
-
|
|
100
|
+
b.sources ? (b.sources.push(this), b.sourceSlots.push(t)) : (b.sources = [this], b.sourceSlots = [t]), this.observers ? (this.observers.push(b), this.observerSlots.push(b.sources.length - 1)) : (this.observers = [b], this.observerSlots = [b.sources.length - 1]);
|
|
101
101
|
}
|
|
102
102
|
return this.value;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Lt(t, e, n) {
|
|
105
105
|
let a = t.value;
|
|
106
|
-
return (!t.comparator || !t.comparator(a, e)) && (t.value = e, t.observers && t.observers.length &&
|
|
106
|
+
return (!t.comparator || !t.comparator(a, e)) && (t.value = e, t.observers && t.observers.length && Z(() => {
|
|
107
107
|
for (let r = 0; r < t.observers.length; r += 1) {
|
|
108
108
|
const o = t.observers[r], s = ht && ht.running;
|
|
109
|
-
s && ht.disposed.has(o), (s ? !o.tState : !o.state) && (o.pure ?
|
|
109
|
+
s && ht.disposed.has(o), (s ? !o.tState : !o.state) && (o.pure ? k.push(o) : T.push(o), o.observers && zt(o)), s || (o.state = F);
|
|
110
110
|
}
|
|
111
|
-
if (
|
|
112
|
-
throw
|
|
111
|
+
if (k.length > 1e6)
|
|
112
|
+
throw k = [], new Error();
|
|
113
113
|
}, !1)), e;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function X(t) {
|
|
116
116
|
if (!t.fn) return;
|
|
117
|
-
|
|
118
|
-
const e =
|
|
119
|
-
|
|
117
|
+
Q(t);
|
|
118
|
+
const e = ut;
|
|
119
|
+
Zt(t, t.value, e);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Zt(t, e, n) {
|
|
122
122
|
let a;
|
|
123
|
-
const r =
|
|
124
|
-
|
|
123
|
+
const r = g, o = b;
|
|
124
|
+
b = g = t;
|
|
125
125
|
try {
|
|
126
126
|
a = t.fn(e);
|
|
127
127
|
} catch (s) {
|
|
128
|
-
return t.pure && (t.state = F, t.owned && t.owned.forEach(
|
|
128
|
+
return t.pure && (t.state = F, t.owned && t.owned.forEach(Q), t.owned = null), t.updatedAt = n + 1, Ot(s);
|
|
129
129
|
} finally {
|
|
130
|
-
|
|
130
|
+
b = o, g = r;
|
|
131
131
|
}
|
|
132
|
-
(!t.updatedAt || t.updatedAt <= n) && (t.updatedAt != null && "observers" in t ?
|
|
132
|
+
(!t.updatedAt || t.updatedAt <= n) && (t.updatedAt != null && "observers" in t ? Lt(t, a) : t.value = a, t.updatedAt = n);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function xt(t, e, n, a = F, r) {
|
|
135
135
|
const o = {
|
|
136
136
|
fn: t,
|
|
137
137
|
state: a,
|
|
@@ -141,71 +141,71 @@ function yt(t, e, n, a = F, r) {
|
|
|
141
141
|
sourceSlots: null,
|
|
142
142
|
cleanups: null,
|
|
143
143
|
value: e,
|
|
144
|
-
owner:
|
|
145
|
-
context:
|
|
144
|
+
owner: g,
|
|
145
|
+
context: g ? g.context : null,
|
|
146
146
|
pure: n
|
|
147
147
|
};
|
|
148
|
-
return
|
|
148
|
+
return g === null || g !== Rt && (g.owned ? g.owned.push(o) : g.owned = [o]), o;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function ot(t) {
|
|
151
151
|
if (t.state === 0) return;
|
|
152
|
-
if (t.state ===
|
|
152
|
+
if (t.state === at) return it(t);
|
|
153
153
|
if (t.suspense && L(t.suspense.inFallback)) return t.suspense.effects.push(t);
|
|
154
154
|
const e = [t];
|
|
155
|
-
for (; (t = t.owner) && (!t.updatedAt || t.updatedAt <
|
|
155
|
+
for (; (t = t.owner) && (!t.updatedAt || t.updatedAt < ut); )
|
|
156
156
|
t.state && e.push(t);
|
|
157
157
|
for (let n = e.length - 1; n >= 0; n--)
|
|
158
158
|
if (t = e[n], t.state === F)
|
|
159
|
-
|
|
160
|
-
else if (t.state ===
|
|
161
|
-
const a =
|
|
162
|
-
|
|
159
|
+
X(t);
|
|
160
|
+
else if (t.state === at) {
|
|
161
|
+
const a = k;
|
|
162
|
+
k = null, Z(() => it(t, e[0]), !1), k = a;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
165
|
+
function Z(t, e) {
|
|
166
|
+
if (k) return t();
|
|
167
167
|
let n = !1;
|
|
168
|
-
e || (
|
|
168
|
+
e || (k = []), T ? n = !0 : T = [], ut++;
|
|
169
169
|
try {
|
|
170
170
|
const a = t();
|
|
171
|
-
return
|
|
171
|
+
return Yt(n), a;
|
|
172
172
|
} catch (a) {
|
|
173
|
-
n || (
|
|
173
|
+
n || (T = null), k = null, Ot(a);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
if (
|
|
178
|
-
const e =
|
|
179
|
-
|
|
176
|
+
function Yt(t) {
|
|
177
|
+
if (k && (Vt(k), k = null), t) return;
|
|
178
|
+
const e = T;
|
|
179
|
+
T = null, e.length && Z(() => qt(e), !1);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
for (let e = 0; e < t.length; e++)
|
|
181
|
+
function Vt(t) {
|
|
182
|
+
for (let e = 0; e < t.length; e++) ot(t[e]);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function te(t) {
|
|
185
185
|
let e, n = 0;
|
|
186
186
|
for (e = 0; e < t.length; e++) {
|
|
187
187
|
const a = t[e];
|
|
188
|
-
a.user ? t[n++] = a :
|
|
188
|
+
a.user ? t[n++] = a : ot(a);
|
|
189
189
|
}
|
|
190
|
-
for (e = 0; e < n; e++)
|
|
190
|
+
for (e = 0; e < n; e++) ot(t[e]);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function it(t, e) {
|
|
193
193
|
t.state = 0;
|
|
194
194
|
for (let n = 0; n < t.sources.length; n += 1) {
|
|
195
195
|
const a = t.sources[n];
|
|
196
196
|
if (a.sources) {
|
|
197
197
|
const r = a.state;
|
|
198
|
-
r === F ? a !== e && (!a.updatedAt || a.updatedAt <
|
|
198
|
+
r === F ? a !== e && (!a.updatedAt || a.updatedAt < ut) && ot(a) : r === at && it(a, e);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function zt(t) {
|
|
203
203
|
for (let e = 0; e < t.observers.length; e += 1) {
|
|
204
204
|
const n = t.observers[e];
|
|
205
|
-
n.state || (n.state =
|
|
205
|
+
n.state || (n.state = at, n.pure ? k.push(n) : T.push(n), n.observers && zt(n));
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function Q(t) {
|
|
209
209
|
let e;
|
|
210
210
|
if (t.sources)
|
|
211
211
|
for (; t.sources.length; ) {
|
|
@@ -216,11 +216,11 @@ function H(t) {
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
if (t.tOwned) {
|
|
219
|
-
for (e = t.tOwned.length - 1; e >= 0; e--)
|
|
219
|
+
for (e = t.tOwned.length - 1; e >= 0; e--) Q(t.tOwned[e]);
|
|
220
220
|
delete t.tOwned;
|
|
221
221
|
}
|
|
222
222
|
if (t.owned) {
|
|
223
|
-
for (e = t.owned.length - 1; e >= 0; e--)
|
|
223
|
+
for (e = t.owned.length - 1; e >= 0; e--) Q(t.owned[e]);
|
|
224
224
|
t.owned = null;
|
|
225
225
|
}
|
|
226
226
|
if (t.cleanups) {
|
|
@@ -229,13 +229,13 @@ function H(t) {
|
|
|
229
229
|
}
|
|
230
230
|
t.state = 0;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function ee(t) {
|
|
233
233
|
return t instanceof Error ? t : new Error(typeof t == "string" ? t : "Unknown error", {
|
|
234
234
|
cause: t
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
throw
|
|
237
|
+
function Ot(t, e = g) {
|
|
238
|
+
throw ee(t);
|
|
239
239
|
}
|
|
240
240
|
function vt(t) {
|
|
241
241
|
if (typeof t == "function" && !t.length) return vt(t());
|
|
@@ -249,65 +249,65 @@ function vt(t) {
|
|
|
249
249
|
}
|
|
250
250
|
return t;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function ne(t, e) {
|
|
253
253
|
return function(a) {
|
|
254
254
|
let r;
|
|
255
|
-
return
|
|
256
|
-
...
|
|
255
|
+
return I(() => r = L(() => (g.context = {
|
|
256
|
+
...g.context,
|
|
257
257
|
[t]: a.value
|
|
258
|
-
},
|
|
258
|
+
}, Xt(() => a.children))), void 0), r;
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
|
-
const
|
|
262
|
-
function
|
|
261
|
+
const re = /* @__PURE__ */ Symbol("fallback");
|
|
262
|
+
function At(t) {
|
|
263
263
|
for (let e = 0; e < t.length; e++) t[e]();
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function ae(t, e, n = {}) {
|
|
266
266
|
let a = [], r = [], o = [], s = 0, i = e.length > 1 ? [] : null;
|
|
267
|
-
return
|
|
267
|
+
return ft(() => At(o)), () => {
|
|
268
268
|
let c = t() || [], u = c.length, f, l;
|
|
269
|
-
return c[
|
|
270
|
-
let
|
|
269
|
+
return c[Ht], L(() => {
|
|
270
|
+
let x, S, y, P, A, w, h, d, _;
|
|
271
271
|
if (u === 0)
|
|
272
|
-
s !== 0 && (
|
|
272
|
+
s !== 0 && (At(o), o = [], a = [], r = [], s = 0, i && (i = [])), n.fallback && (a = [re], r[0] = nt((M) => (o[0] = M, n.fallback())), s = 1);
|
|
273
273
|
else if (s === 0) {
|
|
274
274
|
for (r = new Array(u), l = 0; l < u; l++)
|
|
275
|
-
a[l] = c[l], r[l] =
|
|
275
|
+
a[l] = c[l], r[l] = nt(C);
|
|
276
276
|
s = u;
|
|
277
277
|
} else {
|
|
278
|
-
for (
|
|
279
|
-
for (
|
|
280
|
-
|
|
281
|
-
for (
|
|
282
|
-
|
|
283
|
-
for (f =
|
|
284
|
-
|
|
285
|
-
for (l =
|
|
286
|
-
l in
|
|
278
|
+
for (y = new Array(u), P = new Array(u), i && (A = new Array(u)), w = 0, h = Math.min(s, u); w < h && a[w] === c[w]; w++) ;
|
|
279
|
+
for (h = s - 1, d = u - 1; h >= w && d >= w && a[h] === c[d]; h--, d--)
|
|
280
|
+
y[d] = r[h], P[d] = o[h], i && (A[d] = i[h]);
|
|
281
|
+
for (x = /* @__PURE__ */ new Map(), S = new Array(d + 1), l = d; l >= w; l--)
|
|
282
|
+
_ = c[l], f = x.get(_), S[l] = f === void 0 ? -1 : f, x.set(_, l);
|
|
283
|
+
for (f = w; f <= h; f++)
|
|
284
|
+
_ = a[f], l = x.get(_), l !== void 0 && l !== -1 ? (y[l] = r[f], P[l] = o[f], i && (A[l] = i[f]), l = S[l], x.set(_, l)) : o[f]();
|
|
285
|
+
for (l = w; l < u; l++)
|
|
286
|
+
l in y ? (r[l] = y[l], o[l] = P[l], i && (i[l] = A[l], i[l](l))) : r[l] = nt(C);
|
|
287
287
|
r = r.slice(0, s = u), a = c.slice(0);
|
|
288
288
|
}
|
|
289
289
|
return r;
|
|
290
290
|
});
|
|
291
|
-
function
|
|
292
|
-
if (o[l] =
|
|
293
|
-
const [
|
|
294
|
-
return i[l] =
|
|
291
|
+
function C(x) {
|
|
292
|
+
if (o[l] = x, i) {
|
|
293
|
+
const [S, y] = E(l);
|
|
294
|
+
return i[l] = y, e(c[l], S);
|
|
295
295
|
}
|
|
296
296
|
return e(c[l]);
|
|
297
297
|
}
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function p(t, e) {
|
|
301
301
|
return L(() => t(e || {}));
|
|
302
302
|
}
|
|
303
|
-
const
|
|
304
|
-
function
|
|
303
|
+
const oe = (t) => `Stale read from <${t}>.`;
|
|
304
|
+
function ie(t) {
|
|
305
305
|
const e = "fallback" in t && {
|
|
306
306
|
fallback: () => t.fallback
|
|
307
307
|
};
|
|
308
|
-
return B(
|
|
308
|
+
return B(ae(() => t.each, t.children, e || void 0));
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Y(t) {
|
|
311
311
|
const e = t.keyed, n = B(() => t.when, void 0, void 0), a = e ? n : B(n, void 0, {
|
|
312
312
|
equals: (r, o) => !r == !o
|
|
313
313
|
});
|
|
@@ -316,15 +316,15 @@ function Q(t) {
|
|
|
316
316
|
if (r) {
|
|
317
317
|
const o = t.children;
|
|
318
318
|
return typeof o == "function" && o.length > 0 ? L(() => o(e ? r : () => {
|
|
319
|
-
if (!L(a)) throw
|
|
319
|
+
if (!L(a)) throw oe("Show");
|
|
320
320
|
return n();
|
|
321
321
|
})) : o;
|
|
322
322
|
}
|
|
323
323
|
return t.fallback;
|
|
324
324
|
}, void 0, void 0);
|
|
325
325
|
}
|
|
326
|
-
const
|
|
327
|
-
function
|
|
326
|
+
const wt = (t) => B(() => t());
|
|
327
|
+
function se(t, e, n) {
|
|
328
328
|
let a = n.length, r = e.length, o = a, s = 0, i = 0, c = e[r - 1].nextSibling, u = null;
|
|
329
329
|
for (; s < r || i < o; ) {
|
|
330
330
|
if (e[s] === n[i]) {
|
|
@@ -351,20 +351,20 @@ function oe(t, e, n) {
|
|
|
351
351
|
const f = u.get(e[s]);
|
|
352
352
|
if (f != null)
|
|
353
353
|
if (i < f && f < o) {
|
|
354
|
-
let l = s,
|
|
355
|
-
for (; ++l < r && l < o && !((
|
|
356
|
-
|
|
357
|
-
if (
|
|
358
|
-
const
|
|
359
|
-
for (; i < f; ) t.insertBefore(n[i++],
|
|
354
|
+
let l = s, C = 1, x;
|
|
355
|
+
for (; ++l < r && l < o && !((x = u.get(e[l])) == null || x !== f + C); )
|
|
356
|
+
C++;
|
|
357
|
+
if (C > f - i) {
|
|
358
|
+
const S = e[s];
|
|
359
|
+
for (; i < f; ) t.insertBefore(n[i++], S);
|
|
360
360
|
} else t.replaceChild(n[i++], e[s++]);
|
|
361
361
|
} else s++;
|
|
362
362
|
else e[s++].remove();
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
const
|
|
367
|
-
function
|
|
366
|
+
const $t = "_$DX_DELEGATE";
|
|
367
|
+
function R(t, e, n, a) {
|
|
368
368
|
let r;
|
|
369
369
|
const o = () => {
|
|
370
370
|
const i = document.createElement("template");
|
|
@@ -372,30 +372,30 @@ function V(t, e, n, a) {
|
|
|
372
372
|
}, s = () => (r || (r = o())).cloneNode(!0);
|
|
373
373
|
return s.cloneNode = s, s;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
const n = e[
|
|
375
|
+
function le(t, e = window.document) {
|
|
376
|
+
const n = e[$t] || (e[$t] = /* @__PURE__ */ new Set());
|
|
377
377
|
for (let a = 0, r = t.length; a < r; a++) {
|
|
378
378
|
const o = t[a];
|
|
379
|
-
n.has(o) || (n.add(o), e.addEventListener(o,
|
|
379
|
+
n.has(o) || (n.add(o), e.addEventListener(o, ue));
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function pt(t, e, n) {
|
|
383
383
|
n == null ? t.removeAttribute(e) : t.setAttribute(e, n);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function mt(t, e) {
|
|
386
386
|
e == null ? t.removeAttribute("class") : t.className = e;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function ce(t, e, n) {
|
|
389
389
|
n != null ? t.style.setProperty(e, n) : t.style.removeProperty(e);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function gt(t, e, n) {
|
|
392
392
|
return L(() => t(e, n));
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
if (n !== void 0 && !a && (a = []), typeof e != "function") return
|
|
396
|
-
|
|
394
|
+
function v(t, e, n, a) {
|
|
395
|
+
if (n !== void 0 && !a && (a = []), typeof e != "function") return st(t, e, a, n);
|
|
396
|
+
I((r) => st(t, e(), r, n), a);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function ue(t) {
|
|
399
399
|
let e = t.target;
|
|
400
400
|
const n = `$$${t.type}`, a = t.target, r = t.currentTarget, o = (c) => Object.defineProperty(t, "target", {
|
|
401
401
|
configurable: !0,
|
|
@@ -429,7 +429,7 @@ function le(t) {
|
|
|
429
429
|
} else i();
|
|
430
430
|
o(a);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function st(t, e, n, a, r) {
|
|
433
433
|
for (; typeof n == "function"; ) n = n();
|
|
434
434
|
if (e === n) return n;
|
|
435
435
|
const o = typeof e, s = a !== void 0;
|
|
@@ -438,48 +438,48 @@ function it(t, e, n, a, r) {
|
|
|
438
438
|
return n;
|
|
439
439
|
if (s) {
|
|
440
440
|
let i = n[0];
|
|
441
|
-
i && i.nodeType === 3 ? i.data !== e && (i.data = e) : i = document.createTextNode(e), n =
|
|
441
|
+
i && i.nodeType === 3 ? i.data !== e && (i.data = e) : i = document.createTextNode(e), n = J(t, n, a, i);
|
|
442
442
|
} else
|
|
443
443
|
n !== "" && typeof n == "string" ? n = t.firstChild.data = e : n = t.textContent = e;
|
|
444
444
|
} else if (e == null || o === "boolean")
|
|
445
|
-
n =
|
|
445
|
+
n = J(t, n, a);
|
|
446
446
|
else {
|
|
447
447
|
if (o === "function")
|
|
448
|
-
return
|
|
448
|
+
return I(() => {
|
|
449
449
|
let i = e();
|
|
450
450
|
for (; typeof i == "function"; ) i = i();
|
|
451
|
-
n =
|
|
451
|
+
n = st(t, i, n, a);
|
|
452
452
|
}), () => n;
|
|
453
453
|
if (Array.isArray(e)) {
|
|
454
454
|
const i = [], c = n && Array.isArray(n);
|
|
455
|
-
if (
|
|
456
|
-
return
|
|
455
|
+
if (yt(i, e, n, r))
|
|
456
|
+
return I(() => n = st(t, i, n, a, !0)), () => n;
|
|
457
457
|
if (i.length === 0) {
|
|
458
|
-
if (n =
|
|
459
|
-
} else c ? n.length === 0 ?
|
|
458
|
+
if (n = J(t, n, a), s) return n;
|
|
459
|
+
} else c ? n.length === 0 ? Et(t, i, a) : se(t, n, i) : (n && J(t), Et(t, i));
|
|
460
460
|
n = i;
|
|
461
461
|
} else if (e.nodeType) {
|
|
462
462
|
if (Array.isArray(n)) {
|
|
463
|
-
if (s) return n =
|
|
464
|
-
|
|
463
|
+
if (s) return n = J(t, n, a, e);
|
|
464
|
+
J(t, n, null, e);
|
|
465
465
|
} else n == null || n === "" || !t.firstChild ? t.appendChild(e) : t.replaceChild(e, t.firstChild);
|
|
466
466
|
n = e;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
return n;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function yt(t, e, n, a) {
|
|
472
472
|
let r = !1;
|
|
473
473
|
for (let o = 0, s = e.length; o < s; o++) {
|
|
474
474
|
let i = e[o], c = n && n[t.length], u;
|
|
475
475
|
if (!(i == null || i === !0 || i === !1)) if ((u = typeof i) == "object" && i.nodeType)
|
|
476
476
|
t.push(i);
|
|
477
477
|
else if (Array.isArray(i))
|
|
478
|
-
r =
|
|
478
|
+
r = yt(t, i, c) || r;
|
|
479
479
|
else if (u === "function")
|
|
480
480
|
if (a) {
|
|
481
481
|
for (; typeof i == "function"; ) i = i();
|
|
482
|
-
r =
|
|
482
|
+
r = yt(t, Array.isArray(i) ? i : [i], Array.isArray(c) ? c : [c]) || r;
|
|
483
483
|
} else
|
|
484
484
|
t.push(i), r = !0;
|
|
485
485
|
else {
|
|
@@ -489,10 +489,10 @@ function mt(t, e, n, a) {
|
|
|
489
489
|
}
|
|
490
490
|
return r;
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function Et(t, e, n = null) {
|
|
493
493
|
for (let a = 0, r = e.length; a < r; a++) t.insertBefore(e[a], n);
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function J(t, e, n, a) {
|
|
496
496
|
if (n === void 0) return t.textContent = "";
|
|
497
497
|
const r = a || document.createTextNode("");
|
|
498
498
|
if (e.length) {
|
|
@@ -507,34 +507,34 @@ function D(t, e, n, a) {
|
|
|
507
507
|
} else t.insertBefore(r, n);
|
|
508
508
|
return [r];
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function fe(t) {
|
|
511
511
|
return Object.keys(t).reduce((n, a) => {
|
|
512
512
|
const r = t[a];
|
|
513
|
-
return n[a] = Object.assign({}, r),
|
|
513
|
+
return n[a] = Object.assign({}, r), Ft(r.value) && !_e(r.value) && !Array.isArray(r.value) && (n[a].value = Object.assign({}, r.value)), Array.isArray(r.value) && (n[a].value = r.value.slice(0)), n;
|
|
514
514
|
}, {});
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function de(t) {
|
|
517
517
|
return t ? Object.keys(t).reduce((n, a) => {
|
|
518
518
|
const r = t[a];
|
|
519
|
-
return n[a] =
|
|
519
|
+
return n[a] = Ft(r) && "value" in r ? r : {
|
|
520
520
|
value: r
|
|
521
|
-
}, n[a].attribute || (n[a].attribute =
|
|
521
|
+
}, n[a].attribute || (n[a].attribute = ge(a)), n[a].parse = "parse" in n[a] ? n[a].parse : typeof n[a].value != "string", n;
|
|
522
522
|
}, {}) : {};
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function he(t) {
|
|
525
525
|
return Object.keys(t).reduce((n, a) => (n[a] = t[a].value, n), {});
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
const n =
|
|
527
|
+
function pe(t, e) {
|
|
528
|
+
const n = fe(e);
|
|
529
529
|
return Object.keys(e).forEach((r) => {
|
|
530
530
|
const o = n[r], s = t.getAttribute(o.attribute), i = t[r];
|
|
531
|
-
s != null && (o.value = o.parse ?
|
|
531
|
+
s != null && (o.value = o.parse ? Bt(s) : s), i != null && (o.value = Array.isArray(i) ? i.slice(0) : i), o.reflect && Pt(t, o.attribute, o.value, !!o.parse), Object.defineProperty(t, r, {
|
|
532
532
|
get() {
|
|
533
533
|
return o.value;
|
|
534
534
|
},
|
|
535
535
|
set(c) {
|
|
536
536
|
const u = o.value;
|
|
537
|
-
o.value = c, o.reflect &&
|
|
537
|
+
o.value = c, o.reflect && Pt(this, o.attribute, o.value, !!o.parse);
|
|
538
538
|
for (let f = 0, l = this.__propertyChangedCallbacks.length; f < l; f++)
|
|
539
539
|
this.__propertyChangedCallbacks[f](r, c, u);
|
|
540
540
|
},
|
|
@@ -543,7 +543,7 @@ function de(t, e) {
|
|
|
543
543
|
});
|
|
544
544
|
}), n;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function Bt(t) {
|
|
547
547
|
if (t)
|
|
548
548
|
try {
|
|
549
549
|
return JSON.parse(t);
|
|
@@ -551,25 +551,25 @@ function zt(t) {
|
|
|
551
551
|
return t;
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Pt(t, e, n, a) {
|
|
555
555
|
if (n == null || n === !1) return t.removeAttribute(e);
|
|
556
556
|
let r = a ? JSON.stringify(n) : n;
|
|
557
557
|
t.__updating[e] = !0, r === "true" && (r = ""), t.setAttribute(e, r), Promise.resolve().then(() => delete t.__updating[e]);
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function ge(t) {
|
|
560
560
|
return t.replace(/\.?([A-Z]+)/g, (e, n) => "-" + n.toLowerCase()).replace("_", "-").replace(/^-/, "");
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Ft(t) {
|
|
563
563
|
return t != null && (typeof t == "object" || typeof t == "function");
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function _e(t) {
|
|
566
566
|
return Object.prototype.toString.call(t) === "[object Function]";
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function be(t) {
|
|
569
569
|
return typeof t == "function" && t.toString().indexOf("class") === 0;
|
|
570
570
|
}
|
|
571
571
|
let _t;
|
|
572
|
-
function
|
|
572
|
+
function ve(t, e) {
|
|
573
573
|
const n = Object.keys(e);
|
|
574
574
|
return class extends t {
|
|
575
575
|
static get observedAttributes() {
|
|
@@ -582,10 +582,10 @@ function _e(t, e) {
|
|
|
582
582
|
}
|
|
583
583
|
connectedCallback() {
|
|
584
584
|
if (this.__initialized) return;
|
|
585
|
-
this.__releaseCallbacks = [], this.__propertyChangedCallbacks = [], this.__updating = {}, this.props =
|
|
586
|
-
const r =
|
|
585
|
+
this.__releaseCallbacks = [], this.__propertyChangedCallbacks = [], this.__updating = {}, this.props = pe(this, e);
|
|
586
|
+
const r = he(this.props), o = this.Component, s = _t;
|
|
587
587
|
try {
|
|
588
|
-
_t = this, this.__initialized = !0,
|
|
588
|
+
_t = this, this.__initialized = !0, be(o) ? new o(r, {
|
|
589
589
|
element: this
|
|
590
590
|
}) : o(r, {
|
|
591
591
|
element: this
|
|
@@ -604,7 +604,7 @@ function _e(t, e) {
|
|
|
604
604
|
attributeChangedCallback(r, o, s) {
|
|
605
605
|
if (this.__initialized && !this.__updating[r] && (r = this.lookupProp(r), r in e)) {
|
|
606
606
|
if (s == null && !this[r]) return;
|
|
607
|
-
this[r] = e[r].parse ?
|
|
607
|
+
this[r] = e[r].parse ? Bt(s) : s;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
lookupProp(r) {
|
|
@@ -624,7 +624,7 @@ function _e(t, e) {
|
|
|
624
624
|
}
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function we(t, e = {}, n = {}) {
|
|
628
628
|
const {
|
|
629
629
|
BaseElement: a = HTMLElement,
|
|
630
630
|
extension: r,
|
|
@@ -632,13 +632,13 @@ function be(t, e = {}, n = {}) {
|
|
|
632
632
|
} = n;
|
|
633
633
|
return (s) => {
|
|
634
634
|
let i = o.get(t);
|
|
635
|
-
return i ? (i.prototype.Component = s, i) : (i =
|
|
635
|
+
return i ? (i.prototype.Component = s, i) : (i = ve(a, de(e)), i.prototype.Component = s, i.prototype.registeredTag = t, o.define(t, i, r), i);
|
|
636
636
|
};
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function me(t) {
|
|
639
639
|
const e = Object.keys(t), n = {};
|
|
640
640
|
for (let a = 0; a < e.length; a++) {
|
|
641
|
-
const [r, o] =
|
|
641
|
+
const [r, o] = E(t[e[a]]);
|
|
642
642
|
Object.defineProperty(n, e[a], {
|
|
643
643
|
get: r,
|
|
644
644
|
set(s) {
|
|
@@ -648,95 +648,95 @@ function ve(t) {
|
|
|
648
648
|
}
|
|
649
649
|
return n;
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function ye(t) {
|
|
652
652
|
if (t.assignedSlot && t.assignedSlot._$owner) return t.assignedSlot._$owner;
|
|
653
653
|
let e = t.parentNode;
|
|
654
654
|
for (; e && !e._$owner && !(e.assignedSlot && e.assignedSlot._$owner); )
|
|
655
655
|
e = e.parentNode;
|
|
656
656
|
return e && e.assignedSlot ? e.assignedSlot._$owner : t._$owner;
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function xe(t) {
|
|
659
659
|
return (e, n) => {
|
|
660
660
|
const { element: a } = n;
|
|
661
|
-
return
|
|
662
|
-
const o =
|
|
661
|
+
return nt((r) => {
|
|
662
|
+
const o = me(e);
|
|
663
663
|
a.addPropertyChangedCallback((i, c) => o[i] = c), a.addReleaseCallback(() => {
|
|
664
664
|
a.renderRoot.textContent = "", r();
|
|
665
665
|
});
|
|
666
666
|
const s = t(o, n);
|
|
667
|
-
return
|
|
668
|
-
},
|
|
667
|
+
return v(a.renderRoot, s);
|
|
668
|
+
}, ye(a));
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
return arguments.length === 2 && (n = e, e = {}),
|
|
671
|
+
function ke(t, e, n) {
|
|
672
|
+
return arguments.length === 2 && (n = e, e = {}), we(t, e)(xe(n));
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
const [e, n] =
|
|
676
|
-
return
|
|
674
|
+
function K(t) {
|
|
675
|
+
const [e, n] = E(t.peek(), { equals: !1 }), a = t.subscribe((r) => n(() => r));
|
|
676
|
+
return ft(() => a()), e;
|
|
677
677
|
}
|
|
678
|
-
const
|
|
679
|
-
function
|
|
680
|
-
const [e, n] =
|
|
678
|
+
const lt = Qt();
|
|
679
|
+
function Ce(t) {
|
|
680
|
+
const [e, n] = E("no-url"), [a, r] = E(!1), o = K(t.moqWatch.backend.audio.muted), [s, i] = E(0), c = K(t.moqWatch.backend.video.stalled), u = K(t.moqWatch.backend.jitter), [f, l] = E([]), C = K(t.moqWatch.backend.video.source.track), [x, S] = E(!1), [y, P] = E(!!document.fullscreenElement), A = () => {
|
|
681
681
|
t.moqWatch.paused = !t.moqWatch.paused;
|
|
682
|
-
},
|
|
682
|
+
}, w = () => {
|
|
683
683
|
document.fullscreenElement ? document.exitFullscreen() : t.moqWatch.requestFullscreen();
|
|
684
|
-
},
|
|
685
|
-
t.moqWatch.backend.audio.volume.set(
|
|
686
|
-
},
|
|
687
|
-
t.moqWatch.backend.audio.muted.update((
|
|
688
|
-
},
|
|
689
|
-
t.moqWatch.jitter =
|
|
690
|
-
},
|
|
684
|
+
}, h = (m) => {
|
|
685
|
+
t.moqWatch.backend.audio.volume.set(m / 100);
|
|
686
|
+
}, d = () => {
|
|
687
|
+
t.moqWatch.backend.audio.muted.update((m) => !m);
|
|
688
|
+
}, _ = (m) => {
|
|
689
|
+
t.moqWatch.jitter = m;
|
|
690
|
+
}, M = (m) => {
|
|
691
691
|
t.moqWatch.backend.video.source.target.update((q) => ({
|
|
692
692
|
...q,
|
|
693
|
-
name:
|
|
693
|
+
name: m
|
|
694
694
|
}));
|
|
695
|
-
},
|
|
695
|
+
}, U = K(t.moqWatch.backend.video.timestamp), D = K(t.moqWatch.backend.video.buffered), H = K(t.moqWatch.backend.audio.buffered), dt = {
|
|
696
696
|
moqWatch: t.moqWatch,
|
|
697
697
|
watchStatus: e,
|
|
698
|
-
togglePlayback:
|
|
698
|
+
togglePlayback: A,
|
|
699
699
|
isPlaying: a,
|
|
700
|
-
setVolume:
|
|
700
|
+
setVolume: h,
|
|
701
701
|
isMuted: o,
|
|
702
702
|
currentVolume: s,
|
|
703
|
-
toggleMuted:
|
|
703
|
+
toggleMuted: d,
|
|
704
704
|
buffering: c,
|
|
705
705
|
jitter: u,
|
|
706
|
-
setJitter:
|
|
706
|
+
setJitter: _,
|
|
707
707
|
availableRenditions: f,
|
|
708
|
-
activeRendition:
|
|
709
|
-
setActiveRendition:
|
|
710
|
-
isStatsPanelVisible:
|
|
711
|
-
setIsStatsPanelVisible:
|
|
712
|
-
isFullscreen:
|
|
713
|
-
toggleFullscreen:
|
|
714
|
-
timestamp:
|
|
715
|
-
videoBuffered:
|
|
716
|
-
audioBuffered:
|
|
717
|
-
},
|
|
718
|
-
|
|
719
|
-
const q =
|
|
720
|
-
q ?
|
|
721
|
-
}),
|
|
722
|
-
const q =
|
|
708
|
+
activeRendition: C,
|
|
709
|
+
setActiveRendition: M,
|
|
710
|
+
isStatsPanelVisible: x,
|
|
711
|
+
setIsStatsPanelVisible: S,
|
|
712
|
+
isFullscreen: y,
|
|
713
|
+
toggleFullscreen: w,
|
|
714
|
+
timestamp: U,
|
|
715
|
+
videoBuffered: D,
|
|
716
|
+
audioBuffered: H
|
|
717
|
+
}, j = t.moqWatch, V = new Ut.Effect();
|
|
718
|
+
V.run((m) => {
|
|
719
|
+
const q = m.get(j.connection.url), z = m.get(j.connection.status), O = m.get(j.broadcast.status);
|
|
720
|
+
q ? z === "disconnected" ? n("disconnected") : z === "connecting" ? n("connecting") : O === "offline" ? n("offline") : O === "loading" ? n("loading") : O === "live" ? n("live") : z === "connected" && n("connected") : n("no-url");
|
|
721
|
+
}), V.run((m) => {
|
|
722
|
+
const q = m.get(j.backend.paused);
|
|
723
723
|
r(!q);
|
|
724
|
-
}),
|
|
725
|
-
const q =
|
|
724
|
+
}), V.run((m) => {
|
|
725
|
+
const q = m.get(j.backend.audio.volume);
|
|
726
726
|
i(q * 100);
|
|
727
|
-
}),
|
|
728
|
-
const
|
|
729
|
-
name:
|
|
730
|
-
width:
|
|
731
|
-
height:
|
|
732
|
-
bitrate:
|
|
727
|
+
}), V.run((m) => {
|
|
728
|
+
const z = m.get(j.backend.video.source.catalog)?.renditions ?? {}, O = Object.entries(z).map(([$, G]) => ({
|
|
729
|
+
name: $,
|
|
730
|
+
width: G.codedWidth,
|
|
731
|
+
height: G.codedHeight,
|
|
732
|
+
bitrate: G.bitrate
|
|
733
733
|
}));
|
|
734
734
|
l(O);
|
|
735
735
|
});
|
|
736
|
-
const
|
|
737
|
-
|
|
736
|
+
const tt = () => {
|
|
737
|
+
P(!!document.fullscreenElement);
|
|
738
738
|
};
|
|
739
|
-
return
|
|
739
|
+
return V.event(document, "fullscreenchange", tt), ft(() => V.close()), p(lt.Provider, {
|
|
740
740
|
value: dt,
|
|
741
741
|
get children() {
|
|
742
742
|
return t.children;
|
|
@@ -744,120 +744,123 @@ function xe(t) {
|
|
|
744
744
|
});
|
|
745
745
|
}
|
|
746
746
|
function N() {
|
|
747
|
-
const t =
|
|
747
|
+
const t = Tt(lt);
|
|
748
748
|
if (!t)
|
|
749
749
|
throw new Error("useWatchUIContext must be used within a WatchUIContextProvider");
|
|
750
750
|
return t;
|
|
751
751
|
}
|
|
752
|
-
var
|
|
753
|
-
function
|
|
752
|
+
var Se = /* @__PURE__ */ R('<div class="watch-ui__buffering flex--center"><div class=watch-ui__buffering-spinner>');
|
|
753
|
+
function Ae() {
|
|
754
754
|
const t = N();
|
|
755
|
-
return
|
|
755
|
+
return p(Y, {
|
|
756
756
|
get when() {
|
|
757
757
|
return t.buffering();
|
|
758
758
|
},
|
|
759
759
|
get children() {
|
|
760
|
-
return
|
|
760
|
+
return Se();
|
|
761
761
|
}
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
|
-
var
|
|
765
|
-
const bt = 0,
|
|
766
|
-
function
|
|
764
|
+
var $e = /* @__PURE__ */ R('<div class=watch-ui__buffer><div role=slider tabindex=0 aria-label="Buffer jitter"><div class=watch-ui__buffer-playhead></div><div class="watch-ui__buffer-track watch-ui__buffer-track--video"><span class=watch-ui__buffer-track-label>Video</span><canvas class=watch-ui__buffer-canvas></canvas></div><div class="watch-ui__buffer-track watch-ui__buffer-track--audio"><span class=watch-ui__buffer-track-label>Audio</span><canvas class=watch-ui__buffer-canvas></canvas></div><div class=watch-ui__buffer-target-area><div class=watch-ui__buffer-target-line><span class=watch-ui__buffer-target-label>'), Ee = /* @__PURE__ */ R("<span class=watch-ui__buffer-help>click to change latency");
|
|
765
|
+
const bt = 0, et = 100;
|
|
766
|
+
function Mt(t, e, n, a, r) {
|
|
767
767
|
const o = t.getContext("2d");
|
|
768
768
|
if (!o) return;
|
|
769
769
|
const s = window.devicePixelRatio || 1, i = t.getBoundingClientRect(), c = i.width, u = i.height, f = Math.round(c * s), l = Math.round(u * s);
|
|
770
770
|
if ((t.width !== f || t.height !== l) && (t.width = f, t.height = l), o.setTransform(s, 0, 0, s, 0, 0), o.clearRect(0, 0, c, u), n === void 0) return;
|
|
771
|
-
const
|
|
772
|
-
for (let
|
|
773
|
-
const
|
|
774
|
-
if (
|
|
775
|
-
const
|
|
776
|
-
if (o.globalAlpha = 0.85, o.fillStyle = r ? "#f87171" :
|
|
777
|
-
const
|
|
778
|
-
o.globalAlpha = 0.7, o.fillStyle = "black", o.font = "500 9px system-ui, sans-serif", o.textAlign = "right", o.textBaseline = "middle", o.fillText(`+${
|
|
771
|
+
const C = 2, x = u - C * 2, S = 2;
|
|
772
|
+
for (let y = 0; y < e.length; y++) {
|
|
773
|
+
const P = e[y], A = P.start - n, w = P.end - n, h = Math.max(0, A), d = Math.min(w, a);
|
|
774
|
+
if (d <= h) continue;
|
|
775
|
+
const _ = h / a * c, M = Math.max(2, (d - h) / a * c);
|
|
776
|
+
if (o.globalAlpha = 0.85, o.fillStyle = r ? "#f87171" : y > 0 ? "#facc15" : "#4ade80", typeof o.roundRect == "function" ? (o.beginPath(), o.roundRect(_, C, M, x, S), o.fill()) : o.fillRect(_, C, M, x), w > a) {
|
|
777
|
+
const U = ((w - a) / 1e3).toFixed(1);
|
|
778
|
+
o.globalAlpha = 0.7, o.fillStyle = "black", o.font = "500 9px system-ui, sans-serif", o.textAlign = "right", o.textBaseline = "middle", o.fillText(`+${U}s`, _ + M - 4, u / 2);
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
function
|
|
783
|
-
const e = N(), n = () => t.max ?? 5e3, [a, r] =
|
|
784
|
-
let
|
|
785
|
-
const
|
|
786
|
-
if (!
|
|
787
|
-
const d =
|
|
788
|
-
e.setJitter(
|
|
789
|
-
},
|
|
790
|
-
r(!0),
|
|
791
|
-
},
|
|
792
|
-
a() &&
|
|
793
|
-
},
|
|
794
|
-
r(!1), document.removeEventListener("mousemove",
|
|
795
|
-
},
|
|
782
|
+
function Pe(t) {
|
|
783
|
+
const e = N(), n = () => t.max ?? 5e3, [a, r] = E(!1), [o, s] = E(!1), i = B(() => e.jitter() / n() * 100);
|
|
784
|
+
let c, u, f;
|
|
785
|
+
const l = 48, C = (h) => {
|
|
786
|
+
if (!c) return;
|
|
787
|
+
const d = c.getBoundingClientRect(), _ = d.width - l, U = Math.max(0, Math.min(h - d.left - l, _)) / _ * n(), D = Math.round(U / et) * et, H = Math.max(bt, Math.min(n(), D));
|
|
788
|
+
e.setJitter(H);
|
|
789
|
+
}, x = (h) => {
|
|
790
|
+
r(!0), s(!0), C(h.clientX), document.addEventListener("mousemove", S), document.addEventListener("mouseup", y);
|
|
791
|
+
}, S = (h) => {
|
|
792
|
+
a() && C(h.clientX);
|
|
793
|
+
}, y = () => {
|
|
794
|
+
r(!1), document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", y);
|
|
795
|
+
}, P = (h) => {
|
|
796
796
|
let d = 0;
|
|
797
|
-
if (
|
|
798
|
-
d =
|
|
799
|
-
else if (
|
|
800
|
-
d = -
|
|
797
|
+
if (h.key === "ArrowRight" || h.key === "ArrowUp")
|
|
798
|
+
d = et;
|
|
799
|
+
else if (h.key === "ArrowLeft" || h.key === "ArrowDown")
|
|
800
|
+
d = -et;
|
|
801
801
|
else
|
|
802
802
|
return;
|
|
803
|
-
|
|
804
|
-
const
|
|
805
|
-
e.setJitter(
|
|
803
|
+
h.preventDefault(), s(!0);
|
|
804
|
+
const _ = Math.max(bt, Math.min(n(), e.jitter() + d));
|
|
805
|
+
e.setJitter(_);
|
|
806
806
|
};
|
|
807
|
-
let
|
|
808
|
-
const
|
|
809
|
-
const
|
|
810
|
-
|
|
807
|
+
let A;
|
|
808
|
+
const w = () => {
|
|
809
|
+
const h = n(), d = e.timestamp(), _ = e.buffering();
|
|
810
|
+
u && Mt(u, e.videoBuffered(), d, h, _), f && Mt(f, e.audioBuffered(), d, h, _), A = requestAnimationFrame(w);
|
|
811
811
|
};
|
|
812
|
-
return
|
|
813
|
-
|
|
814
|
-
}),
|
|
815
|
-
|
|
812
|
+
return Wt(() => {
|
|
813
|
+
A = requestAnimationFrame(w);
|
|
814
|
+
}), ft(() => {
|
|
815
|
+
A !== void 0 && cancelAnimationFrame(A), document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", y);
|
|
816
816
|
}), (() => {
|
|
817
|
-
var
|
|
818
|
-
d.$$keydown =
|
|
819
|
-
var Z = s;
|
|
820
|
-
typeof Z == "function" ? pt(Z, d) : s = d, gt(d, "aria-valuemin", bt);
|
|
821
|
-
var b = i;
|
|
822
|
-
typeof b == "function" ? pt(b, P) : i = P;
|
|
817
|
+
var h = $e(), d = h.firstChild, _ = d.firstChild, M = _.nextSibling, U = M.firstChild, D = U.nextSibling, H = M.nextSibling, dt = H.firstChild, j = dt.nextSibling, V = H.nextSibling, tt = V.firstChild, m = tt.firstChild;
|
|
818
|
+
d.$$keydown = P, d.$$mousedown = x;
|
|
823
819
|
var q = c;
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
820
|
+
typeof q == "function" ? gt(q, d) : c = d, pt(d, "aria-valuemin", bt);
|
|
821
|
+
var z = u;
|
|
822
|
+
typeof z == "function" ? gt(z, D) : u = D;
|
|
823
|
+
var O = f;
|
|
824
|
+
return typeof O == "function" ? gt(O, j) : f = j, v(m, () => `${Math.round(e.jitter())}ms`), v(d, (() => {
|
|
825
|
+
var $ = wt(() => !o());
|
|
826
|
+
return () => $() && Ee();
|
|
827
|
+
})(), null), I(($) => {
|
|
828
|
+
var G = `watch-ui__buffer-visualization ${a() ? "watch-ui__buffer-visualization--dragging" : ""}`, kt = e.jitter(), Ct = n(), St = `${i()}%`;
|
|
829
|
+
return G !== $.e && mt(d, $.e = G), kt !== $.t && pt(d, "aria-valuenow", $.t = kt), Ct !== $.a && pt(d, "aria-valuemax", $.a = Ct), St !== $.o && ce(tt, "left", $.o = St), $;
|
|
827
830
|
}, {
|
|
828
831
|
e: void 0,
|
|
829
832
|
t: void 0,
|
|
830
833
|
a: void 0,
|
|
831
834
|
o: void 0
|
|
832
|
-
}),
|
|
835
|
+
}), h;
|
|
833
836
|
})();
|
|
834
837
|
}
|
|
835
|
-
|
|
836
|
-
function
|
|
838
|
+
le(["mousedown", "keydown"]);
|
|
839
|
+
function Me() {
|
|
837
840
|
const t = N();
|
|
838
|
-
return
|
|
841
|
+
return p(ct, {
|
|
839
842
|
title: "Fullscreen",
|
|
840
843
|
onClick: () => {
|
|
841
844
|
t.toggleFullscreen();
|
|
842
845
|
},
|
|
843
846
|
get children() {
|
|
844
|
-
return
|
|
847
|
+
return p(Y, {
|
|
845
848
|
get when() {
|
|
846
849
|
return t.isFullscreen();
|
|
847
850
|
},
|
|
848
851
|
get fallback() {
|
|
849
|
-
return
|
|
852
|
+
return p(W.FullscreenEnter, {});
|
|
850
853
|
},
|
|
851
854
|
get children() {
|
|
852
|
-
return
|
|
855
|
+
return p(W.FullscreenExit, {});
|
|
853
856
|
}
|
|
854
857
|
});
|
|
855
858
|
}
|
|
856
859
|
});
|
|
857
860
|
}
|
|
858
|
-
function
|
|
861
|
+
function qe() {
|
|
859
862
|
const t = N();
|
|
860
|
-
return
|
|
863
|
+
return p(ct, {
|
|
861
864
|
get title() {
|
|
862
865
|
return t.isPlaying() ? "Pause" : "Play";
|
|
863
866
|
},
|
|
@@ -866,51 +869,51 @@ function Ee() {
|
|
|
866
869
|
t.togglePlayback();
|
|
867
870
|
},
|
|
868
871
|
get children() {
|
|
869
|
-
return
|
|
872
|
+
return p(Y, {
|
|
870
873
|
get when() {
|
|
871
874
|
return t.isPlaying();
|
|
872
875
|
},
|
|
873
876
|
get fallback() {
|
|
874
|
-
return
|
|
877
|
+
return p(W.Play, {});
|
|
875
878
|
},
|
|
876
879
|
get children() {
|
|
877
|
-
return
|
|
880
|
+
return p(W.Pause, {});
|
|
878
881
|
}
|
|
879
882
|
});
|
|
880
883
|
}
|
|
881
884
|
});
|
|
882
885
|
}
|
|
883
|
-
var
|
|
884
|
-
function
|
|
886
|
+
var Re = /* @__PURE__ */ R("<div class=watch-ui__quality-selector><label for=quality-select class=watch-ui__quality-label>Quality: </label><select id=quality-select class=watch-ui__quality-select><option value>Auto"), je = /* @__PURE__ */ R("<option>");
|
|
887
|
+
function We(t) {
|
|
885
888
|
return t >= 1e6 ? `${(t / 1e6).toFixed(1)} Mbps` : t >= 1e3 ? `${(t / 1e3).toFixed(0)} kbps` : `${t} bps`;
|
|
886
889
|
}
|
|
887
|
-
function
|
|
890
|
+
function Te() {
|
|
888
891
|
const t = N(), e = (n) => {
|
|
889
892
|
const a = n.currentTarget.value || void 0;
|
|
890
893
|
t.setActiveRendition(a);
|
|
891
894
|
};
|
|
892
895
|
return (() => {
|
|
893
|
-
var n =
|
|
894
|
-
return r.firstChild, r.addEventListener("change", e),
|
|
896
|
+
var n = Re(), a = n.firstChild, r = a.nextSibling;
|
|
897
|
+
return r.firstChild, r.addEventListener("change", e), v(r, p(ie, {
|
|
895
898
|
get each() {
|
|
896
899
|
return t.availableRenditions() ?? [];
|
|
897
900
|
},
|
|
898
901
|
children: (o) => (() => {
|
|
899
|
-
var s =
|
|
900
|
-
return
|
|
901
|
-
var i =
|
|
902
|
+
var s = je();
|
|
903
|
+
return v(s, () => o.name, null), v(s, (() => {
|
|
904
|
+
var i = wt(() => !!(o.width && o.height));
|
|
902
905
|
return () => i() ? ` (${o.width}x${o.height})` : "";
|
|
903
|
-
})(), null),
|
|
904
|
-
var i =
|
|
905
|
-
return () => i() ? ` ${
|
|
906
|
-
})(), null),
|
|
906
|
+
})(), null), v(s, (() => {
|
|
907
|
+
var i = wt(() => !!o.bitrate);
|
|
908
|
+
return () => i() ? ` ${We(o.bitrate)}` : "";
|
|
909
|
+
})(), null), I(() => s.value = o.name), s;
|
|
907
910
|
})()
|
|
908
|
-
}), null),
|
|
911
|
+
}), null), I(() => r.value = t.activeRendition() ?? ""), n;
|
|
909
912
|
})();
|
|
910
913
|
}
|
|
911
|
-
function
|
|
914
|
+
function Ie() {
|
|
912
915
|
const t = N();
|
|
913
|
-
return
|
|
916
|
+
return p(ct, {
|
|
914
917
|
get title() {
|
|
915
918
|
return t.isStatsPanelVisible() ? "Hide stats" : "Show stats";
|
|
916
919
|
},
|
|
@@ -918,35 +921,35 @@ function je() {
|
|
|
918
921
|
t.setIsStatsPanelVisible(!t.isStatsPanelVisible());
|
|
919
922
|
},
|
|
920
923
|
get children() {
|
|
921
|
-
return
|
|
924
|
+
return p(W.Stats, {});
|
|
922
925
|
}
|
|
923
926
|
});
|
|
924
927
|
}
|
|
925
|
-
var
|
|
926
|
-
const
|
|
927
|
-
function
|
|
928
|
-
const [t, e] =
|
|
928
|
+
var Le = /* @__PURE__ */ R('<div class="watch-ui__volume-slider flex--center"><input type=range min=0 max=100><span class=watch-ui__volume-label>');
|
|
929
|
+
const Ve = (t, e) => e || t === 0 ? p(W.Mute, {}) : t > 0 && t <= 33 ? p(W.VolumeLow, {}) : t > 33 && t <= 66 ? p(W.VolumeMedium, {}) : p(W.VolumeHigh, {});
|
|
930
|
+
function ze() {
|
|
931
|
+
const [t, e] = E(0), n = N(), a = (r) => {
|
|
929
932
|
const o = r.currentTarget, s = parseFloat(o.value);
|
|
930
933
|
n.setVolume(s);
|
|
931
934
|
};
|
|
932
|
-
return
|
|
935
|
+
return jt(() => {
|
|
933
936
|
const r = n.currentVolume() || 0;
|
|
934
937
|
e(Math.round(r));
|
|
935
938
|
}), (() => {
|
|
936
|
-
var r =
|
|
937
|
-
return
|
|
939
|
+
var r = Le(), o = r.firstChild, s = o.nextSibling;
|
|
940
|
+
return v(r, p(ct, {
|
|
938
941
|
get title() {
|
|
939
942
|
return n.isMuted() ? "Unmute" : "Mute";
|
|
940
943
|
},
|
|
941
944
|
onClick: () => n.toggleMuted(),
|
|
942
945
|
get children() {
|
|
943
|
-
return
|
|
946
|
+
return Ve(n.currentVolume(), n.isMuted());
|
|
944
947
|
}
|
|
945
|
-
}), o), o.addEventListener("change", a),
|
|
948
|
+
}), o), o.addEventListener("change", a), v(s, t), I(() => o.value = n.currentVolume()), r;
|
|
946
949
|
})();
|
|
947
950
|
}
|
|
948
|
-
var
|
|
949
|
-
const
|
|
951
|
+
var Oe = /* @__PURE__ */ R('<div class="watch-ui__status-indicator flex--center"><span></span><span>');
|
|
952
|
+
const Be = {
|
|
950
953
|
"no-url": {
|
|
951
954
|
variant: "error",
|
|
952
955
|
text: "No URL"
|
|
@@ -975,78 +978,78 @@ const Ie = {
|
|
|
975
978
|
variant: "connected",
|
|
976
979
|
text: "Connected"
|
|
977
980
|
}
|
|
978
|
-
},
|
|
981
|
+
}, Fe = {
|
|
979
982
|
variant: "error",
|
|
980
983
|
text: "Unknown"
|
|
981
984
|
};
|
|
982
|
-
function
|
|
985
|
+
function Ne() {
|
|
983
986
|
const t = N(), e = () => {
|
|
984
987
|
const n = t.watchStatus();
|
|
985
|
-
return
|
|
988
|
+
return Be[n] || Fe;
|
|
986
989
|
};
|
|
987
990
|
return (() => {
|
|
988
|
-
var n =
|
|
989
|
-
return
|
|
991
|
+
var n = Oe(), a = n.firstChild, r = a.nextSibling;
|
|
992
|
+
return v(r, () => e().text), I((o) => {
|
|
990
993
|
var s = `watch-ui__status-indicator-dot watch-ui__status-indicator-dot--${e().variant}`, i = `watch-ui__status-indicator-text watch-ui__status-indicator-text--${e().variant}`;
|
|
991
|
-
return s !== o.e &&
|
|
994
|
+
return s !== o.e && mt(a, o.e = s), i !== o.t && mt(r, o.t = i), o;
|
|
992
995
|
}, {
|
|
993
996
|
e: void 0,
|
|
994
997
|
t: void 0
|
|
995
998
|
}), n;
|
|
996
999
|
})();
|
|
997
1000
|
}
|
|
998
|
-
var
|
|
999
|
-
function
|
|
1001
|
+
var Ue = /* @__PURE__ */ R('<div class=watch-ui__controls><div class="watch-ui__playback-controls flex--align-center"></div><div class=watch-ui__latency-controls>');
|
|
1002
|
+
function Ke() {
|
|
1000
1003
|
return (() => {
|
|
1001
|
-
var t =
|
|
1002
|
-
return
|
|
1004
|
+
var t = Ue(), e = t.firstChild, n = e.nextSibling;
|
|
1005
|
+
return v(e, p(qe, {}), null), v(e, p(ze, {}), null), v(e, p(Ne, {}), null), v(e, p(Ie, {}), null), v(e, p(Me, {}), null), v(n, p(Pe, {}), null), v(n, p(Te, {}), null), t;
|
|
1003
1006
|
})();
|
|
1004
1007
|
}
|
|
1005
|
-
const Ne = ':host{--color-white: #ffffff;--color-white-alpha-05: rgba(255, 255, 255, .05);--color-white-alpha-10: rgba(255, 255, 255, .1);--color-white-alpha-15: rgba(255, 255, 255, .15);--color-white-alpha-20: rgba(255, 255, 255, .2);--color-white-alpha-25: rgba(255, 255, 255, .25);--color-white-alpha-30: rgba(255, 255, 255, .3);--color-white-alpha-70: rgba(255, 255, 255, .7);--color-white-alpha-90: rgba(255, 255, 255, .9);--color-gray-100: #9ca3af;--color-gray-950: #1a1a1a;--color-blue-400: #00dfff;--color-blue-500: #52a1ff;--color-blue-900: #1b3243;--color-purple-400: #a855f7;--color-purple-500: #c27bff;--color-purple-900: #31144a;--color-green-400: #65ee2e;--color-green-900: #3d4928;--color-yellow-400: #facc15;--color-orange-300: rgb(253, 186, 116);--color-orange-400: #ff9900;--color-orange-450: #fb923c;--color-orange-500: #f97316;--color-orange-900: #4d301b;--color-amber-600: #d97706;--color-amber-600-alpha-20: rgba(217, 119, 6, .2);--color-amber-600-alpha-30: rgba(217, 119, 6, .3);--color-orange-400-alpha-20: rgba(255, 153, 0, .2);--color-orange-500-alpha-30: rgba(249, 115, 22, .3);--color-orange-500-alpha-40: rgba(249, 115, 22, .4);--color-orange-500-alpha-50: rgba(249, 115, 22, .5);--color-orange-500-alpha-60: rgba(249, 115, 22, .6);--color-orange-500-alpha-80: rgba(249, 115, 22, .8);--color-red-300: rgb(252, 165, 165);--color-red-400-alpha-25: rgba(248, 113, 113, .25);--color-red-500-alpha-25: rgba(239, 68, 68, .25);--color-red-500-alpha-45: rgba(239, 68, 68, .45);--color-red-500-alpha-60: rgba(239, 68, 68, .6);--color-red-600-alpha-25: rgba(220, 38, 38, .25);--color-red-900-alpha-35: rgba(127, 29, 29, .35);--color-red: #e60000;--color-black-alpha-8: rgba(0, 0, 0, .08);--color-black-alpha-10: rgba(0, 0, 0, .1);--color-black-alpha-60: rgba(0, 0, 0, .6);--color-black-alpha-70: rgba(0, 0, 0, .7);--color-black-alpha-85: rgba(0, 0, 0, .85);--color-black: #000000;--spacing-1: .0625rem;--spacing-2: .125rem;--spacing-4: .25rem;--spacing-8: .5rem;--spacing-12: .75rem;--spacing-16: 1rem;--spacing-24: 1.5rem;--spacing-32: 2rem;--spacing-48: 3rem;--border-radius-sm: .5rem;--border-radius-md: .75rem;--border-radius-lg: 1rem}:is(.flex--center){display:flex;justify-content:center;align-items:center}:is(.flex--align-center){align-items:center}:is(.flex--space-between){justify-content:space-between}.button{color:var(--color-white);cursor:pointer;background-color:var(--color-white-alpha-10);border:var(--spacing-1) solid var(--color-white-alpha-20);border-radius:50%;width:2.25rem;height:2.25rem;transform-origin:center;transition:transform .1s cubic-bezier(.4,0,.2,1)}.button:hover:not(:disabled){transform:scale(1.02);color:var(--color-white);background-color:var(--color-white-alpha-20);box-shadow:0 var(--spacing-2) var(--spacing-8) var(--color-black-alpha-10)}.button:active:not(:disabled){transform:scale(.98);box-shadow:0 var(--spacing-1) var(--spacing-4) var(--color-black-alpha-8)}.button:disabled{opacity:.5;cursor:default;color:var(--color-gray-100)}.stats{display:flex;align-items:center;justify-content:center;position:absolute;inset:0;pointer-events:none;z-index:2;width:100%;height:inherit;container-type:inline-size}.stats .stats__panel{position:absolute;display:flex;align-items:flex-start;justify-content:center;flex-direction:row;flex-wrap:wrap;gap:var(--spacing-12);max-width:240px;width:100%;background-color:var(--color-black-alpha-85);border:1px solid var(--color-white-alpha-25);border-radius:8px;padding:var(--spacing-12);pointer-events:auto;top:8px}@container (width > 480px) and (width <= 768px){.stats .stats__panel{max-width:360px;padding:var(--spacing-24)}}@container (width > 768px){.stats .stats__panel{max-width:600px;padding:var(--spacing-24)}}.stats .stats__panel .stats__item{display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:row;height:auto;column-gap:var(--spacing-8);flex-basis:calc(50% - var(--spacing-12));flex-grow:1;flex-shrink:1}@container (width > 480px){.stats .stats__panel .stats__item{flex-basis:calc(25% - var(--spacing-12))}}.stats .stats__panel .stats__item .stats__icon-wrapper{display:none;padding:var(--spacing-8);border-radius:8px;width:fit-content;height:fit-content;flex-shrink:0}@container (width > 480px){.stats .stats__panel .stats__item .stats__icon-wrapper{width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex-direction:row}}.stats .stats__panel .stats__item .stats__icon-wrapper svg{width:100%;height:100%}.stats .stats__panel .stats__item.stats__item--network .stats__icon-wrapper{background-color:var(--color-blue-900)}.stats .stats__panel .stats__item.stats__item--network,.stats .stats__panel .stats__item.stats__item--network .stats__item-data{color:var(--color-blue-400)}.stats .stats__panel .stats__item.stats__item--video .stats__icon-wrapper{background-color:var(--color-purple-900)}.stats .stats__panel .stats__item.stats__item--video,.stats .stats__panel .stats__item.stats__item--video .stats__item-data{color:var(--color-purple-400)}.stats .stats__panel .stats__item.stats__item--audio .stats__icon-wrapper{background-color:var(--color-green-900)}.stats .stats__panel .stats__item.stats__item--audio,.stats .stats__panel .stats__item.stats__item--audio .stats__item-data{color:var(--color-green-400)}.stats .stats__panel .stats__item.stats__item--buffer .stats__icon-wrapper{background-color:var(--color-orange-900)}.stats .stats__panel .stats__item.stats__item--buffer,.stats .stats__panel .stats__item.stats__item--buffer .stats__item-data{color:var(--color-orange-400)}.stats .stats__panel .stats__item .stats__item-detail{display:flex;align-items:flex-start;justify-content:space-evenly;flex-direction:column;gap:var(--spacing-4)}.stats .stats__panel .stats__item .stats__item-detail .stats__item-title{font-size:12px;font-weight:500;text-transform:capitalize;color:var(--color-gray-100);font-family:Segoe UI,Roboto,sans-serif;letter-spacing:1px;line-height:12px}.stats .stats__panel .stats__item .stats__item-detail .stats__item-data{font-size:16px;font-weight:700;font-family:Segoe UI,Roboto,sans-serif;white-space:pre-wrap;line-height:1.5}.watch-ui__video-container{display:block;position:relative;width:100%;height:auto;border-radius:var(--spacing-4);margin:0 auto;pointer-events:none}.watch-ui__controls{display:flex;flex-direction:column;gap:var(--spacing-24)}.button.button--playback{width:3rem;height:3rem;background:linear-gradient(to bottom right,var(--color-orange-400),var(--color-orange-500),var(--color-amber-600));box-shadow:0 0 var(--spacing-16) var(--color-orange-500-alpha-60);transition:box-shadow .15s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.button.button--playback:hover:not(:disabled){box-shadow:0 0 var(--spacing-24) var(--color-orange-500-alpha-80);transform:scale(1.02)}.button.button--playback:active:not(:disabled){transform:scale(.98)}.button.button--playback:before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom right,var(--color-white-alpha-30),transparent);opacity:0;transition:opacity .15s cubic-bezier(.4,0,.2,1);pointer-events:none}.button.button--playback:hover:before{opacity:1}.button.button--playback:after{content:"";position:absolute;inset:0;background-color:var(--color-white-alpha-20);border-radius:50%;filter:blur(var(--spacing-24));pointer-events:none}.watch-ui__playback-controls{display:flex;place-content:center space-around;gap:var(--spacing-8);padding:var(--spacing-8) 0}.watch-ui__latency-controls{display:flex;flex-direction:column;gap:var(--spacing-16)}.watch-ui__volume-slider{gap:var(--spacing-4)}.watch-ui__volume-label{width:var(--spacing-16);text-align:right}.watch-ui__quality-selector{display:flex;align-items:center;gap:var(--spacing-8);background:transparent;border-radius:var(--spacing-8)}.watch-ui__quality-label{font-size:1.25rem;font-weight:500;color:var(--color-white);white-space:nowrap}.watch-ui__quality-select{flex:0 1 auto;font-size:1rem;padding:var(--spacing-8);border-radius:var(--spacing-4);background:var(--color-white-alpha-10);color:var(--color-white);border:var(--spacing-1) solid var(--color-white-alpha-20);cursor:pointer;transition:background .2s ease}.watch-ui__quality-select:hover{background:var(--color-white-alpha-15)}.watch-ui__quality-select:focus{outline:var(--spacing-2) solid var(--color-white-alpha-30);outline-offset:var(--spacing-2)}.watch-ui__quality-select option{background:var(--color-gray-950);color:var(--color-white)}.watch-ui__buffer{width:100%}.watch-ui__buffer-visualization{position:relative;width:100%;height:3.75rem;background:var(--color-white-alpha-10);border-radius:var(--spacing-4);cursor:pointer;user-select:none;padding-left:var(--spacing-48);box-sizing:border-box}.watch-ui__buffer-playhead{position:absolute;left:var(--spacing-48);top:0;bottom:0;width:var(--spacing-2);background:var(--color-white);z-index:3}.watch-ui__buffer-track{display:flex;align-items:center;position:absolute;left:var(--spacing-48);right:0;height:var(--spacing-24)}.watch-ui__buffer-track--video{top:var(--spacing-4)}.watch-ui__buffer-track--audio{top:var(--spacing-32)}.watch-ui__buffer-track-label{position:absolute;left:-2.875rem;width:2.5rem;font-size:.625rem;color:var(--color-white-alpha-70);text-align:right;padding-right:var(--spacing-4);pointer-events:none;box-sizing:border-box}.watch-ui__buffer-canvas{position:absolute;top:0;left:0;width:100%;height:100%}.watch-ui__buffer-target-area{position:absolute;top:0;bottom:0;left:var(--spacing-48);right:0;pointer-events:none}.watch-ui__buffer-target-line{position:absolute;top:0;bottom:0;width:.1875rem;background:var(--color-orange-400, var(--color-orange-450));z-index:2;cursor:ew-resize;border-radius:var(--spacing-1);pointer-events:auto}.watch-ui__buffer-target-label{position:absolute;bottom:100%;left:50%;transform:translate(-50%);font-size:.6875rem;font-weight:500;color:var(--color-orange-400, var(--color-orange-450));white-space:nowrap;margin-bottom:var(--spacing-2);opacity:0;transition:opacity .15s ease;pointer-events:none}.watch-ui__buffer-visualization:hover .watch-ui__buffer-target-label,.watch-ui__buffer-visualization--dragging .watch-ui__buffer-target-label{opacity:1}.watch-ui__buffering{position:absolute;width:100%;height:100%;top:0;left:0;z-index:1;background-color:var(--color-black-alpha-40);backdrop-filter:blur(var(--spacing-2));pointer-events:auto}.watch-ui__buffering-spinner{width:2.5rem;height:2.5rem;border:var(--spacing-4) solid var(--color-white-alpha-20);border-top:var(--spacing-4) solid var(--color-white);border-radius:50%;animation:buffer-spin 1s linear infinite}@keyframes buffer-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.watch-ui__status-indicator{gap:var(--spacing-12);backdrop-filter:blur(var(--spacing-16))}.watch-ui__status-indicator-dot{position:relative;width:.75rem;height:.75rem;border-radius:50%;flex-shrink:0;z-index:1}.watch-ui__status-indicator-dot:after{content:"";position:absolute;inset:0;border-radius:50%;background:currentcolor;transform:scale(1);opacity:.5;animation:status-pulse 1.5s ease-out infinite;z-index:-1}.watch-ui__status-indicator-dot:after{display:none}.watch-ui__status-indicator-dot--live:after,.watch-ui__status-indicator-dot--connected:after,.watch-ui__status-indicator-dot--loading:after,.watch-ui__status-indicator-dot--connecting:after{display:block}.watch-ui__status-indicator-dot--error{background:var(--color-gray-100);color:var(--color-gray-100)}.watch-ui__status-indicator-text--error{color:var(--color-gray-100)}.watch-ui__status-indicator-dot--connecting{background:var(--color-yellow-400);color:var(--color-yellow-400)}.watch-ui__status-indicator-text--connecting{color:var(--color-yellow-400)}.watch-ui__status-indicator-dot--loading{background:var(--color-yellow-400);color:var(--color-yellow-400)}.watch-ui__status-indicator-text--loading{color:var(--color-yellow-400)}.watch-ui__status-indicator-dot--live{background:var(--color-green-400);color:var(--color-green-400)}.watch-ui__status-indicator-text--live{color:var(--color-green-400)}.watch-ui__status-indicator-dot--connected{background:var(--color-blue-500);color:var(--color-blue-500)}.watch-ui__status-indicator-text--connected{color:var(--color-blue-500)}.watch-ui__status-indicator-text{font-size:1rem;letter-spacing:.1rem}@keyframes status-pulse{0%{transform:scale(1);opacity:.5}70%{opacity:.25}to{transform:scale(2.5);opacity:0}}';
|
|
1006
|
-
var
|
|
1007
|
-
function
|
|
1008
|
-
return
|
|
1008
|
+
const De = ':host{--color-white: #ffffff;--color-white-alpha-05: rgba(255, 255, 255, .05);--color-white-alpha-10: rgba(255, 255, 255, .1);--color-white-alpha-15: rgba(255, 255, 255, .15);--color-white-alpha-20: rgba(255, 255, 255, .2);--color-white-alpha-25: rgba(255, 255, 255, .25);--color-white-alpha-30: rgba(255, 255, 255, .3);--color-white-alpha-70: rgba(255, 255, 255, .7);--color-white-alpha-90: rgba(255, 255, 255, .9);--color-gray-100: #9ca3af;--color-gray-950: #1a1a1a;--color-blue-400: #00dfff;--color-blue-500: #52a1ff;--color-blue-900: #1b3243;--color-purple-400: #a855f7;--color-purple-500: #c27bff;--color-purple-900: #31144a;--color-green-400: #65ee2e;--color-green-900: #3d4928;--color-yellow-400: #facc15;--color-orange-300: rgb(253, 186, 116);--color-orange-400: #ff9900;--color-orange-450: #fb923c;--color-orange-500: #f97316;--color-orange-900: #4d301b;--color-amber-600: #d97706;--color-amber-600-alpha-20: rgba(217, 119, 6, .2);--color-amber-600-alpha-30: rgba(217, 119, 6, .3);--color-orange-400-alpha-20: rgba(255, 153, 0, .2);--color-orange-500-alpha-30: rgba(249, 115, 22, .3);--color-orange-500-alpha-40: rgba(249, 115, 22, .4);--color-orange-500-alpha-50: rgba(249, 115, 22, .5);--color-orange-500-alpha-60: rgba(249, 115, 22, .6);--color-orange-500-alpha-80: rgba(249, 115, 22, .8);--color-red-300: rgb(252, 165, 165);--color-red-400-alpha-25: rgba(248, 113, 113, .25);--color-red-500-alpha-25: rgba(239, 68, 68, .25);--color-red-500-alpha-45: rgba(239, 68, 68, .45);--color-red-500-alpha-60: rgba(239, 68, 68, .6);--color-red-600-alpha-25: rgba(220, 38, 38, .25);--color-red-900-alpha-35: rgba(127, 29, 29, .35);--color-red: #e60000;--color-black-alpha-8: rgba(0, 0, 0, .08);--color-black-alpha-10: rgba(0, 0, 0, .1);--color-black-alpha-60: rgba(0, 0, 0, .6);--color-black-alpha-70: rgba(0, 0, 0, .7);--color-black-alpha-85: rgba(0, 0, 0, .85);--color-black: #000000;--spacing-1: .0625rem;--spacing-2: .125rem;--spacing-4: .25rem;--spacing-8: .5rem;--spacing-12: .75rem;--spacing-16: 1rem;--spacing-24: 1.5rem;--spacing-32: 2rem;--spacing-48: 3rem;--border-radius-sm: .5rem;--border-radius-md: .75rem;--border-radius-lg: 1rem}:is(.flex--center){display:flex;justify-content:center;align-items:center}:is(.flex--align-center){align-items:center}:is(.flex--space-between){justify-content:space-between}.button{color:var(--color-white);cursor:pointer;background-color:var(--color-white-alpha-10);border:var(--spacing-1) solid var(--color-white-alpha-20);border-radius:50%;width:2.25rem;height:2.25rem;transform-origin:center;transition:transform .1s cubic-bezier(.4,0,.2,1)}.button:hover:not(:disabled){transform:scale(1.02);color:var(--color-white);background-color:var(--color-white-alpha-20);box-shadow:0 var(--spacing-2) var(--spacing-8) var(--color-black-alpha-10)}.button:active:not(:disabled){transform:scale(.98);box-shadow:0 var(--spacing-1) var(--spacing-4) var(--color-black-alpha-8)}.button:disabled{opacity:.5;cursor:default;color:var(--color-gray-100)}.stats{display:flex;align-items:center;justify-content:center;position:absolute;inset:0;pointer-events:none;z-index:2;width:100%;height:inherit;container-type:inline-size}.stats .stats__panel{position:absolute;display:flex;align-items:flex-start;justify-content:center;flex-direction:row;flex-wrap:wrap;gap:var(--spacing-12);max-width:240px;width:100%;background-color:var(--color-black-alpha-85);border:1px solid var(--color-white-alpha-25);border-radius:8px;padding:var(--spacing-12);pointer-events:auto;top:8px}@container (width > 480px) and (width <= 768px){.stats .stats__panel{max-width:360px;padding:var(--spacing-24)}}@container (width > 768px){.stats .stats__panel{max-width:600px;padding:var(--spacing-24)}}.stats .stats__panel .stats__item{display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:row;height:auto;column-gap:var(--spacing-8);flex-basis:calc(50% - var(--spacing-12));flex-grow:1;flex-shrink:1}@container (width > 480px){.stats .stats__panel .stats__item{flex-basis:calc(25% - var(--spacing-12))}}.stats .stats__panel .stats__item .stats__icon-wrapper{display:none;padding:var(--spacing-8);border-radius:8px;width:fit-content;height:fit-content;flex-shrink:0}@container (width > 480px){.stats .stats__panel .stats__item .stats__icon-wrapper{width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex-direction:row}}.stats .stats__panel .stats__item .stats__icon-wrapper svg{width:100%;height:100%}.stats .stats__panel .stats__item.stats__item--network .stats__icon-wrapper{background-color:var(--color-blue-900)}.stats .stats__panel .stats__item.stats__item--network,.stats .stats__panel .stats__item.stats__item--network .stats__item-data{color:var(--color-blue-400)}.stats .stats__panel .stats__item.stats__item--video .stats__icon-wrapper{background-color:var(--color-purple-900)}.stats .stats__panel .stats__item.stats__item--video,.stats .stats__panel .stats__item.stats__item--video .stats__item-data{color:var(--color-purple-400)}.stats .stats__panel .stats__item.stats__item--audio .stats__icon-wrapper{background-color:var(--color-green-900)}.stats .stats__panel .stats__item.stats__item--audio,.stats .stats__panel .stats__item.stats__item--audio .stats__item-data{color:var(--color-green-400)}.stats .stats__panel .stats__item.stats__item--buffer .stats__icon-wrapper{background-color:var(--color-orange-900)}.stats .stats__panel .stats__item.stats__item--buffer,.stats .stats__panel .stats__item.stats__item--buffer .stats__item-data{color:var(--color-orange-400)}.stats .stats__panel .stats__item .stats__item-detail{display:flex;align-items:flex-start;justify-content:space-evenly;flex-direction:column;gap:var(--spacing-4)}.stats .stats__panel .stats__item .stats__item-detail .stats__item-title{font-size:12px;font-weight:500;text-transform:capitalize;color:var(--color-gray-100);font-family:Segoe UI,Roboto,sans-serif;letter-spacing:1px;line-height:12px}.stats .stats__panel .stats__item .stats__item-detail .stats__item-data{font-size:16px;font-weight:700;font-family:Segoe UI,Roboto,sans-serif;white-space:pre-wrap;line-height:1.5}.watch-ui__video-container{display:block;position:relative;width:100%;height:auto;border-radius:var(--spacing-4);margin:0 auto;pointer-events:none}.watch-ui__controls{display:flex;flex-direction:column;gap:var(--spacing-24)}.button.button--playback{width:3rem;height:3rem;background:linear-gradient(to bottom right,var(--color-orange-400),var(--color-orange-500),var(--color-amber-600));box-shadow:0 0 var(--spacing-16) var(--color-orange-500-alpha-60);transition:box-shadow .15s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.button.button--playback:hover:not(:disabled){box-shadow:0 0 var(--spacing-24) var(--color-orange-500-alpha-80);transform:scale(1.02)}.button.button--playback:active:not(:disabled){transform:scale(.98)}.button.button--playback:before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom right,var(--color-white-alpha-30),transparent);opacity:0;transition:opacity .15s cubic-bezier(.4,0,.2,1);pointer-events:none}.button.button--playback:hover:before{opacity:1}.button.button--playback:after{content:"";position:absolute;inset:0;background-color:var(--color-white-alpha-20);border-radius:50%;filter:blur(var(--spacing-24));pointer-events:none}.watch-ui__playback-controls{display:flex;place-content:center space-around;gap:var(--spacing-8);padding:var(--spacing-8) 0}.watch-ui__latency-controls{display:flex;flex-direction:column;gap:var(--spacing-16)}.watch-ui__volume-slider{gap:var(--spacing-4)}.watch-ui__volume-label{width:var(--spacing-16);text-align:right}.watch-ui__quality-selector{display:flex;align-items:center;gap:var(--spacing-8);background:transparent;border-radius:var(--spacing-8)}.watch-ui__quality-label{font-size:1.25rem;font-weight:500;color:var(--color-white);white-space:nowrap}.watch-ui__quality-select{flex:0 1 auto;font-size:1rem;padding:var(--spacing-8);border-radius:var(--spacing-4);background:var(--color-white-alpha-10);color:var(--color-white);border:var(--spacing-1) solid var(--color-white-alpha-20);cursor:pointer;transition:background .2s ease}.watch-ui__quality-select:hover{background:var(--color-white-alpha-15)}.watch-ui__quality-select:focus{outline:var(--spacing-2) solid var(--color-white-alpha-30);outline-offset:var(--spacing-2)}.watch-ui__quality-select option{background:var(--color-gray-950);color:var(--color-white)}.watch-ui__buffer{width:100%}.watch-ui__buffer-visualization{position:relative;width:100%;height:3.75rem;background:var(--color-white-alpha-10);border-radius:var(--spacing-4);cursor:pointer;user-select:none;padding-left:var(--spacing-48);box-sizing:border-box}.watch-ui__buffer-playhead{position:absolute;left:var(--spacing-48);top:0;bottom:0;width:var(--spacing-2);background:var(--color-white);z-index:3}.watch-ui__buffer-track{display:flex;align-items:center;position:absolute;left:var(--spacing-48);right:0;height:var(--spacing-24)}.watch-ui__buffer-track--video{top:var(--spacing-4)}.watch-ui__buffer-track--audio{top:var(--spacing-32)}.watch-ui__buffer-track-label{position:absolute;left:-2.875rem;width:2.5rem;font-size:.625rem;color:var(--color-white-alpha-70);text-align:right;padding-right:var(--spacing-4);pointer-events:none;box-sizing:border-box}.watch-ui__buffer-canvas{position:absolute;top:0;left:0;width:100%;height:100%}.watch-ui__buffer-target-area{position:absolute;top:0;bottom:0;left:var(--spacing-48);right:0;pointer-events:none}.watch-ui__buffer-target-line{position:absolute;top:0;bottom:0;width:.1875rem;background:var(--color-orange-400, var(--color-orange-450));z-index:2;cursor:ew-resize;border-radius:var(--spacing-1);pointer-events:auto}.watch-ui__buffer-target-label{position:absolute;bottom:100%;left:50%;transform:translate(-50%);font-size:.6875rem;font-weight:500;color:var(--color-orange-400, var(--color-orange-450));white-space:nowrap;margin-bottom:var(--spacing-2);opacity:0;transition:opacity .15s ease;pointer-events:none}.watch-ui__buffer-visualization:hover .watch-ui__buffer-target-label,.watch-ui__buffer-visualization--dragging .watch-ui__buffer-target-label{opacity:1}.watch-ui__buffer-help{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.75rem;color:var(--color-white-alpha-30, rgba(255, 255, 255, .3));pointer-events:none;white-space:nowrap}.watch-ui__buffering{position:absolute;width:100%;height:100%;top:0;left:0;z-index:1;background-color:var(--color-black-alpha-40);backdrop-filter:blur(var(--spacing-2));pointer-events:auto}.watch-ui__buffering-spinner{width:2.5rem;height:2.5rem;border:var(--spacing-4) solid var(--color-white-alpha-20);border-top:var(--spacing-4) solid var(--color-white);border-radius:50%;animation:buffer-spin 1s linear infinite}@keyframes buffer-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.watch-ui__status-indicator{gap:var(--spacing-12);backdrop-filter:blur(var(--spacing-16))}.watch-ui__status-indicator-dot{position:relative;width:.75rem;height:.75rem;border-radius:50%;flex-shrink:0;z-index:1}.watch-ui__status-indicator-dot:after{content:"";position:absolute;inset:0;border-radius:50%;background:currentcolor;transform:scale(1);opacity:.5;animation:status-pulse 1.5s ease-out infinite;z-index:-1}.watch-ui__status-indicator-dot:after{display:none}.watch-ui__status-indicator-dot--live:after,.watch-ui__status-indicator-dot--connected:after,.watch-ui__status-indicator-dot--loading:after,.watch-ui__status-indicator-dot--connecting:after{display:block}.watch-ui__status-indicator-dot--error{background:var(--color-gray-100);color:var(--color-gray-100)}.watch-ui__status-indicator-text--error{color:var(--color-gray-100)}.watch-ui__status-indicator-dot--connecting{background:var(--color-yellow-400);color:var(--color-yellow-400)}.watch-ui__status-indicator-text--connecting{color:var(--color-yellow-400)}.watch-ui__status-indicator-dot--loading{background:var(--color-yellow-400);color:var(--color-yellow-400)}.watch-ui__status-indicator-text--loading{color:var(--color-yellow-400)}.watch-ui__status-indicator-dot--live{background:var(--color-green-400);color:var(--color-green-400)}.watch-ui__status-indicator-text--live{color:var(--color-green-400)}.watch-ui__status-indicator-dot--connected{background:var(--color-blue-500);color:var(--color-blue-500)}.watch-ui__status-indicator-text--connected{color:var(--color-blue-500)}.watch-ui__status-indicator-text{font-size:1rem;letter-spacing:.1rem}@keyframes status-pulse{0%{transform:scale(1);opacity:.5}70%{opacity:.25}to{transform:scale(2.5);opacity:0}}';
|
|
1009
|
+
var He = /* @__PURE__ */ R("<style>"), Ge = /* @__PURE__ */ R("<div class=watch-ui__video-container><slot>");
|
|
1010
|
+
function Je(t) {
|
|
1011
|
+
return p(Ce, {
|
|
1009
1012
|
get moqWatch() {
|
|
1010
1013
|
return t.watch;
|
|
1011
1014
|
},
|
|
1012
1015
|
get children() {
|
|
1013
1016
|
return [(() => {
|
|
1014
|
-
var e =
|
|
1015
|
-
return
|
|
1017
|
+
var e = He();
|
|
1018
|
+
return v(e, De), e;
|
|
1016
1019
|
})(), (() => {
|
|
1017
|
-
var e =
|
|
1018
|
-
return n._$owner =
|
|
1019
|
-
const a =
|
|
1020
|
-
return a ?
|
|
1020
|
+
var e = Ge(), n = e.firstChild;
|
|
1021
|
+
return n._$owner = Jt(), v(e, () => {
|
|
1022
|
+
const a = Tt(lt);
|
|
1023
|
+
return a ? p(Y, {
|
|
1021
1024
|
get when() {
|
|
1022
1025
|
return a.isStatsPanelVisible();
|
|
1023
1026
|
},
|
|
1024
1027
|
get children() {
|
|
1025
|
-
return
|
|
1026
|
-
context:
|
|
1028
|
+
return p(Nt, {
|
|
1029
|
+
context: lt,
|
|
1027
1030
|
getElement: (r) => r?.moqWatch.backend
|
|
1028
1031
|
});
|
|
1029
1032
|
}
|
|
1030
1033
|
}) : null;
|
|
1031
|
-
}, null),
|
|
1032
|
-
})(),
|
|
1034
|
+
}, null), v(e, p(Ae, {}), null), e;
|
|
1035
|
+
})(), p(Ke, {})];
|
|
1033
1036
|
}
|
|
1034
1037
|
});
|
|
1035
1038
|
}
|
|
1036
|
-
|
|
1039
|
+
ke("moq-watch-ui", (t, {
|
|
1037
1040
|
element: e
|
|
1038
1041
|
}) => {
|
|
1039
|
-
const [n, a] =
|
|
1040
|
-
return
|
|
1042
|
+
const [n, a] = E();
|
|
1043
|
+
return Wt(async () => {
|
|
1041
1044
|
await customElements.whenDefined("moq-watch");
|
|
1042
1045
|
const r = e.querySelector("moq-watch");
|
|
1043
1046
|
a(r || void 0);
|
|
1044
|
-
}),
|
|
1047
|
+
}), p(Y, {
|
|
1045
1048
|
get when() {
|
|
1046
1049
|
return n();
|
|
1047
1050
|
},
|
|
1048
1051
|
keyed: !0,
|
|
1049
|
-
children: (r) =>
|
|
1052
|
+
children: (r) => p(Je, {
|
|
1050
1053
|
watch: r
|
|
1051
1054
|
})
|
|
1052
1055
|
});
|