@ikonai/sdk-ui 0.0.32 → 0.0.34
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-DDoIUH1E.js → ui-worker-CBwhM0DU.js} +646 -625
- package/index.js +663 -654
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
function
|
|
1
|
+
function Zt(t) {
|
|
2
2
|
if (t.length < 8)
|
|
3
3
|
throw new Error("Protocol message too short");
|
|
4
4
|
return (t[4] | t[5] << 8 | t[6] << 16 | t[7] << 24) >>> 0;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
const e =
|
|
6
|
+
function et(t) {
|
|
7
|
+
const e = K(t), s = new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
8
8
|
if (e.length < 27)
|
|
9
9
|
throw new Error("Protocol payload too short");
|
|
10
10
|
const r = s.getUint32(0, !0), n = s.getUint32(4, !0), i = s.getUint32(8, !0), o = s.getUint32(12, !0), a = s.getUint32(16, !0), l = s.getUint32(20, !0), I = s.getUint8(24), c = s.getUint8(25), E = s.getUint8(26);
|
|
11
11
|
if (27 + l * 4 > e.length)
|
|
12
12
|
throw new Error("Protocol header exceeds payload length");
|
|
13
13
|
const h = [];
|
|
14
|
-
let
|
|
14
|
+
let N = 27;
|
|
15
15
|
for (let f = 0; f < l; f++)
|
|
16
|
-
h.push(s.getUint32(
|
|
16
|
+
h.push(s.getUint32(N, !0)), N += 4;
|
|
17
17
|
return {
|
|
18
18
|
length: r,
|
|
19
19
|
opcode: n,
|
|
@@ -26,8 +26,8 @@ function Q(t) {
|
|
|
26
26
|
flags: E
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
const r =
|
|
29
|
+
function J(t, e, s) {
|
|
30
|
+
const r = K(t), n = et(r);
|
|
31
31
|
if (e !== void 0 && n.opcode !== e)
|
|
32
32
|
throw new Error(`Unexpected opcode ${n.opcode}`);
|
|
33
33
|
if (s !== void 0 && n.payloadVersion !== s)
|
|
@@ -37,47 +37,47 @@ function X(t, e, s) {
|
|
|
37
37
|
const i = 27 + n.targetIds.length * 4;
|
|
38
38
|
return r.subarray(i, n.length);
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
const
|
|
40
|
+
var p = /* @__PURE__ */ ((t) => (t[t.Null = 1] = "Null", t[t.Bool = 2] = "Bool", t[t.Int32 = 3] = "Int32", t[t.Int64 = 4] = "Int64", t[t.UInt32 = 5] = "UInt32", t[t.UInt64 = 6] = "UInt64", t[t.Float32 = 7] = "Float32", t[t.Float64 = 8] = "Float64", t[t.Array = 9] = "Array", t[t.Dict = 10] = "Dict", t[t.Object = 11] = "Object", t[t.String = 12] = "String", t[t.Binary = 13] = "Binary", t[t.Guid = 14] = "Guid", t))(p || {});
|
|
41
|
+
const te = 161, ee = 162;
|
|
42
42
|
new TextEncoder();
|
|
43
|
-
const
|
|
44
|
-
class
|
|
43
|
+
const se = new TextDecoder("utf-8", { fatal: !0 });
|
|
44
|
+
class O {
|
|
45
45
|
constructor(e, s, r) {
|
|
46
46
|
this.buffer = e, this.version = s, this.offset = r, this.end = e.length - 1;
|
|
47
47
|
}
|
|
48
48
|
offset;
|
|
49
49
|
end;
|
|
50
50
|
static create(e) {
|
|
51
|
-
const s =
|
|
51
|
+
const s = K(e);
|
|
52
52
|
if (s.length < 2)
|
|
53
53
|
throw new Error("Teleport payload too short");
|
|
54
|
-
if (s[0] !==
|
|
54
|
+
if (s[0] !== te || s[s.length - 1] !== ee)
|
|
55
55
|
throw new Error("Teleport object missing markers");
|
|
56
|
-
const r = { offset: 1 }, n =
|
|
57
|
-
return new
|
|
56
|
+
const r = { offset: 1 }, n = S(s, r, "InvalidLength");
|
|
57
|
+
return new O(s, n, r.offset);
|
|
58
58
|
}
|
|
59
59
|
next() {
|
|
60
60
|
if (this.offset >= this.end)
|
|
61
61
|
return null;
|
|
62
62
|
if (this.offset + 5 > this.buffer.length)
|
|
63
63
|
throw new Error("Teleport object truncated");
|
|
64
|
-
const e =
|
|
64
|
+
const e = oe(this.buffer, this.offset);
|
|
65
65
|
this.offset += 4;
|
|
66
66
|
const s = this.buffer[this.offset++], r = s >> 4 & 15;
|
|
67
67
|
if ((s & 15) !== 0)
|
|
68
68
|
throw new Error("Teleport field flags must be zero");
|
|
69
|
-
const n =
|
|
69
|
+
const n = F(r);
|
|
70
70
|
let i;
|
|
71
71
|
if (n >= 0)
|
|
72
72
|
A(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
|
|
73
73
|
else {
|
|
74
|
-
const o = { offset: this.offset }, a =
|
|
74
|
+
const o = { offset: this.offset }, a = S(this.buffer, o, "InvalidLength");
|
|
75
75
|
A(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
|
|
76
76
|
}
|
|
77
|
-
return new
|
|
77
|
+
return new re(e, r, i);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
class
|
|
80
|
+
class U {
|
|
81
81
|
constructor(e, s) {
|
|
82
82
|
this.type = e, this.payload = s;
|
|
83
83
|
}
|
|
@@ -139,38 +139,38 @@ class w {
|
|
|
139
139
|
return this.ensureType(
|
|
140
140
|
12
|
|
141
141
|
/* String */
|
|
142
|
-
),
|
|
142
|
+
), se.decode(this.payload);
|
|
143
143
|
}
|
|
144
144
|
asGuid() {
|
|
145
145
|
return this.ensureType(
|
|
146
146
|
14
|
|
147
147
|
/* Guid */
|
|
148
|
-
),
|
|
148
|
+
), T.fromBytes(this.payload);
|
|
149
149
|
}
|
|
150
150
|
asObject() {
|
|
151
151
|
return this.ensureType(
|
|
152
152
|
11
|
|
153
153
|
/* Object */
|
|
154
|
-
),
|
|
154
|
+
), O.create(this.payload);
|
|
155
155
|
}
|
|
156
156
|
asArray() {
|
|
157
157
|
return this.ensureType(
|
|
158
158
|
9
|
|
159
159
|
/* Array */
|
|
160
|
-
),
|
|
160
|
+
), st.create(this.payload);
|
|
161
161
|
}
|
|
162
162
|
asDictionary() {
|
|
163
163
|
return this.ensureType(
|
|
164
164
|
10
|
|
165
165
|
/* Dict */
|
|
166
|
-
),
|
|
166
|
+
), rt.create(this.payload);
|
|
167
167
|
}
|
|
168
168
|
ensureType(e) {
|
|
169
169
|
if (this.type !== e)
|
|
170
|
-
throw new Error(`Teleport value has type ${
|
|
170
|
+
throw new Error(`Teleport value has type ${p[this.type]}, expected ${p[e]}`);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
class
|
|
173
|
+
class re extends U {
|
|
174
174
|
constructor(e, s, r) {
|
|
175
175
|
super(s, r), this.fieldId = e;
|
|
176
176
|
}
|
|
@@ -178,7 +178,7 @@ class te extends w {
|
|
|
178
178
|
return this.type === 1;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
class
|
|
181
|
+
class st {
|
|
182
182
|
payload;
|
|
183
183
|
elementType;
|
|
184
184
|
count;
|
|
@@ -191,10 +191,10 @@ class Z {
|
|
|
191
191
|
if (this.elementType = s >> 4 & 15, (s & 15) !== 0)
|
|
192
192
|
throw new Error("Array flags must be zero");
|
|
193
193
|
const r = { offset: 1 };
|
|
194
|
-
this.count =
|
|
194
|
+
this.count = S(e, r, "ArrayMalformed"), this.offset = r.offset;
|
|
195
195
|
}
|
|
196
196
|
static create(e) {
|
|
197
|
-
return new
|
|
197
|
+
return new st(K(e));
|
|
198
198
|
}
|
|
199
199
|
next() {
|
|
200
200
|
if (this.index >= this.count) {
|
|
@@ -215,43 +215,43 @@ class Z {
|
|
|
215
215
|
case 4:
|
|
216
216
|
case 6:
|
|
217
217
|
case 14: {
|
|
218
|
-
const e =
|
|
218
|
+
const e = F(this.elementType);
|
|
219
219
|
A(this.payload, this.offset, e);
|
|
220
220
|
const s = this.payload.subarray(this.offset, this.offset + e);
|
|
221
|
-
return this.offset += e, new
|
|
221
|
+
return this.offset += e, new V(this.elementType, s);
|
|
222
222
|
}
|
|
223
223
|
case 12:
|
|
224
224
|
case 13: {
|
|
225
|
-
const e = { offset: this.offset }, s =
|
|
225
|
+
const e = { offset: this.offset }, s = S(this.payload, e, "ArrayMalformed");
|
|
226
226
|
A(this.payload, e.offset, s);
|
|
227
227
|
const r = this.payload.subarray(e.offset, e.offset + s);
|
|
228
|
-
return this.offset = e.offset + s, new
|
|
228
|
+
return this.offset = e.offset + s, new V(this.elementType, r);
|
|
229
229
|
}
|
|
230
230
|
case 11: {
|
|
231
|
-
const e = { offset: this.offset }, s =
|
|
231
|
+
const e = { offset: this.offset }, s = S(this.payload, e, "ArrayMalformed");
|
|
232
232
|
A(this.payload, e.offset, s);
|
|
233
233
|
const r = this.payload.subarray(e.offset, e.offset + s);
|
|
234
|
-
return this.offset = e.offset + s, new
|
|
234
|
+
return this.offset = e.offset + s, new V(11, r);
|
|
235
235
|
}
|
|
236
236
|
case 9: {
|
|
237
|
-
const e =
|
|
238
|
-
return this.offset += e, new
|
|
237
|
+
const e = nt(this.payload, this.offset), s = this.payload.subarray(this.offset, this.offset + e);
|
|
238
|
+
return this.offset += e, new V(9, s);
|
|
239
239
|
}
|
|
240
240
|
case 10: {
|
|
241
|
-
const e =
|
|
242
|
-
return this.offset += e, new
|
|
241
|
+
const e = it(this.payload, this.offset), s = this.payload.subarray(this.offset, this.offset + e);
|
|
242
|
+
return this.offset += e, new V(10, s);
|
|
243
243
|
}
|
|
244
244
|
default:
|
|
245
|
-
throw new Error(`Unsupported array element type ${
|
|
245
|
+
throw new Error(`Unsupported array element type ${p[this.elementType]}`);
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
class
|
|
249
|
+
class V extends U {
|
|
250
250
|
constructor(e, s) {
|
|
251
251
|
super(e, s);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
class
|
|
254
|
+
class rt {
|
|
255
255
|
payload;
|
|
256
256
|
keyType;
|
|
257
257
|
valueType;
|
|
@@ -263,12 +263,12 @@ class tt {
|
|
|
263
263
|
throw new Error("Dictionary payload too short");
|
|
264
264
|
if (this.keyType = e[0] >> 4 & 15, this.valueType = e[1] >> 4 & 15, (e[0] & 15) !== 0 || (e[1] & 15) !== 0)
|
|
265
265
|
throw new Error("Dictionary key/value flags must be zero");
|
|
266
|
-
|
|
266
|
+
_t(this.keyType);
|
|
267
267
|
const s = { offset: 2 };
|
|
268
|
-
this.count =
|
|
268
|
+
this.count = S(e, s, "DictMalformed"), this.offset = s.offset;
|
|
269
269
|
}
|
|
270
270
|
static create(e) {
|
|
271
|
-
return new
|
|
271
|
+
return new rt(K(e));
|
|
272
272
|
}
|
|
273
273
|
next() {
|
|
274
274
|
if (this.index >= this.count) {
|
|
@@ -277,20 +277,20 @@ class tt {
|
|
|
277
277
|
return null;
|
|
278
278
|
}
|
|
279
279
|
const e = this.readKey(), s = this.readValue();
|
|
280
|
-
return this.index++, new
|
|
280
|
+
return this.index++, new ne(e, s);
|
|
281
281
|
}
|
|
282
282
|
readKey() {
|
|
283
|
-
const e =
|
|
283
|
+
const e = F(this.keyType);
|
|
284
284
|
if (e >= 0) {
|
|
285
285
|
A(this.payload, this.offset, e);
|
|
286
286
|
const s = this.payload.subarray(this.offset, this.offset + e);
|
|
287
|
-
return this.offset += e, new
|
|
287
|
+
return this.offset += e, new U(this.keyType, s);
|
|
288
288
|
}
|
|
289
289
|
if (this.keyType === 12 || this.keyType === 13) {
|
|
290
|
-
const s = { offset: this.offset }, r =
|
|
290
|
+
const s = { offset: this.offset }, r = S(this.payload, s, "DictMalformed");
|
|
291
291
|
A(this.payload, s.offset, r);
|
|
292
292
|
const n = this.payload.subarray(s.offset, s.offset + r);
|
|
293
|
-
return this.offset = s.offset + r, new
|
|
293
|
+
return this.offset = s.offset + r, new U(this.keyType, n);
|
|
294
294
|
}
|
|
295
295
|
throw new Error("Unsupported dictionary key type");
|
|
296
296
|
}
|
|
@@ -298,24 +298,24 @@ class tt {
|
|
|
298
298
|
switch (this.valueType) {
|
|
299
299
|
case 12:
|
|
300
300
|
case 13: {
|
|
301
|
-
const e = { offset: this.offset }, s =
|
|
301
|
+
const e = { offset: this.offset }, s = S(this.payload, e, "DictMalformed");
|
|
302
302
|
A(this.payload, e.offset, s);
|
|
303
303
|
const r = this.payload.subarray(e.offset, e.offset + s);
|
|
304
|
-
return this.offset = e.offset + s, new
|
|
304
|
+
return this.offset = e.offset + s, new U(this.valueType, r);
|
|
305
305
|
}
|
|
306
306
|
case 11: {
|
|
307
|
-
const e = { offset: this.offset }, s =
|
|
307
|
+
const e = { offset: this.offset }, s = S(this.payload, e, "DictMalformed");
|
|
308
308
|
A(this.payload, e.offset, s);
|
|
309
309
|
const r = this.payload.subarray(e.offset, e.offset + s);
|
|
310
|
-
return this.offset = e.offset + s, new
|
|
310
|
+
return this.offset = e.offset + s, new U(11, r);
|
|
311
311
|
}
|
|
312
312
|
case 9: {
|
|
313
|
-
const e =
|
|
314
|
-
return this.offset += e, new
|
|
313
|
+
const e = nt(this.payload, this.offset), s = this.payload.subarray(this.offset, this.offset + e);
|
|
314
|
+
return this.offset += e, new U(9, s);
|
|
315
315
|
}
|
|
316
316
|
case 10: {
|
|
317
|
-
const e =
|
|
318
|
-
return this.offset += e, new
|
|
317
|
+
const e = it(this.payload, this.offset), s = this.payload.subarray(this.offset, this.offset + e);
|
|
318
|
+
return this.offset += e, new U(10, s);
|
|
319
319
|
}
|
|
320
320
|
case 3:
|
|
321
321
|
case 5:
|
|
@@ -326,22 +326,22 @@ class tt {
|
|
|
326
326
|
case 6:
|
|
327
327
|
case 14:
|
|
328
328
|
case 1: {
|
|
329
|
-
const e =
|
|
329
|
+
const e = F(this.valueType);
|
|
330
330
|
A(this.payload, this.offset, e);
|
|
331
331
|
const s = this.payload.subarray(this.offset, this.offset + e);
|
|
332
|
-
return this.offset += e, new
|
|
332
|
+
return this.offset += e, new U(this.valueType, s);
|
|
333
333
|
}
|
|
334
334
|
default:
|
|
335
|
-
throw new Error(`Unsupported dictionary value type ${
|
|
335
|
+
throw new Error(`Unsupported dictionary value type ${p[this.valueType]}`);
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
class
|
|
339
|
+
class ne {
|
|
340
340
|
constructor(e, s) {
|
|
341
341
|
this.key = e, this.value = s;
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
class
|
|
344
|
+
class T {
|
|
345
345
|
constructor(e) {
|
|
346
346
|
this.bytes = e;
|
|
347
347
|
}
|
|
@@ -351,19 +351,19 @@ class u {
|
|
|
351
351
|
const s = e.replace(/-/g, "");
|
|
352
352
|
if (s.length !== 32)
|
|
353
353
|
throw new Error("Guid string must be 32 hex characters");
|
|
354
|
-
const r = new Uint8Array(16), n =
|
|
355
|
-
|
|
354
|
+
const r = new Uint8Array(16), n = T.parseHexSlice(s, 0, 8), i = T.parseHexSlice(s, 8, 4), o = T.parseHexSlice(s, 12, 4);
|
|
355
|
+
T.writeUInt32LE(r, 0, n), T.writeUInt16LE(r, 4, i), T.writeUInt16LE(r, 6, o);
|
|
356
356
|
for (let a = 0; a < 8; a++)
|
|
357
|
-
r[8 + a] =
|
|
358
|
-
return new
|
|
357
|
+
r[8 + a] = T.parseHexSlice(s, 16 + a * 2, 2);
|
|
358
|
+
return new T(r);
|
|
359
359
|
}
|
|
360
360
|
static fromBytes(e) {
|
|
361
361
|
if (e.length !== 16)
|
|
362
362
|
throw new Error("Guid byte array must be 16 bytes");
|
|
363
|
-
return new
|
|
363
|
+
return new T(Uint8Array.from(e));
|
|
364
364
|
}
|
|
365
365
|
static createZero() {
|
|
366
|
-
return new
|
|
366
|
+
return new T(new Uint8Array(16));
|
|
367
367
|
}
|
|
368
368
|
static createRandom() {
|
|
369
369
|
const e = new Uint8Array(16), s = globalThis.crypto;
|
|
@@ -372,16 +372,16 @@ class u {
|
|
|
372
372
|
else
|
|
373
373
|
for (let r = 0; r < e.length; r++)
|
|
374
374
|
e[r] = Math.floor(Math.random() * 256);
|
|
375
|
-
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, new
|
|
375
|
+
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, new T(e);
|
|
376
376
|
}
|
|
377
377
|
toString() {
|
|
378
378
|
const e = this.bytes;
|
|
379
379
|
return [
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
380
|
+
T.toHex(T.readUInt32LE(e, 0), 8),
|
|
381
|
+
T.toHex(T.readUInt16LE(e, 4), 4),
|
|
382
|
+
T.toHex(T.readUInt16LE(e, 6), 4),
|
|
383
|
+
It(e.subarray(8, 10)),
|
|
384
|
+
It(e.subarray(10, 16))
|
|
385
385
|
].join("-");
|
|
386
386
|
}
|
|
387
387
|
asBytes() {
|
|
@@ -411,14 +411,14 @@ class u {
|
|
|
411
411
|
return (e >>> 0).toString(16).padStart(s, "0");
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function S(t, e, s) {
|
|
415
415
|
if (e.offset >= t.length)
|
|
416
416
|
throw new Error(s);
|
|
417
417
|
let r = 0, n = 0, i = 0;
|
|
418
418
|
for (; e.offset < t.length; ) {
|
|
419
419
|
const o = t[e.offset++];
|
|
420
420
|
if (i++, r |= (o & 127) << n, (o & 128) === 0) {
|
|
421
|
-
if (i !==
|
|
421
|
+
if (i !== ie(r))
|
|
422
422
|
throw new Error("Teleport VarUInt is not canonical");
|
|
423
423
|
return r >>> 0;
|
|
424
424
|
}
|
|
@@ -427,10 +427,10 @@ function d(t, e, s) {
|
|
|
427
427
|
}
|
|
428
428
|
throw new Error(s);
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function ie(t) {
|
|
431
431
|
return t < 128 ? 1 : t < 16384 ? 2 : t < 2097152 ? 3 : t < 268435456 ? 4 : 5;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function F(t) {
|
|
434
434
|
switch (t) {
|
|
435
435
|
case 3:
|
|
436
436
|
case 5:
|
|
@@ -450,7 +450,7 @@ function P(t) {
|
|
|
450
450
|
return -1;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function _t(t) {
|
|
454
454
|
if (t === 9 || t === 11 || t === 10 || t === 1)
|
|
455
455
|
throw new Error("Dictionary keys must be primitive Teleport types");
|
|
456
456
|
}
|
|
@@ -458,249 +458,249 @@ function A(t, e, s) {
|
|
|
458
458
|
if (e < 0 || s < 0 || e + s > t.length)
|
|
459
459
|
throw new Error("Teleport payload exceeds bounds");
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function oe(t, e) {
|
|
462
462
|
return (t[e] | t[e + 1] << 8 | t[e + 2] << 16 | t[e + 3] << 24) >>> 0;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function nt(t, e) {
|
|
465
465
|
if (e >= t.length)
|
|
466
466
|
throw new Error("Array payload exceeds bounds");
|
|
467
467
|
const s = t[e], r = s >> 4 & 15;
|
|
468
468
|
if ((s & 15) !== 0)
|
|
469
469
|
throw new Error("Array flags must be zero");
|
|
470
|
-
const n = { offset: e + 1 }, i =
|
|
470
|
+
const n = { offset: e + 1 }, i = S(t, n, "ArrayMalformed"), o = F(r);
|
|
471
471
|
if (o >= 0) {
|
|
472
472
|
const l = o * i;
|
|
473
473
|
return A(t, n.offset, l), n.offset + l - e;
|
|
474
474
|
}
|
|
475
475
|
let a = n.offset;
|
|
476
476
|
for (let l = 0; l < i; l++)
|
|
477
|
-
a =
|
|
477
|
+
a = q(r, t, a, "ArrayMalformed");
|
|
478
478
|
return a - e;
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function it(t, e) {
|
|
481
481
|
if (e + 2 > t.length)
|
|
482
482
|
throw new Error("Dictionary payload too short");
|
|
483
483
|
const s = t[e] >> 4 & 15, r = t[e + 1] >> 4 & 15;
|
|
484
484
|
if ((t[e] & 15) !== 0 || (t[e + 1] & 15) !== 0)
|
|
485
485
|
throw new Error("Dictionary key/value flags must be zero");
|
|
486
|
-
|
|
487
|
-
const n = { offset: e + 2 }, i =
|
|
486
|
+
_t(s);
|
|
487
|
+
const n = { offset: e + 2 }, i = S(t, n, "DictMalformed");
|
|
488
488
|
let o = n.offset;
|
|
489
489
|
for (let a = 0; a < i; a++)
|
|
490
|
-
o =
|
|
490
|
+
o = q(s, t, o, "DictMalformed"), o = q(r, t, o, "DictMalformed");
|
|
491
491
|
return o - e;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
const n =
|
|
493
|
+
function q(t, e, s, r) {
|
|
494
|
+
const n = F(t);
|
|
495
495
|
if (n >= 0)
|
|
496
496
|
return A(e, s, n), s + n;
|
|
497
497
|
switch (t) {
|
|
498
498
|
case 12:
|
|
499
499
|
case 13: {
|
|
500
|
-
const i = { offset: s }, o =
|
|
500
|
+
const i = { offset: s }, o = S(e, i, r);
|
|
501
501
|
return A(e, i.offset, o), i.offset + o;
|
|
502
502
|
}
|
|
503
503
|
case 11: {
|
|
504
|
-
const i = { offset: s }, o =
|
|
504
|
+
const i = { offset: s }, o = S(e, i, r);
|
|
505
505
|
return A(e, i.offset, o), i.offset + o;
|
|
506
506
|
}
|
|
507
507
|
case 9:
|
|
508
|
-
return s +
|
|
508
|
+
return s + nt(e, s);
|
|
509
509
|
case 10:
|
|
510
|
-
return s +
|
|
510
|
+
return s + it(e, s);
|
|
511
511
|
default:
|
|
512
|
-
throw new Error(`Unsupported Teleport type ${
|
|
512
|
+
throw new Error(`Unsupported Teleport type ${p[t]}`);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function It(t) {
|
|
516
516
|
return Array.from(t).map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function K(t) {
|
|
519
519
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
520
520
|
}
|
|
521
|
-
var ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(ct || {}), Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(_t || {}), ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(ft || {}), ht = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Hevc = 2] = "Hevc", t[t.Vp8 = 3] = "Vp8", t))(Tt || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(Nt || {}), L = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(L || {});
|
|
522
|
-
const
|
|
523
|
-
function
|
|
521
|
+
var ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(ft || {}), ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(Tt || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(Nt || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(At || {}), St = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Hevc = 2] = "Hevc", t[t.Vp8 = 3] = "Vp8", t))(St || {}), dt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(dt || {}), P = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(P || {});
|
|
522
|
+
const ae = 1368629611, le = 2431514951, Ie = 2914494629, ce = 3284746250, Ee = 4101844078;
|
|
523
|
+
function yt(t) {
|
|
524
524
|
const e = {};
|
|
525
|
-
return
|
|
525
|
+
return Ct(e), e;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
return t.Description = "", t.Codec =
|
|
527
|
+
function Ct(t) {
|
|
528
|
+
return t.Description = "", t.Codec = ft.Unknown, t.SampleRate = 0, t.Channels = 0, t.BitDepth = 0, t;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
const s = e ??
|
|
532
|
-
return
|
|
530
|
+
function _e(t, e) {
|
|
531
|
+
const s = e ?? yt();
|
|
532
|
+
return Ct(s), fe(t, s), s;
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function fe(t, e) {
|
|
535
535
|
let s;
|
|
536
536
|
for (; (s = t.next()) !== null; )
|
|
537
537
|
switch (s.fieldId) {
|
|
538
|
-
case
|
|
538
|
+
case ae: {
|
|
539
539
|
if (s.isNull) throw new Error();
|
|
540
540
|
e.Description = s.asString();
|
|
541
541
|
break;
|
|
542
542
|
}
|
|
543
|
-
case
|
|
543
|
+
case le: {
|
|
544
544
|
if (s.isNull) throw new Error();
|
|
545
545
|
e.Channels = s.asInt32();
|
|
546
546
|
break;
|
|
547
547
|
}
|
|
548
|
-
case
|
|
548
|
+
case Ie: {
|
|
549
549
|
if (s.isNull) throw new Error();
|
|
550
550
|
e.BitDepth = s.asInt32();
|
|
551
551
|
break;
|
|
552
552
|
}
|
|
553
|
-
case
|
|
553
|
+
case ce: {
|
|
554
554
|
if (s.isNull) throw new Error();
|
|
555
555
|
e.Codec = s.asInt32();
|
|
556
556
|
break;
|
|
557
557
|
}
|
|
558
|
-
case
|
|
558
|
+
case Ee: {
|
|
559
559
|
if (s.isNull) throw new Error();
|
|
560
560
|
e.SampleRate = s.asInt32();
|
|
561
561
|
break;
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
const
|
|
566
|
-
function
|
|
565
|
+
const he = 76337612, ue = 185396121, Te = 388632637, Ne = 417197284, Ae = 469070965, Se = 470595159, de = 781727218, ye = 834078886, Ce = 1043273762, we = 1236999138, Ue = 1368629611, De = 1715899485, Re = 1942830531, Le = 1999510636, me = 2079864626, Oe = 2142346422, ge = 2598291686, Pe = 2719718823, be = 2810953526, pe = 2840065720, Fe = 2885165957, ve = 3586157513, Me = 3717933110, Ve = 4062655306;
|
|
566
|
+
function ke(t) {
|
|
567
567
|
const e = {};
|
|
568
|
-
return
|
|
568
|
+
return wt(e), e;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
return t.ContextType =
|
|
570
|
+
function wt(t) {
|
|
571
|
+
return t.ContextType = ut.Unknown, t.UserType = At.Unknown, t.PayloadType = Tt.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = ht.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = dt.Unknown, t;
|
|
572
572
|
}
|
|
573
|
-
function
|
|
574
|
-
const s = e ??
|
|
575
|
-
return
|
|
573
|
+
function Ge(t, e) {
|
|
574
|
+
const s = e ?? ke();
|
|
575
|
+
return wt(s), Be(t, s), s;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function Be(t, e) {
|
|
578
578
|
let s;
|
|
579
579
|
for (; (s = t.next()) !== null; )
|
|
580
580
|
switch (s.fieldId) {
|
|
581
|
-
case
|
|
581
|
+
case he: {
|
|
582
582
|
if (s.isNull) throw new Error();
|
|
583
583
|
e.DeviceId = s.asString();
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
|
-
case
|
|
586
|
+
case ue: {
|
|
587
587
|
if (s.isNull) throw new Error();
|
|
588
588
|
e.InstallId = s.asString();
|
|
589
589
|
break;
|
|
590
590
|
}
|
|
591
|
-
case
|
|
591
|
+
case Te: {
|
|
592
592
|
if (s.isNull) throw new Error();
|
|
593
593
|
e.UserAgent = s.asString();
|
|
594
594
|
break;
|
|
595
595
|
}
|
|
596
|
-
case
|
|
596
|
+
case Ne: {
|
|
597
597
|
if (s.isNull) throw new Error();
|
|
598
598
|
e.ContextType = s.asInt32();
|
|
599
599
|
break;
|
|
600
600
|
}
|
|
601
|
-
case
|
|
601
|
+
case Ae: {
|
|
602
602
|
if (s.isNull) throw new Error();
|
|
603
603
|
e.HasInput = s.asBool();
|
|
604
604
|
break;
|
|
605
605
|
}
|
|
606
|
-
case
|
|
606
|
+
case Se: {
|
|
607
607
|
if (s.isNull) throw new Error();
|
|
608
608
|
e.UserType = s.asInt32();
|
|
609
609
|
break;
|
|
610
610
|
}
|
|
611
|
-
case
|
|
611
|
+
case de: {
|
|
612
612
|
if (s.isNull) throw new Error();
|
|
613
613
|
e.UserId = s.asString();
|
|
614
614
|
break;
|
|
615
615
|
}
|
|
616
|
-
case
|
|
616
|
+
case ye: {
|
|
617
617
|
if (s.isNull) throw new Error();
|
|
618
618
|
e.ProductId = s.asString();
|
|
619
619
|
break;
|
|
620
620
|
}
|
|
621
|
-
case
|
|
621
|
+
case Ce: {
|
|
622
622
|
if (s.isNull) throw new Error();
|
|
623
623
|
e.AuthSessionId = s.asString();
|
|
624
624
|
break;
|
|
625
625
|
}
|
|
626
|
-
case
|
|
626
|
+
case we: {
|
|
627
627
|
if (s.isNull) throw new Error();
|
|
628
628
|
e.ReceiveAllMessages = s.asBool();
|
|
629
629
|
break;
|
|
630
630
|
}
|
|
631
|
-
case
|
|
631
|
+
case Ue: {
|
|
632
632
|
if (s.isNull) throw new Error();
|
|
633
633
|
e.Description = s.asString();
|
|
634
634
|
break;
|
|
635
635
|
}
|
|
636
|
-
case
|
|
636
|
+
case De: {
|
|
637
637
|
if (s.isNull) throw new Error();
|
|
638
638
|
e.Locale = s.asString();
|
|
639
639
|
break;
|
|
640
640
|
}
|
|
641
|
-
case
|
|
641
|
+
case Re: {
|
|
642
642
|
if (s.isNull) throw new Error();
|
|
643
643
|
e.SdkType = s.asInt32();
|
|
644
644
|
break;
|
|
645
645
|
}
|
|
646
|
-
case
|
|
646
|
+
case Le: {
|
|
647
647
|
if (s.isNull) throw new Error();
|
|
648
648
|
e.SessionId = s.asInt32();
|
|
649
649
|
break;
|
|
650
650
|
}
|
|
651
|
-
case
|
|
651
|
+
case me: {
|
|
652
652
|
if (s.isNull) throw new Error();
|
|
653
653
|
e.PreciseJoinedAt = s.asUInt64();
|
|
654
654
|
break;
|
|
655
655
|
}
|
|
656
|
-
case
|
|
656
|
+
case Oe: {
|
|
657
657
|
if (s.isNull) throw new Error();
|
|
658
658
|
e.PayloadType = s.asInt32();
|
|
659
659
|
break;
|
|
660
660
|
}
|
|
661
|
-
case
|
|
661
|
+
case ge: {
|
|
662
662
|
if (s.isNull) throw new Error();
|
|
663
663
|
e.VersionId = s.asString();
|
|
664
664
|
break;
|
|
665
665
|
}
|
|
666
|
-
case
|
|
666
|
+
case Pe: {
|
|
667
667
|
if (s.isNull) throw new Error();
|
|
668
668
|
e.UniqueSessionId = s.asString();
|
|
669
669
|
break;
|
|
670
670
|
}
|
|
671
|
-
case
|
|
671
|
+
case be: {
|
|
672
672
|
if (s.isNull) throw new Error();
|
|
673
673
|
e.ClientType = s.asInt32();
|
|
674
674
|
break;
|
|
675
675
|
}
|
|
676
|
-
case
|
|
676
|
+
case pe: {
|
|
677
677
|
if (s.isNull) throw new Error();
|
|
678
678
|
e.IsReady = s.asBool();
|
|
679
679
|
break;
|
|
680
680
|
}
|
|
681
|
-
case
|
|
681
|
+
case Fe: {
|
|
682
682
|
if (s.isNull) throw new Error();
|
|
683
|
-
e.Parameters =
|
|
683
|
+
e.Parameters = xe(s.asDictionary());
|
|
684
684
|
break;
|
|
685
685
|
}
|
|
686
|
-
case
|
|
686
|
+
case ve: {
|
|
687
687
|
if (s.isNull) throw new Error();
|
|
688
688
|
e.IsInternal = s.asBool();
|
|
689
689
|
break;
|
|
690
690
|
}
|
|
691
|
-
case
|
|
691
|
+
case Me: {
|
|
692
692
|
if (s.isNull) throw new Error();
|
|
693
693
|
e.ChannelLocale = s.asString();
|
|
694
694
|
break;
|
|
695
695
|
}
|
|
696
|
-
case
|
|
696
|
+
case Ve: {
|
|
697
697
|
if (s.isNull) throw new Error();
|
|
698
698
|
e.EmbeddedSpaceId = s.asString();
|
|
699
699
|
break;
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function xe(t) {
|
|
704
704
|
const e = /* @__PURE__ */ Object.create(null);
|
|
705
705
|
let s;
|
|
706
706
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -709,634 +709,634 @@ function ke(t) {
|
|
|
709
709
|
}
|
|
710
710
|
return e;
|
|
711
711
|
}
|
|
712
|
-
const
|
|
713
|
-
function
|
|
712
|
+
const He = 703025676, Ye = 814454131, Ke = 972460562, $e = 976255570, je = 1368629611, Xe = 1479280922, ze = 1533537016, We = 2274386296, Je = 2603556958, qe = 2885165957, Qe = 3568439632;
|
|
713
|
+
function Ze(t) {
|
|
714
714
|
const e = {};
|
|
715
|
-
return
|
|
715
|
+
return Ut(e), e;
|
|
716
716
|
}
|
|
717
|
-
function
|
|
718
|
-
return t.FunctionId =
|
|
717
|
+
function Ut(t) {
|
|
718
|
+
return t.FunctionId = T.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ResultTypeName = "", t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.IsCancellable = !1, t.Description = "", t.LlmInlineResult = !1, t.LlmCallOnlyOnce = !1, t.RequiresInstance = !1, t;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
const s = e ??
|
|
722
|
-
return
|
|
720
|
+
function ts(t, e) {
|
|
721
|
+
const s = e ?? Ze();
|
|
722
|
+
return Ut(s), es(t, s), s;
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function es(t, e) {
|
|
725
725
|
let s;
|
|
726
726
|
for (; (s = t.next()) !== null; )
|
|
727
727
|
switch (s.fieldId) {
|
|
728
|
-
case
|
|
728
|
+
case He: {
|
|
729
729
|
if (s.isNull) throw new Error();
|
|
730
730
|
e.ResultTypeName = s.asString();
|
|
731
731
|
break;
|
|
732
732
|
}
|
|
733
|
-
case
|
|
733
|
+
case Ye: {
|
|
734
734
|
if (s.isNull) throw new Error();
|
|
735
735
|
e.FunctionName = s.asString();
|
|
736
736
|
break;
|
|
737
737
|
}
|
|
738
|
-
case
|
|
738
|
+
case Ke: {
|
|
739
739
|
if (s.isNull) throw new Error();
|
|
740
740
|
e.EnumerableItemTypeName = s.asString();
|
|
741
741
|
break;
|
|
742
742
|
}
|
|
743
|
-
case
|
|
743
|
+
case $e: {
|
|
744
744
|
if (s.isNull) throw new Error();
|
|
745
745
|
e.FunctionId = s.asGuid();
|
|
746
746
|
break;
|
|
747
747
|
}
|
|
748
|
-
case
|
|
748
|
+
case je: {
|
|
749
749
|
if (s.isNull) throw new Error();
|
|
750
750
|
e.Description = s.asString();
|
|
751
751
|
break;
|
|
752
752
|
}
|
|
753
|
-
case
|
|
753
|
+
case Xe: {
|
|
754
754
|
if (s.isNull) throw new Error();
|
|
755
755
|
e.IsCancellable = s.asBool();
|
|
756
756
|
break;
|
|
757
757
|
}
|
|
758
|
-
case
|
|
758
|
+
case ze: {
|
|
759
759
|
if (s.isNull) throw new Error();
|
|
760
760
|
e.RequiresInstance = s.asBool();
|
|
761
761
|
break;
|
|
762
762
|
}
|
|
763
|
-
case
|
|
763
|
+
case We: {
|
|
764
764
|
if (s.isNull) throw new Error();
|
|
765
765
|
e.LlmInlineResult = s.asBool();
|
|
766
766
|
break;
|
|
767
767
|
}
|
|
768
|
-
case
|
|
768
|
+
case Je: {
|
|
769
769
|
if (s.isNull) throw new Error();
|
|
770
770
|
e.IsEnumerable = s.asBool();
|
|
771
771
|
break;
|
|
772
772
|
}
|
|
773
|
-
case
|
|
773
|
+
case qe: {
|
|
774
774
|
if (s.isNull) throw new Error();
|
|
775
|
-
e.Parameters =
|
|
775
|
+
e.Parameters = ss(s.asArray());
|
|
776
776
|
break;
|
|
777
777
|
}
|
|
778
|
-
case
|
|
778
|
+
case Qe: {
|
|
779
779
|
if (s.isNull) throw new Error();
|
|
780
780
|
e.LlmCallOnlyOnce = s.asBool();
|
|
781
781
|
break;
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function ss(t) {
|
|
786
786
|
const e = [];
|
|
787
787
|
let s;
|
|
788
788
|
for (; (s = t.next()) !== null; )
|
|
789
|
-
e.push(
|
|
789
|
+
e.push(fs(s.asObject()));
|
|
790
790
|
return e;
|
|
791
791
|
}
|
|
792
|
-
const
|
|
793
|
-
function
|
|
792
|
+
const rs = 607861992, ns = 894485888, is = 972460562, os = 1368629611, as = 1883521406, ls = 2603556958, Is = 3609695522, cs = 4075263697, Es = 4257460908;
|
|
793
|
+
function _s(t) {
|
|
794
794
|
const e = {};
|
|
795
|
-
return
|
|
795
|
+
return Dt(e), e;
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function Dt(t) {
|
|
798
798
|
return t.ParameterIndex = 0, t.ParameterName = "", t.TypeName = "", t.HasDefaultValue = !1, t.DefaultValueJson = "", t.DefaultValueData = new Uint8Array(0), t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.Description = "", t;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
801
|
-
const s = e ??
|
|
802
|
-
return
|
|
800
|
+
function fs(t, e) {
|
|
801
|
+
const s = e ?? _s();
|
|
802
|
+
return Dt(s), hs(t, s), s;
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function hs(t, e) {
|
|
805
805
|
let s;
|
|
806
806
|
for (; (s = t.next()) !== null; )
|
|
807
807
|
switch (s.fieldId) {
|
|
808
|
-
case
|
|
808
|
+
case rs: {
|
|
809
809
|
if (s.isNull) throw new Error();
|
|
810
810
|
e.HasDefaultValue = s.asBool();
|
|
811
811
|
break;
|
|
812
812
|
}
|
|
813
|
-
case
|
|
813
|
+
case ns: {
|
|
814
814
|
if (s.isNull) throw new Error();
|
|
815
815
|
e.DefaultValueJson = s.asString();
|
|
816
816
|
break;
|
|
817
817
|
}
|
|
818
|
-
case
|
|
818
|
+
case is: {
|
|
819
819
|
if (s.isNull) throw new Error();
|
|
820
820
|
e.EnumerableItemTypeName = s.asString();
|
|
821
821
|
break;
|
|
822
822
|
}
|
|
823
|
-
case
|
|
823
|
+
case os: {
|
|
824
824
|
if (s.isNull) throw new Error();
|
|
825
825
|
e.Description = s.asString();
|
|
826
826
|
break;
|
|
827
827
|
}
|
|
828
|
-
case
|
|
828
|
+
case as: {
|
|
829
829
|
if (s.isNull) throw new Error();
|
|
830
830
|
e.DefaultValueData = s.asBinary();
|
|
831
831
|
break;
|
|
832
832
|
}
|
|
833
|
-
case
|
|
833
|
+
case ls: {
|
|
834
834
|
if (s.isNull) throw new Error();
|
|
835
835
|
e.IsEnumerable = s.asBool();
|
|
836
836
|
break;
|
|
837
837
|
}
|
|
838
|
-
case
|
|
838
|
+
case Is: {
|
|
839
839
|
if (s.isNull) throw new Error();
|
|
840
840
|
e.TypeName = s.asString();
|
|
841
841
|
break;
|
|
842
842
|
}
|
|
843
|
-
case
|
|
843
|
+
case cs: {
|
|
844
844
|
if (s.isNull) throw new Error();
|
|
845
845
|
e.ParameterName = s.asString();
|
|
846
846
|
break;
|
|
847
847
|
}
|
|
848
|
-
case
|
|
848
|
+
case Es: {
|
|
849
849
|
if (s.isNull) throw new Error();
|
|
850
850
|
e.ParameterIndex = s.asInt32();
|
|
851
851
|
break;
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
|
-
const
|
|
856
|
-
function
|
|
855
|
+
const us = 3167053791, Ts = 3342364356, Ns = 3612929027;
|
|
856
|
+
function Rt(t) {
|
|
857
857
|
const e = {};
|
|
858
|
-
return
|
|
858
|
+
return Lt(e), e;
|
|
859
859
|
}
|
|
860
|
-
function
|
|
861
|
-
return t.Category = "", t.Type =
|
|
860
|
+
function Lt(t) {
|
|
861
|
+
return t.Category = "", t.Type = Nt.Face, t.FaceBlendshapes = [], t;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
864
|
-
const s = e ??
|
|
865
|
-
return
|
|
863
|
+
function As(t, e) {
|
|
864
|
+
const s = e ?? Rt();
|
|
865
|
+
return Lt(s), Ss(t, s), s;
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Ss(t, e) {
|
|
868
868
|
let s;
|
|
869
869
|
for (; (s = t.next()) !== null; )
|
|
870
870
|
switch (s.fieldId) {
|
|
871
|
-
case
|
|
871
|
+
case us: {
|
|
872
872
|
if (s.isNull) throw new Error();
|
|
873
873
|
e.Type = s.asInt32();
|
|
874
874
|
break;
|
|
875
875
|
}
|
|
876
|
-
case
|
|
876
|
+
case Ts: {
|
|
877
877
|
if (s.isNull) throw new Error();
|
|
878
|
-
e.FaceBlendshapes =
|
|
878
|
+
e.FaceBlendshapes = ds(s.asArray());
|
|
879
879
|
break;
|
|
880
880
|
}
|
|
881
|
-
case
|
|
881
|
+
case Ns: {
|
|
882
882
|
if (s.isNull) throw new Error();
|
|
883
883
|
e.Category = s.asString();
|
|
884
884
|
break;
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function ds(t) {
|
|
889
889
|
const e = [];
|
|
890
890
|
let s;
|
|
891
891
|
for (; (s = t.next()) !== null; )
|
|
892
892
|
e.push(s.asString());
|
|
893
893
|
return e;
|
|
894
894
|
}
|
|
895
|
-
const
|
|
896
|
-
function
|
|
895
|
+
const ys = 3612929027;
|
|
896
|
+
function mt(t) {
|
|
897
897
|
const e = {};
|
|
898
|
-
return
|
|
898
|
+
return Ot(e), e;
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function Ot(t) {
|
|
901
901
|
return t.Category = "", t;
|
|
902
902
|
}
|
|
903
|
-
function
|
|
904
|
-
const s = e ??
|
|
905
|
-
return
|
|
903
|
+
function Cs(t, e) {
|
|
904
|
+
const s = e ?? mt();
|
|
905
|
+
return Ot(s), ws(t, s), s;
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function ws(t, e) {
|
|
908
908
|
let s;
|
|
909
909
|
for (; (s = t.next()) !== null; )
|
|
910
910
|
switch (s.fieldId) {
|
|
911
|
-
case
|
|
911
|
+
case ys: {
|
|
912
912
|
if (s.isNull) throw new Error();
|
|
913
913
|
e.Category = s.asString();
|
|
914
914
|
break;
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
|
-
const
|
|
919
|
-
function
|
|
918
|
+
const Us = 1368629611, Ds = 2950031986, Rs = 3284746250, Ls = 4065070594;
|
|
919
|
+
function gt(t) {
|
|
920
920
|
const e = {};
|
|
921
|
-
return
|
|
921
|
+
return Pt(e), e;
|
|
922
922
|
}
|
|
923
|
-
function
|
|
924
|
-
return t.Description = "", t.Codec =
|
|
923
|
+
function Pt(t) {
|
|
924
|
+
return t.Description = "", t.Codec = St.H264, t.Width = 0, t.Height = 0, t;
|
|
925
925
|
}
|
|
926
|
-
function
|
|
927
|
-
const s = e ??
|
|
928
|
-
return
|
|
926
|
+
function ms(t, e) {
|
|
927
|
+
const s = e ?? gt();
|
|
928
|
+
return Pt(s), Os(t, s), s;
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function Os(t, e) {
|
|
931
931
|
let s;
|
|
932
932
|
for (; (s = t.next()) !== null; )
|
|
933
933
|
switch (s.fieldId) {
|
|
934
|
-
case
|
|
934
|
+
case Us: {
|
|
935
935
|
if (s.isNull) throw new Error();
|
|
936
936
|
e.Description = s.asString();
|
|
937
937
|
break;
|
|
938
938
|
}
|
|
939
|
-
case
|
|
939
|
+
case Ds: {
|
|
940
940
|
if (s.isNull) throw new Error();
|
|
941
941
|
e.Height = s.asInt32();
|
|
942
942
|
break;
|
|
943
943
|
}
|
|
944
|
-
case
|
|
944
|
+
case Rs: {
|
|
945
945
|
if (s.isNull) throw new Error();
|
|
946
946
|
e.Codec = s.asInt32();
|
|
947
947
|
break;
|
|
948
948
|
}
|
|
949
|
-
case
|
|
949
|
+
case Ls: {
|
|
950
950
|
if (s.isNull) throw new Error();
|
|
951
951
|
e.Width = s.asInt32();
|
|
952
952
|
break;
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
const
|
|
957
|
-
function
|
|
956
|
+
const gs = 3, Ps = 65539, bs = 693643444, ps = 1144553441, Fs = 1497620243, vs = 1559330978, Ms = 1999510636, Vs = 2277643855, ks = 2469008121, Gs = 3219210453, Bs = 3678477544, xs = 3696445035, Hs = 3707543140, Ys = 3712281496, Ks = 3823842552, $s = 3895362455, js = 3897397815, Xs = 4225107827;
|
|
957
|
+
function zs(t) {
|
|
958
958
|
const e = {};
|
|
959
|
-
return
|
|
959
|
+
return bt(e), e;
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function bt(t) {
|
|
962
962
|
return t.Clients = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelInstanceId = "", t.FirstUserId = "", t.ChannelUrl = "", t.ChannelId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.SessionId = "", t.Functions = /* @__PURE__ */ Object.create(null), t;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
const s =
|
|
966
|
-
return
|
|
964
|
+
function Ws(t, e) {
|
|
965
|
+
const s = O.create(t);
|
|
966
|
+
return Js(s, e);
|
|
967
967
|
}
|
|
968
|
-
function
|
|
969
|
-
const s = e ??
|
|
970
|
-
return
|
|
968
|
+
function Js(t, e) {
|
|
969
|
+
const s = e ?? zs();
|
|
970
|
+
return bt(s), qs(t, s), s;
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function qs(t, e) {
|
|
973
973
|
let s;
|
|
974
974
|
for (; (s = t.next()) !== null; )
|
|
975
975
|
switch (s.fieldId) {
|
|
976
|
-
case
|
|
976
|
+
case bs: {
|
|
977
977
|
if (s.isNull) throw new Error();
|
|
978
978
|
e.FirstUserId = s.asString();
|
|
979
979
|
break;
|
|
980
980
|
}
|
|
981
|
-
case
|
|
981
|
+
case ps: {
|
|
982
982
|
if (s.isNull) throw new Error();
|
|
983
|
-
e.Clients =
|
|
983
|
+
e.Clients = Zs(s.asDictionary());
|
|
984
984
|
break;
|
|
985
985
|
}
|
|
986
|
-
case
|
|
986
|
+
case Fs: {
|
|
987
987
|
if (s.isNull) throw new Error();
|
|
988
|
-
e.TrackingStreams =
|
|
988
|
+
e.TrackingStreams = tr(s.asDictionary());
|
|
989
989
|
break;
|
|
990
990
|
}
|
|
991
|
-
case
|
|
991
|
+
case vs: {
|
|
992
992
|
if (s.isNull) throw new Error();
|
|
993
993
|
e.ChannelId = s.asString();
|
|
994
994
|
break;
|
|
995
995
|
}
|
|
996
|
-
case
|
|
996
|
+
case Ms: {
|
|
997
997
|
if (s.isNull) throw new Error();
|
|
998
998
|
e.SessionId = s.asString();
|
|
999
999
|
break;
|
|
1000
1000
|
}
|
|
1001
|
-
case
|
|
1001
|
+
case Vs: {
|
|
1002
1002
|
if (s.isNull) throw new Error();
|
|
1003
1003
|
e.ChannelUrl = s.asString();
|
|
1004
1004
|
break;
|
|
1005
1005
|
}
|
|
1006
|
-
case
|
|
1006
|
+
case ks: {
|
|
1007
1007
|
if (s.isNull) throw new Error();
|
|
1008
1008
|
e.ChannelName = s.asString();
|
|
1009
1009
|
break;
|
|
1010
1010
|
}
|
|
1011
|
-
case
|
|
1011
|
+
case Gs: {
|
|
1012
1012
|
if (s.isNull) throw new Error();
|
|
1013
1013
|
e.OrganisationName = s.asString();
|
|
1014
1014
|
break;
|
|
1015
1015
|
}
|
|
1016
|
-
case
|
|
1016
|
+
case Bs: {
|
|
1017
1017
|
if (s.isNull) throw new Error();
|
|
1018
|
-
e.Functions =
|
|
1018
|
+
e.Functions = er(s.asDictionary());
|
|
1019
1019
|
break;
|
|
1020
1020
|
}
|
|
1021
|
-
case
|
|
1021
|
+
case xs: {
|
|
1022
1022
|
if (s.isNull) throw new Error();
|
|
1023
|
-
e.UIStreams =
|
|
1023
|
+
e.UIStreams = sr(s.asDictionary());
|
|
1024
1024
|
break;
|
|
1025
1025
|
}
|
|
1026
|
-
case
|
|
1026
|
+
case Hs: {
|
|
1027
1027
|
if (s.isNull) throw new Error();
|
|
1028
1028
|
e.SpaceId = s.asString();
|
|
1029
1029
|
break;
|
|
1030
1030
|
}
|
|
1031
|
-
case
|
|
1031
|
+
case Ys: {
|
|
1032
1032
|
if (s.isNull) throw new Error();
|
|
1033
1033
|
e.PrimaryUserId = s.asString();
|
|
1034
1034
|
break;
|
|
1035
1035
|
}
|
|
1036
|
-
case
|
|
1036
|
+
case Ks: {
|
|
1037
1037
|
if (s.isNull) throw new Error();
|
|
1038
1038
|
e.ChannelInstanceId = s.asString();
|
|
1039
1039
|
break;
|
|
1040
1040
|
}
|
|
1041
|
-
case
|
|
1041
|
+
case $s: {
|
|
1042
1042
|
if (s.isNull) throw new Error();
|
|
1043
|
-
e.AudioStreams =
|
|
1043
|
+
e.AudioStreams = rr(s.asDictionary());
|
|
1044
1044
|
break;
|
|
1045
1045
|
}
|
|
1046
|
-
case
|
|
1046
|
+
case js: {
|
|
1047
1047
|
if (s.isNull) throw new Error();
|
|
1048
|
-
e.VideoStreams =
|
|
1048
|
+
e.VideoStreams = nr(s.asDictionary());
|
|
1049
1049
|
break;
|
|
1050
1050
|
}
|
|
1051
|
-
case
|
|
1051
|
+
case Xs: {
|
|
1052
1052
|
if (s.isNull) throw new Error();
|
|
1053
1053
|
e.SpaceName = s.asString();
|
|
1054
1054
|
break;
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1059
|
-
const s =
|
|
1060
|
-
return
|
|
1058
|
+
function Qs(t, e) {
|
|
1059
|
+
const s = J(t, Ps, gs);
|
|
1060
|
+
return Ws(s, e);
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function Zs(t) {
|
|
1063
1063
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1064
1064
|
let s;
|
|
1065
1065
|
for (; (s = t.next()) !== null; ) {
|
|
1066
1066
|
const r = s.key.asInt32();
|
|
1067
|
-
e[r] =
|
|
1067
|
+
e[r] = Ge(s.value.asObject());
|
|
1068
1068
|
}
|
|
1069
1069
|
return e;
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function tr(t) {
|
|
1072
1072
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1073
1073
|
let s;
|
|
1074
1074
|
for (; (s = t.next()) !== null; ) {
|
|
1075
1075
|
const r = s.key.asString();
|
|
1076
|
-
e[r] =
|
|
1076
|
+
e[r] = br(s.value.asObject());
|
|
1077
1077
|
}
|
|
1078
1078
|
return e;
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function er(t) {
|
|
1081
1081
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1082
1082
|
let s;
|
|
1083
1083
|
for (; (s = t.next()) !== null; ) {
|
|
1084
1084
|
const r = s.key.asInt32();
|
|
1085
|
-
e[r] =
|
|
1085
|
+
e[r] = ir(s.value.asArray());
|
|
1086
1086
|
}
|
|
1087
1087
|
return e;
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function sr(t) {
|
|
1090
1090
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1091
1091
|
let s;
|
|
1092
1092
|
for (; (s = t.next()) !== null; ) {
|
|
1093
1093
|
const r = s.key.asString();
|
|
1094
|
-
e[r] =
|
|
1094
|
+
e[r] = Er(s.value.asObject());
|
|
1095
1095
|
}
|
|
1096
1096
|
return e;
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function rr(t) {
|
|
1099
1099
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1100
1100
|
let s;
|
|
1101
1101
|
for (; (s = t.next()) !== null; ) {
|
|
1102
1102
|
const r = s.key.asString();
|
|
1103
|
-
e[r] =
|
|
1103
|
+
e[r] = Ar(s.value.asObject());
|
|
1104
1104
|
}
|
|
1105
1105
|
return e;
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function nr(t) {
|
|
1108
1108
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1109
1109
|
let s;
|
|
1110
1110
|
for (; (s = t.next()) !== null; ) {
|
|
1111
1111
|
const r = s.key.asString();
|
|
1112
|
-
e[r] =
|
|
1112
|
+
e[r] = Dr(s.value.asObject());
|
|
1113
1113
|
}
|
|
1114
1114
|
return e;
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function ir(t) {
|
|
1117
1117
|
const e = [];
|
|
1118
1118
|
let s;
|
|
1119
1119
|
for (; (s = t.next()) !== null; )
|
|
1120
|
-
e.push(
|
|
1120
|
+
e.push(ts(s.asObject()));
|
|
1121
1121
|
return e;
|
|
1122
1122
|
}
|
|
1123
|
-
const
|
|
1124
|
-
function
|
|
1123
|
+
const or = 161083277, ar = 325678206, lr = 3469892363, Ir = 3645544153;
|
|
1124
|
+
function cr(t) {
|
|
1125
1125
|
const e = {};
|
|
1126
|
-
return
|
|
1126
|
+
return pt(e), e;
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1129
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1128
|
+
function pt(t) {
|
|
1129
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = mt(), t;
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1132
|
-
const s = e ??
|
|
1133
|
-
return
|
|
1131
|
+
function Er(t, e) {
|
|
1132
|
+
const s = e ?? cr();
|
|
1133
|
+
return pt(s), _r(t, s), s;
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function _r(t, e) {
|
|
1136
1136
|
let s;
|
|
1137
1137
|
for (; (s = t.next()) !== null; )
|
|
1138
1138
|
switch (s.fieldId) {
|
|
1139
|
-
case
|
|
1139
|
+
case or: {
|
|
1140
1140
|
if (s.isNull) throw new Error();
|
|
1141
1141
|
e.StreamId = s.asString();
|
|
1142
1142
|
break;
|
|
1143
1143
|
}
|
|
1144
|
-
case
|
|
1144
|
+
case ar: {
|
|
1145
1145
|
if (s.isNull) throw new Error();
|
|
1146
1146
|
e.ClientSessionId = s.asInt32();
|
|
1147
1147
|
break;
|
|
1148
1148
|
}
|
|
1149
|
-
case
|
|
1149
|
+
case lr: {
|
|
1150
1150
|
if (s.isNull) throw new Error();
|
|
1151
1151
|
e.TrackId = s.asInt32();
|
|
1152
1152
|
break;
|
|
1153
1153
|
}
|
|
1154
|
-
case
|
|
1154
|
+
case Ir: {
|
|
1155
1155
|
if (s.isNull) throw new Error();
|
|
1156
|
-
e.Info =
|
|
1156
|
+
e.Info = Cs(s.asObject());
|
|
1157
1157
|
break;
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
1160
|
}
|
|
1161
|
-
const
|
|
1162
|
-
function
|
|
1161
|
+
const fr = 161083277, hr = 325678206, ur = 3469892363, Tr = 3645544153;
|
|
1162
|
+
function Nr(t) {
|
|
1163
1163
|
const e = {};
|
|
1164
|
-
return
|
|
1164
|
+
return Ft(e), e;
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1167
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1166
|
+
function Ft(t) {
|
|
1167
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = yt(), t;
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1170
|
-
const s = e ??
|
|
1171
|
-
return
|
|
1169
|
+
function Ar(t, e) {
|
|
1170
|
+
const s = e ?? Nr();
|
|
1171
|
+
return Ft(s), Sr(t, s), s;
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function Sr(t, e) {
|
|
1174
1174
|
let s;
|
|
1175
1175
|
for (; (s = t.next()) !== null; )
|
|
1176
1176
|
switch (s.fieldId) {
|
|
1177
|
-
case
|
|
1177
|
+
case fr: {
|
|
1178
1178
|
if (s.isNull) throw new Error();
|
|
1179
1179
|
e.StreamId = s.asString();
|
|
1180
1180
|
break;
|
|
1181
1181
|
}
|
|
1182
|
-
case
|
|
1182
|
+
case hr: {
|
|
1183
1183
|
if (s.isNull) throw new Error();
|
|
1184
1184
|
e.ClientSessionId = s.asInt32();
|
|
1185
1185
|
break;
|
|
1186
1186
|
}
|
|
1187
|
-
case
|
|
1187
|
+
case ur: {
|
|
1188
1188
|
if (s.isNull) throw new Error();
|
|
1189
1189
|
e.TrackId = s.asInt32();
|
|
1190
1190
|
break;
|
|
1191
1191
|
}
|
|
1192
|
-
case
|
|
1192
|
+
case Tr: {
|
|
1193
1193
|
if (s.isNull) throw new Error();
|
|
1194
|
-
e.Info =
|
|
1194
|
+
e.Info = _e(s.asObject());
|
|
1195
1195
|
break;
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
|
-
const
|
|
1200
|
-
function
|
|
1199
|
+
const dr = 161083277, yr = 325678206, Cr = 3469892363, wr = 3645544153;
|
|
1200
|
+
function Ur(t) {
|
|
1201
1201
|
const e = {};
|
|
1202
|
-
return
|
|
1202
|
+
return vt(e), e;
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1204
|
+
function vt(t) {
|
|
1205
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = gt(), t;
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1208
|
-
const s = e ??
|
|
1209
|
-
return
|
|
1207
|
+
function Dr(t, e) {
|
|
1208
|
+
const s = e ?? Ur();
|
|
1209
|
+
return vt(s), Rr(t, s), s;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function Rr(t, e) {
|
|
1212
1212
|
let s;
|
|
1213
1213
|
for (; (s = t.next()) !== null; )
|
|
1214
1214
|
switch (s.fieldId) {
|
|
1215
|
-
case
|
|
1215
|
+
case dr: {
|
|
1216
1216
|
if (s.isNull) throw new Error();
|
|
1217
1217
|
e.StreamId = s.asString();
|
|
1218
1218
|
break;
|
|
1219
1219
|
}
|
|
1220
|
-
case
|
|
1220
|
+
case yr: {
|
|
1221
1221
|
if (s.isNull) throw new Error();
|
|
1222
1222
|
e.ClientSessionId = s.asInt32();
|
|
1223
1223
|
break;
|
|
1224
1224
|
}
|
|
1225
|
-
case
|
|
1225
|
+
case Cr: {
|
|
1226
1226
|
if (s.isNull) throw new Error();
|
|
1227
1227
|
e.TrackId = s.asInt32();
|
|
1228
1228
|
break;
|
|
1229
1229
|
}
|
|
1230
|
-
case
|
|
1230
|
+
case wr: {
|
|
1231
1231
|
if (s.isNull) throw new Error();
|
|
1232
|
-
e.Info =
|
|
1232
|
+
e.Info = ms(s.asObject());
|
|
1233
1233
|
break;
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
-
const
|
|
1238
|
-
function
|
|
1237
|
+
const Lr = 161083277, mr = 325678206, Or = 3469892363, gr = 3645544153;
|
|
1238
|
+
function Pr(t) {
|
|
1239
1239
|
const e = {};
|
|
1240
|
-
return
|
|
1240
|
+
return Mt(e), e;
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1242
|
+
function Mt(t) {
|
|
1243
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Rt(), t;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1246
|
-
const s = e ??
|
|
1247
|
-
return
|
|
1245
|
+
function br(t, e) {
|
|
1246
|
+
const s = e ?? Pr();
|
|
1247
|
+
return Mt(s), pr(t, s), s;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function pr(t, e) {
|
|
1250
1250
|
let s;
|
|
1251
1251
|
for (; (s = t.next()) !== null; )
|
|
1252
1252
|
switch (s.fieldId) {
|
|
1253
|
-
case
|
|
1253
|
+
case Lr: {
|
|
1254
1254
|
if (s.isNull) throw new Error();
|
|
1255
1255
|
e.StreamId = s.asString();
|
|
1256
1256
|
break;
|
|
1257
1257
|
}
|
|
1258
|
-
case
|
|
1258
|
+
case mr: {
|
|
1259
1259
|
if (s.isNull) throw new Error();
|
|
1260
1260
|
e.ClientSessionId = s.asInt32();
|
|
1261
1261
|
break;
|
|
1262
1262
|
}
|
|
1263
|
-
case
|
|
1263
|
+
case Or: {
|
|
1264
1264
|
if (s.isNull) throw new Error();
|
|
1265
1265
|
e.TrackId = s.asInt32();
|
|
1266
1266
|
break;
|
|
1267
1267
|
}
|
|
1268
|
-
case
|
|
1268
|
+
case gr: {
|
|
1269
1269
|
if (s.isNull) throw new Error();
|
|
1270
|
-
e.Info =
|
|
1270
|
+
e.Info = As(s.asObject());
|
|
1271
1271
|
break;
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
|
-
const
|
|
1276
|
-
function
|
|
1275
|
+
const Fr = 1405462580, vr = 2968276160;
|
|
1276
|
+
function Mr(t) {
|
|
1277
1277
|
const e = {};
|
|
1278
|
-
return
|
|
1278
|
+
return Vt(e), e;
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function Vt(t) {
|
|
1281
1281
|
return t.MimeType = "", t.Value = new Uint8Array(0), t;
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1284
|
-
const s = e ??
|
|
1285
|
-
return
|
|
1283
|
+
function Vr(t, e) {
|
|
1284
|
+
const s = e ?? Mr();
|
|
1285
|
+
return Vt(s), kr(t, s), s;
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function kr(t, e) {
|
|
1288
1288
|
let s;
|
|
1289
1289
|
for (; (s = t.next()) !== null; )
|
|
1290
1290
|
switch (s.fieldId) {
|
|
1291
|
-
case
|
|
1291
|
+
case Fr: {
|
|
1292
1292
|
if (s.isNull) throw new Error();
|
|
1293
1293
|
e.Value = s.asBinary();
|
|
1294
1294
|
break;
|
|
1295
1295
|
}
|
|
1296
|
-
case
|
|
1296
|
+
case vr: {
|
|
1297
1297
|
if (s.isNull) throw new Error();
|
|
1298
1298
|
e.MimeType = s.asString();
|
|
1299
1299
|
break;
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
const
|
|
1304
|
-
function
|
|
1303
|
+
const Gr = 1, Br = 2097188, xr = 979822885, Hr = 2374537704;
|
|
1304
|
+
function Yr(t) {
|
|
1305
1305
|
const e = {};
|
|
1306
|
-
return
|
|
1306
|
+
return kt(e), e;
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function kt(t) {
|
|
1309
1309
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1310
1310
|
}
|
|
1311
|
-
function
|
|
1312
|
-
const s =
|
|
1313
|
-
return
|
|
1311
|
+
function Kr(t, e) {
|
|
1312
|
+
const s = O.create(t);
|
|
1313
|
+
return $r(s, e);
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1316
|
-
const s = e ??
|
|
1317
|
-
return
|
|
1315
|
+
function $r(t, e) {
|
|
1316
|
+
const s = e ?? Yr();
|
|
1317
|
+
return kt(s), jr(t, s), s;
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function jr(t, e) {
|
|
1320
1320
|
let s;
|
|
1321
1321
|
for (; (s = t.next()) !== null; )
|
|
1322
1322
|
switch (s.fieldId) {
|
|
1323
|
-
case
|
|
1323
|
+
case xr: {
|
|
1324
1324
|
if (s.isNull) throw new Error();
|
|
1325
1325
|
e.StyleId = s.asString();
|
|
1326
1326
|
break;
|
|
1327
1327
|
}
|
|
1328
|
-
case
|
|
1328
|
+
case Hr: {
|
|
1329
1329
|
if (s.isNull) throw new Error();
|
|
1330
|
-
e.Style =
|
|
1330
|
+
e.Style = zr(s.asDictionary());
|
|
1331
1331
|
break;
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1336
|
-
const s =
|
|
1337
|
-
return
|
|
1335
|
+
function Xr(t, e) {
|
|
1336
|
+
const s = J(t, Br, Gr);
|
|
1337
|
+
return Kr(s, e);
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function zr(t) {
|
|
1340
1340
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1341
1341
|
let s;
|
|
1342
1342
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -1345,73 +1345,73 @@ function $r(t) {
|
|
|
1345
1345
|
}
|
|
1346
1346
|
return e;
|
|
1347
1347
|
}
|
|
1348
|
-
const
|
|
1349
|
-
function
|
|
1348
|
+
const Wr = 1, Jr = 2097192, qr = 2136687806;
|
|
1349
|
+
function Qr(t) {
|
|
1350
1350
|
const e = {};
|
|
1351
|
-
return
|
|
1351
|
+
return Gt(e), e;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function Gt(t) {
|
|
1354
1354
|
return t.Styles = [], t;
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1357
|
-
const s =
|
|
1358
|
-
return
|
|
1356
|
+
function Zr(t, e) {
|
|
1357
|
+
const s = O.create(t);
|
|
1358
|
+
return tn(s, e);
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1361
|
-
const s = e ??
|
|
1362
|
-
return
|
|
1360
|
+
function tn(t, e) {
|
|
1361
|
+
const s = e ?? Qr();
|
|
1362
|
+
return Gt(s), en(t, s), s;
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function en(t, e) {
|
|
1365
1365
|
let s;
|
|
1366
1366
|
for (; (s = t.next()) !== null; )
|
|
1367
1367
|
switch (s.fieldId) {
|
|
1368
|
-
case
|
|
1368
|
+
case qr: {
|
|
1369
1369
|
if (s.isNull) throw new Error();
|
|
1370
|
-
e.Styles =
|
|
1370
|
+
e.Styles = rn(s.asArray());
|
|
1371
1371
|
break;
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1376
|
-
const s =
|
|
1377
|
-
return
|
|
1375
|
+
function sn(t, e) {
|
|
1376
|
+
const s = J(t, Jr, Wr);
|
|
1377
|
+
return Zr(s, e);
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function rn(t) {
|
|
1380
1380
|
const e = [];
|
|
1381
1381
|
let s;
|
|
1382
1382
|
for (; (s = t.next()) !== null; )
|
|
1383
|
-
e.push(
|
|
1383
|
+
e.push(ln(s.asObject()));
|
|
1384
1384
|
return e;
|
|
1385
1385
|
}
|
|
1386
|
-
const
|
|
1387
|
-
function
|
|
1386
|
+
const nn = 979822885, on = 2374537704;
|
|
1387
|
+
function an(t) {
|
|
1388
1388
|
const e = {};
|
|
1389
|
-
return
|
|
1389
|
+
return Bt(e), e;
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1391
|
+
function Bt(t) {
|
|
1392
1392
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1395
|
-
const s = e ??
|
|
1396
|
-
return
|
|
1394
|
+
function ln(t, e) {
|
|
1395
|
+
const s = e ?? an();
|
|
1396
|
+
return Bt(s), In(t, s), s;
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function In(t, e) {
|
|
1399
1399
|
let s;
|
|
1400
1400
|
for (; (s = t.next()) !== null; )
|
|
1401
1401
|
switch (s.fieldId) {
|
|
1402
|
-
case
|
|
1402
|
+
case nn: {
|
|
1403
1403
|
if (s.isNull) throw new Error();
|
|
1404
1404
|
e.StyleId = s.asString();
|
|
1405
1405
|
break;
|
|
1406
1406
|
}
|
|
1407
|
-
case
|
|
1407
|
+
case on: {
|
|
1408
1408
|
if (s.isNull) throw new Error();
|
|
1409
|
-
e.Style =
|
|
1409
|
+
e.Style = cn(s.asDictionary());
|
|
1410
1410
|
break;
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function cn(t) {
|
|
1415
1415
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1416
1416
|
let s;
|
|
1417
1417
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -1420,61 +1420,63 @@ function an(t) {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
return e;
|
|
1422
1422
|
}
|
|
1423
|
-
const
|
|
1424
|
-
function
|
|
1423
|
+
const En = 1, _n = 2097190, fn = 425183262, hn = 653781469;
|
|
1424
|
+
function un(t) {
|
|
1425
1425
|
const e = {};
|
|
1426
|
-
return
|
|
1426
|
+
return xt(e), e;
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function xt(t) {
|
|
1429
1429
|
return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1432
|
-
const s =
|
|
1433
|
-
return
|
|
1431
|
+
function Tn(t, e) {
|
|
1432
|
+
const s = O.create(t);
|
|
1433
|
+
return Nn(s, e);
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1436
|
-
const s = e ??
|
|
1437
|
-
return
|
|
1435
|
+
function Nn(t, e) {
|
|
1436
|
+
const s = e ?? un();
|
|
1437
|
+
return xt(s), An(t, s), s;
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function An(t, e) {
|
|
1440
1440
|
let s;
|
|
1441
1441
|
for (; (s = t.next()) !== null; )
|
|
1442
1442
|
switch (s.fieldId) {
|
|
1443
|
-
case
|
|
1443
|
+
case fn: {
|
|
1444
1444
|
if (s.isNull) throw new Error();
|
|
1445
1445
|
e.Json = s.asString();
|
|
1446
1446
|
break;
|
|
1447
1447
|
}
|
|
1448
|
-
case
|
|
1448
|
+
case hn: {
|
|
1449
1449
|
if (s.isNull) throw new Error();
|
|
1450
|
-
e.Payloads =
|
|
1450
|
+
e.Payloads = dn(s.asDictionary());
|
|
1451
1451
|
break;
|
|
1452
1452
|
}
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1456
|
-
const s =
|
|
1457
|
-
return
|
|
1455
|
+
function Sn(t, e) {
|
|
1456
|
+
const s = J(t, _n, En);
|
|
1457
|
+
return Tn(s, e);
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function dn(t) {
|
|
1460
1460
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1461
1461
|
let s;
|
|
1462
1462
|
for (; (s = t.next()) !== null; ) {
|
|
1463
1463
|
const r = s.key.asString();
|
|
1464
|
-
e[r] =
|
|
1464
|
+
e[r] = Vr(s.value.asObject());
|
|
1465
1465
|
}
|
|
1466
1466
|
return e;
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function C(t) {
|
|
1469
1469
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1472
|
-
const e = {};
|
|
1473
|
-
for (
|
|
1474
|
-
|
|
1471
|
+
function Ht(t) {
|
|
1472
|
+
const e = {}, s = Object.keys(t);
|
|
1473
|
+
for (let r = 0; r < s.length; r++) {
|
|
1474
|
+
const n = s[r];
|
|
1475
|
+
e[n] = t[n];
|
|
1476
|
+
}
|
|
1475
1477
|
return e;
|
|
1476
1478
|
}
|
|
1477
|
-
function
|
|
1479
|
+
function Yt(t, e, s, r) {
|
|
1478
1480
|
if (!(t === void 0 && r)) {
|
|
1479
1481
|
if (Array.isArray(t)) {
|
|
1480
1482
|
const n = [];
|
|
@@ -1492,7 +1494,7 @@ function Bt(t, e, s, r) {
|
|
|
1492
1494
|
return [];
|
|
1493
1495
|
}
|
|
1494
1496
|
}
|
|
1495
|
-
function
|
|
1497
|
+
function ot(t, e) {
|
|
1496
1498
|
if (!t || typeof t != "object")
|
|
1497
1499
|
throw new Error(`Invalid UI node at ${e}`);
|
|
1498
1500
|
const s = t.Id, r = t.Type, n = t.Props, i = t.Children, o = t.StyleIds;
|
|
@@ -1502,15 +1504,15 @@ function rt(t, e) {
|
|
|
1502
1504
|
throw new Error(`Invalid or missing node type for ${s}`);
|
|
1503
1505
|
let a = {};
|
|
1504
1506
|
if (n != null) {
|
|
1505
|
-
if (!
|
|
1507
|
+
if (!C(n))
|
|
1506
1508
|
throw new Error(`Invalid props for node ${s}`);
|
|
1507
|
-
a =
|
|
1509
|
+
a = Ht(n);
|
|
1508
1510
|
}
|
|
1509
1511
|
let l = [];
|
|
1510
1512
|
Array.isArray(i) && (l = i.map(
|
|
1511
|
-
(c, E) =>
|
|
1513
|
+
(c, E) => ot(c ?? {}, `${e}.children[${E}]`)
|
|
1512
1514
|
));
|
|
1513
|
-
const I =
|
|
1515
|
+
const I = Yt(o, e, s, !1);
|
|
1514
1516
|
return {
|
|
1515
1517
|
id: s,
|
|
1516
1518
|
type: r,
|
|
@@ -1519,8 +1521,8 @@ function rt(t, e) {
|
|
|
1519
1521
|
styleIds: I ?? []
|
|
1520
1522
|
};
|
|
1521
1523
|
}
|
|
1522
|
-
function
|
|
1523
|
-
if (!
|
|
1524
|
+
function yn(t, e) {
|
|
1525
|
+
if (!C(t))
|
|
1524
1526
|
throw new Error(`Invalid text delta at ${e}`);
|
|
1525
1527
|
const s = t.NodeId, r = t.PropertyName, n = t.Start, i = t.End, o = t.InsertedText;
|
|
1526
1528
|
if (typeof s != "string" || s.length === 0)
|
|
@@ -1546,8 +1548,8 @@ function An(t, e) {
|
|
|
1546
1548
|
insertedText: o
|
|
1547
1549
|
};
|
|
1548
1550
|
}
|
|
1549
|
-
function
|
|
1550
|
-
if (!
|
|
1551
|
+
function Kt(t, e) {
|
|
1552
|
+
if (!C(t))
|
|
1551
1553
|
throw new Error(`Invalid UI diff node at ${e}`);
|
|
1552
1554
|
const s = t.Id, r = t.Type, n = t.StyleIds;
|
|
1553
1555
|
if (typeof s != "string" || s.length === 0)
|
|
@@ -1555,32 +1557,32 @@ function xt(t, e) {
|
|
|
1555
1557
|
if (typeof r != "string" || r.length === 0)
|
|
1556
1558
|
throw new Error(`Invalid diff type for ${s}`);
|
|
1557
1559
|
const i = Array.isArray(t.Added) ? t.Added.map(
|
|
1558
|
-
(E, _) =>
|
|
1560
|
+
(E, _) => ot(E ?? {}, `${e}.added[${_}]`)
|
|
1559
1561
|
) : [], o = [];
|
|
1560
1562
|
Array.isArray(t.Removed) && t.Removed.forEach((E, _) => {
|
|
1561
1563
|
if (typeof E == "string") {
|
|
1562
1564
|
o.push(E);
|
|
1563
1565
|
return;
|
|
1564
1566
|
}
|
|
1565
|
-
if (
|
|
1567
|
+
if (C(E) && typeof E.Id == "string") {
|
|
1566
1568
|
o.push(E.Id);
|
|
1567
1569
|
return;
|
|
1568
1570
|
}
|
|
1569
1571
|
throw new Error(`Invalid removed node at ${e}.removed[${_}]`);
|
|
1570
1572
|
});
|
|
1571
1573
|
const a = Array.isArray(t.Updated) ? t.Updated.map(
|
|
1572
|
-
(E, _) =>
|
|
1574
|
+
(E, _) => Kt(E ?? {}, `${e}.updated[${_}]`)
|
|
1573
1575
|
) : [], l = /* @__PURE__ */ new Map();
|
|
1574
|
-
if (
|
|
1576
|
+
if (C(t.ChangedProps))
|
|
1575
1577
|
for (const [E, _] of Object.entries(t.ChangedProps)) {
|
|
1576
|
-
if (!
|
|
1578
|
+
if (!C(_))
|
|
1577
1579
|
continue;
|
|
1578
1580
|
const h = _.New;
|
|
1579
|
-
h === void 0 ? l.set(E, void 0) :
|
|
1581
|
+
h === void 0 ? l.set(E, void 0) : C(h) ? l.set(E, Ht(h)) : l.set(E, h);
|
|
1580
1582
|
}
|
|
1581
1583
|
const I = Array.isArray(t.TextUpdates) ? t.TextUpdates.map(
|
|
1582
|
-
(E, _) =>
|
|
1583
|
-
) : [], c =
|
|
1584
|
+
(E, _) => yn(E ?? {}, `${e}.textUpdates[${_}]`)
|
|
1585
|
+
) : [], c = Yt(n, e, s, !0);
|
|
1584
1586
|
return {
|
|
1585
1587
|
id: s,
|
|
1586
1588
|
type: r,
|
|
@@ -1592,19 +1594,19 @@ function xt(t, e) {
|
|
|
1592
1594
|
...c !== void 0 ? { styleIds: c } : {}
|
|
1593
1595
|
};
|
|
1594
1596
|
}
|
|
1595
|
-
function
|
|
1597
|
+
function Cn(t) {
|
|
1596
1598
|
const e = /* @__PURE__ */ new Map();
|
|
1597
1599
|
for (const [s, r] of Object.entries(t))
|
|
1598
1600
|
e.set(s, r);
|
|
1599
1601
|
return e;
|
|
1600
1602
|
}
|
|
1601
|
-
function
|
|
1603
|
+
function wn(t, e, s) {
|
|
1602
1604
|
if (!t || typeof t != "object")
|
|
1603
|
-
throw new
|
|
1604
|
-
const r =
|
|
1605
|
+
throw new w("UI update graph is missing");
|
|
1606
|
+
const r = ot(t, "graph");
|
|
1605
1607
|
if (r.type !== "root")
|
|
1606
|
-
throw new
|
|
1607
|
-
const n =
|
|
1608
|
+
throw new w('UI update root element must have type "root"');
|
|
1609
|
+
const n = Dn(r.props, e);
|
|
1608
1610
|
return {
|
|
1609
1611
|
type: "full",
|
|
1610
1612
|
version: s,
|
|
@@ -1612,15 +1614,15 @@ function dn(t, e, s) {
|
|
|
1612
1614
|
metadata: n
|
|
1613
1615
|
};
|
|
1614
1616
|
}
|
|
1615
|
-
function
|
|
1617
|
+
function Un(t, e, s) {
|
|
1616
1618
|
if (!t || typeof t != "object")
|
|
1617
|
-
throw new
|
|
1618
|
-
if (!
|
|
1619
|
-
throw new
|
|
1619
|
+
throw new w("UI diff payload is missing");
|
|
1620
|
+
if (!C(e))
|
|
1621
|
+
throw new w("UI diff metadata must be an object");
|
|
1620
1622
|
const r = e.viewId;
|
|
1621
1623
|
if (typeof r != "string" || r.length === 0)
|
|
1622
|
-
throw new
|
|
1623
|
-
const n =
|
|
1624
|
+
throw new w("UI diff metadata is missing viewId");
|
|
1625
|
+
const n = Kt(t, "diff"), i = e.optimisticActionId === null || typeof e.optimisticActionId == "string" ? e.optimisticActionId : void 0, o = typeof e.isOptimistic == "boolean" ? e.isOptimistic : void 0, a = typeof e.isUpdate == "boolean" ? e.isUpdate : void 0, l = Q(e.optimisticPatch), I = Z(e.optimisticReconcile), c = {
|
|
1624
1626
|
viewId: r,
|
|
1625
1627
|
...i !== void 0 ? { optimisticActionId: i } : {},
|
|
1626
1628
|
...o !== void 0 ? { isOptimistic: o } : {},
|
|
@@ -1635,12 +1637,12 @@ function yn(t, e, s) {
|
|
|
1635
1637
|
metadata: c
|
|
1636
1638
|
};
|
|
1637
1639
|
}
|
|
1638
|
-
function
|
|
1640
|
+
function Dn(t, e) {
|
|
1639
1641
|
const s = t.viewId;
|
|
1640
1642
|
if (typeof s != "string" || s.length === 0)
|
|
1641
|
-
throw new
|
|
1642
|
-
let r = s, n = t.optimisticActionId === null || typeof t.optimisticActionId == "string" ? t.optimisticActionId : void 0, i = typeof t.isOptimistic == "boolean" ? t.isOptimistic : void 0, o = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0, a =
|
|
1643
|
-
return
|
|
1643
|
+
throw new w("UI update root is missing viewId");
|
|
1644
|
+
let r = s, n = t.optimisticActionId === null || typeof t.optimisticActionId == "string" ? t.optimisticActionId : void 0, i = typeof t.isOptimistic == "boolean" ? t.isOptimistic : void 0, o = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0, a = Q(t.optimisticPatch), l = Z(t.optimisticReconcile);
|
|
1645
|
+
return C(e) && (typeof e.viewId == "string" && e.viewId.length > 0 && (r = e.viewId), (e.optimisticActionId === null || typeof e.optimisticActionId == "string") && (n = e.optimisticActionId), typeof e.isOptimistic == "boolean" && (i = e.isOptimistic), typeof e.isUpdate == "boolean" && (o = e.isUpdate), e.optimisticPatch !== void 0 && (a = Q(e.optimisticPatch)), e.optimisticReconcile !== void 0 && (l = Z(e.optimisticReconcile))), {
|
|
1644
1646
|
viewId: r,
|
|
1645
1647
|
...n !== void 0 ? { optimisticActionId: n } : {},
|
|
1646
1648
|
...i !== void 0 ? { isOptimistic: i } : {},
|
|
@@ -1649,8 +1651,8 @@ function Cn(t, e) {
|
|
|
1649
1651
|
...l ? { optimisticReconcile: l } : {}
|
|
1650
1652
|
};
|
|
1651
1653
|
}
|
|
1652
|
-
function
|
|
1653
|
-
if (!
|
|
1654
|
+
function Q(t) {
|
|
1655
|
+
if (!C(t))
|
|
1654
1656
|
return;
|
|
1655
1657
|
const e = t, s = e.id, r = e.actionId, n = e.ordinal, i = e.baseVersion, o = e.supersedes;
|
|
1656
1658
|
if (typeof s != "string" || s.length === 0 || typeof r != "string" || r.length === 0 || typeof n != "number" || !Number.isFinite(n) || typeof i != "number" || !Number.isFinite(i))
|
|
@@ -1670,8 +1672,8 @@ function W(t) {
|
|
|
1670
1672
|
...a && a.length > 0 ? { supersedes: a } : {}
|
|
1671
1673
|
};
|
|
1672
1674
|
}
|
|
1673
|
-
function
|
|
1674
|
-
if (!
|
|
1675
|
+
function Z(t) {
|
|
1676
|
+
if (!C(t))
|
|
1675
1677
|
return;
|
|
1676
1678
|
const e = t, s = e.baseVersion, r = e.drop;
|
|
1677
1679
|
if (typeof s != "number" || !Number.isFinite(s))
|
|
@@ -1688,32 +1690,32 @@ function J(t) {
|
|
|
1688
1690
|
...n && n.length > 0 ? { drop: n } : {}
|
|
1689
1691
|
};
|
|
1690
1692
|
}
|
|
1691
|
-
class
|
|
1693
|
+
class w extends Error {
|
|
1692
1694
|
constructor(e, s) {
|
|
1693
1695
|
super(e), this.causeError = s, this.name = "UiUpdateParseError", s instanceof Error && (this.stack = s.stack);
|
|
1694
1696
|
}
|
|
1695
1697
|
}
|
|
1696
|
-
function
|
|
1698
|
+
function Rn(t) {
|
|
1697
1699
|
let e;
|
|
1698
1700
|
try {
|
|
1699
1701
|
e = JSON.parse(t.Json);
|
|
1700
1702
|
} catch (o) {
|
|
1701
|
-
throw new
|
|
1703
|
+
throw new w("Failed to parse UIUpdate.Json payload", o);
|
|
1702
1704
|
}
|
|
1703
1705
|
if (!e || typeof e != "object")
|
|
1704
|
-
throw new
|
|
1706
|
+
throw new w("UI update snapshot must be an object");
|
|
1705
1707
|
const { type: s, version: r } = e;
|
|
1706
1708
|
if (s !== "full" && s !== "diff")
|
|
1707
|
-
throw new
|
|
1709
|
+
throw new w(`Unknown UI update type: ${String(s)}`);
|
|
1708
1710
|
if (typeof r != "number")
|
|
1709
|
-
throw new
|
|
1710
|
-
const n = s === "full" ?
|
|
1711
|
+
throw new w("UI update version must be a number");
|
|
1712
|
+
const n = s === "full" ? wn(e.graph, e.metadata, r) : Un(e.diff, e.metadata, r), i = t.Payloads ? Cn(t.Payloads) : /* @__PURE__ */ new Map();
|
|
1711
1713
|
return {
|
|
1712
1714
|
snapshot: n,
|
|
1713
1715
|
payloads: i
|
|
1714
1716
|
};
|
|
1715
1717
|
}
|
|
1716
|
-
class
|
|
1718
|
+
class Ln {
|
|
1717
1719
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1718
1720
|
cache = /* @__PURE__ */ new Map();
|
|
1719
1721
|
/**
|
|
@@ -1794,7 +1796,7 @@ class Un {
|
|
|
1794
1796
|
return this.cache.size;
|
|
1795
1797
|
}
|
|
1796
1798
|
}
|
|
1797
|
-
class
|
|
1799
|
+
class mn {
|
|
1798
1800
|
views = /* @__PURE__ */ new Map();
|
|
1799
1801
|
listeners = /* @__PURE__ */ new Set();
|
|
1800
1802
|
payloads = /* @__PURE__ */ new Map();
|
|
@@ -1816,7 +1818,7 @@ class Dn {
|
|
|
1816
1818
|
patchesDirty = !0;
|
|
1817
1819
|
payloadsDirty = !0;
|
|
1818
1820
|
// Handler cache for stable event handlers
|
|
1819
|
-
handlerCache = new
|
|
1821
|
+
handlerCache = new Ln();
|
|
1820
1822
|
getSortedPatches(e) {
|
|
1821
1823
|
const s = this.buildPatchCacheKey(e.patches);
|
|
1822
1824
|
if (e.sortedPatchesCacheKey === s && e.sortedPatchesCache)
|
|
@@ -1864,12 +1866,12 @@ class Dn {
|
|
|
1864
1866
|
o.patches.delete(c) && (l = !0, this.patchesDirty = !0, this.invalidatePatchCache(o));
|
|
1865
1867
|
const I = o.composite ?? o.baseline;
|
|
1866
1868
|
if (s.type === "full")
|
|
1867
|
-
o.baseline = s.root, o.composite = s.root, o.baselineVersion = n.optimisticReconcile?.baseVersion ?? s.version, o.patches.clear(), this.invalidatePatchCache(o), o.version = s.version, l = !0, this.viewsDirty = !0, this.patchesDirty = !0, this.structureChanged = !0, s.root &&
|
|
1869
|
+
o.baseline = s.root, o.composite = s.root, o.baselineVersion = n.optimisticReconcile?.baseVersion ?? s.version, o.patches.clear(), this.invalidatePatchCache(o), o.version = s.version, l = !0, this.viewsDirty = !0, this.patchesDirty = !0, this.structureChanged = !0, s.root && b(s.root, this.changedNodeIds);
|
|
1868
1870
|
else if (n.optimisticPatch) {
|
|
1869
1871
|
if (!I)
|
|
1870
1872
|
return !1;
|
|
1871
|
-
const c =
|
|
1872
|
-
c !== I && (o.composite = c, l = !0, this.viewsDirty = !0,
|
|
1873
|
+
const c = X(I, s.diff);
|
|
1874
|
+
c !== I && (o.composite = c, l = !0, this.viewsDirty = !0, j(I, c, this.changedNodeIds));
|
|
1873
1875
|
const E = n.optimisticPatch, _ = {
|
|
1874
1876
|
id: E.id,
|
|
1875
1877
|
actionId: E.actionId,
|
|
@@ -1882,15 +1884,15 @@ class Dn {
|
|
|
1882
1884
|
const c = o.baseline ?? I;
|
|
1883
1885
|
if (!c)
|
|
1884
1886
|
return !1;
|
|
1885
|
-
const E =
|
|
1887
|
+
const E = X(c, s.diff);
|
|
1886
1888
|
E !== c ? (o.baseline = E, l = !0, this.viewsDirty = !0) : o.baseline = E, o.baselineVersion = n.optimisticReconcile?.baseVersion ?? s.version;
|
|
1887
1889
|
let _ = o.baseline ?? E;
|
|
1888
1890
|
const h = this.getSortedPatches(o);
|
|
1889
|
-
for (const
|
|
1890
|
-
const f =
|
|
1891
|
-
f !== _ && (l = !0, this.viewsDirty = !0), _ = f,
|
|
1891
|
+
for (const N of h) {
|
|
1892
|
+
const f = X(_, N.diff);
|
|
1893
|
+
f !== _ && (l = !0, this.viewsDirty = !0), _ = f, N.baseVersion = o.baselineVersion;
|
|
1892
1894
|
}
|
|
1893
|
-
o.composite !== _ && (o.composite = _, l = !0, this.viewsDirty = !0), I && _ ?
|
|
1895
|
+
o.composite !== _ && (o.composite = _, l = !0, this.viewsDirty = !0), I && _ ? j(I, _, this.changedNodeIds) : _ && b(_, this.changedNodeIds), o.version = s.version;
|
|
1894
1896
|
}
|
|
1895
1897
|
for (const [c, E] of r)
|
|
1896
1898
|
this.payloads.get(c) !== E && (this.payloads.set(c, E), l = !0, this.payloadsDirty = !0);
|
|
@@ -1918,24 +1920,24 @@ class Dn {
|
|
|
1918
1920
|
a().delete(_) && (r = !0, this.structureChanged = !0);
|
|
1919
1921
|
if (e.upsertViews && e.upsertViews.length > 0)
|
|
1920
1922
|
for (const [_, h] of e.upsertViews) {
|
|
1921
|
-
const
|
|
1922
|
-
f !== h && (
|
|
1923
|
+
const N = a(), f = N.get(_);
|
|
1924
|
+
f !== h && (N.set(_, h), r = !0, f ? j(f, h, this.changedNodeIds) : (b(h, this.changedNodeIds), this.structureChanged = !0));
|
|
1923
1925
|
}
|
|
1924
1926
|
if (e.deletePayloads && e.deletePayloads.length > 0)
|
|
1925
1927
|
for (const _ of e.deletePayloads)
|
|
1926
1928
|
l().delete(_) && (r = !0);
|
|
1927
1929
|
if (e.upsertPayloads && e.upsertPayloads.length > 0)
|
|
1928
1930
|
for (const [_, h] of e.upsertPayloads) {
|
|
1929
|
-
const
|
|
1930
|
-
|
|
1931
|
+
const N = l();
|
|
1932
|
+
N.get(_) !== h && (N.set(_, h), r = !0);
|
|
1931
1933
|
}
|
|
1932
1934
|
if (e.deleteOptimisticPatchesForViews && e.deleteOptimisticPatchesForViews.length > 0)
|
|
1933
1935
|
for (const _ of e.deleteOptimisticPatchesForViews)
|
|
1934
1936
|
I().delete(_) && (r = !0);
|
|
1935
1937
|
if (e.upsertOptimisticPatches && e.upsertOptimisticPatches.length > 0)
|
|
1936
1938
|
for (const [_, h] of e.upsertOptimisticPatches) {
|
|
1937
|
-
const
|
|
1938
|
-
|
|
1939
|
+
const N = I(), f = N.get(_);
|
|
1940
|
+
bn(f, h) || (N.set(_, h), r = !0);
|
|
1939
1941
|
}
|
|
1940
1942
|
const c = e.rootViewId ?? this.snapshot.rootViewId;
|
|
1941
1943
|
c !== this.snapshot.rootViewId && (r = !0, this.structureChanged = !0);
|
|
@@ -1958,7 +1960,7 @@ class Dn {
|
|
|
1958
1960
|
(s.rootViewId !== e.rootViewId || s.views.size !== e.views.size) && (this.structureChanged = !0);
|
|
1959
1961
|
for (const [n, i] of e.views) {
|
|
1960
1962
|
const o = s.views.get(n);
|
|
1961
|
-
o ?
|
|
1963
|
+
o ? j(o, i, this.changedNodeIds) : (b(i, this.changedNodeIds), this.structureChanged = !0);
|
|
1962
1964
|
}
|
|
1963
1965
|
for (const n of this.changedNodeIds)
|
|
1964
1966
|
this.nodeVersions.set(n, (this.nodeVersions.get(n) ?? 0) + 1);
|
|
@@ -1991,7 +1993,7 @@ class Dn {
|
|
|
1991
1993
|
if (s)
|
|
1992
1994
|
return s;
|
|
1993
1995
|
for (const r of this.snapshot.views.values()) {
|
|
1994
|
-
const n =
|
|
1996
|
+
const n = jt(r, e);
|
|
1995
1997
|
if (n)
|
|
1996
1998
|
return n;
|
|
1997
1999
|
}
|
|
@@ -2062,7 +2064,7 @@ class Dn {
|
|
|
2062
2064
|
}
|
|
2063
2065
|
}
|
|
2064
2066
|
}
|
|
2065
|
-
class
|
|
2067
|
+
class On {
|
|
2066
2068
|
streams = /* @__PURE__ */ new Map();
|
|
2067
2069
|
listeners = /* @__PURE__ */ new Set();
|
|
2068
2070
|
apply(e, s) {
|
|
@@ -2126,54 +2128,59 @@ class Rn {
|
|
|
2126
2128
|
}
|
|
2127
2129
|
getOrCreateStreamEntry(e) {
|
|
2128
2130
|
let s = this.streams.get(e);
|
|
2129
|
-
return s || (s = { store: new
|
|
2131
|
+
return s || (s = { store: new mn() }, this.streams.set(e, s)), s;
|
|
2130
2132
|
}
|
|
2131
2133
|
notify(e) {
|
|
2132
2134
|
for (const s of this.listeners)
|
|
2133
2135
|
s(e);
|
|
2134
2136
|
}
|
|
2135
2137
|
}
|
|
2136
|
-
function
|
|
2138
|
+
function X(t, e, s) {
|
|
2137
2139
|
if (t.id !== e.id)
|
|
2138
2140
|
return t;
|
|
2139
2141
|
let r = t, n = !1;
|
|
2140
2142
|
if (e.textUpdates.length > 0) {
|
|
2141
|
-
const f =
|
|
2143
|
+
const f = Fn(t, e.textUpdates);
|
|
2142
2144
|
r = f.node, n = f.changed;
|
|
2143
2145
|
}
|
|
2144
2146
|
let i = !1, o = r.props;
|
|
2145
2147
|
if (e.changedProps.size > 0)
|
|
2146
|
-
for (const [f,
|
|
2147
|
-
const
|
|
2148
|
-
if (
|
|
2149
|
-
(
|
|
2150
|
-
else if (
|
|
2151
|
-
const
|
|
2152
|
-
|
|
2148
|
+
for (const [f, y] of e.changedProps.entries()) {
|
|
2149
|
+
const L = o[f];
|
|
2150
|
+
if (y === void 0)
|
|
2151
|
+
(L !== void 0 || f in o) && (i || (o = k(o), i = !0), delete o[f]);
|
|
2152
|
+
else if (tt(y)) {
|
|
2153
|
+
const g = k(y);
|
|
2154
|
+
v(g, L) || (i || (o = k(o), i = !0), o[f] = g);
|
|
2153
2155
|
} else
|
|
2154
|
-
|
|
2156
|
+
v(y, L) || (i || (o = k(o), i = !0), o[f] = y);
|
|
2155
2157
|
}
|
|
2156
2158
|
let a = !1, l = r.styleIds;
|
|
2157
|
-
e.styleIds !== void 0 && (
|
|
2159
|
+
e.styleIds !== void 0 && (Xt(r.styleIds, e.styleIds) || (l = e.styleIds, a = !0));
|
|
2158
2160
|
const I = r.children ?? [];
|
|
2159
2161
|
let c = I, E = !1;
|
|
2160
2162
|
if (e.removed.length > 0) {
|
|
2161
|
-
const f = new Set(
|
|
2162
|
-
|
|
2163
|
+
const f = e.removed, y = f.length > 8, L = y ? new Set(f) : void 0, g = y ? (u) => L.has(u) : (u) => f.includes(u);
|
|
2164
|
+
let d;
|
|
2165
|
+
for (let u = 0; u < c.length; u++) {
|
|
2166
|
+
const D = c[u];
|
|
2167
|
+
g(D.id) ? d || (d = c.slice(0, u)) : d && d.push(D);
|
|
2168
|
+
}
|
|
2169
|
+
d && (c = d, E = !0);
|
|
2163
2170
|
}
|
|
2164
2171
|
if (e.updated.length > 0) {
|
|
2165
|
-
const f = new Map(
|
|
2166
|
-
let
|
|
2167
|
-
for (let
|
|
2168
|
-
const
|
|
2169
|
-
if (!
|
|
2172
|
+
const f = e.updated, y = f.length > 8, L = y ? new Map(f.map((u) => [u.id, u])) : void 0, g = y ? (u) => L.get(u) : (u) => f.find((D) => D.id === u);
|
|
2173
|
+
let d;
|
|
2174
|
+
for (let u = 0; u < c.length; u++) {
|
|
2175
|
+
const D = c[u], at = g(D.id);
|
|
2176
|
+
if (!at)
|
|
2170
2177
|
continue;
|
|
2171
|
-
const
|
|
2172
|
-
|
|
2178
|
+
const lt = X(D, at);
|
|
2179
|
+
lt !== D && (d || (d = c.slice()), d[u] = lt);
|
|
2173
2180
|
}
|
|
2174
|
-
|
|
2181
|
+
d && (c = d, E = !0);
|
|
2175
2182
|
}
|
|
2176
|
-
e.added.length > 0 && (c =
|
|
2183
|
+
e.added.length > 0 && (c = c.concat(e.added), E = !0);
|
|
2177
2184
|
const _ = r.type !== e.type;
|
|
2178
2185
|
return n || i || _ || a || E ? !i && !E && !_ && !a ? r : {
|
|
2179
2186
|
id: e.id,
|
|
@@ -2183,53 +2190,53 @@ function K(t, e, s) {
|
|
|
2183
2190
|
styleIds: a ? l : r.styleIds
|
|
2184
2191
|
} : t;
|
|
2185
2192
|
}
|
|
2186
|
-
function
|
|
2193
|
+
function b(t, e) {
|
|
2187
2194
|
if (e.add(t.id), t.children)
|
|
2188
2195
|
for (const s of t.children)
|
|
2189
|
-
|
|
2196
|
+
b(s, e);
|
|
2190
2197
|
}
|
|
2191
|
-
const
|
|
2192
|
-
function
|
|
2193
|
-
for (;
|
|
2194
|
-
|
|
2195
|
-
return
|
|
2198
|
+
const $ = [];
|
|
2199
|
+
function gn(t) {
|
|
2200
|
+
for (; $.length <= t; )
|
|
2201
|
+
$.push(/* @__PURE__ */ new Map());
|
|
2202
|
+
return $[t].clear(), $[t];
|
|
2196
2203
|
}
|
|
2197
|
-
function
|
|
2198
|
-
|
|
2204
|
+
function j(t, e, s) {
|
|
2205
|
+
$t(t, e, s, 0);
|
|
2199
2206
|
}
|
|
2200
|
-
function
|
|
2207
|
+
function $t(t, e, s, r) {
|
|
2201
2208
|
if (t === e)
|
|
2202
2209
|
return;
|
|
2203
|
-
(t.type !== e.type || !
|
|
2210
|
+
(t.type !== e.type || !Pn(t.props, e.props) || !Xt(t.styleIds, e.styleIds)) && s.add(e.id);
|
|
2204
2211
|
const i = t.children ?? [], o = e.children ?? [];
|
|
2205
2212
|
if (i !== o) {
|
|
2206
|
-
const a =
|
|
2213
|
+
const a = gn(r);
|
|
2207
2214
|
for (const l of i)
|
|
2208
2215
|
a.set(l.id, l);
|
|
2209
2216
|
for (const l of o) {
|
|
2210
2217
|
const I = a.get(l.id);
|
|
2211
|
-
I ?
|
|
2218
|
+
I ? $t(I, l, s, r + 1) : b(l, s);
|
|
2212
2219
|
}
|
|
2213
2220
|
i.length !== o.length && s.add(e.id);
|
|
2214
2221
|
}
|
|
2215
2222
|
}
|
|
2216
|
-
function
|
|
2217
|
-
return
|
|
2223
|
+
function Pn(t, e) {
|
|
2224
|
+
return v(t, e);
|
|
2218
2225
|
}
|
|
2219
|
-
function
|
|
2226
|
+
function jt(t, e) {
|
|
2220
2227
|
if (t.id === e)
|
|
2221
2228
|
return t;
|
|
2222
2229
|
if (t.children)
|
|
2223
2230
|
for (const s of t.children) {
|
|
2224
|
-
const r =
|
|
2231
|
+
const r = jt(s, e);
|
|
2225
2232
|
if (r)
|
|
2226
2233
|
return r;
|
|
2227
2234
|
}
|
|
2228
2235
|
}
|
|
2229
|
-
function
|
|
2230
|
-
return
|
|
2236
|
+
function Xt(t, e) {
|
|
2237
|
+
return v(t, e);
|
|
2231
2238
|
}
|
|
2232
|
-
function
|
|
2239
|
+
function bn(t, e) {
|
|
2233
2240
|
if (t === e) return !0;
|
|
2234
2241
|
if (!t || !e || t.length !== e.length) return !1;
|
|
2235
2242
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -2239,24 +2246,24 @@ function On(t, e) {
|
|
|
2239
2246
|
}
|
|
2240
2247
|
return !0;
|
|
2241
2248
|
}
|
|
2242
|
-
function
|
|
2249
|
+
function pn(t, e) {
|
|
2243
2250
|
if (e.length === 0)
|
|
2244
2251
|
return t;
|
|
2245
2252
|
const s = [...e].sort((i, o) => i.start - o.start);
|
|
2246
2253
|
let r = t, n = 0;
|
|
2247
2254
|
for (const i of s) {
|
|
2248
|
-
const o =
|
|
2255
|
+
const o = ct(i.start + n, 0, r.length);
|
|
2249
2256
|
if (i.end == null) {
|
|
2250
|
-
const c = r.slice(o), E =
|
|
2257
|
+
const c = r.slice(o), E = vn(c, i.insertedText);
|
|
2251
2258
|
r = r.slice(0, o) + i.insertedText + c.slice(E), n += i.insertedText.length - E;
|
|
2252
2259
|
continue;
|
|
2253
2260
|
}
|
|
2254
|
-
const a = i.end + n, l =
|
|
2261
|
+
const a = i.end + n, l = ct(a, o, r.length), I = l - o;
|
|
2255
2262
|
r = r.slice(0, o) + i.insertedText + r.slice(l), n += i.insertedText.length - I;
|
|
2256
2263
|
}
|
|
2257
2264
|
return r;
|
|
2258
2265
|
}
|
|
2259
|
-
function
|
|
2266
|
+
function Fn(t, e, s) {
|
|
2260
2267
|
if (e.length === 0)
|
|
2261
2268
|
return { node: t, changed: !1 };
|
|
2262
2269
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -2264,9 +2271,9 @@ function Pn(t, e, s) {
|
|
|
2264
2271
|
const i = r.get(n.nodeId);
|
|
2265
2272
|
i ? i.push(n) : r.set(n.nodeId, [n]);
|
|
2266
2273
|
}
|
|
2267
|
-
return
|
|
2274
|
+
return zt(t, r);
|
|
2268
2275
|
}
|
|
2269
|
-
function
|
|
2276
|
+
function zt(t, e, s) {
|
|
2270
2277
|
const r = e.get(t.id) ?? [];
|
|
2271
2278
|
let n = !1, i = t.props;
|
|
2272
2279
|
if (r.length > 0) {
|
|
@@ -2276,8 +2283,8 @@ function $t(t, e, s) {
|
|
|
2276
2283
|
E ? E.push(c) : I.set(c.propertyName, [c]);
|
|
2277
2284
|
}
|
|
2278
2285
|
for (const [c, E] of I.entries()) {
|
|
2279
|
-
const _ = i[c],
|
|
2280
|
-
n || (i =
|
|
2286
|
+
const _ = i[c], N = pn(typeof _ == "string" ? _ : "", E);
|
|
2287
|
+
n || (i = k(i), n = !0), i[c] = N;
|
|
2281
2288
|
}
|
|
2282
2289
|
}
|
|
2283
2290
|
let o = !1;
|
|
@@ -2286,7 +2293,7 @@ function $t(t, e, s) {
|
|
|
2286
2293
|
if (a.length > 0) {
|
|
2287
2294
|
let I;
|
|
2288
2295
|
for (let c = 0; c < a.length; c++) {
|
|
2289
|
-
const E = a[c], _ =
|
|
2296
|
+
const E = a[c], _ = zt(E, e);
|
|
2290
2297
|
_.changed && (I || (I = [...a]), I[c] = _.node);
|
|
2291
2298
|
}
|
|
2292
2299
|
I && (l = I, o = !0);
|
|
@@ -2302,72 +2309,83 @@ function $t(t, e, s) {
|
|
|
2302
2309
|
changed: !0
|
|
2303
2310
|
};
|
|
2304
2311
|
}
|
|
2305
|
-
function
|
|
2312
|
+
function ct(t, e, s) {
|
|
2306
2313
|
return Math.max(e, Math.min(s, t));
|
|
2307
2314
|
}
|
|
2308
|
-
function
|
|
2315
|
+
function vn(t, e) {
|
|
2309
2316
|
const s = Math.min(t.length, e.length);
|
|
2310
2317
|
let r = 0;
|
|
2311
2318
|
for (; r < s && t.charCodeAt(r) === e.charCodeAt(r); )
|
|
2312
2319
|
r++;
|
|
2313
2320
|
return r;
|
|
2314
2321
|
}
|
|
2315
|
-
function
|
|
2316
|
-
const e = {};
|
|
2317
|
-
for (
|
|
2318
|
-
|
|
2322
|
+
function k(t) {
|
|
2323
|
+
const e = {}, s = Object.keys(t);
|
|
2324
|
+
for (let r = 0; r < s.length; r++) {
|
|
2325
|
+
const n = s[r];
|
|
2326
|
+
e[n] = t[n];
|
|
2327
|
+
}
|
|
2319
2328
|
return e;
|
|
2320
2329
|
}
|
|
2321
|
-
function
|
|
2330
|
+
function tt(t) {
|
|
2322
2331
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
2323
2332
|
}
|
|
2324
|
-
function
|
|
2333
|
+
function v(t, e) {
|
|
2325
2334
|
if (Object.is(t, e))
|
|
2326
2335
|
return !0;
|
|
2327
2336
|
if (Array.isArray(t) && Array.isArray(e)) {
|
|
2328
2337
|
if (t.length !== e.length)
|
|
2329
2338
|
return !1;
|
|
2330
2339
|
for (let s = 0; s < t.length; s++)
|
|
2331
|
-
if (!
|
|
2340
|
+
if (!v(t[s], e[s]))
|
|
2332
2341
|
return !1;
|
|
2333
2342
|
return !0;
|
|
2334
2343
|
}
|
|
2335
|
-
if (
|
|
2344
|
+
if (tt(t) && tt(e)) {
|
|
2336
2345
|
const s = Object.keys(t), r = Object.keys(e);
|
|
2337
2346
|
if (s.length !== r.length)
|
|
2338
2347
|
return !1;
|
|
2339
2348
|
for (const n of s)
|
|
2340
|
-
if (!
|
|
2349
|
+
if (!v(t[n], e[n]))
|
|
2341
2350
|
return !1;
|
|
2342
2351
|
return !0;
|
|
2343
2352
|
}
|
|
2344
2353
|
return !1;
|
|
2345
2354
|
}
|
|
2346
|
-
const
|
|
2347
|
-
let
|
|
2348
|
-
const
|
|
2349
|
-
function
|
|
2355
|
+
const Mn = 16, Vn = 50, m = new On(), W = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
2356
|
+
let Wt = Mn, Jt = Vn, G = [], B = null, x = null, R = 0, z = 0;
|
|
2357
|
+
const H = /* @__PURE__ */ new Map();
|
|
2358
|
+
function kn() {
|
|
2350
2359
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
2351
2360
|
}
|
|
2352
|
-
function
|
|
2361
|
+
function Gn() {
|
|
2353
2362
|
try {
|
|
2354
2363
|
return crypto.randomUUID();
|
|
2355
2364
|
} catch {
|
|
2356
2365
|
return `${Date.now()}_${Math.random().toString(16).slice(2)}`;
|
|
2357
2366
|
}
|
|
2358
2367
|
}
|
|
2359
|
-
function
|
|
2368
|
+
function Bn(t) {
|
|
2369
|
+
const e = [];
|
|
2370
|
+
for (const n of t.views)
|
|
2371
|
+
e.push(n);
|
|
2372
|
+
const s = [];
|
|
2373
|
+
for (const n of t.payloads)
|
|
2374
|
+
s.push(n);
|
|
2375
|
+
const r = [];
|
|
2376
|
+
for (const [n, i] of t.optimisticPatches)
|
|
2377
|
+
r.push([n, i.slice()]);
|
|
2360
2378
|
return {
|
|
2361
2379
|
streamId: t.streamId,
|
|
2362
2380
|
category: t.category,
|
|
2363
2381
|
version: t.version ?? -1,
|
|
2364
2382
|
rootViewId: t.rootViewId,
|
|
2365
|
-
views:
|
|
2366
|
-
payloads:
|
|
2367
|
-
optimisticPatches:
|
|
2383
|
+
views: e,
|
|
2384
|
+
payloads: s,
|
|
2385
|
+
optimisticPatches: r
|
|
2368
2386
|
};
|
|
2369
2387
|
}
|
|
2370
|
-
function
|
|
2388
|
+
function xn(t, e) {
|
|
2371
2389
|
if (t === e) return !0;
|
|
2372
2390
|
if (!t || !e || t.length !== e.length) return !1;
|
|
2373
2391
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -2377,26 +2395,26 @@ function kn(t, e) {
|
|
|
2377
2395
|
}
|
|
2378
2396
|
return !0;
|
|
2379
2397
|
}
|
|
2380
|
-
function
|
|
2398
|
+
function Hn(t, e, s) {
|
|
2381
2399
|
if (!s || s.version === -1)
|
|
2382
|
-
return { type: "ReplaceStreamSnapshot", snapshot:
|
|
2383
|
-
|
|
2384
|
-
for (const [I, c] of e.views
|
|
2385
|
-
s.views.get(I) !== c && r.push([I, c]);
|
|
2400
|
+
return { type: "ReplaceStreamSnapshot", snapshot: Bn(e) };
|
|
2401
|
+
let r, n;
|
|
2402
|
+
for (const [I, c] of e.views)
|
|
2403
|
+
s.views.get(I) !== c && (r ??= []).push([I, c]);
|
|
2386
2404
|
for (const I of s.views.keys())
|
|
2387
|
-
e.views.has(I) || n.push(I);
|
|
2388
|
-
|
|
2389
|
-
for (const [I, c] of e.payloads
|
|
2390
|
-
s.payloads.get(I) !== c && i.push([I, c]);
|
|
2405
|
+
e.views.has(I) || (n ??= []).push(I);
|
|
2406
|
+
let i, o;
|
|
2407
|
+
for (const [I, c] of e.payloads)
|
|
2408
|
+
s.payloads.get(I) !== c && (i ??= []).push([I, c]);
|
|
2391
2409
|
for (const I of s.payloads.keys())
|
|
2392
|
-
e.payloads.has(I) || o.push(I);
|
|
2393
|
-
|
|
2394
|
-
for (const [I, c] of e.optimisticPatches
|
|
2410
|
+
e.payloads.has(I) || (o ??= []).push(I);
|
|
2411
|
+
let a, l;
|
|
2412
|
+
for (const [I, c] of e.optimisticPatches) {
|
|
2395
2413
|
const E = s.optimisticPatches.get(I);
|
|
2396
|
-
|
|
2414
|
+
xn(E, c) || (a ??= []).push([I, c.slice()]);
|
|
2397
2415
|
}
|
|
2398
2416
|
for (const I of s.optimisticPatches.keys())
|
|
2399
|
-
e.optimisticPatches.has(I) || l.push(I);
|
|
2417
|
+
e.optimisticPatches.has(I) || (l ??= []).push(I);
|
|
2400
2418
|
return {
|
|
2401
2419
|
type: "PatchStreamSnapshot",
|
|
2402
2420
|
streamId: t,
|
|
@@ -2404,71 +2422,74 @@ function Gn(t, e, s) {
|
|
|
2404
2422
|
nextVersion: e.version ?? -1,
|
|
2405
2423
|
expectedBaseVersion: s.version ?? -1,
|
|
2406
2424
|
rootViewId: e.rootViewId,
|
|
2407
|
-
upsertViews: r
|
|
2408
|
-
deleteViews: n
|
|
2409
|
-
upsertPayloads: i
|
|
2410
|
-
deletePayloads: o
|
|
2411
|
-
upsertOptimisticPatches: a
|
|
2412
|
-
deleteOptimisticPatchesForViews: l
|
|
2425
|
+
upsertViews: r,
|
|
2426
|
+
deleteViews: n,
|
|
2427
|
+
upsertPayloads: i,
|
|
2428
|
+
deletePayloads: o,
|
|
2429
|
+
upsertOptimisticPatches: a,
|
|
2430
|
+
deleteOptimisticPatchesForViews: l
|
|
2413
2431
|
};
|
|
2414
2432
|
}
|
|
2415
|
-
function
|
|
2416
|
-
|
|
2433
|
+
function qt() {
|
|
2434
|
+
B || (B = setTimeout(Et, Wt)), x || (x = setTimeout(Et, Jt));
|
|
2417
2435
|
}
|
|
2418
|
-
function
|
|
2419
|
-
|
|
2436
|
+
function M(t) {
|
|
2437
|
+
G.push(t), qt();
|
|
2420
2438
|
}
|
|
2421
|
-
function
|
|
2422
|
-
if (
|
|
2423
|
-
|
|
2439
|
+
function Et() {
|
|
2440
|
+
if (B && (clearTimeout(B), B = null), x && (clearTimeout(x), x = null), G.length === 0 && H.size === 0) {
|
|
2441
|
+
R = 0, z = 0;
|
|
2424
2442
|
return;
|
|
2425
2443
|
}
|
|
2426
|
-
const t =
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2444
|
+
const t = [];
|
|
2445
|
+
for (const [s, r] of H)
|
|
2446
|
+
t.push({ trackId: s, version: r });
|
|
2447
|
+
const e = {
|
|
2448
|
+
batchId: Gn(),
|
|
2449
|
+
createdAtMs: kn(),
|
|
2450
|
+
ops: G,
|
|
2430
2451
|
...t.length > 0 ? { acks: t } : {},
|
|
2431
|
-
stats: { uiMessagesConsumed:
|
|
2452
|
+
stats: { uiMessagesConsumed: R, bytesConsumed: z }
|
|
2432
2453
|
};
|
|
2433
|
-
|
|
2454
|
+
G = [], R = 0, z = 0, H.clear(), self.postMessage(e);
|
|
2434
2455
|
}
|
|
2435
|
-
function
|
|
2456
|
+
function Qt(t) {
|
|
2436
2457
|
return `${t.senderId}_${t.trackId}`;
|
|
2437
2458
|
}
|
|
2438
|
-
function
|
|
2439
|
-
const e =
|
|
2459
|
+
function Yn(t) {
|
|
2460
|
+
const e = Qs(t), s = /* @__PURE__ */ new Set();
|
|
2440
2461
|
for (const r of Object.values(e.UIStreams ?? {})) {
|
|
2441
2462
|
const n = r.StreamId;
|
|
2442
2463
|
s.add(n);
|
|
2443
2464
|
const i = r.Info?.Category;
|
|
2444
|
-
|
|
2465
|
+
m.getSnapshot(n)?.category !== i && (m.setCategory(n, i), M({ type: "SetStreamCategory", streamId: n, category: i }));
|
|
2445
2466
|
}
|
|
2446
|
-
for (const r of
|
|
2447
|
-
s.has(r.streamId) || (
|
|
2467
|
+
for (const r of m.getSnapshots())
|
|
2468
|
+
s.has(r.streamId) || (m.remove(r.streamId), Y.delete(r.streamId), M({ type: "RemoveStream", streamId: r.streamId }));
|
|
2448
2469
|
}
|
|
2449
|
-
function
|
|
2450
|
-
const e =
|
|
2451
|
-
if ((i === void 0 || n.snapshot.version > i) && (
|
|
2470
|
+
function Kn(t) {
|
|
2471
|
+
const e = et(t), s = Qt(e), r = Sn(t), n = Rn(r), i = H.get(e.trackId);
|
|
2472
|
+
if ((i === void 0 || n.snapshot.version > i) && (H.set(e.trackId, n.snapshot.version), qt()), !m.apply(s, n))
|
|
2452
2473
|
return;
|
|
2453
|
-
const a =
|
|
2474
|
+
const a = m.getSnapshot(s);
|
|
2454
2475
|
if (!a)
|
|
2455
2476
|
return;
|
|
2456
|
-
const l =
|
|
2457
|
-
|
|
2477
|
+
const l = Y.get(s);
|
|
2478
|
+
Y.set(s, a), M(Hn(s, a, l));
|
|
2458
2479
|
}
|
|
2459
|
-
function
|
|
2460
|
-
const e =
|
|
2480
|
+
function $n(t) {
|
|
2481
|
+
const e = Xr(t);
|
|
2461
2482
|
if (!e.StyleId)
|
|
2462
2483
|
return;
|
|
2463
2484
|
const s = {
|
|
2464
2485
|
styleId: e.StyleId,
|
|
2465
2486
|
css: e.Style?.css,
|
|
2466
2487
|
common: e.Style?.common
|
|
2467
|
-
}, r =
|
|
2468
|
-
r && r.css === s.css && r.common === s.common || (
|
|
2488
|
+
}, r = W.get(s.styleId);
|
|
2489
|
+
r && r.css === s.css && r.common === s.common || (W.set(s.styleId, s), M({ type: "UpsertUiStyle", style: s }));
|
|
2469
2490
|
}
|
|
2470
|
-
function
|
|
2471
|
-
const e =
|
|
2491
|
+
function jn(t) {
|
|
2492
|
+
const e = sn(t);
|
|
2472
2493
|
if (e.Styles)
|
|
2473
2494
|
for (const s of e.Styles) {
|
|
2474
2495
|
if (!s.StyleId)
|
|
@@ -2477,39 +2498,39 @@ function Yn(t) {
|
|
|
2477
2498
|
styleId: s.StyleId,
|
|
2478
2499
|
css: s.Style?.css,
|
|
2479
2500
|
common: s.Style?.common
|
|
2480
|
-
}, n =
|
|
2481
|
-
n && n.css === r.css && n.common === r.common || (
|
|
2501
|
+
}, n = W.get(r.styleId);
|
|
2502
|
+
n && n.css === r.css && n.common === r.common || (W.set(r.styleId, r), M({ type: "UpsertUiStyle", style: r }));
|
|
2482
2503
|
}
|
|
2483
2504
|
}
|
|
2484
|
-
function
|
|
2485
|
-
const e =
|
|
2486
|
-
|
|
2505
|
+
function Xn(t) {
|
|
2506
|
+
const e = et(t), s = Qt(e);
|
|
2507
|
+
m.clear(s), Y.delete(s), M({ type: "ClearStream", streamId: s });
|
|
2487
2508
|
}
|
|
2488
|
-
function
|
|
2509
|
+
function zn(t) {
|
|
2489
2510
|
const e = new Uint8Array(t);
|
|
2490
|
-
|
|
2511
|
+
z += e.byteLength;
|
|
2491
2512
|
const s = e;
|
|
2492
|
-
switch (
|
|
2493
|
-
case
|
|
2494
|
-
|
|
2513
|
+
switch (Zt(s)) {
|
|
2514
|
+
case P.CORE_GLOBAL_STATE:
|
|
2515
|
+
Yn(s), R++;
|
|
2495
2516
|
return;
|
|
2496
|
-
case
|
|
2517
|
+
case P.UI_UPDATE:
|
|
2497
2518
|
try {
|
|
2498
|
-
|
|
2519
|
+
Kn(s);
|
|
2499
2520
|
} catch (n) {
|
|
2500
|
-
return n instanceof
|
|
2521
|
+
return n instanceof w, void 0;
|
|
2501
2522
|
} finally {
|
|
2502
|
-
|
|
2523
|
+
R++;
|
|
2503
2524
|
}
|
|
2504
2525
|
return;
|
|
2505
|
-
case
|
|
2506
|
-
|
|
2526
|
+
case P.UI_STYLES:
|
|
2527
|
+
$n(s), R++;
|
|
2507
2528
|
return;
|
|
2508
|
-
case
|
|
2509
|
-
|
|
2529
|
+
case P.UI_STYLES_BATCH:
|
|
2530
|
+
jn(s), R++;
|
|
2510
2531
|
return;
|
|
2511
|
-
case
|
|
2512
|
-
|
|
2532
|
+
case P.ACTION_UI_CLEAR_STREAM:
|
|
2533
|
+
Xn(s), R++;
|
|
2513
2534
|
return;
|
|
2514
2535
|
default:
|
|
2515
2536
|
return;
|
|
@@ -2518,12 +2539,12 @@ function $n(t) {
|
|
|
2518
2539
|
self.addEventListener("message", (t) => {
|
|
2519
2540
|
const e = t.data;
|
|
2520
2541
|
if (e.type === "configure") {
|
|
2521
|
-
typeof e.flushIntervalMs == "number" && Number.isFinite(e.flushIntervalMs) && e.flushIntervalMs >= 0 && (
|
|
2542
|
+
typeof e.flushIntervalMs == "number" && Number.isFinite(e.flushIntervalMs) && e.flushIntervalMs >= 0 && (Wt = e.flushIntervalMs), typeof e.maxLatencyMs == "number" && Number.isFinite(e.maxLatencyMs) && e.maxLatencyMs >= 0 && (Jt = e.maxLatencyMs);
|
|
2522
2543
|
return;
|
|
2523
2544
|
}
|
|
2524
2545
|
if (e.type === "clear") {
|
|
2525
|
-
|
|
2546
|
+
G = [], Y.clear();
|
|
2526
2547
|
return;
|
|
2527
2548
|
}
|
|
2528
|
-
e.type === "protocol" &&
|
|
2549
|
+
e.type === "protocol" && zn(e.message);
|
|
2529
2550
|
});
|