@ikonai/sdk-ui 1.0.59 → 1.0.61
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/assets/audio-capture-worker-Brmt2Z7a.js +1279 -0
- package/assets/audio-playback-worker-BhikbMvg.js +1590 -0
- package/assets/index-Ca9sTcGt.js +119 -0
- package/assets/index-D_vz6N3U.js +267 -0
- package/assets/libopus-ChbDZJKA.js +139 -0
- package/assets/protocol-worker-C1bzc65g.js +1674 -0
- package/assets/{ui-worker-D4hZvsPd.js → ui-worker-Cnoq4Ubv.js} +632 -548
- package/assets/video-capture-worker-aMgUqmMd.js +1126 -0
- package/assets/video-playback-worker-Cfg2cyD1.js +1005 -0
- package/index.js +643 -621
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const
|
|
1
|
+
const te = {
|
|
2
2
|
Compressed: 8
|
|
3
3
|
};
|
|
4
|
-
function
|
|
4
|
+
function ee(t) {
|
|
5
5
|
if (t.length < 8)
|
|
6
6
|
throw new Error("Protocol message too short");
|
|
7
7
|
return (t[4] | t[5] << 8 | t[6] << 16 | t[7] << 24) >>> 0;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Z(t) {
|
|
10
10
|
const r = K(t), e = new DataView(r.buffer, r.byteOffset, r.byteLength);
|
|
11
11
|
if (r.length < 27)
|
|
12
12
|
throw new Error("Protocol payload too short");
|
|
@@ -14,9 +14,9 @@ function q(t) {
|
|
|
14
14
|
if (27 + _ * 4 > r.length)
|
|
15
15
|
throw new Error("Protocol header exceeds payload length");
|
|
16
16
|
const w = [];
|
|
17
|
-
let
|
|
18
|
-
for (let
|
|
19
|
-
w.push(e.getUint32(
|
|
17
|
+
let d = 27;
|
|
18
|
+
for (let W = 0; W < _; W++)
|
|
19
|
+
w.push(e.getUint32(d, !0)), d += 4;
|
|
20
20
|
return {
|
|
21
21
|
length: s,
|
|
22
22
|
opcode: n,
|
|
@@ -30,16 +30,16 @@ function q(t) {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
async function p(t, r, e) {
|
|
33
|
-
const s = K(t), n =
|
|
33
|
+
const s = K(t), n = Z(s);
|
|
34
34
|
if (r !== void 0 && n.opcode !== r)
|
|
35
35
|
throw new Error(`Unexpected opcode ${n.opcode}`);
|
|
36
36
|
if (n.payloadType !== 8)
|
|
37
37
|
throw new Error(`Unexpected payload type ${n.payloadType}`);
|
|
38
38
|
const i = 27 + n.targetIds.length * 4;
|
|
39
39
|
let o = s.subarray(i, n.length);
|
|
40
|
-
return (n.flags &
|
|
40
|
+
return (n.flags & te.Compressed) !== 0 && (o = await re(o)), o;
|
|
41
41
|
}
|
|
42
|
-
async function
|
|
42
|
+
async function re(t) {
|
|
43
43
|
if (typeof DecompressionStream > "u")
|
|
44
44
|
throw new Error("DecompressionStream not supported");
|
|
45
45
|
const r = new DecompressionStream("gzip"), e = r.writable.getWriter(), s = new Uint8Array(t);
|
|
@@ -58,9 +58,9 @@ async function ee(t) {
|
|
|
58
58
|
return a;
|
|
59
59
|
}
|
|
60
60
|
var F = /* @__PURE__ */ ((t) => (t[t.Null = 1] = "Null", t[t.Bool = 2] = "Bool", t[t.Int32 = 3] = "Int32", t[t.Int64 = 4] = "Int64", t[t.UInt32 = 5] = "UInt32", t[t.UInt64 = 6] = "UInt64", t[t.Float32 = 7] = "Float32", t[t.Float64 = 8] = "Float64", t[t.Array = 9] = "Array", t[t.Dict = 10] = "Dict", t[t.Object = 11] = "Object", t[t.String = 12] = "String", t[t.Binary = 13] = "Binary", t[t.Guid = 14] = "Guid", t))(F || {});
|
|
61
|
-
const
|
|
61
|
+
const se = 161, ne = 162;
|
|
62
62
|
new TextEncoder();
|
|
63
|
-
const
|
|
63
|
+
const ie = new TextDecoder("utf-8", { fatal: !0 });
|
|
64
64
|
class O {
|
|
65
65
|
constructor(r, e, s) {
|
|
66
66
|
this.buffer = r, this.version = e, this.offset = s, this.end = r.length - 1;
|
|
@@ -71,7 +71,7 @@ class O {
|
|
|
71
71
|
const e = K(r);
|
|
72
72
|
if (e.length < 2)
|
|
73
73
|
throw new Error("Teleport payload too short");
|
|
74
|
-
if (e[0] !==
|
|
74
|
+
if (e[0] !== se || e[e.length - 1] !== ne)
|
|
75
75
|
throw new Error("Teleport object missing markers");
|
|
76
76
|
const s = { offset: 1 }, n = S(e, s, "InvalidLength");
|
|
77
77
|
return new O(e, n, s.offset);
|
|
@@ -81,7 +81,7 @@ class O {
|
|
|
81
81
|
return null;
|
|
82
82
|
if (this.offset + 5 > this.buffer.length)
|
|
83
83
|
throw new Error("Teleport object truncated");
|
|
84
|
-
const r =
|
|
84
|
+
const r = _e(this.buffer, this.offset);
|
|
85
85
|
this.offset += 4;
|
|
86
86
|
const e = this.buffer[this.offset++], s = e >> 4 & 15;
|
|
87
87
|
if ((e & 15) !== 0)
|
|
@@ -94,10 +94,10 @@ class O {
|
|
|
94
94
|
const o = { offset: this.offset }, a = S(this.buffer, o, "InvalidLength");
|
|
95
95
|
N(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
|
|
96
96
|
}
|
|
97
|
-
return new
|
|
97
|
+
return new oe(r, s, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
class
|
|
100
|
+
class L {
|
|
101
101
|
constructor(r, e) {
|
|
102
102
|
this.type = r, this.payload = e;
|
|
103
103
|
}
|
|
@@ -159,7 +159,7 @@ class y {
|
|
|
159
159
|
return this.ensureType(
|
|
160
160
|
12
|
|
161
161
|
/* String */
|
|
162
|
-
),
|
|
162
|
+
), ie.decode(this.payload);
|
|
163
163
|
}
|
|
164
164
|
asGuid() {
|
|
165
165
|
return this.ensureType(
|
|
@@ -177,20 +177,20 @@ class y {
|
|
|
177
177
|
return this.ensureType(
|
|
178
178
|
9
|
|
179
179
|
/* Array */
|
|
180
|
-
),
|
|
180
|
+
), tt.create(this.payload);
|
|
181
181
|
}
|
|
182
182
|
asDictionary() {
|
|
183
183
|
return this.ensureType(
|
|
184
184
|
10
|
|
185
185
|
/* Dict */
|
|
186
|
-
),
|
|
186
|
+
), et.create(this.payload);
|
|
187
187
|
}
|
|
188
188
|
ensureType(r) {
|
|
189
189
|
if (this.type !== r)
|
|
190
190
|
throw new Error(`Teleport value has type ${F[this.type]}, expected ${F[r]}`);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
class
|
|
193
|
+
class oe extends L {
|
|
194
194
|
constructor(r, e, s) {
|
|
195
195
|
super(e, s), this.fieldId = r;
|
|
196
196
|
}
|
|
@@ -198,7 +198,7 @@ class ie extends y {
|
|
|
198
198
|
return this.type === 1;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
class
|
|
201
|
+
class tt {
|
|
202
202
|
payload;
|
|
203
203
|
elementType;
|
|
204
204
|
count;
|
|
@@ -214,7 +214,7 @@ class Z {
|
|
|
214
214
|
this.count = S(r, s, "ArrayMalformed"), this.offset = s.offset;
|
|
215
215
|
}
|
|
216
216
|
static create(r) {
|
|
217
|
-
return new
|
|
217
|
+
return new tt(K(r));
|
|
218
218
|
}
|
|
219
219
|
next() {
|
|
220
220
|
if (this.index >= this.count) {
|
|
@@ -254,11 +254,11 @@ class Z {
|
|
|
254
254
|
return this.offset = r.offset + e, new k(11, s);
|
|
255
255
|
}
|
|
256
256
|
case 9: {
|
|
257
|
-
const r =
|
|
257
|
+
const r = rt(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
|
|
258
258
|
return this.offset += r, new k(9, e);
|
|
259
259
|
}
|
|
260
260
|
case 10: {
|
|
261
|
-
const r =
|
|
261
|
+
const r = st(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
|
|
262
262
|
return this.offset += r, new k(10, e);
|
|
263
263
|
}
|
|
264
264
|
default:
|
|
@@ -266,12 +266,12 @@ class Z {
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
class k extends
|
|
269
|
+
class k extends L {
|
|
270
270
|
constructor(r, e) {
|
|
271
271
|
super(r, e);
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
class
|
|
274
|
+
class et {
|
|
275
275
|
payload;
|
|
276
276
|
keyType;
|
|
277
277
|
valueType;
|
|
@@ -283,12 +283,12 @@ class tt {
|
|
|
283
283
|
throw new Error("Dictionary payload too short");
|
|
284
284
|
if (this.keyType = r[0] >> 4 & 15, this.valueType = r[1] >> 4 & 15, (r[0] & 15) !== 0 || (r[1] & 15) !== 0)
|
|
285
285
|
throw new Error("Dictionary key/value flags must be zero");
|
|
286
|
-
|
|
286
|
+
Et(this.keyType);
|
|
287
287
|
const e = { offset: 2 };
|
|
288
288
|
this.count = S(r, e, "DictMalformed"), this.offset = e.offset;
|
|
289
289
|
}
|
|
290
290
|
static create(r) {
|
|
291
|
-
return new
|
|
291
|
+
return new et(K(r));
|
|
292
292
|
}
|
|
293
293
|
next() {
|
|
294
294
|
if (this.index >= this.count) {
|
|
@@ -297,20 +297,20 @@ class tt {
|
|
|
297
297
|
return null;
|
|
298
298
|
}
|
|
299
299
|
const r = this.readKey(), e = this.readValue();
|
|
300
|
-
return this.index++, new
|
|
300
|
+
return this.index++, new ae(r, e);
|
|
301
301
|
}
|
|
302
302
|
readKey() {
|
|
303
303
|
const r = b(this.keyType);
|
|
304
304
|
if (r >= 0) {
|
|
305
305
|
N(this.payload, this.offset, r);
|
|
306
306
|
const e = this.payload.subarray(this.offset, this.offset + r);
|
|
307
|
-
return this.offset += r, new
|
|
307
|
+
return this.offset += r, new L(this.keyType, e);
|
|
308
308
|
}
|
|
309
309
|
if (this.keyType === 12 || this.keyType === 13) {
|
|
310
310
|
const e = { offset: this.offset }, s = S(this.payload, e, "DictMalformed");
|
|
311
311
|
N(this.payload, e.offset, s);
|
|
312
312
|
const n = this.payload.subarray(e.offset, e.offset + s);
|
|
313
|
-
return this.offset = e.offset + s, new
|
|
313
|
+
return this.offset = e.offset + s, new L(this.keyType, n);
|
|
314
314
|
}
|
|
315
315
|
throw new Error("Unsupported dictionary key type");
|
|
316
316
|
}
|
|
@@ -321,21 +321,21 @@ class tt {
|
|
|
321
321
|
const r = { offset: this.offset }, e = S(this.payload, r, "DictMalformed");
|
|
322
322
|
N(this.payload, r.offset, e);
|
|
323
323
|
const s = this.payload.subarray(r.offset, r.offset + e);
|
|
324
|
-
return this.offset = r.offset + e, new
|
|
324
|
+
return this.offset = r.offset + e, new L(this.valueType, s);
|
|
325
325
|
}
|
|
326
326
|
case 11: {
|
|
327
327
|
const r = { offset: this.offset }, e = S(this.payload, r, "DictMalformed");
|
|
328
328
|
N(this.payload, r.offset, e);
|
|
329
329
|
const s = this.payload.subarray(r.offset, r.offset + e);
|
|
330
|
-
return this.offset = r.offset + e, new
|
|
330
|
+
return this.offset = r.offset + e, new L(11, s);
|
|
331
331
|
}
|
|
332
332
|
case 9: {
|
|
333
|
-
const r =
|
|
334
|
-
return this.offset += r, new
|
|
333
|
+
const r = rt(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
|
|
334
|
+
return this.offset += r, new L(9, e);
|
|
335
335
|
}
|
|
336
336
|
case 10: {
|
|
337
|
-
const r =
|
|
338
|
-
return this.offset += r, new
|
|
337
|
+
const r = st(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
|
|
338
|
+
return this.offset += r, new L(10, e);
|
|
339
339
|
}
|
|
340
340
|
case 3:
|
|
341
341
|
case 5:
|
|
@@ -349,14 +349,14 @@ class tt {
|
|
|
349
349
|
const r = b(this.valueType);
|
|
350
350
|
N(this.payload, this.offset, r);
|
|
351
351
|
const e = this.payload.subarray(this.offset, this.offset + r);
|
|
352
|
-
return this.offset += r, new
|
|
352
|
+
return this.offset += r, new L(this.valueType, e);
|
|
353
353
|
}
|
|
354
354
|
default:
|
|
355
355
|
throw new Error(`Unsupported dictionary value type ${F[this.valueType]}`);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
class
|
|
359
|
+
class ae {
|
|
360
360
|
constructor(r, e) {
|
|
361
361
|
this.key = r, this.value = e;
|
|
362
362
|
}
|
|
@@ -400,8 +400,8 @@ class T {
|
|
|
400
400
|
T.toHex(T.readUInt32LE(r, 0), 8),
|
|
401
401
|
T.toHex(T.readUInt16LE(r, 4), 4),
|
|
402
402
|
T.toHex(T.readUInt16LE(r, 6), 4),
|
|
403
|
-
|
|
404
|
-
|
|
403
|
+
it(r.subarray(8, 10)),
|
|
404
|
+
it(r.subarray(10, 16))
|
|
405
405
|
].join("-");
|
|
406
406
|
}
|
|
407
407
|
asBytes() {
|
|
@@ -438,7 +438,7 @@ function S(t, r, e) {
|
|
|
438
438
|
for (; r.offset < t.length; ) {
|
|
439
439
|
const o = t[r.offset++];
|
|
440
440
|
if (i++, s |= (o & 127) << n, (o & 128) === 0) {
|
|
441
|
-
if (i !==
|
|
441
|
+
if (i !== Ee(s))
|
|
442
442
|
throw new Error("Teleport VarUInt is not canonical");
|
|
443
443
|
return s >>> 0;
|
|
444
444
|
}
|
|
@@ -447,7 +447,7 @@ function S(t, r, e) {
|
|
|
447
447
|
}
|
|
448
448
|
throw new Error(e);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Ee(t) {
|
|
451
451
|
return t < 128 ? 1 : t < 16384 ? 2 : t < 2097152 ? 3 : t < 268435456 ? 4 : 5;
|
|
452
452
|
}
|
|
453
453
|
function b(t) {
|
|
@@ -470,7 +470,7 @@ function b(t) {
|
|
|
470
470
|
return -1;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Et(t) {
|
|
474
474
|
if (t === 9 || t === 11 || t === 10 || t === 1)
|
|
475
475
|
throw new Error("Dictionary keys must be primitive Teleport types");
|
|
476
476
|
}
|
|
@@ -478,10 +478,10 @@ function N(t, r, e) {
|
|
|
478
478
|
if (r < 0 || e < 0 || r + e > t.length)
|
|
479
479
|
throw new Error("Teleport payload exceeds bounds");
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function _e(t, r) {
|
|
482
482
|
return (t[r] | t[r + 1] << 8 | t[r + 2] << 16 | t[r + 3] << 24) >>> 0;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function rt(t, r) {
|
|
485
485
|
if (r >= t.length)
|
|
486
486
|
throw new Error("Array payload exceeds bounds");
|
|
487
487
|
const e = t[r], s = e >> 4 & 15;
|
|
@@ -494,23 +494,23 @@ function et(t, r) {
|
|
|
494
494
|
}
|
|
495
495
|
let a = n.offset;
|
|
496
496
|
for (let _ = 0; _ < i; _++)
|
|
497
|
-
a =
|
|
497
|
+
a = Q(s, t, a, "ArrayMalformed");
|
|
498
498
|
return a - r;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function st(t, r) {
|
|
501
501
|
if (r + 2 > t.length)
|
|
502
502
|
throw new Error("Dictionary payload too short");
|
|
503
503
|
const e = t[r] >> 4 & 15, s = t[r + 1] >> 4 & 15;
|
|
504
504
|
if ((t[r] & 15) !== 0 || (t[r + 1] & 15) !== 0)
|
|
505
505
|
throw new Error("Dictionary key/value flags must be zero");
|
|
506
|
-
|
|
506
|
+
Et(e);
|
|
507
507
|
const n = { offset: r + 2 }, i = S(t, n, "DictMalformed");
|
|
508
508
|
let o = n.offset;
|
|
509
509
|
for (let a = 0; a < i; a++)
|
|
510
|
-
o =
|
|
510
|
+
o = Q(e, t, o, "DictMalformed"), o = Q(s, t, o, "DictMalformed");
|
|
511
511
|
return o - r;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Q(t, r, e, s) {
|
|
514
514
|
const n = b(t);
|
|
515
515
|
if (n >= 0)
|
|
516
516
|
return N(r, e, n), e + n;
|
|
@@ -525,60 +525,60 @@ function J(t, r, e, s) {
|
|
|
525
525
|
return N(r, i.offset, o), i.offset + o;
|
|
526
526
|
}
|
|
527
527
|
case 9:
|
|
528
|
-
return e + et(r, e);
|
|
529
|
-
case 10:
|
|
530
528
|
return e + rt(r, e);
|
|
529
|
+
case 10:
|
|
530
|
+
return e + st(r, e);
|
|
531
531
|
default:
|
|
532
532
|
throw new Error(`Unsupported Teleport type ${F[t]}`);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function it(t) {
|
|
536
536
|
return Array.from(t).map((r) => r.toString(16).padStart(2, "0")).join("");
|
|
537
537
|
}
|
|
538
538
|
function K(t) {
|
|
539
539
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
540
540
|
}
|
|
541
|
-
var Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(_t || {}), It = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(It || {}), lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(lt || {}), ct = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ft || {}), ut = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(Tt || {}), ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(ht || {}), At = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(Nt || {}), m = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD = 65560] = "CORE_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(m || {});
|
|
542
|
-
const
|
|
543
|
-
function St(t) {
|
|
544
|
-
const r = {};
|
|
545
|
-
return Ct(r), r;
|
|
546
|
-
}
|
|
541
|
+
var _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(_t || {}), It = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(It || {}), lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(lt || {}), ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ft || {}), ut = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(ht || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(Nt || {}), St = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(St || {}), m = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_RESET_IDLE = 65560] = "CORE_RESET_IDLE", t[t.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", t[t.CORE_ON_APP_READY = 65562] = "CORE_ON_APP_READY", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", t[t.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", t[t.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(m || {});
|
|
542
|
+
const Ie = 161083277, le = 265814330, ce = 1368629611, fe = 2431514951, ue = 2514959030, Te = 2745379226, he = 3282782683, Ae = 3284746250, Ne = 4101844078;
|
|
547
543
|
function Ct(t) {
|
|
548
|
-
|
|
544
|
+
const r = {};
|
|
545
|
+
return Dt(r), r;
|
|
549
546
|
}
|
|
550
|
-
function
|
|
551
|
-
|
|
552
|
-
return Ct(e), Se(t, e), e;
|
|
547
|
+
function Dt(t) {
|
|
548
|
+
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = _t.Unknown, t.CodecDetails = "", t.SampleRate = 0, t.Channels = 0, t.ShapeSets = void 0, t.CorrelationId = void 0, t;
|
|
553
549
|
}
|
|
554
550
|
function Se(t, r) {
|
|
551
|
+
const e = r ?? Ct();
|
|
552
|
+
return Dt(e), Ce(t, e), e;
|
|
553
|
+
}
|
|
554
|
+
function Ce(t, r) {
|
|
555
555
|
let e;
|
|
556
556
|
for (; (e = t.next()) !== null; )
|
|
557
557
|
switch (e.fieldId) {
|
|
558
|
-
case
|
|
558
|
+
case Ie: {
|
|
559
559
|
if (e.isNull) throw new Error();
|
|
560
560
|
r.StreamId = e.asString();
|
|
561
561
|
break;
|
|
562
562
|
}
|
|
563
|
-
case
|
|
563
|
+
case le: {
|
|
564
564
|
if (e.isNull) {
|
|
565
565
|
r.ShapeSets = void 0;
|
|
566
566
|
break;
|
|
567
567
|
}
|
|
568
|
-
r.ShapeSets =
|
|
568
|
+
r.ShapeSets = De(e.asArray());
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
|
-
case
|
|
571
|
+
case ce: {
|
|
572
572
|
if (e.isNull) throw new Error();
|
|
573
573
|
r.Description = e.asString();
|
|
574
574
|
break;
|
|
575
575
|
}
|
|
576
|
-
case
|
|
576
|
+
case fe: {
|
|
577
577
|
if (e.isNull) throw new Error();
|
|
578
578
|
r.Channels = e.asInt32();
|
|
579
579
|
break;
|
|
580
580
|
}
|
|
581
|
-
case
|
|
581
|
+
case ue: {
|
|
582
582
|
if (e.isNull) {
|
|
583
583
|
r.CorrelationId = void 0;
|
|
584
584
|
break;
|
|
@@ -586,37 +586,37 @@ function Se(t, r) {
|
|
|
586
586
|
r.CorrelationId = e.asString();
|
|
587
587
|
break;
|
|
588
588
|
}
|
|
589
|
-
case
|
|
589
|
+
case Te: {
|
|
590
590
|
if (e.isNull) throw new Error();
|
|
591
591
|
r.CodecDetails = e.asString();
|
|
592
592
|
break;
|
|
593
593
|
}
|
|
594
|
-
case
|
|
594
|
+
case he: {
|
|
595
595
|
if (e.isNull) throw new Error();
|
|
596
596
|
r.SourceType = e.asString();
|
|
597
597
|
break;
|
|
598
598
|
}
|
|
599
|
-
case
|
|
599
|
+
case Ae: {
|
|
600
600
|
if (e.isNull) throw new Error();
|
|
601
601
|
r.Codec = e.asInt32();
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
|
-
case
|
|
604
|
+
case Ne: {
|
|
605
605
|
if (e.isNull) throw new Error();
|
|
606
606
|
r.SampleRate = e.asInt32();
|
|
607
607
|
break;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function De(t) {
|
|
612
612
|
const r = [];
|
|
613
613
|
let e;
|
|
614
614
|
for (; (e = t.next()) !== null; )
|
|
615
615
|
r.push(ye(e.asObject()));
|
|
616
616
|
return r;
|
|
617
617
|
}
|
|
618
|
-
const Re = 1107713536,
|
|
619
|
-
function
|
|
618
|
+
const Re = 1107713536, de = 1154362099, we = 1185721362;
|
|
619
|
+
function Le(t) {
|
|
620
620
|
const r = {};
|
|
621
621
|
return Rt(r), r;
|
|
622
622
|
}
|
|
@@ -624,7 +624,7 @@ function Rt(t) {
|
|
|
624
624
|
return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
|
|
625
625
|
}
|
|
626
626
|
function ye(t, r) {
|
|
627
|
-
const e = r ??
|
|
627
|
+
const e = r ?? Le();
|
|
628
628
|
return Rt(e), Ue(t, e), e;
|
|
629
629
|
}
|
|
630
630
|
function Ue(t, r) {
|
|
@@ -636,199 +636,219 @@ function Ue(t, r) {
|
|
|
636
636
|
r.Name = e.asString();
|
|
637
637
|
break;
|
|
638
638
|
}
|
|
639
|
-
case
|
|
639
|
+
case de: {
|
|
640
640
|
if (e.isNull) throw new Error();
|
|
641
641
|
r.SetId = e.asUInt32();
|
|
642
642
|
break;
|
|
643
643
|
}
|
|
644
|
-
case
|
|
644
|
+
case we: {
|
|
645
645
|
if (e.isNull) throw new Error();
|
|
646
|
-
r.ShapeNames =
|
|
646
|
+
r.ShapeNames = Oe(e.asArray());
|
|
647
647
|
break;
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Oe(t) {
|
|
652
652
|
const r = [];
|
|
653
653
|
let e;
|
|
654
654
|
for (; (e = t.next()) !== null; )
|
|
655
655
|
r.push(e.asString());
|
|
656
656
|
return r;
|
|
657
657
|
}
|
|
658
|
-
const
|
|
659
|
-
function
|
|
658
|
+
const me = 76337612, Pe = 185396121, ge = 250031587, Fe = 388632637, be = 417197284, Me = 425972532, ve = 469070965, ke = 470595159, Ge = 594855258, Be = 617065367, Ve = 661691032, xe = 781727218, He = 834078886, Ye = 1043273762, pe = 1236999138, Ke = 1286979607, $e = 1368629611, Xe = 1437068682, je = 1715899485, We = 1942830531, ze = 1999510636, Je = 2033288346, Qe = 2079864626, qe = 2142346422, Ze = 2228539873, tr = 2232517119, er = 2598291686, rr = 2719718823, sr = 2810953526, nr = 2840065720, ir = 2885165957, or = 3542818975, ar = 3586157513, Er = 3717933110, _r = 4062655306;
|
|
659
|
+
function Ir(t) {
|
|
660
660
|
const r = {};
|
|
661
|
-
return
|
|
661
|
+
return dt(r), r;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
return t.ContextType =
|
|
663
|
+
function dt(t) {
|
|
664
|
+
return t.ContextType = lt.Unknown, t.UserType = Tt.Unknown, t.PayloadType = ct.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = It.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = At.Unknown, t.SdkCapability = 0, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialPath = "", t.StyleFormat = ut.Css, t.SupportsCompression = !0, t.IsSoftDisconnected = !1, t.SoftDisconnectAt = 0n, t;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
const e = r ??
|
|
668
|
-
return
|
|
666
|
+
function lr(t, r) {
|
|
667
|
+
const e = r ?? Ir();
|
|
668
|
+
return dt(e), cr(t, e), e;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function cr(t, r) {
|
|
671
671
|
let e;
|
|
672
672
|
for (; (e = t.next()) !== null; )
|
|
673
673
|
switch (e.fieldId) {
|
|
674
|
-
case
|
|
674
|
+
case me: {
|
|
675
675
|
if (e.isNull) throw new Error();
|
|
676
676
|
r.DeviceId = e.asString();
|
|
677
677
|
break;
|
|
678
678
|
}
|
|
679
|
-
case
|
|
679
|
+
case Pe: {
|
|
680
680
|
if (e.isNull) throw new Error();
|
|
681
681
|
r.InstallId = e.asString();
|
|
682
682
|
break;
|
|
683
683
|
}
|
|
684
|
-
case
|
|
684
|
+
case ge: {
|
|
685
685
|
if (e.isNull) throw new Error();
|
|
686
686
|
r.Theme = e.asString();
|
|
687
687
|
break;
|
|
688
688
|
}
|
|
689
|
-
case
|
|
689
|
+
case Fe: {
|
|
690
690
|
if (e.isNull) throw new Error();
|
|
691
691
|
r.UserAgent = e.asString();
|
|
692
692
|
break;
|
|
693
693
|
}
|
|
694
|
-
case
|
|
694
|
+
case be: {
|
|
695
695
|
if (e.isNull) throw new Error();
|
|
696
696
|
r.ContextType = e.asInt32();
|
|
697
697
|
break;
|
|
698
698
|
}
|
|
699
|
-
case
|
|
699
|
+
case Me: {
|
|
700
|
+
if (e.isNull) throw new Error();
|
|
701
|
+
r.SoftDisconnectAt = e.asUInt64();
|
|
702
|
+
break;
|
|
703
|
+
}
|
|
704
|
+
case ve: {
|
|
700
705
|
if (e.isNull) throw new Error();
|
|
701
706
|
r.HasInput = e.asBool();
|
|
702
707
|
break;
|
|
703
708
|
}
|
|
704
|
-
case
|
|
709
|
+
case ke: {
|
|
705
710
|
if (e.isNull) throw new Error();
|
|
706
711
|
r.UserType = e.asInt32();
|
|
707
712
|
break;
|
|
708
713
|
}
|
|
709
|
-
case
|
|
714
|
+
case Ge: {
|
|
710
715
|
if (e.isNull) throw new Error();
|
|
711
716
|
r.InitialPath = e.asString();
|
|
712
717
|
break;
|
|
713
718
|
}
|
|
714
|
-
case
|
|
719
|
+
case Be: {
|
|
720
|
+
if (e.isNull) throw new Error();
|
|
721
|
+
r.IsSoftDisconnected = e.asBool();
|
|
722
|
+
break;
|
|
723
|
+
}
|
|
724
|
+
case Ve: {
|
|
725
|
+
if (e.isNull) throw new Error();
|
|
726
|
+
r.SupportsCompression = e.asBool();
|
|
727
|
+
break;
|
|
728
|
+
}
|
|
729
|
+
case xe: {
|
|
715
730
|
if (e.isNull) throw new Error();
|
|
716
731
|
r.UserId = e.asString();
|
|
717
732
|
break;
|
|
718
733
|
}
|
|
719
|
-
case
|
|
734
|
+
case He: {
|
|
720
735
|
if (e.isNull) throw new Error();
|
|
721
736
|
r.ProductId = e.asString();
|
|
722
737
|
break;
|
|
723
738
|
}
|
|
724
|
-
case
|
|
739
|
+
case Ye: {
|
|
725
740
|
if (e.isNull) throw new Error();
|
|
726
741
|
r.AuthSessionId = e.asString();
|
|
727
742
|
break;
|
|
728
743
|
}
|
|
729
|
-
case
|
|
744
|
+
case pe: {
|
|
730
745
|
if (e.isNull) throw new Error();
|
|
731
746
|
r.ReceiveAllMessages = e.asBool();
|
|
732
747
|
break;
|
|
733
748
|
}
|
|
734
|
-
case
|
|
749
|
+
case Ke: {
|
|
735
750
|
if (e.isNull) throw new Error();
|
|
736
751
|
r.ViewportHeight = e.asInt32();
|
|
737
752
|
break;
|
|
738
753
|
}
|
|
739
|
-
case
|
|
754
|
+
case $e: {
|
|
740
755
|
if (e.isNull) throw new Error();
|
|
741
756
|
r.Description = e.asString();
|
|
742
757
|
break;
|
|
743
758
|
}
|
|
744
|
-
case
|
|
759
|
+
case Xe: {
|
|
760
|
+
if (e.isNull) throw new Error();
|
|
761
|
+
r.SdkCapability = e.asInt32();
|
|
762
|
+
break;
|
|
763
|
+
}
|
|
764
|
+
case je: {
|
|
745
765
|
if (e.isNull) throw new Error();
|
|
746
766
|
r.Locale = e.asString();
|
|
747
767
|
break;
|
|
748
768
|
}
|
|
749
|
-
case
|
|
769
|
+
case We: {
|
|
750
770
|
if (e.isNull) throw new Error();
|
|
751
771
|
r.SdkType = e.asInt32();
|
|
752
772
|
break;
|
|
753
773
|
}
|
|
754
|
-
case
|
|
774
|
+
case ze: {
|
|
755
775
|
if (e.isNull) throw new Error();
|
|
756
776
|
r.SessionId = e.asInt32();
|
|
757
777
|
break;
|
|
758
778
|
}
|
|
759
|
-
case
|
|
779
|
+
case Je: {
|
|
760
780
|
if (e.isNull) throw new Error();
|
|
761
781
|
r.ViewportWidth = e.asInt32();
|
|
762
782
|
break;
|
|
763
783
|
}
|
|
764
|
-
case
|
|
784
|
+
case Qe: {
|
|
765
785
|
if (e.isNull) throw new Error();
|
|
766
786
|
r.PreciseJoinedAt = e.asUInt64();
|
|
767
787
|
break;
|
|
768
788
|
}
|
|
769
|
-
case
|
|
789
|
+
case qe: {
|
|
770
790
|
if (e.isNull) throw new Error();
|
|
771
791
|
r.PayloadType = e.asInt32();
|
|
772
792
|
break;
|
|
773
793
|
}
|
|
774
|
-
case
|
|
794
|
+
case Ze: {
|
|
775
795
|
if (e.isNull) throw new Error();
|
|
776
796
|
r.StyleFormat = e.asInt32();
|
|
777
797
|
break;
|
|
778
798
|
}
|
|
779
|
-
case
|
|
799
|
+
case tr: {
|
|
780
800
|
if (e.isNull) throw new Error();
|
|
781
801
|
r.IsTouchDevice = e.asBool();
|
|
782
802
|
break;
|
|
783
803
|
}
|
|
784
|
-
case
|
|
804
|
+
case er: {
|
|
785
805
|
if (e.isNull) throw new Error();
|
|
786
806
|
r.VersionId = e.asString();
|
|
787
807
|
break;
|
|
788
808
|
}
|
|
789
|
-
case
|
|
809
|
+
case rr: {
|
|
790
810
|
if (e.isNull) throw new Error();
|
|
791
811
|
r.UniqueSessionId = e.asString();
|
|
792
812
|
break;
|
|
793
813
|
}
|
|
794
|
-
case
|
|
814
|
+
case sr: {
|
|
795
815
|
if (e.isNull) throw new Error();
|
|
796
816
|
r.ClientType = e.asInt32();
|
|
797
817
|
break;
|
|
798
818
|
}
|
|
799
|
-
case
|
|
819
|
+
case nr: {
|
|
800
820
|
if (e.isNull) throw new Error();
|
|
801
821
|
r.IsReady = e.asBool();
|
|
802
822
|
break;
|
|
803
823
|
}
|
|
804
|
-
case
|
|
824
|
+
case ir: {
|
|
805
825
|
if (e.isNull) throw new Error();
|
|
806
|
-
r.Parameters =
|
|
826
|
+
r.Parameters = fr(e.asDictionary());
|
|
807
827
|
break;
|
|
808
828
|
}
|
|
809
|
-
case
|
|
829
|
+
case or: {
|
|
810
830
|
if (e.isNull) throw new Error();
|
|
811
831
|
r.Timezone = e.asString();
|
|
812
832
|
break;
|
|
813
833
|
}
|
|
814
|
-
case
|
|
834
|
+
case ar: {
|
|
815
835
|
if (e.isNull) throw new Error();
|
|
816
836
|
r.IsInternal = e.asBool();
|
|
817
837
|
break;
|
|
818
838
|
}
|
|
819
|
-
case
|
|
839
|
+
case Er: {
|
|
820
840
|
if (e.isNull) throw new Error();
|
|
821
841
|
r.ChannelLocale = e.asString();
|
|
822
842
|
break;
|
|
823
843
|
}
|
|
824
|
-
case
|
|
844
|
+
case _r: {
|
|
825
845
|
if (e.isNull) throw new Error();
|
|
826
846
|
r.EmbeddedSpaceId = e.asString();
|
|
827
847
|
break;
|
|
828
848
|
}
|
|
829
849
|
}
|
|
830
850
|
}
|
|
831
|
-
function
|
|
851
|
+
function fr(t) {
|
|
832
852
|
const r = /* @__PURE__ */ Object.create(null);
|
|
833
853
|
let e;
|
|
834
854
|
for (; (e = t.next()) !== null; ) {
|
|
@@ -837,289 +857,289 @@ function Er(t) {
|
|
|
837
857
|
}
|
|
838
858
|
return r;
|
|
839
859
|
}
|
|
840
|
-
const
|
|
841
|
-
function
|
|
860
|
+
const ur = 703025676, Tr = 814454131, hr = 972460562, Ar = 976255570, Nr = 1368629611, Sr = 1479280922, Cr = 1533537016, Dr = 1909301063, Rr = 2274386296, dr = 2603556958, wr = 2885165957, Lr = 3568439632;
|
|
861
|
+
function yr(t) {
|
|
842
862
|
const r = {};
|
|
843
|
-
return
|
|
863
|
+
return wt(r), r;
|
|
844
864
|
}
|
|
845
|
-
function
|
|
865
|
+
function wt(t) {
|
|
846
866
|
return t.FunctionId = T.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ResultTypeName = "", t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.IsCancellable = !1, t.Description = "", t.LlmInlineResult = !1, t.LlmCallOnlyOnce = !1, t.RequiresInstance = !1, t.Versions = [], t;
|
|
847
867
|
}
|
|
848
|
-
function
|
|
849
|
-
const e = r ??
|
|
850
|
-
return
|
|
868
|
+
function Ur(t, r) {
|
|
869
|
+
const e = r ?? yr();
|
|
870
|
+
return wt(e), Or(t, e), e;
|
|
851
871
|
}
|
|
852
|
-
function
|
|
872
|
+
function Or(t, r) {
|
|
853
873
|
let e;
|
|
854
874
|
for (; (e = t.next()) !== null; )
|
|
855
875
|
switch (e.fieldId) {
|
|
856
|
-
case
|
|
876
|
+
case ur: {
|
|
857
877
|
if (e.isNull) throw new Error();
|
|
858
878
|
r.ResultTypeName = e.asString();
|
|
859
879
|
break;
|
|
860
880
|
}
|
|
861
|
-
case
|
|
881
|
+
case Tr: {
|
|
862
882
|
if (e.isNull) throw new Error();
|
|
863
883
|
r.FunctionName = e.asString();
|
|
864
884
|
break;
|
|
865
885
|
}
|
|
866
|
-
case
|
|
886
|
+
case hr: {
|
|
867
887
|
if (e.isNull) throw new Error();
|
|
868
888
|
r.EnumerableItemTypeName = e.asString();
|
|
869
889
|
break;
|
|
870
890
|
}
|
|
871
|
-
case
|
|
891
|
+
case Ar: {
|
|
872
892
|
if (e.isNull) throw new Error();
|
|
873
893
|
r.FunctionId = e.asGuid();
|
|
874
894
|
break;
|
|
875
895
|
}
|
|
876
|
-
case
|
|
896
|
+
case Nr: {
|
|
877
897
|
if (e.isNull) throw new Error();
|
|
878
898
|
r.Description = e.asString();
|
|
879
899
|
break;
|
|
880
900
|
}
|
|
881
|
-
case
|
|
901
|
+
case Sr: {
|
|
882
902
|
if (e.isNull) throw new Error();
|
|
883
903
|
r.IsCancellable = e.asBool();
|
|
884
904
|
break;
|
|
885
905
|
}
|
|
886
|
-
case
|
|
906
|
+
case Cr: {
|
|
887
907
|
if (e.isNull) throw new Error();
|
|
888
908
|
r.RequiresInstance = e.asBool();
|
|
889
909
|
break;
|
|
890
910
|
}
|
|
891
|
-
case
|
|
911
|
+
case Dr: {
|
|
892
912
|
if (e.isNull) throw new Error();
|
|
893
|
-
r.Versions =
|
|
913
|
+
r.Versions = mr(e.asArray());
|
|
894
914
|
break;
|
|
895
915
|
}
|
|
896
|
-
case
|
|
916
|
+
case Rr: {
|
|
897
917
|
if (e.isNull) throw new Error();
|
|
898
918
|
r.LlmInlineResult = e.asBool();
|
|
899
919
|
break;
|
|
900
920
|
}
|
|
901
|
-
case
|
|
921
|
+
case dr: {
|
|
902
922
|
if (e.isNull) throw new Error();
|
|
903
923
|
r.IsEnumerable = e.asBool();
|
|
904
924
|
break;
|
|
905
925
|
}
|
|
906
|
-
case
|
|
926
|
+
case wr: {
|
|
907
927
|
if (e.isNull) throw new Error();
|
|
908
|
-
r.Parameters =
|
|
928
|
+
r.Parameters = Pr(e.asArray());
|
|
909
929
|
break;
|
|
910
930
|
}
|
|
911
|
-
case
|
|
931
|
+
case Lr: {
|
|
912
932
|
if (e.isNull) throw new Error();
|
|
913
933
|
r.LlmCallOnlyOnce = e.asBool();
|
|
914
934
|
break;
|
|
915
935
|
}
|
|
916
936
|
}
|
|
917
937
|
}
|
|
918
|
-
function
|
|
938
|
+
function mr(t) {
|
|
919
939
|
const r = [];
|
|
920
940
|
let e;
|
|
921
941
|
for (; (e = t.next()) !== null; )
|
|
922
942
|
r.push(e.asString());
|
|
923
943
|
return r;
|
|
924
944
|
}
|
|
925
|
-
function
|
|
945
|
+
function Pr(t) {
|
|
926
946
|
const r = [];
|
|
927
947
|
let e;
|
|
928
948
|
for (; (e = t.next()) !== null; )
|
|
929
|
-
r.push(
|
|
949
|
+
r.push(Hr(e.asObject()));
|
|
930
950
|
return r;
|
|
931
951
|
}
|
|
932
|
-
const
|
|
933
|
-
function
|
|
952
|
+
const gr = 607861992, Fr = 894485888, br = 972460562, Mr = 1368629611, vr = 1883521406, kr = 2603556958, Gr = 3609695522, Br = 4075263697, Vr = 4257460908;
|
|
953
|
+
function xr(t) {
|
|
934
954
|
const r = {};
|
|
935
|
-
return
|
|
955
|
+
return Lt(r), r;
|
|
936
956
|
}
|
|
937
|
-
function
|
|
957
|
+
function Lt(t) {
|
|
938
958
|
return t.ParameterIndex = 0, t.ParameterName = "", t.TypeName = "", t.HasDefaultValue = !1, t.DefaultValueJson = "", t.DefaultValueData = new Uint8Array(0), t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.Description = "", t;
|
|
939
959
|
}
|
|
940
|
-
function
|
|
941
|
-
const e = r ??
|
|
942
|
-
return
|
|
960
|
+
function Hr(t, r) {
|
|
961
|
+
const e = r ?? xr();
|
|
962
|
+
return Lt(e), Yr(t, e), e;
|
|
943
963
|
}
|
|
944
|
-
function
|
|
964
|
+
function Yr(t, r) {
|
|
945
965
|
let e;
|
|
946
966
|
for (; (e = t.next()) !== null; )
|
|
947
967
|
switch (e.fieldId) {
|
|
948
|
-
case
|
|
968
|
+
case gr: {
|
|
949
969
|
if (e.isNull) throw new Error();
|
|
950
970
|
r.HasDefaultValue = e.asBool();
|
|
951
971
|
break;
|
|
952
972
|
}
|
|
953
|
-
case
|
|
973
|
+
case Fr: {
|
|
954
974
|
if (e.isNull) throw new Error();
|
|
955
975
|
r.DefaultValueJson = e.asString();
|
|
956
976
|
break;
|
|
957
977
|
}
|
|
958
|
-
case
|
|
978
|
+
case br: {
|
|
959
979
|
if (e.isNull) throw new Error();
|
|
960
980
|
r.EnumerableItemTypeName = e.asString();
|
|
961
981
|
break;
|
|
962
982
|
}
|
|
963
|
-
case
|
|
983
|
+
case Mr: {
|
|
964
984
|
if (e.isNull) throw new Error();
|
|
965
985
|
r.Description = e.asString();
|
|
966
986
|
break;
|
|
967
987
|
}
|
|
968
|
-
case
|
|
988
|
+
case vr: {
|
|
969
989
|
if (e.isNull) throw new Error();
|
|
970
990
|
r.DefaultValueData = e.asBinary();
|
|
971
991
|
break;
|
|
972
992
|
}
|
|
973
|
-
case
|
|
993
|
+
case kr: {
|
|
974
994
|
if (e.isNull) throw new Error();
|
|
975
995
|
r.IsEnumerable = e.asBool();
|
|
976
996
|
break;
|
|
977
997
|
}
|
|
978
|
-
case
|
|
998
|
+
case Gr: {
|
|
979
999
|
if (e.isNull) throw new Error();
|
|
980
1000
|
r.TypeName = e.asString();
|
|
981
1001
|
break;
|
|
982
1002
|
}
|
|
983
|
-
case
|
|
1003
|
+
case Br: {
|
|
984
1004
|
if (e.isNull) throw new Error();
|
|
985
1005
|
r.ParameterName = e.asString();
|
|
986
1006
|
break;
|
|
987
1007
|
}
|
|
988
|
-
case
|
|
1008
|
+
case Vr: {
|
|
989
1009
|
if (e.isNull) throw new Error();
|
|
990
1010
|
r.ParameterIndex = e.asInt32();
|
|
991
1011
|
break;
|
|
992
1012
|
}
|
|
993
1013
|
}
|
|
994
1014
|
}
|
|
995
|
-
const
|
|
1015
|
+
const pr = 3167053791, Kr = 3342364356, $r = 3612929027;
|
|
996
1016
|
function yt(t) {
|
|
997
1017
|
const r = {};
|
|
998
1018
|
return Ut(r), r;
|
|
999
1019
|
}
|
|
1000
1020
|
function Ut(t) {
|
|
1001
|
-
return t.Category = "", t.Type =
|
|
1021
|
+
return t.Category = "", t.Type = ft.Face, t.FaceBlendshapes = [], t;
|
|
1002
1022
|
}
|
|
1003
|
-
function
|
|
1023
|
+
function Xr(t, r) {
|
|
1004
1024
|
const e = r ?? yt();
|
|
1005
|
-
return Ut(e),
|
|
1025
|
+
return Ut(e), jr(t, e), e;
|
|
1006
1026
|
}
|
|
1007
|
-
function
|
|
1027
|
+
function jr(t, r) {
|
|
1008
1028
|
let e;
|
|
1009
1029
|
for (; (e = t.next()) !== null; )
|
|
1010
1030
|
switch (e.fieldId) {
|
|
1011
|
-
case
|
|
1031
|
+
case pr: {
|
|
1012
1032
|
if (e.isNull) throw new Error();
|
|
1013
1033
|
r.Type = e.asInt32();
|
|
1014
1034
|
break;
|
|
1015
1035
|
}
|
|
1016
|
-
case
|
|
1036
|
+
case Kr: {
|
|
1017
1037
|
if (e.isNull) throw new Error();
|
|
1018
|
-
r.FaceBlendshapes =
|
|
1038
|
+
r.FaceBlendshapes = Wr(e.asArray());
|
|
1019
1039
|
break;
|
|
1020
1040
|
}
|
|
1021
|
-
case
|
|
1041
|
+
case $r: {
|
|
1022
1042
|
if (e.isNull) throw new Error();
|
|
1023
1043
|
r.Category = e.asString();
|
|
1024
1044
|
break;
|
|
1025
1045
|
}
|
|
1026
1046
|
}
|
|
1027
1047
|
}
|
|
1028
|
-
function
|
|
1048
|
+
function Wr(t) {
|
|
1029
1049
|
const r = [];
|
|
1030
1050
|
let e;
|
|
1031
1051
|
for (; (e = t.next()) !== null; )
|
|
1032
1052
|
r.push(e.asString());
|
|
1033
1053
|
return r;
|
|
1034
1054
|
}
|
|
1035
|
-
const
|
|
1036
|
-
function
|
|
1055
|
+
const zr = 1405462580, Jr = 2968276160;
|
|
1056
|
+
function Qr(t) {
|
|
1037
1057
|
const r = {};
|
|
1038
|
-
return
|
|
1058
|
+
return Ot(r), r;
|
|
1039
1059
|
}
|
|
1040
|
-
function
|
|
1060
|
+
function Ot(t) {
|
|
1041
1061
|
return t.MimeType = "", t.Value = new Uint8Array(0), t;
|
|
1042
1062
|
}
|
|
1043
|
-
function
|
|
1044
|
-
const e = r ??
|
|
1045
|
-
return
|
|
1063
|
+
function qr(t, r) {
|
|
1064
|
+
const e = r ?? Qr();
|
|
1065
|
+
return Ot(e), Zr(t, e), e;
|
|
1046
1066
|
}
|
|
1047
|
-
function
|
|
1067
|
+
function Zr(t, r) {
|
|
1048
1068
|
let e;
|
|
1049
1069
|
for (; (e = t.next()) !== null; )
|
|
1050
1070
|
switch (e.fieldId) {
|
|
1051
|
-
case
|
|
1071
|
+
case zr: {
|
|
1052
1072
|
if (e.isNull) throw new Error();
|
|
1053
1073
|
r.Value = e.asBinary();
|
|
1054
1074
|
break;
|
|
1055
1075
|
}
|
|
1056
|
-
case
|
|
1076
|
+
case Jr: {
|
|
1057
1077
|
if (e.isNull) throw new Error();
|
|
1058
1078
|
r.MimeType = e.asString();
|
|
1059
1079
|
break;
|
|
1060
1080
|
}
|
|
1061
1081
|
}
|
|
1062
1082
|
}
|
|
1063
|
-
const
|
|
1064
|
-
function
|
|
1083
|
+
const ts = 3612929027;
|
|
1084
|
+
function mt(t) {
|
|
1065
1085
|
const r = {};
|
|
1066
|
-
return
|
|
1086
|
+
return Pt(r), r;
|
|
1067
1087
|
}
|
|
1068
|
-
function
|
|
1088
|
+
function Pt(t) {
|
|
1069
1089
|
return t.Category = "", t;
|
|
1070
1090
|
}
|
|
1071
|
-
function
|
|
1072
|
-
const e = r ??
|
|
1073
|
-
return
|
|
1091
|
+
function es(t, r) {
|
|
1092
|
+
const e = r ?? mt();
|
|
1093
|
+
return Pt(e), rs(t, e), e;
|
|
1074
1094
|
}
|
|
1075
|
-
function
|
|
1095
|
+
function rs(t, r) {
|
|
1076
1096
|
let e;
|
|
1077
1097
|
for (; (e = t.next()) !== null; )
|
|
1078
1098
|
switch (e.fieldId) {
|
|
1079
|
-
case
|
|
1099
|
+
case ts: {
|
|
1080
1100
|
if (e.isNull) throw new Error();
|
|
1081
1101
|
r.Category = e.asString();
|
|
1082
1102
|
break;
|
|
1083
1103
|
}
|
|
1084
1104
|
}
|
|
1085
1105
|
}
|
|
1086
|
-
const
|
|
1087
|
-
function
|
|
1106
|
+
const ss = 2097188, ns = 979822885, is = 2374537704;
|
|
1107
|
+
function os(t) {
|
|
1088
1108
|
const r = {};
|
|
1089
|
-
return
|
|
1109
|
+
return gt(r), r;
|
|
1090
1110
|
}
|
|
1091
|
-
function
|
|
1111
|
+
function gt(t) {
|
|
1092
1112
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1093
1113
|
}
|
|
1094
|
-
function
|
|
1114
|
+
function as(t, r) {
|
|
1095
1115
|
const e = O.create(t);
|
|
1096
|
-
return
|
|
1116
|
+
return Es(e, r);
|
|
1097
1117
|
}
|
|
1098
|
-
function
|
|
1099
|
-
const e = r ??
|
|
1100
|
-
return
|
|
1118
|
+
function Es(t, r) {
|
|
1119
|
+
const e = r ?? os();
|
|
1120
|
+
return gt(e), _s(t, e), e;
|
|
1101
1121
|
}
|
|
1102
|
-
function
|
|
1122
|
+
function _s(t, r) {
|
|
1103
1123
|
let e;
|
|
1104
1124
|
for (; (e = t.next()) !== null; )
|
|
1105
1125
|
switch (e.fieldId) {
|
|
1106
|
-
case
|
|
1126
|
+
case ns: {
|
|
1107
1127
|
if (e.isNull) throw new Error();
|
|
1108
1128
|
r.StyleId = e.asString();
|
|
1109
1129
|
break;
|
|
1110
1130
|
}
|
|
1111
|
-
case
|
|
1131
|
+
case is: {
|
|
1112
1132
|
if (e.isNull) throw new Error();
|
|
1113
|
-
r.Style =
|
|
1133
|
+
r.Style = ls(e.asDictionary());
|
|
1114
1134
|
break;
|
|
1115
1135
|
}
|
|
1116
1136
|
}
|
|
1117
1137
|
}
|
|
1118
|
-
async function
|
|
1119
|
-
const e = await p(t,
|
|
1120
|
-
return
|
|
1138
|
+
async function Is(t, r) {
|
|
1139
|
+
const e = await p(t, ss);
|
|
1140
|
+
return as(e, r);
|
|
1121
1141
|
}
|
|
1122
|
-
function
|
|
1142
|
+
function ls(t) {
|
|
1123
1143
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1124
1144
|
let e;
|
|
1125
1145
|
for (; (e = t.next()) !== null; ) {
|
|
@@ -1128,73 +1148,73 @@ function os(t) {
|
|
|
1128
1148
|
}
|
|
1129
1149
|
return r;
|
|
1130
1150
|
}
|
|
1131
|
-
const
|
|
1132
|
-
function
|
|
1151
|
+
const cs = 2097192, fs = 2136687806;
|
|
1152
|
+
function us(t) {
|
|
1133
1153
|
const r = {};
|
|
1134
|
-
return
|
|
1154
|
+
return Ft(r), r;
|
|
1135
1155
|
}
|
|
1136
|
-
function
|
|
1156
|
+
function Ft(t) {
|
|
1137
1157
|
return t.Styles = [], t;
|
|
1138
1158
|
}
|
|
1139
|
-
function
|
|
1159
|
+
function Ts(t, r) {
|
|
1140
1160
|
const e = O.create(t);
|
|
1141
|
-
return
|
|
1161
|
+
return hs(e, r);
|
|
1142
1162
|
}
|
|
1143
|
-
function
|
|
1144
|
-
const e = r ??
|
|
1145
|
-
return
|
|
1163
|
+
function hs(t, r) {
|
|
1164
|
+
const e = r ?? us();
|
|
1165
|
+
return Ft(e), As(t, e), e;
|
|
1146
1166
|
}
|
|
1147
|
-
function
|
|
1167
|
+
function As(t, r) {
|
|
1148
1168
|
let e;
|
|
1149
1169
|
for (; (e = t.next()) !== null; )
|
|
1150
1170
|
switch (e.fieldId) {
|
|
1151
|
-
case
|
|
1171
|
+
case fs: {
|
|
1152
1172
|
if (e.isNull) throw new Error();
|
|
1153
|
-
r.Styles =
|
|
1173
|
+
r.Styles = Ss(e.asArray());
|
|
1154
1174
|
break;
|
|
1155
1175
|
}
|
|
1156
1176
|
}
|
|
1157
1177
|
}
|
|
1158
|
-
async function
|
|
1159
|
-
const e = await p(t,
|
|
1160
|
-
return
|
|
1178
|
+
async function Ns(t, r) {
|
|
1179
|
+
const e = await p(t, cs);
|
|
1180
|
+
return Ts(e, r);
|
|
1161
1181
|
}
|
|
1162
|
-
function
|
|
1182
|
+
function Ss(t) {
|
|
1163
1183
|
const r = [];
|
|
1164
1184
|
let e;
|
|
1165
1185
|
for (; (e = t.next()) !== null; )
|
|
1166
|
-
r.push(
|
|
1186
|
+
r.push(ds(e.asObject()));
|
|
1167
1187
|
return r;
|
|
1168
1188
|
}
|
|
1169
|
-
const
|
|
1170
|
-
function
|
|
1189
|
+
const Cs = 979822885, Ds = 2374537704;
|
|
1190
|
+
function Rs(t) {
|
|
1171
1191
|
const r = {};
|
|
1172
|
-
return
|
|
1192
|
+
return bt(r), r;
|
|
1173
1193
|
}
|
|
1174
|
-
function
|
|
1194
|
+
function bt(t) {
|
|
1175
1195
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1176
1196
|
}
|
|
1177
|
-
function
|
|
1178
|
-
const e = r ??
|
|
1179
|
-
return
|
|
1197
|
+
function ds(t, r) {
|
|
1198
|
+
const e = r ?? Rs();
|
|
1199
|
+
return bt(e), ws(t, e), e;
|
|
1180
1200
|
}
|
|
1181
|
-
function
|
|
1201
|
+
function ws(t, r) {
|
|
1182
1202
|
let e;
|
|
1183
1203
|
for (; (e = t.next()) !== null; )
|
|
1184
1204
|
switch (e.fieldId) {
|
|
1185
|
-
case
|
|
1205
|
+
case Cs: {
|
|
1186
1206
|
if (e.isNull) throw new Error();
|
|
1187
1207
|
r.StyleId = e.asString();
|
|
1188
1208
|
break;
|
|
1189
1209
|
}
|
|
1190
|
-
case
|
|
1210
|
+
case Ds: {
|
|
1191
1211
|
if (e.isNull) throw new Error();
|
|
1192
|
-
r.Style =
|
|
1212
|
+
r.Style = Ls(e.asDictionary());
|
|
1193
1213
|
break;
|
|
1194
1214
|
}
|
|
1195
1215
|
}
|
|
1196
1216
|
}
|
|
1197
|
-
function
|
|
1217
|
+
function Ls(t) {
|
|
1198
1218
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1199
1219
|
let e;
|
|
1200
1220
|
for (; (e = t.next()) !== null; ) {
|
|
@@ -1203,121 +1223,121 @@ function Cs(t) {
|
|
|
1203
1223
|
}
|
|
1204
1224
|
return r;
|
|
1205
1225
|
}
|
|
1206
|
-
const
|
|
1207
|
-
function
|
|
1226
|
+
const ys = 2097193, Us = 1415642792;
|
|
1227
|
+
function Os(t) {
|
|
1208
1228
|
const r = {};
|
|
1209
|
-
return
|
|
1229
|
+
return Mt(r), r;
|
|
1210
1230
|
}
|
|
1211
|
-
function
|
|
1231
|
+
function Mt(t) {
|
|
1212
1232
|
return t.StyleIds = [], t;
|
|
1213
1233
|
}
|
|
1214
|
-
function
|
|
1234
|
+
function ms(t, r) {
|
|
1215
1235
|
const e = O.create(t);
|
|
1216
|
-
return
|
|
1236
|
+
return Ps(e, r);
|
|
1217
1237
|
}
|
|
1218
|
-
function
|
|
1219
|
-
const e = r ??
|
|
1220
|
-
return
|
|
1238
|
+
function Ps(t, r) {
|
|
1239
|
+
const e = r ?? Os();
|
|
1240
|
+
return Mt(e), gs(t, e), e;
|
|
1221
1241
|
}
|
|
1222
|
-
function
|
|
1242
|
+
function gs(t, r) {
|
|
1223
1243
|
let e;
|
|
1224
1244
|
for (; (e = t.next()) !== null; )
|
|
1225
1245
|
switch (e.fieldId) {
|
|
1226
|
-
case
|
|
1246
|
+
case Us: {
|
|
1227
1247
|
if (e.isNull) throw new Error();
|
|
1228
|
-
r.StyleIds =
|
|
1248
|
+
r.StyleIds = bs(e.asArray());
|
|
1229
1249
|
break;
|
|
1230
1250
|
}
|
|
1231
1251
|
}
|
|
1232
1252
|
}
|
|
1233
|
-
async function
|
|
1234
|
-
const e = await p(t,
|
|
1235
|
-
return
|
|
1253
|
+
async function Fs(t, r) {
|
|
1254
|
+
const e = await p(t, ys);
|
|
1255
|
+
return ms(e, r);
|
|
1236
1256
|
}
|
|
1237
|
-
function
|
|
1257
|
+
function bs(t) {
|
|
1238
1258
|
const r = [];
|
|
1239
1259
|
let e;
|
|
1240
1260
|
for (; (e = t.next()) !== null; )
|
|
1241
1261
|
r.push(e.asString());
|
|
1242
1262
|
return r;
|
|
1243
1263
|
}
|
|
1244
|
-
const
|
|
1245
|
-
function
|
|
1264
|
+
const Ms = 2097190, vs = 425183262, ks = 653781469;
|
|
1265
|
+
function Gs(t) {
|
|
1246
1266
|
const r = {};
|
|
1247
|
-
return
|
|
1267
|
+
return vt(r), r;
|
|
1248
1268
|
}
|
|
1249
|
-
function
|
|
1269
|
+
function vt(t) {
|
|
1250
1270
|
return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
|
|
1251
1271
|
}
|
|
1252
|
-
function
|
|
1272
|
+
function Bs(t, r) {
|
|
1253
1273
|
const e = O.create(t);
|
|
1254
|
-
return
|
|
1274
|
+
return Vs(e, r);
|
|
1255
1275
|
}
|
|
1256
|
-
function
|
|
1257
|
-
const e = r ??
|
|
1258
|
-
return
|
|
1276
|
+
function Vs(t, r) {
|
|
1277
|
+
const e = r ?? Gs();
|
|
1278
|
+
return vt(e), xs(t, e), e;
|
|
1259
1279
|
}
|
|
1260
|
-
function
|
|
1280
|
+
function xs(t, r) {
|
|
1261
1281
|
let e;
|
|
1262
1282
|
for (; (e = t.next()) !== null; )
|
|
1263
1283
|
switch (e.fieldId) {
|
|
1264
|
-
case
|
|
1284
|
+
case vs: {
|
|
1265
1285
|
if (e.isNull) throw new Error();
|
|
1266
1286
|
r.Json = e.asString();
|
|
1267
1287
|
break;
|
|
1268
1288
|
}
|
|
1269
|
-
case
|
|
1289
|
+
case ks: {
|
|
1270
1290
|
if (e.isNull) throw new Error();
|
|
1271
|
-
r.Payloads =
|
|
1291
|
+
r.Payloads = Ys(e.asDictionary());
|
|
1272
1292
|
break;
|
|
1273
1293
|
}
|
|
1274
1294
|
}
|
|
1275
1295
|
}
|
|
1276
|
-
async function
|
|
1277
|
-
const e = await p(t,
|
|
1278
|
-
return
|
|
1296
|
+
async function Hs(t, r) {
|
|
1297
|
+
const e = await p(t, Ms);
|
|
1298
|
+
return Bs(e, r);
|
|
1279
1299
|
}
|
|
1280
|
-
function
|
|
1300
|
+
function Ys(t) {
|
|
1281
1301
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1282
1302
|
let e;
|
|
1283
1303
|
for (; (e = t.next()) !== null; ) {
|
|
1284
1304
|
const s = e.key.asString();
|
|
1285
|
-
r[s] =
|
|
1305
|
+
r[s] = qr(e.value.asObject());
|
|
1286
1306
|
}
|
|
1287
1307
|
return r;
|
|
1288
1308
|
}
|
|
1289
|
-
const
|
|
1290
|
-
function
|
|
1309
|
+
const ps = 161083277, Ks = 164808083, $s = 1368629611, Xs = 2514959030, js = 2745379226, Ws = 2950031986, zs = 3282782683, Js = 3284746250, Qs = 4065070594;
|
|
1310
|
+
function kt(t) {
|
|
1291
1311
|
const r = {};
|
|
1292
|
-
return
|
|
1312
|
+
return Gt(r), r;
|
|
1293
1313
|
}
|
|
1294
|
-
function
|
|
1295
|
-
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec =
|
|
1314
|
+
function Gt(t) {
|
|
1315
|
+
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = ht.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t.CorrelationId = void 0, t;
|
|
1296
1316
|
}
|
|
1297
|
-
function
|
|
1298
|
-
const e = r ??
|
|
1299
|
-
return
|
|
1317
|
+
function qs(t, r) {
|
|
1318
|
+
const e = r ?? kt();
|
|
1319
|
+
return Gt(e), Zs(t, e), e;
|
|
1300
1320
|
}
|
|
1301
|
-
function
|
|
1321
|
+
function Zs(t, r) {
|
|
1302
1322
|
let e;
|
|
1303
1323
|
for (; (e = t.next()) !== null; )
|
|
1304
1324
|
switch (e.fieldId) {
|
|
1305
|
-
case
|
|
1325
|
+
case ps: {
|
|
1306
1326
|
if (e.isNull) throw new Error();
|
|
1307
1327
|
r.StreamId = e.asString();
|
|
1308
1328
|
break;
|
|
1309
1329
|
}
|
|
1310
|
-
case
|
|
1330
|
+
case Ks: {
|
|
1311
1331
|
if (e.isNull) throw new Error();
|
|
1312
1332
|
r.Framerate = e.asFloat64();
|
|
1313
1333
|
break;
|
|
1314
1334
|
}
|
|
1315
|
-
case
|
|
1335
|
+
case $s: {
|
|
1316
1336
|
if (e.isNull) throw new Error();
|
|
1317
1337
|
r.Description = e.asString();
|
|
1318
1338
|
break;
|
|
1319
1339
|
}
|
|
1320
|
-
case
|
|
1340
|
+
case Xs: {
|
|
1321
1341
|
if (e.isNull) {
|
|
1322
1342
|
r.CorrelationId = void 0;
|
|
1323
1343
|
break;
|
|
@@ -1325,381 +1345,381 @@ function Ws(t, r) {
|
|
|
1325
1345
|
r.CorrelationId = e.asString();
|
|
1326
1346
|
break;
|
|
1327
1347
|
}
|
|
1328
|
-
case
|
|
1348
|
+
case js: {
|
|
1329
1349
|
if (e.isNull) throw new Error();
|
|
1330
1350
|
r.CodecDetails = e.asString();
|
|
1331
1351
|
break;
|
|
1332
1352
|
}
|
|
1333
|
-
case
|
|
1353
|
+
case Ws: {
|
|
1334
1354
|
if (e.isNull) throw new Error();
|
|
1335
1355
|
r.Height = e.asInt32();
|
|
1336
1356
|
break;
|
|
1337
1357
|
}
|
|
1338
|
-
case
|
|
1358
|
+
case zs: {
|
|
1339
1359
|
if (e.isNull) throw new Error();
|
|
1340
1360
|
r.SourceType = e.asString();
|
|
1341
1361
|
break;
|
|
1342
1362
|
}
|
|
1343
|
-
case
|
|
1363
|
+
case Js: {
|
|
1344
1364
|
if (e.isNull) throw new Error();
|
|
1345
1365
|
r.Codec = e.asInt32();
|
|
1346
1366
|
break;
|
|
1347
1367
|
}
|
|
1348
|
-
case
|
|
1368
|
+
case Qs: {
|
|
1349
1369
|
if (e.isNull) throw new Error();
|
|
1350
1370
|
r.Width = e.asInt32();
|
|
1351
1371
|
break;
|
|
1352
1372
|
}
|
|
1353
1373
|
}
|
|
1354
1374
|
}
|
|
1355
|
-
const
|
|
1356
|
-
function
|
|
1375
|
+
const tn = 65539, en = 693643444, rn = 976837618, sn = 1144553441, nn = 1497620243, on = 1559330978, an = 1976546434, En = 2271236852, _n = 2277643855, In = 2469008121, ln = 3042922213, cn = 3064612128, fn = 3219210453, un = 3504054055, Tn = 3678477544, hn = 3696445035, An = 3707543140, Nn = 3712281496, Sn = 3895362455, Cn = 3897397815, Dn = 3914217035, Rn = 4225107827;
|
|
1376
|
+
function dn(t) {
|
|
1357
1377
|
const r = {};
|
|
1358
|
-
return
|
|
1378
|
+
return Bt(r), r;
|
|
1359
1379
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.ServerSessionId = "", t.SessionHash = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType =
|
|
1380
|
+
function Bt(t) {
|
|
1381
|
+
return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.ServerSessionId = "", t.SessionHash = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = Nt.Local, t.AppSourceType = St.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
|
|
1362
1382
|
}
|
|
1363
|
-
function
|
|
1383
|
+
function wn(t, r) {
|
|
1364
1384
|
const e = O.create(t);
|
|
1365
|
-
return
|
|
1385
|
+
return Ln(e, r);
|
|
1366
1386
|
}
|
|
1367
|
-
function
|
|
1368
|
-
const e = r ??
|
|
1369
|
-
return
|
|
1387
|
+
function Ln(t, r) {
|
|
1388
|
+
const e = r ?? dn();
|
|
1389
|
+
return Bt(e), yn(t, e), e;
|
|
1370
1390
|
}
|
|
1371
|
-
function
|
|
1391
|
+
function yn(t, r) {
|
|
1372
1392
|
let e;
|
|
1373
1393
|
for (; (e = t.next()) !== null; )
|
|
1374
1394
|
switch (e.fieldId) {
|
|
1375
|
-
case
|
|
1395
|
+
case en: {
|
|
1376
1396
|
if (e.isNull) throw new Error();
|
|
1377
1397
|
r.FirstUserId = e.asString();
|
|
1378
1398
|
break;
|
|
1379
1399
|
}
|
|
1380
|
-
case
|
|
1400
|
+
case rn: {
|
|
1381
1401
|
if (e.isNull) throw new Error();
|
|
1382
1402
|
r.SessionHash = e.asString();
|
|
1383
1403
|
break;
|
|
1384
1404
|
}
|
|
1385
|
-
case
|
|
1405
|
+
case sn: {
|
|
1386
1406
|
if (e.isNull) throw new Error();
|
|
1387
|
-
r.Clients =
|
|
1407
|
+
r.Clients = On(e.asDictionary());
|
|
1388
1408
|
break;
|
|
1389
1409
|
}
|
|
1390
|
-
case
|
|
1410
|
+
case nn: {
|
|
1391
1411
|
if (e.isNull) throw new Error();
|
|
1392
|
-
r.TrackingStreams =
|
|
1412
|
+
r.TrackingStreams = mn(e.asDictionary());
|
|
1393
1413
|
break;
|
|
1394
1414
|
}
|
|
1395
|
-
case
|
|
1415
|
+
case on: {
|
|
1396
1416
|
if (e.isNull) throw new Error();
|
|
1397
1417
|
r.ChannelId = e.asString();
|
|
1398
1418
|
break;
|
|
1399
1419
|
}
|
|
1400
|
-
case
|
|
1420
|
+
case an: {
|
|
1401
1421
|
if (e.isNull) throw new Error();
|
|
1402
1422
|
r.AppSourceType = e.asInt32();
|
|
1403
1423
|
break;
|
|
1404
1424
|
}
|
|
1405
|
-
case
|
|
1425
|
+
case En: {
|
|
1406
1426
|
if (e.isNull) throw new Error();
|
|
1407
1427
|
r.SessionChannelUrl = e.asString();
|
|
1408
1428
|
break;
|
|
1409
1429
|
}
|
|
1410
|
-
case
|
|
1430
|
+
case _n: {
|
|
1411
1431
|
if (e.isNull) throw new Error();
|
|
1412
1432
|
r.ChannelUrl = e.asString();
|
|
1413
1433
|
break;
|
|
1414
1434
|
}
|
|
1415
|
-
case
|
|
1435
|
+
case In: {
|
|
1416
1436
|
if (e.isNull) throw new Error();
|
|
1417
1437
|
r.ChannelName = e.asString();
|
|
1418
1438
|
break;
|
|
1419
1439
|
}
|
|
1420
|
-
case
|
|
1440
|
+
case ln: {
|
|
1421
1441
|
if (e.isNull) throw new Error();
|
|
1422
1442
|
r.PublicAccess = e.asBool();
|
|
1423
1443
|
break;
|
|
1424
1444
|
}
|
|
1425
|
-
case
|
|
1445
|
+
case cn: {
|
|
1426
1446
|
if (e.isNull) throw new Error();
|
|
1427
1447
|
r.ServerRunType = e.asInt32();
|
|
1428
1448
|
break;
|
|
1429
1449
|
}
|
|
1430
|
-
case
|
|
1450
|
+
case fn: {
|
|
1431
1451
|
if (e.isNull) throw new Error();
|
|
1432
1452
|
r.OrganisationName = e.asString();
|
|
1433
1453
|
break;
|
|
1434
1454
|
}
|
|
1435
|
-
case
|
|
1455
|
+
case un: {
|
|
1436
1456
|
if (e.isNull) throw new Error();
|
|
1437
1457
|
r.DebugMode = e.asBool();
|
|
1438
1458
|
break;
|
|
1439
1459
|
}
|
|
1440
|
-
case
|
|
1460
|
+
case Tn: {
|
|
1441
1461
|
if (e.isNull) throw new Error();
|
|
1442
|
-
r.Functions =
|
|
1462
|
+
r.Functions = Pn(e.asDictionary());
|
|
1443
1463
|
break;
|
|
1444
1464
|
}
|
|
1445
|
-
case
|
|
1465
|
+
case hn: {
|
|
1446
1466
|
if (e.isNull) throw new Error();
|
|
1447
|
-
r.UIStreams =
|
|
1467
|
+
r.UIStreams = gn(e.asDictionary());
|
|
1448
1468
|
break;
|
|
1449
1469
|
}
|
|
1450
|
-
case
|
|
1470
|
+
case An: {
|
|
1451
1471
|
if (e.isNull) throw new Error();
|
|
1452
1472
|
r.SpaceId = e.asString();
|
|
1453
1473
|
break;
|
|
1454
1474
|
}
|
|
1455
|
-
case
|
|
1475
|
+
case Nn: {
|
|
1456
1476
|
if (e.isNull) throw new Error();
|
|
1457
1477
|
r.PrimaryUserId = e.asString();
|
|
1458
1478
|
break;
|
|
1459
1479
|
}
|
|
1460
|
-
case
|
|
1480
|
+
case Sn: {
|
|
1461
1481
|
if (e.isNull) throw new Error();
|
|
1462
|
-
r.AudioStreams =
|
|
1482
|
+
r.AudioStreams = Fn(e.asDictionary());
|
|
1463
1483
|
break;
|
|
1464
1484
|
}
|
|
1465
|
-
case
|
|
1485
|
+
case Cn: {
|
|
1466
1486
|
if (e.isNull) throw new Error();
|
|
1467
|
-
r.VideoStreams =
|
|
1487
|
+
r.VideoStreams = bn(e.asDictionary());
|
|
1468
1488
|
break;
|
|
1469
1489
|
}
|
|
1470
|
-
case
|
|
1490
|
+
case Dn: {
|
|
1471
1491
|
if (e.isNull) throw new Error();
|
|
1472
1492
|
r.ServerSessionId = e.asString();
|
|
1473
1493
|
break;
|
|
1474
1494
|
}
|
|
1475
|
-
case
|
|
1495
|
+
case Rn: {
|
|
1476
1496
|
if (e.isNull) throw new Error();
|
|
1477
1497
|
r.SpaceName = e.asString();
|
|
1478
1498
|
break;
|
|
1479
1499
|
}
|
|
1480
1500
|
}
|
|
1481
1501
|
}
|
|
1482
|
-
async function
|
|
1483
|
-
const e = await p(t,
|
|
1484
|
-
return
|
|
1502
|
+
async function Un(t, r) {
|
|
1503
|
+
const e = await p(t, tn);
|
|
1504
|
+
return wn(e, r);
|
|
1485
1505
|
}
|
|
1486
|
-
function
|
|
1506
|
+
function On(t) {
|
|
1487
1507
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1488
1508
|
let e;
|
|
1489
1509
|
for (; (e = t.next()) !== null; ) {
|
|
1490
1510
|
const s = e.key.asInt32();
|
|
1491
|
-
r[s] =
|
|
1511
|
+
r[s] = lr(e.value.asObject());
|
|
1492
1512
|
}
|
|
1493
1513
|
return r;
|
|
1494
1514
|
}
|
|
1495
|
-
function
|
|
1515
|
+
function mn(t) {
|
|
1496
1516
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1497
1517
|
let e;
|
|
1498
1518
|
for (; (e = t.next()) !== null; ) {
|
|
1499
1519
|
const s = e.key.asString();
|
|
1500
|
-
r[s] =
|
|
1520
|
+
r[s] = ai(e.value.asObject());
|
|
1501
1521
|
}
|
|
1502
1522
|
return r;
|
|
1503
1523
|
}
|
|
1504
|
-
function
|
|
1524
|
+
function Pn(t) {
|
|
1505
1525
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1506
1526
|
let e;
|
|
1507
1527
|
for (; (e = t.next()) !== null; ) {
|
|
1508
1528
|
const s = e.key.asInt32();
|
|
1509
|
-
r[s] =
|
|
1529
|
+
r[s] = Mn(e.value.asArray());
|
|
1510
1530
|
}
|
|
1511
1531
|
return r;
|
|
1512
1532
|
}
|
|
1513
|
-
function
|
|
1533
|
+
function gn(t) {
|
|
1514
1534
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1515
1535
|
let e;
|
|
1516
1536
|
for (; (e = t.next()) !== null; ) {
|
|
1517
1537
|
const s = e.key.asString();
|
|
1518
|
-
r[s] =
|
|
1538
|
+
r[s] = xn(e.value.asObject());
|
|
1519
1539
|
}
|
|
1520
1540
|
return r;
|
|
1521
1541
|
}
|
|
1522
|
-
function
|
|
1542
|
+
function Fn(t) {
|
|
1523
1543
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1524
1544
|
let e;
|
|
1525
1545
|
for (; (e = t.next()) !== null; ) {
|
|
1526
1546
|
const s = e.key.asString();
|
|
1527
|
-
r[s] =
|
|
1547
|
+
r[s] = jn(e.value.asObject());
|
|
1528
1548
|
}
|
|
1529
1549
|
return r;
|
|
1530
1550
|
}
|
|
1531
|
-
function
|
|
1551
|
+
function bn(t) {
|
|
1532
1552
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1533
1553
|
let e;
|
|
1534
1554
|
for (; (e = t.next()) !== null; ) {
|
|
1535
1555
|
const s = e.key.asString();
|
|
1536
|
-
r[s] =
|
|
1556
|
+
r[s] = ti(e.value.asObject());
|
|
1537
1557
|
}
|
|
1538
1558
|
return r;
|
|
1539
1559
|
}
|
|
1540
|
-
function
|
|
1560
|
+
function Mn(t) {
|
|
1541
1561
|
const r = [];
|
|
1542
1562
|
let e;
|
|
1543
1563
|
for (; (e = t.next()) !== null; )
|
|
1544
|
-
r.push(
|
|
1564
|
+
r.push(Ur(e.asObject()));
|
|
1545
1565
|
return r;
|
|
1546
1566
|
}
|
|
1547
|
-
const
|
|
1548
|
-
function
|
|
1567
|
+
const vn = 161083277, kn = 325678206, Gn = 3469892363, Bn = 3645544153;
|
|
1568
|
+
function Vn(t) {
|
|
1549
1569
|
const r = {};
|
|
1550
|
-
return
|
|
1570
|
+
return Vt(r), r;
|
|
1551
1571
|
}
|
|
1552
|
-
function
|
|
1553
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1572
|
+
function Vt(t) {
|
|
1573
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = mt(), t;
|
|
1554
1574
|
}
|
|
1555
|
-
function
|
|
1556
|
-
const e = r ??
|
|
1557
|
-
return
|
|
1575
|
+
function xn(t, r) {
|
|
1576
|
+
const e = r ?? Vn();
|
|
1577
|
+
return Vt(e), Hn(t, e), e;
|
|
1558
1578
|
}
|
|
1559
|
-
function
|
|
1579
|
+
function Hn(t, r) {
|
|
1560
1580
|
let e;
|
|
1561
1581
|
for (; (e = t.next()) !== null; )
|
|
1562
1582
|
switch (e.fieldId) {
|
|
1563
|
-
case
|
|
1583
|
+
case vn: {
|
|
1564
1584
|
if (e.isNull) throw new Error();
|
|
1565
1585
|
r.StreamId = e.asString();
|
|
1566
1586
|
break;
|
|
1567
1587
|
}
|
|
1568
|
-
case
|
|
1588
|
+
case kn: {
|
|
1569
1589
|
if (e.isNull) throw new Error();
|
|
1570
1590
|
r.ClientSessionId = e.asInt32();
|
|
1571
1591
|
break;
|
|
1572
1592
|
}
|
|
1573
|
-
case
|
|
1593
|
+
case Gn: {
|
|
1574
1594
|
if (e.isNull) throw new Error();
|
|
1575
1595
|
r.TrackId = e.asInt32();
|
|
1576
1596
|
break;
|
|
1577
1597
|
}
|
|
1578
|
-
case
|
|
1598
|
+
case Bn: {
|
|
1579
1599
|
if (e.isNull) throw new Error();
|
|
1580
|
-
r.Info =
|
|
1600
|
+
r.Info = es(e.asObject());
|
|
1581
1601
|
break;
|
|
1582
1602
|
}
|
|
1583
1603
|
}
|
|
1584
1604
|
}
|
|
1585
|
-
const
|
|
1586
|
-
function
|
|
1605
|
+
const Yn = 161083277, pn = 325678206, Kn = 3469892363, $n = 3645544153;
|
|
1606
|
+
function Xn(t) {
|
|
1587
1607
|
const r = {};
|
|
1588
|
-
return
|
|
1608
|
+
return xt(r), r;
|
|
1589
1609
|
}
|
|
1590
|
-
function
|
|
1591
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1610
|
+
function xt(t) {
|
|
1611
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ct(), t;
|
|
1592
1612
|
}
|
|
1593
|
-
function
|
|
1594
|
-
const e = r ??
|
|
1595
|
-
return
|
|
1613
|
+
function jn(t, r) {
|
|
1614
|
+
const e = r ?? Xn();
|
|
1615
|
+
return xt(e), Wn(t, e), e;
|
|
1596
1616
|
}
|
|
1597
|
-
function
|
|
1617
|
+
function Wn(t, r) {
|
|
1598
1618
|
let e;
|
|
1599
1619
|
for (; (e = t.next()) !== null; )
|
|
1600
1620
|
switch (e.fieldId) {
|
|
1601
|
-
case
|
|
1621
|
+
case Yn: {
|
|
1602
1622
|
if (e.isNull) throw new Error();
|
|
1603
1623
|
r.StreamId = e.asString();
|
|
1604
1624
|
break;
|
|
1605
1625
|
}
|
|
1606
|
-
case
|
|
1626
|
+
case pn: {
|
|
1607
1627
|
if (e.isNull) throw new Error();
|
|
1608
1628
|
r.ClientSessionId = e.asInt32();
|
|
1609
1629
|
break;
|
|
1610
1630
|
}
|
|
1611
|
-
case
|
|
1631
|
+
case Kn: {
|
|
1612
1632
|
if (e.isNull) throw new Error();
|
|
1613
1633
|
r.TrackId = e.asInt32();
|
|
1614
1634
|
break;
|
|
1615
1635
|
}
|
|
1616
|
-
case
|
|
1636
|
+
case $n: {
|
|
1617
1637
|
if (e.isNull) throw new Error();
|
|
1618
|
-
r.Info =
|
|
1638
|
+
r.Info = Se(e.asObject());
|
|
1619
1639
|
break;
|
|
1620
1640
|
}
|
|
1621
1641
|
}
|
|
1622
1642
|
}
|
|
1623
|
-
const
|
|
1624
|
-
function
|
|
1643
|
+
const zn = 161083277, Jn = 325678206, Qn = 3469892363, qn = 3645544153;
|
|
1644
|
+
function Zn(t) {
|
|
1625
1645
|
const r = {};
|
|
1626
|
-
return
|
|
1646
|
+
return Ht(r), r;
|
|
1627
1647
|
}
|
|
1628
|
-
function
|
|
1629
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1648
|
+
function Ht(t) {
|
|
1649
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = kt(), t;
|
|
1630
1650
|
}
|
|
1631
|
-
function
|
|
1632
|
-
const e = r ??
|
|
1633
|
-
return
|
|
1651
|
+
function ti(t, r) {
|
|
1652
|
+
const e = r ?? Zn();
|
|
1653
|
+
return Ht(e), ei(t, e), e;
|
|
1634
1654
|
}
|
|
1635
|
-
function
|
|
1655
|
+
function ei(t, r) {
|
|
1636
1656
|
let e;
|
|
1637
1657
|
for (; (e = t.next()) !== null; )
|
|
1638
1658
|
switch (e.fieldId) {
|
|
1639
|
-
case
|
|
1659
|
+
case zn: {
|
|
1640
1660
|
if (e.isNull) throw new Error();
|
|
1641
1661
|
r.StreamId = e.asString();
|
|
1642
1662
|
break;
|
|
1643
1663
|
}
|
|
1644
|
-
case
|
|
1664
|
+
case Jn: {
|
|
1645
1665
|
if (e.isNull) throw new Error();
|
|
1646
1666
|
r.ClientSessionId = e.asInt32();
|
|
1647
1667
|
break;
|
|
1648
1668
|
}
|
|
1649
|
-
case
|
|
1669
|
+
case Qn: {
|
|
1650
1670
|
if (e.isNull) throw new Error();
|
|
1651
1671
|
r.TrackId = e.asInt32();
|
|
1652
1672
|
break;
|
|
1653
1673
|
}
|
|
1654
|
-
case
|
|
1674
|
+
case qn: {
|
|
1655
1675
|
if (e.isNull) throw new Error();
|
|
1656
|
-
r.Info =
|
|
1676
|
+
r.Info = qs(e.asObject());
|
|
1657
1677
|
break;
|
|
1658
1678
|
}
|
|
1659
1679
|
}
|
|
1660
1680
|
}
|
|
1661
|
-
const
|
|
1662
|
-
function
|
|
1681
|
+
const ri = 161083277, si = 325678206, ni = 3469892363, ii = 3645544153;
|
|
1682
|
+
function oi(t) {
|
|
1663
1683
|
const r = {};
|
|
1664
|
-
return
|
|
1684
|
+
return Yt(r), r;
|
|
1665
1685
|
}
|
|
1666
|
-
function
|
|
1686
|
+
function Yt(t) {
|
|
1667
1687
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = yt(), t;
|
|
1668
1688
|
}
|
|
1669
|
-
function
|
|
1670
|
-
const e = r ??
|
|
1671
|
-
return
|
|
1689
|
+
function ai(t, r) {
|
|
1690
|
+
const e = r ?? oi();
|
|
1691
|
+
return Yt(e), Ei(t, e), e;
|
|
1672
1692
|
}
|
|
1673
|
-
function
|
|
1693
|
+
function Ei(t, r) {
|
|
1674
1694
|
let e;
|
|
1675
1695
|
for (; (e = t.next()) !== null; )
|
|
1676
1696
|
switch (e.fieldId) {
|
|
1677
|
-
case
|
|
1697
|
+
case ri: {
|
|
1678
1698
|
if (e.isNull) throw new Error();
|
|
1679
1699
|
r.StreamId = e.asString();
|
|
1680
1700
|
break;
|
|
1681
1701
|
}
|
|
1682
|
-
case
|
|
1702
|
+
case si: {
|
|
1683
1703
|
if (e.isNull) throw new Error();
|
|
1684
1704
|
r.ClientSessionId = e.asInt32();
|
|
1685
1705
|
break;
|
|
1686
1706
|
}
|
|
1687
|
-
case
|
|
1707
|
+
case ni: {
|
|
1688
1708
|
if (e.isNull) throw new Error();
|
|
1689
1709
|
r.TrackId = e.asInt32();
|
|
1690
1710
|
break;
|
|
1691
1711
|
}
|
|
1692
|
-
case
|
|
1712
|
+
case ii: {
|
|
1693
1713
|
if (e.isNull) throw new Error();
|
|
1694
|
-
r.Info =
|
|
1714
|
+
r.Info = Xr(e.asObject());
|
|
1695
1715
|
break;
|
|
1696
1716
|
}
|
|
1697
1717
|
}
|
|
1698
1718
|
}
|
|
1699
|
-
function
|
|
1719
|
+
function D(t) {
|
|
1700
1720
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
1701
1721
|
}
|
|
1702
|
-
function
|
|
1722
|
+
function pt(t) {
|
|
1703
1723
|
const r = {}, e = Object.keys(t);
|
|
1704
1724
|
for (let s = 0; s < e.length; s++) {
|
|
1705
1725
|
const n = e[s];
|
|
@@ -1707,7 +1727,7 @@ function Yt(t) {
|
|
|
1707
1727
|
}
|
|
1708
1728
|
return r;
|
|
1709
1729
|
}
|
|
1710
|
-
function
|
|
1730
|
+
function Kt(t, r, e, s) {
|
|
1711
1731
|
if (!(t === void 0 && s)) {
|
|
1712
1732
|
if (Array.isArray(t)) {
|
|
1713
1733
|
const n = [];
|
|
@@ -1725,7 +1745,7 @@ function pt(t, r, e, s) {
|
|
|
1725
1745
|
return [];
|
|
1726
1746
|
}
|
|
1727
1747
|
}
|
|
1728
|
-
function
|
|
1748
|
+
function nt(t, r) {
|
|
1729
1749
|
if (!t || typeof t != "object")
|
|
1730
1750
|
throw new Error(`Invalid UI node at ${r}`);
|
|
1731
1751
|
const e = t.Id, s = t.Type, n = t.Props, i = t.Children, o = t.StyleIds;
|
|
@@ -1735,15 +1755,15 @@ function st(t, r) {
|
|
|
1735
1755
|
throw new Error(`Invalid or missing node type for ${e}`);
|
|
1736
1756
|
let a = {};
|
|
1737
1757
|
if (n != null) {
|
|
1738
|
-
if (!
|
|
1758
|
+
if (!D(n))
|
|
1739
1759
|
throw new Error(`Invalid props for node ${e}`);
|
|
1740
|
-
a =
|
|
1760
|
+
a = pt(n);
|
|
1741
1761
|
}
|
|
1742
1762
|
let _ = [];
|
|
1743
1763
|
Array.isArray(i) && (_ = i.map(
|
|
1744
|
-
(l, c) =>
|
|
1764
|
+
(l, c) => nt(l ?? {}, `${r}.children[${c}]`)
|
|
1745
1765
|
));
|
|
1746
|
-
const I =
|
|
1766
|
+
const I = Kt(o, r, e, !1), E = typeof t.SourceMarker == "string" ? t.SourceMarker : void 0;
|
|
1747
1767
|
return {
|
|
1748
1768
|
id: e,
|
|
1749
1769
|
type: s,
|
|
@@ -1753,8 +1773,8 @@ function st(t, r) {
|
|
|
1753
1773
|
...E ? { sourceMarker: E } : {}
|
|
1754
1774
|
};
|
|
1755
1775
|
}
|
|
1756
|
-
function
|
|
1757
|
-
if (!
|
|
1776
|
+
function _i(t, r) {
|
|
1777
|
+
if (!D(t))
|
|
1758
1778
|
throw new Error(`Invalid text delta at ${r}`);
|
|
1759
1779
|
const e = t.NodeId, s = t.PropertyName, n = t.Start, i = t.End, o = t.InsertedText;
|
|
1760
1780
|
if (typeof e != "string" || e.length === 0)
|
|
@@ -1780,21 +1800,21 @@ function ni(t, r) {
|
|
|
1780
1800
|
insertedText: o
|
|
1781
1801
|
};
|
|
1782
1802
|
}
|
|
1783
|
-
function
|
|
1784
|
-
if (!
|
|
1803
|
+
function Ii(t, r) {
|
|
1804
|
+
if (!D(t))
|
|
1785
1805
|
throw new Error(`Invalid child insert at ${r}`);
|
|
1786
1806
|
const e = t.Index, s = t.Node;
|
|
1787
1807
|
if (typeof e != "number" || !Number.isFinite(e))
|
|
1788
1808
|
throw new Error(`Invalid child insert index at ${r}`);
|
|
1789
|
-
if (!
|
|
1809
|
+
if (!D(s))
|
|
1790
1810
|
throw new Error(`Invalid child insert node at ${r}`);
|
|
1791
1811
|
return {
|
|
1792
1812
|
index: e,
|
|
1793
|
-
node:
|
|
1813
|
+
node: nt(s, `${r}.node`)
|
|
1794
1814
|
};
|
|
1795
1815
|
}
|
|
1796
|
-
function
|
|
1797
|
-
if (!
|
|
1816
|
+
function li(t, r) {
|
|
1817
|
+
if (!D(t))
|
|
1798
1818
|
throw new Error(`Invalid child move at ${r}`);
|
|
1799
1819
|
const e = t.NodeId, s = t.FromIndex, n = t.ToIndex;
|
|
1800
1820
|
if (typeof e != "string" || e.length === 0)
|
|
@@ -1809,8 +1829,8 @@ function oi(t, r) {
|
|
|
1809
1829
|
toIndex: n
|
|
1810
1830
|
};
|
|
1811
1831
|
}
|
|
1812
|
-
function
|
|
1813
|
-
if (!
|
|
1832
|
+
function ci(t, r) {
|
|
1833
|
+
if (!D(t))
|
|
1814
1834
|
throw new Error(`Invalid child remove at ${r}`);
|
|
1815
1835
|
const e = t.NodeId, s = t.Index;
|
|
1816
1836
|
if (typeof e != "string" || e.length === 0)
|
|
@@ -1822,32 +1842,32 @@ function ai(t, r) {
|
|
|
1822
1842
|
index: s
|
|
1823
1843
|
};
|
|
1824
1844
|
}
|
|
1825
|
-
function
|
|
1826
|
-
if (!
|
|
1845
|
+
function fi(t, r) {
|
|
1846
|
+
if (!D(t))
|
|
1827
1847
|
throw new Error(`Invalid node change at ${r}`);
|
|
1828
1848
|
const e = t.nodeId;
|
|
1829
1849
|
if (typeof e != "string" || e.length === 0)
|
|
1830
1850
|
throw new Error(`Invalid node change nodeId at ${r}`);
|
|
1831
1851
|
const s = Array.isArray(t.inserts) ? t.inserts.map(
|
|
1832
|
-
(E, l) =>
|
|
1852
|
+
(E, l) => Ii(E ?? {}, `${r}.inserts[${l}]`)
|
|
1833
1853
|
) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
|
|
1834
|
-
(E, l) =>
|
|
1854
|
+
(E, l) => li(E ?? {}, `${r}.moves[${l}]`)
|
|
1835
1855
|
) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
|
|
1836
|
-
(E, l) =>
|
|
1856
|
+
(E, l) => ci(E ?? {}, `${r}.removals[${l}]`)
|
|
1837
1857
|
) : void 0;
|
|
1838
1858
|
let o;
|
|
1839
|
-
if (
|
|
1859
|
+
if (D(t.changedProps)) {
|
|
1840
1860
|
o = /* @__PURE__ */ new Map();
|
|
1841
1861
|
for (const [E, l] of Object.entries(t.changedProps)) {
|
|
1842
|
-
if (!
|
|
1862
|
+
if (!D(l))
|
|
1843
1863
|
continue;
|
|
1844
1864
|
const c = l.New;
|
|
1845
|
-
c === void 0 ? o.set(E, void 0) :
|
|
1865
|
+
c === void 0 ? o.set(E, void 0) : D(c) ? o.set(E, pt(c)) : o.set(E, c);
|
|
1846
1866
|
}
|
|
1847
1867
|
}
|
|
1848
1868
|
const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
|
|
1849
|
-
(E, l) =>
|
|
1850
|
-
) : void 0, _ = t.styleIds, I = _ !== void 0 ?
|
|
1869
|
+
(E, l) => _i(E ?? {}, `${r}.textUpdates[${l}]`)
|
|
1870
|
+
) : void 0, _ = t.styleIds, I = _ !== void 0 ? Kt(_, r, e, !0) : void 0;
|
|
1851
1871
|
return {
|
|
1852
1872
|
nodeId: e,
|
|
1853
1873
|
...s && s.length > 0 ? { inserts: s } : {},
|
|
@@ -1858,19 +1878,19 @@ function Ei(t, r) {
|
|
|
1858
1878
|
...I !== void 0 ? { styleIds: I } : {}
|
|
1859
1879
|
};
|
|
1860
1880
|
}
|
|
1861
|
-
function
|
|
1881
|
+
function ui(t) {
|
|
1862
1882
|
const r = /* @__PURE__ */ new Map();
|
|
1863
1883
|
for (const [e, s] of Object.entries(t))
|
|
1864
1884
|
r.set(e, s);
|
|
1865
1885
|
return r;
|
|
1866
1886
|
}
|
|
1867
|
-
function
|
|
1887
|
+
function Ti(t, r, e) {
|
|
1868
1888
|
if (!t || typeof t != "object")
|
|
1869
1889
|
throw new R("UI update graph is missing");
|
|
1870
|
-
const s =
|
|
1890
|
+
const s = nt(t, "graph");
|
|
1871
1891
|
if (s.type !== "root")
|
|
1872
1892
|
throw new R('UI update root element must have type "root"');
|
|
1873
|
-
const n =
|
|
1893
|
+
const n = Ai(s.props, r);
|
|
1874
1894
|
return {
|
|
1875
1895
|
type: "full",
|
|
1876
1896
|
version: e,
|
|
@@ -1878,16 +1898,16 @@ function Ii(t, r, e) {
|
|
|
1878
1898
|
metadata: n
|
|
1879
1899
|
};
|
|
1880
1900
|
}
|
|
1881
|
-
function
|
|
1901
|
+
function hi(t, r, e) {
|
|
1882
1902
|
if (!Array.isArray(t))
|
|
1883
1903
|
throw new R("UI diff changes must be an array");
|
|
1884
|
-
if (!
|
|
1904
|
+
if (!D(r))
|
|
1885
1905
|
throw new R("UI diff metadata must be an object");
|
|
1886
1906
|
const s = r.viewId;
|
|
1887
1907
|
if (typeof s != "string" || s.length === 0)
|
|
1888
1908
|
throw new R("UI diff metadata is missing viewId");
|
|
1889
1909
|
const n = t.map(
|
|
1890
|
-
(a, _) =>
|
|
1910
|
+
(a, _) => fi(a ?? {}, `changes[${_}]`)
|
|
1891
1911
|
), i = typeof r.isUpdate == "boolean" ? r.isUpdate : void 0, o = {
|
|
1892
1912
|
viewId: s,
|
|
1893
1913
|
...i !== void 0 ? { isUpdate: i } : {}
|
|
@@ -1899,12 +1919,12 @@ function li(t, r, e) {
|
|
|
1899
1919
|
metadata: o
|
|
1900
1920
|
};
|
|
1901
1921
|
}
|
|
1902
|
-
function
|
|
1922
|
+
function Ai(t, r) {
|
|
1903
1923
|
const e = t.viewId;
|
|
1904
1924
|
if (typeof e != "string" || e.length === 0)
|
|
1905
1925
|
throw new R("UI update root is missing viewId");
|
|
1906
1926
|
let s = e, n = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0;
|
|
1907
|
-
return
|
|
1927
|
+
return D(r) && (typeof r.viewId == "string" && r.viewId.length > 0 && (s = r.viewId), typeof r.isUpdate == "boolean" && (n = r.isUpdate)), {
|
|
1908
1928
|
viewId: s,
|
|
1909
1929
|
...n !== void 0 ? { isUpdate: n } : {}
|
|
1910
1930
|
};
|
|
@@ -1914,7 +1934,7 @@ class R extends Error {
|
|
|
1914
1934
|
super(r), this.causeError = e, this.name = "UiUpdateParseError", e instanceof Error && (this.stack = e.stack);
|
|
1915
1935
|
}
|
|
1916
1936
|
}
|
|
1917
|
-
function
|
|
1937
|
+
function Ni(t) {
|
|
1918
1938
|
let r;
|
|
1919
1939
|
try {
|
|
1920
1940
|
r = JSON.parse(t.Json);
|
|
@@ -1928,13 +1948,75 @@ function fi(t) {
|
|
|
1928
1948
|
throw new R(`Unknown UI update type: ${String(e)}`);
|
|
1929
1949
|
if (typeof s != "number")
|
|
1930
1950
|
throw new R("UI update version must be a number");
|
|
1931
|
-
const n = e === "full" ?
|
|
1951
|
+
const n = e === "full" ? Ti(r.graph, r.metadata, s) : hi(r.changes, r.metadata, s), i = t.Payloads ? ui(t.Payloads) : /* @__PURE__ */ new Map();
|
|
1932
1952
|
return {
|
|
1933
1953
|
snapshot: n,
|
|
1934
1954
|
payloads: i
|
|
1935
1955
|
};
|
|
1936
1956
|
}
|
|
1937
|
-
|
|
1957
|
+
let Si = 1;
|
|
1958
|
+
const Ci = /* @__PURE__ */ new Map(), Di = {
|
|
1959
|
+
0: "DEBUG",
|
|
1960
|
+
1: "INFO",
|
|
1961
|
+
2: "WARN",
|
|
1962
|
+
3: "ERROR",
|
|
1963
|
+
4: "NONE"
|
|
1964
|
+
};
|
|
1965
|
+
function Ri(t, r) {
|
|
1966
|
+
return `[${t}] ${r}`;
|
|
1967
|
+
}
|
|
1968
|
+
function $(t, r, e, s) {
|
|
1969
|
+
const n = (/* @__PURE__ */ new Date()).toISOString(), i = Di[t], o = {
|
|
1970
|
+
timestamp: n,
|
|
1971
|
+
level: t,
|
|
1972
|
+
levelName: i,
|
|
1973
|
+
component: r,
|
|
1974
|
+
message: e,
|
|
1975
|
+
args: s
|
|
1976
|
+
};
|
|
1977
|
+
for (const [a, _] of Ci) {
|
|
1978
|
+
const I = _?.minLevel ?? 2;
|
|
1979
|
+
if (t >= I)
|
|
1980
|
+
try {
|
|
1981
|
+
a(o);
|
|
1982
|
+
} catch {
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
if (Si <= t) {
|
|
1986
|
+
const a = Ri(r, e);
|
|
1987
|
+
switch (t) {
|
|
1988
|
+
case 0:
|
|
1989
|
+
console.debug(a, ...s);
|
|
1990
|
+
break;
|
|
1991
|
+
case 1:
|
|
1992
|
+
console.info(a, ...s);
|
|
1993
|
+
break;
|
|
1994
|
+
case 2:
|
|
1995
|
+
console.warn(a, ...s);
|
|
1996
|
+
break;
|
|
1997
|
+
case 3:
|
|
1998
|
+
console.error(a, ...s);
|
|
1999
|
+
break;
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
function di(t) {
|
|
2004
|
+
return {
|
|
2005
|
+
debug(r, ...e) {
|
|
2006
|
+
$(0, t, r, e);
|
|
2007
|
+
},
|
|
2008
|
+
info(r, ...e) {
|
|
2009
|
+
$(1, t, r, e);
|
|
2010
|
+
},
|
|
2011
|
+
warn(r, ...e) {
|
|
2012
|
+
$(2, t, r, e);
|
|
2013
|
+
},
|
|
2014
|
+
error(r, ...e) {
|
|
2015
|
+
$(3, t, r, e);
|
|
2016
|
+
}
|
|
2017
|
+
};
|
|
2018
|
+
}
|
|
2019
|
+
class wi {
|
|
1938
2020
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1939
2021
|
cache = /* @__PURE__ */ new Map();
|
|
1940
2022
|
/**
|
|
@@ -2015,7 +2097,8 @@ class ui {
|
|
|
2015
2097
|
return this.cache.size;
|
|
2016
2098
|
}
|
|
2017
2099
|
}
|
|
2018
|
-
|
|
2100
|
+
const Li = di("UiStreamStore");
|
|
2101
|
+
class yi {
|
|
2019
2102
|
views = /* @__PURE__ */ new Map();
|
|
2020
2103
|
listeners = /* @__PURE__ */ new Set();
|
|
2021
2104
|
payloads = /* @__PURE__ */ new Map();
|
|
@@ -2035,7 +2118,7 @@ class Ti {
|
|
|
2035
2118
|
viewsDirty = !0;
|
|
2036
2119
|
payloadsDirty = !0;
|
|
2037
2120
|
// Handler cache for stable event handlers
|
|
2038
|
-
handlerCache = new
|
|
2121
|
+
handlerCache = new wi();
|
|
2039
2122
|
apply(r) {
|
|
2040
2123
|
if (this.snapshotMode) {
|
|
2041
2124
|
if (r.snapshot.type !== "full")
|
|
@@ -2062,8 +2145,8 @@ class Ti {
|
|
|
2062
2145
|
else {
|
|
2063
2146
|
if (!I)
|
|
2064
2147
|
return !1;
|
|
2065
|
-
const E =
|
|
2066
|
-
E !== I ? (o.root = E, _ = !0, this.viewsDirty = !0,
|
|
2148
|
+
const E = Oi(I, e.changes);
|
|
2149
|
+
E !== I ? (o.root = E, _ = !0, this.viewsDirty = !0, J(I, E, this.changedNodeIds)) : o.root = E, o.version = e.version;
|
|
2067
2150
|
}
|
|
2068
2151
|
for (const [E, l] of s)
|
|
2069
2152
|
this.payloads.get(E) !== l && (this.payloads.set(E, l), _ = !0, this.payloadsDirty = !0);
|
|
@@ -2091,7 +2174,7 @@ class Ti {
|
|
|
2091
2174
|
if (r.upsertViews && r.upsertViews.length > 0)
|
|
2092
2175
|
for (const [E, l] of r.upsertViews) {
|
|
2093
2176
|
const c = o(), w = c.get(E);
|
|
2094
|
-
w !== l && (c.set(E, l), s = !0, w ?
|
|
2177
|
+
w !== l && (c.set(E, l), s = !0, w ? J(w, l, this.changedNodeIds) : (B(l, this.changedNodeIds), this.structureChanged = !0));
|
|
2095
2178
|
}
|
|
2096
2179
|
if (r.deletePayloads && r.deletePayloads.length > 0)
|
|
2097
2180
|
for (const E of r.deletePayloads)
|
|
@@ -2121,7 +2204,7 @@ class Ti {
|
|
|
2121
2204
|
(e.rootViewId !== r.rootViewId || e.views.size !== r.views.size) && (this.structureChanged = !0);
|
|
2122
2205
|
for (const [n, i] of r.views) {
|
|
2123
2206
|
const o = e.views.get(n);
|
|
2124
|
-
o ?
|
|
2207
|
+
o ? J(o, i, this.changedNodeIds) : (B(i, this.changedNodeIds), this.structureChanged = !0);
|
|
2125
2208
|
}
|
|
2126
2209
|
for (const n of this.changedNodeIds)
|
|
2127
2210
|
this.nodeVersions.set(n, (this.nodeVersions.get(n) ?? 0) + 1);
|
|
@@ -2153,7 +2236,7 @@ class Ti {
|
|
|
2153
2236
|
if (e)
|
|
2154
2237
|
return e;
|
|
2155
2238
|
for (const s of this.snapshot.views.values()) {
|
|
2156
|
-
const n =
|
|
2239
|
+
const n = jt(s, r);
|
|
2157
2240
|
if (n)
|
|
2158
2241
|
return n;
|
|
2159
2242
|
}
|
|
@@ -2205,7 +2288,7 @@ class Ti {
|
|
|
2205
2288
|
}
|
|
2206
2289
|
}
|
|
2207
2290
|
}
|
|
2208
|
-
class
|
|
2291
|
+
class Ui {
|
|
2209
2292
|
streams = /* @__PURE__ */ new Map();
|
|
2210
2293
|
listeners = /* @__PURE__ */ new Set();
|
|
2211
2294
|
apply(r, e) {
|
|
@@ -2269,26 +2352,26 @@ class hi {
|
|
|
2269
2352
|
}
|
|
2270
2353
|
getOrCreateStreamEntry(r) {
|
|
2271
2354
|
let e = this.streams.get(r);
|
|
2272
|
-
return e || (e = { store: new
|
|
2355
|
+
return e || (e = { store: new yi() }, this.streams.set(r, e)), e;
|
|
2273
2356
|
}
|
|
2274
2357
|
notify(r) {
|
|
2275
2358
|
for (const e of this.listeners)
|
|
2276
2359
|
e(r);
|
|
2277
2360
|
}
|
|
2278
2361
|
}
|
|
2279
|
-
function
|
|
2362
|
+
function Oi(t, r, e) {
|
|
2280
2363
|
if (r.length === 0)
|
|
2281
2364
|
return t;
|
|
2282
2365
|
const s = /* @__PURE__ */ new Map();
|
|
2283
2366
|
for (const n of r)
|
|
2284
2367
|
s.set(n.nodeId, n);
|
|
2285
|
-
return
|
|
2368
|
+
return $t(t, s);
|
|
2286
2369
|
}
|
|
2287
|
-
function
|
|
2370
|
+
function $t(t, r, e) {
|
|
2288
2371
|
const s = r.get(t.id);
|
|
2289
2372
|
let n = t, i = !1;
|
|
2290
2373
|
if (s?.textUpdates && s.textUpdates.length > 0) {
|
|
2291
|
-
const f =
|
|
2374
|
+
const f = Fi(t, s.textUpdates);
|
|
2292
2375
|
n = f.node, i = f.changed;
|
|
2293
2376
|
}
|
|
2294
2377
|
let o = !1, a = n.props;
|
|
@@ -2297,14 +2380,14 @@ function Kt(t, r, e) {
|
|
|
2297
2380
|
const u = a[f];
|
|
2298
2381
|
if (A === void 0)
|
|
2299
2382
|
(u !== void 0 || f in a) && (o || (a = G(a), o = !0), delete a[f]);
|
|
2300
|
-
else if (
|
|
2383
|
+
else if (q(A)) {
|
|
2301
2384
|
const h = G(A);
|
|
2302
2385
|
M(h, u) || (o || (a = G(a), o = !0), a[f] = h);
|
|
2303
2386
|
} else
|
|
2304
2387
|
M(A, u) || (o || (a = G(a), o = !0), a[f] = A);
|
|
2305
2388
|
}
|
|
2306
2389
|
let _ = !1, I = n.styleIds;
|
|
2307
|
-
s?.styleIds !== void 0 && (
|
|
2390
|
+
s?.styleIds !== void 0 && (Wt(n.styleIds, s.styleIds) || (I = s.styleIds, _ = !0));
|
|
2308
2391
|
const E = n.children ?? [];
|
|
2309
2392
|
let l = E, c = !1;
|
|
2310
2393
|
if (s?.removals && s.removals.length > 0 || s?.moves && s.moves.length > 0 || s?.inserts && s.inserts.length > 0) {
|
|
@@ -2315,22 +2398,22 @@ function Kt(t, r, e) {
|
|
|
2315
2398
|
if (u.index >= 0 && u.index < f.length && f[u.index].id === u.nodeId)
|
|
2316
2399
|
f.splice(u.index, 1);
|
|
2317
2400
|
else {
|
|
2318
|
-
const h = f.findIndex((
|
|
2401
|
+
const h = f.findIndex((C) => C.id === u.nodeId);
|
|
2319
2402
|
h >= 0 && f.splice(h, 1);
|
|
2320
2403
|
}
|
|
2321
2404
|
c = !0;
|
|
2322
2405
|
}
|
|
2323
2406
|
if (s?.moves && s.moves.length > 0) {
|
|
2324
|
-
const A = [...s.moves].sort((h,
|
|
2407
|
+
const A = [...s.moves].sort((h, C) => h.toIndex - C.toIndex), u = /* @__PURE__ */ new Map();
|
|
2325
2408
|
for (const h of A) {
|
|
2326
|
-
const
|
|
2327
|
-
|
|
2409
|
+
const C = f.findIndex((z) => z.id === h.nodeId);
|
|
2410
|
+
C >= 0 && (u.set(h.nodeId, f[C]), f.splice(C, 1));
|
|
2328
2411
|
}
|
|
2329
2412
|
for (const h of A) {
|
|
2330
|
-
const
|
|
2331
|
-
if (
|
|
2332
|
-
const
|
|
2333
|
-
f.splice(
|
|
2413
|
+
const C = u.get(h.nodeId);
|
|
2414
|
+
if (C) {
|
|
2415
|
+
const z = Math.min(h.toIndex, f.length);
|
|
2416
|
+
f.splice(z, 0, C);
|
|
2334
2417
|
}
|
|
2335
2418
|
}
|
|
2336
2419
|
c = !0;
|
|
@@ -2338,6 +2421,7 @@ function Kt(t, r, e) {
|
|
|
2338
2421
|
if (s?.inserts && s.inserts.length > 0) {
|
|
2339
2422
|
const A = [...s.inserts].sort((u, h) => u.index - h.index);
|
|
2340
2423
|
for (const u of A) {
|
|
2424
|
+
f.some((C) => C.id === u.node.id) && Li.warn(`Duplicate node id '${u.node.id}' (type '${u.node.type}') inserted next to an existing sibling — UI tree diverged from the server`);
|
|
2341
2425
|
const h = Math.min(u.index, f.length);
|
|
2342
2426
|
f.splice(h, 0, u.node);
|
|
2343
2427
|
}
|
|
@@ -2345,12 +2429,12 @@ function Kt(t, r, e) {
|
|
|
2345
2429
|
}
|
|
2346
2430
|
l = f;
|
|
2347
2431
|
}
|
|
2348
|
-
let
|
|
2432
|
+
let d;
|
|
2349
2433
|
for (let f = 0; f < l.length; f++) {
|
|
2350
|
-
const A = l[f], u =
|
|
2351
|
-
u !== A && (
|
|
2434
|
+
const A = l[f], u = $t(A, r);
|
|
2435
|
+
u !== A && (d || (d = l.slice()), d[f] = u);
|
|
2352
2436
|
}
|
|
2353
|
-
return
|
|
2437
|
+
return d && (l = d, c = !0), i || o || _ || c ? !o && !c && !_ ? n : {
|
|
2354
2438
|
id: t.id,
|
|
2355
2439
|
type: t.type,
|
|
2356
2440
|
props: o ? a : n.props,
|
|
@@ -2364,66 +2448,66 @@ function B(t, r) {
|
|
|
2364
2448
|
for (const e of t.children)
|
|
2365
2449
|
B(e, r);
|
|
2366
2450
|
}
|
|
2367
|
-
const
|
|
2368
|
-
function
|
|
2369
|
-
for (;
|
|
2370
|
-
|
|
2371
|
-
return
|
|
2451
|
+
const X = [];
|
|
2452
|
+
function mi(t) {
|
|
2453
|
+
for (; X.length <= t; )
|
|
2454
|
+
X.push(/* @__PURE__ */ new Map());
|
|
2455
|
+
return X[t].clear(), X[t];
|
|
2372
2456
|
}
|
|
2373
|
-
function
|
|
2374
|
-
|
|
2457
|
+
function J(t, r, e) {
|
|
2458
|
+
Xt(t, r, e, 0);
|
|
2375
2459
|
}
|
|
2376
|
-
function
|
|
2460
|
+
function Xt(t, r, e, s) {
|
|
2377
2461
|
if (t === r)
|
|
2378
2462
|
return;
|
|
2379
|
-
(t.type !== r.type || !
|
|
2463
|
+
(t.type !== r.type || !Pi(t.props, r.props) || !Wt(t.styleIds, r.styleIds)) && e.add(r.id);
|
|
2380
2464
|
const i = t.children ?? [], o = r.children ?? [];
|
|
2381
2465
|
if (i !== o) {
|
|
2382
|
-
const a =
|
|
2466
|
+
const a = mi(s);
|
|
2383
2467
|
for (const I of i)
|
|
2384
2468
|
a.set(I.id, I);
|
|
2385
2469
|
let _ = !1;
|
|
2386
2470
|
for (let I = 0; I < o.length; I++) {
|
|
2387
2471
|
const E = o[I], l = a.get(E.id);
|
|
2388
|
-
l ? (
|
|
2472
|
+
l ? (Xt(l, E, e, s + 1), !_ && I < i.length && i[I].id !== E.id && (_ = !0)) : (B(E, e), _ = !0);
|
|
2389
2473
|
}
|
|
2390
2474
|
(i.length !== o.length || _) && e.add(r.id);
|
|
2391
2475
|
}
|
|
2392
2476
|
}
|
|
2393
|
-
function
|
|
2477
|
+
function Pi(t, r) {
|
|
2394
2478
|
return M(t, r);
|
|
2395
2479
|
}
|
|
2396
|
-
function
|
|
2480
|
+
function jt(t, r) {
|
|
2397
2481
|
if (t.id === r)
|
|
2398
2482
|
return t;
|
|
2399
2483
|
if (t.children)
|
|
2400
2484
|
for (const e of t.children) {
|
|
2401
|
-
const s =
|
|
2485
|
+
const s = jt(e, r);
|
|
2402
2486
|
if (s)
|
|
2403
2487
|
return s;
|
|
2404
2488
|
}
|
|
2405
2489
|
}
|
|
2406
|
-
function
|
|
2490
|
+
function Wt(t, r) {
|
|
2407
2491
|
return M(t, r);
|
|
2408
2492
|
}
|
|
2409
|
-
function
|
|
2493
|
+
function gi(t, r) {
|
|
2410
2494
|
if (r.length === 0)
|
|
2411
2495
|
return t;
|
|
2412
2496
|
const e = [...r].sort((i, o) => i.start - o.start);
|
|
2413
2497
|
let s = t, n = 0;
|
|
2414
2498
|
for (const i of e) {
|
|
2415
|
-
const o =
|
|
2499
|
+
const o = ot(i.start + n, 0, s.length);
|
|
2416
2500
|
if (i.end == null) {
|
|
2417
|
-
const E = s.slice(o), l =
|
|
2501
|
+
const E = s.slice(o), l = bi(E, i.insertedText);
|
|
2418
2502
|
s = s.slice(0, o) + i.insertedText + E.slice(l), n += i.insertedText.length - l;
|
|
2419
2503
|
continue;
|
|
2420
2504
|
}
|
|
2421
|
-
const a = i.end + n, _ =
|
|
2505
|
+
const a = i.end + n, _ = ot(a, o, s.length), I = _ - o;
|
|
2422
2506
|
s = s.slice(0, o) + i.insertedText + s.slice(_), n += i.insertedText.length - I;
|
|
2423
2507
|
}
|
|
2424
2508
|
return s;
|
|
2425
2509
|
}
|
|
2426
|
-
function
|
|
2510
|
+
function Fi(t, r, e) {
|
|
2427
2511
|
if (r.length === 0)
|
|
2428
2512
|
return { node: t, changed: !1 };
|
|
2429
2513
|
const s = /* @__PURE__ */ new Map();
|
|
@@ -2431,9 +2515,9 @@ function Ri(t, r, e) {
|
|
|
2431
2515
|
const i = s.get(n.nodeId);
|
|
2432
2516
|
i ? i.push(n) : s.set(n.nodeId, [n]);
|
|
2433
2517
|
}
|
|
2434
|
-
return
|
|
2518
|
+
return zt(t, s);
|
|
2435
2519
|
}
|
|
2436
|
-
function
|
|
2520
|
+
function zt(t, r, e) {
|
|
2437
2521
|
const s = r.get(t.id) ?? [];
|
|
2438
2522
|
let n = !1, i = t.props;
|
|
2439
2523
|
if (s.length > 0) {
|
|
@@ -2443,8 +2527,8 @@ function Wt(t, r, e) {
|
|
|
2443
2527
|
l ? l.push(E) : I.set(E.propertyName, [E]);
|
|
2444
2528
|
}
|
|
2445
2529
|
for (const [E, l] of I.entries()) {
|
|
2446
|
-
const c = i[E],
|
|
2447
|
-
n || (i = G(i), n = !0), i[E] =
|
|
2530
|
+
const c = i[E], d = gi(typeof c == "string" ? c : "", l);
|
|
2531
|
+
n || (i = G(i), n = !0), i[E] = d;
|
|
2448
2532
|
}
|
|
2449
2533
|
}
|
|
2450
2534
|
let o = !1;
|
|
@@ -2453,7 +2537,7 @@ function Wt(t, r, e) {
|
|
|
2453
2537
|
if (a.length > 0) {
|
|
2454
2538
|
let I;
|
|
2455
2539
|
for (let E = 0; E < a.length; E++) {
|
|
2456
|
-
const l = a[E], c =
|
|
2540
|
+
const l = a[E], c = zt(l, r);
|
|
2457
2541
|
c.changed && (I || (I = [...a]), I[E] = c.node);
|
|
2458
2542
|
}
|
|
2459
2543
|
I && (_ = I, o = !0);
|
|
@@ -2470,10 +2554,10 @@ function Wt(t, r, e) {
|
|
|
2470
2554
|
changed: !0
|
|
2471
2555
|
};
|
|
2472
2556
|
}
|
|
2473
|
-
function
|
|
2557
|
+
function ot(t, r, e) {
|
|
2474
2558
|
return Math.max(r, Math.min(e, t));
|
|
2475
2559
|
}
|
|
2476
|
-
function
|
|
2560
|
+
function bi(t, r) {
|
|
2477
2561
|
const e = Math.min(t.length, r.length);
|
|
2478
2562
|
let s = 0;
|
|
2479
2563
|
for (; s < e && t.charCodeAt(s) === r.charCodeAt(s); )
|
|
@@ -2488,7 +2572,7 @@ function G(t) {
|
|
|
2488
2572
|
}
|
|
2489
2573
|
return r;
|
|
2490
2574
|
}
|
|
2491
|
-
function
|
|
2575
|
+
function q(t) {
|
|
2492
2576
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
2493
2577
|
}
|
|
2494
2578
|
function M(t, r) {
|
|
@@ -2502,7 +2586,7 @@ function M(t, r) {
|
|
|
2502
2586
|
return !1;
|
|
2503
2587
|
return !0;
|
|
2504
2588
|
}
|
|
2505
|
-
if (
|
|
2589
|
+
if (q(t) && q(r)) {
|
|
2506
2590
|
const e = Object.keys(t), s = Object.keys(r);
|
|
2507
2591
|
if (e.length !== s.length)
|
|
2508
2592
|
return !1;
|
|
@@ -2513,20 +2597,20 @@ function M(t, r) {
|
|
|
2513
2597
|
}
|
|
2514
2598
|
return !1;
|
|
2515
2599
|
}
|
|
2516
|
-
const
|
|
2517
|
-
let
|
|
2600
|
+
const Mi = 16, vi = 50, U = new Ui(), v = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
2601
|
+
let Jt = Mi, Qt = vi, V = [], x = null, H = null, y = 0, j = 0;
|
|
2518
2602
|
const g = /* @__PURE__ */ new Map();
|
|
2519
|
-
function
|
|
2603
|
+
function ki() {
|
|
2520
2604
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
2521
2605
|
}
|
|
2522
|
-
function
|
|
2606
|
+
function Gi() {
|
|
2523
2607
|
try {
|
|
2524
2608
|
return crypto.randomUUID();
|
|
2525
2609
|
} catch {
|
|
2526
2610
|
return `${Date.now()}_${Math.random().toString(16).slice(2)}`;
|
|
2527
2611
|
}
|
|
2528
2612
|
}
|
|
2529
|
-
function
|
|
2613
|
+
function Bi(t) {
|
|
2530
2614
|
const r = [];
|
|
2531
2615
|
for (const s of t.views)
|
|
2532
2616
|
r.push(s);
|
|
@@ -2542,9 +2626,9 @@ function Li(t) {
|
|
|
2542
2626
|
payloads: e
|
|
2543
2627
|
};
|
|
2544
2628
|
}
|
|
2545
|
-
function
|
|
2629
|
+
function Vi(t, r, e) {
|
|
2546
2630
|
if (!e || e.version === -1)
|
|
2547
|
-
return { type: "ReplaceStreamSnapshot", snapshot:
|
|
2631
|
+
return { type: "ReplaceStreamSnapshot", snapshot: Bi(r) };
|
|
2548
2632
|
let s, n;
|
|
2549
2633
|
for (const [a, _] of r.views)
|
|
2550
2634
|
e.views.get(a) !== _ && (s ??= []).push([a, _]);
|
|
@@ -2568,55 +2652,55 @@ function Oi(t, r, e) {
|
|
|
2568
2652
|
deletePayloads: o
|
|
2569
2653
|
};
|
|
2570
2654
|
}
|
|
2571
|
-
function
|
|
2572
|
-
x || (x = setTimeout(
|
|
2655
|
+
function qt() {
|
|
2656
|
+
x || (x = setTimeout(at, Jt)), H || (H = setTimeout(at, Qt));
|
|
2573
2657
|
}
|
|
2574
2658
|
function P(t) {
|
|
2575
|
-
V.push(t),
|
|
2659
|
+
V.push(t), qt();
|
|
2576
2660
|
}
|
|
2577
|
-
function
|
|
2661
|
+
function at() {
|
|
2578
2662
|
if (x && (clearTimeout(x), x = null), H && (clearTimeout(H), H = null), V.length === 0 && g.size === 0) {
|
|
2579
|
-
|
|
2663
|
+
y = 0, j = 0;
|
|
2580
2664
|
return;
|
|
2581
2665
|
}
|
|
2582
2666
|
const t = [];
|
|
2583
2667
|
for (const [e, s] of g)
|
|
2584
2668
|
t.push({ trackId: e, version: s.version, senderId: s.senderId });
|
|
2585
2669
|
const r = {
|
|
2586
|
-
batchId:
|
|
2587
|
-
createdAtMs:
|
|
2670
|
+
batchId: Gi(),
|
|
2671
|
+
createdAtMs: ki(),
|
|
2588
2672
|
ops: V,
|
|
2589
2673
|
...t.length > 0 ? { acks: t } : {},
|
|
2590
|
-
stats: { uiMessagesConsumed:
|
|
2674
|
+
stats: { uiMessagesConsumed: y, bytesConsumed: j }
|
|
2591
2675
|
};
|
|
2592
|
-
V = [],
|
|
2676
|
+
V = [], y = 0, j = 0, g.clear(), self.postMessage(r);
|
|
2593
2677
|
}
|
|
2594
|
-
function
|
|
2678
|
+
function Zt(t) {
|
|
2595
2679
|
return `${t.senderId}_${t.trackId}`;
|
|
2596
2680
|
}
|
|
2597
|
-
async function
|
|
2598
|
-
const r = await
|
|
2681
|
+
async function xi(t) {
|
|
2682
|
+
const r = await Un(t), e = /* @__PURE__ */ new Set();
|
|
2599
2683
|
for (const s of Object.values(r.UIStreams ?? {})) {
|
|
2600
2684
|
const n = s.StreamId;
|
|
2601
2685
|
e.add(n);
|
|
2602
2686
|
const i = s.Info?.Category;
|
|
2603
|
-
|
|
2687
|
+
U.getSnapshot(n)?.category !== i && (U.setCategory(n, i), P({ type: "SetStreamCategory", streamId: n, category: i }));
|
|
2604
2688
|
}
|
|
2605
|
-
for (const s of
|
|
2606
|
-
e.has(s.streamId) || (
|
|
2689
|
+
for (const s of U.getSnapshots())
|
|
2690
|
+
e.has(s.streamId) || (U.remove(s.streamId), Y.delete(s.streamId), P({ type: "RemoveStream", streamId: s.streamId }));
|
|
2607
2691
|
}
|
|
2608
|
-
async function
|
|
2609
|
-
const r =
|
|
2610
|
-
if ((i === void 0 || n.snapshot.version > i.version) && (g.set(r.trackId, { version: n.snapshot.version, senderId: r.senderId }),
|
|
2692
|
+
async function Hi(t) {
|
|
2693
|
+
const r = Z(t), e = Zt(r), s = await Hs(t), n = Ni(s), i = g.get(r.trackId);
|
|
2694
|
+
if ((i === void 0 || n.snapshot.version > i.version) && (g.set(r.trackId, { version: n.snapshot.version, senderId: r.senderId }), qt()), !U.apply(e, n))
|
|
2611
2695
|
return;
|
|
2612
|
-
const a =
|
|
2696
|
+
const a = U.getSnapshot(e);
|
|
2613
2697
|
if (!a)
|
|
2614
2698
|
return;
|
|
2615
2699
|
const _ = Y.get(e);
|
|
2616
|
-
Y.set(e, a), P(
|
|
2700
|
+
Y.set(e, a), P(Vi(e, a, _));
|
|
2617
2701
|
}
|
|
2618
|
-
async function
|
|
2619
|
-
const r = await
|
|
2702
|
+
async function Yi(t) {
|
|
2703
|
+
const r = await Is(t);
|
|
2620
2704
|
if (!r.StyleId)
|
|
2621
2705
|
return;
|
|
2622
2706
|
const e = {
|
|
@@ -2626,8 +2710,8 @@ async function gi(t) {
|
|
|
2626
2710
|
}, s = v.get(e.styleId);
|
|
2627
2711
|
s && s.css === e.css && s.common === e.common || (v.set(e.styleId, e), P({ type: "UpsertUiStyle", style: e }));
|
|
2628
2712
|
}
|
|
2629
|
-
async function
|
|
2630
|
-
const r = await
|
|
2713
|
+
async function pi(t) {
|
|
2714
|
+
const r = await Ns(t);
|
|
2631
2715
|
if (r.Styles)
|
|
2632
2716
|
for (const e of r.Styles) {
|
|
2633
2717
|
if (!e.StyleId)
|
|
@@ -2640,44 +2724,44 @@ async function Fi(t) {
|
|
|
2640
2724
|
n && n.css === s.css && n.common === s.common || (v.set(s.styleId, s), P({ type: "UpsertUiStyle", style: s }));
|
|
2641
2725
|
}
|
|
2642
2726
|
}
|
|
2643
|
-
function
|
|
2644
|
-
const r =
|
|
2645
|
-
|
|
2727
|
+
function Ki(t) {
|
|
2728
|
+
const r = Z(t), e = Zt(r);
|
|
2729
|
+
U.clear(e), Y.delete(e), P({ type: "ClearStream", streamId: e });
|
|
2646
2730
|
}
|
|
2647
|
-
async function
|
|
2648
|
-
const r = await
|
|
2731
|
+
async function $i(t) {
|
|
2732
|
+
const r = await Fs(t);
|
|
2649
2733
|
if (!(!r.StyleIds || r.StyleIds.length === 0))
|
|
2650
2734
|
for (const e of r.StyleIds)
|
|
2651
2735
|
v.delete(e) && P({ type: "RemoveUiStyle", styleId: e });
|
|
2652
2736
|
}
|
|
2653
|
-
async function
|
|
2737
|
+
async function Xi(t) {
|
|
2654
2738
|
const r = new Uint8Array(t);
|
|
2655
|
-
|
|
2739
|
+
j += r.byteLength;
|
|
2656
2740
|
const e = r;
|
|
2657
|
-
switch (
|
|
2741
|
+
switch (ee(e)) {
|
|
2658
2742
|
case m.CORE_GLOBAL_STATE:
|
|
2659
|
-
await
|
|
2743
|
+
await xi(e), y++;
|
|
2660
2744
|
return;
|
|
2661
2745
|
case m.UI_UPDATE:
|
|
2662
2746
|
try {
|
|
2663
|
-
await
|
|
2747
|
+
await Hi(e);
|
|
2664
2748
|
} catch (n) {
|
|
2665
2749
|
return n instanceof R, void 0;
|
|
2666
2750
|
} finally {
|
|
2667
|
-
|
|
2751
|
+
y++;
|
|
2668
2752
|
}
|
|
2669
2753
|
return;
|
|
2670
2754
|
case m.UI_STYLES:
|
|
2671
|
-
await
|
|
2755
|
+
await Yi(e), y++;
|
|
2672
2756
|
return;
|
|
2673
2757
|
case m.UI_STYLES_BATCH:
|
|
2674
|
-
await
|
|
2758
|
+
await pi(e), y++;
|
|
2675
2759
|
return;
|
|
2676
2760
|
case m.UI_STYLES_DELETE:
|
|
2677
|
-
await
|
|
2761
|
+
await $i(e), y++;
|
|
2678
2762
|
return;
|
|
2679
2763
|
case m.ACTION_UI_CLEAR_STREAM:
|
|
2680
|
-
|
|
2764
|
+
Ki(e), y++;
|
|
2681
2765
|
return;
|
|
2682
2766
|
default:
|
|
2683
2767
|
return;
|
|
@@ -2686,15 +2770,15 @@ async function vi(t) {
|
|
|
2686
2770
|
self.addEventListener("message", (t) => {
|
|
2687
2771
|
const r = t.data;
|
|
2688
2772
|
if (r.type === "configure") {
|
|
2689
|
-
typeof r.flushIntervalMs == "number" && Number.isFinite(r.flushIntervalMs) && r.flushIntervalMs >= 0 && (
|
|
2773
|
+
typeof r.flushIntervalMs == "number" && Number.isFinite(r.flushIntervalMs) && r.flushIntervalMs >= 0 && (Jt = r.flushIntervalMs), typeof r.maxLatencyMs == "number" && Number.isFinite(r.maxLatencyMs) && r.maxLatencyMs >= 0 && (Qt = r.maxLatencyMs);
|
|
2690
2774
|
return;
|
|
2691
2775
|
}
|
|
2692
2776
|
if (r.type === "clear") {
|
|
2693
2777
|
V = [], Y.clear(), g.clear(), v.clear();
|
|
2694
|
-
for (const e of
|
|
2695
|
-
|
|
2778
|
+
for (const e of U.getSnapshots())
|
|
2779
|
+
U.remove(e.streamId);
|
|
2696
2780
|
return;
|
|
2697
2781
|
}
|
|
2698
|
-
r.type === "protocol" &&
|
|
2782
|
+
r.type === "protocol" && Xi(r.message).catch(() => {
|
|
2699
2783
|
});
|
|
2700
2784
|
});
|