@nil-/xit 0.4.22 → 0.4.23

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/index.js CHANGED
@@ -1,111 +1,17 @@
1
- var Wt = Object.defineProperty;
2
- var Ft = (i) => {
1
+ var Yt = Object.defineProperty;
2
+ var vt = (i) => {
3
3
  throw TypeError(i);
4
4
  };
5
- var Ht = (i, t, e) => t in i ? Wt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
6
- var a = (i, t, e) => Ht(i, typeof t != "symbol" ? t + "" : t, e), ct = (i, t, e) => t.has(i) || Ft("Cannot " + e);
7
- var l = (i, t, e) => (ct(i, t, "read from private field"), e ? e.call(i) : t.get(i)), z = (i, t, e) => t.has(i) ? Ft("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), p = (i, t, e, s) => (ct(i, t, "write to private field"), s ? s.call(i, e) : t.set(i, e), e), lt = (i, t, e) => (ct(i, t, "access private method"), e);
8
- import { cF as dt, cG as qt } from "./svelte/store.js";
9
- const ft = 1e4;
10
- var it, ut, w, Q, M, tt, j, g;
11
- class nt {
12
- constructor(t) {
13
- z(this, it);
14
- z(this, w);
15
- // 0 idle, 1 has connected, 2 keep reconnecting, 3 stopped
16
- z(this, Q);
17
- z(this, M);
18
- z(this, tt);
19
- z(this, j);
20
- z(this, g);
21
- p(this, j, t), p(this, w, 0), p(this, Q, null), p(this, M, null), p(this, tt, null), p(this, g, null);
22
- }
23
- on_message(t) {
24
- p(this, tt, t);
25
- }
26
- on_connect(t) {
27
- p(this, Q, t);
28
- }
29
- on_disconnect(t) {
30
- p(this, M, t);
31
- }
32
- // non-blocking (run is blocking in c++)
33
- // calling it again should not do anything
34
- start() {
35
- l(this, g) == null && l(this, w) !== 1 && l(this, w) !== 3 && (p(this, g, new WebSocket(l(this, j))), l(this, g).binaryType = "arraybuffer", l(this, g).onopen = () => {
36
- l(this, w) == 3 ? this.stop() : (p(this, w, 1), l(this, Q) && l(this, Q).call(this, l(this, j)));
37
- }, l(this, g).onclose = () => {
38
- l(this, w) === 1 && (l(this, M) && l(this, M).call(this, l(this, j)), p(this, w, 2), lt(this, it, ut).call(this));
39
- }, l(this, g).onerror = () => {
40
- l(this, w) !== 1 && l(this, w) !== 3 ? (p(this, w, 2), lt(this, it, ut).call(this)) : l(this, w) === 3 && this.stop();
41
- }, l(this, g).onmessage = (t) => {
42
- l(this, tt) && l(this, tt).call(this, l(this, j), new Uint8Array(t.data));
43
- });
44
- }
45
- stop() {
46
- p(this, w, 3), l(this, g) != null && l(this, g).readyState !== WebSocket.CONNECTING && (l(this, g).close(), p(this, g, null));
47
- }
48
- restart() {
49
- p(this, w, 0);
50
- }
51
- publish(t) {
52
- l(this, g) != null && l(this, w) == 1 && l(this, g).send(t);
53
- }
54
- send(t, e) {
55
- t === l(this, j) && this.publish(e);
56
- }
57
- }
58
- it = new WeakSet(), ut = function() {
59
- l(this, g) != null && (l(this, g).close(), p(this, g, null)), setTimeout(() => this.start(), 1e3);
60
- }, w = new WeakMap(), Q = new WeakMap(), M = new WeakMap(), tt = new WeakMap(), j = new WeakMap(), g = new WeakMap();
61
- const et = (i) => {
62
- const t = new Uint8Array(4);
63
- return new DataView(t.buffer).setUint32(0, i, !0), t;
64
- }, st = (i) => {
65
- const t = new Uint8Array(i.reduce((s, n) => s + n.length, 0));
66
- let e = 0;
67
- for (const s of i)
68
- t.set(s, e), e += s.length;
69
- return t;
70
- }, Yt = async (i) => new Promise((t, e) => {
71
- const s = new nt(i), n = setTimeout(() => {
72
- s.stop(), e("connection failed... stopping");
73
- }, ft);
74
- s.on_connect(() => {
75
- clearTimeout(n), s.stop(), t();
76
- }), s.start();
77
- }), Ut = async (i, t, e, s) => new Promise((n, r) => {
78
- const o = new nt(i), h = setTimeout(() => {
79
- o.stop(), r("timed out, cancelled");
80
- }, ft), c = st([et(t), e]);
81
- o.on_connect(() => o.publish(c)), o.on_message((d, _) => {
82
- const F = new DataView(_.buffer).getUint32(0, !0), m = _.slice(4), I = s(F, m);
83
- I != null && (clearTimeout(h), o.stop(), n(I));
84
- }), o.start();
85
- }), bt = (i, t, e) => {
86
- const s = new nt(i), n = setTimeout(() => {
87
- s.stop();
88
- }, ft);
89
- s.on_connect(() => {
90
- clearTimeout(n);
91
- const r = st([et(t), e]);
92
- s.publish(r), s.stop();
93
- }), s.start();
94
- };
95
- function Zt(i) {
96
- return new Worker(
97
- "" + new URL("bundler.js", import.meta.url).href,
98
- {
99
- name: i == null ? void 0 : i.name
100
- }
101
- );
102
- }
103
- const ht = 2, y = 4, P = 4, f = 4, E = new Int32Array(2), vt = new Float32Array(E.buffer), St = new Float64Array(E.buffer), rt = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
5
+ var Zt = (i, t, s) => t in i ? Yt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[t] = s;
6
+ var a = (i, t, s) => Zt(i, typeof t != "symbol" ? t + "" : t, s), ht = (i, t, s) => t.has(i) || vt("Cannot " + s);
7
+ var h = (i, t, s) => (ht(i, t, "read from private field"), s ? s.call(i) : t.get(i)), E = (i, t, s) => t.has(i) ? vt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), g = (i, t, s, e) => (ht(i, t, "write to private field"), e ? e.call(i, s) : t.set(i, s), s), lt = (i, t, s) => (ht(i, t, "access private method"), s);
8
+ import { cF as ut, cG as Vt } from "./svelte/store.js";
9
+ const dt = 2, L = 4, x = 4, f = 4, G = new Int32Array(2), St = new Float32Array(G.buffer), mt = new Float64Array(G.buffer), ot = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
104
10
  var _t;
105
11
  (function(i) {
106
12
  i[i.UTF8_BYTES = 1] = "UTF8_BYTES", i[i.UTF16_STRING = 2] = "UTF16_STRING";
107
13
  })(_t || (_t = {}));
108
- class L {
14
+ class A {
109
15
  /**
110
16
  * Create a new ByteBuffer with a given array of bytes (`Uint8Array`)
111
17
  */
@@ -116,7 +22,7 @@ class L {
116
22
  * Create and allocate a new ByteBuffer with a given size.
117
23
  */
118
24
  static allocate(t) {
119
- return new L(new Uint8Array(t));
25
+ return new A(new Uint8Array(t));
120
26
  }
121
27
  clear() {
122
28
  this.position_ = 0;
@@ -170,40 +76,40 @@ class L {
170
76
  return BigInt.asUintN(64, BigInt(this.readUint32(t)) + (BigInt(this.readUint32(t + 4)) << BigInt(32)));
171
77
  }
172
78
  readFloat32(t) {
173
- return E[0] = this.readInt32(t), vt[0];
79
+ return G[0] = this.readInt32(t), St[0];
174
80
  }
175
81
  readFloat64(t) {
176
- return E[rt ? 0 : 1] = this.readInt32(t), E[rt ? 1 : 0] = this.readInt32(t + 4), St[0];
82
+ return G[ot ? 0 : 1] = this.readInt32(t), G[ot ? 1 : 0] = this.readInt32(t + 4), mt[0];
177
83
  }
178
- writeInt8(t, e) {
179
- this.bytes_[t] = e;
84
+ writeInt8(t, s) {
85
+ this.bytes_[t] = s;
180
86
  }
181
- writeUint8(t, e) {
182
- this.bytes_[t] = e;
87
+ writeUint8(t, s) {
88
+ this.bytes_[t] = s;
183
89
  }
184
- writeInt16(t, e) {
185
- this.bytes_[t] = e, this.bytes_[t + 1] = e >> 8;
90
+ writeInt16(t, s) {
91
+ this.bytes_[t] = s, this.bytes_[t + 1] = s >> 8;
186
92
  }
187
- writeUint16(t, e) {
188
- this.bytes_[t] = e, this.bytes_[t + 1] = e >> 8;
93
+ writeUint16(t, s) {
94
+ this.bytes_[t] = s, this.bytes_[t + 1] = s >> 8;
189
95
  }
190
- writeInt32(t, e) {
191
- this.bytes_[t] = e, this.bytes_[t + 1] = e >> 8, this.bytes_[t + 2] = e >> 16, this.bytes_[t + 3] = e >> 24;
96
+ writeInt32(t, s) {
97
+ this.bytes_[t] = s, this.bytes_[t + 1] = s >> 8, this.bytes_[t + 2] = s >> 16, this.bytes_[t + 3] = s >> 24;
192
98
  }
193
- writeUint32(t, e) {
194
- this.bytes_[t] = e, this.bytes_[t + 1] = e >> 8, this.bytes_[t + 2] = e >> 16, this.bytes_[t + 3] = e >> 24;
99
+ writeUint32(t, s) {
100
+ this.bytes_[t] = s, this.bytes_[t + 1] = s >> 8, this.bytes_[t + 2] = s >> 16, this.bytes_[t + 3] = s >> 24;
195
101
  }
196
- writeInt64(t, e) {
197
- this.writeInt32(t, Number(BigInt.asIntN(32, e))), this.writeInt32(t + 4, Number(BigInt.asIntN(32, e >> BigInt(32))));
102
+ writeInt64(t, s) {
103
+ this.writeInt32(t, Number(BigInt.asIntN(32, s))), this.writeInt32(t + 4, Number(BigInt.asIntN(32, s >> BigInt(32))));
198
104
  }
199
- writeUint64(t, e) {
200
- this.writeUint32(t, Number(BigInt.asUintN(32, e))), this.writeUint32(t + 4, Number(BigInt.asUintN(32, e >> BigInt(32))));
105
+ writeUint64(t, s) {
106
+ this.writeUint32(t, Number(BigInt.asUintN(32, s))), this.writeUint32(t + 4, Number(BigInt.asUintN(32, s >> BigInt(32))));
201
107
  }
202
- writeFloat32(t, e) {
203
- vt[0] = e, this.writeInt32(t, E[0]);
108
+ writeFloat32(t, s) {
109
+ St[0] = s, this.writeInt32(t, G[0]);
204
110
  }
205
- writeFloat64(t, e) {
206
- St[0] = e, this.writeInt32(t, E[rt ? 0 : 1]), this.writeInt32(t + 4, E[rt ? 1 : 0]);
111
+ writeFloat64(t, s) {
112
+ mt[0] = s, this.writeInt32(t, G[ot ? 0 : 1]), this.writeInt32(t + 4, G[ot ? 1 : 0]);
207
113
  }
208
114
  /**
209
115
  * Return the file identifier. Behavior is undefined for FlatBuffers whose
@@ -211,26 +117,26 @@ class L {
211
117
  * start of a the root vtable).
212
118
  */
213
119
  getBufferIdentifier() {
214
- if (this.bytes_.length < this.position_ + y + P)
120
+ if (this.bytes_.length < this.position_ + L + x)
215
121
  throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");
216
122
  let t = "";
217
- for (let e = 0; e < P; e++)
218
- t += String.fromCharCode(this.readInt8(this.position_ + y + e));
123
+ for (let s = 0; s < x; s++)
124
+ t += String.fromCharCode(this.readInt8(this.position_ + L + s));
219
125
  return t;
220
126
  }
221
127
  /**
222
128
  * Look up a field in the vtable, return an offset into the object, or 0 if the
223
129
  * field is not present.
224
130
  */
225
- __offset(t, e) {
226
- const s = t - this.readInt32(t);
227
- return e < this.readInt16(s) ? this.readInt16(s + e) : 0;
131
+ __offset(t, s) {
132
+ const e = t - this.readInt32(t);
133
+ return s < this.readInt16(e) ? this.readInt16(e + s) : 0;
228
134
  }
229
135
  /**
230
136
  * Initialize any Table-derived type to point to the union at the given offset.
231
137
  */
232
- __union(t, e) {
233
- return t.bb_pos = e + this.readInt32(e), t.bb = this, t;
138
+ __union(t, s) {
139
+ return t.bb_pos = s + this.readInt32(s), t.bb = this, t;
234
140
  }
235
141
  /**
236
142
  * Create a JavaScript string from UTF-8 data stored inside the FlatBuffer.
@@ -243,12 +149,12 @@ class L {
243
149
  * @param offset
244
150
  * @param opt_encoding Defaults to UTF16_STRING
245
151
  */
246
- __string(t, e) {
152
+ __string(t, s) {
247
153
  t += this.readInt32(t);
248
- const s = this.readInt32(t);
249
- t += y;
250
- const n = this.bytes_.subarray(t, t + s);
251
- return e === _t.UTF8_BYTES ? n : this.text_decoder_.decode(n);
154
+ const e = this.readInt32(t);
155
+ t += L;
156
+ const n = this.bytes_.subarray(t, t + e);
157
+ return s === _t.UTF8_BYTES ? n : this.text_decoder_.decode(n);
252
158
  }
253
159
  /**
254
160
  * Handle unions that can contain string as its member, if a Table-derived type then initialize it,
@@ -257,8 +163,8 @@ class L {
257
163
  * WARNING: strings are immutable in JS so we can't change the string that the user gave us, this
258
164
  * makes the behaviour of __union_with_string different compared to __union
259
165
  */
260
- __union_with_string(t, e) {
261
- return typeof t == "string" ? this.__string(e) : this.__union(t, e);
166
+ __union_with_string(t, s) {
167
+ return typeof t == "string" ? this.__string(s) : this.__union(t, s);
262
168
  }
263
169
  /**
264
170
  * Retrieve the relative offset stored at "offset"
@@ -270,7 +176,7 @@ class L {
270
176
  * Get the start of data of a vector whose offset is stored at "offset" in this object.
271
177
  */
272
178
  __vector(t) {
273
- return t + this.readInt32(t) + y;
179
+ return t + this.readInt32(t) + L;
274
180
  }
275
181
  /**
276
182
  * Get the length of a vector whose offset is stored at "offset" in this object.
@@ -279,23 +185,23 @@ class L {
279
185
  return this.readInt32(t + this.readInt32(t));
280
186
  }
281
187
  __has_identifier(t) {
282
- if (t.length != P)
283
- throw new Error("FlatBuffers: file identifier must be length " + P);
284
- for (let e = 0; e < P; e++)
285
- if (t.charCodeAt(e) != this.readInt8(this.position() + y + e))
188
+ if (t.length != x)
189
+ throw new Error("FlatBuffers: file identifier must be length " + x);
190
+ for (let s = 0; s < x; s++)
191
+ if (t.charCodeAt(s) != this.readInt8(this.position() + L + s))
286
192
  return !1;
287
193
  return !0;
288
194
  }
289
195
  /**
290
196
  * A helper function for generating list for obj api
291
197
  */
292
- createScalarList(t, e) {
293
- const s = [];
294
- for (let n = 0; n < e; ++n) {
198
+ createScalarList(t, s) {
199
+ const e = [];
200
+ for (let n = 0; n < s; ++n) {
295
201
  const r = t(n);
296
- r !== null && s.push(r);
202
+ r !== null && e.push(r);
297
203
  }
298
- return s;
204
+ return e;
299
205
  }
300
206
  /**
301
207
  * A helper function for generating list for obj api
@@ -303,23 +209,23 @@ class L {
303
209
  * @param listLength listLength
304
210
  * @param res result list
305
211
  */
306
- createObjList(t, e) {
307
- const s = [];
308
- for (let n = 0; n < e; ++n) {
212
+ createObjList(t, s) {
213
+ const e = [];
214
+ for (let n = 0; n < s; ++n) {
309
215
  const r = t(n);
310
- r !== null && s.push(r.unpack());
216
+ r !== null && e.push(r.unpack());
311
217
  }
312
- return s;
218
+ return e;
313
219
  }
314
220
  }
315
- class O {
221
+ class R {
316
222
  /**
317
223
  * Create a FlatBufferBuilder.
318
224
  */
319
225
  constructor(t) {
320
226
  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();
321
- let e;
322
- t ? e = t : e = 1024, this.bb = L.allocate(e), this.space = e;
227
+ let s;
228
+ t ? s = t : s = 1024, this.bb = A.allocate(s), this.space = s;
323
229
  }
324
230
  clear() {
325
231
  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;
@@ -358,17 +264,17 @@ class O {
358
264
  * @param size This is the of the new element to write
359
265
  * @param additional_bytes The padding size
360
266
  */
361
- prep(t, e) {
267
+ prep(t, s) {
362
268
  t > this.minalign && (this.minalign = t);
363
- const s = ~(this.bb.capacity() - this.space + e) + 1 & t - 1;
364
- for (; this.space < s + t + e; ) {
269
+ const e = ~(this.bb.capacity() - this.space + s) + 1 & t - 1;
270
+ for (; this.space < e + t + s; ) {
365
271
  const n = this.bb.capacity();
366
- this.bb = O.growByteBuffer(this.bb), this.space += this.bb.capacity() - n;
272
+ this.bb = R.growByteBuffer(this.bb), this.space += this.bb.capacity() - n;
367
273
  }
368
- this.pad(s);
274
+ this.pad(e);
369
275
  }
370
276
  pad(t) {
371
- for (let e = 0; e < t; e++)
277
+ for (let s = 0; s < t; s++)
372
278
  this.bb.writeInt8(--this.space, 0);
373
279
  }
374
280
  writeInt8(t) {
@@ -431,32 +337,32 @@ class O {
431
337
  addFloat64(t) {
432
338
  this.prep(8, 0), this.writeFloat64(t);
433
339
  }
434
- addFieldInt8(t, e, s) {
435
- (this.force_defaults || e != s) && (this.addInt8(e), this.slot(t));
340
+ addFieldInt8(t, s, e) {
341
+ (this.force_defaults || s != e) && (this.addInt8(s), this.slot(t));
436
342
  }
437
- addFieldInt16(t, e, s) {
438
- (this.force_defaults || e != s) && (this.addInt16(e), this.slot(t));
343
+ addFieldInt16(t, s, e) {
344
+ (this.force_defaults || s != e) && (this.addInt16(s), this.slot(t));
439
345
  }
440
- addFieldInt32(t, e, s) {
441
- (this.force_defaults || e != s) && (this.addInt32(e), this.slot(t));
346
+ addFieldInt32(t, s, e) {
347
+ (this.force_defaults || s != e) && (this.addInt32(s), this.slot(t));
442
348
  }
443
- addFieldInt64(t, e, s) {
444
- (this.force_defaults || e !== s) && (this.addInt64(e), this.slot(t));
349
+ addFieldInt64(t, s, e) {
350
+ (this.force_defaults || s !== e) && (this.addInt64(s), this.slot(t));
445
351
  }
446
- addFieldFloat32(t, e, s) {
447
- (this.force_defaults || e != s) && (this.addFloat32(e), this.slot(t));
352
+ addFieldFloat32(t, s, e) {
353
+ (this.force_defaults || s != e) && (this.addFloat32(s), this.slot(t));
448
354
  }
449
- addFieldFloat64(t, e, s) {
450
- (this.force_defaults || e != s) && (this.addFloat64(e), this.slot(t));
355
+ addFieldFloat64(t, s, e) {
356
+ (this.force_defaults || s != e) && (this.addFloat64(s), this.slot(t));
451
357
  }
452
- addFieldOffset(t, e, s) {
453
- (this.force_defaults || e != s) && (this.addOffset(e), this.slot(t));
358
+ addFieldOffset(t, s, e) {
359
+ (this.force_defaults || s != e) && (this.addOffset(s), this.slot(t));
454
360
  }
455
361
  /**
456
362
  * Structs are stored inline, so nothing additional is being added. `d` is always 0.
457
363
  */
458
- addFieldStruct(t, e, s) {
459
- e != s && (this.nested(e), this.slot(t));
364
+ addFieldStruct(t, s, e) {
365
+ s != e && (this.nested(s), this.slot(t));
460
366
  }
461
367
  /**
462
368
  * Structures are always stored inline, they need to be created right
@@ -500,11 +406,11 @@ class O {
500
406
  * @suppress {checkTypes}
501
407
  */
502
408
  static growByteBuffer(t) {
503
- const e = t.capacity();
504
- if (e & 3221225472)
409
+ const s = t.capacity();
410
+ if (s & 3221225472)
505
411
  throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");
506
- const s = e << 1, n = L.allocate(s);
507
- return n.setPosition(s - e), n.bytes().set(t.bytes(), s - e), n;
412
+ const e = s << 1, n = A.allocate(e);
413
+ return n.setPosition(e - s), n.bytes().set(t.bytes(), e - s), n;
508
414
  }
509
415
  /**
510
416
  * Adds on offset, relative to where it will be written.
@@ -512,7 +418,7 @@ class O {
512
418
  * @param offset The offset to add.
513
419
  */
514
420
  addOffset(t) {
515
- this.prep(y, 0), this.writeInt32(this.offset() - t + y);
421
+ this.prep(L, 0), this.writeInt32(this.offset() - t + L);
516
422
  }
517
423
  /**
518
424
  * Start encoding a new object in the buffer. Users will not usually need to
@@ -521,8 +427,8 @@ class O {
521
427
  */
522
428
  startObject(t) {
523
429
  this.notNested(), this.vtable == null && (this.vtable = []), this.vtable_in_use = t;
524
- for (let e = 0; e < t; e++)
525
- this.vtable[e] = 0;
430
+ for (let s = 0; s < t; s++)
431
+ this.vtable[s] = 0;
526
432
  this.isNested = !0, this.object_start = this.offset();
527
433
  }
528
434
  /**
@@ -535,25 +441,25 @@ class O {
535
441
  throw new Error("FlatBuffers: endObject called without startObject");
536
442
  this.addInt32(0);
537
443
  const t = this.offset();
538
- let e = this.vtable_in_use - 1;
539
- for (; e >= 0 && this.vtable[e] == 0; e--)
444
+ let s = this.vtable_in_use - 1;
445
+ for (; s >= 0 && this.vtable[s] == 0; s--)
540
446
  ;
541
- const s = e + 1;
542
- for (; e >= 0; e--)
543
- this.addInt16(this.vtable[e] != 0 ? t - this.vtable[e] : 0);
447
+ const e = s + 1;
448
+ for (; s >= 0; s--)
449
+ this.addInt16(this.vtable[s] != 0 ? t - this.vtable[s] : 0);
544
450
  const n = 2;
545
451
  this.addInt16(t - this.object_start);
546
- const r = (s + n) * ht;
452
+ const r = (e + n) * dt;
547
453
  this.addInt16(r);
548
454
  let o = 0;
549
- const h = this.space;
550
- t: for (e = 0; e < this.vtables.length; e++) {
551
- const c = this.bb.capacity() - this.vtables[e];
455
+ const l = this.space;
456
+ t: for (s = 0; s < this.vtables.length; s++) {
457
+ const c = this.bb.capacity() - this.vtables[s];
552
458
  if (r == this.bb.readInt16(c)) {
553
- for (let d = ht; d < r; d += ht)
554
- if (this.bb.readInt16(h + d) != this.bb.readInt16(c + d))
459
+ for (let d = dt; d < r; d += dt)
460
+ if (this.bb.readInt16(l + d) != this.bb.readInt16(c + d))
555
461
  continue t;
556
- o = this.vtables[e];
462
+ o = this.vtables[s];
557
463
  break;
558
464
  }
559
465
  }
@@ -562,31 +468,31 @@ class O {
562
468
  /**
563
469
  * Finalize a buffer, poiting to the given `root_table`.
564
470
  */
565
- finish(t, e, s) {
566
- const n = s ? f : 0;
567
- if (e) {
568
- const r = e;
569
- if (this.prep(this.minalign, y + P + n), r.length != P)
570
- throw new TypeError("FlatBuffers: file identifier must be length " + P);
571
- for (let o = P - 1; o >= 0; o--)
471
+ finish(t, s, e) {
472
+ const n = e ? f : 0;
473
+ if (s) {
474
+ const r = s;
475
+ if (this.prep(this.minalign, L + x + n), r.length != x)
476
+ throw new TypeError("FlatBuffers: file identifier must be length " + x);
477
+ for (let o = x - 1; o >= 0; o--)
572
478
  this.writeInt8(r.charCodeAt(o));
573
479
  }
574
- this.prep(this.minalign, y + n), this.addOffset(t), n && this.addInt32(this.bb.capacity() - this.space), this.bb.setPosition(this.space);
480
+ this.prep(this.minalign, L + n), this.addOffset(t), n && this.addInt32(this.bb.capacity() - this.space), this.bb.setPosition(this.space);
575
481
  }
576
482
  /**
577
483
  * Finalize a size prefixed buffer, pointing to the given `root_table`.
578
484
  */
579
- finishSizePrefixed(t, e) {
580
- this.finish(t, e, !0);
485
+ finishSizePrefixed(t, s) {
486
+ this.finish(t, s, !0);
581
487
  }
582
488
  /**
583
489
  * This checks a required field has been set in a given table that has
584
490
  * just been constructed.
585
491
  */
586
- requiredField(t, e) {
587
- const s = this.bb.capacity() - t, n = s - this.bb.readInt32(s);
588
- if (!(e < this.bb.readInt16(n) && this.bb.readInt16(n + e) != 0))
589
- throw new TypeError("FlatBuffers: field " + e + " must be set");
492
+ requiredField(t, s) {
493
+ const e = this.bb.capacity() - t, n = e - this.bb.readInt32(e);
494
+ if (!(s < this.bb.readInt16(n) && this.bb.readInt16(n + s) != 0))
495
+ throw new TypeError("FlatBuffers: field " + s + " must be set");
590
496
  }
591
497
  /**
592
498
  * Start a new array/vector of objects. Users usually will not call
@@ -597,8 +503,8 @@ class O {
597
503
  * @param num_elems The number of elements in the array
598
504
  * @param alignment The alignment of the array
599
505
  */
600
- startVector(t, e, s) {
601
- this.notNested(), this.vector_num_elems = e, this.prep(y, t * e), this.prep(s, t * e);
506
+ startVector(t, s, e) {
507
+ this.notNested(), this.vector_num_elems = s, this.prep(L, t * s), this.prep(e, t * s);
602
508
  }
603
509
  /**
604
510
  * Finish off the creation of an array and all its elements. The array must be
@@ -622,8 +528,8 @@ class O {
622
528
  return 0;
623
529
  if (this.string_maps || (this.string_maps = /* @__PURE__ */ new Map()), this.string_maps.has(t))
624
530
  return this.string_maps.get(t);
625
- const e = this.createString(t);
626
- return this.string_maps.set(t, e), e;
531
+ const s = this.createString(t);
532
+ return this.string_maps.set(t, s), s;
627
533
  }
628
534
  /**
629
535
  * Encode the string `s` in the buffer using UTF-8. If a Uint8Array is passed
@@ -635,8 +541,8 @@ class O {
635
541
  createString(t) {
636
542
  if (t == null)
637
543
  return 0;
638
- let e;
639
- return t instanceof Uint8Array ? e = t : e = this.text_encoder.encode(t), this.addInt8(0), this.startVector(1, e.length, 1), this.bb.setPosition(this.space -= e.length), this.bb.bytes().set(e, this.space), this.endVector();
544
+ let s;
545
+ return t instanceof Uint8Array ? s = t : s = this.text_encoder.encode(t), this.addInt8(0), this.startVector(1, s.length, 1), this.bb.setPosition(this.space -= s.length), this.bb.bytes().set(s, this.space), this.endVector();
640
546
  }
641
547
  /**
642
548
  * Create a byte vector.
@@ -661,236 +567,326 @@ class O {
661
567
  * @returns list of offsets of each non null object
662
568
  */
663
569
  createObjectOffsetList(t) {
664
- const e = [];
665
- for (let s = 0; s < t.length; ++s) {
666
- const n = t[s];
570
+ const s = [];
571
+ for (let e = 0; e < t.length; ++e) {
572
+ const n = t[e];
667
573
  if (n !== null)
668
- e.push(this.createObjectOffset(n));
574
+ s.push(this.createObjectOffset(n));
669
575
  else
670
576
  throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.");
671
577
  }
672
- return e;
578
+ return s;
673
579
  }
674
- createStructOffsetList(t, e) {
675
- return e(this, t.length), this.createObjectOffsetList(t.slice().reverse()), this.endVector();
580
+ createStructOffsetList(t, s) {
581
+ return s(this, t.length), this.createObjectOffsetList(t.slice().reverse()), this.endVector();
676
582
  }
677
583
  }
678
- class T {
584
+ class V {
679
585
  constructor() {
680
586
  a(this, "bb", null);
681
587
  a(this, "bb_pos", 0);
682
588
  }
683
- __init(t, e) {
684
- return this.bb_pos = t, this.bb = e, this;
589
+ __init(t, s) {
590
+ return this.bb_pos = t, this.bb = s, this;
685
591
  }
686
- static getRootAsFileInfo(t, e) {
687
- return (e || new T()).__init(t.readInt32(t.position()) + t.position(), t);
592
+ static getRootAsFileInfo(t, s) {
593
+ return (s || new V()).__init(t.readInt32(t.position()) + t.position(), t);
688
594
  }
689
- static getSizePrefixedRootAsFileInfo(t, e) {
690
- return t.setPosition(t.position() + f), (e || new T()).__init(t.readInt32(t.position()) + t.position(), t);
595
+ static getSizePrefixedRootAsFileInfo(t, s) {
596
+ return t.setPosition(t.position() + f), (s || new V()).__init(t.readInt32(t.position()) + t.position(), t);
691
597
  }
692
- target(t) {
693
- const e = this.bb.__offset(this.bb_pos, 4);
694
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
598
+ group(t) {
599
+ const s = this.bb.__offset(this.bb_pos, 4);
600
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
601
+ }
602
+ path(t) {
603
+ const s = this.bb.__offset(this.bb_pos, 6);
604
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
695
605
  }
696
606
  metadata(t) {
697
- const e = this.bb.__offset(this.bb_pos, 6);
698
- return e ? this.bb.readUint8(this.bb.__vector(this.bb_pos + e) + t) : 0;
607
+ const s = this.bb.__offset(this.bb_pos, 8);
608
+ return s ? this.bb.readUint8(this.bb.__vector(this.bb_pos + s) + t) : 0;
699
609
  }
700
610
  metadataLength() {
701
- const t = this.bb.__offset(this.bb_pos, 6);
611
+ const t = this.bb.__offset(this.bb_pos, 8);
702
612
  return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
703
613
  }
704
614
  metadataArray() {
705
- const t = this.bb.__offset(this.bb_pos, 6);
615
+ const t = this.bb.__offset(this.bb_pos, 8);
706
616
  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;
707
617
  }
708
618
  static startFileInfo(t) {
709
- t.startObject(2);
619
+ t.startObject(3);
710
620
  }
711
- static addTarget(t, e) {
712
- t.addFieldOffset(0, e, 0);
621
+ static addGroup(t, s) {
622
+ t.addFieldOffset(0, s, 0);
713
623
  }
714
- static addMetadata(t, e) {
715
- t.addFieldOffset(1, e, 0);
624
+ static addPath(t, s) {
625
+ t.addFieldOffset(1, s, 0);
716
626
  }
717
- static createMetadataVector(t, e) {
718
- t.startVector(1, e.length, 1);
719
- for (let s = e.length - 1; s >= 0; s--)
720
- t.addInt8(e[s]);
627
+ static addMetadata(t, s) {
628
+ t.addFieldOffset(2, s, 0);
629
+ }
630
+ static createMetadataVector(t, s) {
631
+ t.startVector(1, s.length, 1);
632
+ for (let e = s.length - 1; e >= 0; e--)
633
+ t.addInt8(s[e]);
721
634
  return t.endVector();
722
635
  }
723
- static startMetadataVector(t, e) {
724
- t.startVector(1, e, 1);
636
+ static startMetadataVector(t, s) {
637
+ t.startVector(1, s, 1);
725
638
  }
726
639
  static endFileInfo(t) {
727
- const e = t.endObject();
728
- return t.requiredField(e, 4), t.requiredField(e, 6), e;
640
+ const s = t.endObject();
641
+ return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), s;
729
642
  }
730
- static createFileInfo(t, e, s) {
731
- return T.startFileInfo(t), T.addTarget(t, e), T.addMetadata(t, s), T.endFileInfo(t);
643
+ static createFileInfo(t, s, e, n) {
644
+ return V.startFileInfo(t), V.addGroup(t, s), V.addPath(t, e), V.addMetadata(t, n), V.endFileInfo(t);
732
645
  }
733
646
  unpack() {
734
- return new Vt(this.target(), this.bb.createScalarList(this.metadata.bind(this), this.metadataLength()));
647
+ return new Ot(this.group(), this.path(), this.bb.createScalarList(this.metadata.bind(this), this.metadataLength()));
735
648
  }
736
649
  unpackTo(t) {
737
- t.target = this.target(), t.metadata = this.bb.createScalarList(this.metadata.bind(this), this.metadataLength());
650
+ t.group = this.group(), t.path = this.path(), t.metadata = this.bb.createScalarList(this.metadata.bind(this), this.metadataLength());
738
651
  }
739
652
  }
740
- class Vt {
741
- constructor(t = null, e = []) {
742
- a(this, "target");
653
+ class Ot {
654
+ constructor(t = null, s = null, e = []) {
655
+ a(this, "group");
656
+ a(this, "path");
743
657
  a(this, "metadata");
744
- this.target = t, this.metadata = e;
658
+ this.group = t, this.path = s, this.metadata = e;
745
659
  }
746
660
  pack(t) {
747
- const e = this.target !== null ? t.createString(this.target) : 0, s = T.createMetadataVector(t, this.metadata);
748
- return T.createFileInfo(t, e, s);
661
+ const s = this.group !== null ? t.createString(this.group) : 0, e = this.path !== null ? t.createString(this.path) : 0, n = V.createMetadataVector(t, this.metadata);
662
+ return V.createFileInfo(t, s, e, n);
749
663
  }
750
664
  }
751
- class S {
665
+ class C {
666
+ constructor() {
667
+ a(this, "bb", null);
668
+ a(this, "bb_pos", 0);
669
+ }
670
+ __init(t, s) {
671
+ return this.bb_pos = t, this.bb = s, this;
672
+ }
673
+ static getRootAsOption(t, s) {
674
+ return (s || new C()).__init(t.readInt32(t.position()) + t.position(), t);
675
+ }
676
+ static getSizePrefixedRootAsOption(t, s) {
677
+ return t.setPosition(t.position() + f), (s || new C()).__init(t.readInt32(t.position()) + t.position(), t);
678
+ }
679
+ key(t) {
680
+ const s = this.bb.__offset(this.bb_pos, 4);
681
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
682
+ }
683
+ value(t) {
684
+ const s = this.bb.__offset(this.bb_pos, 6);
685
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
686
+ }
687
+ static startOption(t) {
688
+ t.startObject(2);
689
+ }
690
+ static addKey(t, s) {
691
+ t.addFieldOffset(0, s, 0);
692
+ }
693
+ static addValue(t, s) {
694
+ t.addFieldOffset(1, s, 0);
695
+ }
696
+ static endOption(t) {
697
+ const s = t.endObject();
698
+ return t.requiredField(s, 4), t.requiredField(s, 6), s;
699
+ }
700
+ static createOption(t, s, e) {
701
+ return C.startOption(t), C.addKey(t, s), C.addValue(t, e), C.endOption(t);
702
+ }
703
+ unpack() {
704
+ return new Ut(this.key(), this.value());
705
+ }
706
+ unpackTo(t) {
707
+ t.key = this.key(), t.value = this.value();
708
+ }
709
+ }
710
+ class Ut {
711
+ constructor(t = null, s = null) {
712
+ a(this, "key");
713
+ a(this, "value");
714
+ this.key = t, this.value = s;
715
+ }
716
+ pack(t) {
717
+ const s = this.key !== null ? t.createString(this.key) : 0, e = this.value !== null ? t.createString(this.value) : 0;
718
+ return C.createOption(t, s, e);
719
+ }
720
+ }
721
+ class v {
752
722
  constructor() {
753
723
  a(this, "bb", null);
754
724
  a(this, "bb_pos", 0);
755
725
  }
756
- __init(t, e) {
757
- return this.bb_pos = t, this.bb = e, this;
726
+ __init(t, s) {
727
+ return this.bb_pos = t, this.bb = s, this;
758
728
  }
759
- static getRootAsFrameCache(t, e) {
760
- return (e || new S()).__init(t.readInt32(t.position()) + t.position(), t);
729
+ static getRootAsFrameCache(t, s) {
730
+ return (s || new v()).__init(t.readInt32(t.position()) + t.position(), t);
761
731
  }
762
- static getSizePrefixedRootAsFrameCache(t, e) {
763
- return t.setPosition(t.position() + f), (e || new S()).__init(t.readInt32(t.position()) + t.position(), t);
732
+ static getSizePrefixedRootAsFrameCache(t, s) {
733
+ return t.setPosition(t.position() + f), (s || new v()).__init(t.readInt32(t.position()) + t.position(), t);
764
734
  }
765
735
  id(t) {
766
- const e = this.bb.__offset(this.bb_pos, 4);
767
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
736
+ const s = this.bb.__offset(this.bb_pos, 4);
737
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
768
738
  }
769
- target(t) {
739
+ files(t, s) {
770
740
  const e = this.bb.__offset(this.bb_pos, 6);
771
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
741
+ return e ? (s || new V()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
742
+ }
743
+ filesLength() {
744
+ const t = this.bb.__offset(this.bb_pos, 6);
745
+ return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
772
746
  }
773
- fullTarget(t) {
747
+ groups(t, s) {
774
748
  const e = this.bb.__offset(this.bb_pos, 8);
775
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
749
+ return e ? this.bb.__string(this.bb.__vector(this.bb_pos + e) + t * 4, s) : null;
776
750
  }
777
- content(t) {
778
- const e = this.bb.__offset(this.bb_pos, 10);
779
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
751
+ groupsLength() {
752
+ const t = this.bb.__offset(this.bb_pos, 8);
753
+ return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
780
754
  }
781
- files(t, e) {
782
- const s = this.bb.__offset(this.bb_pos, 12);
783
- return s ? (e || new T()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
755
+ options(t, s) {
756
+ const e = this.bb.__offset(this.bb_pos, 10);
757
+ return e ? (s || new C()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
784
758
  }
785
- filesLength() {
786
- const t = this.bb.__offset(this.bb_pos, 12);
759
+ optionsLength() {
760
+ const t = this.bb.__offset(this.bb_pos, 10);
787
761
  return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
788
762
  }
763
+ content(t) {
764
+ const s = this.bb.__offset(this.bb_pos, 12);
765
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
766
+ }
789
767
  static startFrameCache(t) {
790
768
  t.startObject(5);
791
769
  }
792
- static addId(t, e) {
793
- t.addFieldOffset(0, e, 0);
770
+ static addId(t, s) {
771
+ t.addFieldOffset(0, s, 0);
772
+ }
773
+ static addFiles(t, s) {
774
+ t.addFieldOffset(1, s, 0);
775
+ }
776
+ static createFilesVector(t, s) {
777
+ t.startVector(4, s.length, 4);
778
+ for (let e = s.length - 1; e >= 0; e--)
779
+ t.addOffset(s[e]);
780
+ return t.endVector();
781
+ }
782
+ static startFilesVector(t, s) {
783
+ t.startVector(4, s, 4);
794
784
  }
795
- static addTarget(t, e) {
796
- t.addFieldOffset(1, e, 0);
785
+ static addGroups(t, s) {
786
+ t.addFieldOffset(2, s, 0);
797
787
  }
798
- static addFullTarget(t, e) {
799
- t.addFieldOffset(2, e, 0);
788
+ static createGroupsVector(t, s) {
789
+ t.startVector(4, s.length, 4);
790
+ for (let e = s.length - 1; e >= 0; e--)
791
+ t.addOffset(s[e]);
792
+ return t.endVector();
800
793
  }
801
- static addContent(t, e) {
802
- t.addFieldOffset(3, e, 0);
794
+ static startGroupsVector(t, s) {
795
+ t.startVector(4, s, 4);
803
796
  }
804
- static addFiles(t, e) {
805
- t.addFieldOffset(4, e, 0);
797
+ static addOptions(t, s) {
798
+ t.addFieldOffset(3, s, 0);
806
799
  }
807
- static createFilesVector(t, e) {
808
- t.startVector(4, e.length, 4);
809
- for (let s = e.length - 1; s >= 0; s--)
810
- t.addOffset(e[s]);
800
+ static createOptionsVector(t, s) {
801
+ t.startVector(4, s.length, 4);
802
+ for (let e = s.length - 1; e >= 0; e--)
803
+ t.addOffset(s[e]);
811
804
  return t.endVector();
812
805
  }
813
- static startFilesVector(t, e) {
814
- t.startVector(4, e, 4);
806
+ static startOptionsVector(t, s) {
807
+ t.startVector(4, s, 4);
808
+ }
809
+ static addContent(t, s) {
810
+ t.addFieldOffset(4, s, 0);
815
811
  }
816
812
  static endFrameCache(t) {
817
- const e = t.endObject();
818
- return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), t.requiredField(e, 10), t.requiredField(e, 12), e;
813
+ const s = t.endObject();
814
+ return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), t.requiredField(s, 10), t.requiredField(s, 12), s;
819
815
  }
820
- static createFrameCache(t, e, s, n, r, o) {
821
- return S.startFrameCache(t), S.addId(t, e), S.addTarget(t, s), S.addFullTarget(t, n), S.addContent(t, r), S.addFiles(t, o), S.endFrameCache(t);
816
+ static createFrameCache(t, s, e, n, r, o) {
817
+ return v.startFrameCache(t), v.addId(t, s), v.addFiles(t, e), v.addGroups(t, n), v.addOptions(t, r), v.addContent(t, o), v.endFrameCache(t);
822
818
  }
823
819
  unpack() {
824
- return new Ot(this.id(), this.target(), this.fullTarget(), this.content(), this.bb.createObjList(this.files.bind(this), this.filesLength()));
820
+ return new Rt(this.id(), this.bb.createObjList(this.files.bind(this), this.filesLength()), this.bb.createScalarList(this.groups.bind(this), this.groupsLength()), this.bb.createObjList(this.options.bind(this), this.optionsLength()), this.content());
825
821
  }
826
822
  unpackTo(t) {
827
- t.id = this.id(), t.target = this.target(), t.fullTarget = this.fullTarget(), t.content = this.content(), t.files = this.bb.createObjList(this.files.bind(this), this.filesLength());
823
+ t.id = this.id(), t.files = this.bb.createObjList(this.files.bind(this), this.filesLength()), t.groups = this.bb.createScalarList(this.groups.bind(this), this.groupsLength()), t.options = this.bb.createObjList(this.options.bind(this), this.optionsLength()), t.content = this.content();
828
824
  }
829
825
  }
830
- class Ot {
831
- constructor(t = null, e = null, s = null, n = null, r = []) {
826
+ class Rt {
827
+ constructor(t = null, s = [], e = [], n = [], r = null) {
832
828
  a(this, "id");
833
- a(this, "target");
834
- a(this, "fullTarget");
835
- a(this, "content");
836
829
  a(this, "files");
837
- this.id = t, this.target = e, this.fullTarget = s, this.content = n, this.files = r;
830
+ a(this, "groups");
831
+ a(this, "options");
832
+ a(this, "content");
833
+ this.id = t, this.files = s, this.groups = e, this.options = n, this.content = r;
838
834
  }
839
835
  pack(t) {
840
- const e = this.id !== null ? t.createString(this.id) : 0, s = this.target !== null ? t.createString(this.target) : 0, n = this.fullTarget !== null ? t.createString(this.fullTarget) : 0, r = this.content !== null ? t.createString(this.content) : 0, o = S.createFilesVector(t, t.createObjectOffsetList(this.files));
841
- return S.createFrameCache(t, e, s, n, r, o);
836
+ const s = this.id !== null ? t.createString(this.id) : 0, e = v.createFilesVector(t, t.createObjectOffsetList(this.files)), n = v.createGroupsVector(t, t.createObjectOffsetList(this.groups)), r = v.createOptionsVector(t, t.createObjectOffsetList(this.options)), o = this.content !== null ? t.createString(this.content) : 0;
837
+ return v.createFrameCache(t, s, e, n, r, o);
842
838
  }
843
839
  }
844
840
  var u;
845
841
  (function(i) {
846
- i[i.Client_Unique_FrameInfo_Request = 0] = "Client_Unique_FrameInfo_Request", i[i.Client_Tagged_FrameInfo_Request = 1] = "Client_Tagged_FrameInfo_Request", i[i.Server_Unique_FrameInfo_File_Response = 2] = "Server_Unique_FrameInfo_File_Response", i[i.Server_Tagged_FrameInfo_File_Response = 3] = "Server_Tagged_FrameInfo_File_Response", i[i.Server_Unique_FrameInfo_Content_Response = 4] = "Server_Unique_FrameInfo_Content_Response", i[i.Server_Tagged_FrameInfo_Content_Response = 5] = "Server_Tagged_FrameInfo_Content_Response", i[i.Client_File_Request = 6] = "Client_File_Request", i[i.Server_File_Response = 7] = "Server_File_Response", i[i.Client_File_Alias_Request = 8] = "Client_File_Alias_Request", i[i.Server_File_Alias_Response = 9] = "Server_File_Alias_Response", i[i.Client_Unique_FrameCache = 10] = "Client_Unique_FrameCache", i[i.Client_Tagged_FrameCache = 11] = "Client_Tagged_FrameCache", i[i.Client_Unique_Frame_Loaded = 12] = "Client_Unique_Frame_Loaded", i[i.Client_Tagged_Frame_Loaded = 13] = "Client_Tagged_Frame_Loaded", i[i.Client_Unique_Frame_Subscribe = 14] = "Client_Unique_Frame_Subscribe", i[i.Client_Tagged_Frame_Subscribe = 15] = "Client_Tagged_Frame_Subscribe", i[i.Client_Unique_Frame_Unsubscribe = 16] = "Client_Unique_Frame_Unsubscribe", i[i.Client_Tagged_Frame_Unsubscribe = 17] = "Client_Tagged_Frame_Unsubscribe", i[i.Client_Unique_Value_Request = 18] = "Client_Unique_Value_Request", i[i.Client_Tagged_Value_Request = 19] = "Client_Tagged_Value_Request", i[i.Server_Unique_Value_Response = 20] = "Server_Unique_Value_Response", i[i.Server_Tagged_Value_Response = 21] = "Server_Tagged_Value_Response", i[i.Unique_Value_Update = 22] = "Unique_Value_Update", i[i.Tagged_Value_Update = 23] = "Tagged_Value_Update", i[i.Client_Unique_Signal_Request = 24] = "Client_Unique_Signal_Request", i[i.Client_Tagged_Signal_Request = 25] = "Client_Tagged_Signal_Request", i[i.Server_Unique_Signal_Response = 26] = "Server_Unique_Signal_Response", i[i.Server_Tagged_Signal_Response = 27] = "Server_Tagged_Signal_Response", i[i.Client_Unique_Signal_Notify = 28] = "Client_Unique_Signal_Notify", i[i.Client_Tagged_Signal_Notify = 29] = "Client_Tagged_Signal_Notify";
842
+ i[i.Client_Unique_FrameInfo_Request = 0] = "Client_Unique_FrameInfo_Request", i[i.Client_Tagged_FrameInfo_Request = 1] = "Client_Tagged_FrameInfo_Request", i[i.Server_Unique_FrameInfo_Response = 2] = "Server_Unique_FrameInfo_Response", i[i.Server_Tagged_FrameInfo_Response = 3] = "Server_Tagged_FrameInfo_Response", i[i.Client_File_Request = 6] = "Client_File_Request", i[i.Server_File_Response = 7] = "Server_File_Response", i[i.Client_Unique_FrameCache = 10] = "Client_Unique_FrameCache", i[i.Client_Tagged_FrameCache = 11] = "Client_Tagged_FrameCache", i[i.Client_Unique_Frame_Loaded = 12] = "Client_Unique_Frame_Loaded", i[i.Client_Tagged_Frame_Loaded = 13] = "Client_Tagged_Frame_Loaded", i[i.Client_Unique_Frame_Subscribe = 14] = "Client_Unique_Frame_Subscribe", i[i.Client_Tagged_Frame_Subscribe = 15] = "Client_Tagged_Frame_Subscribe", i[i.Client_Unique_Frame_Unsubscribe = 16] = "Client_Unique_Frame_Unsubscribe", i[i.Client_Tagged_Frame_Unsubscribe = 17] = "Client_Tagged_Frame_Unsubscribe", i[i.Client_Unique_Value_Request = 18] = "Client_Unique_Value_Request", i[i.Client_Tagged_Value_Request = 19] = "Client_Tagged_Value_Request", i[i.Server_Unique_Value_Response = 20] = "Server_Unique_Value_Response", i[i.Server_Tagged_Value_Response = 21] = "Server_Tagged_Value_Response", i[i.Unique_Value_Update = 22] = "Unique_Value_Update", i[i.Tagged_Value_Update = 23] = "Tagged_Value_Update", i[i.Client_Unique_Signal_Request = 24] = "Client_Unique_Signal_Request", i[i.Client_Tagged_Signal_Request = 25] = "Client_Tagged_Signal_Request", i[i.Server_Unique_Signal_Response = 26] = "Server_Unique_Signal_Response", i[i.Server_Tagged_Signal_Response = 27] = "Server_Tagged_Signal_Response", i[i.Client_Unique_Signal_Notify = 28] = "Client_Unique_Signal_Notify", i[i.Client_Tagged_Signal_Notify = 29] = "Client_Tagged_Signal_Notify";
847
843
  })(u || (u = {}));
848
- class x {
844
+ class N {
849
845
  constructor() {
850
846
  a(this, "bb", null);
851
847
  a(this, "bb_pos", 0);
852
848
  }
853
- __init(t, e) {
854
- return this.bb_pos = t, this.bb = e, this;
849
+ __init(t, s) {
850
+ return this.bb_pos = t, this.bb = s, this;
855
851
  }
856
- static getRootAsSignal(t, e) {
857
- return (e || new x()).__init(t.readInt32(t.position()) + t.position(), t);
852
+ static getRootAsSignal(t, s) {
853
+ return (s || new N()).__init(t.readInt32(t.position()) + t.position(), t);
858
854
  }
859
- static getSizePrefixedRootAsSignal(t, e) {
860
- return t.setPosition(t.position() + f), (e || new x()).__init(t.readInt32(t.position()) + t.position(), t);
855
+ static getSizePrefixedRootAsSignal(t, s) {
856
+ return t.setPosition(t.position() + f), (s || new N()).__init(t.readInt32(t.position()) + t.position(), t);
861
857
  }
862
858
  id(t) {
863
- const e = this.bb.__offset(this.bb_pos, 4);
864
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
859
+ const s = this.bb.__offset(this.bb_pos, 4);
860
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
865
861
  }
866
862
  static startSignal(t) {
867
863
  t.startObject(1);
868
864
  }
869
- static addId(t, e) {
870
- t.addFieldOffset(0, e, 0);
865
+ static addId(t, s) {
866
+ t.addFieldOffset(0, s, 0);
871
867
  }
872
868
  static endSignal(t) {
873
- const e = t.endObject();
874
- return t.requiredField(e, 4), e;
869
+ const s = t.endObject();
870
+ return t.requiredField(s, 4), s;
875
871
  }
876
- static createSignal(t, e) {
877
- return x.startSignal(t), x.addId(t, e), x.endSignal(t);
872
+ static createSignal(t, s) {
873
+ return N.startSignal(t), N.addId(t, s), N.endSignal(t);
878
874
  }
879
875
  unpack() {
880
- return new Xt(this.id());
876
+ return new Kt(this.id());
881
877
  }
882
878
  unpackTo(t) {
883
879
  t.id = this.id();
884
880
  }
885
881
  }
886
- class Xt {
882
+ class Kt {
887
883
  constructor(t = null) {
888
884
  a(this, "id");
889
885
  this.id = t;
890
886
  }
891
887
  pack(t) {
892
- const e = this.id !== null ? t.createString(this.id) : 0;
893
- return x.createSignal(t, e);
888
+ const s = this.id !== null ? t.createString(this.id) : 0;
889
+ return N.createSignal(t, s);
894
890
  }
895
891
  }
896
892
  class D {
@@ -898,94 +894,94 @@ class D {
898
894
  a(this, "bb", null);
899
895
  a(this, "bb_pos", 0);
900
896
  }
901
- __init(t, e) {
902
- return this.bb_pos = t, this.bb = e, this;
897
+ __init(t, s) {
898
+ return this.bb_pos = t, this.bb = s, this;
903
899
  }
904
- static getRootAsTaggedFrameLoaded(t, e) {
905
- return (e || new D()).__init(t.readInt32(t.position()) + t.position(), t);
900
+ static getRootAsTaggedFrameLoaded(t, s) {
901
+ return (s || new D()).__init(t.readInt32(t.position()) + t.position(), t);
906
902
  }
907
- static getSizePrefixedRootAsTaggedFrameLoaded(t, e) {
908
- return t.setPosition(t.position() + f), (e || new D()).__init(t.readInt32(t.position()) + t.position(), t);
903
+ static getSizePrefixedRootAsTaggedFrameLoaded(t, s) {
904
+ return t.setPosition(t.position() + f), (s || new D()).__init(t.readInt32(t.position()) + t.position(), t);
909
905
  }
910
906
  id(t) {
911
- const e = this.bb.__offset(this.bb_pos, 4);
912
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
907
+ const s = this.bb.__offset(this.bb_pos, 4);
908
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
913
909
  }
914
910
  tag(t) {
915
- const e = this.bb.__offset(this.bb_pos, 6);
916
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
911
+ const s = this.bb.__offset(this.bb_pos, 6);
912
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
917
913
  }
918
914
  static startTaggedFrameLoaded(t) {
919
915
  t.startObject(2);
920
916
  }
921
- static addId(t, e) {
922
- t.addFieldOffset(0, e, 0);
917
+ static addId(t, s) {
918
+ t.addFieldOffset(0, s, 0);
923
919
  }
924
- static addTag(t, e) {
925
- t.addFieldOffset(1, e, 0);
920
+ static addTag(t, s) {
921
+ t.addFieldOffset(1, s, 0);
926
922
  }
927
923
  static endTaggedFrameLoaded(t) {
928
- const e = t.endObject();
929
- return t.requiredField(e, 4), t.requiredField(e, 6), e;
924
+ const s = t.endObject();
925
+ return t.requiredField(s, 4), t.requiredField(s, 6), s;
930
926
  }
931
- static createTaggedFrameLoaded(t, e, s) {
932
- return D.startTaggedFrameLoaded(t), D.addId(t, e), D.addTag(t, s), D.endTaggedFrameLoaded(t);
927
+ static createTaggedFrameLoaded(t, s, e) {
928
+ return D.startTaggedFrameLoaded(t), D.addId(t, s), D.addTag(t, e), D.endTaggedFrameLoaded(t);
933
929
  }
934
930
  unpack() {
935
- return new gt(this.id(), this.tag());
931
+ return new bt(this.id(), this.tag());
936
932
  }
937
933
  unpackTo(t) {
938
934
  t.id = this.id(), t.tag = this.tag();
939
935
  }
940
936
  }
941
- class gt {
942
- constructor(t = null, e = null) {
937
+ class bt {
938
+ constructor(t = null, s = null) {
943
939
  a(this, "id");
944
940
  a(this, "tag");
945
- this.id = t, this.tag = e;
941
+ this.id = t, this.tag = s;
946
942
  }
947
943
  pack(t) {
948
- const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0;
949
- return D.createTaggedFrameLoaded(t, e, s);
944
+ const s = this.id !== null ? t.createString(this.id) : 0, e = this.tag !== null ? t.createString(this.tag) : 0;
945
+ return D.createTaggedFrameLoaded(t, s, e);
950
946
  }
951
947
  }
952
- class G {
948
+ class H {
953
949
  constructor() {
954
950
  a(this, "bb", null);
955
951
  a(this, "bb_pos", 0);
956
952
  }
957
- __init(t, e) {
958
- return this.bb_pos = t, this.bb = e, this;
953
+ __init(t, s) {
954
+ return this.bb_pos = t, this.bb = s, this;
959
955
  }
960
- static getRootAsTaggedFrameSubscribe(t, e) {
961
- return (e || new G()).__init(t.readInt32(t.position()) + t.position(), t);
956
+ static getRootAsTaggedFrameSubscribe(t, s) {
957
+ return (s || new H()).__init(t.readInt32(t.position()) + t.position(), t);
962
958
  }
963
- static getSizePrefixedRootAsTaggedFrameSubscribe(t, e) {
964
- return t.setPosition(t.position() + f), (e || new G()).__init(t.readInt32(t.position()) + t.position(), t);
959
+ static getSizePrefixedRootAsTaggedFrameSubscribe(t, s) {
960
+ return t.setPosition(t.position() + f), (s || new H()).__init(t.readInt32(t.position()) + t.position(), t);
965
961
  }
966
962
  id(t) {
967
- const e = this.bb.__offset(this.bb_pos, 4);
968
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
963
+ const s = this.bb.__offset(this.bb_pos, 4);
964
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
969
965
  }
970
966
  tag(t) {
971
- const e = this.bb.__offset(this.bb_pos, 6);
972
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
967
+ const s = this.bb.__offset(this.bb_pos, 6);
968
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
973
969
  }
974
970
  static startTaggedFrameSubscribe(t) {
975
971
  t.startObject(2);
976
972
  }
977
- static addId(t, e) {
978
- t.addFieldOffset(0, e, 0);
973
+ static addId(t, s) {
974
+ t.addFieldOffset(0, s, 0);
979
975
  }
980
- static addTag(t, e) {
981
- t.addFieldOffset(1, e, 0);
976
+ static addTag(t, s) {
977
+ t.addFieldOffset(1, s, 0);
982
978
  }
983
979
  static endTaggedFrameSubscribe(t) {
984
- const e = t.endObject();
985
- return t.requiredField(e, 4), t.requiredField(e, 6), e;
980
+ const s = t.endObject();
981
+ return t.requiredField(s, 4), t.requiredField(s, 6), s;
986
982
  }
987
- static createTaggedFrameSubscribe(t, e, s) {
988
- return G.startTaggedFrameSubscribe(t), G.addId(t, e), G.addTag(t, s), G.endTaggedFrameSubscribe(t);
983
+ static createTaggedFrameSubscribe(t, s, e) {
984
+ return H.startTaggedFrameSubscribe(t), H.addId(t, s), H.addTag(t, e), H.endTaggedFrameSubscribe(t);
989
985
  }
990
986
  unpack() {
991
987
  return new pt(this.id(), this.tag());
@@ -995,14 +991,14 @@ class G {
995
991
  }
996
992
  }
997
993
  class pt {
998
- constructor(t = null, e = null) {
994
+ constructor(t = null, s = null) {
999
995
  a(this, "id");
1000
996
  a(this, "tag");
1001
- this.id = t, this.tag = e;
997
+ this.id = t, this.tag = s;
1002
998
  }
1003
999
  pack(t) {
1004
- const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0;
1005
- return G.createTaggedFrameSubscribe(t, e, s);
1000
+ const s = this.id !== null ? t.createString(this.id) : 0, e = this.tag !== null ? t.createString(this.tag) : 0;
1001
+ return H.createTaggedFrameSubscribe(t, s, e);
1006
1002
  }
1007
1003
  }
1008
1004
  class q {
@@ -1010,30 +1006,30 @@ class q {
1010
1006
  a(this, "bb", null);
1011
1007
  a(this, "bb_pos", 0);
1012
1008
  }
1013
- __init(t, e) {
1014
- return this.bb_pos = t, this.bb = e, this;
1009
+ __init(t, s) {
1010
+ return this.bb_pos = t, this.bb = s, this;
1015
1011
  }
1016
- static getRootAsTaggedSignalNotify(t, e) {
1017
- return (e || new q()).__init(t.readInt32(t.position()) + t.position(), t);
1012
+ static getRootAsTaggedSignalNotify(t, s) {
1013
+ return (s || new q()).__init(t.readInt32(t.position()) + t.position(), t);
1018
1014
  }
1019
- static getSizePrefixedRootAsTaggedSignalNotify(t, e) {
1020
- return t.setPosition(t.position() + f), (e || new q()).__init(t.readInt32(t.position()) + t.position(), t);
1015
+ static getSizePrefixedRootAsTaggedSignalNotify(t, s) {
1016
+ return t.setPosition(t.position() + f), (s || new q()).__init(t.readInt32(t.position()) + t.position(), t);
1021
1017
  }
1022
1018
  frameId(t) {
1023
- const e = this.bb.__offset(this.bb_pos, 4);
1024
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1019
+ const s = this.bb.__offset(this.bb_pos, 4);
1020
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1025
1021
  }
1026
1022
  tag(t) {
1027
- const e = this.bb.__offset(this.bb_pos, 6);
1028
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1023
+ const s = this.bb.__offset(this.bb_pos, 6);
1024
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1029
1025
  }
1030
1026
  signalId(t) {
1031
- const e = this.bb.__offset(this.bb_pos, 8);
1032
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1027
+ const s = this.bb.__offset(this.bb_pos, 8);
1028
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1033
1029
  }
1034
1030
  value(t) {
1035
- const e = this.bb.__offset(this.bb_pos, 10);
1036
- return e ? this.bb.readUint8(this.bb.__vector(this.bb_pos + e) + t) : 0;
1031
+ const s = this.bb.__offset(this.bb_pos, 10);
1032
+ return s ? this.bb.readUint8(this.bb.__vector(this.bb_pos + s) + t) : 0;
1037
1033
  }
1038
1034
  valueLength() {
1039
1035
  const t = this.bb.__offset(this.bb_pos, 10);
@@ -1046,52 +1042,52 @@ class q {
1046
1042
  static startTaggedSignalNotify(t) {
1047
1043
  t.startObject(4);
1048
1044
  }
1049
- static addFrameId(t, e) {
1050
- t.addFieldOffset(0, e, 0);
1045
+ static addFrameId(t, s) {
1046
+ t.addFieldOffset(0, s, 0);
1051
1047
  }
1052
- static addTag(t, e) {
1053
- t.addFieldOffset(1, e, 0);
1048
+ static addTag(t, s) {
1049
+ t.addFieldOffset(1, s, 0);
1054
1050
  }
1055
- static addSignalId(t, e) {
1056
- t.addFieldOffset(2, e, 0);
1051
+ static addSignalId(t, s) {
1052
+ t.addFieldOffset(2, s, 0);
1057
1053
  }
1058
- static addValue(t, e) {
1059
- t.addFieldOffset(3, e, 0);
1054
+ static addValue(t, s) {
1055
+ t.addFieldOffset(3, s, 0);
1060
1056
  }
1061
- static createValueVector(t, e) {
1062
- t.startVector(1, e.length, 1);
1063
- for (let s = e.length - 1; s >= 0; s--)
1064
- t.addInt8(e[s]);
1057
+ static createValueVector(t, s) {
1058
+ t.startVector(1, s.length, 1);
1059
+ for (let e = s.length - 1; e >= 0; e--)
1060
+ t.addInt8(s[e]);
1065
1061
  return t.endVector();
1066
1062
  }
1067
- static startValueVector(t, e) {
1068
- t.startVector(1, e, 1);
1063
+ static startValueVector(t, s) {
1064
+ t.startVector(1, s, 1);
1069
1065
  }
1070
1066
  static endTaggedSignalNotify(t) {
1071
- const e = t.endObject();
1072
- return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
1067
+ const s = t.endObject();
1068
+ return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), s;
1073
1069
  }
1074
- static createTaggedSignalNotify(t, e, s, n, r) {
1075
- return q.startTaggedSignalNotify(t), q.addFrameId(t, e), q.addTag(t, s), q.addSignalId(t, n), q.addValue(t, r), q.endTaggedSignalNotify(t);
1070
+ static createTaggedSignalNotify(t, s, e, n, r) {
1071
+ return q.startTaggedSignalNotify(t), q.addFrameId(t, s), q.addTag(t, e), q.addSignalId(t, n), q.addValue(t, r), q.endTaggedSignalNotify(t);
1076
1072
  }
1077
1073
  unpack() {
1078
- return new Rt(this.frameId(), this.tag(), this.signalId(), this.bb.createScalarList(this.value.bind(this), this.valueLength()));
1074
+ return new Tt(this.frameId(), this.tag(), this.signalId(), this.bb.createScalarList(this.value.bind(this), this.valueLength()));
1079
1075
  }
1080
1076
  unpackTo(t) {
1081
1077
  t.frameId = this.frameId(), t.tag = this.tag(), t.signalId = this.signalId(), t.value = this.bb.createScalarList(this.value.bind(this), this.valueLength());
1082
1078
  }
1083
1079
  }
1084
- class Rt {
1085
- constructor(t = null, e = null, s = null, n = []) {
1080
+ class Tt {
1081
+ constructor(t = null, s = null, e = null, n = []) {
1086
1082
  a(this, "frameId");
1087
1083
  a(this, "tag");
1088
1084
  a(this, "signalId");
1089
1085
  a(this, "value");
1090
- this.frameId = t, this.tag = e, this.signalId = s, this.value = n;
1086
+ this.frameId = t, this.tag = s, this.signalId = e, this.value = n;
1091
1087
  }
1092
1088
  pack(t) {
1093
- const e = this.frameId !== null ? t.createString(this.frameId) : 0, s = this.tag !== null ? t.createString(this.tag) : 0, n = this.signalId !== null ? t.createString(this.signalId) : 0, r = q.createValueVector(t, this.value);
1094
- return q.createTaggedSignalNotify(t, e, s, n, r);
1089
+ const s = this.frameId !== null ? t.createString(this.frameId) : 0, e = this.tag !== null ? t.createString(this.tag) : 0, n = this.signalId !== null ? t.createString(this.signalId) : 0, r = q.createValueVector(t, this.value);
1090
+ return q.createTaggedSignalNotify(t, s, e, n, r);
1095
1091
  }
1096
1092
  }
1097
1093
  class W {
@@ -1099,82 +1095,82 @@ class W {
1099
1095
  a(this, "bb", null);
1100
1096
  a(this, "bb_pos", 0);
1101
1097
  }
1102
- __init(t, e) {
1103
- return this.bb_pos = t, this.bb = e, this;
1098
+ __init(t, s) {
1099
+ return this.bb_pos = t, this.bb = s, this;
1104
1100
  }
1105
- static getRootAsTaggedSignalRequest(t, e) {
1106
- return (e || new W()).__init(t.readInt32(t.position()) + t.position(), t);
1101
+ static getRootAsTaggedSignalRequest(t, s) {
1102
+ return (s || new W()).__init(t.readInt32(t.position()) + t.position(), t);
1107
1103
  }
1108
- static getSizePrefixedRootAsTaggedSignalRequest(t, e) {
1109
- return t.setPosition(t.position() + f), (e || new W()).__init(t.readInt32(t.position()) + t.position(), t);
1104
+ static getSizePrefixedRootAsTaggedSignalRequest(t, s) {
1105
+ return t.setPosition(t.position() + f), (s || new W()).__init(t.readInt32(t.position()) + t.position(), t);
1110
1106
  }
1111
1107
  id(t) {
1112
- const e = this.bb.__offset(this.bb_pos, 4);
1113
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1108
+ const s = this.bb.__offset(this.bb_pos, 4);
1109
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1114
1110
  }
1115
1111
  tag(t) {
1116
- const e = this.bb.__offset(this.bb_pos, 6);
1117
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1112
+ const s = this.bb.__offset(this.bb_pos, 6);
1113
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1118
1114
  }
1119
1115
  static startTaggedSignalRequest(t) {
1120
1116
  t.startObject(2);
1121
1117
  }
1122
- static addId(t, e) {
1123
- t.addFieldOffset(0, e, 0);
1118
+ static addId(t, s) {
1119
+ t.addFieldOffset(0, s, 0);
1124
1120
  }
1125
- static addTag(t, e) {
1126
- t.addFieldOffset(1, e, 0);
1121
+ static addTag(t, s) {
1122
+ t.addFieldOffset(1, s, 0);
1127
1123
  }
1128
1124
  static endTaggedSignalRequest(t) {
1129
- const e = t.endObject();
1130
- return t.requiredField(e, 4), t.requiredField(e, 6), e;
1125
+ const s = t.endObject();
1126
+ return t.requiredField(s, 4), t.requiredField(s, 6), s;
1131
1127
  }
1132
- static createTaggedSignalRequest(t, e, s) {
1133
- return W.startTaggedSignalRequest(t), W.addId(t, e), W.addTag(t, s), W.endTaggedSignalRequest(t);
1128
+ static createTaggedSignalRequest(t, s, e) {
1129
+ return W.startTaggedSignalRequest(t), W.addId(t, s), W.addTag(t, e), W.endTaggedSignalRequest(t);
1134
1130
  }
1135
1131
  unpack() {
1136
- return new Tt(this.id(), this.tag());
1132
+ return new kt(this.id(), this.tag());
1137
1133
  }
1138
1134
  unpackTo(t) {
1139
1135
  t.id = this.id(), t.tag = this.tag();
1140
1136
  }
1141
1137
  }
1142
- class Tt {
1143
- constructor(t = null, e = null) {
1138
+ class kt {
1139
+ constructor(t = null, s = null) {
1144
1140
  a(this, "id");
1145
1141
  a(this, "tag");
1146
- this.id = t, this.tag = e;
1142
+ this.id = t, this.tag = s;
1147
1143
  }
1148
1144
  pack(t) {
1149
- const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0;
1150
- return W.createTaggedSignalRequest(t, e, s);
1145
+ const s = this.id !== null ? t.createString(this.id) : 0, e = this.tag !== null ? t.createString(this.tag) : 0;
1146
+ return W.createTaggedSignalRequest(t, s, e);
1151
1147
  }
1152
1148
  }
1153
- class U {
1149
+ class O {
1154
1150
  constructor() {
1155
1151
  a(this, "bb", null);
1156
1152
  a(this, "bb_pos", 0);
1157
1153
  }
1158
- __init(t, e) {
1159
- return this.bb_pos = t, this.bb = e, this;
1154
+ __init(t, s) {
1155
+ return this.bb_pos = t, this.bb = s, this;
1160
1156
  }
1161
- static getRootAsTaggedSignalResponse(t, e) {
1162
- return (e || new U()).__init(t.readInt32(t.position()) + t.position(), t);
1157
+ static getRootAsTaggedSignalResponse(t, s) {
1158
+ return (s || new O()).__init(t.readInt32(t.position()) + t.position(), t);
1163
1159
  }
1164
- static getSizePrefixedRootAsTaggedSignalResponse(t, e) {
1165
- return t.setPosition(t.position() + f), (e || new U()).__init(t.readInt32(t.position()) + t.position(), t);
1160
+ static getSizePrefixedRootAsTaggedSignalResponse(t, s) {
1161
+ return t.setPosition(t.position() + f), (s || new O()).__init(t.readInt32(t.position()) + t.position(), t);
1166
1162
  }
1167
1163
  id(t) {
1168
- const e = this.bb.__offset(this.bb_pos, 4);
1169
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1164
+ const s = this.bb.__offset(this.bb_pos, 4);
1165
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1170
1166
  }
1171
1167
  tag(t) {
1172
- const e = this.bb.__offset(this.bb_pos, 6);
1173
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1168
+ const s = this.bb.__offset(this.bb_pos, 6);
1169
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1174
1170
  }
1175
- signals(t, e) {
1176
- const s = this.bb.__offset(this.bb_pos, 8);
1177
- return s ? (e || new x()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
1171
+ signals(t, s) {
1172
+ const e = this.bb.__offset(this.bb_pos, 8);
1173
+ return e ? (s || new N()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
1178
1174
  }
1179
1175
  signalsLength() {
1180
1176
  const t = this.bb.__offset(this.bb_pos, 8);
@@ -1183,127 +1179,127 @@ class U {
1183
1179
  static startTaggedSignalResponse(t) {
1184
1180
  t.startObject(3);
1185
1181
  }
1186
- static addId(t, e) {
1187
- t.addFieldOffset(0, e, 0);
1182
+ static addId(t, s) {
1183
+ t.addFieldOffset(0, s, 0);
1188
1184
  }
1189
- static addTag(t, e) {
1190
- t.addFieldOffset(1, e, 0);
1185
+ static addTag(t, s) {
1186
+ t.addFieldOffset(1, s, 0);
1191
1187
  }
1192
- static addSignals(t, e) {
1193
- t.addFieldOffset(2, e, 0);
1188
+ static addSignals(t, s) {
1189
+ t.addFieldOffset(2, s, 0);
1194
1190
  }
1195
- static createSignalsVector(t, e) {
1196
- t.startVector(4, e.length, 4);
1197
- for (let s = e.length - 1; s >= 0; s--)
1198
- t.addOffset(e[s]);
1191
+ static createSignalsVector(t, s) {
1192
+ t.startVector(4, s.length, 4);
1193
+ for (let e = s.length - 1; e >= 0; e--)
1194
+ t.addOffset(s[e]);
1199
1195
  return t.endVector();
1200
1196
  }
1201
- static startSignalsVector(t, e) {
1202
- t.startVector(4, e, 4);
1197
+ static startSignalsVector(t, s) {
1198
+ t.startVector(4, s, 4);
1203
1199
  }
1204
1200
  static endTaggedSignalResponse(t) {
1205
- const e = t.endObject();
1206
- return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
1201
+ const s = t.endObject();
1202
+ return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), s;
1207
1203
  }
1208
- static createTaggedSignalResponse(t, e, s, n) {
1209
- return U.startTaggedSignalResponse(t), U.addId(t, e), U.addTag(t, s), U.addSignals(t, n), U.endTaggedSignalResponse(t);
1204
+ static createTaggedSignalResponse(t, s, e, n) {
1205
+ return O.startTaggedSignalResponse(t), O.addId(t, s), O.addTag(t, e), O.addSignals(t, n), O.endTaggedSignalResponse(t);
1210
1206
  }
1211
1207
  unpack() {
1212
- return new $t(this.id(), this.tag(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
1208
+ return new Xt(this.id(), this.tag(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
1213
1209
  }
1214
1210
  unpackTo(t) {
1215
1211
  t.id = this.id(), t.tag = this.tag(), t.signals = this.bb.createObjList(this.signals.bind(this), this.signalsLength());
1216
1212
  }
1217
1213
  }
1218
- class $t {
1219
- constructor(t = null, e = null, s = []) {
1214
+ class Xt {
1215
+ constructor(t = null, s = null, e = []) {
1220
1216
  a(this, "id");
1221
1217
  a(this, "tag");
1222
1218
  a(this, "signals");
1223
- this.id = t, this.tag = e, this.signals = s;
1219
+ this.id = t, this.tag = s, this.signals = e;
1224
1220
  }
1225
1221
  pack(t) {
1226
- const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0, n = U.createSignalsVector(t, t.createObjectOffsetList(this.signals));
1227
- return U.createTaggedSignalResponse(t, e, s, n);
1222
+ const s = this.id !== null ? t.createString(this.id) : 0, e = this.tag !== null ? t.createString(this.tag) : 0, n = O.createSignalsVector(t, t.createObjectOffsetList(this.signals));
1223
+ return O.createTaggedSignalResponse(t, s, e, n);
1228
1224
  }
1229
1225
  }
1230
- class H {
1226
+ class Y {
1231
1227
  constructor() {
1232
1228
  a(this, "bb", null);
1233
1229
  a(this, "bb_pos", 0);
1234
1230
  }
1235
- __init(t, e) {
1236
- return this.bb_pos = t, this.bb = e, this;
1231
+ __init(t, s) {
1232
+ return this.bb_pos = t, this.bb = s, this;
1237
1233
  }
1238
- static getRootAsTaggedValueRequest(t, e) {
1239
- return (e || new H()).__init(t.readInt32(t.position()) + t.position(), t);
1234
+ static getRootAsTaggedValueRequest(t, s) {
1235
+ return (s || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
1240
1236
  }
1241
- static getSizePrefixedRootAsTaggedValueRequest(t, e) {
1242
- return t.setPosition(t.position() + f), (e || new H()).__init(t.readInt32(t.position()) + t.position(), t);
1237
+ static getSizePrefixedRootAsTaggedValueRequest(t, s) {
1238
+ return t.setPosition(t.position() + f), (s || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
1243
1239
  }
1244
1240
  id(t) {
1245
- const e = this.bb.__offset(this.bb_pos, 4);
1246
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1241
+ const s = this.bb.__offset(this.bb_pos, 4);
1242
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1247
1243
  }
1248
1244
  tag(t) {
1249
- const e = this.bb.__offset(this.bb_pos, 6);
1250
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1245
+ const s = this.bb.__offset(this.bb_pos, 6);
1246
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1251
1247
  }
1252
1248
  static startTaggedValueRequest(t) {
1253
1249
  t.startObject(2);
1254
1250
  }
1255
- static addId(t, e) {
1256
- t.addFieldOffset(0, e, 0);
1251
+ static addId(t, s) {
1252
+ t.addFieldOffset(0, s, 0);
1257
1253
  }
1258
- static addTag(t, e) {
1259
- t.addFieldOffset(1, e, 0);
1254
+ static addTag(t, s) {
1255
+ t.addFieldOffset(1, s, 0);
1260
1256
  }
1261
1257
  static endTaggedValueRequest(t) {
1262
- const e = t.endObject();
1263
- return t.requiredField(e, 4), t.requiredField(e, 6), e;
1258
+ const s = t.endObject();
1259
+ return t.requiredField(s, 4), t.requiredField(s, 6), s;
1264
1260
  }
1265
- static createTaggedValueRequest(t, e, s) {
1266
- return H.startTaggedValueRequest(t), H.addId(t, e), H.addTag(t, s), H.endTaggedValueRequest(t);
1261
+ static createTaggedValueRequest(t, s, e) {
1262
+ return Y.startTaggedValueRequest(t), Y.addId(t, s), Y.addTag(t, e), Y.endTaggedValueRequest(t);
1267
1263
  }
1268
1264
  unpack() {
1269
- return new kt(this.id(), this.tag());
1265
+ return new yt(this.id(), this.tag());
1270
1266
  }
1271
1267
  unpackTo(t) {
1272
1268
  t.id = this.id(), t.tag = this.tag();
1273
1269
  }
1274
1270
  }
1275
- class kt {
1276
- constructor(t = null, e = null) {
1271
+ class yt {
1272
+ constructor(t = null, s = null) {
1277
1273
  a(this, "id");
1278
1274
  a(this, "tag");
1279
- this.id = t, this.tag = e;
1275
+ this.id = t, this.tag = s;
1280
1276
  }
1281
1277
  pack(t) {
1282
- const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0;
1283
- return H.createTaggedValueRequest(t, e, s);
1278
+ const s = this.id !== null ? t.createString(this.id) : 0, e = this.tag !== null ? t.createString(this.tag) : 0;
1279
+ return Y.createTaggedValueRequest(t, s, e);
1284
1280
  }
1285
1281
  }
1286
- class v {
1282
+ class S {
1287
1283
  constructor() {
1288
1284
  a(this, "bb", null);
1289
1285
  a(this, "bb_pos", 0);
1290
1286
  }
1291
- __init(t, e) {
1292
- return this.bb_pos = t, this.bb = e, this;
1287
+ __init(t, s) {
1288
+ return this.bb_pos = t, this.bb = s, this;
1293
1289
  }
1294
- static getRootAsValue(t, e) {
1295
- return (e || new v()).__init(t.readInt32(t.position()) + t.position(), t);
1290
+ static getRootAsValue(t, s) {
1291
+ return (s || new S()).__init(t.readInt32(t.position()) + t.position(), t);
1296
1292
  }
1297
- static getSizePrefixedRootAsValue(t, e) {
1298
- return t.setPosition(t.position() + f), (e || new v()).__init(t.readInt32(t.position()) + t.position(), t);
1293
+ static getSizePrefixedRootAsValue(t, s) {
1294
+ return t.setPosition(t.position() + f), (s || new S()).__init(t.readInt32(t.position()) + t.position(), t);
1299
1295
  }
1300
1296
  id(t) {
1301
- const e = this.bb.__offset(this.bb_pos, 4);
1302
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1297
+ const s = this.bb.__offset(this.bb_pos, 4);
1298
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1303
1299
  }
1304
1300
  value(t) {
1305
- const e = this.bb.__offset(this.bb_pos, 6);
1306
- return e ? this.bb.readUint8(this.bb.__vector(this.bb_pos + e) + t) : 0;
1301
+ const s = this.bb.__offset(this.bb_pos, 6);
1302
+ return s ? this.bb.readUint8(this.bb.__vector(this.bb_pos + s) + t) : 0;
1307
1303
  }
1308
1304
  valueLength() {
1309
1305
  const t = this.bb.__offset(this.bb_pos, 6);
@@ -1316,71 +1312,71 @@ class v {
1316
1312
  static startValue(t) {
1317
1313
  t.startObject(2);
1318
1314
  }
1319
- static addId(t, e) {
1320
- t.addFieldOffset(0, e, 0);
1315
+ static addId(t, s) {
1316
+ t.addFieldOffset(0, s, 0);
1321
1317
  }
1322
- static addValue(t, e) {
1323
- t.addFieldOffset(1, e, 0);
1318
+ static addValue(t, s) {
1319
+ t.addFieldOffset(1, s, 0);
1324
1320
  }
1325
- static createValueVector(t, e) {
1326
- t.startVector(1, e.length, 1);
1327
- for (let s = e.length - 1; s >= 0; s--)
1328
- t.addInt8(e[s]);
1321
+ static createValueVector(t, s) {
1322
+ t.startVector(1, s.length, 1);
1323
+ for (let e = s.length - 1; e >= 0; e--)
1324
+ t.addInt8(s[e]);
1329
1325
  return t.endVector();
1330
1326
  }
1331
- static startValueVector(t, e) {
1332
- t.startVector(1, e, 1);
1327
+ static startValueVector(t, s) {
1328
+ t.startVector(1, s, 1);
1333
1329
  }
1334
1330
  static endValue(t) {
1335
- const e = t.endObject();
1336
- return t.requiredField(e, 4), t.requiredField(e, 6), e;
1331
+ const s = t.endObject();
1332
+ return t.requiredField(s, 4), t.requiredField(s, 6), s;
1337
1333
  }
1338
- static createValue(t, e, s) {
1339
- return v.startValue(t), v.addId(t, e), v.addValue(t, s), v.endValue(t);
1334
+ static createValue(t, s, e) {
1335
+ return S.startValue(t), S.addId(t, s), S.addValue(t, e), S.endValue(t);
1340
1336
  }
1341
1337
  unpack() {
1342
- return new At(this.id(), this.bb.createScalarList(this.value.bind(this), this.valueLength()));
1338
+ return new Lt(this.id(), this.bb.createScalarList(this.value.bind(this), this.valueLength()));
1343
1339
  }
1344
1340
  unpackTo(t) {
1345
1341
  t.id = this.id(), t.value = this.bb.createScalarList(this.value.bind(this), this.valueLength());
1346
1342
  }
1347
1343
  }
1348
- class At {
1349
- constructor(t = null, e = []) {
1344
+ class Lt {
1345
+ constructor(t = null, s = []) {
1350
1346
  a(this, "id");
1351
1347
  a(this, "value");
1352
- this.id = t, this.value = e;
1348
+ this.id = t, this.value = s;
1353
1349
  }
1354
1350
  pack(t) {
1355
- const e = this.id !== null ? t.createString(this.id) : 0, s = v.createValueVector(t, this.value);
1356
- return v.createValue(t, e, s);
1351
+ const s = this.id !== null ? t.createString(this.id) : 0, e = S.createValueVector(t, this.value);
1352
+ return S.createValue(t, s, e);
1357
1353
  }
1358
1354
  }
1359
- class V {
1355
+ class U {
1360
1356
  constructor() {
1361
1357
  a(this, "bb", null);
1362
1358
  a(this, "bb_pos", 0);
1363
1359
  }
1364
- __init(t, e) {
1365
- return this.bb_pos = t, this.bb = e, this;
1360
+ __init(t, s) {
1361
+ return this.bb_pos = t, this.bb = s, this;
1366
1362
  }
1367
- static getRootAsTaggedValueResponse(t, e) {
1368
- return (e || new V()).__init(t.readInt32(t.position()) + t.position(), t);
1363
+ static getRootAsTaggedValueResponse(t, s) {
1364
+ return (s || new U()).__init(t.readInt32(t.position()) + t.position(), t);
1369
1365
  }
1370
- static getSizePrefixedRootAsTaggedValueResponse(t, e) {
1371
- return t.setPosition(t.position() + f), (e || new V()).__init(t.readInt32(t.position()) + t.position(), t);
1366
+ static getSizePrefixedRootAsTaggedValueResponse(t, s) {
1367
+ return t.setPosition(t.position() + f), (s || new U()).__init(t.readInt32(t.position()) + t.position(), t);
1372
1368
  }
1373
1369
  id(t) {
1374
- const e = this.bb.__offset(this.bb_pos, 4);
1375
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1370
+ const s = this.bb.__offset(this.bb_pos, 4);
1371
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1376
1372
  }
1377
1373
  tag(t) {
1378
- const e = this.bb.__offset(this.bb_pos, 6);
1379
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1374
+ const s = this.bb.__offset(this.bb_pos, 6);
1375
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1380
1376
  }
1381
- values(t, e) {
1382
- const s = this.bb.__offset(this.bb_pos, 8);
1383
- return s ? (e || new v()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
1377
+ values(t, s) {
1378
+ const e = this.bb.__offset(this.bb_pos, 8);
1379
+ return e ? (s || new S()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
1384
1380
  }
1385
1381
  valuesLength() {
1386
1382
  const t = this.bb.__offset(this.bb_pos, 8);
@@ -1389,109 +1385,109 @@ class V {
1389
1385
  static startTaggedValueResponse(t) {
1390
1386
  t.startObject(3);
1391
1387
  }
1392
- static addId(t, e) {
1393
- t.addFieldOffset(0, e, 0);
1388
+ static addId(t, s) {
1389
+ t.addFieldOffset(0, s, 0);
1394
1390
  }
1395
- static addTag(t, e) {
1396
- t.addFieldOffset(1, e, 0);
1391
+ static addTag(t, s) {
1392
+ t.addFieldOffset(1, s, 0);
1397
1393
  }
1398
- static addValues(t, e) {
1399
- t.addFieldOffset(2, e, 0);
1394
+ static addValues(t, s) {
1395
+ t.addFieldOffset(2, s, 0);
1400
1396
  }
1401
- static createValuesVector(t, e) {
1402
- t.startVector(4, e.length, 4);
1403
- for (let s = e.length - 1; s >= 0; s--)
1404
- t.addOffset(e[s]);
1397
+ static createValuesVector(t, s) {
1398
+ t.startVector(4, s.length, 4);
1399
+ for (let e = s.length - 1; e >= 0; e--)
1400
+ t.addOffset(s[e]);
1405
1401
  return t.endVector();
1406
1402
  }
1407
- static startValuesVector(t, e) {
1408
- t.startVector(4, e, 4);
1403
+ static startValuesVector(t, s) {
1404
+ t.startVector(4, s, 4);
1409
1405
  }
1410
1406
  static endTaggedValueResponse(t) {
1411
- const e = t.endObject();
1412
- return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
1407
+ const s = t.endObject();
1408
+ return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), s;
1413
1409
  }
1414
- static createTaggedValueResponse(t, e, s, n) {
1415
- return V.startTaggedValueResponse(t), V.addId(t, e), V.addTag(t, s), V.addValues(t, n), V.endTaggedValueResponse(t);
1410
+ static createTaggedValueResponse(t, s, e, n) {
1411
+ return U.startTaggedValueResponse(t), U.addId(t, s), U.addTag(t, e), U.addValues(t, n), U.endTaggedValueResponse(t);
1416
1412
  }
1417
1413
  unpack() {
1418
- return new Jt(this.id(), this.tag(), this.bb.createObjList(this.values.bind(this), this.valuesLength()));
1414
+ return new $t(this.id(), this.tag(), this.bb.createObjList(this.values.bind(this), this.valuesLength()));
1419
1415
  }
1420
1416
  unpackTo(t) {
1421
1417
  t.id = this.id(), t.tag = this.tag(), t.values = this.bb.createObjList(this.values.bind(this), this.valuesLength());
1422
1418
  }
1423
1419
  }
1424
- class Jt {
1425
- constructor(t = null, e = null, s = []) {
1420
+ class $t {
1421
+ constructor(t = null, s = null, e = []) {
1426
1422
  a(this, "id");
1427
1423
  a(this, "tag");
1428
1424
  a(this, "values");
1429
- this.id = t, this.tag = e, this.values = s;
1425
+ this.id = t, this.tag = s, this.values = e;
1430
1426
  }
1431
1427
  pack(t) {
1432
- const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0, n = V.createValuesVector(t, t.createObjectOffsetList(this.values));
1433
- return V.createTaggedValueResponse(t, e, s, n);
1428
+ const s = this.id !== null ? t.createString(this.id) : 0, e = this.tag !== null ? t.createString(this.tag) : 0, n = U.createValuesVector(t, t.createObjectOffsetList(this.values));
1429
+ return U.createTaggedValueResponse(t, s, e, n);
1434
1430
  }
1435
1431
  }
1436
- class N {
1432
+ class B {
1437
1433
  constructor() {
1438
1434
  a(this, "bb", null);
1439
1435
  a(this, "bb_pos", 0);
1440
1436
  }
1441
- __init(t, e) {
1442
- return this.bb_pos = t, this.bb = e, this;
1437
+ __init(t, s) {
1438
+ return this.bb_pos = t, this.bb = s, this;
1443
1439
  }
1444
- static getRootAsTaggedValueUpdate(t, e) {
1445
- return (e || new N()).__init(t.readInt32(t.position()) + t.position(), t);
1440
+ static getRootAsTaggedValueUpdate(t, s) {
1441
+ return (s || new B()).__init(t.readInt32(t.position()) + t.position(), t);
1446
1442
  }
1447
- static getSizePrefixedRootAsTaggedValueUpdate(t, e) {
1448
- return t.setPosition(t.position() + f), (e || new N()).__init(t.readInt32(t.position()) + t.position(), t);
1443
+ static getSizePrefixedRootAsTaggedValueUpdate(t, s) {
1444
+ return t.setPosition(t.position() + f), (s || new B()).__init(t.readInt32(t.position()) + t.position(), t);
1449
1445
  }
1450
1446
  id(t) {
1451
- const e = this.bb.__offset(this.bb_pos, 4);
1452
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1447
+ const s = this.bb.__offset(this.bb_pos, 4);
1448
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1453
1449
  }
1454
1450
  tag(t) {
1455
- const e = this.bb.__offset(this.bb_pos, 6);
1456
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1451
+ const s = this.bb.__offset(this.bb_pos, 6);
1452
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1457
1453
  }
1458
1454
  value(t) {
1459
- const e = this.bb.__offset(this.bb_pos, 8);
1460
- return e ? (t || new v()).__init(this.bb.__indirect(this.bb_pos + e), this.bb) : null;
1455
+ const s = this.bb.__offset(this.bb_pos, 8);
1456
+ return s ? (t || new S()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
1461
1457
  }
1462
1458
  static startTaggedValueUpdate(t) {
1463
1459
  t.startObject(3);
1464
1460
  }
1465
- static addId(t, e) {
1466
- t.addFieldOffset(0, e, 0);
1461
+ static addId(t, s) {
1462
+ t.addFieldOffset(0, s, 0);
1467
1463
  }
1468
- static addTag(t, e) {
1469
- t.addFieldOffset(1, e, 0);
1464
+ static addTag(t, s) {
1465
+ t.addFieldOffset(1, s, 0);
1470
1466
  }
1471
- static addValue(t, e) {
1472
- t.addFieldOffset(2, e, 0);
1467
+ static addValue(t, s) {
1468
+ t.addFieldOffset(2, s, 0);
1473
1469
  }
1474
1470
  static endTaggedValueUpdate(t) {
1475
- const e = t.endObject();
1476
- return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
1471
+ const s = t.endObject();
1472
+ return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), s;
1477
1473
  }
1478
1474
  unpack() {
1479
- return new yt(this.id(), this.tag(), this.value() !== null ? this.value().unpack() : null);
1475
+ return new At(this.id(), this.tag(), this.value() !== null ? this.value().unpack() : null);
1480
1476
  }
1481
1477
  unpackTo(t) {
1482
1478
  t.id = this.id(), t.tag = this.tag(), t.value = this.value() !== null ? this.value().unpack() : null;
1483
1479
  }
1484
1480
  }
1485
- class yt {
1486
- constructor(t = null, e = null, s = null) {
1481
+ class At {
1482
+ constructor(t = null, s = null, e = null) {
1487
1483
  a(this, "id");
1488
1484
  a(this, "tag");
1489
1485
  a(this, "value");
1490
- this.id = t, this.tag = e, this.value = s;
1486
+ this.id = t, this.tag = s, this.value = e;
1491
1487
  }
1492
1488
  pack(t) {
1493
- const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0, n = this.value !== null ? this.value.pack(t) : 0;
1494
- return N.startTaggedValueUpdate(t), N.addId(t, e), N.addTag(t, s), N.addValue(t, n), N.endTaggedValueUpdate(t);
1489
+ const s = this.id !== null ? t.createString(this.id) : 0, e = this.tag !== null ? t.createString(this.tag) : 0, n = this.value !== null ? this.value.pack(t) : 0;
1490
+ return B.startTaggedValueUpdate(t), B.addId(t, s), B.addTag(t, e), B.addValue(t, n), B.endTaggedValueUpdate(t);
1495
1491
  }
1496
1492
  }
1497
1493
  class X {
@@ -1499,47 +1495,47 @@ class X {
1499
1495
  a(this, "bb", null);
1500
1496
  a(this, "bb_pos", 0);
1501
1497
  }
1502
- __init(t, e) {
1503
- return this.bb_pos = t, this.bb = e, this;
1498
+ __init(t, s) {
1499
+ return this.bb_pos = t, this.bb = s, this;
1504
1500
  }
1505
- static getRootAsUniqueFrameLoaded(t, e) {
1506
- return (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
1501
+ static getRootAsUniqueFrameLoaded(t, s) {
1502
+ return (s || new X()).__init(t.readInt32(t.position()) + t.position(), t);
1507
1503
  }
1508
- static getSizePrefixedRootAsUniqueFrameLoaded(t, e) {
1509
- return t.setPosition(t.position() + f), (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
1504
+ static getSizePrefixedRootAsUniqueFrameLoaded(t, s) {
1505
+ return t.setPosition(t.position() + f), (s || new X()).__init(t.readInt32(t.position()) + t.position(), t);
1510
1506
  }
1511
1507
  id(t) {
1512
- const e = this.bb.__offset(this.bb_pos, 4);
1513
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1508
+ const s = this.bb.__offset(this.bb_pos, 4);
1509
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1514
1510
  }
1515
1511
  static startUniqueFrameLoaded(t) {
1516
1512
  t.startObject(1);
1517
1513
  }
1518
- static addId(t, e) {
1519
- t.addFieldOffset(0, e, 0);
1514
+ static addId(t, s) {
1515
+ t.addFieldOffset(0, s, 0);
1520
1516
  }
1521
1517
  static endUniqueFrameLoaded(t) {
1522
- const e = t.endObject();
1523
- return t.requiredField(e, 4), e;
1518
+ const s = t.endObject();
1519
+ return t.requiredField(s, 4), s;
1524
1520
  }
1525
- static createUniqueFrameLoaded(t, e) {
1526
- return X.startUniqueFrameLoaded(t), X.addId(t, e), X.endUniqueFrameLoaded(t);
1521
+ static createUniqueFrameLoaded(t, s) {
1522
+ return X.startUniqueFrameLoaded(t), X.addId(t, s), X.endUniqueFrameLoaded(t);
1527
1523
  }
1528
1524
  unpack() {
1529
- return new It(this.id());
1525
+ return new gt(this.id());
1530
1526
  }
1531
1527
  unpackTo(t) {
1532
1528
  t.id = this.id();
1533
1529
  }
1534
1530
  }
1535
- class It {
1531
+ class gt {
1536
1532
  constructor(t = null) {
1537
1533
  a(this, "id");
1538
1534
  this.id = t;
1539
1535
  }
1540
1536
  pack(t) {
1541
- const e = this.id !== null ? t.createString(this.id) : 0;
1542
- return X.createUniqueFrameLoaded(t, e);
1537
+ const s = this.id !== null ? t.createString(this.id) : 0;
1538
+ return X.createUniqueFrameLoaded(t, s);
1543
1539
  }
1544
1540
  }
1545
1541
  class $ {
@@ -1547,74 +1543,74 @@ class $ {
1547
1543
  a(this, "bb", null);
1548
1544
  a(this, "bb_pos", 0);
1549
1545
  }
1550
- __init(t, e) {
1551
- return this.bb_pos = t, this.bb = e, this;
1546
+ __init(t, s) {
1547
+ return this.bb_pos = t, this.bb = s, this;
1552
1548
  }
1553
- static getRootAsUniqueFrameSubscribe(t, e) {
1554
- return (e || new $()).__init(t.readInt32(t.position()) + t.position(), t);
1549
+ static getRootAsUniqueFrameSubscribe(t, s) {
1550
+ return (s || new $()).__init(t.readInt32(t.position()) + t.position(), t);
1555
1551
  }
1556
- static getSizePrefixedRootAsUniqueFrameSubscribe(t, e) {
1557
- return t.setPosition(t.position() + f), (e || new $()).__init(t.readInt32(t.position()) + t.position(), t);
1552
+ static getSizePrefixedRootAsUniqueFrameSubscribe(t, s) {
1553
+ return t.setPosition(t.position() + f), (s || new $()).__init(t.readInt32(t.position()) + t.position(), t);
1558
1554
  }
1559
1555
  id(t) {
1560
- const e = this.bb.__offset(this.bb_pos, 4);
1561
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1556
+ const s = this.bb.__offset(this.bb_pos, 4);
1557
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1562
1558
  }
1563
1559
  static startUniqueFrameSubscribe(t) {
1564
1560
  t.startObject(1);
1565
1561
  }
1566
- static addId(t, e) {
1567
- t.addFieldOffset(0, e, 0);
1562
+ static addId(t, s) {
1563
+ t.addFieldOffset(0, s, 0);
1568
1564
  }
1569
1565
  static endUniqueFrameSubscribe(t) {
1570
- const e = t.endObject();
1571
- return t.requiredField(e, 4), e;
1566
+ const s = t.endObject();
1567
+ return t.requiredField(s, 4), s;
1572
1568
  }
1573
- static createUniqueFrameSubscribe(t, e) {
1574
- return $.startUniqueFrameSubscribe(t), $.addId(t, e), $.endUniqueFrameSubscribe(t);
1569
+ static createUniqueFrameSubscribe(t, s) {
1570
+ return $.startUniqueFrameSubscribe(t), $.addId(t, s), $.endUniqueFrameSubscribe(t);
1575
1571
  }
1576
1572
  unpack() {
1577
- return new wt(this.id());
1573
+ return new It(this.id());
1578
1574
  }
1579
1575
  unpackTo(t) {
1580
1576
  t.id = this.id();
1581
1577
  }
1582
1578
  }
1583
- class wt {
1579
+ class It {
1584
1580
  constructor(t = null) {
1585
1581
  a(this, "id");
1586
1582
  this.id = t;
1587
1583
  }
1588
1584
  pack(t) {
1589
- const e = this.id !== null ? t.createString(this.id) : 0;
1590
- return $.createUniqueFrameSubscribe(t, e);
1585
+ const s = this.id !== null ? t.createString(this.id) : 0;
1586
+ return $.createUniqueFrameSubscribe(t, s);
1591
1587
  }
1592
1588
  }
1593
- class R {
1589
+ class T {
1594
1590
  constructor() {
1595
1591
  a(this, "bb", null);
1596
1592
  a(this, "bb_pos", 0);
1597
1593
  }
1598
- __init(t, e) {
1599
- return this.bb_pos = t, this.bb = e, this;
1594
+ __init(t, s) {
1595
+ return this.bb_pos = t, this.bb = s, this;
1600
1596
  }
1601
- static getRootAsUniqueSignalNotify(t, e) {
1602
- return (e || new R()).__init(t.readInt32(t.position()) + t.position(), t);
1597
+ static getRootAsUniqueSignalNotify(t, s) {
1598
+ return (s || new T()).__init(t.readInt32(t.position()) + t.position(), t);
1603
1599
  }
1604
- static getSizePrefixedRootAsUniqueSignalNotify(t, e) {
1605
- return t.setPosition(t.position() + f), (e || new R()).__init(t.readInt32(t.position()) + t.position(), t);
1600
+ static getSizePrefixedRootAsUniqueSignalNotify(t, s) {
1601
+ return t.setPosition(t.position() + f), (s || new T()).__init(t.readInt32(t.position()) + t.position(), t);
1606
1602
  }
1607
1603
  frameId(t) {
1608
- const e = this.bb.__offset(this.bb_pos, 4);
1609
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1604
+ const s = this.bb.__offset(this.bb_pos, 4);
1605
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1610
1606
  }
1611
1607
  signalId(t) {
1612
- const e = this.bb.__offset(this.bb_pos, 6);
1613
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1608
+ const s = this.bb.__offset(this.bb_pos, 6);
1609
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1614
1610
  }
1615
1611
  value(t) {
1616
- const e = this.bb.__offset(this.bb_pos, 8);
1617
- return e ? this.bb.readUint8(this.bb.__vector(this.bb_pos + e) + t) : 0;
1612
+ const s = this.bb.__offset(this.bb_pos, 8);
1613
+ return s ? this.bb.readUint8(this.bb.__vector(this.bb_pos + s) + t) : 0;
1618
1614
  }
1619
1615
  valueLength() {
1620
1616
  const t = this.bb.__offset(this.bb_pos, 8);
@@ -1627,48 +1623,48 @@ class R {
1627
1623
  static startUniqueSignalNotify(t) {
1628
1624
  t.startObject(3);
1629
1625
  }
1630
- static addFrameId(t, e) {
1631
- t.addFieldOffset(0, e, 0);
1626
+ static addFrameId(t, s) {
1627
+ t.addFieldOffset(0, s, 0);
1632
1628
  }
1633
- static addSignalId(t, e) {
1634
- t.addFieldOffset(1, e, 0);
1629
+ static addSignalId(t, s) {
1630
+ t.addFieldOffset(1, s, 0);
1635
1631
  }
1636
- static addValue(t, e) {
1637
- t.addFieldOffset(2, e, 0);
1632
+ static addValue(t, s) {
1633
+ t.addFieldOffset(2, s, 0);
1638
1634
  }
1639
- static createValueVector(t, e) {
1640
- t.startVector(1, e.length, 1);
1641
- for (let s = e.length - 1; s >= 0; s--)
1642
- t.addInt8(e[s]);
1635
+ static createValueVector(t, s) {
1636
+ t.startVector(1, s.length, 1);
1637
+ for (let e = s.length - 1; e >= 0; e--)
1638
+ t.addInt8(s[e]);
1643
1639
  return t.endVector();
1644
1640
  }
1645
- static startValueVector(t, e) {
1646
- t.startVector(1, e, 1);
1641
+ static startValueVector(t, s) {
1642
+ t.startVector(1, s, 1);
1647
1643
  }
1648
1644
  static endUniqueSignalNotify(t) {
1649
- const e = t.endObject();
1650
- return t.requiredField(e, 4), t.requiredField(e, 6), e;
1645
+ const s = t.endObject();
1646
+ return t.requiredField(s, 4), t.requiredField(s, 6), s;
1651
1647
  }
1652
- static createUniqueSignalNotify(t, e, s, n) {
1653
- return R.startUniqueSignalNotify(t), R.addFrameId(t, e), R.addSignalId(t, s), R.addValue(t, n), R.endUniqueSignalNotify(t);
1648
+ static createUniqueSignalNotify(t, s, e, n) {
1649
+ return T.startUniqueSignalNotify(t), T.addFrameId(t, s), T.addSignalId(t, e), T.addValue(t, n), T.endUniqueSignalNotify(t);
1654
1650
  }
1655
1651
  unpack() {
1656
- return new Lt(this.frameId(), this.signalId(), this.bb.createScalarList(this.value.bind(this), this.valueLength()));
1652
+ return new jt(this.frameId(), this.signalId(), this.bb.createScalarList(this.value.bind(this), this.valueLength()));
1657
1653
  }
1658
1654
  unpackTo(t) {
1659
1655
  t.frameId = this.frameId(), t.signalId = this.signalId(), t.value = this.bb.createScalarList(this.value.bind(this), this.valueLength());
1660
1656
  }
1661
1657
  }
1662
- class Lt {
1663
- constructor(t = null, e = null, s = []) {
1658
+ class jt {
1659
+ constructor(t = null, s = null, e = []) {
1664
1660
  a(this, "frameId");
1665
1661
  a(this, "signalId");
1666
1662
  a(this, "value");
1667
- this.frameId = t, this.signalId = e, this.value = s;
1663
+ this.frameId = t, this.signalId = s, this.value = e;
1668
1664
  }
1669
1665
  pack(t) {
1670
- const e = this.frameId !== null ? t.createString(this.frameId) : 0, s = this.signalId !== null ? t.createString(this.signalId) : 0, n = R.createValueVector(t, this.value);
1671
- return R.createUniqueSignalNotify(t, e, s, n);
1666
+ const s = this.frameId !== null ? t.createString(this.frameId) : 0, e = this.signalId !== null ? t.createString(this.signalId) : 0, n = T.createValueVector(t, this.value);
1667
+ return T.createUniqueSignalNotify(t, s, e, n);
1672
1668
  }
1673
1669
  }
1674
1670
  class J {
@@ -1676,31 +1672,31 @@ class J {
1676
1672
  a(this, "bb", null);
1677
1673
  a(this, "bb_pos", 0);
1678
1674
  }
1679
- __init(t, e) {
1680
- return this.bb_pos = t, this.bb = e, this;
1675
+ __init(t, s) {
1676
+ return this.bb_pos = t, this.bb = s, this;
1681
1677
  }
1682
- static getRootAsUniqueSignalRequest(t, e) {
1683
- return (e || new J()).__init(t.readInt32(t.position()) + t.position(), t);
1678
+ static getRootAsUniqueSignalRequest(t, s) {
1679
+ return (s || new J()).__init(t.readInt32(t.position()) + t.position(), t);
1684
1680
  }
1685
- static getSizePrefixedRootAsUniqueSignalRequest(t, e) {
1686
- return t.setPosition(t.position() + f), (e || new J()).__init(t.readInt32(t.position()) + t.position(), t);
1681
+ static getSizePrefixedRootAsUniqueSignalRequest(t, s) {
1682
+ return t.setPosition(t.position() + f), (s || new J()).__init(t.readInt32(t.position()) + t.position(), t);
1687
1683
  }
1688
1684
  id(t) {
1689
- const e = this.bb.__offset(this.bb_pos, 4);
1690
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1685
+ const s = this.bb.__offset(this.bb_pos, 4);
1686
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1691
1687
  }
1692
1688
  static startUniqueSignalRequest(t) {
1693
1689
  t.startObject(1);
1694
1690
  }
1695
- static addId(t, e) {
1696
- t.addFieldOffset(0, e, 0);
1691
+ static addId(t, s) {
1692
+ t.addFieldOffset(0, s, 0);
1697
1693
  }
1698
1694
  static endUniqueSignalRequest(t) {
1699
- const e = t.endObject();
1700
- return t.requiredField(e, 4), e;
1695
+ const s = t.endObject();
1696
+ return t.requiredField(s, 4), s;
1701
1697
  }
1702
- static createUniqueSignalRequest(t, e) {
1703
- return J.startUniqueSignalRequest(t), J.addId(t, e), J.endUniqueSignalRequest(t);
1698
+ static createUniqueSignalRequest(t, s) {
1699
+ return J.startUniqueSignalRequest(t), J.addId(t, s), J.endUniqueSignalRequest(t);
1704
1700
  }
1705
1701
  unpack() {
1706
1702
  return new Ct(this.id());
@@ -1715,8 +1711,8 @@ class Ct {
1715
1711
  this.id = t;
1716
1712
  }
1717
1713
  pack(t) {
1718
- const e = this.id !== null ? t.createString(this.id) : 0;
1719
- return J.createUniqueSignalRequest(t, e);
1714
+ const s = this.id !== null ? t.createString(this.id) : 0;
1715
+ return J.createUniqueSignalRequest(t, s);
1720
1716
  }
1721
1717
  }
1722
1718
  class k {
@@ -1724,22 +1720,22 @@ class k {
1724
1720
  a(this, "bb", null);
1725
1721
  a(this, "bb_pos", 0);
1726
1722
  }
1727
- __init(t, e) {
1728
- return this.bb_pos = t, this.bb = e, this;
1723
+ __init(t, s) {
1724
+ return this.bb_pos = t, this.bb = s, this;
1729
1725
  }
1730
- static getRootAsUniqueSignalResponse(t, e) {
1731
- return (e || new k()).__init(t.readInt32(t.position()) + t.position(), t);
1726
+ static getRootAsUniqueSignalResponse(t, s) {
1727
+ return (s || new k()).__init(t.readInt32(t.position()) + t.position(), t);
1732
1728
  }
1733
- static getSizePrefixedRootAsUniqueSignalResponse(t, e) {
1734
- return t.setPosition(t.position() + f), (e || new k()).__init(t.readInt32(t.position()) + t.position(), t);
1729
+ static getSizePrefixedRootAsUniqueSignalResponse(t, s) {
1730
+ return t.setPosition(t.position() + f), (s || new k()).__init(t.readInt32(t.position()) + t.position(), t);
1735
1731
  }
1736
1732
  id(t) {
1737
- const e = this.bb.__offset(this.bb_pos, 4);
1738
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1733
+ const s = this.bb.__offset(this.bb_pos, 4);
1734
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1739
1735
  }
1740
- signals(t, e) {
1741
- const s = this.bb.__offset(this.bb_pos, 6);
1742
- return s ? (e || new x()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
1736
+ signals(t, s) {
1737
+ const e = this.bb.__offset(this.bb_pos, 6);
1738
+ return e ? (s || new N()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
1743
1739
  }
1744
1740
  signalsLength() {
1745
1741
  const t = this.bb.__offset(this.bb_pos, 6);
@@ -1748,115 +1744,115 @@ class k {
1748
1744
  static startUniqueSignalResponse(t) {
1749
1745
  t.startObject(2);
1750
1746
  }
1751
- static addId(t, e) {
1752
- t.addFieldOffset(0, e, 0);
1747
+ static addId(t, s) {
1748
+ t.addFieldOffset(0, s, 0);
1753
1749
  }
1754
- static addSignals(t, e) {
1755
- t.addFieldOffset(1, e, 0);
1750
+ static addSignals(t, s) {
1751
+ t.addFieldOffset(1, s, 0);
1756
1752
  }
1757
- static createSignalsVector(t, e) {
1758
- t.startVector(4, e.length, 4);
1759
- for (let s = e.length - 1; s >= 0; s--)
1760
- t.addOffset(e[s]);
1753
+ static createSignalsVector(t, s) {
1754
+ t.startVector(4, s.length, 4);
1755
+ for (let e = s.length - 1; e >= 0; e--)
1756
+ t.addOffset(s[e]);
1761
1757
  return t.endVector();
1762
1758
  }
1763
- static startSignalsVector(t, e) {
1764
- t.startVector(4, e, 4);
1759
+ static startSignalsVector(t, s) {
1760
+ t.startVector(4, s, 4);
1765
1761
  }
1766
1762
  static endUniqueSignalResponse(t) {
1767
- const e = t.endObject();
1768
- return t.requiredField(e, 4), t.requiredField(e, 6), e;
1763
+ const s = t.endObject();
1764
+ return t.requiredField(s, 4), t.requiredField(s, 6), s;
1769
1765
  }
1770
- static createUniqueSignalResponse(t, e, s) {
1771
- return k.startUniqueSignalResponse(t), k.addId(t, e), k.addSignals(t, s), k.endUniqueSignalResponse(t);
1766
+ static createUniqueSignalResponse(t, s, e) {
1767
+ return k.startUniqueSignalResponse(t), k.addId(t, s), k.addSignals(t, e), k.endUniqueSignalResponse(t);
1772
1768
  }
1773
1769
  unpack() {
1774
- return new Kt(this.id(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
1770
+ return new Jt(this.id(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
1775
1771
  }
1776
1772
  unpackTo(t) {
1777
1773
  t.id = this.id(), t.signals = this.bb.createObjList(this.signals.bind(this), this.signalsLength());
1778
1774
  }
1779
1775
  }
1780
- class Kt {
1781
- constructor(t = null, e = []) {
1776
+ class Jt {
1777
+ constructor(t = null, s = []) {
1782
1778
  a(this, "id");
1783
1779
  a(this, "signals");
1784
- this.id = t, this.signals = e;
1780
+ this.id = t, this.signals = s;
1785
1781
  }
1786
1782
  pack(t) {
1787
- const e = this.id !== null ? t.createString(this.id) : 0, s = k.createSignalsVector(t, t.createObjectOffsetList(this.signals));
1788
- return k.createUniqueSignalResponse(t, e, s);
1783
+ const s = this.id !== null ? t.createString(this.id) : 0, e = k.createSignalsVector(t, t.createObjectOffsetList(this.signals));
1784
+ return k.createUniqueSignalResponse(t, s, e);
1789
1785
  }
1790
1786
  }
1791
- class K {
1787
+ class Q {
1792
1788
  constructor() {
1793
1789
  a(this, "bb", null);
1794
1790
  a(this, "bb_pos", 0);
1795
1791
  }
1796
- __init(t, e) {
1797
- return this.bb_pos = t, this.bb = e, this;
1792
+ __init(t, s) {
1793
+ return this.bb_pos = t, this.bb = s, this;
1798
1794
  }
1799
- static getRootAsUniqueValueRequest(t, e) {
1800
- return (e || new K()).__init(t.readInt32(t.position()) + t.position(), t);
1795
+ static getRootAsUniqueValueRequest(t, s) {
1796
+ return (s || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
1801
1797
  }
1802
- static getSizePrefixedRootAsUniqueValueRequest(t, e) {
1803
- return t.setPosition(t.position() + f), (e || new K()).__init(t.readInt32(t.position()) + t.position(), t);
1798
+ static getSizePrefixedRootAsUniqueValueRequest(t, s) {
1799
+ return t.setPosition(t.position() + f), (s || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
1804
1800
  }
1805
1801
  id(t) {
1806
- const e = this.bb.__offset(this.bb_pos, 4);
1807
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1802
+ const s = this.bb.__offset(this.bb_pos, 4);
1803
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1808
1804
  }
1809
1805
  static startUniqueValueRequest(t) {
1810
1806
  t.startObject(1);
1811
1807
  }
1812
- static addId(t, e) {
1813
- t.addFieldOffset(0, e, 0);
1808
+ static addId(t, s) {
1809
+ t.addFieldOffset(0, s, 0);
1814
1810
  }
1815
1811
  static endUniqueValueRequest(t) {
1816
- const e = t.endObject();
1817
- return t.requiredField(e, 4), e;
1812
+ const s = t.endObject();
1813
+ return t.requiredField(s, 4), s;
1818
1814
  }
1819
- static createUniqueValueRequest(t, e) {
1820
- return K.startUniqueValueRequest(t), K.addId(t, e), K.endUniqueValueRequest(t);
1815
+ static createUniqueValueRequest(t, s) {
1816
+ return Q.startUniqueValueRequest(t), Q.addId(t, s), Q.endUniqueValueRequest(t);
1821
1817
  }
1822
1818
  unpack() {
1823
- return new jt(this.id());
1819
+ return new Pt(this.id());
1824
1820
  }
1825
1821
  unpackTo(t) {
1826
1822
  t.id = this.id();
1827
1823
  }
1828
1824
  }
1829
- class jt {
1825
+ class Pt {
1830
1826
  constructor(t = null) {
1831
1827
  a(this, "id");
1832
1828
  this.id = t;
1833
1829
  }
1834
1830
  pack(t) {
1835
- const e = this.id !== null ? t.createString(this.id) : 0;
1836
- return K.createUniqueValueRequest(t, e);
1831
+ const s = this.id !== null ? t.createString(this.id) : 0;
1832
+ return Q.createUniqueValueRequest(t, s);
1837
1833
  }
1838
1834
  }
1839
- class A {
1835
+ class y {
1840
1836
  constructor() {
1841
1837
  a(this, "bb", null);
1842
1838
  a(this, "bb_pos", 0);
1843
1839
  }
1844
- __init(t, e) {
1845
- return this.bb_pos = t, this.bb = e, this;
1840
+ __init(t, s) {
1841
+ return this.bb_pos = t, this.bb = s, this;
1846
1842
  }
1847
- static getRootAsUniqueValueResponse(t, e) {
1848
- return (e || new A()).__init(t.readInt32(t.position()) + t.position(), t);
1843
+ static getRootAsUniqueValueResponse(t, s) {
1844
+ return (s || new y()).__init(t.readInt32(t.position()) + t.position(), t);
1849
1845
  }
1850
- static getSizePrefixedRootAsUniqueValueResponse(t, e) {
1851
- return t.setPosition(t.position() + f), (e || new A()).__init(t.readInt32(t.position()) + t.position(), t);
1846
+ static getSizePrefixedRootAsUniqueValueResponse(t, s) {
1847
+ return t.setPosition(t.position() + f), (s || new y()).__init(t.readInt32(t.position()) + t.position(), t);
1852
1848
  }
1853
1849
  id(t) {
1854
- const e = this.bb.__offset(this.bb_pos, 4);
1855
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1850
+ const s = this.bb.__offset(this.bb_pos, 4);
1851
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1856
1852
  }
1857
- values(t, e) {
1858
- const s = this.bb.__offset(this.bb_pos, 6);
1859
- return s ? (e || new v()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
1853
+ values(t, s) {
1854
+ const e = this.bb.__offset(this.bb_pos, 6);
1855
+ return e ? (s || new S()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
1860
1856
  }
1861
1857
  valuesLength() {
1862
1858
  const t = this.bb.__offset(this.bb_pos, 6);
@@ -1865,27 +1861,27 @@ class A {
1865
1861
  static startUniqueValueResponse(t) {
1866
1862
  t.startObject(2);
1867
1863
  }
1868
- static addId(t, e) {
1869
- t.addFieldOffset(0, e, 0);
1864
+ static addId(t, s) {
1865
+ t.addFieldOffset(0, s, 0);
1870
1866
  }
1871
- static addValues(t, e) {
1872
- t.addFieldOffset(1, e, 0);
1867
+ static addValues(t, s) {
1868
+ t.addFieldOffset(1, s, 0);
1873
1869
  }
1874
- static createValuesVector(t, e) {
1875
- t.startVector(4, e.length, 4);
1876
- for (let s = e.length - 1; s >= 0; s--)
1877
- t.addOffset(e[s]);
1870
+ static createValuesVector(t, s) {
1871
+ t.startVector(4, s.length, 4);
1872
+ for (let e = s.length - 1; e >= 0; e--)
1873
+ t.addOffset(s[e]);
1878
1874
  return t.endVector();
1879
1875
  }
1880
- static startValuesVector(t, e) {
1881
- t.startVector(4, e, 4);
1876
+ static startValuesVector(t, s) {
1877
+ t.startVector(4, s, 4);
1882
1878
  }
1883
1879
  static endUniqueValueResponse(t) {
1884
- const e = t.endObject();
1885
- return t.requiredField(e, 4), t.requiredField(e, 6), e;
1880
+ const s = t.endObject();
1881
+ return t.requiredField(s, 4), t.requiredField(s, 6), s;
1886
1882
  }
1887
- static createUniqueValueResponse(t, e, s) {
1888
- return A.startUniqueValueResponse(t), A.addId(t, e), A.addValues(t, s), A.endUniqueValueResponse(t);
1883
+ static createUniqueValueResponse(t, s, e) {
1884
+ return y.startUniqueValueResponse(t), y.addId(t, s), y.addValues(t, e), y.endUniqueValueResponse(t);
1889
1885
  }
1890
1886
  unpack() {
1891
1887
  return new Qt(this.id(), this.bb.createObjList(this.values.bind(this), this.valuesLength()));
@@ -1895,88 +1891,185 @@ class A {
1895
1891
  }
1896
1892
  }
1897
1893
  class Qt {
1898
- constructor(t = null, e = []) {
1894
+ constructor(t = null, s = []) {
1899
1895
  a(this, "id");
1900
1896
  a(this, "values");
1901
- this.id = t, this.values = e;
1897
+ this.id = t, this.values = s;
1902
1898
  }
1903
1899
  pack(t) {
1904
- const e = this.id !== null ? t.createString(this.id) : 0, s = A.createValuesVector(t, t.createObjectOffsetList(this.values));
1905
- return A.createUniqueValueResponse(t, e, s);
1900
+ const s = this.id !== null ? t.createString(this.id) : 0, e = y.createValuesVector(t, t.createObjectOffsetList(this.values));
1901
+ return y.createUniqueValueResponse(t, s, e);
1906
1902
  }
1907
1903
  }
1908
- class Y {
1904
+ class Z {
1909
1905
  constructor() {
1910
1906
  a(this, "bb", null);
1911
1907
  a(this, "bb_pos", 0);
1912
1908
  }
1913
- __init(t, e) {
1914
- return this.bb_pos = t, this.bb = e, this;
1909
+ __init(t, s) {
1910
+ return this.bb_pos = t, this.bb = s, this;
1915
1911
  }
1916
- static getRootAsUniqueValueUpdate(t, e) {
1917
- return (e || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
1912
+ static getRootAsUniqueValueUpdate(t, s) {
1913
+ return (s || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
1918
1914
  }
1919
- static getSizePrefixedRootAsUniqueValueUpdate(t, e) {
1920
- return t.setPosition(t.position() + f), (e || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
1915
+ static getSizePrefixedRootAsUniqueValueUpdate(t, s) {
1916
+ return t.setPosition(t.position() + f), (s || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
1921
1917
  }
1922
1918
  id(t) {
1923
- const e = this.bb.__offset(this.bb_pos, 4);
1924
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1919
+ const s = this.bb.__offset(this.bb_pos, 4);
1920
+ return s ? this.bb.__string(this.bb_pos + s, t) : null;
1925
1921
  }
1926
1922
  value(t) {
1927
- const e = this.bb.__offset(this.bb_pos, 6);
1928
- return e ? (t || new v()).__init(this.bb.__indirect(this.bb_pos + e), this.bb) : null;
1923
+ const s = this.bb.__offset(this.bb_pos, 6);
1924
+ return s ? (t || new S()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
1929
1925
  }
1930
1926
  static startUniqueValueUpdate(t) {
1931
1927
  t.startObject(2);
1932
1928
  }
1933
- static addId(t, e) {
1934
- t.addFieldOffset(0, e, 0);
1929
+ static addId(t, s) {
1930
+ t.addFieldOffset(0, s, 0);
1935
1931
  }
1936
- static addValue(t, e) {
1937
- t.addFieldOffset(1, e, 0);
1932
+ static addValue(t, s) {
1933
+ t.addFieldOffset(1, s, 0);
1938
1934
  }
1939
1935
  static endUniqueValueUpdate(t) {
1940
- const e = t.endObject();
1941
- return t.requiredField(e, 4), t.requiredField(e, 6), e;
1936
+ const s = t.endObject();
1937
+ return t.requiredField(s, 4), t.requiredField(s, 6), s;
1942
1938
  }
1943
1939
  unpack() {
1944
- return new Pt(this.id(), this.value() !== null ? this.value().unpack() : null);
1940
+ return new xt(this.id(), this.value() !== null ? this.value().unpack() : null);
1945
1941
  }
1946
1942
  unpackTo(t) {
1947
1943
  t.id = this.id(), t.value = this.value() !== null ? this.value().unpack() : null;
1948
1944
  }
1949
1945
  }
1950
- class Pt {
1951
- constructor(t = null, e = null) {
1946
+ class xt {
1947
+ constructor(t = null, s = null) {
1952
1948
  a(this, "id");
1953
1949
  a(this, "value");
1954
- this.id = t, this.value = e;
1950
+ this.id = t, this.value = s;
1955
1951
  }
1956
1952
  pack(t) {
1957
- const e = this.id !== null ? t.createString(this.id) : 0, s = this.value !== null ? this.value.pack(t) : 0;
1958
- return Y.startUniqueValueUpdate(t), Y.addId(t, e), Y.addValue(t, s), Y.endUniqueValueUpdate(t);
1953
+ const s = this.id !== null ? t.createString(this.id) : 0, e = this.value !== null ? this.value.pack(t) : 0;
1954
+ return Z.startUniqueValueUpdate(t), Z.addId(t, s), Z.addValue(t, e), Z.endUniqueValueUpdate(t);
1955
+ }
1956
+ }
1957
+ const wt = 1e4;
1958
+ var nt, ft, w, M, tt, st, P, _;
1959
+ class at {
1960
+ constructor(t) {
1961
+ E(this, nt);
1962
+ E(this, w);
1963
+ // 0 idle, 1 has connected, 2 keep reconnecting, 3 stopped
1964
+ E(this, M);
1965
+ E(this, tt);
1966
+ E(this, st);
1967
+ E(this, P);
1968
+ E(this, _);
1969
+ g(this, P, t), g(this, w, 0), g(this, M, null), g(this, tt, null), g(this, st, null), g(this, _, null);
1970
+ }
1971
+ on_message(t) {
1972
+ g(this, st, t);
1973
+ }
1974
+ on_connect(t) {
1975
+ g(this, M, t);
1976
+ }
1977
+ on_disconnect(t) {
1978
+ g(this, tt, t);
1979
+ }
1980
+ // non-blocking (run is blocking in c++)
1981
+ // calling it again should not do anything
1982
+ start() {
1983
+ h(this, _) == null && h(this, w) !== 1 && h(this, w) !== 3 && (g(this, _, new WebSocket(h(this, P))), h(this, _).binaryType = "arraybuffer", h(this, _).onopen = () => {
1984
+ h(this, w) == 3 ? this.stop() : (g(this, w, 1), h(this, M) && h(this, M).call(this, h(this, P)));
1985
+ }, h(this, _).onclose = () => {
1986
+ h(this, w) === 1 && (h(this, tt) && h(this, tt).call(this, h(this, P)), g(this, w, 2), lt(this, nt, ft).call(this));
1987
+ }, h(this, _).onerror = () => {
1988
+ h(this, w) !== 1 && h(this, w) !== 3 ? (g(this, w, 2), lt(this, nt, ft).call(this)) : h(this, w) === 3 && this.stop();
1989
+ }, h(this, _).onmessage = (t) => {
1990
+ h(this, st) && h(this, st).call(this, h(this, P), new Uint8Array(t.data));
1991
+ });
1992
+ }
1993
+ stop() {
1994
+ g(this, w, 3), h(this, _) != null && (h(this, _).close(), g(this, _, null));
1995
+ }
1996
+ restart() {
1997
+ g(this, w, 0), h(this, _) != null && (h(this, _).close(), g(this, _, null)), this.start();
1998
+ }
1999
+ publish(t) {
2000
+ h(this, _) != null && h(this, w) == 1 && h(this, _).send(t);
2001
+ }
2002
+ send(t, s) {
2003
+ t === h(this, P) && this.publish(s);
1959
2004
  }
1960
2005
  }
1961
- const Mt = async (i) => new Promise((t, e) => {
1962
- const s = new Zt();
1963
- s.postMessage({
2006
+ nt = new WeakSet(), ft = function() {
2007
+ h(this, _) != null && (h(this, _).close(), g(this, _, null)), setTimeout(() => this.start(), 1e3);
2008
+ }, w = new WeakMap(), M = new WeakMap(), tt = new WeakMap(), st = new WeakMap(), P = new WeakMap(), _ = new WeakMap();
2009
+ const et = (i) => {
2010
+ const t = new Uint8Array(4);
2011
+ return new DataView(t.buffer).setUint32(0, i, !0), t;
2012
+ }, it = (i) => {
2013
+ const t = new Uint8Array(i.reduce((e, n) => e + n.length, 0));
2014
+ let s = 0;
2015
+ for (const e of i)
2016
+ t.set(e, s), s += e.length;
2017
+ return t;
2018
+ }, Mt = async (i) => new Promise((t, s) => {
2019
+ const e = new at(i), n = setTimeout(() => {
2020
+ e.stop(), s("connection failed... stopping");
2021
+ }, wt);
2022
+ e.on_connect(() => {
2023
+ clearTimeout(n), e.stop(), t();
2024
+ }), e.start();
2025
+ }), Nt = async (i, t, s, e) => new Promise((n, r) => {
2026
+ const o = new at(i), l = setTimeout(() => {
2027
+ o.stop(), r("timed out, cancelled");
2028
+ }, wt), c = it([et(t), s]);
2029
+ o.on_connect(() => o.publish(c)), o.on_message((d, b) => {
2030
+ const F = new DataView(b.buffer).getUint32(0, !0), m = b.slice(4), I = e(F, m);
2031
+ I != null && (clearTimeout(l), o.stop(), n(I));
2032
+ }), o.start();
2033
+ }), Ft = (i, t, s) => {
2034
+ const e = new at(i), n = setTimeout(() => {
2035
+ e.stop();
2036
+ }, wt);
2037
+ e.on_connect(() => {
2038
+ clearTimeout(n);
2039
+ const r = it([et(t), s]);
2040
+ e.publish(r), e.stop();
2041
+ }), e.start();
2042
+ };
2043
+ function ts(i) {
2044
+ return new Worker(
2045
+ "" + new URL("bundler.js", import.meta.url).href,
2046
+ {
2047
+ name: i == null ? void 0 : i.name
2048
+ }
2049
+ );
2050
+ }
2051
+ const ss = async (i) => new Promise((t, s) => {
2052
+ const e = new ts();
2053
+ e.postMessage({
1964
2054
  type: "init",
1965
2055
  host: i.host,
1966
2056
  id: i.id,
1967
2057
  cdn_url: i.cdn_url,
1968
2058
  tag: i.tag
1969
- }), s.addEventListener("message", async (n) => {
2059
+ }), e.addEventListener("message", async (n) => {
1970
2060
  if (n.data.ok) {
1971
- if (n.data.files) {
1972
- const r = new O(), o = new Ot(
2061
+ if (n.data.files && n.data.options) {
2062
+ const r = new R(), o = Array.isArray(n.data.options) ? n.data.options : Object.entries(n.data.options).map(([c, d]) => ({
2063
+ key: c,
2064
+ value: String(d)
2065
+ })), l = new Rt(
1973
2066
  i.id,
1974
- n.data.target,
1975
- n.data.full_target,
1976
- n.data.code,
1977
- n.data.files.map((h) => new Vt(h.target, h.metadata))
2067
+ n.data.files.map((c) => new Ot(c.group, c.path, c.metadata)),
2068
+ n.data.files.map((c) => c.group),
2069
+ o.map((c) => new Ut(c.key, c.value)),
2070
+ n.data.code
1978
2071
  );
1979
- r.finish(o.pack(r)), bt(
2072
+ r.finish(l.pack(r)), Ft(
1980
2073
  i.host,
1981
2074
  i.tag != null ? u.Client_Tagged_FrameCache : u.Client_Unique_FrameCache,
1982
2075
  r.asUint8Array()
@@ -1987,143 +2080,143 @@ const Mt = async (i) => new Promise((t, e) => {
1987
2080
  n.data.code
1988
2081
  ));
1989
2082
  } else
1990
- e(n.data.err);
1991
- s.terminate();
2083
+ s(n.data.err);
2084
+ e.terminate();
1992
2085
  });
1993
- }), mt = (i) => {
1994
- }, te = (i) => new Uint8Array(i ?? []), xt = (i) => i ? Array.from(i) : Array(), Nt = async ({
2086
+ }), qt = (i) => {
2087
+ }, es = (i) => new Uint8Array(i ?? []), Bt = (i) => i ? Array.from(i) : Array(), zt = async ({
1995
2088
  id: i,
1996
2089
  tag: t,
1997
- host: e,
1998
- service: s
2090
+ host: s,
2091
+ service: e
1999
2092
  }) => {
2000
- const n = await Ut(
2001
- e,
2093
+ const n = await Nt(
2094
+ s,
2002
2095
  t != null ? u.Client_Tagged_Value_Request : u.Client_Unique_Value_Request,
2003
2096
  (() => {
2004
- const c = new O(), d = t != null ? new kt(i, t) : new jt(i);
2097
+ const c = new R(), d = t != null ? new yt(i, t) : new Pt(i);
2005
2098
  return c.finish(d.pack(c)), c.asUint8Array();
2006
2099
  })(),
2007
2100
  t != null ? (c, d) => {
2008
2101
  if (c === u.Server_Tagged_Value_Response) {
2009
- const _ = V.getRootAsTaggedValueResponse(
2010
- new L(d)
2102
+ const b = U.getRootAsTaggedValueResponse(
2103
+ new A(d)
2011
2104
  );
2012
- if (_.id() === i && t === _.tag())
2013
- return _;
2105
+ if (b.id() === i && t === b.tag())
2106
+ return b;
2014
2107
  }
2015
2108
  } : (c, d) => {
2016
2109
  if (c === u.Server_Unique_Value_Response) {
2017
- const _ = A.getRootAsUniqueValueResponse(
2018
- new L(d)
2110
+ const b = y.getRootAsUniqueValueResponse(
2111
+ new A(d)
2019
2112
  );
2020
- if (_.id() === i)
2021
- return _;
2113
+ if (b.id() === i)
2114
+ return b;
2022
2115
  }
2023
2116
  }
2024
2117
  ), r = /* @__PURE__ */ new Map();
2025
2118
  let o = !1;
2026
- const h = n.valuesLength();
2027
- for (let c = 0; c < h; ++c) {
2028
- const d = n.values(c), _ = d.id(), F = dt(te(d.unpack().value));
2119
+ const l = n.valuesLength();
2120
+ for (let c = 0; c < l; ++c) {
2121
+ const d = n.values(c), b = d.id(), F = ut(es(d.unpack().value));
2029
2122
  F.subscribe((m) => {
2030
2123
  if (m == null || o)
2031
2124
  return;
2032
- const I = new O(), B = t != null ? new yt(i, t) : new Pt(i);
2033
- B.value = new At(
2034
- _,
2035
- xt(m)
2036
- ), I.finish(B.pack(I));
2037
- const b = t != null ? u.Tagged_Value_Update : u.Unique_Value_Update;
2038
- s.publish(st([et(b), I.asUint8Array()]));
2039
- }), r.set(_, F);
2040
- }
2041
- return s.on_message((c, d) => {
2042
- const _ = new DataView(d.buffer).getUint32(0, !0), F = d.slice(4), m = t != null ? u.Tagged_Value_Update : u.Unique_Value_Update;
2043
- if (_ === m) {
2044
- const I = t !== null ? N.getRootAsTaggedValueUpdate(new L(F)) : Y.getRootAsUniqueValueUpdate(new L(F));
2125
+ const I = new R(), z = t != null ? new At(i, t) : new xt(i);
2126
+ z.value = new Lt(
2127
+ b,
2128
+ Bt(m)
2129
+ ), I.finish(z.pack(I));
2130
+ const p = t != null ? u.Tagged_Value_Update : u.Unique_Value_Update;
2131
+ e.publish(it([et(p), I.asUint8Array()]));
2132
+ }), r.set(b, F);
2133
+ }
2134
+ return e.on_message((c, d) => {
2135
+ const b = new DataView(d.buffer).getUint32(0, !0), F = d.slice(4), m = t != null ? u.Tagged_Value_Update : u.Unique_Value_Update;
2136
+ if (b === m) {
2137
+ const I = t !== null ? B.getRootAsTaggedValueUpdate(new A(F)) : Z.getRootAsUniqueValueUpdate(new A(F));
2045
2138
  if (I.id() === i && (t == null || t === I.tag())) {
2046
2139
  o = !0;
2047
- const B = I.value().id(), b = r.get(B), C = new Uint8Array(I.unpack().value.value), Z = qt(b);
2048
- let ot = !0;
2049
- if (Z == null || C.length != Z.length)
2050
- ot = !1;
2140
+ const z = I.value().id(), p = r.get(z), j = new Uint8Array(I.unpack().value.value), K = Vt(p);
2141
+ let ct = !0;
2142
+ if (K == null || j.length != K.length)
2143
+ ct = !1;
2051
2144
  else {
2052
- const Gt = C.length;
2053
- for (let at = 0; at < Gt; at++)
2054
- if (C[at] !== Z[at]) {
2055
- ot = !1;
2145
+ const Wt = j.length;
2146
+ for (let rt = 0; rt < Wt; rt++)
2147
+ if (j[rt] !== K[rt]) {
2148
+ ct = !1;
2056
2149
  break;
2057
2150
  }
2058
2151
  }
2059
- ot || b == null || b.set(C), o = !1;
2152
+ ct || p == null || p.set(j), o = !1;
2060
2153
  }
2061
2154
  }
2062
2155
  }), r;
2063
- }, Bt = async ({
2156
+ }, Et = async ({
2064
2157
  id: i,
2065
2158
  tag: t,
2066
- host: e,
2067
- service: s
2159
+ host: s,
2160
+ service: e
2068
2161
  }) => {
2069
- const n = await Ut(
2070
- e,
2162
+ const n = await Nt(
2163
+ s,
2071
2164
  t != null ? u.Client_Tagged_Signal_Request : u.Client_Unique_Signal_Request,
2072
2165
  (() => {
2073
- const h = new O(), c = t != null ? new Tt(i, t) : new Ct(i);
2074
- return h.finish(c.pack(h)), h.asUint8Array();
2166
+ const l = new R(), c = t != null ? new kt(i, t) : new Ct(i);
2167
+ return l.finish(c.pack(l)), l.asUint8Array();
2075
2168
  })(),
2076
- (h, c) => {
2169
+ (l, c) => {
2077
2170
  if (t != null) {
2078
- if (h === u.Server_Tagged_Signal_Response)
2079
- return U.getRootAsTaggedSignalResponse(new L(c));
2080
- } else if (h === u.Server_Unique_Signal_Response)
2081
- return k.getRootAsUniqueSignalResponse(new L(c));
2171
+ if (l === u.Server_Tagged_Signal_Response)
2172
+ return O.getRootAsTaggedSignalResponse(new A(c));
2173
+ } else if (l === u.Server_Unique_Signal_Response)
2174
+ return k.getRootAsUniqueSignalResponse(new A(c));
2082
2175
  }
2083
2176
  ), r = /* @__PURE__ */ new Map(), o = n.signalsLength();
2084
- for (let h = 0; h < o; ++h) {
2085
- const d = n.signals(h).id();
2086
- r.set(d, (_) => {
2087
- const F = new O(), m = xt(_), I = t != null ? new Rt(i, t, d, m) : new Lt(i, d, m);
2177
+ for (let l = 0; l < o; ++l) {
2178
+ const d = n.signals(l).id();
2179
+ r.set(d, (b) => {
2180
+ const F = new R(), m = Bt(b), I = t != null ? new Tt(i, t, d, m) : new jt(i, d, m);
2088
2181
  F.finish(I.pack(F));
2089
- const B = t != null ? u.Client_Tagged_Signal_Notify : u.Client_Unique_Signal_Notify;
2090
- s.publish(st([et(B), F.asUint8Array()]));
2182
+ const z = t != null ? u.Client_Tagged_Signal_Notify : u.Client_Unique_Signal_Notify;
2183
+ e.publish(it([et(z), F.asUint8Array()]));
2091
2184
  });
2092
2185
  }
2093
2186
  return r;
2094
- }, zt = (i) => ((t, e, s) => {
2095
- if (s == null)
2096
- return i.get(t) ?? dt(e);
2187
+ }, Gt = (i) => ((t, s, e) => {
2188
+ if (e == null)
2189
+ return i.get(t) ?? ut(s);
2097
2190
  const n = i.get(t);
2098
2191
  if (n != null) {
2099
- let r = qt(n), o = s.decode(r);
2192
+ let r = Vt(n), o = e.decode(r);
2100
2193
  return {
2101
- set: (h) => {
2102
- o = h, r = s.encode(o), n.set(r);
2194
+ set: (l) => {
2195
+ o = l, r = e.encode(o), n.set(r);
2103
2196
  },
2104
- subscribe: (h) => n.subscribe((c) => {
2105
- c !== r && (r = c, o = s.decode(r)), h(o);
2197
+ subscribe: (l) => n.subscribe((c) => {
2198
+ c !== r && (r = c, o = e.decode(r)), l(o);
2106
2199
  }),
2107
- update: (h) => {
2108
- n.update((c) => (o = h(o), r = s.encode(o), r));
2200
+ update: (l) => {
2201
+ n.update((c) => (o = l(o), r = e.encode(o), r));
2109
2202
  }
2110
2203
  };
2111
2204
  }
2112
- return dt(e);
2113
- }), Et = (i) => ((t, e) => {
2114
- if (e == null)
2115
- return i.get(t) ?? mt;
2116
- const s = i.get(t);
2117
- return s != null ? (n) => s(e(n)) : mt;
2118
- }), ee = async (i, t, e, s, n, r) => {
2119
- await Yt(i);
2120
- const o = new nt(i), [h, c, { nil_xit_fn: d }] = await Promise.all([
2121
- Nt({ id: t, tag: e, host: i, service: o }),
2122
- Bt({ id: t, tag: e, host: i, service: o }),
2123
- Mt({ host: i, cdn_url: s, id: t, tag: e })
2124
- ]), _ = {
2205
+ return ut(s);
2206
+ }), Dt = (i) => ((t, s) => {
2207
+ if (s == null)
2208
+ return i.get(t) ?? qt;
2209
+ const e = i.get(t);
2210
+ return e != null ? (n) => e(s(n)) : qt;
2211
+ }), is = async (i, t, s, e, n, r) => {
2212
+ await Mt(i);
2213
+ const o = new at(i), [l, c, { nil_xit_fn: d }] = await Promise.all([
2214
+ zt({ id: t, tag: s, host: i, service: o }),
2215
+ Et({ id: t, tag: s, host: i, service: o }),
2216
+ ss({ host: i, cdn_url: e, id: t, tag: s })
2217
+ ]), b = {
2125
2218
  svelte: () => import("./svelte/index.js"),
2126
- "svelte/store": () => import("./svelte/store.js").then((b) => b.cH),
2219
+ "svelte/store": () => import("./svelte/store.js").then((p) => p.cH),
2127
2220
  "svelte/animate": () => import("./svelte/animate.js"),
2128
2221
  "svelte/reactivity": () => import("./svelte/reactivity.js"),
2129
2222
  "svelte/easing": () => import("./svelte/easing.js"),
@@ -2133,92 +2226,93 @@ const Mt = async (i) => new Promise((t, e) => {
2133
2226
  // @ts-ignore
2134
2227
  "svelte/internal/disclose-version": () => import("./svelte/internal/disclose-version.js"),
2135
2228
  // @ts-ignore
2136
- "svelte/internal/client": () => import("./svelte/internal/client.js").then((b) => b.i)
2137
- // "@nil-/xit": () => import("../lib") // serve @nil-/xit as part of bundle
2138
- }, F = (b) => b in _ ? _[b]() : import(
2229
+ "svelte/internal/client": () => import("./svelte/internal/client.js").then((p) => p.i),
2230
+ "@nil-/xit": () => import("./index2.js")
2231
+ // TAG: DEV -- uncomment for local development
2232
+ }, F = (p) => p in b ? b[p]() : import(
2139
2233
  /* @vite-ignore */
2140
- b
2234
+ p
2141
2235
  ), { action: m } = await d(F);
2142
2236
  o.on_connect(() => {
2143
- const b = new O(), C = e != null ? new pt(t, e) : new wt(t);
2144
- b.finish(C.pack(b));
2145
- const Z = e != null ? u.Client_Tagged_Frame_Subscribe : u.Client_Unique_Frame_Subscribe;
2146
- o.publish(st([et(Z), b.asUint8Array()]));
2237
+ const p = new R(), j = s != null ? new pt(t, s) : new It(t);
2238
+ p.finish(j.pack(p));
2239
+ const K = s != null ? u.Client_Tagged_Frame_Subscribe : u.Client_Unique_Frame_Subscribe;
2240
+ o.publish(it([et(K), p.asUint8Array()]));
2147
2241
  }), o.start();
2148
- const I = new O(), B = e != null ? new gt(t, e) : new It(t);
2149
- return I.finish(B.pack(I)), bt(
2242
+ const I = new R(), z = s != null ? new bt(t, s) : new gt(t);
2243
+ return I.finish(z.pack(I)), Ft(
2150
2244
  i,
2151
- e != null ? u.Client_Tagged_Frame_Loaded : u.Client_Unique_Frame_Loaded,
2245
+ s != null ? u.Client_Tagged_Frame_Loaded : u.Client_Unique_Frame_Loaded,
2152
2246
  I.asUint8Array()
2153
- ), (b) => {
2154
- const C = /* @__PURE__ */ new Map();
2155
- C.set("nil.xit", {
2156
- values: zt(h),
2157
- signals: Et(c),
2247
+ ), (p) => {
2248
+ const j = /* @__PURE__ */ new Map();
2249
+ j.set("nil.xit", {
2250
+ values: Gt(l),
2251
+ signals: Dt(c),
2158
2252
  resub: () => o.start(),
2159
2253
  unsub: () => o.stop(),
2160
2254
  id: t,
2161
- tag: e,
2255
+ tag: s,
2162
2256
  load_frame_ui: n,
2163
2257
  load_frame_data: r
2164
2258
  });
2165
- const { destroy: Z } = m(b, C);
2259
+ const { destroy: K } = m(p, j);
2166
2260
  return {
2167
2261
  destroy: () => {
2168
- o.stop(), Z();
2262
+ o.stop(), K();
2169
2263
  }
2170
2264
  };
2171
2265
  };
2172
- }, se = async ({
2266
+ }, ns = async ({
2173
2267
  host: i,
2174
2268
  frame: t,
2175
- tag: e
2269
+ tag: s
2176
2270
  }) => {
2177
- const s = new nt(i), [n, r] = await Promise.all([
2178
- Nt({ id: t, tag: e ?? null, host: i, service: s }),
2179
- Bt({ id: t, tag: e ?? null, host: i, service: s })
2271
+ const e = new at(i), [n, r] = await Promise.all([
2272
+ zt({ id: t, tag: s ?? null, host: i, service: e }),
2273
+ Et({ id: t, tag: s ?? null, host: i, service: e })
2180
2274
  ]);
2181
- s.on_connect(() => {
2182
- const d = new O(), _ = e != null ? new pt(t, e) : new wt(t);
2183
- d.finish(_.pack(d));
2184
- const F = e != null ? u.Client_Tagged_Frame_Subscribe : u.Client_Unique_Frame_Subscribe;
2185
- s.publish(st([et(F), d.asUint8Array()]));
2186
- }), s.start();
2187
- const o = new O(), h = e != null ? new gt(t, e) : new It(t);
2188
- o.finish(h.pack(o));
2189
- const c = e != null ? u.Client_Tagged_Frame_Loaded : u.Client_Unique_Frame_Loaded;
2190
- return bt(i, c, o.asUint8Array()), {
2191
- values: zt(n),
2192
- signals: Et(r),
2193
- resub: () => s.start(),
2194
- unsub: () => s.stop()
2275
+ e.on_connect(() => {
2276
+ const d = new R(), b = s != null ? new pt(t, s) : new It(t);
2277
+ d.finish(b.pack(d));
2278
+ const F = s != null ? u.Client_Tagged_Frame_Subscribe : u.Client_Unique_Frame_Subscribe;
2279
+ e.publish(it([et(F), d.asUint8Array()]));
2280
+ }), e.start();
2281
+ const o = new R(), l = s != null ? new bt(t, s) : new gt(t);
2282
+ o.finish(l.pack(o));
2283
+ const c = s != null ? u.Client_Tagged_Frame_Loaded : u.Client_Unique_Frame_Loaded;
2284
+ return Ft(i, c, o.asUint8Array()), {
2285
+ values: Gt(n),
2286
+ signals: Dt(r),
2287
+ resub: () => e.start(),
2288
+ unsub: () => e.stop()
2195
2289
  };
2196
- }, Dt = async ({
2290
+ }, Ht = async ({
2197
2291
  host: i,
2198
2292
  cdn_url: t,
2199
- frame: e,
2200
- tag: s
2293
+ frame: s,
2294
+ tag: e
2201
2295
  }) => {
2202
2296
  const n = async (r, o) => {
2203
- const h = await Dt({
2297
+ const l = await Ht({
2204
2298
  host: i,
2205
2299
  cdn_url: t,
2206
2300
  frame: r,
2207
2301
  tag: o
2208
2302
  });
2209
- return (c) => h(c);
2303
+ return (c) => l(c);
2210
2304
  };
2211
- return ee(
2305
+ return is(
2212
2306
  i,
2213
- e,
2214
- s ?? null,
2307
+ s,
2308
+ e ?? null,
2215
2309
  t,
2216
2310
  async (r, o) => n(r, o),
2217
- async (r, o) => se({ host: i, frame: r, tag: o })
2311
+ async (r, o) => ns({ host: i, frame: r, tag: o })
2218
2312
  );
2219
- }, ae = async (i, t) => (await Dt(t))(i);
2313
+ }, os = async (i, t) => (await Ht(t))(i);
2220
2314
  export {
2221
- ae as create_component,
2222
- se as create_frame,
2223
- Dt as create_frame_ui
2315
+ os as create_component,
2316
+ ns as create_frame,
2317
+ Ht as create_frame_ui
2224
2318
  };