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