@nil-/xit 0.2.0 → 0.2.2
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/bundler.js +223 -223
- package/assets/index.js +476 -782
- package/package.json +1 -1
package/assets/index.js
CHANGED
|
@@ -1,97 +1,98 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ne = Object.defineProperty;
|
|
2
|
+
var kt = (s) => {
|
|
3
3
|
throw TypeError(s);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var n = (s, t, e) =>
|
|
7
|
-
var
|
|
8
|
-
import { w as
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
var ae = (s, t, e) => t in s ? ne(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
6
|
+
var n = (s, t, e) => ae(s, typeof t != "symbol" ? t + "" : t, e), It = (s, t, e) => t.has(s) || kt("Cannot " + e);
|
|
7
|
+
var u = (s, t, e) => (It(s, t, "read from private field"), e ? e.call(s) : t.get(s)), W = (s, t, e) => t.has(s) ? kt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), w = (s, t, e, i) => (It(s, t, "write to private field"), i ? i.call(s, e) : t.set(s, e), e), wt = (s, t, e) => (It(s, t, "access private method"), e);
|
|
8
|
+
import { w as et, g as At } from "./svelte/store.js";
|
|
9
|
+
const mt = 2500;
|
|
10
|
+
var _t, Ft, v, rt, ot, lt, x, g;
|
|
11
|
+
class ft {
|
|
11
12
|
constructor(t) {
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
W(this, _t);
|
|
14
|
+
W(this, v);
|
|
14
15
|
// 0 idle, 1 has connected, 2 keep reconnecting, 3 stopped
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
w(this,
|
|
16
|
+
W(this, rt);
|
|
17
|
+
W(this, ot);
|
|
18
|
+
W(this, lt);
|
|
19
|
+
W(this, x);
|
|
20
|
+
W(this, g);
|
|
21
|
+
w(this, x, t), w(this, v, 0), w(this, rt, null), w(this, ot, null), w(this, lt, null), w(this, g, null);
|
|
21
22
|
}
|
|
22
23
|
on_message(t) {
|
|
23
24
|
w(this, lt, t);
|
|
24
25
|
}
|
|
25
26
|
on_connect(t) {
|
|
26
|
-
w(this,
|
|
27
|
+
w(this, rt, t);
|
|
27
28
|
}
|
|
28
29
|
on_disconnect(t) {
|
|
29
|
-
w(this,
|
|
30
|
+
w(this, ot, t);
|
|
30
31
|
}
|
|
31
32
|
// non-blocking (run is blocking in c++)
|
|
32
33
|
// calling it again should not do anything
|
|
33
34
|
start() {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
|
|
35
|
+
u(this, g) == null && u(this, v) !== 1 && u(this, v) !== 3 && (w(this, g, new WebSocket(`ws://${u(this, x)}`)), u(this, g).binaryType = "arraybuffer", u(this, g).onopen = () => {
|
|
36
|
+
u(this, v) == 3 ? this.stop() : (w(this, v, 1), u(this, rt) && u(this, rt).call(this, u(this, x)));
|
|
37
|
+
}, u(this, g).onclose = () => {
|
|
38
|
+
u(this, v) === 1 && (u(this, ot) && u(this, ot).call(this, u(this, x)), w(this, v, 2), wt(this, _t, Ft).call(this));
|
|
39
|
+
}, u(this, g).onerror = () => {
|
|
40
|
+
u(this, v) !== 1 && u(this, v) !== 3 ? (w(this, v, 2), wt(this, _t, Ft).call(this)) : u(this, v) === 3 && this.stop();
|
|
41
|
+
}, u(this, g).onmessage = (t) => {
|
|
42
|
+
u(this, lt) && u(this, lt).call(this, u(this, x), new Uint8Array(t.data));
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
45
|
stop() {
|
|
45
|
-
w(this, v, 3),
|
|
46
|
+
w(this, v, 3), u(this, g) != null && u(this, g).readyState !== WebSocket.CONNECTING && (u(this, g).close(), w(this, g, null));
|
|
46
47
|
}
|
|
47
48
|
restart() {
|
|
48
49
|
w(this, v, 0);
|
|
49
50
|
}
|
|
50
51
|
publish(t) {
|
|
51
|
-
|
|
52
|
+
u(this, g) != null && u(this, v) == 1 && u(this, g).send(t);
|
|
52
53
|
}
|
|
53
54
|
send(t, e) {
|
|
54
|
-
t ===
|
|
55
|
+
t === u(this, x) && this.publish(e);
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}, v = new WeakMap(),
|
|
60
|
-
const
|
|
58
|
+
_t = new WeakSet(), Ft = function() {
|
|
59
|
+
u(this, g) != null && (u(this, g).close(), w(this, g, null)), setTimeout(() => this.start(), 1e3);
|
|
60
|
+
}, v = new WeakMap(), rt = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), x = new WeakMap(), g = new WeakMap();
|
|
61
|
+
const ht = (s) => {
|
|
61
62
|
const t = new Uint8Array(4);
|
|
62
63
|
return new DataView(t.buffer).setUint32(0, s, !1), t;
|
|
63
|
-
},
|
|
64
|
+
}, dt = (s) => {
|
|
64
65
|
const t = new Uint8Array(s.reduce((i, a) => i + a.length, 0));
|
|
65
66
|
let e = 0;
|
|
66
67
|
for (const i of s)
|
|
67
68
|
t.set(i, e), e += i.length;
|
|
68
69
|
return t;
|
|
69
|
-
},
|
|
70
|
-
const i = new
|
|
70
|
+
}, re = async (s) => new Promise((t, e) => {
|
|
71
|
+
const i = new ft(s), a = setTimeout(() => {
|
|
71
72
|
i.stop(), e("connection failed... stopping");
|
|
72
|
-
},
|
|
73
|
+
}, mt);
|
|
73
74
|
i.on_connect(() => {
|
|
74
75
|
clearTimeout(a), i.stop(), t();
|
|
75
76
|
}), i.start();
|
|
76
|
-
}),
|
|
77
|
-
const o = new
|
|
77
|
+
}), jt = async (s, t, e, i) => new Promise((a, r) => {
|
|
78
|
+
const o = new ft(s), h = setTimeout(() => {
|
|
78
79
|
o.stop(), r("timed out, cancelled");
|
|
79
|
-
},
|
|
80
|
-
o.on_connect(() => o.publish(
|
|
80
|
+
}, mt), c = dt([ht(t), e]);
|
|
81
|
+
o.on_connect(() => o.publish(c)), o.on_message((d, b) => {
|
|
81
82
|
const F = new DataView(b.buffer).getUint32(0, !1), O = b.slice(4), V = i(F, O);
|
|
82
|
-
V != null && (clearTimeout(
|
|
83
|
+
V != null && (clearTimeout(h), o.stop(), a(V));
|
|
83
84
|
}), o.start();
|
|
84
|
-
}),
|
|
85
|
-
const i = new
|
|
85
|
+
}), St = (s, t, e) => {
|
|
86
|
+
const i = new ft(s), a = setTimeout(() => {
|
|
86
87
|
i.stop();
|
|
87
|
-
},
|
|
88
|
+
}, mt);
|
|
88
89
|
i.on_connect(() => {
|
|
89
90
|
clearTimeout(a);
|
|
90
|
-
const r =
|
|
91
|
+
const r = dt([ht(t), e]);
|
|
91
92
|
i.publish(r), i.stop();
|
|
92
93
|
}), i.start();
|
|
93
94
|
};
|
|
94
|
-
function
|
|
95
|
+
function oe(s) {
|
|
95
96
|
return new Worker(
|
|
96
97
|
"/assets/bundler.js",
|
|
97
98
|
{
|
|
@@ -99,12 +100,12 @@ function ce(s) {
|
|
|
99
100
|
}
|
|
100
101
|
);
|
|
101
102
|
}
|
|
102
|
-
const
|
|
103
|
-
var
|
|
103
|
+
const vt = 2, L = 4, E = 4, f = 4, H = new Int32Array(2), yt = new Float32Array(H.buffer), Nt = new Float64Array(H.buffer), bt = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
|
|
104
|
+
var Vt;
|
|
104
105
|
(function(s) {
|
|
105
106
|
s[s.UTF8_BYTES = 1] = "UTF8_BYTES", s[s.UTF16_STRING = 2] = "UTF16_STRING";
|
|
106
|
-
})(
|
|
107
|
-
class
|
|
107
|
+
})(Vt || (Vt = {}));
|
|
108
|
+
class P {
|
|
108
109
|
/**
|
|
109
110
|
* Create a new ByteBuffer with a given array of bytes (`Uint8Array`)
|
|
110
111
|
*/
|
|
@@ -115,7 +116,7 @@ class x {
|
|
|
115
116
|
* Create and allocate a new ByteBuffer with a given size.
|
|
116
117
|
*/
|
|
117
118
|
static allocate(t) {
|
|
118
|
-
return new
|
|
119
|
+
return new P(new Uint8Array(t));
|
|
119
120
|
}
|
|
120
121
|
clear() {
|
|
121
122
|
this.position_ = 0;
|
|
@@ -169,10 +170,10 @@ class x {
|
|
|
169
170
|
return BigInt.asUintN(64, BigInt(this.readUint32(t)) + (BigInt(this.readUint32(t + 4)) << BigInt(32)));
|
|
170
171
|
}
|
|
171
172
|
readFloat32(t) {
|
|
172
|
-
return
|
|
173
|
+
return H[0] = this.readInt32(t), yt[0];
|
|
173
174
|
}
|
|
174
175
|
readFloat64(t) {
|
|
175
|
-
return
|
|
176
|
+
return H[bt ? 0 : 1] = this.readInt32(t), H[bt ? 1 : 0] = this.readInt32(t + 4), Nt[0];
|
|
176
177
|
}
|
|
177
178
|
writeInt8(t, e) {
|
|
178
179
|
this.bytes_[t] = e;
|
|
@@ -199,10 +200,10 @@ class x {
|
|
|
199
200
|
this.writeUint32(t, Number(BigInt.asUintN(32, e))), this.writeUint32(t + 4, Number(BigInt.asUintN(32, e >> BigInt(32))));
|
|
200
201
|
}
|
|
201
202
|
writeFloat32(t, e) {
|
|
202
|
-
|
|
203
|
+
yt[0] = e, this.writeInt32(t, H[0]);
|
|
203
204
|
}
|
|
204
205
|
writeFloat64(t, e) {
|
|
205
|
-
Nt[0] = e, this.writeInt32(t,
|
|
206
|
+
Nt[0] = e, this.writeInt32(t, H[bt ? 0 : 1]), this.writeInt32(t + 4, H[bt ? 1 : 0]);
|
|
206
207
|
}
|
|
207
208
|
/**
|
|
208
209
|
* Return the file identifier. Behavior is undefined for FlatBuffers whose
|
|
@@ -210,11 +211,11 @@ class x {
|
|
|
210
211
|
* start of a the root vtable).
|
|
211
212
|
*/
|
|
212
213
|
getBufferIdentifier() {
|
|
213
|
-
if (this.bytes_.length < this.position_ +
|
|
214
|
+
if (this.bytes_.length < this.position_ + L + E)
|
|
214
215
|
throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");
|
|
215
216
|
let t = "";
|
|
216
|
-
for (let e = 0; e <
|
|
217
|
-
t += String.fromCharCode(this.readInt8(this.position_ +
|
|
217
|
+
for (let e = 0; e < E; e++)
|
|
218
|
+
t += String.fromCharCode(this.readInt8(this.position_ + L + e));
|
|
218
219
|
return t;
|
|
219
220
|
}
|
|
220
221
|
/**
|
|
@@ -245,9 +246,9 @@ class x {
|
|
|
245
246
|
__string(t, e) {
|
|
246
247
|
t += this.readInt32(t);
|
|
247
248
|
const i = this.readInt32(t);
|
|
248
|
-
t +=
|
|
249
|
+
t += L;
|
|
249
250
|
const a = this.bytes_.subarray(t, t + i);
|
|
250
|
-
return e ===
|
|
251
|
+
return e === Vt.UTF8_BYTES ? a : this.text_decoder_.decode(a);
|
|
251
252
|
}
|
|
252
253
|
/**
|
|
253
254
|
* Handle unions that can contain string as its member, if a Table-derived type then initialize it,
|
|
@@ -269,7 +270,7 @@ class x {
|
|
|
269
270
|
* Get the start of data of a vector whose offset is stored at "offset" in this object.
|
|
270
271
|
*/
|
|
271
272
|
__vector(t) {
|
|
272
|
-
return t + this.readInt32(t) +
|
|
273
|
+
return t + this.readInt32(t) + L;
|
|
273
274
|
}
|
|
274
275
|
/**
|
|
275
276
|
* Get the length of a vector whose offset is stored at "offset" in this object.
|
|
@@ -278,10 +279,10 @@ class x {
|
|
|
278
279
|
return this.readInt32(t + this.readInt32(t));
|
|
279
280
|
}
|
|
280
281
|
__has_identifier(t) {
|
|
281
|
-
if (t.length !=
|
|
282
|
-
throw new Error("FlatBuffers: file identifier must be length " +
|
|
283
|
-
for (let e = 0; e <
|
|
284
|
-
if (t.charCodeAt(e) != this.readInt8(this.position() +
|
|
282
|
+
if (t.length != E)
|
|
283
|
+
throw new Error("FlatBuffers: file identifier must be length " + E);
|
|
284
|
+
for (let e = 0; e < E; e++)
|
|
285
|
+
if (t.charCodeAt(e) != this.readInt8(this.position() + L + e))
|
|
285
286
|
return !1;
|
|
286
287
|
return !0;
|
|
287
288
|
}
|
|
@@ -311,14 +312,14 @@ class x {
|
|
|
311
312
|
return i;
|
|
312
313
|
}
|
|
313
314
|
}
|
|
314
|
-
class
|
|
315
|
+
class k {
|
|
315
316
|
/**
|
|
316
317
|
* Create a FlatBufferBuilder.
|
|
317
318
|
*/
|
|
318
319
|
constructor(t) {
|
|
319
320
|
this.minalign = 1, this.vtable = null, this.vtable_in_use = 0, this.isNested = !1, this.object_start = 0, this.vtables = [], this.vector_num_elems = 0, this.force_defaults = !1, this.string_maps = null, this.text_encoder = new TextEncoder();
|
|
320
321
|
let e;
|
|
321
|
-
t ? e = t : e = 1024, this.bb =
|
|
322
|
+
t ? e = t : e = 1024, this.bb = P.allocate(e), this.space = e;
|
|
322
323
|
}
|
|
323
324
|
clear() {
|
|
324
325
|
this.bb.clear(), this.space = this.bb.capacity(), this.minalign = 1, this.vtable = null, this.vtable_in_use = 0, this.isNested = !1, this.object_start = 0, this.vtables = [], this.vector_num_elems = 0, this.force_defaults = !1, this.string_maps = null;
|
|
@@ -362,7 +363,7 @@ class j {
|
|
|
362
363
|
const i = ~(this.bb.capacity() - this.space + e) + 1 & t - 1;
|
|
363
364
|
for (; this.space < i + t + e; ) {
|
|
364
365
|
const a = this.bb.capacity();
|
|
365
|
-
this.bb =
|
|
366
|
+
this.bb = k.growByteBuffer(this.bb), this.space += this.bb.capacity() - a;
|
|
366
367
|
}
|
|
367
368
|
this.pad(i);
|
|
368
369
|
}
|
|
@@ -502,7 +503,7 @@ class j {
|
|
|
502
503
|
const e = t.capacity();
|
|
503
504
|
if (e & 3221225472)
|
|
504
505
|
throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");
|
|
505
|
-
const i = e << 1, a =
|
|
506
|
+
const i = e << 1, a = P.allocate(i);
|
|
506
507
|
return a.setPosition(i - e), a.bytes().set(t.bytes(), i - e), a;
|
|
507
508
|
}
|
|
508
509
|
/**
|
|
@@ -511,7 +512,7 @@ class j {
|
|
|
511
512
|
* @param offset The offset to add.
|
|
512
513
|
*/
|
|
513
514
|
addOffset(t) {
|
|
514
|
-
this.prep(
|
|
515
|
+
this.prep(L, 0), this.writeInt32(this.offset() - t + L);
|
|
515
516
|
}
|
|
516
517
|
/**
|
|
517
518
|
* Start encoding a new object in the buffer. Users will not usually need to
|
|
@@ -542,15 +543,15 @@ class j {
|
|
|
542
543
|
this.addInt16(this.vtable[e] != 0 ? t - this.vtable[e] : 0);
|
|
543
544
|
const a = 2;
|
|
544
545
|
this.addInt16(t - this.object_start);
|
|
545
|
-
const r = (i + a) *
|
|
546
|
+
const r = (i + a) * vt;
|
|
546
547
|
this.addInt16(r);
|
|
547
548
|
let o = 0;
|
|
548
|
-
const
|
|
549
|
+
const h = this.space;
|
|
549
550
|
t: for (e = 0; e < this.vtables.length; e++) {
|
|
550
|
-
const
|
|
551
|
-
if (r == this.bb.readInt16(
|
|
552
|
-
for (let d =
|
|
553
|
-
if (this.bb.readInt16(
|
|
551
|
+
const c = this.bb.capacity() - this.vtables[e];
|
|
552
|
+
if (r == this.bb.readInt16(c)) {
|
|
553
|
+
for (let d = vt; d < r; d += vt)
|
|
554
|
+
if (this.bb.readInt16(h + d) != this.bb.readInt16(c + d))
|
|
554
555
|
continue t;
|
|
555
556
|
o = this.vtables[e];
|
|
556
557
|
break;
|
|
@@ -562,15 +563,15 @@ class j {
|
|
|
562
563
|
* Finalize a buffer, poiting to the given `root_table`.
|
|
563
564
|
*/
|
|
564
565
|
finish(t, e, i) {
|
|
565
|
-
const a = i ?
|
|
566
|
+
const a = i ? f : 0;
|
|
566
567
|
if (e) {
|
|
567
568
|
const r = e;
|
|
568
|
-
if (this.prep(this.minalign,
|
|
569
|
-
throw new TypeError("FlatBuffers: file identifier must be length " +
|
|
570
|
-
for (let o =
|
|
569
|
+
if (this.prep(this.minalign, L + E + a), r.length != E)
|
|
570
|
+
throw new TypeError("FlatBuffers: file identifier must be length " + E);
|
|
571
|
+
for (let o = E - 1; o >= 0; o--)
|
|
571
572
|
this.writeInt8(r.charCodeAt(o));
|
|
572
573
|
}
|
|
573
|
-
this.prep(this.minalign,
|
|
574
|
+
this.prep(this.minalign, L + a), this.addOffset(t), a && this.addInt32(this.bb.capacity() - this.space), this.bb.setPosition(this.space);
|
|
574
575
|
}
|
|
575
576
|
/**
|
|
576
577
|
* Finalize a size prefixed buffer, pointing to the given `root_table`.
|
|
@@ -597,7 +598,7 @@ class j {
|
|
|
597
598
|
* @param alignment The alignment of the array
|
|
598
599
|
*/
|
|
599
600
|
startVector(t, e, i) {
|
|
600
|
-
this.notNested(), this.vector_num_elems = e, this.prep(
|
|
601
|
+
this.notNested(), this.vector_num_elems = e, this.prep(L, t * e), this.prep(i, t * e);
|
|
601
602
|
}
|
|
602
603
|
/**
|
|
603
604
|
* Finish off the creation of an array and all its elements. The array must be
|
|
@@ -674,7 +675,7 @@ class j {
|
|
|
674
675
|
return e(this, t.length), this.createObjectOffsetList(t.slice().reverse()), this.endVector();
|
|
675
676
|
}
|
|
676
677
|
}
|
|
677
|
-
class
|
|
678
|
+
class A {
|
|
678
679
|
constructor() {
|
|
679
680
|
n(this, "bb", null);
|
|
680
681
|
n(this, "bb_pos", 0);
|
|
@@ -683,10 +684,10 @@ class y {
|
|
|
683
684
|
return this.bb_pos = t, this.bb = e, this;
|
|
684
685
|
}
|
|
685
686
|
static getRootAsFileInfo(t, e) {
|
|
686
|
-
return (e || new
|
|
687
|
+
return (e || new A()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
687
688
|
}
|
|
688
689
|
static getSizePrefixedRootAsFileInfo(t, e) {
|
|
689
|
-
return t.setPosition(t.position() +
|
|
690
|
+
return t.setPosition(t.position() + f), (e || new A()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
690
691
|
}
|
|
691
692
|
target(t) {
|
|
692
693
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -702,11 +703,7 @@ class y {
|
|
|
702
703
|
}
|
|
703
704
|
metadataArray() {
|
|
704
705
|
const t = this.bb.__offset(this.bb_pos, 6);
|
|
705
|
-
return t ? new Uint8Array(
|
|
706
|
-
this.bb.bytes().buffer,
|
|
707
|
-
this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + t),
|
|
708
|
-
this.bb.__vector_len(this.bb_pos + t)
|
|
709
|
-
) : null;
|
|
706
|
+
return t ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + t), this.bb.__vector_len(this.bb_pos + t)) : null;
|
|
710
707
|
}
|
|
711
708
|
static startFileInfo(t) {
|
|
712
709
|
t.startObject(2);
|
|
@@ -731,38 +728,27 @@ class y {
|
|
|
731
728
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
732
729
|
}
|
|
733
730
|
static createFileInfo(t, e, i) {
|
|
734
|
-
return
|
|
731
|
+
return A.startFileInfo(t), A.addTarget(t, e), A.addMetadata(t, i), A.endFileInfo(t);
|
|
735
732
|
}
|
|
736
733
|
unpack() {
|
|
737
|
-
return new
|
|
738
|
-
this.target(),
|
|
739
|
-
this.bb.createScalarList(this.metadata.bind(this), this.metadataLength())
|
|
740
|
-
);
|
|
734
|
+
return new Bt(this.target(), this.bb.createScalarList(this.metadata.bind(this), this.metadataLength()));
|
|
741
735
|
}
|
|
742
736
|
unpackTo(t) {
|
|
743
737
|
t.target = this.target(), t.metadata = this.bb.createScalarList(this.metadata.bind(this), this.metadataLength());
|
|
744
738
|
}
|
|
745
739
|
}
|
|
746
|
-
class
|
|
740
|
+
class Bt {
|
|
747
741
|
constructor(t = null, e = []) {
|
|
748
742
|
n(this, "target");
|
|
749
743
|
n(this, "metadata");
|
|
750
744
|
this.target = t, this.metadata = e;
|
|
751
745
|
}
|
|
752
746
|
pack(t) {
|
|
753
|
-
const e = this.target !== null ? t.createString(this.target) : 0, i =
|
|
754
|
-
return
|
|
747
|
+
const e = this.target !== null ? t.createString(this.target) : 0, i = A.createMetadataVector(t, this.metadata);
|
|
748
|
+
return A.createFileInfo(t, e, i);
|
|
755
749
|
}
|
|
756
750
|
}
|
|
757
|
-
|
|
758
|
-
(function(s) {
|
|
759
|
-
s[s.Client_Unique_FrameInfo_Request = 0] = "Client_Unique_FrameInfo_Request", s[s.Client_Tagged_FrameInfo_Request = 1] = "Client_Tagged_FrameInfo_Request", s[s.Server_Unique_FrameInfo_File_Response = 2] = "Server_Unique_FrameInfo_File_Response", s[s.Server_Tagged_FrameInfo_File_Response = 3] = "Server_Tagged_FrameInfo_File_Response", s[s.Server_Unique_FrameInfo_Content_Response = 4] = "Server_Unique_FrameInfo_Content_Response", s[s.Server_Tagged_FrameInfo_Content_Response = 5] = "Server_Tagged_FrameInfo_Content_Response", s[s.Client_File_Request = 6] = "Client_File_Request", s[s.Server_File_Response = 7] = "Server_File_Response", s[s.Client_Unique_FrameCache = 8] = "Client_Unique_FrameCache", s[s.Client_Tagged_FrameCache = 9] = "Client_Tagged_FrameCache", s[s.Client_Unique_Frame_Loaded = 10] = "Client_Unique_Frame_Loaded", s[s.Client_Tagged_Frame_Loaded = 11] = "Client_Tagged_Frame_Loaded", s[s.Client_Unique_Frame_Subscribe = 12] = "Client_Unique_Frame_Subscribe", s[s.Client_Tagged_Frame_Subscribe = 13] = "Client_Tagged_Frame_Subscribe", s[s.Client_Unique_Frame_Unsubscribe = 14] = "Client_Unique_Frame_Unsubscribe", s[s.Client_Tagged_Frame_Unsubscribe = 15] = "Client_Tagged_Frame_Unsubscribe", s[s.Client_Unique_Value_Request = 16] = "Client_Unique_Value_Request", s[s.Client_Tagged_Value_Request = 17] = "Client_Tagged_Value_Request", s[s.Server_Unique_Value_Response = 18] = "Server_Unique_Value_Response", s[s.Server_Tagged_Value_Response = 19] = "Server_Tagged_Value_Response", s[s.Unique_Value_Update = 20] = "Unique_Value_Update", s[s.Tagged_Value_Update = 21] = "Tagged_Value_Update", s[s.Client_Unique_Signal_Request = 22] = "Client_Unique_Signal_Request", s[s.Client_Tagged_Signal_Request = 23] = "Client_Tagged_Signal_Request", s[s.Server_Unique_Signal_Response = 24] = "Server_Unique_Signal_Response", s[s.Server_Tagged_Signal_Response = 25] = "Server_Tagged_Signal_Response", s[s.Client_Unique_Signal_Notify = 26] = "Client_Unique_Signal_Notify", s[s.Client_Tagged_Signal_Notify = 27] = "Client_Tagged_Signal_Notify";
|
|
760
|
-
})(f || (f = {}));
|
|
761
|
-
var q;
|
|
762
|
-
(function(s) {
|
|
763
|
-
s[s.None = 0] = "None", s[s.Boolean = 1] = "Boolean", s[s.Number = 2] = "Number", s[s.Double = 3] = "Double", s[s.String = 4] = "String", s[s.Buffer = 5] = "Buffer";
|
|
764
|
-
})(q || (q = {}));
|
|
765
|
-
class C {
|
|
751
|
+
class N {
|
|
766
752
|
constructor() {
|
|
767
753
|
n(this, "bb", null);
|
|
768
754
|
n(this, "bb_pos", 0);
|
|
@@ -770,55 +756,84 @@ class C {
|
|
|
770
756
|
__init(t, e) {
|
|
771
757
|
return this.bb_pos = t, this.bb = e, this;
|
|
772
758
|
}
|
|
773
|
-
static
|
|
774
|
-
return (e || new
|
|
759
|
+
static getRootAsFrameCache(t, e) {
|
|
760
|
+
return (e || new N()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
775
761
|
}
|
|
776
|
-
static
|
|
777
|
-
return t.setPosition(t.position() +
|
|
762
|
+
static getSizePrefixedRootAsFrameCache(t, e) {
|
|
763
|
+
return t.setPosition(t.position() + f), (e || new N()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
778
764
|
}
|
|
779
765
|
id(t) {
|
|
780
766
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
781
767
|
return e ? this.bb.__string(this.bb_pos + e, t) : null;
|
|
782
768
|
}
|
|
783
|
-
|
|
784
|
-
const
|
|
785
|
-
return
|
|
769
|
+
content(t) {
|
|
770
|
+
const e = this.bb.__offset(this.bb_pos, 6);
|
|
771
|
+
return e ? this.bb.__string(this.bb_pos + e, t) : null;
|
|
786
772
|
}
|
|
787
|
-
|
|
788
|
-
|
|
773
|
+
files(t, e) {
|
|
774
|
+
const i = this.bb.__offset(this.bb_pos, 8);
|
|
775
|
+
return i ? (e || new A()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4), this.bb) : null;
|
|
776
|
+
}
|
|
777
|
+
filesLength() {
|
|
778
|
+
const t = this.bb.__offset(this.bb_pos, 8);
|
|
779
|
+
return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
|
|
780
|
+
}
|
|
781
|
+
static startFrameCache(t) {
|
|
782
|
+
t.startObject(3);
|
|
789
783
|
}
|
|
790
784
|
static addId(t, e) {
|
|
791
785
|
t.addFieldOffset(0, e, 0);
|
|
792
786
|
}
|
|
793
|
-
static
|
|
794
|
-
t.
|
|
787
|
+
static addContent(t, e) {
|
|
788
|
+
t.addFieldOffset(1, e, 0);
|
|
795
789
|
}
|
|
796
|
-
static
|
|
790
|
+
static addFiles(t, e) {
|
|
791
|
+
t.addFieldOffset(2, e, 0);
|
|
792
|
+
}
|
|
793
|
+
static createFilesVector(t, e) {
|
|
794
|
+
t.startVector(4, e.length, 4);
|
|
795
|
+
for (let i = e.length - 1; i >= 0; i--)
|
|
796
|
+
t.addOffset(e[i]);
|
|
797
|
+
return t.endVector();
|
|
798
|
+
}
|
|
799
|
+
static startFilesVector(t, e) {
|
|
800
|
+
t.startVector(4, e, 4);
|
|
801
|
+
}
|
|
802
|
+
static endFrameCache(t) {
|
|
797
803
|
const e = t.endObject();
|
|
798
|
-
return t.requiredField(e, 4), e;
|
|
804
|
+
return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
|
|
799
805
|
}
|
|
800
|
-
static
|
|
801
|
-
return
|
|
806
|
+
static createFrameCache(t, e, i, a) {
|
|
807
|
+
return N.startFrameCache(t), N.addId(t, e), N.addContent(t, i), N.addFiles(t, a), N.endFrameCache(t);
|
|
802
808
|
}
|
|
803
809
|
unpack() {
|
|
804
|
-
return new
|
|
810
|
+
return new Ct(this.id(), this.content(), this.bb.createObjList(this.files.bind(this), this.filesLength()));
|
|
805
811
|
}
|
|
806
812
|
unpackTo(t) {
|
|
807
|
-
t.id = this.id(), t.
|
|
813
|
+
t.id = this.id(), t.content = this.content(), t.files = this.bb.createObjList(this.files.bind(this), this.filesLength());
|
|
808
814
|
}
|
|
809
815
|
}
|
|
810
|
-
class
|
|
811
|
-
constructor(t = null, e =
|
|
816
|
+
class Ct {
|
|
817
|
+
constructor(t = null, e = null, i = []) {
|
|
812
818
|
n(this, "id");
|
|
813
|
-
n(this, "
|
|
814
|
-
this
|
|
819
|
+
n(this, "content");
|
|
820
|
+
n(this, "files");
|
|
821
|
+
this.id = t, this.content = e, this.files = i;
|
|
815
822
|
}
|
|
816
823
|
pack(t) {
|
|
817
|
-
const e = this.id !== null ? t.createString(this.id) : 0;
|
|
818
|
-
return
|
|
824
|
+
const e = this.id !== null ? t.createString(this.id) : 0, i = this.content !== null ? t.createString(this.content) : 0, a = N.createFilesVector(t, t.createObjectOffsetList(this.files));
|
|
825
|
+
return N.createFrameCache(t, e, i, a);
|
|
819
826
|
}
|
|
820
827
|
}
|
|
821
|
-
|
|
828
|
+
var _;
|
|
829
|
+
(function(s) {
|
|
830
|
+
s[s.Client_Unique_FrameInfo_Request = 0] = "Client_Unique_FrameInfo_Request", s[s.Client_Tagged_FrameInfo_Request = 1] = "Client_Tagged_FrameInfo_Request", s[s.Server_Unique_FrameInfo_File_Response = 2] = "Server_Unique_FrameInfo_File_Response", s[s.Server_Tagged_FrameInfo_File_Response = 3] = "Server_Tagged_FrameInfo_File_Response", s[s.Server_Unique_FrameInfo_Content_Response = 4] = "Server_Unique_FrameInfo_Content_Response", s[s.Server_Tagged_FrameInfo_Content_Response = 5] = "Server_Tagged_FrameInfo_Content_Response", s[s.Client_File_Request = 6] = "Client_File_Request", s[s.Server_File_Response = 7] = "Server_File_Response", s[s.Client_Unique_FrameCache = 8] = "Client_Unique_FrameCache", s[s.Client_Tagged_FrameCache = 9] = "Client_Tagged_FrameCache", s[s.Client_Unique_Frame_Loaded = 10] = "Client_Unique_Frame_Loaded", s[s.Client_Tagged_Frame_Loaded = 11] = "Client_Tagged_Frame_Loaded", s[s.Client_Unique_Frame_Subscribe = 12] = "Client_Unique_Frame_Subscribe", s[s.Client_Tagged_Frame_Subscribe = 13] = "Client_Tagged_Frame_Subscribe", s[s.Client_Unique_Frame_Unsubscribe = 14] = "Client_Unique_Frame_Unsubscribe", s[s.Client_Tagged_Frame_Unsubscribe = 15] = "Client_Tagged_Frame_Unsubscribe", s[s.Client_Unique_Value_Request = 16] = "Client_Unique_Value_Request", s[s.Client_Tagged_Value_Request = 17] = "Client_Tagged_Value_Request", s[s.Server_Unique_Value_Response = 18] = "Server_Unique_Value_Response", s[s.Server_Tagged_Value_Response = 19] = "Server_Tagged_Value_Response", s[s.Unique_Value_Update = 20] = "Unique_Value_Update", s[s.Tagged_Value_Update = 21] = "Tagged_Value_Update", s[s.Client_Unique_Signal_Request = 22] = "Client_Unique_Signal_Request", s[s.Client_Tagged_Signal_Request = 23] = "Client_Tagged_Signal_Request", s[s.Server_Unique_Signal_Response = 24] = "Server_Unique_Signal_Response", s[s.Server_Tagged_Signal_Response = 25] = "Server_Tagged_Signal_Response", s[s.Client_Unique_Signal_Notify = 26] = "Client_Unique_Signal_Notify", s[s.Client_Tagged_Signal_Notify = 27] = "Client_Tagged_Signal_Notify";
|
|
831
|
+
})(_ || (_ = {}));
|
|
832
|
+
var q;
|
|
833
|
+
(function(s) {
|
|
834
|
+
s[s.None = 0] = "None", s[s.Boolean = 1] = "Boolean", s[s.Number = 2] = "Number", s[s.Double = 3] = "Double", s[s.String = 4] = "String", s[s.Buffer = 5] = "Buffer";
|
|
835
|
+
})(q || (q = {}));
|
|
836
|
+
class j {
|
|
822
837
|
constructor() {
|
|
823
838
|
n(this, "bb", null);
|
|
824
839
|
n(this, "bb_pos", 0);
|
|
@@ -826,101 +841,55 @@ class T {
|
|
|
826
841
|
__init(t, e) {
|
|
827
842
|
return this.bb_pos = t, this.bb = e, this;
|
|
828
843
|
}
|
|
829
|
-
static
|
|
830
|
-
return (e || new
|
|
831
|
-
t.readInt32(t.position()) + t.position(),
|
|
832
|
-
t
|
|
833
|
-
);
|
|
844
|
+
static getRootAsSignal(t, e) {
|
|
845
|
+
return (e || new j()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
834
846
|
}
|
|
835
|
-
static
|
|
836
|
-
return t.setPosition(t.position() +
|
|
837
|
-
t.readInt32(t.position()) + t.position(),
|
|
838
|
-
t
|
|
839
|
-
);
|
|
847
|
+
static getSizePrefixedRootAsSignal(t, e) {
|
|
848
|
+
return t.setPosition(t.position() + f), (e || new j()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
840
849
|
}
|
|
841
850
|
id(t) {
|
|
842
851
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
843
852
|
return e ? this.bb.__string(this.bb_pos + e, t) : null;
|
|
844
853
|
}
|
|
845
|
-
|
|
846
|
-
const
|
|
847
|
-
return
|
|
848
|
-
}
|
|
849
|
-
content(t) {
|
|
850
|
-
const e = this.bb.__offset(this.bb_pos, 8);
|
|
851
|
-
return e ? this.bb.__string(this.bb_pos + e, t) : null;
|
|
852
|
-
}
|
|
853
|
-
files(t, e) {
|
|
854
|
-
const i = this.bb.__offset(this.bb_pos, 10);
|
|
855
|
-
return i ? (e || new y()).__init(
|
|
856
|
-
this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4),
|
|
857
|
-
this.bb
|
|
858
|
-
) : null;
|
|
859
|
-
}
|
|
860
|
-
filesLength() {
|
|
861
|
-
const t = this.bb.__offset(this.bb_pos, 10);
|
|
862
|
-
return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
|
|
854
|
+
type() {
|
|
855
|
+
const t = this.bb.__offset(this.bb_pos, 6);
|
|
856
|
+
return t ? this.bb.readInt32(this.bb_pos + t) : q.None;
|
|
863
857
|
}
|
|
864
|
-
static
|
|
865
|
-
t.startObject(
|
|
858
|
+
static startSignal(t) {
|
|
859
|
+
t.startObject(2);
|
|
866
860
|
}
|
|
867
861
|
static addId(t, e) {
|
|
868
862
|
t.addFieldOffset(0, e, 0);
|
|
869
863
|
}
|
|
870
|
-
static
|
|
871
|
-
t.
|
|
872
|
-
}
|
|
873
|
-
static addContent(t, e) {
|
|
874
|
-
t.addFieldOffset(2, e, 0);
|
|
875
|
-
}
|
|
876
|
-
static addFiles(t, e) {
|
|
877
|
-
t.addFieldOffset(3, e, 0);
|
|
878
|
-
}
|
|
879
|
-
static createFilesVector(t, e) {
|
|
880
|
-
t.startVector(4, e.length, 4);
|
|
881
|
-
for (let i = e.length - 1; i >= 0; i--)
|
|
882
|
-
t.addOffset(e[i]);
|
|
883
|
-
return t.endVector();
|
|
884
|
-
}
|
|
885
|
-
static startFilesVector(t, e) {
|
|
886
|
-
t.startVector(4, e, 4);
|
|
864
|
+
static addType(t, e) {
|
|
865
|
+
t.addFieldInt32(1, e, q.None);
|
|
887
866
|
}
|
|
888
|
-
static
|
|
867
|
+
static endSignal(t) {
|
|
889
868
|
const e = t.endObject();
|
|
890
|
-
return t.requiredField(e, 4),
|
|
869
|
+
return t.requiredField(e, 4), e;
|
|
891
870
|
}
|
|
892
|
-
static
|
|
893
|
-
return
|
|
871
|
+
static createSignal(t, e, i) {
|
|
872
|
+
return j.startSignal(t), j.addId(t, e), j.addType(t, i), j.endSignal(t);
|
|
894
873
|
}
|
|
895
874
|
unpack() {
|
|
896
|
-
return new
|
|
897
|
-
this.id(),
|
|
898
|
-
this.tag(),
|
|
899
|
-
this.content(),
|
|
900
|
-
this.bb.createObjList(this.files.bind(this), this.filesLength())
|
|
901
|
-
);
|
|
875
|
+
return new le(this.id(), this.type());
|
|
902
876
|
}
|
|
903
877
|
unpackTo(t) {
|
|
904
|
-
t.id = this.id(), t.
|
|
878
|
+
t.id = this.id(), t.type = this.type();
|
|
905
879
|
}
|
|
906
880
|
}
|
|
907
|
-
class
|
|
908
|
-
constructor(t = null, e =
|
|
881
|
+
class le {
|
|
882
|
+
constructor(t = null, e = q.None) {
|
|
909
883
|
n(this, "id");
|
|
910
|
-
n(this, "
|
|
911
|
-
|
|
912
|
-
n(this, "files");
|
|
913
|
-
this.id = t, this.tag = e, this.content = i, this.files = a;
|
|
884
|
+
n(this, "type");
|
|
885
|
+
this.id = t, this.type = e;
|
|
914
886
|
}
|
|
915
887
|
pack(t) {
|
|
916
|
-
const e = this.id !== null ? t.createString(this.id) : 0
|
|
917
|
-
|
|
918
|
-
t.createObjectOffsetList(this.files)
|
|
919
|
-
);
|
|
920
|
-
return T.createTaggedFrameCache(t, e, i, a, r);
|
|
888
|
+
const e = this.id !== null ? t.createString(this.id) : 0;
|
|
889
|
+
return j.createSignal(t, e, this.type);
|
|
921
890
|
}
|
|
922
891
|
}
|
|
923
|
-
class
|
|
892
|
+
class Y {
|
|
924
893
|
constructor() {
|
|
925
894
|
n(this, "bb", null);
|
|
926
895
|
n(this, "bb_pos", 0);
|
|
@@ -929,16 +898,10 @@ class Z {
|
|
|
929
898
|
return this.bb_pos = t, this.bb = e, this;
|
|
930
899
|
}
|
|
931
900
|
static getRootAsTaggedFrameLoaded(t, e) {
|
|
932
|
-
return (e || new
|
|
933
|
-
t.readInt32(t.position()) + t.position(),
|
|
934
|
-
t
|
|
935
|
-
);
|
|
901
|
+
return (e || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
936
902
|
}
|
|
937
903
|
static getSizePrefixedRootAsTaggedFrameLoaded(t, e) {
|
|
938
|
-
return t.setPosition(t.position() +
|
|
939
|
-
t.readInt32(t.position()) + t.position(),
|
|
940
|
-
t
|
|
941
|
-
);
|
|
904
|
+
return t.setPosition(t.position() + f), (e || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
942
905
|
}
|
|
943
906
|
id(t) {
|
|
944
907
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -962,16 +925,16 @@ class Z {
|
|
|
962
925
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
963
926
|
}
|
|
964
927
|
static createTaggedFrameLoaded(t, e, i) {
|
|
965
|
-
return
|
|
928
|
+
return Y.startTaggedFrameLoaded(t), Y.addId(t, e), Y.addTag(t, i), Y.endTaggedFrameLoaded(t);
|
|
966
929
|
}
|
|
967
930
|
unpack() {
|
|
968
|
-
return new
|
|
931
|
+
return new Ot(this.id(), this.tag());
|
|
969
932
|
}
|
|
970
933
|
unpackTo(t) {
|
|
971
934
|
t.id = this.id(), t.tag = this.tag();
|
|
972
935
|
}
|
|
973
936
|
}
|
|
974
|
-
class
|
|
937
|
+
class Ot {
|
|
975
938
|
constructor(t = null, e = null) {
|
|
976
939
|
n(this, "id");
|
|
977
940
|
n(this, "tag");
|
|
@@ -979,10 +942,10 @@ class qt {
|
|
|
979
942
|
}
|
|
980
943
|
pack(t) {
|
|
981
944
|
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0;
|
|
982
|
-
return
|
|
945
|
+
return Y.createTaggedFrameLoaded(t, e, i);
|
|
983
946
|
}
|
|
984
947
|
}
|
|
985
|
-
class
|
|
948
|
+
class Z {
|
|
986
949
|
constructor() {
|
|
987
950
|
n(this, "bb", null);
|
|
988
951
|
n(this, "bb_pos", 0);
|
|
@@ -991,16 +954,10 @@ class $ {
|
|
|
991
954
|
return this.bb_pos = t, this.bb = e, this;
|
|
992
955
|
}
|
|
993
956
|
static getRootAsTaggedFrameSubscribe(t, e) {
|
|
994
|
-
return (e || new
|
|
995
|
-
t.readInt32(t.position()) + t.position(),
|
|
996
|
-
t
|
|
997
|
-
);
|
|
957
|
+
return (e || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
998
958
|
}
|
|
999
959
|
static getSizePrefixedRootAsTaggedFrameSubscribe(t, e) {
|
|
1000
|
-
return t.setPosition(t.position() +
|
|
1001
|
-
t.readInt32(t.position()) + t.position(),
|
|
1002
|
-
t
|
|
1003
|
-
);
|
|
960
|
+
return t.setPosition(t.position() + f), (e || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1004
961
|
}
|
|
1005
962
|
id(t) {
|
|
1006
963
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1024,16 +981,16 @@ class $ {
|
|
|
1024
981
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
1025
982
|
}
|
|
1026
983
|
static createTaggedFrameSubscribe(t, e, i) {
|
|
1027
|
-
return
|
|
984
|
+
return Z.startTaggedFrameSubscribe(t), Z.addId(t, e), Z.addTag(t, i), Z.endTaggedFrameSubscribe(t);
|
|
1028
985
|
}
|
|
1029
986
|
unpack() {
|
|
1030
|
-
return new
|
|
987
|
+
return new qt(this.id(), this.tag());
|
|
1031
988
|
}
|
|
1032
989
|
unpackTo(t) {
|
|
1033
990
|
t.id = this.id(), t.tag = this.tag();
|
|
1034
991
|
}
|
|
1035
992
|
}
|
|
1036
|
-
class
|
|
993
|
+
class qt {
|
|
1037
994
|
constructor(t = null, e = null) {
|
|
1038
995
|
n(this, "id");
|
|
1039
996
|
n(this, "tag");
|
|
@@ -1041,10 +998,10 @@ class Ut {
|
|
|
1041
998
|
}
|
|
1042
999
|
pack(t) {
|
|
1043
1000
|
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0;
|
|
1044
|
-
return
|
|
1001
|
+
return Z.createTaggedFrameSubscribe(t, e, i);
|
|
1045
1002
|
}
|
|
1046
1003
|
}
|
|
1047
|
-
class
|
|
1004
|
+
class J {
|
|
1048
1005
|
constructor() {
|
|
1049
1006
|
n(this, "bb", null);
|
|
1050
1007
|
n(this, "bb_pos", 0);
|
|
@@ -1053,10 +1010,10 @@ class K {
|
|
|
1053
1010
|
return this.bb_pos = t, this.bb = e, this;
|
|
1054
1011
|
}
|
|
1055
1012
|
static getRootAsValueBoolean(t, e) {
|
|
1056
|
-
return (e || new
|
|
1013
|
+
return (e || new J()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1057
1014
|
}
|
|
1058
1015
|
static getSizePrefixedRootAsValueBoolean(t, e) {
|
|
1059
|
-
return t.setPosition(t.position() +
|
|
1016
|
+
return t.setPosition(t.position() + f), (e || new J()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1060
1017
|
}
|
|
1061
1018
|
value() {
|
|
1062
1019
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1072,25 +1029,25 @@ class K {
|
|
|
1072
1029
|
return t.endObject();
|
|
1073
1030
|
}
|
|
1074
1031
|
static createValueBoolean(t, e) {
|
|
1075
|
-
return
|
|
1032
|
+
return J.startValueBoolean(t), J.addValue(t, e), J.endValueBoolean(t);
|
|
1076
1033
|
}
|
|
1077
1034
|
unpack() {
|
|
1078
|
-
return new
|
|
1035
|
+
return new Lt(this.value());
|
|
1079
1036
|
}
|
|
1080
1037
|
unpackTo(t) {
|
|
1081
1038
|
t.value = this.value();
|
|
1082
1039
|
}
|
|
1083
1040
|
}
|
|
1084
|
-
class
|
|
1041
|
+
class Lt {
|
|
1085
1042
|
constructor(t = !1) {
|
|
1086
1043
|
n(this, "value");
|
|
1087
1044
|
this.value = t;
|
|
1088
1045
|
}
|
|
1089
1046
|
pack(t) {
|
|
1090
|
-
return
|
|
1047
|
+
return J.createValueBoolean(t, this.value);
|
|
1091
1048
|
}
|
|
1092
1049
|
}
|
|
1093
|
-
class
|
|
1050
|
+
class z {
|
|
1094
1051
|
constructor() {
|
|
1095
1052
|
n(this, "bb", null);
|
|
1096
1053
|
n(this, "bb_pos", 0);
|
|
@@ -1099,10 +1056,10 @@ class D {
|
|
|
1099
1056
|
return this.bb_pos = t, this.bb = e, this;
|
|
1100
1057
|
}
|
|
1101
1058
|
static getRootAsValueBuffer(t, e) {
|
|
1102
|
-
return (e || new
|
|
1059
|
+
return (e || new z()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1103
1060
|
}
|
|
1104
1061
|
static getSizePrefixedRootAsValueBuffer(t, e) {
|
|
1105
|
-
return t.setPosition(t.position() +
|
|
1062
|
+
return t.setPosition(t.position() + f), (e || new z()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1106
1063
|
}
|
|
1107
1064
|
value(t) {
|
|
1108
1065
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1114,11 +1071,7 @@ class D {
|
|
|
1114
1071
|
}
|
|
1115
1072
|
valueArray() {
|
|
1116
1073
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
1117
|
-
return t ? new Uint8Array(
|
|
1118
|
-
this.bb.bytes().buffer,
|
|
1119
|
-
this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + t),
|
|
1120
|
-
this.bb.__vector_len(this.bb_pos + t)
|
|
1121
|
-
) : null;
|
|
1074
|
+
return t ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + t), this.bb.__vector_len(this.bb_pos + t)) : null;
|
|
1122
1075
|
}
|
|
1123
1076
|
static startValueBuffer(t) {
|
|
1124
1077
|
t.startObject(1);
|
|
@@ -1139,12 +1092,10 @@ class D {
|
|
|
1139
1092
|
return t.endObject();
|
|
1140
1093
|
}
|
|
1141
1094
|
static createValueBuffer(t, e) {
|
|
1142
|
-
return
|
|
1095
|
+
return z.startValueBuffer(t), z.addValue(t, e), z.endValueBuffer(t);
|
|
1143
1096
|
}
|
|
1144
1097
|
unpack() {
|
|
1145
|
-
return new Pt(
|
|
1146
|
-
this.bb.createScalarList(this.value.bind(this), this.valueLength())
|
|
1147
|
-
);
|
|
1098
|
+
return new Pt(this.bb.createScalarList(this.value.bind(this), this.valueLength()));
|
|
1148
1099
|
}
|
|
1149
1100
|
unpackTo(t) {
|
|
1150
1101
|
t.value = this.bb.createScalarList(this.value.bind(this), this.valueLength());
|
|
@@ -1156,11 +1107,11 @@ class Pt {
|
|
|
1156
1107
|
this.value = t;
|
|
1157
1108
|
}
|
|
1158
1109
|
pack(t) {
|
|
1159
|
-
const e =
|
|
1160
|
-
return
|
|
1110
|
+
const e = z.createValueVector(t, this.value);
|
|
1111
|
+
return z.createValueBuffer(t, e);
|
|
1161
1112
|
}
|
|
1162
1113
|
}
|
|
1163
|
-
class
|
|
1114
|
+
class K {
|
|
1164
1115
|
constructor() {
|
|
1165
1116
|
n(this, "bb", null);
|
|
1166
1117
|
n(this, "bb_pos", 0);
|
|
@@ -1169,10 +1120,10 @@ class Q {
|
|
|
1169
1120
|
return this.bb_pos = t, this.bb = e, this;
|
|
1170
1121
|
}
|
|
1171
1122
|
static getRootAsValueDouble(t, e) {
|
|
1172
|
-
return (e || new
|
|
1123
|
+
return (e || new K()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1173
1124
|
}
|
|
1174
1125
|
static getSizePrefixedRootAsValueDouble(t, e) {
|
|
1175
|
-
return t.setPosition(t.position() +
|
|
1126
|
+
return t.setPosition(t.position() + f), (e || new K()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1176
1127
|
}
|
|
1177
1128
|
value() {
|
|
1178
1129
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1188,7 +1139,7 @@ class Q {
|
|
|
1188
1139
|
return t.endObject();
|
|
1189
1140
|
}
|
|
1190
1141
|
static createValueDouble(t, e) {
|
|
1191
|
-
return
|
|
1142
|
+
return K.startValueDouble(t), K.addValue(t, e), K.endValueDouble(t);
|
|
1192
1143
|
}
|
|
1193
1144
|
unpack() {
|
|
1194
1145
|
return new xt(this.value());
|
|
@@ -1203,10 +1154,10 @@ class xt {
|
|
|
1203
1154
|
this.value = t;
|
|
1204
1155
|
}
|
|
1205
1156
|
pack(t) {
|
|
1206
|
-
return
|
|
1157
|
+
return K.createValueDouble(t, this.value);
|
|
1207
1158
|
}
|
|
1208
1159
|
}
|
|
1209
|
-
class
|
|
1160
|
+
class Q {
|
|
1210
1161
|
constructor() {
|
|
1211
1162
|
n(this, "bb", null);
|
|
1212
1163
|
n(this, "bb_pos", 0);
|
|
@@ -1215,10 +1166,10 @@ class M {
|
|
|
1215
1166
|
return this.bb_pos = t, this.bb = e, this;
|
|
1216
1167
|
}
|
|
1217
1168
|
static getRootAsValueNumber(t, e) {
|
|
1218
|
-
return (e || new
|
|
1169
|
+
return (e || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1219
1170
|
}
|
|
1220
1171
|
static getSizePrefixedRootAsValueNumber(t, e) {
|
|
1221
|
-
return t.setPosition(t.position() +
|
|
1172
|
+
return t.setPosition(t.position() + f), (e || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1222
1173
|
}
|
|
1223
1174
|
value() {
|
|
1224
1175
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1234,7 +1185,7 @@ class M {
|
|
|
1234
1185
|
return t.endObject();
|
|
1235
1186
|
}
|
|
1236
1187
|
static createValueNumber(t, e) {
|
|
1237
|
-
return
|
|
1188
|
+
return Q.startValueNumber(t), Q.addValue(t, e), Q.endValueNumber(t);
|
|
1238
1189
|
}
|
|
1239
1190
|
unpack() {
|
|
1240
1191
|
return new Et(this.value());
|
|
@@ -1249,10 +1200,10 @@ class Et {
|
|
|
1249
1200
|
this.value = t;
|
|
1250
1201
|
}
|
|
1251
1202
|
pack(t) {
|
|
1252
|
-
return
|
|
1203
|
+
return Q.createValueNumber(t, this.value);
|
|
1253
1204
|
}
|
|
1254
1205
|
}
|
|
1255
|
-
class
|
|
1206
|
+
class M {
|
|
1256
1207
|
constructor() {
|
|
1257
1208
|
n(this, "bb", null);
|
|
1258
1209
|
n(this, "bb_pos", 0);
|
|
@@ -1261,10 +1212,10 @@ class tt {
|
|
|
1261
1212
|
return this.bb_pos = t, this.bb = e, this;
|
|
1262
1213
|
}
|
|
1263
1214
|
static getRootAsValueString(t, e) {
|
|
1264
|
-
return (e || new
|
|
1215
|
+
return (e || new M()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1265
1216
|
}
|
|
1266
1217
|
static getSizePrefixedRootAsValueString(t, e) {
|
|
1267
|
-
return t.setPosition(t.position() +
|
|
1218
|
+
return t.setPosition(t.position() + f), (e || new M()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1268
1219
|
}
|
|
1269
1220
|
value(t) {
|
|
1270
1221
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1280,7 +1231,7 @@ class tt {
|
|
|
1280
1231
|
return t.endObject();
|
|
1281
1232
|
}
|
|
1282
1233
|
static createValueString(t, e) {
|
|
1283
|
-
return
|
|
1234
|
+
return M.startValueString(t), M.addValue(t, e), M.endValueString(t);
|
|
1284
1235
|
}
|
|
1285
1236
|
unpack() {
|
|
1286
1237
|
return new zt(this.value());
|
|
@@ -1296,27 +1247,27 @@ class zt {
|
|
|
1296
1247
|
}
|
|
1297
1248
|
pack(t) {
|
|
1298
1249
|
const e = this.value !== null ? t.createString(this.value) : 0;
|
|
1299
|
-
return
|
|
1250
|
+
return M.createValueString(t, e);
|
|
1300
1251
|
}
|
|
1301
1252
|
}
|
|
1302
|
-
var
|
|
1253
|
+
var l;
|
|
1303
1254
|
(function(s) {
|
|
1304
1255
|
s[s.NONE = 0] = "NONE", s[s.ValueBoolean = 1] = "ValueBoolean", s[s.ValueNumber = 2] = "ValueNumber", s[s.ValueDouble = 3] = "ValueDouble", s[s.ValueString = 4] = "ValueString", s[s.ValueBuffer = 5] = "ValueBuffer";
|
|
1305
|
-
})(
|
|
1306
|
-
function
|
|
1307
|
-
switch (
|
|
1256
|
+
})(l || (l = {}));
|
|
1257
|
+
function ut(s, t) {
|
|
1258
|
+
switch (l[s]) {
|
|
1308
1259
|
case "NONE":
|
|
1309
1260
|
return null;
|
|
1310
1261
|
case "ValueBoolean":
|
|
1311
|
-
return t(new
|
|
1262
|
+
return t(new J());
|
|
1312
1263
|
case "ValueNumber":
|
|
1313
|
-
return t(new M());
|
|
1314
|
-
case "ValueDouble":
|
|
1315
1264
|
return t(new Q());
|
|
1265
|
+
case "ValueDouble":
|
|
1266
|
+
return t(new K());
|
|
1316
1267
|
case "ValueString":
|
|
1317
|
-
return t(new
|
|
1268
|
+
return t(new M());
|
|
1318
1269
|
case "ValueBuffer":
|
|
1319
|
-
return t(new
|
|
1270
|
+
return t(new z());
|
|
1320
1271
|
default:
|
|
1321
1272
|
return null;
|
|
1322
1273
|
}
|
|
@@ -1330,16 +1281,10 @@ class U {
|
|
|
1330
1281
|
return this.bb_pos = t, this.bb = e, this;
|
|
1331
1282
|
}
|
|
1332
1283
|
static getRootAsTaggedSignalNotify(t, e) {
|
|
1333
|
-
return (e || new U()).__init(
|
|
1334
|
-
t.readInt32(t.position()) + t.position(),
|
|
1335
|
-
t
|
|
1336
|
-
);
|
|
1284
|
+
return (e || new U()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1337
1285
|
}
|
|
1338
1286
|
static getSizePrefixedRootAsTaggedSignalNotify(t, e) {
|
|
1339
|
-
return t.setPosition(t.position() +
|
|
1340
|
-
t.readInt32(t.position()) + t.position(),
|
|
1341
|
-
t
|
|
1342
|
-
);
|
|
1287
|
+
return t.setPosition(t.position() + f), (e || new U()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1343
1288
|
}
|
|
1344
1289
|
frameId(t) {
|
|
1345
1290
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1355,7 +1300,7 @@ class U {
|
|
|
1355
1300
|
}
|
|
1356
1301
|
valueType() {
|
|
1357
1302
|
const t = this.bb.__offset(this.bb_pos, 10);
|
|
1358
|
-
return t ? this.bb.readUint8(this.bb_pos + t) :
|
|
1303
|
+
return t ? this.bb.readUint8(this.bb_pos + t) : l.NONE;
|
|
1359
1304
|
}
|
|
1360
1305
|
value(t) {
|
|
1361
1306
|
const e = this.bb.__offset(this.bb_pos, 12);
|
|
@@ -1374,7 +1319,7 @@ class U {
|
|
|
1374
1319
|
t.addFieldOffset(2, e, 0);
|
|
1375
1320
|
}
|
|
1376
1321
|
static addValueType(t, e) {
|
|
1377
|
-
t.addFieldInt8(3, e,
|
|
1322
|
+
t.addFieldInt8(3, e, l.NONE);
|
|
1378
1323
|
}
|
|
1379
1324
|
static addValue(t, e) {
|
|
1380
1325
|
t.addFieldOffset(4, e, 0);
|
|
@@ -1387,26 +1332,20 @@ class U {
|
|
|
1387
1332
|
return U.startTaggedSignalNotify(t), U.addFrameId(t, e), U.addTag(t, i), U.addSignalId(t, a), U.addValueType(t, r), U.addValue(t, o), U.endTaggedSignalNotify(t);
|
|
1388
1333
|
}
|
|
1389
1334
|
unpack() {
|
|
1390
|
-
return new Dt(
|
|
1391
|
-
this.
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
this.valueType(),
|
|
1395
|
-
(() => {
|
|
1396
|
-
const t = ht(this.valueType(), this.value.bind(this));
|
|
1397
|
-
return t === null ? null : t.unpack();
|
|
1398
|
-
})()
|
|
1399
|
-
);
|
|
1335
|
+
return new Dt(this.frameId(), this.tag(), this.signalId(), this.valueType(), (() => {
|
|
1336
|
+
const t = ut(this.valueType(), this.value.bind(this));
|
|
1337
|
+
return t === null ? null : t.unpack();
|
|
1338
|
+
})());
|
|
1400
1339
|
}
|
|
1401
1340
|
unpackTo(t) {
|
|
1402
1341
|
t.frameId = this.frameId(), t.tag = this.tag(), t.signalId = this.signalId(), t.valueType = this.valueType(), t.value = (() => {
|
|
1403
|
-
const e =
|
|
1342
|
+
const e = ut(this.valueType(), this.value.bind(this));
|
|
1404
1343
|
return e === null ? null : e.unpack();
|
|
1405
1344
|
})();
|
|
1406
1345
|
}
|
|
1407
1346
|
}
|
|
1408
1347
|
class Dt {
|
|
1409
|
-
constructor(t = null, e = null, i = null, a =
|
|
1348
|
+
constructor(t = null, e = null, i = null, a = l.NONE, r = null) {
|
|
1410
1349
|
n(this, "frameId");
|
|
1411
1350
|
n(this, "tag");
|
|
1412
1351
|
n(this, "signalId");
|
|
@@ -1416,17 +1355,10 @@ class Dt {
|
|
|
1416
1355
|
}
|
|
1417
1356
|
pack(t) {
|
|
1418
1357
|
const e = this.frameId !== null ? t.createString(this.frameId) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a = this.signalId !== null ? t.createString(this.signalId) : 0, r = t.createObjectOffset(this.value);
|
|
1419
|
-
return U.createTaggedSignalNotify(
|
|
1420
|
-
t,
|
|
1421
|
-
e,
|
|
1422
|
-
i,
|
|
1423
|
-
a,
|
|
1424
|
-
this.valueType,
|
|
1425
|
-
r
|
|
1426
|
-
);
|
|
1358
|
+
return U.createTaggedSignalNotify(t, e, i, a, this.valueType, r);
|
|
1427
1359
|
}
|
|
1428
1360
|
}
|
|
1429
|
-
class
|
|
1361
|
+
class $ {
|
|
1430
1362
|
constructor() {
|
|
1431
1363
|
n(this, "bb", null);
|
|
1432
1364
|
n(this, "bb_pos", 0);
|
|
@@ -1435,16 +1367,10 @@ class X {
|
|
|
1435
1367
|
return this.bb_pos = t, this.bb = e, this;
|
|
1436
1368
|
}
|
|
1437
1369
|
static getRootAsTaggedSignalRequest(t, e) {
|
|
1438
|
-
return (e || new
|
|
1439
|
-
t.readInt32(t.position()) + t.position(),
|
|
1440
|
-
t
|
|
1441
|
-
);
|
|
1370
|
+
return (e || new $()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1442
1371
|
}
|
|
1443
1372
|
static getSizePrefixedRootAsTaggedSignalRequest(t, e) {
|
|
1444
|
-
return t.setPosition(t.position() +
|
|
1445
|
-
t.readInt32(t.position()) + t.position(),
|
|
1446
|
-
t
|
|
1447
|
-
);
|
|
1373
|
+
return t.setPosition(t.position() + f), (e || new $()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1448
1374
|
}
|
|
1449
1375
|
id(t) {
|
|
1450
1376
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1468,7 +1394,7 @@ class X {
|
|
|
1468
1394
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
1469
1395
|
}
|
|
1470
1396
|
static createTaggedSignalRequest(t, e, i) {
|
|
1471
|
-
return
|
|
1397
|
+
return $.startTaggedSignalRequest(t), $.addId(t, e), $.addTag(t, i), $.endTaggedSignalRequest(t);
|
|
1472
1398
|
}
|
|
1473
1399
|
unpack() {
|
|
1474
1400
|
return new Gt(this.id(), this.tag());
|
|
@@ -1485,10 +1411,10 @@ class Gt {
|
|
|
1485
1411
|
}
|
|
1486
1412
|
pack(t) {
|
|
1487
1413
|
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0;
|
|
1488
|
-
return
|
|
1414
|
+
return $.createTaggedSignalRequest(t, e, i);
|
|
1489
1415
|
}
|
|
1490
1416
|
}
|
|
1491
|
-
class
|
|
1417
|
+
class T {
|
|
1492
1418
|
constructor() {
|
|
1493
1419
|
n(this, "bb", null);
|
|
1494
1420
|
n(this, "bb_pos", 0);
|
|
@@ -1497,16 +1423,10 @@ class R {
|
|
|
1497
1423
|
return this.bb_pos = t, this.bb = e, this;
|
|
1498
1424
|
}
|
|
1499
1425
|
static getRootAsTaggedSignalResponse(t, e) {
|
|
1500
|
-
return (e || new
|
|
1501
|
-
t.readInt32(t.position()) + t.position(),
|
|
1502
|
-
t
|
|
1503
|
-
);
|
|
1426
|
+
return (e || new T()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1504
1427
|
}
|
|
1505
1428
|
static getSizePrefixedRootAsTaggedSignalResponse(t, e) {
|
|
1506
|
-
return t.setPosition(t.position() +
|
|
1507
|
-
t.readInt32(t.position()) + t.position(),
|
|
1508
|
-
t
|
|
1509
|
-
);
|
|
1429
|
+
return t.setPosition(t.position() + f), (e || new T()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1510
1430
|
}
|
|
1511
1431
|
id(t) {
|
|
1512
1432
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1518,10 +1438,7 @@ class R {
|
|
|
1518
1438
|
}
|
|
1519
1439
|
signals(t, e) {
|
|
1520
1440
|
const i = this.bb.__offset(this.bb_pos, 8);
|
|
1521
|
-
return i ? (e || new
|
|
1522
|
-
this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4),
|
|
1523
|
-
this.bb
|
|
1524
|
-
) : null;
|
|
1441
|
+
return i ? (e || new j()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4), this.bb) : null;
|
|
1525
1442
|
}
|
|
1526
1443
|
signalsLength() {
|
|
1527
1444
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -1553,20 +1470,16 @@ class R {
|
|
|
1553
1470
|
return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
|
|
1554
1471
|
}
|
|
1555
1472
|
static createTaggedSignalResponse(t, e, i, a) {
|
|
1556
|
-
return
|
|
1473
|
+
return T.startTaggedSignalResponse(t), T.addId(t, e), T.addTag(t, i), T.addSignals(t, a), T.endTaggedSignalResponse(t);
|
|
1557
1474
|
}
|
|
1558
1475
|
unpack() {
|
|
1559
|
-
return new
|
|
1560
|
-
this.id(),
|
|
1561
|
-
this.tag(),
|
|
1562
|
-
this.bb.createObjList(this.signals.bind(this), this.signalsLength())
|
|
1563
|
-
);
|
|
1476
|
+
return new ce(this.id(), this.tag(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
|
|
1564
1477
|
}
|
|
1565
1478
|
unpackTo(t) {
|
|
1566
1479
|
t.id = this.id(), t.tag = this.tag(), t.signals = this.bb.createObjList(this.signals.bind(this), this.signalsLength());
|
|
1567
1480
|
}
|
|
1568
1481
|
}
|
|
1569
|
-
class
|
|
1482
|
+
class ce {
|
|
1570
1483
|
constructor(t = null, e = null, i = []) {
|
|
1571
1484
|
n(this, "id");
|
|
1572
1485
|
n(this, "tag");
|
|
@@ -1574,14 +1487,11 @@ class ue {
|
|
|
1574
1487
|
this.id = t, this.tag = e, this.signals = i;
|
|
1575
1488
|
}
|
|
1576
1489
|
pack(t) {
|
|
1577
|
-
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a =
|
|
1578
|
-
|
|
1579
|
-
t.createObjectOffsetList(this.signals)
|
|
1580
|
-
);
|
|
1581
|
-
return R.createTaggedSignalResponse(t, e, i, a);
|
|
1490
|
+
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a = T.createSignalsVector(t, t.createObjectOffsetList(this.signals));
|
|
1491
|
+
return T.createTaggedSignalResponse(t, e, i, a);
|
|
1582
1492
|
}
|
|
1583
1493
|
}
|
|
1584
|
-
class
|
|
1494
|
+
class X {
|
|
1585
1495
|
constructor() {
|
|
1586
1496
|
n(this, "bb", null);
|
|
1587
1497
|
n(this, "bb_pos", 0);
|
|
@@ -1590,16 +1500,10 @@ class J {
|
|
|
1590
1500
|
return this.bb_pos = t, this.bb = e, this;
|
|
1591
1501
|
}
|
|
1592
1502
|
static getRootAsTaggedValueRequest(t, e) {
|
|
1593
|
-
return (e || new
|
|
1594
|
-
t.readInt32(t.position()) + t.position(),
|
|
1595
|
-
t
|
|
1596
|
-
);
|
|
1503
|
+
return (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1597
1504
|
}
|
|
1598
1505
|
static getSizePrefixedRootAsTaggedValueRequest(t, e) {
|
|
1599
|
-
return t.setPosition(t.position() +
|
|
1600
|
-
t.readInt32(t.position()) + t.position(),
|
|
1601
|
-
t
|
|
1602
|
-
);
|
|
1506
|
+
return t.setPosition(t.position() + f), (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1603
1507
|
}
|
|
1604
1508
|
id(t) {
|
|
1605
1509
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1623,7 +1527,7 @@ class J {
|
|
|
1623
1527
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
1624
1528
|
}
|
|
1625
1529
|
static createTaggedValueRequest(t, e, i) {
|
|
1626
|
-
return
|
|
1530
|
+
return X.startTaggedValueRequest(t), X.addId(t, e), X.addTag(t, i), X.endTaggedValueRequest(t);
|
|
1627
1531
|
}
|
|
1628
1532
|
unpack() {
|
|
1629
1533
|
return new Wt(this.id(), this.tag());
|
|
@@ -1640,7 +1544,7 @@ class Wt {
|
|
|
1640
1544
|
}
|
|
1641
1545
|
pack(t) {
|
|
1642
1546
|
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0;
|
|
1643
|
-
return
|
|
1547
|
+
return X.createTaggedValueRequest(t, e, i);
|
|
1644
1548
|
}
|
|
1645
1549
|
}
|
|
1646
1550
|
class S {
|
|
@@ -1655,7 +1559,7 @@ class S {
|
|
|
1655
1559
|
return (e || new S()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1656
1560
|
}
|
|
1657
1561
|
static getSizePrefixedRootAsValue(t, e) {
|
|
1658
|
-
return t.setPosition(t.position() +
|
|
1562
|
+
return t.setPosition(t.position() + f), (e || new S()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1659
1563
|
}
|
|
1660
1564
|
id(t) {
|
|
1661
1565
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1663,7 +1567,7 @@ class S {
|
|
|
1663
1567
|
}
|
|
1664
1568
|
valueType() {
|
|
1665
1569
|
const t = this.bb.__offset(this.bb_pos, 6);
|
|
1666
|
-
return t ? this.bb.readUint8(this.bb_pos + t) :
|
|
1570
|
+
return t ? this.bb.readUint8(this.bb_pos + t) : l.NONE;
|
|
1667
1571
|
}
|
|
1668
1572
|
value(t) {
|
|
1669
1573
|
const e = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -1676,7 +1580,7 @@ class S {
|
|
|
1676
1580
|
t.addFieldOffset(0, e, 0);
|
|
1677
1581
|
}
|
|
1678
1582
|
static addValueType(t, e) {
|
|
1679
|
-
t.addFieldInt8(1, e,
|
|
1583
|
+
t.addFieldInt8(1, e, l.NONE);
|
|
1680
1584
|
}
|
|
1681
1585
|
static addValue(t, e) {
|
|
1682
1586
|
t.addFieldOffset(2, e, 0);
|
|
@@ -1689,24 +1593,20 @@ class S {
|
|
|
1689
1593
|
return S.startValue(t), S.addId(t, e), S.addValueType(t, i), S.addValue(t, a), S.endValue(t);
|
|
1690
1594
|
}
|
|
1691
1595
|
unpack() {
|
|
1692
|
-
return new Ht(
|
|
1693
|
-
this.
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
const t = ht(this.valueType(), this.value.bind(this));
|
|
1697
|
-
return t === null ? null : t.unpack();
|
|
1698
|
-
})()
|
|
1699
|
-
);
|
|
1596
|
+
return new Ht(this.id(), this.valueType(), (() => {
|
|
1597
|
+
const t = ut(this.valueType(), this.value.bind(this));
|
|
1598
|
+
return t === null ? null : t.unpack();
|
|
1599
|
+
})());
|
|
1700
1600
|
}
|
|
1701
1601
|
unpackTo(t) {
|
|
1702
1602
|
t.id = this.id(), t.valueType = this.valueType(), t.value = (() => {
|
|
1703
|
-
const e =
|
|
1603
|
+
const e = ut(this.valueType(), this.value.bind(this));
|
|
1704
1604
|
return e === null ? null : e.unpack();
|
|
1705
1605
|
})();
|
|
1706
1606
|
}
|
|
1707
1607
|
}
|
|
1708
1608
|
class Ht {
|
|
1709
|
-
constructor(t = null, e =
|
|
1609
|
+
constructor(t = null, e = l.NONE, i = null) {
|
|
1710
1610
|
n(this, "id");
|
|
1711
1611
|
n(this, "valueType");
|
|
1712
1612
|
n(this, "value");
|
|
@@ -1717,7 +1617,7 @@ class Ht {
|
|
|
1717
1617
|
return S.createValue(t, e, this.valueType, i);
|
|
1718
1618
|
}
|
|
1719
1619
|
}
|
|
1720
|
-
class
|
|
1620
|
+
class R {
|
|
1721
1621
|
constructor() {
|
|
1722
1622
|
n(this, "bb", null);
|
|
1723
1623
|
n(this, "bb_pos", 0);
|
|
@@ -1726,16 +1626,10 @@ class k {
|
|
|
1726
1626
|
return this.bb_pos = t, this.bb = e, this;
|
|
1727
1627
|
}
|
|
1728
1628
|
static getRootAsTaggedValueResponse(t, e) {
|
|
1729
|
-
return (e || new
|
|
1730
|
-
t.readInt32(t.position()) + t.position(),
|
|
1731
|
-
t
|
|
1732
|
-
);
|
|
1629
|
+
return (e || new R()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1733
1630
|
}
|
|
1734
1631
|
static getSizePrefixedRootAsTaggedValueResponse(t, e) {
|
|
1735
|
-
return t.setPosition(t.position() +
|
|
1736
|
-
t.readInt32(t.position()) + t.position(),
|
|
1737
|
-
t
|
|
1738
|
-
);
|
|
1632
|
+
return t.setPosition(t.position() + f), (e || new R()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1739
1633
|
}
|
|
1740
1634
|
id(t) {
|
|
1741
1635
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1747,10 +1641,7 @@ class k {
|
|
|
1747
1641
|
}
|
|
1748
1642
|
values(t, e) {
|
|
1749
1643
|
const i = this.bb.__offset(this.bb_pos, 8);
|
|
1750
|
-
return i ? (e || new S()).__init(
|
|
1751
|
-
this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4),
|
|
1752
|
-
this.bb
|
|
1753
|
-
) : null;
|
|
1644
|
+
return i ? (e || new S()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4), this.bb) : null;
|
|
1754
1645
|
}
|
|
1755
1646
|
valuesLength() {
|
|
1756
1647
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -1782,20 +1673,16 @@ class k {
|
|
|
1782
1673
|
return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
|
|
1783
1674
|
}
|
|
1784
1675
|
static createTaggedValueResponse(t, e, i, a) {
|
|
1785
|
-
return
|
|
1676
|
+
return R.startTaggedValueResponse(t), R.addId(t, e), R.addTag(t, i), R.addValues(t, a), R.endTaggedValueResponse(t);
|
|
1786
1677
|
}
|
|
1787
1678
|
unpack() {
|
|
1788
|
-
return new
|
|
1789
|
-
this.id(),
|
|
1790
|
-
this.tag(),
|
|
1791
|
-
this.bb.createObjList(this.values.bind(this), this.valuesLength())
|
|
1792
|
-
);
|
|
1679
|
+
return new ue(this.id(), this.tag(), this.bb.createObjList(this.values.bind(this), this.valuesLength()));
|
|
1793
1680
|
}
|
|
1794
1681
|
unpackTo(t) {
|
|
1795
1682
|
t.id = this.id(), t.tag = this.tag(), t.values = this.bb.createObjList(this.values.bind(this), this.valuesLength());
|
|
1796
1683
|
}
|
|
1797
1684
|
}
|
|
1798
|
-
class
|
|
1685
|
+
class ue {
|
|
1799
1686
|
constructor(t = null, e = null, i = []) {
|
|
1800
1687
|
n(this, "id");
|
|
1801
1688
|
n(this, "tag");
|
|
@@ -1803,14 +1690,11 @@ class he {
|
|
|
1803
1690
|
this.id = t, this.tag = e, this.values = i;
|
|
1804
1691
|
}
|
|
1805
1692
|
pack(t) {
|
|
1806
|
-
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a =
|
|
1807
|
-
|
|
1808
|
-
t.createObjectOffsetList(this.values)
|
|
1809
|
-
);
|
|
1810
|
-
return k.createTaggedValueResponse(t, e, i, a);
|
|
1693
|
+
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a = R.createValuesVector(t, t.createObjectOffsetList(this.values));
|
|
1694
|
+
return R.createTaggedValueResponse(t, e, i, a);
|
|
1811
1695
|
}
|
|
1812
1696
|
}
|
|
1813
|
-
class
|
|
1697
|
+
class D {
|
|
1814
1698
|
constructor() {
|
|
1815
1699
|
n(this, "bb", null);
|
|
1816
1700
|
n(this, "bb_pos", 0);
|
|
@@ -1819,16 +1703,10 @@ class G {
|
|
|
1819
1703
|
return this.bb_pos = t, this.bb = e, this;
|
|
1820
1704
|
}
|
|
1821
1705
|
static getRootAsTaggedValueUpdate(t, e) {
|
|
1822
|
-
return (e || new
|
|
1823
|
-
t.readInt32(t.position()) + t.position(),
|
|
1824
|
-
t
|
|
1825
|
-
);
|
|
1706
|
+
return (e || new D()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1826
1707
|
}
|
|
1827
1708
|
static getSizePrefixedRootAsTaggedValueUpdate(t, e) {
|
|
1828
|
-
return t.setPosition(t.position() +
|
|
1829
|
-
t.readInt32(t.position()) + t.position(),
|
|
1830
|
-
t
|
|
1831
|
-
);
|
|
1709
|
+
return t.setPosition(t.position() + f), (e || new D()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1832
1710
|
}
|
|
1833
1711
|
id(t) {
|
|
1834
1712
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1859,11 +1737,7 @@ class G {
|
|
|
1859
1737
|
return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
|
|
1860
1738
|
}
|
|
1861
1739
|
unpack() {
|
|
1862
|
-
return new Yt(
|
|
1863
|
-
this.id(),
|
|
1864
|
-
this.tag(),
|
|
1865
|
-
this.value() !== null ? this.value().unpack() : null
|
|
1866
|
-
);
|
|
1740
|
+
return new Yt(this.id(), this.tag(), this.value() !== null ? this.value().unpack() : null);
|
|
1867
1741
|
}
|
|
1868
1742
|
unpackTo(t) {
|
|
1869
1743
|
t.id = this.id(), t.tag = this.tag(), t.value = this.value() !== null ? this.value().unpack() : null;
|
|
@@ -1878,103 +1752,10 @@ class Yt {
|
|
|
1878
1752
|
}
|
|
1879
1753
|
pack(t) {
|
|
1880
1754
|
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a = this.value !== null ? this.value.pack(t) : 0;
|
|
1881
|
-
return
|
|
1755
|
+
return D.startTaggedValueUpdate(t), D.addId(t, e), D.addTag(t, i), D.addValue(t, a), D.endTaggedValueUpdate(t);
|
|
1882
1756
|
}
|
|
1883
1757
|
}
|
|
1884
|
-
class
|
|
1885
|
-
constructor() {
|
|
1886
|
-
n(this, "bb", null);
|
|
1887
|
-
n(this, "bb_pos", 0);
|
|
1888
|
-
}
|
|
1889
|
-
__init(t, e) {
|
|
1890
|
-
return this.bb_pos = t, this.bb = e, this;
|
|
1891
|
-
}
|
|
1892
|
-
static getRootAsUniqueFrameCache(t, e) {
|
|
1893
|
-
return (e || new A()).__init(
|
|
1894
|
-
t.readInt32(t.position()) + t.position(),
|
|
1895
|
-
t
|
|
1896
|
-
);
|
|
1897
|
-
}
|
|
1898
|
-
static getSizePrefixedRootAsUniqueFrameCache(t, e) {
|
|
1899
|
-
return t.setPosition(t.position() + _), (e || new A()).__init(
|
|
1900
|
-
t.readInt32(t.position()) + t.position(),
|
|
1901
|
-
t
|
|
1902
|
-
);
|
|
1903
|
-
}
|
|
1904
|
-
id(t) {
|
|
1905
|
-
const e = this.bb.__offset(this.bb_pos, 4);
|
|
1906
|
-
return e ? this.bb.__string(this.bb_pos + e, t) : null;
|
|
1907
|
-
}
|
|
1908
|
-
content(t) {
|
|
1909
|
-
const e = this.bb.__offset(this.bb_pos, 6);
|
|
1910
|
-
return e ? this.bb.__string(this.bb_pos + e, t) : null;
|
|
1911
|
-
}
|
|
1912
|
-
files(t, e) {
|
|
1913
|
-
const i = this.bb.__offset(this.bb_pos, 8);
|
|
1914
|
-
return i ? (e || new y()).__init(
|
|
1915
|
-
this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4),
|
|
1916
|
-
this.bb
|
|
1917
|
-
) : null;
|
|
1918
|
-
}
|
|
1919
|
-
filesLength() {
|
|
1920
|
-
const t = this.bb.__offset(this.bb_pos, 8);
|
|
1921
|
-
return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
|
|
1922
|
-
}
|
|
1923
|
-
static startUniqueFrameCache(t) {
|
|
1924
|
-
t.startObject(3);
|
|
1925
|
-
}
|
|
1926
|
-
static addId(t, e) {
|
|
1927
|
-
t.addFieldOffset(0, e, 0);
|
|
1928
|
-
}
|
|
1929
|
-
static addContent(t, e) {
|
|
1930
|
-
t.addFieldOffset(1, e, 0);
|
|
1931
|
-
}
|
|
1932
|
-
static addFiles(t, e) {
|
|
1933
|
-
t.addFieldOffset(2, e, 0);
|
|
1934
|
-
}
|
|
1935
|
-
static createFilesVector(t, e) {
|
|
1936
|
-
t.startVector(4, e.length, 4);
|
|
1937
|
-
for (let i = e.length - 1; i >= 0; i--)
|
|
1938
|
-
t.addOffset(e[i]);
|
|
1939
|
-
return t.endVector();
|
|
1940
|
-
}
|
|
1941
|
-
static startFilesVector(t, e) {
|
|
1942
|
-
t.startVector(4, e, 4);
|
|
1943
|
-
}
|
|
1944
|
-
static endUniqueFrameCache(t) {
|
|
1945
|
-
const e = t.endObject();
|
|
1946
|
-
return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
|
|
1947
|
-
}
|
|
1948
|
-
static createUniqueFrameCache(t, e, i, a) {
|
|
1949
|
-
return A.startUniqueFrameCache(t), A.addId(t, e), A.addContent(t, i), A.addFiles(t, a), A.endUniqueFrameCache(t);
|
|
1950
|
-
}
|
|
1951
|
-
unpack() {
|
|
1952
|
-
return new Zt(
|
|
1953
|
-
this.id(),
|
|
1954
|
-
this.content(),
|
|
1955
|
-
this.bb.createObjList(this.files.bind(this), this.filesLength())
|
|
1956
|
-
);
|
|
1957
|
-
}
|
|
1958
|
-
unpackTo(t) {
|
|
1959
|
-
t.id = this.id(), t.content = this.content(), t.files = this.bb.createObjList(this.files.bind(this), this.filesLength());
|
|
1960
|
-
}
|
|
1961
|
-
}
|
|
1962
|
-
class Zt {
|
|
1963
|
-
constructor(t = null, e = null, i = []) {
|
|
1964
|
-
n(this, "id");
|
|
1965
|
-
n(this, "content");
|
|
1966
|
-
n(this, "files");
|
|
1967
|
-
this.id = t, this.content = e, this.files = i;
|
|
1968
|
-
}
|
|
1969
|
-
pack(t) {
|
|
1970
|
-
const e = this.id !== null ? t.createString(this.id) : 0, i = this.content !== null ? t.createString(this.content) : 0, a = A.createFilesVector(
|
|
1971
|
-
t,
|
|
1972
|
-
t.createObjectOffsetList(this.files)
|
|
1973
|
-
);
|
|
1974
|
-
return A.createUniqueFrameCache(t, e, i, a);
|
|
1975
|
-
}
|
|
1976
|
-
}
|
|
1977
|
-
class it {
|
|
1758
|
+
class st {
|
|
1978
1759
|
constructor() {
|
|
1979
1760
|
n(this, "bb", null);
|
|
1980
1761
|
n(this, "bb_pos", 0);
|
|
@@ -1983,16 +1764,10 @@ class it {
|
|
|
1983
1764
|
return this.bb_pos = t, this.bb = e, this;
|
|
1984
1765
|
}
|
|
1985
1766
|
static getRootAsUniqueFrameLoaded(t, e) {
|
|
1986
|
-
return (e || new
|
|
1987
|
-
t.readInt32(t.position()) + t.position(),
|
|
1988
|
-
t
|
|
1989
|
-
);
|
|
1767
|
+
return (e || new st()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1990
1768
|
}
|
|
1991
1769
|
static getSizePrefixedRootAsUniqueFrameLoaded(t, e) {
|
|
1992
|
-
return t.setPosition(t.position() +
|
|
1993
|
-
t.readInt32(t.position()) + t.position(),
|
|
1994
|
-
t
|
|
1995
|
-
);
|
|
1770
|
+
return t.setPosition(t.position() + f), (e || new st()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1996
1771
|
}
|
|
1997
1772
|
id(t) {
|
|
1998
1773
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2009,26 +1784,26 @@ class it {
|
|
|
2009
1784
|
return t.requiredField(e, 4), e;
|
|
2010
1785
|
}
|
|
2011
1786
|
static createUniqueFrameLoaded(t, e) {
|
|
2012
|
-
return
|
|
1787
|
+
return st.startUniqueFrameLoaded(t), st.addId(t, e), st.endUniqueFrameLoaded(t);
|
|
2013
1788
|
}
|
|
2014
1789
|
unpack() {
|
|
2015
|
-
return new
|
|
1790
|
+
return new Ut(this.id());
|
|
2016
1791
|
}
|
|
2017
1792
|
unpackTo(t) {
|
|
2018
1793
|
t.id = this.id();
|
|
2019
1794
|
}
|
|
2020
1795
|
}
|
|
2021
|
-
class
|
|
1796
|
+
class Ut {
|
|
2022
1797
|
constructor(t = null) {
|
|
2023
1798
|
n(this, "id");
|
|
2024
1799
|
this.id = t;
|
|
2025
1800
|
}
|
|
2026
1801
|
pack(t) {
|
|
2027
1802
|
const e = this.id !== null ? t.createString(this.id) : 0;
|
|
2028
|
-
return
|
|
1803
|
+
return st.createUniqueFrameLoaded(t, e);
|
|
2029
1804
|
}
|
|
2030
1805
|
}
|
|
2031
|
-
class
|
|
1806
|
+
class it {
|
|
2032
1807
|
constructor() {
|
|
2033
1808
|
n(this, "bb", null);
|
|
2034
1809
|
n(this, "bb_pos", 0);
|
|
@@ -2037,16 +1812,10 @@ class nt {
|
|
|
2037
1812
|
return this.bb_pos = t, this.bb = e, this;
|
|
2038
1813
|
}
|
|
2039
1814
|
static getRootAsUniqueFrameSubscribe(t, e) {
|
|
2040
|
-
return (e || new
|
|
2041
|
-
t.readInt32(t.position()) + t.position(),
|
|
2042
|
-
t
|
|
2043
|
-
);
|
|
1815
|
+
return (e || new it()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2044
1816
|
}
|
|
2045
1817
|
static getSizePrefixedRootAsUniqueFrameSubscribe(t, e) {
|
|
2046
|
-
return t.setPosition(t.position() +
|
|
2047
|
-
t.readInt32(t.position()) + t.position(),
|
|
2048
|
-
t
|
|
2049
|
-
);
|
|
1818
|
+
return t.setPosition(t.position() + f), (e || new it()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2050
1819
|
}
|
|
2051
1820
|
id(t) {
|
|
2052
1821
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2063,26 +1832,26 @@ class nt {
|
|
|
2063
1832
|
return t.requiredField(e, 4), e;
|
|
2064
1833
|
}
|
|
2065
1834
|
static createUniqueFrameSubscribe(t, e) {
|
|
2066
|
-
return
|
|
1835
|
+
return it.startUniqueFrameSubscribe(t), it.addId(t, e), it.endUniqueFrameSubscribe(t);
|
|
2067
1836
|
}
|
|
2068
1837
|
unpack() {
|
|
2069
|
-
return new
|
|
1838
|
+
return new Tt(this.id());
|
|
2070
1839
|
}
|
|
2071
1840
|
unpackTo(t) {
|
|
2072
1841
|
t.id = this.id();
|
|
2073
1842
|
}
|
|
2074
1843
|
}
|
|
2075
|
-
class
|
|
1844
|
+
class Tt {
|
|
2076
1845
|
constructor(t = null) {
|
|
2077
1846
|
n(this, "id");
|
|
2078
1847
|
this.id = t;
|
|
2079
1848
|
}
|
|
2080
1849
|
pack(t) {
|
|
2081
1850
|
const e = this.id !== null ? t.createString(this.id) : 0;
|
|
2082
|
-
return
|
|
1851
|
+
return it.createUniqueFrameSubscribe(t, e);
|
|
2083
1852
|
}
|
|
2084
1853
|
}
|
|
2085
|
-
class
|
|
1854
|
+
class y {
|
|
2086
1855
|
constructor() {
|
|
2087
1856
|
n(this, "bb", null);
|
|
2088
1857
|
n(this, "bb_pos", 0);
|
|
@@ -2091,16 +1860,10 @@ class N {
|
|
|
2091
1860
|
return this.bb_pos = t, this.bb = e, this;
|
|
2092
1861
|
}
|
|
2093
1862
|
static getRootAsUniqueSignalNotify(t, e) {
|
|
2094
|
-
return (e || new
|
|
2095
|
-
t.readInt32(t.position()) + t.position(),
|
|
2096
|
-
t
|
|
2097
|
-
);
|
|
1863
|
+
return (e || new y()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2098
1864
|
}
|
|
2099
1865
|
static getSizePrefixedRootAsUniqueSignalNotify(t, e) {
|
|
2100
|
-
return t.setPosition(t.position() +
|
|
2101
|
-
t.readInt32(t.position()) + t.position(),
|
|
2102
|
-
t
|
|
2103
|
-
);
|
|
1866
|
+
return t.setPosition(t.position() + f), (e || new y()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2104
1867
|
}
|
|
2105
1868
|
frameId(t) {
|
|
2106
1869
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2112,7 +1875,7 @@ class N {
|
|
|
2112
1875
|
}
|
|
2113
1876
|
valueType() {
|
|
2114
1877
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
2115
|
-
return t ? this.bb.readUint8(this.bb_pos + t) :
|
|
1878
|
+
return t ? this.bb.readUint8(this.bb_pos + t) : l.NONE;
|
|
2116
1879
|
}
|
|
2117
1880
|
value(t) {
|
|
2118
1881
|
const e = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -2128,7 +1891,7 @@ class N {
|
|
|
2128
1891
|
t.addFieldOffset(1, e, 0);
|
|
2129
1892
|
}
|
|
2130
1893
|
static addValueType(t, e) {
|
|
2131
|
-
t.addFieldInt8(2, e,
|
|
1894
|
+
t.addFieldInt8(2, e, l.NONE);
|
|
2132
1895
|
}
|
|
2133
1896
|
static addValue(t, e) {
|
|
2134
1897
|
t.addFieldOffset(3, e, 0);
|
|
@@ -2138,28 +1901,23 @@ class N {
|
|
|
2138
1901
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
2139
1902
|
}
|
|
2140
1903
|
static createUniqueSignalNotify(t, e, i, a, r) {
|
|
2141
|
-
return
|
|
1904
|
+
return y.startUniqueSignalNotify(t), y.addFrameId(t, e), y.addSignalId(t, i), y.addValueType(t, a), y.addValue(t, r), y.endUniqueSignalNotify(t);
|
|
2142
1905
|
}
|
|
2143
1906
|
unpack() {
|
|
2144
|
-
return new
|
|
2145
|
-
this.
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
(() => {
|
|
2149
|
-
const t = ht(this.valueType(), this.value.bind(this));
|
|
2150
|
-
return t === null ? null : t.unpack();
|
|
2151
|
-
})()
|
|
2152
|
-
);
|
|
1907
|
+
return new Zt(this.frameId(), this.signalId(), this.valueType(), (() => {
|
|
1908
|
+
const t = ut(this.valueType(), this.value.bind(this));
|
|
1909
|
+
return t === null ? null : t.unpack();
|
|
1910
|
+
})());
|
|
2153
1911
|
}
|
|
2154
1912
|
unpackTo(t) {
|
|
2155
1913
|
t.frameId = this.frameId(), t.signalId = this.signalId(), t.valueType = this.valueType(), t.value = (() => {
|
|
2156
|
-
const e =
|
|
1914
|
+
const e = ut(this.valueType(), this.value.bind(this));
|
|
2157
1915
|
return e === null ? null : e.unpack();
|
|
2158
1916
|
})();
|
|
2159
1917
|
}
|
|
2160
1918
|
}
|
|
2161
|
-
class
|
|
2162
|
-
constructor(t = null, e = null, i =
|
|
1919
|
+
class Zt {
|
|
1920
|
+
constructor(t = null, e = null, i = l.NONE, a = null) {
|
|
2163
1921
|
n(this, "frameId");
|
|
2164
1922
|
n(this, "signalId");
|
|
2165
1923
|
n(this, "valueType");
|
|
@@ -2168,16 +1926,10 @@ class $t {
|
|
|
2168
1926
|
}
|
|
2169
1927
|
pack(t) {
|
|
2170
1928
|
const e = this.frameId !== null ? t.createString(this.frameId) : 0, i = this.signalId !== null ? t.createString(this.signalId) : 0, a = t.createObjectOffset(this.value);
|
|
2171
|
-
return
|
|
2172
|
-
t,
|
|
2173
|
-
e,
|
|
2174
|
-
i,
|
|
2175
|
-
this.valueType,
|
|
2176
|
-
a
|
|
2177
|
-
);
|
|
1929
|
+
return y.createUniqueSignalNotify(t, e, i, this.valueType, a);
|
|
2178
1930
|
}
|
|
2179
1931
|
}
|
|
2180
|
-
class
|
|
1932
|
+
class nt {
|
|
2181
1933
|
constructor() {
|
|
2182
1934
|
n(this, "bb", null);
|
|
2183
1935
|
n(this, "bb_pos", 0);
|
|
@@ -2186,16 +1938,10 @@ class at {
|
|
|
2186
1938
|
return this.bb_pos = t, this.bb = e, this;
|
|
2187
1939
|
}
|
|
2188
1940
|
static getRootAsUniqueSignalRequest(t, e) {
|
|
2189
|
-
return (e || new
|
|
2190
|
-
t.readInt32(t.position()) + t.position(),
|
|
2191
|
-
t
|
|
2192
|
-
);
|
|
1941
|
+
return (e || new nt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2193
1942
|
}
|
|
2194
1943
|
static getSizePrefixedRootAsUniqueSignalRequest(t, e) {
|
|
2195
|
-
return t.setPosition(t.position() +
|
|
2196
|
-
t.readInt32(t.position()) + t.position(),
|
|
2197
|
-
t
|
|
2198
|
-
);
|
|
1944
|
+
return t.setPosition(t.position() + f), (e || new nt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2199
1945
|
}
|
|
2200
1946
|
id(t) {
|
|
2201
1947
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2212,26 +1958,26 @@ class at {
|
|
|
2212
1958
|
return t.requiredField(e, 4), e;
|
|
2213
1959
|
}
|
|
2214
1960
|
static createUniqueSignalRequest(t, e) {
|
|
2215
|
-
return
|
|
1961
|
+
return nt.startUniqueSignalRequest(t), nt.addId(t, e), nt.endUniqueSignalRequest(t);
|
|
2216
1962
|
}
|
|
2217
1963
|
unpack() {
|
|
2218
|
-
return new
|
|
1964
|
+
return new $t(this.id());
|
|
2219
1965
|
}
|
|
2220
1966
|
unpackTo(t) {
|
|
2221
1967
|
t.id = this.id();
|
|
2222
1968
|
}
|
|
2223
1969
|
}
|
|
2224
|
-
class
|
|
1970
|
+
class $t {
|
|
2225
1971
|
constructor(t = null) {
|
|
2226
1972
|
n(this, "id");
|
|
2227
1973
|
this.id = t;
|
|
2228
1974
|
}
|
|
2229
1975
|
pack(t) {
|
|
2230
1976
|
const e = this.id !== null ? t.createString(this.id) : 0;
|
|
2231
|
-
return
|
|
1977
|
+
return nt.createUniqueSignalRequest(t, e);
|
|
2232
1978
|
}
|
|
2233
1979
|
}
|
|
2234
|
-
class
|
|
1980
|
+
class B {
|
|
2235
1981
|
constructor() {
|
|
2236
1982
|
n(this, "bb", null);
|
|
2237
1983
|
n(this, "bb_pos", 0);
|
|
@@ -2240,16 +1986,10 @@ class L {
|
|
|
2240
1986
|
return this.bb_pos = t, this.bb = e, this;
|
|
2241
1987
|
}
|
|
2242
1988
|
static getRootAsUniqueSignalResponse(t, e) {
|
|
2243
|
-
return (e || new
|
|
2244
|
-
t.readInt32(t.position()) + t.position(),
|
|
2245
|
-
t
|
|
2246
|
-
);
|
|
1989
|
+
return (e || new B()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2247
1990
|
}
|
|
2248
1991
|
static getSizePrefixedRootAsUniqueSignalResponse(t, e) {
|
|
2249
|
-
return t.setPosition(t.position() +
|
|
2250
|
-
t.readInt32(t.position()) + t.position(),
|
|
2251
|
-
t
|
|
2252
|
-
);
|
|
1992
|
+
return t.setPosition(t.position() + f), (e || new B()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2253
1993
|
}
|
|
2254
1994
|
id(t) {
|
|
2255
1995
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2257,10 +1997,7 @@ class L {
|
|
|
2257
1997
|
}
|
|
2258
1998
|
signals(t, e) {
|
|
2259
1999
|
const i = this.bb.__offset(this.bb_pos, 6);
|
|
2260
|
-
return i ? (e || new
|
|
2261
|
-
this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4),
|
|
2262
|
-
this.bb
|
|
2263
|
-
) : null;
|
|
2000
|
+
return i ? (e || new j()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4), this.bb) : null;
|
|
2264
2001
|
}
|
|
2265
2002
|
signalsLength() {
|
|
2266
2003
|
const t = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -2289,33 +2026,27 @@ class L {
|
|
|
2289
2026
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
2290
2027
|
}
|
|
2291
2028
|
static createUniqueSignalResponse(t, e, i) {
|
|
2292
|
-
return
|
|
2029
|
+
return B.startUniqueSignalResponse(t), B.addId(t, e), B.addSignals(t, i), B.endUniqueSignalResponse(t);
|
|
2293
2030
|
}
|
|
2294
2031
|
unpack() {
|
|
2295
|
-
return new
|
|
2296
|
-
this.id(),
|
|
2297
|
-
this.bb.createObjList(this.signals.bind(this), this.signalsLength())
|
|
2298
|
-
);
|
|
2032
|
+
return new he(this.id(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
|
|
2299
2033
|
}
|
|
2300
2034
|
unpackTo(t) {
|
|
2301
2035
|
t.id = this.id(), t.signals = this.bb.createObjList(this.signals.bind(this), this.signalsLength());
|
|
2302
2036
|
}
|
|
2303
2037
|
}
|
|
2304
|
-
class
|
|
2038
|
+
class he {
|
|
2305
2039
|
constructor(t = null, e = []) {
|
|
2306
2040
|
n(this, "id");
|
|
2307
2041
|
n(this, "signals");
|
|
2308
2042
|
this.id = t, this.signals = e;
|
|
2309
2043
|
}
|
|
2310
2044
|
pack(t) {
|
|
2311
|
-
const e = this.id !== null ? t.createString(this.id) : 0, i =
|
|
2312
|
-
|
|
2313
|
-
t.createObjectOffsetList(this.signals)
|
|
2314
|
-
);
|
|
2315
|
-
return L.createUniqueSignalResponse(t, e, i);
|
|
2045
|
+
const e = this.id !== null ? t.createString(this.id) : 0, i = B.createSignalsVector(t, t.createObjectOffsetList(this.signals));
|
|
2046
|
+
return B.createUniqueSignalResponse(t, e, i);
|
|
2316
2047
|
}
|
|
2317
2048
|
}
|
|
2318
|
-
class
|
|
2049
|
+
class at {
|
|
2319
2050
|
constructor() {
|
|
2320
2051
|
n(this, "bb", null);
|
|
2321
2052
|
n(this, "bb_pos", 0);
|
|
@@ -2324,16 +2055,10 @@ class rt {
|
|
|
2324
2055
|
return this.bb_pos = t, this.bb = e, this;
|
|
2325
2056
|
}
|
|
2326
2057
|
static getRootAsUniqueValueRequest(t, e) {
|
|
2327
|
-
return (e || new
|
|
2328
|
-
t.readInt32(t.position()) + t.position(),
|
|
2329
|
-
t
|
|
2330
|
-
);
|
|
2058
|
+
return (e || new at()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2331
2059
|
}
|
|
2332
2060
|
static getSizePrefixedRootAsUniqueValueRequest(t, e) {
|
|
2333
|
-
return t.setPosition(t.position() +
|
|
2334
|
-
t.readInt32(t.position()) + t.position(),
|
|
2335
|
-
t
|
|
2336
|
-
);
|
|
2061
|
+
return t.setPosition(t.position() + f), (e || new at()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2337
2062
|
}
|
|
2338
2063
|
id(t) {
|
|
2339
2064
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2350,26 +2075,26 @@ class rt {
|
|
|
2350
2075
|
return t.requiredField(e, 4), e;
|
|
2351
2076
|
}
|
|
2352
2077
|
static createUniqueValueRequest(t, e) {
|
|
2353
|
-
return
|
|
2078
|
+
return at.startUniqueValueRequest(t), at.addId(t, e), at.endUniqueValueRequest(t);
|
|
2354
2079
|
}
|
|
2355
2080
|
unpack() {
|
|
2356
|
-
return new
|
|
2081
|
+
return new Xt(this.id());
|
|
2357
2082
|
}
|
|
2358
2083
|
unpackTo(t) {
|
|
2359
2084
|
t.id = this.id();
|
|
2360
2085
|
}
|
|
2361
2086
|
}
|
|
2362
|
-
class
|
|
2087
|
+
class Xt {
|
|
2363
2088
|
constructor(t = null) {
|
|
2364
2089
|
n(this, "id");
|
|
2365
2090
|
this.id = t;
|
|
2366
2091
|
}
|
|
2367
2092
|
pack(t) {
|
|
2368
2093
|
const e = this.id !== null ? t.createString(this.id) : 0;
|
|
2369
|
-
return
|
|
2094
|
+
return at.createUniqueValueRequest(t, e);
|
|
2370
2095
|
}
|
|
2371
2096
|
}
|
|
2372
|
-
class
|
|
2097
|
+
class C {
|
|
2373
2098
|
constructor() {
|
|
2374
2099
|
n(this, "bb", null);
|
|
2375
2100
|
n(this, "bb_pos", 0);
|
|
@@ -2378,16 +2103,10 @@ class B {
|
|
|
2378
2103
|
return this.bb_pos = t, this.bb = e, this;
|
|
2379
2104
|
}
|
|
2380
2105
|
static getRootAsUniqueValueResponse(t, e) {
|
|
2381
|
-
return (e || new
|
|
2382
|
-
t.readInt32(t.position()) + t.position(),
|
|
2383
|
-
t
|
|
2384
|
-
);
|
|
2106
|
+
return (e || new C()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2385
2107
|
}
|
|
2386
2108
|
static getSizePrefixedRootAsUniqueValueResponse(t, e) {
|
|
2387
|
-
return t.setPosition(t.position() +
|
|
2388
|
-
t.readInt32(t.position()) + t.position(),
|
|
2389
|
-
t
|
|
2390
|
-
);
|
|
2109
|
+
return t.setPosition(t.position() + f), (e || new C()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2391
2110
|
}
|
|
2392
2111
|
id(t) {
|
|
2393
2112
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2395,10 +2114,7 @@ class B {
|
|
|
2395
2114
|
}
|
|
2396
2115
|
values(t, e) {
|
|
2397
2116
|
const i = this.bb.__offset(this.bb_pos, 6);
|
|
2398
|
-
return i ? (e || new S()).__init(
|
|
2399
|
-
this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4),
|
|
2400
|
-
this.bb
|
|
2401
|
-
) : null;
|
|
2117
|
+
return i ? (e || new S()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4), this.bb) : null;
|
|
2402
2118
|
}
|
|
2403
2119
|
valuesLength() {
|
|
2404
2120
|
const t = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -2427,33 +2143,27 @@ class B {
|
|
|
2427
2143
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
2428
2144
|
}
|
|
2429
2145
|
static createUniqueValueResponse(t, e, i) {
|
|
2430
|
-
return
|
|
2146
|
+
return C.startUniqueValueResponse(t), C.addId(t, e), C.addValues(t, i), C.endUniqueValueResponse(t);
|
|
2431
2147
|
}
|
|
2432
2148
|
unpack() {
|
|
2433
|
-
return new
|
|
2434
|
-
this.id(),
|
|
2435
|
-
this.bb.createObjList(this.values.bind(this), this.valuesLength())
|
|
2436
|
-
);
|
|
2149
|
+
return new de(this.id(), this.bb.createObjList(this.values.bind(this), this.valuesLength()));
|
|
2437
2150
|
}
|
|
2438
2151
|
unpackTo(t) {
|
|
2439
2152
|
t.id = this.id(), t.values = this.bb.createObjList(this.values.bind(this), this.valuesLength());
|
|
2440
2153
|
}
|
|
2441
2154
|
}
|
|
2442
|
-
class
|
|
2155
|
+
class de {
|
|
2443
2156
|
constructor(t = null, e = []) {
|
|
2444
2157
|
n(this, "id");
|
|
2445
2158
|
n(this, "values");
|
|
2446
2159
|
this.id = t, this.values = e;
|
|
2447
2160
|
}
|
|
2448
2161
|
pack(t) {
|
|
2449
|
-
const e = this.id !== null ? t.createString(this.id) : 0, i =
|
|
2450
|
-
|
|
2451
|
-
t.createObjectOffsetList(this.values)
|
|
2452
|
-
);
|
|
2453
|
-
return B.createUniqueValueResponse(t, e, i);
|
|
2162
|
+
const e = this.id !== null ? t.createString(this.id) : 0, i = C.createValuesVector(t, t.createObjectOffsetList(this.values));
|
|
2163
|
+
return C.createUniqueValueResponse(t, e, i);
|
|
2454
2164
|
}
|
|
2455
2165
|
}
|
|
2456
|
-
class
|
|
2166
|
+
class tt {
|
|
2457
2167
|
constructor() {
|
|
2458
2168
|
n(this, "bb", null);
|
|
2459
2169
|
n(this, "bb_pos", 0);
|
|
@@ -2462,16 +2172,10 @@ class et {
|
|
|
2462
2172
|
return this.bb_pos = t, this.bb = e, this;
|
|
2463
2173
|
}
|
|
2464
2174
|
static getRootAsUniqueValueUpdate(t, e) {
|
|
2465
|
-
return (e || new
|
|
2466
|
-
t.readInt32(t.position()) + t.position(),
|
|
2467
|
-
t
|
|
2468
|
-
);
|
|
2175
|
+
return (e || new tt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2469
2176
|
}
|
|
2470
2177
|
static getSizePrefixedRootAsUniqueValueUpdate(t, e) {
|
|
2471
|
-
return t.setPosition(t.position() +
|
|
2472
|
-
t.readInt32(t.position()) + t.position(),
|
|
2473
|
-
t
|
|
2474
|
-
);
|
|
2178
|
+
return t.setPosition(t.position() + f), (e || new tt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2475
2179
|
}
|
|
2476
2180
|
id(t) {
|
|
2477
2181
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2495,16 +2199,13 @@ class et {
|
|
|
2495
2199
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
2496
2200
|
}
|
|
2497
2201
|
unpack() {
|
|
2498
|
-
return new
|
|
2499
|
-
this.id(),
|
|
2500
|
-
this.value() !== null ? this.value().unpack() : null
|
|
2501
|
-
);
|
|
2202
|
+
return new Jt(this.id(), this.value() !== null ? this.value().unpack() : null);
|
|
2502
2203
|
}
|
|
2503
2204
|
unpackTo(t) {
|
|
2504
2205
|
t.id = this.id(), t.value = this.value() !== null ? this.value().unpack() : null;
|
|
2505
2206
|
}
|
|
2506
2207
|
}
|
|
2507
|
-
class
|
|
2208
|
+
class Jt {
|
|
2508
2209
|
constructor(t = null, e = null) {
|
|
2509
2210
|
n(this, "id");
|
|
2510
2211
|
n(this, "value");
|
|
@@ -2512,11 +2213,11 @@ class Kt {
|
|
|
2512
2213
|
}
|
|
2513
2214
|
pack(t) {
|
|
2514
2215
|
const e = this.id !== null ? t.createString(this.id) : 0, i = this.value !== null ? this.value.pack(t) : 0;
|
|
2515
|
-
return
|
|
2216
|
+
return tt.startUniqueValueUpdate(t), tt.addId(t, e), tt.addValue(t, i), tt.endUniqueValueUpdate(t);
|
|
2516
2217
|
}
|
|
2517
2218
|
}
|
|
2518
|
-
const
|
|
2519
|
-
const i = new
|
|
2219
|
+
const _e = async (s) => new Promise((t, e) => {
|
|
2220
|
+
const i = new oe();
|
|
2520
2221
|
i.postMessage({
|
|
2521
2222
|
type: "init",
|
|
2522
2223
|
host: s.host,
|
|
@@ -2526,23 +2227,16 @@ const fe = async (s) => new Promise((t, e) => {
|
|
|
2526
2227
|
}), i.addEventListener("message", async (a) => {
|
|
2527
2228
|
if (a.data.ok) {
|
|
2528
2229
|
if (a.data.files) {
|
|
2529
|
-
const r = new
|
|
2530
|
-
s.id,
|
|
2531
|
-
s.tag,
|
|
2532
|
-
a.data.code,
|
|
2533
|
-
a.data.files.map(
|
|
2534
|
-
(u) => new St(u.target, u.metadata)
|
|
2535
|
-
)
|
|
2536
|
-
) : new Zt(
|
|
2230
|
+
const r = new k(), o = new Ct(
|
|
2537
2231
|
s.id,
|
|
2538
2232
|
a.data.code,
|
|
2539
2233
|
a.data.files.map(
|
|
2540
|
-
(
|
|
2234
|
+
(h) => new Bt(h.target, h.metadata)
|
|
2541
2235
|
)
|
|
2542
2236
|
);
|
|
2543
|
-
r.finish(o.pack(r)),
|
|
2237
|
+
r.finish(o.pack(r)), St(
|
|
2544
2238
|
s.host,
|
|
2545
|
-
s.tag != null ?
|
|
2239
|
+
s.tag != null ? _.Client_Tagged_FrameCache : _.Client_Unique_FrameCache,
|
|
2546
2240
|
r.asUint8Array()
|
|
2547
2241
|
);
|
|
2548
2242
|
}
|
|
@@ -2554,132 +2248,132 @@ const fe = async (s) => new Promise((t, e) => {
|
|
|
2554
2248
|
e(a.data.err);
|
|
2555
2249
|
i.terminate();
|
|
2556
2250
|
});
|
|
2557
|
-
}),
|
|
2558
|
-
},
|
|
2559
|
-
if (s ==
|
|
2251
|
+
}), ct = (s) => {
|
|
2252
|
+
}, fe = (s, t) => {
|
|
2253
|
+
if (s == l.ValueBoolean)
|
|
2560
2254
|
return t;
|
|
2561
|
-
if (s ==
|
|
2255
|
+
if (s == l.ValueNumber)
|
|
2562
2256
|
return Number(t);
|
|
2563
|
-
if (s ==
|
|
2257
|
+
if (s == l.ValueDouble || s == l.ValueString)
|
|
2564
2258
|
return t;
|
|
2565
|
-
if (s ==
|
|
2259
|
+
if (s == l.ValueBuffer)
|
|
2566
2260
|
return new Uint8Array(t);
|
|
2567
|
-
},
|
|
2568
|
-
if (s ==
|
|
2569
|
-
return new
|
|
2570
|
-
if (s ==
|
|
2261
|
+
}, Kt = (s, t) => {
|
|
2262
|
+
if (s == l.ValueBoolean)
|
|
2263
|
+
return new Lt(t);
|
|
2264
|
+
if (s == l.ValueNumber)
|
|
2571
2265
|
return new Et(BigInt(t));
|
|
2572
|
-
if (s ==
|
|
2266
|
+
if (s == l.ValueDouble)
|
|
2573
2267
|
return new xt(t);
|
|
2574
|
-
if (s ==
|
|
2268
|
+
if (s == l.ValueString)
|
|
2575
2269
|
return new zt(t);
|
|
2576
|
-
if (s ==
|
|
2270
|
+
if (s == l.ValueBuffer)
|
|
2577
2271
|
return new Pt(Array.from(t));
|
|
2578
|
-
},
|
|
2272
|
+
}, Qt = async ({
|
|
2579
2273
|
id: s,
|
|
2580
2274
|
tag: t,
|
|
2581
2275
|
host: e,
|
|
2582
2276
|
service: i
|
|
2583
2277
|
}) => {
|
|
2584
|
-
const a = await
|
|
2278
|
+
const a = await jt(
|
|
2585
2279
|
e,
|
|
2586
|
-
t != null ?
|
|
2280
|
+
t != null ? _.Client_Tagged_Value_Request : _.Client_Unique_Value_Request,
|
|
2587
2281
|
(() => {
|
|
2588
|
-
const
|
|
2589
|
-
return
|
|
2282
|
+
const c = new k(), d = t != null ? new Wt(s, t) : new Xt(s);
|
|
2283
|
+
return c.finish(d.pack(c)), c.asUint8Array();
|
|
2590
2284
|
})(),
|
|
2591
|
-
t != null ? (
|
|
2592
|
-
if (
|
|
2593
|
-
const b =
|
|
2594
|
-
new
|
|
2285
|
+
t != null ? (c, d) => {
|
|
2286
|
+
if (c === _.Server_Tagged_Value_Response) {
|
|
2287
|
+
const b = R.getRootAsTaggedValueResponse(
|
|
2288
|
+
new P(d)
|
|
2595
2289
|
);
|
|
2596
2290
|
if (b.id() === s && t === b.tag())
|
|
2597
2291
|
return b;
|
|
2598
2292
|
}
|
|
2599
|
-
} : (
|
|
2600
|
-
if (
|
|
2601
|
-
const b =
|
|
2602
|
-
new
|
|
2293
|
+
} : (c, d) => {
|
|
2294
|
+
if (c === _.Server_Unique_Value_Response) {
|
|
2295
|
+
const b = C.getRootAsUniqueValueResponse(
|
|
2296
|
+
new P(d)
|
|
2603
2297
|
);
|
|
2604
2298
|
if (b.id() === s)
|
|
2605
2299
|
return b;
|
|
2606
2300
|
}
|
|
2607
2301
|
}
|
|
2608
2302
|
), r = {
|
|
2609
|
-
[
|
|
2610
|
-
[
|
|
2611
|
-
[
|
|
2612
|
-
[
|
|
2613
|
-
[
|
|
2303
|
+
[l.ValueBoolean]: /* @__PURE__ */ new Map(),
|
|
2304
|
+
[l.ValueNumber]: /* @__PURE__ */ new Map(),
|
|
2305
|
+
[l.ValueDouble]: /* @__PURE__ */ new Map(),
|
|
2306
|
+
[l.ValueString]: /* @__PURE__ */ new Map(),
|
|
2307
|
+
[l.ValueBuffer]: /* @__PURE__ */ new Map()
|
|
2614
2308
|
};
|
|
2615
2309
|
let o = !1;
|
|
2616
|
-
const
|
|
2617
|
-
for (let
|
|
2618
|
-
const d = a.values(
|
|
2310
|
+
const h = a.valuesLength();
|
|
2311
|
+
for (let c = 0; c < h; ++c) {
|
|
2312
|
+
const d = a.values(c), b = d.id(), F = d.valueType(), O = et(fe(F, d.unpack().value.value));
|
|
2619
2313
|
O.subscribe((V) => {
|
|
2620
2314
|
if (V == null || o)
|
|
2621
2315
|
return;
|
|
2622
|
-
const m = new
|
|
2316
|
+
const m = new k(), p = t != null ? new Yt(s, t) : new Jt(s);
|
|
2623
2317
|
p.value = new Ht(
|
|
2624
2318
|
b,
|
|
2625
2319
|
F,
|
|
2626
|
-
|
|
2320
|
+
Kt(F, V)
|
|
2627
2321
|
), m.finish(p.pack(m));
|
|
2628
|
-
const I = t != null ?
|
|
2629
|
-
i.publish(
|
|
2630
|
-
}), F !==
|
|
2322
|
+
const I = t != null ? _.Tagged_Value_Update : _.Unique_Value_Update;
|
|
2323
|
+
i.publish(dt([ht(I), m.asUint8Array()]));
|
|
2324
|
+
}), F !== l.NONE && r[F].set(b, O);
|
|
2631
2325
|
}
|
|
2632
|
-
return i.on_message((
|
|
2326
|
+
return i.on_message((c, d) => {
|
|
2633
2327
|
var V;
|
|
2634
|
-
const b = new DataView(d.buffer).getUint32(0, !1), F = d.slice(4), O = t != null ?
|
|
2328
|
+
const b = new DataView(d.buffer).getUint32(0, !1), F = d.slice(4), O = t != null ? _.Tagged_Value_Update : _.Unique_Value_Update;
|
|
2635
2329
|
if (b === O) {
|
|
2636
|
-
const m = t !== null ?
|
|
2330
|
+
const m = t !== null ? D.getRootAsTaggedValueUpdate(new P(F)) : tt.getRootAsUniqueValueUpdate(new P(F));
|
|
2637
2331
|
if (m.id() === s && (t == null || t === m.tag())) {
|
|
2638
2332
|
o = !0;
|
|
2639
2333
|
const p = m.value().valueType();
|
|
2640
|
-
if (p !==
|
|
2334
|
+
if (p !== l.NONE) {
|
|
2641
2335
|
const I = (V = r[p]) == null ? void 0 : V.get(m.value().id());
|
|
2642
|
-
if (p ===
|
|
2643
|
-
const
|
|
2336
|
+
if (p === l.ValueBuffer) {
|
|
2337
|
+
const G = new Uint8Array(
|
|
2644
2338
|
m.unpack().value.value.value
|
|
2645
|
-
),
|
|
2646
|
-
let
|
|
2647
|
-
if (
|
|
2648
|
-
|
|
2339
|
+
), Rt = At(I);
|
|
2340
|
+
let gt = !0;
|
|
2341
|
+
if (G.length != Rt.length)
|
|
2342
|
+
gt = !1;
|
|
2649
2343
|
else {
|
|
2650
|
-
const
|
|
2651
|
-
for (let
|
|
2652
|
-
if (
|
|
2653
|
-
|
|
2344
|
+
const ie = G.length;
|
|
2345
|
+
for (let pt = 0; pt < ie; pt++)
|
|
2346
|
+
if (G[pt] !== Rt[pt]) {
|
|
2347
|
+
gt = !1;
|
|
2654
2348
|
break;
|
|
2655
2349
|
}
|
|
2656
2350
|
}
|
|
2657
|
-
|
|
2658
|
-
} else p ===
|
|
2351
|
+
gt || I == null || I.set(G);
|
|
2352
|
+
} else p === l.ValueNumber ? I == null || I.set(new Number(m.unpack().value.value.value)) : I == null || I.set(m.unpack().value.value.value);
|
|
2659
2353
|
}
|
|
2660
2354
|
o = !1;
|
|
2661
2355
|
}
|
|
2662
2356
|
}
|
|
2663
2357
|
}), r;
|
|
2664
|
-
},
|
|
2358
|
+
}, Mt = async ({
|
|
2665
2359
|
id: s,
|
|
2666
2360
|
tag: t,
|
|
2667
2361
|
host: e,
|
|
2668
2362
|
service: i
|
|
2669
2363
|
}) => {
|
|
2670
|
-
const a = await
|
|
2364
|
+
const a = await jt(
|
|
2671
2365
|
e,
|
|
2672
|
-
t != null ?
|
|
2366
|
+
t != null ? _.Client_Tagged_Signal_Request : _.Client_Unique_Signal_Request,
|
|
2673
2367
|
(() => {
|
|
2674
|
-
const
|
|
2675
|
-
return
|
|
2368
|
+
const h = new k(), c = t != null ? new Gt(s, t) : new $t(s);
|
|
2369
|
+
return h.finish(c.pack(h)), h.asUint8Array();
|
|
2676
2370
|
})(),
|
|
2677
|
-
(
|
|
2371
|
+
(h, c) => {
|
|
2678
2372
|
if (t != null) {
|
|
2679
|
-
if (
|
|
2680
|
-
return
|
|
2681
|
-
} else if (
|
|
2682
|
-
return
|
|
2373
|
+
if (h === _.Server_Tagged_Signal_Response)
|
|
2374
|
+
return T.getRootAsTaggedSignalResponse(new P(c));
|
|
2375
|
+
} else if (h === _.Server_Unique_Signal_Response)
|
|
2376
|
+
return B.getRootAsUniqueSignalResponse(new P(c));
|
|
2683
2377
|
}
|
|
2684
2378
|
), r = [
|
|
2685
2379
|
/* @__PURE__ */ new Map(),
|
|
@@ -2689,58 +2383,58 @@ const fe = async (s) => new Promise((t, e) => {
|
|
|
2689
2383
|
/* @__PURE__ */ new Map(),
|
|
2690
2384
|
/* @__PURE__ */ new Map()
|
|
2691
2385
|
], o = a.signalsLength();
|
|
2692
|
-
for (let
|
|
2693
|
-
const
|
|
2386
|
+
for (let h = 0; h < o; ++h) {
|
|
2387
|
+
const c = a.signals(h), { id: d, type: b } = { id: c.id(), type: c.type() };
|
|
2694
2388
|
r[b].set(d, (F) => {
|
|
2695
|
-
const O = new
|
|
2389
|
+
const O = new k(), V = b, m = Kt(V, F), p = t != null ? new Dt(s, t, d, V, m) : new Zt(s, d, V, m);
|
|
2696
2390
|
O.finish(p.pack(O));
|
|
2697
|
-
const I = t != null ?
|
|
2698
|
-
i.publish(
|
|
2391
|
+
const I = t != null ? _.Client_Tagged_Signal_Notify : _.Client_Unique_Signal_Notify;
|
|
2392
|
+
i.publish(dt([ht(I), O.asUint8Array()]));
|
|
2699
2393
|
});
|
|
2700
2394
|
}
|
|
2701
2395
|
return r;
|
|
2702
|
-
},
|
|
2703
|
-
boolean: (t, e) => s[
|
|
2704
|
-
double: (t, e) => s[
|
|
2705
|
-
string: (t, e) => s[
|
|
2706
|
-
number: (t, e) => s[
|
|
2707
|
-
buffer: (t, e) => s[
|
|
2396
|
+
}, te = (s) => ({
|
|
2397
|
+
boolean: (t, e) => s[l.ValueBoolean].get(t) ?? et(e),
|
|
2398
|
+
double: (t, e) => s[l.ValueDouble].get(t) ?? et(e),
|
|
2399
|
+
string: (t, e) => s[l.ValueString].get(t) ?? et(e),
|
|
2400
|
+
number: (t, e) => s[l.ValueNumber].get(t) ?? et(e),
|
|
2401
|
+
buffer: (t, e) => s[l.ValueBuffer].get(t) ?? et(e),
|
|
2708
2402
|
json: (t, e, i) => {
|
|
2709
|
-
const a = s[
|
|
2403
|
+
const a = s[l.ValueBuffer].get(t);
|
|
2710
2404
|
if (a != null) {
|
|
2711
2405
|
let r = At(a), o = i.decode(r);
|
|
2712
2406
|
return {
|
|
2713
|
-
set: (
|
|
2714
|
-
o =
|
|
2407
|
+
set: (h) => {
|
|
2408
|
+
o = h, r = i.encode(o), a.set(r);
|
|
2715
2409
|
},
|
|
2716
|
-
subscribe: (
|
|
2717
|
-
|
|
2410
|
+
subscribe: (h) => a.subscribe((c) => {
|
|
2411
|
+
c !== r && (r = c, o = i.decode(r)), h(o);
|
|
2718
2412
|
}),
|
|
2719
|
-
update: (
|
|
2720
|
-
a.update((
|
|
2413
|
+
update: (h) => {
|
|
2414
|
+
a.update((c) => (o = h(o), r = i.encode(o), r));
|
|
2721
2415
|
}
|
|
2722
2416
|
};
|
|
2723
2417
|
}
|
|
2724
|
-
return
|
|
2418
|
+
return et(e);
|
|
2725
2419
|
}
|
|
2726
|
-
}),
|
|
2420
|
+
}), ee = (s) => ({
|
|
2727
2421
|
none: (t) => s[q.None].get(t) ?? (() => {
|
|
2728
2422
|
}),
|
|
2729
|
-
boolean: (t) => s[q.Boolean].get(t) ??
|
|
2730
|
-
double: (t) => s[q.Double].get(t) ??
|
|
2731
|
-
number: (t) => s[q.Number].get(t) ??
|
|
2732
|
-
string: (t) => s[q.String].get(t) ??
|
|
2733
|
-
buffer: (t) => s[q.Buffer].get(t) ??
|
|
2423
|
+
boolean: (t) => s[q.Boolean].get(t) ?? ct,
|
|
2424
|
+
double: (t) => s[q.Double].get(t) ?? ct,
|
|
2425
|
+
number: (t) => s[q.Number].get(t) ?? ct,
|
|
2426
|
+
string: (t) => s[q.String].get(t) ?? ct,
|
|
2427
|
+
buffer: (t) => s[q.Buffer].get(t) ?? ct,
|
|
2734
2428
|
json: (t, e) => {
|
|
2735
2429
|
const i = s[q.Buffer].get(t);
|
|
2736
|
-
return i != null ? (a) => i(e(a)) :
|
|
2430
|
+
return i != null ? (a) => i(e(a)) : ct;
|
|
2737
2431
|
}
|
|
2738
|
-
}),
|
|
2739
|
-
await
|
|
2740
|
-
const o = new
|
|
2432
|
+
}), pe = async (s, t, e, i, a, r) => {
|
|
2433
|
+
await re(s);
|
|
2434
|
+
const o = new ft(s), [h, c, { nil_xit_fn: d }] = await Promise.all([
|
|
2435
|
+
Qt({ id: t, tag: e, host: s, service: o }),
|
|
2741
2436
|
Mt({ id: t, tag: e, host: s, service: o }),
|
|
2742
|
-
|
|
2743
|
-
fe({ host: s, cdn_url: i, id: t, tag: e })
|
|
2437
|
+
_e({ host: s, cdn_url: i, id: t, tag: e })
|
|
2744
2438
|
]), b = {
|
|
2745
2439
|
svelte: () => import("./svelte/index.js").then((p) => p.b_),
|
|
2746
2440
|
"svelte/store": () => import("./svelte/store.js").then((p) => p.i),
|
|
@@ -2758,21 +2452,21 @@ const fe = async (s) => new Promise((t, e) => {
|
|
|
2758
2452
|
p
|
|
2759
2453
|
), { action: O } = await d(F);
|
|
2760
2454
|
o.on_connect(() => {
|
|
2761
|
-
const p = new
|
|
2455
|
+
const p = new k(), I = e != null ? new qt(t, e) : new Tt(t);
|
|
2762
2456
|
p.finish(I.pack(p));
|
|
2763
|
-
const
|
|
2764
|
-
o.publish(
|
|
2457
|
+
const G = e != null ? _.Client_Tagged_Frame_Subscribe : _.Client_Unique_Frame_Subscribe;
|
|
2458
|
+
o.publish(dt([ht(G), p.asUint8Array()]));
|
|
2765
2459
|
}), o.start();
|
|
2766
|
-
const V = new
|
|
2767
|
-
return V.finish(m.pack(V)),
|
|
2460
|
+
const V = new k(), m = e != null ? new Ot(t, e) : new Ut(t);
|
|
2461
|
+
return V.finish(m.pack(V)), St(
|
|
2768
2462
|
s,
|
|
2769
|
-
e != null ?
|
|
2463
|
+
e != null ? _.Client_Tagged_Frame_Loaded : _.Client_Unique_Frame_Loaded,
|
|
2770
2464
|
V.asUint8Array()
|
|
2771
2465
|
), (p) => {
|
|
2772
2466
|
const I = /* @__PURE__ */ new Map();
|
|
2773
2467
|
I.set("nil.xit", {
|
|
2774
|
-
values:
|
|
2775
|
-
signals:
|
|
2468
|
+
values: te(h),
|
|
2469
|
+
signals: ee(c),
|
|
2776
2470
|
frame_ui: a,
|
|
2777
2471
|
frame: r,
|
|
2778
2472
|
resub: () => o.start(),
|
|
@@ -2780,63 +2474,63 @@ const fe = async (s) => new Promise((t, e) => {
|
|
|
2780
2474
|
id: t,
|
|
2781
2475
|
tag: e
|
|
2782
2476
|
});
|
|
2783
|
-
const { destroy:
|
|
2477
|
+
const { destroy: G } = O(p, I);
|
|
2784
2478
|
return {
|
|
2785
2479
|
destroy: () => {
|
|
2786
|
-
o.stop(),
|
|
2480
|
+
o.stop(), G();
|
|
2787
2481
|
}
|
|
2788
2482
|
};
|
|
2789
2483
|
};
|
|
2790
|
-
},
|
|
2484
|
+
}, be = async ({
|
|
2791
2485
|
host: s,
|
|
2792
2486
|
frame: t,
|
|
2793
2487
|
tag: e
|
|
2794
2488
|
}) => {
|
|
2795
|
-
const i = new
|
|
2796
|
-
|
|
2797
|
-
|
|
2489
|
+
const i = new ft(s), [a, r] = await Promise.all([
|
|
2490
|
+
Qt({ id: t, tag: e ?? null, host: s, service: i }),
|
|
2491
|
+
Mt({ id: t, tag: e ?? null, host: s, service: i })
|
|
2798
2492
|
]);
|
|
2799
2493
|
i.on_connect(() => {
|
|
2800
|
-
const d = new
|
|
2494
|
+
const d = new k(), b = e != null ? new qt(t, e) : new Tt(t);
|
|
2801
2495
|
d.finish(b.pack(d));
|
|
2802
|
-
const F = e != null ?
|
|
2803
|
-
i.publish(
|
|
2496
|
+
const F = e != null ? _.Client_Tagged_Frame_Subscribe : _.Client_Unique_Frame_Subscribe;
|
|
2497
|
+
i.publish(dt([ht(F), d.asUint8Array()]));
|
|
2804
2498
|
}), i.start();
|
|
2805
|
-
const o = new
|
|
2806
|
-
o.finish(
|
|
2807
|
-
const
|
|
2808
|
-
return
|
|
2809
|
-
values:
|
|
2810
|
-
signals:
|
|
2499
|
+
const o = new k(), h = e != null ? new Ot(t, e) : new Ut(t);
|
|
2500
|
+
o.finish(h.pack(o));
|
|
2501
|
+
const c = e != null ? _.Client_Tagged_Frame_Loaded : _.Client_Unique_Frame_Loaded;
|
|
2502
|
+
return St(s, c, o.asUint8Array()), {
|
|
2503
|
+
values: te(a),
|
|
2504
|
+
signals: ee(r),
|
|
2811
2505
|
resub: () => i.start(),
|
|
2812
2506
|
unsub: () => i.stop()
|
|
2813
2507
|
};
|
|
2814
|
-
},
|
|
2508
|
+
}, se = async ({
|
|
2815
2509
|
host: s,
|
|
2816
2510
|
cdn_url: t,
|
|
2817
2511
|
frame: e,
|
|
2818
2512
|
tag: i
|
|
2819
2513
|
}) => {
|
|
2820
2514
|
const a = async (r, o) => {
|
|
2821
|
-
const
|
|
2515
|
+
const h = await se({
|
|
2822
2516
|
host: s,
|
|
2823
2517
|
cdn_url: t,
|
|
2824
2518
|
frame: r,
|
|
2825
2519
|
tag: o
|
|
2826
2520
|
});
|
|
2827
|
-
return (
|
|
2521
|
+
return (c) => h(c);
|
|
2828
2522
|
};
|
|
2829
|
-
return
|
|
2523
|
+
return pe(
|
|
2830
2524
|
s,
|
|
2831
2525
|
e,
|
|
2832
2526
|
i ?? null,
|
|
2833
2527
|
t,
|
|
2834
2528
|
async (r, o) => a(r, o),
|
|
2835
|
-
async (r, o) =>
|
|
2529
|
+
async (r, o) => be({ host: s, frame: r, tag: o })
|
|
2836
2530
|
);
|
|
2837
|
-
},
|
|
2531
|
+
}, we = async (s, t) => (await se(t))(s);
|
|
2838
2532
|
export {
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2533
|
+
we as create_component,
|
|
2534
|
+
be as create_frame,
|
|
2535
|
+
se as create_frame_ui
|
|
2842
2536
|
};
|