@moq/publish 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/broadcast.d.ts +2 -2
- package/element.d.ts +17 -7
- package/element.d.ts.map +1 -1
- package/element.js +108 -79
- package/element.js.map +1 -1
- package/index.js +2 -2
- package/package.json +5 -5
- package/{screen-BCioRZHS.js → screen-BZp2qFyj.js} +33 -26
- package/{screen-BCioRZHS.js.map → screen-BZp2qFyj.js.map} +1 -1
- package/support/element.js +6 -6
- package/support/element.js.map +1 -1
- package/ui/index.js +241 -241
- package/ui/index.js.map +1 -1
package/ui/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Button as R, Icon as j } from "@moq/ui-core";
|
|
|
2
2
|
const $e = !1, Ee = (e, t) => e === t, qe = /* @__PURE__ */ Symbol("solid-track"), Z = {
|
|
3
3
|
equals: Ee
|
|
4
4
|
};
|
|
5
|
-
let
|
|
5
|
+
let fe = _e;
|
|
6
6
|
const I = 1, X = 2, pe = {
|
|
7
7
|
owned: null,
|
|
8
8
|
cleanups: null,
|
|
@@ -12,17 +12,17 @@ const I = 1, X = 2, pe = {
|
|
|
12
12
|
var g = null;
|
|
13
13
|
let ne = null, Oe = null, v = null, y = null, q = null, re = 0;
|
|
14
14
|
function W(e, t) {
|
|
15
|
-
const r = v,
|
|
15
|
+
const r = v, n = g, o = e.length === 0, i = t === void 0 ? n : t, l = o ? pe : {
|
|
16
16
|
owned: null,
|
|
17
17
|
cleanups: null,
|
|
18
18
|
context: i ? i.context : null,
|
|
19
19
|
owner: i
|
|
20
|
-
}, s =
|
|
20
|
+
}, s = o ? e : () => e(() => O(() => D(l)));
|
|
21
21
|
g = l, v = null;
|
|
22
22
|
try {
|
|
23
23
|
return G(s, !0);
|
|
24
24
|
} finally {
|
|
25
|
-
v = r, g =
|
|
25
|
+
v = r, g = n;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
function x(e, t) {
|
|
@@ -32,22 +32,22 @@ function x(e, t) {
|
|
|
32
32
|
observers: null,
|
|
33
33
|
observerSlots: null,
|
|
34
34
|
comparator: t.equals || void 0
|
|
35
|
-
},
|
|
36
|
-
return [ge.bind(r),
|
|
35
|
+
}, n = (o) => (typeof o == "function" && (o = o(r.value)), ve(r, o));
|
|
36
|
+
return [ge.bind(r), n];
|
|
37
37
|
}
|
|
38
38
|
function U(e, t, r) {
|
|
39
|
-
const
|
|
40
|
-
H(
|
|
39
|
+
const n = ae(e, t, !1, I);
|
|
40
|
+
H(n);
|
|
41
41
|
}
|
|
42
42
|
function be(e, t, r) {
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
43
|
+
fe = Fe;
|
|
44
|
+
const n = ae(e, t, !1, I);
|
|
45
|
+
n.user = !0, q ? q.push(n) : H(n);
|
|
46
46
|
}
|
|
47
47
|
function T(e, t, r) {
|
|
48
48
|
r = r ? Object.assign({}, Z, r) : Z;
|
|
49
|
-
const
|
|
50
|
-
return
|
|
49
|
+
const n = ae(e, t, !0, 0);
|
|
50
|
+
return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, H(n), ge.bind(n);
|
|
51
51
|
}
|
|
52
52
|
function O(e) {
|
|
53
53
|
if (v === null) return e();
|
|
@@ -83,8 +83,8 @@ function je(e) {
|
|
|
83
83
|
function Ue(e) {
|
|
84
84
|
const t = T(e), r = T(() => se(t()));
|
|
85
85
|
return r.toArray = () => {
|
|
86
|
-
const
|
|
87
|
-
return Array.isArray(
|
|
86
|
+
const n = r();
|
|
87
|
+
return Array.isArray(n) ? n : n != null ? [n] : [];
|
|
88
88
|
}, r;
|
|
89
89
|
}
|
|
90
90
|
function ge() {
|
|
@@ -101,10 +101,10 @@ function ge() {
|
|
|
101
101
|
return this.value;
|
|
102
102
|
}
|
|
103
103
|
function ve(e, t, r) {
|
|
104
|
-
let
|
|
105
|
-
return (!e.comparator || !e.comparator(
|
|
106
|
-
for (let
|
|
107
|
-
const i = e.observers[
|
|
104
|
+
let n = e.value;
|
|
105
|
+
return (!e.comparator || !e.comparator(n, t)) && (e.value = t, e.observers && e.observers.length && G(() => {
|
|
106
|
+
for (let o = 0; o < e.observers.length; o += 1) {
|
|
107
|
+
const i = e.observers[o], l = ne && ne.running;
|
|
108
108
|
l && ne.disposed.has(i), (l ? !i.tState : !i.state) && (i.pure ? y.push(i) : q.push(i), i.observers && me(i)), l || (i.state = I);
|
|
109
109
|
}
|
|
110
110
|
if (y.length > 1e6)
|
|
@@ -118,22 +118,22 @@ function H(e) {
|
|
|
118
118
|
Be(e, e.value, t);
|
|
119
119
|
}
|
|
120
120
|
function Be(e, t, r) {
|
|
121
|
-
let
|
|
122
|
-
const
|
|
121
|
+
let n;
|
|
122
|
+
const o = g, i = v;
|
|
123
123
|
v = g = e;
|
|
124
124
|
try {
|
|
125
|
-
|
|
125
|
+
n = e.fn(t);
|
|
126
126
|
} catch (l) {
|
|
127
127
|
return e.pure && (e.state = I, e.owned && e.owned.forEach(D), e.owned = null), e.updatedAt = r + 1, we(l);
|
|
128
128
|
} finally {
|
|
129
|
-
v = i, g =
|
|
129
|
+
v = i, g = o;
|
|
130
130
|
}
|
|
131
|
-
(!e.updatedAt || e.updatedAt <= r) && (e.updatedAt != null && "observers" in e ? ve(e,
|
|
131
|
+
(!e.updatedAt || e.updatedAt <= r) && (e.updatedAt != null && "observers" in e ? ve(e, n) : e.value = n, e.updatedAt = r);
|
|
132
132
|
}
|
|
133
|
-
function ae(e, t, r,
|
|
133
|
+
function ae(e, t, r, n = I, o) {
|
|
134
134
|
const i = {
|
|
135
135
|
fn: e,
|
|
136
|
-
state:
|
|
136
|
+
state: n,
|
|
137
137
|
updatedAt: null,
|
|
138
138
|
owned: null,
|
|
139
139
|
sources: null,
|
|
@@ -157,8 +157,8 @@ function Y(e) {
|
|
|
157
157
|
if (e = t[r], e.state === I)
|
|
158
158
|
H(e);
|
|
159
159
|
else if (e.state === X) {
|
|
160
|
-
const
|
|
161
|
-
y = null, G(() => ee(e, t[0]), !1), y =
|
|
160
|
+
const n = y;
|
|
161
|
+
y = null, G(() => ee(e, t[0]), !1), y = n;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
function G(e, t) {
|
|
@@ -166,16 +166,16 @@ function G(e, t) {
|
|
|
166
166
|
let r = !1;
|
|
167
167
|
t || (y = []), q ? r = !0 : q = [], re++;
|
|
168
168
|
try {
|
|
169
|
-
const
|
|
170
|
-
return Le(r),
|
|
171
|
-
} catch (
|
|
172
|
-
r || (q = null), y = null, we(
|
|
169
|
+
const n = e();
|
|
170
|
+
return Le(r), n;
|
|
171
|
+
} catch (n) {
|
|
172
|
+
r || (q = null), y = null, we(n);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
function Le(e) {
|
|
176
176
|
if (y && (_e(y), y = null), e) return;
|
|
177
177
|
const t = q;
|
|
178
|
-
q = null, t.length && G(() =>
|
|
178
|
+
q = null, t.length && G(() => fe(t), !1);
|
|
179
179
|
}
|
|
180
180
|
function _e(e) {
|
|
181
181
|
for (let t = 0; t < e.length; t++) Y(e[t]);
|
|
@@ -183,18 +183,18 @@ function _e(e) {
|
|
|
183
183
|
function Fe(e) {
|
|
184
184
|
let t, r = 0;
|
|
185
185
|
for (t = 0; t < e.length; t++) {
|
|
186
|
-
const
|
|
187
|
-
|
|
186
|
+
const n = e[t];
|
|
187
|
+
n.user ? e[r++] = n : Y(n);
|
|
188
188
|
}
|
|
189
189
|
for (t = 0; t < r; t++) Y(e[t]);
|
|
190
190
|
}
|
|
191
191
|
function ee(e, t) {
|
|
192
192
|
e.state = 0;
|
|
193
193
|
for (let r = 0; r < e.sources.length; r += 1) {
|
|
194
|
-
const
|
|
195
|
-
if (
|
|
196
|
-
const
|
|
197
|
-
|
|
194
|
+
const n = e.sources[r];
|
|
195
|
+
if (n.sources) {
|
|
196
|
+
const o = n.state;
|
|
197
|
+
o === I ? n !== t && (!n.updatedAt || n.updatedAt < re) && Y(n) : o === X && ee(n, t);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -208,10 +208,10 @@ function D(e) {
|
|
|
208
208
|
let t;
|
|
209
209
|
if (e.sources)
|
|
210
210
|
for (; e.sources.length; ) {
|
|
211
|
-
const r = e.sources.pop(),
|
|
212
|
-
if (
|
|
213
|
-
const i =
|
|
214
|
-
|
|
211
|
+
const r = e.sources.pop(), n = e.sourceSlots.pop(), o = r.observers;
|
|
212
|
+
if (o && o.length) {
|
|
213
|
+
const i = o.pop(), l = r.observerSlots.pop();
|
|
214
|
+
n < o.length && (i.sourceSlots[l] = n, o[n] = i, r.observerSlots[n] = l);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
if (e.tOwned) {
|
|
@@ -241,20 +241,20 @@ function se(e) {
|
|
|
241
241
|
if (Array.isArray(e)) {
|
|
242
242
|
const t = [];
|
|
243
243
|
for (let r = 0; r < e.length; r++) {
|
|
244
|
-
const
|
|
245
|
-
Array.isArray(
|
|
244
|
+
const n = se(e[r]);
|
|
245
|
+
Array.isArray(n) ? t.push.apply(t, n) : t.push(n);
|
|
246
246
|
}
|
|
247
247
|
return t;
|
|
248
248
|
}
|
|
249
249
|
return e;
|
|
250
250
|
}
|
|
251
251
|
function ze(e, t) {
|
|
252
|
-
return function(
|
|
253
|
-
let
|
|
254
|
-
return U(() =>
|
|
252
|
+
return function(n) {
|
|
253
|
+
let o;
|
|
254
|
+
return U(() => o = O(() => (g.context = {
|
|
255
255
|
...g.context,
|
|
256
|
-
[e]:
|
|
257
|
-
}, Ue(() =>
|
|
256
|
+
[e]: n.value
|
|
257
|
+
}, Ue(() => n.children))), void 0), o;
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
260
|
const Ke = /* @__PURE__ */ Symbol("fallback");
|
|
@@ -262,30 +262,30 @@ function ce(e) {
|
|
|
262
262
|
for (let t = 0; t < e.length; t++) e[t]();
|
|
263
263
|
}
|
|
264
264
|
function De(e, t, r = {}) {
|
|
265
|
-
let
|
|
265
|
+
let n = [], o = [], i = [], l = 0, s = t.length > 1 ? [] : null;
|
|
266
266
|
return Ne(() => ce(i)), () => {
|
|
267
267
|
let u = e() || [], p = u.length, c, a;
|
|
268
268
|
return u[qe], O(() => {
|
|
269
269
|
let S, $, E, B, L, C, A, m, M;
|
|
270
270
|
if (p === 0)
|
|
271
|
-
l !== 0 && (ce(i), i = [],
|
|
271
|
+
l !== 0 && (ce(i), i = [], n = [], o = [], l = 0, s && (s = [])), r.fallback && (n = [Ke], o[0] = W((oe) => (i[0] = oe, r.fallback())), l = 1);
|
|
272
272
|
else if (l === 0) {
|
|
273
|
-
for (
|
|
274
|
-
|
|
273
|
+
for (o = new Array(p), a = 0; a < p; a++)
|
|
274
|
+
n[a] = u[a], o[a] = W(k);
|
|
275
275
|
l = p;
|
|
276
276
|
} else {
|
|
277
|
-
for (E = new Array(p), B = new Array(p), s && (L = new Array(p)), C = 0, A = Math.min(l, p); C < A &&
|
|
278
|
-
for (A = l - 1, m = p - 1; A >= C && m >= C &&
|
|
279
|
-
E[m] =
|
|
277
|
+
for (E = new Array(p), B = new Array(p), s && (L = new Array(p)), C = 0, A = Math.min(l, p); C < A && n[C] === u[C]; C++) ;
|
|
278
|
+
for (A = l - 1, m = p - 1; A >= C && m >= C && n[A] === u[m]; A--, m--)
|
|
279
|
+
E[m] = o[A], B[m] = i[A], s && (L[m] = s[A]);
|
|
280
280
|
for (S = /* @__PURE__ */ new Map(), $ = new Array(m + 1), a = m; a >= C; a--)
|
|
281
281
|
M = u[a], c = S.get(M), $[a] = c === void 0 ? -1 : c, S.set(M, a);
|
|
282
282
|
for (c = C; c <= A; c++)
|
|
283
|
-
M =
|
|
283
|
+
M = n[c], a = S.get(M), a !== void 0 && a !== -1 ? (E[a] = o[c], B[a] = i[c], s && (L[a] = s[c]), a = $[a], S.set(M, a)) : i[c]();
|
|
284
284
|
for (a = C; a < p; a++)
|
|
285
|
-
a in E ? (
|
|
286
|
-
|
|
285
|
+
a in E ? (o[a] = E[a], i[a] = B[a], s && (s[a] = L[a], s[a](a))) : o[a] = W(k);
|
|
286
|
+
o = o.slice(0, l = p), n = u.slice(0);
|
|
287
287
|
}
|
|
288
|
-
return
|
|
288
|
+
return o;
|
|
289
289
|
});
|
|
290
290
|
function k(S) {
|
|
291
291
|
if (i[a] = S, s) {
|
|
@@ -296,7 +296,7 @@ function De(e, t, r = {}) {
|
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function h(e, t) {
|
|
300
300
|
return O(() => e(t || {}));
|
|
301
301
|
}
|
|
302
302
|
const Ve = (e) => `Stale read from <${e}>.`;
|
|
@@ -307,15 +307,15 @@ function He(e) {
|
|
|
307
307
|
return T(De(() => e.each, e.children, t || void 0));
|
|
308
308
|
}
|
|
309
309
|
function V(e) {
|
|
310
|
-
const t = e.keyed, r = T(() => e.when, void 0, void 0),
|
|
311
|
-
equals: (
|
|
310
|
+
const t = e.keyed, r = T(() => e.when, void 0, void 0), n = t ? r : T(r, void 0, {
|
|
311
|
+
equals: (o, i) => !o == !i
|
|
312
312
|
});
|
|
313
313
|
return T(() => {
|
|
314
|
-
const
|
|
315
|
-
if (
|
|
314
|
+
const o = n();
|
|
315
|
+
if (o) {
|
|
316
316
|
const i = e.children;
|
|
317
|
-
return typeof i == "function" && i.length > 0 ? O(() => i(t ?
|
|
318
|
-
if (!O(
|
|
317
|
+
return typeof i == "function" && i.length > 0 ? O(() => i(t ? o : () => {
|
|
318
|
+
if (!O(n)) throw Ve("Show");
|
|
319
319
|
return r();
|
|
320
320
|
})) : i;
|
|
321
321
|
}
|
|
@@ -324,23 +324,23 @@ function V(e) {
|
|
|
324
324
|
}
|
|
325
325
|
const ye = (e) => T(() => e());
|
|
326
326
|
function Ge(e, t, r) {
|
|
327
|
-
let
|
|
328
|
-
for (; l <
|
|
327
|
+
let n = r.length, o = t.length, i = n, l = 0, s = 0, u = t[o - 1].nextSibling, p = null;
|
|
328
|
+
for (; l < o || s < i; ) {
|
|
329
329
|
if (t[l] === r[s]) {
|
|
330
330
|
l++, s++;
|
|
331
331
|
continue;
|
|
332
332
|
}
|
|
333
|
-
for (; t[
|
|
334
|
-
|
|
335
|
-
if (
|
|
336
|
-
const c = i <
|
|
333
|
+
for (; t[o - 1] === r[i - 1]; )
|
|
334
|
+
o--, i--;
|
|
335
|
+
if (o === l) {
|
|
336
|
+
const c = i < n ? s ? r[s - 1].nextSibling : r[i - s] : u;
|
|
337
337
|
for (; s < i; ) e.insertBefore(r[s++], c);
|
|
338
338
|
} else if (i === s)
|
|
339
|
-
for (; l <
|
|
339
|
+
for (; l < o; )
|
|
340
340
|
(!p || !p.has(t[l])) && t[l].remove(), l++;
|
|
341
|
-
else if (t[l] === r[i - 1] && r[s] === t[
|
|
342
|
-
const c = t[--
|
|
343
|
-
e.insertBefore(r[s++], t[l++].nextSibling), e.insertBefore(r[--i], c), t[
|
|
341
|
+
else if (t[l] === r[i - 1] && r[s] === t[o - 1]) {
|
|
342
|
+
const c = t[--o].nextSibling;
|
|
343
|
+
e.insertBefore(r[s++], t[l++].nextSibling), e.insertBefore(r[--i], c), t[o] = r[i];
|
|
344
344
|
} else {
|
|
345
345
|
if (!p) {
|
|
346
346
|
p = /* @__PURE__ */ new Map();
|
|
@@ -351,7 +351,7 @@ function Ge(e, t, r) {
|
|
|
351
351
|
if (c != null)
|
|
352
352
|
if (s < c && c < i) {
|
|
353
353
|
let a = l, k = 1, S;
|
|
354
|
-
for (; ++a <
|
|
354
|
+
for (; ++a < o && a < i && !((S = p.get(t[a])) == null || S !== c + k); )
|
|
355
355
|
k++;
|
|
356
356
|
if (k > c - s) {
|
|
357
357
|
const $ = t[l];
|
|
@@ -362,12 +362,12 @@ function Ge(e, t, r) {
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function P(e, t, r,
|
|
366
|
-
let
|
|
365
|
+
function P(e, t, r, n) {
|
|
366
|
+
let o;
|
|
367
367
|
const i = () => {
|
|
368
368
|
const s = document.createElement("template");
|
|
369
369
|
return s.innerHTML = e, s.content.firstChild;
|
|
370
|
-
}, l = () => (
|
|
370
|
+
}, l = () => (o || (o = i())).cloneNode(!0);
|
|
371
371
|
return l.cloneNode = l, l;
|
|
372
372
|
}
|
|
373
373
|
function ue(e, t) {
|
|
@@ -376,42 +376,42 @@ function ue(e, t) {
|
|
|
376
376
|
function Je(e, t, r) {
|
|
377
377
|
return O(() => e(t, r));
|
|
378
378
|
}
|
|
379
|
-
function w(e, t, r,
|
|
380
|
-
if (r !== void 0 && !
|
|
381
|
-
U((
|
|
379
|
+
function w(e, t, r, n) {
|
|
380
|
+
if (r !== void 0 && !n && (n = []), typeof t != "function") return te(e, t, n, r);
|
|
381
|
+
U((o) => te(e, t(), o, r), n);
|
|
382
382
|
}
|
|
383
|
-
function te(e, t, r,
|
|
383
|
+
function te(e, t, r, n, o) {
|
|
384
384
|
for (; typeof r == "function"; ) r = r();
|
|
385
385
|
if (t === r) return r;
|
|
386
|
-
const i = typeof t, l =
|
|
386
|
+
const i = typeof t, l = n !== void 0;
|
|
387
387
|
if (e = l && r[0] && r[0].parentNode || e, i === "string" || i === "number") {
|
|
388
388
|
if (i === "number" && (t = t.toString(), t === r))
|
|
389
389
|
return r;
|
|
390
390
|
if (l) {
|
|
391
391
|
let s = r[0];
|
|
392
|
-
s && s.nodeType === 3 ? s.data !== t && (s.data = t) : s = document.createTextNode(t), r = F(e, r,
|
|
392
|
+
s && s.nodeType === 3 ? s.data !== t && (s.data = t) : s = document.createTextNode(t), r = F(e, r, n, s);
|
|
393
393
|
} else
|
|
394
394
|
r !== "" && typeof r == "string" ? r = e.firstChild.data = t : r = e.textContent = t;
|
|
395
395
|
} else if (t == null || i === "boolean")
|
|
396
|
-
r = F(e, r,
|
|
396
|
+
r = F(e, r, n);
|
|
397
397
|
else {
|
|
398
398
|
if (i === "function")
|
|
399
399
|
return U(() => {
|
|
400
400
|
let s = t();
|
|
401
401
|
for (; typeof s == "function"; ) s = s();
|
|
402
|
-
r = te(e, s, r,
|
|
402
|
+
r = te(e, s, r, n);
|
|
403
403
|
}), () => r;
|
|
404
404
|
if (Array.isArray(t)) {
|
|
405
405
|
const s = [], u = r && Array.isArray(r);
|
|
406
|
-
if (le(s, t, r,
|
|
407
|
-
return U(() => r = te(e, s, r,
|
|
406
|
+
if (le(s, t, r, o))
|
|
407
|
+
return U(() => r = te(e, s, r, n, !0)), () => r;
|
|
408
408
|
if (s.length === 0) {
|
|
409
|
-
if (r = F(e, r,
|
|
410
|
-
} else u ? r.length === 0 ? de(e, s,
|
|
409
|
+
if (r = F(e, r, n), l) return r;
|
|
410
|
+
} else u ? r.length === 0 ? de(e, s, n) : Ge(e, r, s) : (r && F(e), de(e, s));
|
|
411
411
|
r = s;
|
|
412
412
|
} else if (t.nodeType) {
|
|
413
413
|
if (Array.isArray(r)) {
|
|
414
|
-
if (l) return r = F(e, r,
|
|
414
|
+
if (l) return r = F(e, r, n, t);
|
|
415
415
|
F(e, r, null, t);
|
|
416
416
|
} else r == null || r === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
|
|
417
417
|
r = t;
|
|
@@ -419,75 +419,75 @@ function te(e, t, r, o, n) {
|
|
|
419
419
|
}
|
|
420
420
|
return r;
|
|
421
421
|
}
|
|
422
|
-
function le(e, t, r,
|
|
423
|
-
let
|
|
422
|
+
function le(e, t, r, n) {
|
|
423
|
+
let o = !1;
|
|
424
424
|
for (let i = 0, l = t.length; i < l; i++) {
|
|
425
425
|
let s = t[i], u = r && r[e.length], p;
|
|
426
426
|
if (!(s == null || s === !0 || s === !1)) if ((p = typeof s) == "object" && s.nodeType)
|
|
427
427
|
e.push(s);
|
|
428
428
|
else if (Array.isArray(s))
|
|
429
|
-
|
|
429
|
+
o = le(e, s, u) || o;
|
|
430
430
|
else if (p === "function")
|
|
431
|
-
if (
|
|
431
|
+
if (n) {
|
|
432
432
|
for (; typeof s == "function"; ) s = s();
|
|
433
|
-
|
|
433
|
+
o = le(e, Array.isArray(s) ? s : [s], Array.isArray(u) ? u : [u]) || o;
|
|
434
434
|
} else
|
|
435
|
-
e.push(s),
|
|
435
|
+
e.push(s), o = !0;
|
|
436
436
|
else {
|
|
437
437
|
const c = String(s);
|
|
438
438
|
u && u.nodeType === 3 && u.data === c ? e.push(u) : e.push(document.createTextNode(c));
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
return
|
|
441
|
+
return o;
|
|
442
442
|
}
|
|
443
443
|
function de(e, t, r = null) {
|
|
444
|
-
for (let
|
|
444
|
+
for (let n = 0, o = t.length; n < o; n++) e.insertBefore(t[n], r);
|
|
445
445
|
}
|
|
446
|
-
function F(e, t, r,
|
|
446
|
+
function F(e, t, r, n) {
|
|
447
447
|
if (r === void 0) return e.textContent = "";
|
|
448
|
-
const
|
|
448
|
+
const o = n || document.createTextNode("");
|
|
449
449
|
if (t.length) {
|
|
450
450
|
let i = !1;
|
|
451
451
|
for (let l = t.length - 1; l >= 0; l--) {
|
|
452
452
|
const s = t[l];
|
|
453
|
-
if (
|
|
453
|
+
if (o !== s) {
|
|
454
454
|
const u = s.parentNode === e;
|
|
455
|
-
!i && !l ? u ? e.replaceChild(
|
|
455
|
+
!i && !l ? u ? e.replaceChild(o, s) : e.insertBefore(o, r) : u && s.remove();
|
|
456
456
|
} else i = !0;
|
|
457
457
|
}
|
|
458
|
-
} else e.insertBefore(
|
|
459
|
-
return [
|
|
458
|
+
} else e.insertBefore(o, r);
|
|
459
|
+
return [o];
|
|
460
460
|
}
|
|
461
461
|
function Qe(e) {
|
|
462
|
-
return Object.keys(e).reduce((r,
|
|
463
|
-
const
|
|
464
|
-
return r[
|
|
462
|
+
return Object.keys(e).reduce((r, n) => {
|
|
463
|
+
const o = e[n];
|
|
464
|
+
return r[n] = Object.assign({}, o), Se(o.value) && !et(o.value) && !Array.isArray(o.value) && (r[n].value = Object.assign({}, o.value)), Array.isArray(o.value) && (r[n].value = o.value.slice(0)), r;
|
|
465
465
|
}, {});
|
|
466
466
|
}
|
|
467
467
|
function We(e) {
|
|
468
|
-
return e ? Object.keys(e).reduce((r,
|
|
469
|
-
const
|
|
470
|
-
return r[
|
|
471
|
-
value:
|
|
472
|
-
}, r[
|
|
468
|
+
return e ? Object.keys(e).reduce((r, n) => {
|
|
469
|
+
const o = e[n];
|
|
470
|
+
return r[n] = Se(o) && "value" in o ? o : {
|
|
471
|
+
value: o
|
|
472
|
+
}, r[n].attribute || (r[n].attribute = Ye(n)), r[n].parse = "parse" in r[n] ? r[n].parse : typeof r[n].value != "string", r;
|
|
473
473
|
}, {}) : {};
|
|
474
474
|
}
|
|
475
475
|
function Ze(e) {
|
|
476
|
-
return Object.keys(e).reduce((r,
|
|
476
|
+
return Object.keys(e).reduce((r, n) => (r[n] = e[n].value, r), {});
|
|
477
477
|
}
|
|
478
478
|
function Xe(e, t) {
|
|
479
479
|
const r = Qe(t);
|
|
480
|
-
return Object.keys(t).forEach((
|
|
481
|
-
const i = r[
|
|
482
|
-
l != null && (i.value = i.parse ? xe(l) : l), s != null && (i.value = Array.isArray(s) ? s.slice(0) : s), i.reflect &&
|
|
480
|
+
return Object.keys(t).forEach((o) => {
|
|
481
|
+
const i = r[o], l = e.getAttribute(i.attribute), s = e[o];
|
|
482
|
+
l != null && (i.value = i.parse ? xe(l) : l), s != null && (i.value = Array.isArray(s) ? s.slice(0) : s), i.reflect && he(e, i.attribute, i.value, !!i.parse), Object.defineProperty(e, o, {
|
|
483
483
|
get() {
|
|
484
484
|
return i.value;
|
|
485
485
|
},
|
|
486
486
|
set(u) {
|
|
487
487
|
const p = i.value;
|
|
488
|
-
i.value = u, i.reflect &&
|
|
488
|
+
i.value = u, i.reflect && he(this, i.attribute, i.value, !!i.parse);
|
|
489
489
|
for (let c = 0, a = this.__propertyChangedCallbacks.length; c < a; c++)
|
|
490
|
-
this.__propertyChangedCallbacks[c](
|
|
490
|
+
this.__propertyChangedCallbacks[c](o, u, p);
|
|
491
491
|
},
|
|
492
492
|
enumerable: !0,
|
|
493
493
|
configurable: !0
|
|
@@ -502,10 +502,10 @@ function xe(e) {
|
|
|
502
502
|
return e;
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function he(e, t, r, n) {
|
|
506
506
|
if (r == null || r === !1) return e.removeAttribute(t);
|
|
507
|
-
let
|
|
508
|
-
e.__updating[t] = !0,
|
|
507
|
+
let o = n ? JSON.stringify(r) : r;
|
|
508
|
+
e.__updating[t] = !0, o === "true" && (o = ""), e.setAttribute(t, o), Promise.resolve().then(() => delete e.__updating[t]);
|
|
509
509
|
}
|
|
510
510
|
function Ye(e) {
|
|
511
511
|
return e.replace(/\.?([A-Z]+)/g, (t, r) => "-" + r.toLowerCase()).replace("_", "-").replace(/^-/, "");
|
|
@@ -524,21 +524,21 @@ function rt(e, t) {
|
|
|
524
524
|
const r = Object.keys(t);
|
|
525
525
|
return class extends e {
|
|
526
526
|
static get observedAttributes() {
|
|
527
|
-
return r.map((
|
|
527
|
+
return r.map((o) => t[o].attribute);
|
|
528
528
|
}
|
|
529
529
|
constructor() {
|
|
530
530
|
super(), this.__initialized = !1, this.__released = !1, this.__releaseCallbacks = [], this.__propertyChangedCallbacks = [], this.__updating = {}, this.props = {};
|
|
531
|
-
for (let
|
|
532
|
-
this[
|
|
531
|
+
for (let o of r)
|
|
532
|
+
this[o] = void 0;
|
|
533
533
|
}
|
|
534
534
|
connectedCallback() {
|
|
535
535
|
if (this.__initialized) return;
|
|
536
536
|
this.__releaseCallbacks = [], this.__propertyChangedCallbacks = [], this.__updating = {}, this.props = Xe(this, t);
|
|
537
|
-
const
|
|
537
|
+
const o = Ze(this.props), i = this.Component, l = ie;
|
|
538
538
|
try {
|
|
539
|
-
ie = this, this.__initialized = !0, tt(i) ? new i(
|
|
539
|
+
ie = this, this.__initialized = !0, tt(i) ? new i(o, {
|
|
540
540
|
element: this
|
|
541
|
-
}) : i(
|
|
541
|
+
}) : i(o, {
|
|
542
542
|
element: this
|
|
543
543
|
});
|
|
544
544
|
} finally {
|
|
@@ -548,50 +548,50 @@ function rt(e, t) {
|
|
|
548
548
|
async disconnectedCallback() {
|
|
549
549
|
if (await Promise.resolve(), this.isConnected) return;
|
|
550
550
|
this.__propertyChangedCallbacks.length = 0;
|
|
551
|
-
let
|
|
552
|
-
for (;
|
|
551
|
+
let o = null;
|
|
552
|
+
for (; o = this.__releaseCallbacks.pop(); ) o(this);
|
|
553
553
|
delete this.__initialized, this.__released = !0;
|
|
554
554
|
}
|
|
555
|
-
attributeChangedCallback(
|
|
556
|
-
if (this.__initialized && !this.__updating[
|
|
557
|
-
if (l == null && !this[
|
|
558
|
-
this[
|
|
555
|
+
attributeChangedCallback(o, i, l) {
|
|
556
|
+
if (this.__initialized && !this.__updating[o] && (o = this.lookupProp(o), o in t)) {
|
|
557
|
+
if (l == null && !this[o]) return;
|
|
558
|
+
this[o] = t[o].parse ? xe(l) : l;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
lookupProp(
|
|
561
|
+
lookupProp(o) {
|
|
562
562
|
if (t)
|
|
563
|
-
return r.find((i) =>
|
|
563
|
+
return r.find((i) => o === i || o === t[i].attribute);
|
|
564
564
|
}
|
|
565
565
|
get renderRoot() {
|
|
566
566
|
return this.shadowRoot || this.attachShadow({
|
|
567
567
|
mode: "open"
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
|
-
addReleaseCallback(
|
|
571
|
-
this.__releaseCallbacks.push(
|
|
570
|
+
addReleaseCallback(o) {
|
|
571
|
+
this.__releaseCallbacks.push(o);
|
|
572
572
|
}
|
|
573
|
-
addPropertyChangedCallback(
|
|
574
|
-
this.__propertyChangedCallbacks.push(
|
|
573
|
+
addPropertyChangedCallback(o) {
|
|
574
|
+
this.__propertyChangedCallbacks.push(o);
|
|
575
575
|
}
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
578
|
function ot(e, t = {}, r = {}) {
|
|
579
579
|
const {
|
|
580
|
-
BaseElement:
|
|
581
|
-
extension:
|
|
580
|
+
BaseElement: n = HTMLElement,
|
|
581
|
+
extension: o,
|
|
582
582
|
customElements: i = window.customElements
|
|
583
583
|
} = r;
|
|
584
584
|
return (l) => {
|
|
585
585
|
let s = i.get(e);
|
|
586
|
-
return s ? (s.prototype.Component = l, s) : (s = rt(
|
|
586
|
+
return s ? (s.prototype.Component = l, s) : (s = rt(n, We(t)), s.prototype.Component = l, s.prototype.registeredTag = e, i.define(e, s, o), s);
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
589
|
function nt(e) {
|
|
590
590
|
const t = Object.keys(e), r = {};
|
|
591
|
-
for (let
|
|
592
|
-
const [
|
|
593
|
-
Object.defineProperty(r, t[
|
|
594
|
-
get:
|
|
591
|
+
for (let n = 0; n < t.length; n++) {
|
|
592
|
+
const [o, i] = x(e[t[n]]);
|
|
593
|
+
Object.defineProperty(r, t[n], {
|
|
594
|
+
get: o,
|
|
595
595
|
set(l) {
|
|
596
596
|
i(() => l);
|
|
597
597
|
}
|
|
@@ -608,15 +608,15 @@ function it(e) {
|
|
|
608
608
|
}
|
|
609
609
|
function st(e) {
|
|
610
610
|
return (t, r) => {
|
|
611
|
-
const { element:
|
|
612
|
-
return W((
|
|
611
|
+
const { element: n } = r;
|
|
612
|
+
return W((o) => {
|
|
613
613
|
const i = nt(t);
|
|
614
|
-
|
|
615
|
-
|
|
614
|
+
n.addPropertyChangedCallback((s, u) => i[s] = u), n.addReleaseCallback(() => {
|
|
615
|
+
n.renderRoot.textContent = "", o();
|
|
616
616
|
});
|
|
617
617
|
const l = e(i, r);
|
|
618
|
-
return w(
|
|
619
|
-
}, it(
|
|
618
|
+
return w(n.renderRoot, l);
|
|
619
|
+
}, it(n));
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
622
|
function lt(e, t, r) {
|
|
@@ -624,8 +624,8 @@ function lt(e, t, r) {
|
|
|
624
624
|
}
|
|
625
625
|
const Ce = Te();
|
|
626
626
|
function at(e) {
|
|
627
|
-
const [t, r] = x([]), [
|
|
628
|
-
e.moqPublish.source
|
|
627
|
+
const [t, r] = x([]), [n, o] = x(), [i, l] = x([]), [s, u] = x(), [p, c] = x(!1), [a, k] = x(!1), [S, $] = x(!1), [E, B] = x(!1), [L, C] = x(!1), [A, m] = x("no-url"), M = (d) => {
|
|
628
|
+
e.moqPublish.source = d, e.moqPublish.invisible = !1, e.moqPublish.muted = !0;
|
|
629
629
|
}, oe = {
|
|
630
630
|
moqPublish: e.moqPublish,
|
|
631
631
|
cameraDevices: t,
|
|
@@ -637,66 +637,66 @@ function at(e) {
|
|
|
637
637
|
fileActive: E,
|
|
638
638
|
setFile: M,
|
|
639
639
|
nothingActive: L,
|
|
640
|
-
selectedCameraSource:
|
|
640
|
+
selectedCameraSource: n,
|
|
641
641
|
selectedMicrophoneSource: s
|
|
642
642
|
};
|
|
643
643
|
return be(() => {
|
|
644
644
|
const d = e.moqPublish;
|
|
645
|
-
d.muted
|
|
646
|
-
const b = () => r([]), _ =
|
|
645
|
+
d.muted = !0, d.invisible = !0, d.source = void 0, d.signals.run((f) => {
|
|
646
|
+
const b = () => r([]), _ = f.get(d.video);
|
|
647
647
|
if (!_ || !("device" in _)) {
|
|
648
648
|
b();
|
|
649
649
|
return;
|
|
650
650
|
}
|
|
651
|
-
const N =
|
|
651
|
+
const N = f.get(_.device.available);
|
|
652
652
|
if (!N || N.length < 2) {
|
|
653
653
|
b();
|
|
654
654
|
return;
|
|
655
655
|
}
|
|
656
656
|
r(N);
|
|
657
|
-
}), d.signals.
|
|
658
|
-
const b = () => l([]), _ =
|
|
657
|
+
}), d.signals.run((f) => {
|
|
658
|
+
const b = () => l([]), _ = f.get(d.audio);
|
|
659
659
|
if (!_ || !("device" in _)) {
|
|
660
660
|
b();
|
|
661
661
|
return;
|
|
662
662
|
}
|
|
663
|
-
if (!
|
|
663
|
+
if (!f.get(d.broadcast.audio.enabled)) {
|
|
664
664
|
b();
|
|
665
665
|
return;
|
|
666
666
|
}
|
|
667
|
-
const K =
|
|
667
|
+
const K = f.get(_.device.available);
|
|
668
668
|
if (!K || K.length < 2) {
|
|
669
669
|
b();
|
|
670
670
|
return;
|
|
671
671
|
}
|
|
672
672
|
l(K);
|
|
673
|
-
}), d.signals.
|
|
674
|
-
const b =
|
|
673
|
+
}), d.signals.run((f) => {
|
|
674
|
+
const b = f.get(d.state.source), _ = f.get(d.state.muted), N = f.get(d.state.invisible);
|
|
675
675
|
C(b === void 0 && _ && N);
|
|
676
|
-
}), d.signals.
|
|
677
|
-
const b = !
|
|
676
|
+
}), d.signals.run((f) => {
|
|
677
|
+
const b = !f.get(d.state.muted);
|
|
678
678
|
$(b);
|
|
679
|
-
}), d.signals.
|
|
680
|
-
const b =
|
|
679
|
+
}), d.signals.run((f) => {
|
|
680
|
+
const b = f.get(d.state.source), _ = f.get(d.video);
|
|
681
681
|
_ && b === "camera" ? (c(!0), k(!1)) : _ && b === "screen" ? (k(!0), c(!1)) : (c(!1), k(!1));
|
|
682
|
-
}), d.signals.
|
|
683
|
-
const b =
|
|
682
|
+
}), d.signals.run((f) => {
|
|
683
|
+
const b = f.get(d.video);
|
|
684
684
|
if (!b || !("device" in b)) return;
|
|
685
|
-
const _ =
|
|
686
|
-
|
|
687
|
-
}), d.signals.
|
|
688
|
-
const b =
|
|
685
|
+
const _ = f.get(b.device.requested);
|
|
686
|
+
o(_);
|
|
687
|
+
}), d.signals.run((f) => {
|
|
688
|
+
const b = f.get(d.audio);
|
|
689
689
|
if (!b || !("device" in b)) return;
|
|
690
|
-
const _ =
|
|
690
|
+
const _ = f.get(b.device.requested);
|
|
691
691
|
u(_);
|
|
692
|
-
}), d.signals.
|
|
693
|
-
const b =
|
|
692
|
+
}), d.signals.run((f) => {
|
|
693
|
+
const b = f.get(d.connection.url), _ = f.get(d.connection.status), N = f.get(d.broadcast.audio.source), K = f.get(d.broadcast.video.source), ke = f.get(d.state.muted), Pe = f.get(d.state.invisible), J = N && !ke, Q = K && !Pe;
|
|
694
694
|
b ? _ === "disconnected" ? m("disconnected") : _ === "connecting" ? m("connecting") : !J && !Q ? m("select-source") : !J && Q ? m("video-only") : J && !Q ? m("audio-only") : J && Q && m("live") : m("no-url");
|
|
695
|
-
}), d.signals.
|
|
696
|
-
const b =
|
|
695
|
+
}), d.signals.run((f) => {
|
|
696
|
+
const b = f.get(d.state.source);
|
|
697
697
|
B(b instanceof File);
|
|
698
698
|
});
|
|
699
|
-
}),
|
|
699
|
+
}), h(Ce.Provider, {
|
|
700
700
|
value: oe,
|
|
701
701
|
get children() {
|
|
702
702
|
return e.children;
|
|
@@ -711,29 +711,29 @@ function z() {
|
|
|
711
711
|
}
|
|
712
712
|
var ct = /* @__PURE__ */ P("<select class=publish-ui__media-selector-dropdown>"), ut = /* @__PURE__ */ P('<div class="publish-ui__media-selector-wrapper flex--center">'), dt = /* @__PURE__ */ P("<option>");
|
|
713
713
|
function Ae(e) {
|
|
714
|
-
const [t, r] = x(!1),
|
|
714
|
+
const [t, r] = x(!1), n = () => r((o) => !o);
|
|
715
715
|
return (() => {
|
|
716
|
-
var
|
|
717
|
-
return w(
|
|
718
|
-
onClick:
|
|
716
|
+
var o = ut();
|
|
717
|
+
return w(o, h(R, {
|
|
718
|
+
onClick: n,
|
|
719
719
|
class: "publish-ui__media-selector-toggle button",
|
|
720
720
|
get title() {
|
|
721
721
|
return t() ? "Hide Sources" : "Show Sources";
|
|
722
722
|
},
|
|
723
723
|
get children() {
|
|
724
|
-
return
|
|
724
|
+
return h(V, {
|
|
725
725
|
get when() {
|
|
726
726
|
return t();
|
|
727
727
|
},
|
|
728
728
|
get fallback() {
|
|
729
|
-
return
|
|
729
|
+
return h(j.ArrowDown, {});
|
|
730
730
|
},
|
|
731
731
|
get children() {
|
|
732
|
-
return
|
|
732
|
+
return h(j.ArrowUp, {});
|
|
733
733
|
}
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
|
-
}), null), w(
|
|
736
|
+
}), null), w(o, h(V, {
|
|
737
737
|
get when() {
|
|
738
738
|
return t();
|
|
739
739
|
},
|
|
@@ -741,7 +741,7 @@ function Ae(e) {
|
|
|
741
741
|
var i = ct();
|
|
742
742
|
return i.addEventListener("change", (l) => {
|
|
743
743
|
e.onSelected?.(l.currentTarget.value), r(!1);
|
|
744
|
-
}), w(i,
|
|
744
|
+
}), w(i, h(He, {
|
|
745
745
|
get each() {
|
|
746
746
|
return e.sources;
|
|
747
747
|
},
|
|
@@ -751,34 +751,34 @@ function Ae(e) {
|
|
|
751
751
|
})()
|
|
752
752
|
})), U(() => i.value = e.selectedSource), i;
|
|
753
753
|
}
|
|
754
|
-
}), null),
|
|
754
|
+
}), null), o;
|
|
755
755
|
})();
|
|
756
756
|
}
|
|
757
|
-
var
|
|
758
|
-
function
|
|
757
|
+
var ht = /* @__PURE__ */ P('<div class="publish-ui__source-button-wrapper flex--center">');
|
|
758
|
+
function ft() {
|
|
759
759
|
const e = z(), t = () => {
|
|
760
|
-
e.moqPublish.source
|
|
761
|
-
}, r = (
|
|
762
|
-
const
|
|
763
|
-
!
|
|
760
|
+
e.moqPublish.source === "camera" ? e.moqPublish.invisible = !e.moqPublish.invisible : (e.moqPublish.source = "camera", e.moqPublish.invisible = !1);
|
|
761
|
+
}, r = (n) => {
|
|
762
|
+
const o = e.moqPublish.video.peek();
|
|
763
|
+
!o || !("device" in o) || o.device.preferred.set(n);
|
|
764
764
|
};
|
|
765
765
|
return (() => {
|
|
766
|
-
var
|
|
767
|
-
return w(
|
|
766
|
+
var n = ht();
|
|
767
|
+
return w(n, h(R, {
|
|
768
768
|
title: "Camera",
|
|
769
769
|
get class() {
|
|
770
770
|
return `publish-ui__source-button flex--center ${e.cameraActive() ? "publish-ui__source-button--active" : ""}`;
|
|
771
771
|
},
|
|
772
772
|
onClick: t,
|
|
773
773
|
get children() {
|
|
774
|
-
return
|
|
774
|
+
return h(j.Camera, {});
|
|
775
775
|
}
|
|
776
|
-
}), null), w(
|
|
776
|
+
}), null), w(n, h(V, {
|
|
777
777
|
get when() {
|
|
778
778
|
return ye(() => !!e.cameraActive())() && e.cameraDevices().length;
|
|
779
779
|
},
|
|
780
780
|
get children() {
|
|
781
|
-
return
|
|
781
|
+
return h(Ae, {
|
|
782
782
|
get sources() {
|
|
783
783
|
return e.cameraDevices();
|
|
784
784
|
},
|
|
@@ -788,54 +788,54 @@ function ht() {
|
|
|
788
788
|
onSelected: r
|
|
789
789
|
});
|
|
790
790
|
}
|
|
791
|
-
}), null),
|
|
791
|
+
}), null), n;
|
|
792
792
|
})();
|
|
793
793
|
}
|
|
794
794
|
var pt = /* @__PURE__ */ P("<input type=file accept=video/*,audio/*,image/* style=display:none>");
|
|
795
795
|
function bt() {
|
|
796
|
-
const [e, t] = x(), r = z(),
|
|
796
|
+
const [e, t] = x(), r = z(), n = () => e()?.click(), o = (i) => {
|
|
797
797
|
const l = i.target, s = l.files?.[0];
|
|
798
798
|
s && (r.setFile(s), l.value = "");
|
|
799
799
|
};
|
|
800
800
|
return [(() => {
|
|
801
801
|
var i = pt();
|
|
802
|
-
return i.addEventListener("change",
|
|
803
|
-
})(),
|
|
802
|
+
return i.addEventListener("change", o), Je(t, i), i;
|
|
803
|
+
})(), h(R, {
|
|
804
804
|
title: "Upload File",
|
|
805
805
|
get class() {
|
|
806
806
|
return `publish-ui__source-button flex--center ${r.fileActive() ? "publish-ui__source-button--active" : ""}`;
|
|
807
807
|
},
|
|
808
|
-
onClick:
|
|
808
|
+
onClick: n,
|
|
809
809
|
get children() {
|
|
810
|
-
return
|
|
810
|
+
return h(j.File, {});
|
|
811
811
|
}
|
|
812
812
|
})];
|
|
813
813
|
}
|
|
814
814
|
var gt = /* @__PURE__ */ P('<div class="publish-ui__source-button-wrapper flex--center">');
|
|
815
815
|
function vt() {
|
|
816
816
|
const e = z(), t = () => {
|
|
817
|
-
e.moqPublish.source
|
|
818
|
-
}, r = (
|
|
819
|
-
const
|
|
820
|
-
!
|
|
817
|
+
e.moqPublish.source === "camera" ? e.moqPublish.muted = !e.moqPublish.muted : (e.moqPublish.source = "camera", e.moqPublish.muted = !1);
|
|
818
|
+
}, r = (n) => {
|
|
819
|
+
const o = e.moqPublish.audio.peek();
|
|
820
|
+
!o || !("device" in o) || o.device.preferred.set(n);
|
|
821
821
|
};
|
|
822
822
|
return (() => {
|
|
823
|
-
var
|
|
824
|
-
return w(
|
|
823
|
+
var n = gt();
|
|
824
|
+
return w(n, h(R, {
|
|
825
825
|
title: "Microphone",
|
|
826
826
|
get class() {
|
|
827
827
|
return `publish-ui__source-button flex--center ${e.microphoneActive() ? "publish-ui__source-button--active" : ""}`;
|
|
828
828
|
},
|
|
829
829
|
onClick: t,
|
|
830
830
|
get children() {
|
|
831
|
-
return
|
|
831
|
+
return h(j.Microphone, {});
|
|
832
832
|
}
|
|
833
|
-
}), null), w(
|
|
833
|
+
}), null), w(n, h(V, {
|
|
834
834
|
get when() {
|
|
835
835
|
return ye(() => !!e.microphoneActive())() && e.microphoneDevices().length;
|
|
836
836
|
},
|
|
837
837
|
get children() {
|
|
838
|
-
return
|
|
838
|
+
return h(Ae, {
|
|
839
839
|
get sources() {
|
|
840
840
|
return e.microphoneDevices();
|
|
841
841
|
},
|
|
@@ -845,21 +845,21 @@ function vt() {
|
|
|
845
845
|
onSelected: r
|
|
846
846
|
});
|
|
847
847
|
}
|
|
848
|
-
}), null),
|
|
848
|
+
}), null), n;
|
|
849
849
|
})();
|
|
850
850
|
}
|
|
851
851
|
function _t() {
|
|
852
852
|
const e = z();
|
|
853
|
-
return
|
|
853
|
+
return h(R, {
|
|
854
854
|
title: "No Source",
|
|
855
855
|
get class() {
|
|
856
856
|
return `publish-ui__source-button flex--center publish-ui__source-button--no-source ${e.nothingActive() ? "publish-ui__source-button--no-source-active" : ""}`;
|
|
857
857
|
},
|
|
858
858
|
onClick: () => {
|
|
859
|
-
e.moqPublish.source
|
|
859
|
+
e.moqPublish.source = void 0, e.moqPublish.muted = !0, e.moqPublish.invisible = !0;
|
|
860
860
|
},
|
|
861
861
|
get children() {
|
|
862
|
-
return
|
|
862
|
+
return h(j.Ban, {});
|
|
863
863
|
}
|
|
864
864
|
});
|
|
865
865
|
}
|
|
@@ -903,10 +903,10 @@ function xt() {
|
|
|
903
903
|
return wt[r] || yt;
|
|
904
904
|
};
|
|
905
905
|
return (() => {
|
|
906
|
-
var r = mt(),
|
|
907
|
-
return w(
|
|
906
|
+
var r = mt(), n = r.firstChild, o = n.nextSibling;
|
|
907
|
+
return w(o, () => t().text), U((i) => {
|
|
908
908
|
var l = `publish-ui__status-indicator-dot publish-ui__status-indicator-dot--${t().variant}`, s = `publish-ui__status-indicator-text publish-ui__status-indicator-text--${t().variant}`;
|
|
909
|
-
return l !== i.e && ue(
|
|
909
|
+
return l !== i.e && ue(n, i.e = l), s !== i.t && ue(o, i.t = s), i;
|
|
910
910
|
}, {
|
|
911
911
|
e: void 0,
|
|
912
912
|
t: void 0
|
|
@@ -915,16 +915,16 @@ function xt() {
|
|
|
915
915
|
}
|
|
916
916
|
function St() {
|
|
917
917
|
const e = z();
|
|
918
|
-
return
|
|
918
|
+
return h(R, {
|
|
919
919
|
title: "Screen",
|
|
920
920
|
get class() {
|
|
921
921
|
return `publish-ui__source-button flex--center ${e.screenActive() ? "publish-ui__source-button--active" : ""}`;
|
|
922
922
|
},
|
|
923
923
|
onClick: () => {
|
|
924
|
-
e.moqPublish.source
|
|
924
|
+
e.moqPublish.source = "screen", e.moqPublish.invisible = !1, e.moqPublish.muted = !0;
|
|
925
925
|
},
|
|
926
926
|
get children() {
|
|
927
|
-
return
|
|
927
|
+
return h(j.Screen, {});
|
|
928
928
|
}
|
|
929
929
|
});
|
|
930
930
|
}
|
|
@@ -932,10 +932,10 @@ var Ct = /* @__PURE__ */ P('<div class="publish-ui__controls flex--center flex--
|
|
|
932
932
|
function At() {
|
|
933
933
|
return (() => {
|
|
934
934
|
var e = Ct(), t = e.firstChild;
|
|
935
|
-
return t.firstChild, w(t,
|
|
935
|
+
return t.firstChild, w(t, h(vt, {}), null), w(t, h(ft, {}), null), w(t, h(St, {}), null), w(t, h(bt, {}), null), w(t, h(_t, {}), null), w(e, h(xt, {}), null), e;
|
|
936
936
|
})();
|
|
937
937
|
}
|
|
938
|
-
const kt = ':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-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-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-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-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-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)}.publish-ui__controls{gap:var(--spacing-16);margin:var(--spacing-8) 0;border-radius:var(--border-radius-lg);border:var(--spacing-1) solid var(--color-white-alpha-10);padding:var(--spacing-16)}.publish-ui__source-label{font-size:1rem;font-weight:600;letter-spacing:.1rem;color:var(--color-white-alpha-90)}.publish-ui__source-selector{gap:var(--spacing-16)}.publish-ui__source-button-wrapper{position:relative}.publish-ui__source-button{width:44px;height:44px;border-radius:var(--border-radius-md);background:var(--color-white-alpha-05);backdrop-filter:blur(6px);border:var(--spacing-1) solid var(--color-white-alpha-10);transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .15s ease}.publish-ui__source-button:hover{border-color:var(--color-white-alpha-20)}.publish-ui__source-button svg{color:var(--color-white-alpha-70);transition:color .2s ease;position:relative;z-index:1}.publish-ui__source-button--active{background:linear-gradient(135deg,var(--color-orange-500-alpha-30),var(--color-amber-600-alpha-30));border:var(--spacing-1) solid var(--color-orange-500-alpha-50);box-shadow:0 0 24px var(--color-orange-500-alpha-40)}.publish-ui__source-button--active svg{color:var(--color-orange-300)}.publish-ui__source-button--active:before{content:"";position:absolute;inset:0;border-radius:var(--border-radius-md);background:linear-gradient(135deg,var(--color-orange-400-alpha-20),var(--color-amber-600-alpha-20));filter:blur(16px);z-index:0}.publish-ui__source-button--no-source{background:var(--color-white-alpha-05);border:var(--spacing-1) solid var(--color-white-alpha-10)}.publish-ui__source-button--no-source svg{color:var(--color-white-alpha-50)}.publish-ui__source-button--no-source-active{background:linear-gradient(135deg,var(--color-red-500-alpha-25),var(--color-red-900-alpha-35));border:var(--spacing-1) solid var(--color-red-500-alpha-60);box-shadow:0 0 18px var(--color-red-500-alpha-45)}.publish-ui__source-button--no-source-active svg{color:var(--color-red-300)}.publish-ui__source-button--no-source-active:before{content:"";position:absolute;inset:0;border-radius:var(--border-radius-md);background:linear-gradient(135deg,var(--color-red-400-alpha-25),var(--color-red-600-alpha-25));filter:blur(16px);z-index:0}.publish-ui__media-selector-wrapper{position:relative;gap:var(--spacing-8)}.publish-ui__media-selector-toggle{font-size:.75rem;cursor:pointer}.publish-ui__media-selector-toggle.button,.publish-ui__media-selector-toggle.button:hover:not(:disabled){background-color:unset;box-shadow:none;border:unset}.publish-ui__media-selector-dropdown{position:absolute;top:var(--spacing-48);right:var(--spacing-8);padding:var(--spacing-12) var(--spacing-16);background:var(--color-black-alpha-85);border:var(--spacing-1) solid var(--color-white-alpha-10);border-radius:var(--border-radius-sm);color:var(--color-white);cursor:pointer;z-index:1;outline:none;box-shadow:none}.publish-ui__status-indicator{gap:var(--spacing-12);padding:var(--spacing-12) var(--spacing-24);border-radius:12px;background:var(--color-black-alpha-60);backdrop-filter:blur(16px);border:var(--spacing-1) solid var(--color-white-alpha-10)}.publish-ui__status-indicator-dot{position:relative;width:12px;height:12px;border-radius:50%;flex-shrink:0;z-index:1}.publish-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}.publish-ui__status-indicator-dot:after{display:none}.publish-ui__status-indicator-dot--live:after,.publish-ui__status-indicator-dot--warning:after,.publish-ui__status-indicator-dot--connecting:after,.publish-ui__status-indicator-dot--audio-only:after,.publish-ui__status-indicator-dot--video-only:after{display:block}.publish-ui__status-indicator-dot--error{background:var(--color-gray-100);color:var(--color-gray-100)}.publish-ui__status-indicator-text--error{color:var(--color-gray-100)}.publish-ui__status-indicator-dot--warning{background:var(--color-yellow-400);color:var(--color-yellow-400)}.publish-ui__status-indicator-text--warning{color:var(--color-yellow-400)}.publish-ui__status-indicator-dot--live{background:var(--color-green-400);color:var(--color-green-400)}.publish-ui__status-indicator-text--live{color:var(--color-green-400)}.publish-ui__status-indicator-dot--audio-only{background:var(--color-blue-500);color:var(--color-blue-500)}.publish-ui__status-indicator-text--audio-only{color:var(--color-blue-500)}.publish-ui__status-indicator-dot--video-only{background:var(--color-purple-500);color:var(--color-purple-500)}.publish-ui__status-indicator-text--video-only{color:var(--color-purple-500)}.publish-ui__status-indicator-dot--connecting{background:var(--color-gray-100);color:var(--color-gray-100)}.publish-ui__status-indicator-text--connecting{color:var(--color-gray-100)}.publish-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}}';
|
|
938
|
+
const kt = ':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)}.publish-ui__controls{gap:var(--spacing-16);margin:var(--spacing-8) 0;border-radius:var(--border-radius-lg);border:var(--spacing-1) solid var(--color-white-alpha-10);padding:var(--spacing-16)}.publish-ui__source-label{font-size:1rem;font-weight:600;letter-spacing:.1rem;color:var(--color-white-alpha-90)}.publish-ui__source-selector{gap:var(--spacing-16)}.publish-ui__source-button-wrapper{position:relative}.publish-ui__source-button{width:44px;height:44px;border-radius:var(--border-radius-md);background:var(--color-white-alpha-05);backdrop-filter:blur(6px);border:var(--spacing-1) solid var(--color-white-alpha-10);transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .15s ease}.publish-ui__source-button:hover{border-color:var(--color-white-alpha-20)}.publish-ui__source-button svg{color:var(--color-white-alpha-70);transition:color .2s ease;position:relative;z-index:1}.publish-ui__source-button--active{background:linear-gradient(135deg,var(--color-orange-500-alpha-30),var(--color-amber-600-alpha-30));border:var(--spacing-1) solid var(--color-orange-500-alpha-50);box-shadow:0 0 24px var(--color-orange-500-alpha-40)}.publish-ui__source-button--active svg{color:var(--color-orange-300)}.publish-ui__source-button--active:before{content:"";position:absolute;inset:0;border-radius:var(--border-radius-md);background:linear-gradient(135deg,var(--color-orange-400-alpha-20),var(--color-amber-600-alpha-20));filter:blur(16px);z-index:0}.publish-ui__source-button--no-source{background:var(--color-white-alpha-05);border:var(--spacing-1) solid var(--color-white-alpha-10)}.publish-ui__source-button--no-source svg{color:var(--color-white-alpha-50)}.publish-ui__source-button--no-source-active{background:linear-gradient(135deg,var(--color-red-500-alpha-25),var(--color-red-900-alpha-35));border:var(--spacing-1) solid var(--color-red-500-alpha-60);box-shadow:0 0 18px var(--color-red-500-alpha-45)}.publish-ui__source-button--no-source-active svg{color:var(--color-red-300)}.publish-ui__source-button--no-source-active:before{content:"";position:absolute;inset:0;border-radius:var(--border-radius-md);background:linear-gradient(135deg,var(--color-red-400-alpha-25),var(--color-red-600-alpha-25));filter:blur(16px);z-index:0}.publish-ui__media-selector-wrapper{position:relative;gap:var(--spacing-8)}.publish-ui__media-selector-toggle{font-size:.75rem;cursor:pointer}.publish-ui__media-selector-toggle.button,.publish-ui__media-selector-toggle.button:hover:not(:disabled){background-color:unset;box-shadow:none;border:unset}.publish-ui__media-selector-dropdown{position:absolute;top:var(--spacing-48);right:var(--spacing-8);padding:var(--spacing-12) var(--spacing-16);background:var(--color-black-alpha-85);border:var(--spacing-1) solid var(--color-white-alpha-10);border-radius:var(--border-radius-sm);color:var(--color-white);cursor:pointer;z-index:1;outline:none;box-shadow:none}.publish-ui__status-indicator{gap:var(--spacing-12);padding:var(--spacing-12) var(--spacing-24);border-radius:12px;background:var(--color-black-alpha-60);backdrop-filter:blur(16px);border:var(--spacing-1) solid var(--color-white-alpha-10)}.publish-ui__status-indicator-dot{position:relative;width:12px;height:12px;border-radius:50%;flex-shrink:0;z-index:1}.publish-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}.publish-ui__status-indicator-dot:after{display:none}.publish-ui__status-indicator-dot--live:after,.publish-ui__status-indicator-dot--warning:after,.publish-ui__status-indicator-dot--connecting:after,.publish-ui__status-indicator-dot--audio-only:after,.publish-ui__status-indicator-dot--video-only:after{display:block}.publish-ui__status-indicator-dot--error{background:var(--color-gray-100);color:var(--color-gray-100)}.publish-ui__status-indicator-text--error{color:var(--color-gray-100)}.publish-ui__status-indicator-dot--warning{background:var(--color-yellow-400);color:var(--color-yellow-400)}.publish-ui__status-indicator-text--warning{color:var(--color-yellow-400)}.publish-ui__status-indicator-dot--live{background:var(--color-green-400);color:var(--color-green-400)}.publish-ui__status-indicator-text--live{color:var(--color-green-400)}.publish-ui__status-indicator-dot--audio-only{background:var(--color-blue-500);color:var(--color-blue-500)}.publish-ui__status-indicator-text--audio-only{color:var(--color-blue-500)}.publish-ui__status-indicator-dot--video-only{background:var(--color-purple-500);color:var(--color-purple-500)}.publish-ui__status-indicator-text--video-only{color:var(--color-purple-500)}.publish-ui__status-indicator-dot--connecting{background:var(--color-gray-100);color:var(--color-gray-100)}.publish-ui__status-indicator-text--connecting{color:var(--color-gray-100)}.publish-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}}';
|
|
939
939
|
var Pt = /* @__PURE__ */ P("<style>"), $t = /* @__PURE__ */ P("<slot>");
|
|
940
940
|
function Et(e) {
|
|
941
941
|
return [(() => {
|
|
@@ -944,30 +944,30 @@ function Et(e) {
|
|
|
944
944
|
})(), (() => {
|
|
945
945
|
var t = $t();
|
|
946
946
|
return t._$owner = Ie(), t;
|
|
947
|
-
})(),
|
|
947
|
+
})(), h(at, {
|
|
948
948
|
get moqPublish() {
|
|
949
949
|
return e.publish;
|
|
950
950
|
},
|
|
951
951
|
get children() {
|
|
952
|
-
return
|
|
952
|
+
return h(At, {});
|
|
953
953
|
}
|
|
954
954
|
})];
|
|
955
955
|
}
|
|
956
956
|
lt("moq-publish-ui", (e, {
|
|
957
957
|
element: t
|
|
958
958
|
}) => {
|
|
959
|
-
const [r,
|
|
959
|
+
const [r, n] = x();
|
|
960
960
|
return Me(async () => {
|
|
961
961
|
await customElements.whenDefined("moq-publish");
|
|
962
|
-
const
|
|
963
|
-
o
|
|
964
|
-
}),
|
|
962
|
+
const o = t.querySelector("moq-publish");
|
|
963
|
+
n(o || void 0);
|
|
964
|
+
}), h(V, {
|
|
965
965
|
get when() {
|
|
966
966
|
return r();
|
|
967
967
|
},
|
|
968
968
|
keyed: !0,
|
|
969
|
-
children: (
|
|
970
|
-
publish:
|
|
969
|
+
children: (o) => h(Et, {
|
|
970
|
+
publish: o
|
|
971
971
|
})
|
|
972
972
|
});
|
|
973
973
|
});
|