@ikonai/sdk-ui 1.0.59 → 1.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { readOpcode as zt, readProtocolMessageHeaders as rt, createLogger as Jt } from "@ikonai/sdk";
1
+ import { createLogger as it, readOpcode as Jt, readProtocolMessageHeaders as rt } from "@ikonai/sdk";
2
2
  const b = 27, qt = {
3
3
  Compressed: 8
4
4
  };
@@ -6,7 +6,7 @@ function Qt(t) {
6
6
  const e = G(t), r = new DataView(e.buffer, e.byteOffset, e.byteLength);
7
7
  if (e.length < b)
8
8
  throw new Error("Protocol payload too short");
9
- const s = r.getUint32(0, !0), n = r.getUint32(4, !0), i = r.getUint32(8, !0), a = r.getUint32(12, !0), o = r.getUint32(16, !0), I = r.getUint32(20, !0), _ = r.getUint8(24), l = r.getUint8(25), E = r.getUint8(26);
9
+ const s = r.getUint32(0, !0), n = r.getUint32(4, !0), i = r.getUint32(8, !0), o = r.getUint32(12, !0), a = r.getUint32(16, !0), I = r.getUint32(20, !0), _ = r.getUint8(24), l = r.getUint8(25), E = r.getUint8(26);
10
10
  if (b + I * 4 > e.length)
11
11
  throw new Error("Protocol header exceeds payload length");
12
12
  const T = [];
@@ -17,8 +17,8 @@ function Qt(t) {
17
17
  length: s,
18
18
  opcode: n,
19
19
  senderId: i,
20
- trackId: a,
21
- sequenceId: o,
20
+ trackId: o,
21
+ sequenceId: a,
22
22
  targetIds: T,
23
23
  payloadVersion: _,
24
24
  payloadType: l,
@@ -32,12 +32,12 @@ async function p(t, e, r) {
32
32
  if (n.payloadType !== 8)
33
33
  throw new Error(`Unexpected payload type ${n.payloadType}`);
34
34
  const i = b + n.targetIds.length * 4;
35
- let a = s.subarray(i, n.length);
36
- return (n.flags & qt.Compressed) !== 0 && (a = await te(a)), a;
35
+ let o = s.subarray(i, n.length);
36
+ return (n.flags & qt.Compressed) !== 0 && (o = await te(o)), o;
37
37
  }
38
38
  function Zt(t, e, r, s, n) {
39
- const i = n?.trackId ?? 0, a = n?.sequenceId ?? 0, o = n?.flags ?? 0, I = n?.targetIds ?? [], _ = n?.payloadType ?? 8, l = b + I.length * 4, E = l + e.length, h = new Uint8Array(E), T = new DataView(h.buffer);
40
- T.setUint32(0, E, !0), T.setUint32(4, t >>> 0, !0), T.setUint32(8, s >>> 0, !0), T.setUint32(12, i >>> 0, !0), T.setUint32(16, a >>> 0, !0), T.setUint32(20, I.length >>> 0, !0), T.setUint8(24, r & 255), T.setUint8(25, _ & 255), T.setUint8(26, o & 255);
39
+ const i = n?.trackId ?? 0, o = n?.sequenceId ?? 0, a = n?.flags ?? 0, I = n?.targetIds ?? [], _ = n?.payloadType ?? 8, l = b + I.length * 4, E = l + e.length, h = new Uint8Array(E), T = new DataView(h.buffer);
40
+ T.setUint32(0, E, !0), T.setUint32(4, t >>> 0, !0), T.setUint32(8, s >>> 0, !0), T.setUint32(12, i >>> 0, !0), T.setUint32(16, o >>> 0, !0), T.setUint32(20, I.length >>> 0, !0), T.setUint8(24, r & 255), T.setUint8(25, _ & 255), T.setUint8(26, a & 255);
41
41
  let d = b;
42
42
  for (let g = 0; g < I.length; g++)
43
43
  T.setUint32(d, I[g] >>> 0, !0), d += 4;
@@ -49,23 +49,23 @@ async function te(t) {
49
49
  const e = new DecompressionStream("gzip"), r = e.writable.getWriter(), s = new Uint8Array(t);
50
50
  r.write(s), r.close();
51
51
  const n = e.readable.getReader(), i = [];
52
- let a = 0;
52
+ let o = 0;
53
53
  for (; ; ) {
54
54
  const { done: _, value: l } = await n.read();
55
55
  if (_) break;
56
- i.push(l), a += l.length;
56
+ i.push(l), o += l.length;
57
57
  }
58
- const o = new Uint8Array(a);
58
+ const a = new Uint8Array(o);
59
59
  let I = 0;
60
60
  for (let _ = 0; _ < i.length; _++)
61
- o.set(i[_], I), I += i[_].length;
62
- return o;
61
+ a.set(i[_], I), I += i[_].length;
62
+ return a;
63
63
  }
64
- var w = /* @__PURE__ */ ((t) => (t[t.Null = 1] = "Null", t[t.Bool = 2] = "Bool", t[t.Int32 = 3] = "Int32", t[t.Int64 = 4] = "Int64", t[t.UInt32 = 5] = "UInt32", t[t.UInt64 = 6] = "UInt64", t[t.Float32 = 7] = "Float32", t[t.Float64 = 8] = "Float64", t[t.Array = 9] = "Array", t[t.Dict = 10] = "Dict", t[t.Object = 11] = "Object", t[t.String = 12] = "String", t[t.Binary = 13] = "Binary", t[t.Guid = 14] = "Guid", t))(w || {});
65
- const it = 161, at = 162, H = new TextEncoder(), ee = new TextDecoder("utf-8", { fatal: !0 });
64
+ var C = /* @__PURE__ */ ((t) => (t[t.Null = 1] = "Null", t[t.Bool = 2] = "Bool", t[t.Int32 = 3] = "Int32", t[t.Int64 = 4] = "Int64", t[t.UInt32 = 5] = "UInt32", t[t.UInt64 = 6] = "UInt64", t[t.Float32 = 7] = "Float32", t[t.Float64 = 8] = "Float64", t[t.Array = 9] = "Array", t[t.Dict = 10] = "Dict", t[t.Object = 11] = "Object", t[t.String = 12] = "String", t[t.Binary = 13] = "Binary", t[t.Guid = 14] = "Guid", t))(C || {});
65
+ const ot = 161, at = 162, H = new TextEncoder(), ee = new TextDecoder("utf-8", { fatal: !0 });
66
66
  class v {
67
67
  constructor(e = 1) {
68
- this.version = e, this.buffer.writeByte(it), this.buffer.writeVarUInt(e >>> 0);
68
+ this.version = e, this.buffer.writeByte(ot), this.buffer.writeVarUInt(e >>> 0);
69
69
  }
70
70
  buffer = new F();
71
71
  closed = !1;
@@ -92,7 +92,7 @@ class v {
92
92
  this.writeFixedField(e, 2, () => this.buffer.writeByte(r ? 1 : 0));
93
93
  }
94
94
  writeGuidField(e, r) {
95
- const s = r instanceof c ? r.asBytes() : r;
95
+ const s = r instanceof f ? r.asBytes() : r;
96
96
  if (s.length !== 16)
97
97
  throw new Error("Guid payload must be 16 bytes");
98
98
  this.writeFixedField(e, 14, () => this.buffer.writeBytes(s));
@@ -119,8 +119,8 @@ class v {
119
119
  writeDictionaryField(e, r, s, n) {
120
120
  const i = new z(r, s);
121
121
  n(i);
122
- const a = i.finish();
123
- this.writeVariableField(e, 10, a);
122
+ const o = i.finish();
123
+ this.writeVariableField(e, 10, o);
124
124
  }
125
125
  finish() {
126
126
  return this.closed || (this.buffer.writeByte(at), this.closed = !0, this.cached = this.buffer.toUint8Array()), this.cached;
@@ -132,7 +132,7 @@ class v {
132
132
  this.writeFieldHeader(e, r, s.length), this.buffer.writeBytes(s);
133
133
  }
134
134
  writeFieldHeader(e, r, s) {
135
- this.buffer.writeUInt32(e >>> 0), this.buffer.writeByte(Y(r)), ae(r) && this.buffer.writeVarUInt(s >>> 0);
135
+ this.buffer.writeUInt32(e >>> 0), this.buffer.writeByte(Y(r)), oe(r) && this.buffer.writeVarUInt(s >>> 0);
136
136
  }
137
137
  }
138
138
  class W {
@@ -188,7 +188,7 @@ class W {
188
188
  14
189
189
  /* Guid */
190
190
  ), this.count++;
191
- const r = e instanceof c ? e.asBytes() : e;
191
+ const r = e instanceof f ? e.asBytes() : e;
192
192
  if (r.length !== 16)
193
193
  throw new Error("Guid payload must be 16 bytes");
194
194
  this.payload.writeBytes(r);
@@ -243,7 +243,7 @@ class W {
243
243
  }
244
244
  ensureElementType(e) {
245
245
  if (this.elementType !== e)
246
- throw new Error(`Array element type is ${w[this.elementType]}, expected ${w[e]}`);
246
+ throw new Error(`Array element type is ${C[this.elementType]}, expected ${C[e]}`);
247
247
  }
248
248
  }
249
249
  class z {
@@ -321,7 +321,7 @@ class re {
321
321
  14
322
322
  /* Guid */
323
323
  );
324
- const r = e instanceof c ? e.asBytes() : e;
324
+ const r = e instanceof f ? e.asBytes() : e;
325
325
  if (r.length !== 16)
326
326
  throw new Error("Guid payload must be 16 bytes");
327
327
  this.payload.writeBytes(r), this.keyWritten = !0;
@@ -387,7 +387,7 @@ class re {
387
387
  14
388
388
  /* Guid */
389
389
  );
390
- const r = e instanceof c ? e.asBytes() : e;
390
+ const r = e instanceof f ? e.asBytes() : e;
391
391
  if (r.length !== 16)
392
392
  throw new Error("Guid payload must be 16 bytes");
393
393
  this.payload.writeBytes(r), this.valueWritten = !0;
@@ -451,11 +451,11 @@ class re {
451
451
  }
452
452
  ensureKeyType(e) {
453
453
  if (this.keyType !== e)
454
- throw new Error(`Dictionary key type is ${w[this.keyType]}, expected ${w[e]}`);
454
+ throw new Error(`Dictionary key type is ${C[this.keyType]}, expected ${C[e]}`);
455
455
  }
456
456
  ensureValueType(e) {
457
457
  if (this.valueType !== e)
458
- throw new Error(`Dictionary value type is ${w[this.valueType]}, expected ${w[e]}`);
458
+ throw new Error(`Dictionary value type is ${C[this.valueType]}, expected ${C[e]}`);
459
459
  }
460
460
  }
461
461
  class m {
@@ -468,7 +468,7 @@ class m {
468
468
  const r = G(e);
469
469
  if (r.length < 2)
470
470
  throw new Error("Teleport payload too short");
471
- if (r[0] !== it || r[r.length - 1] !== at)
471
+ if (r[0] !== ot || r[r.length - 1] !== at)
472
472
  throw new Error("Teleport object missing markers");
473
473
  const s = { offset: 1 }, n = y(r, s, "InvalidLength");
474
474
  return new m(r, n, s.offset);
@@ -478,7 +478,7 @@ class m {
478
478
  return null;
479
479
  if (this.offset + 5 > this.buffer.length)
480
480
  throw new Error("Teleport object truncated");
481
- const e = oe(this.buffer, this.offset);
481
+ const e = ae(this.buffer, this.offset);
482
482
  this.offset += 4;
483
483
  const r = this.buffer[this.offset++], s = r >> 4 & 15;
484
484
  if ((r & 15) !== 0)
@@ -486,10 +486,10 @@ class m {
486
486
  const n = P(s);
487
487
  let i;
488
488
  if (n >= 0)
489
- N(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
489
+ S(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
490
490
  else {
491
- const a = { offset: this.offset }, o = y(this.buffer, a, "InvalidLength");
492
- N(this.buffer, a.offset, o), i = this.buffer.subarray(a.offset, a.offset + o), this.offset = a.offset + o;
491
+ const o = { offset: this.offset }, a = y(this.buffer, o, "InvalidLength");
492
+ S(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
493
493
  }
494
494
  return new se(e, s, i);
495
495
  }
@@ -562,7 +562,7 @@ class O {
562
562
  return this.ensureType(
563
563
  14
564
564
  /* Guid */
565
- ), c.fromBytes(this.payload);
565
+ ), f.fromBytes(this.payload);
566
566
  }
567
567
  asObject() {
568
568
  return this.ensureType(
@@ -584,7 +584,7 @@ class O {
584
584
  }
585
585
  ensureType(e) {
586
586
  if (this.type !== e)
587
- throw new Error(`Teleport value has type ${w[this.type]}, expected ${w[e]}`);
587
+ throw new Error(`Teleport value has type ${C[this.type]}, expected ${C[e]}`);
588
588
  }
589
589
  }
590
590
  class se extends O {
@@ -633,20 +633,20 @@ class J {
633
633
  case 6:
634
634
  case 14: {
635
635
  const e = P(this.elementType);
636
- N(this.payload, this.offset, e);
636
+ S(this.payload, this.offset, e);
637
637
  const r = this.payload.subarray(this.offset, this.offset + e);
638
638
  return this.offset += e, new M(this.elementType, r);
639
639
  }
640
640
  case 12:
641
641
  case 13: {
642
642
  const e = { offset: this.offset }, r = y(this.payload, e, "ArrayMalformed");
643
- N(this.payload, e.offset, r);
643
+ S(this.payload, e.offset, r);
644
644
  const s = this.payload.subarray(e.offset, e.offset + r);
645
645
  return this.offset = e.offset + r, new M(this.elementType, s);
646
646
  }
647
647
  case 11: {
648
648
  const e = { offset: this.offset }, r = y(this.payload, e, "ArrayMalformed");
649
- N(this.payload, e.offset, r);
649
+ S(this.payload, e.offset, r);
650
650
  const s = this.payload.subarray(e.offset, e.offset + r);
651
651
  return this.offset = e.offset + r, new M(11, s);
652
652
  }
@@ -659,7 +659,7 @@ class J {
659
659
  return this.offset += e, new M(10, r);
660
660
  }
661
661
  default:
662
- throw new Error(`Unsupported array element type ${w[this.elementType]}`);
662
+ throw new Error(`Unsupported array element type ${C[this.elementType]}`);
663
663
  }
664
664
  }
665
665
  }
@@ -699,13 +699,13 @@ class q {
699
699
  readKey() {
700
700
  const e = P(this.keyType);
701
701
  if (e >= 0) {
702
- N(this.payload, this.offset, e);
702
+ S(this.payload, this.offset, e);
703
703
  const r = this.payload.subarray(this.offset, this.offset + e);
704
704
  return this.offset += e, new O(this.keyType, r);
705
705
  }
706
706
  if (this.keyType === 12 || this.keyType === 13) {
707
707
  const r = { offset: this.offset }, s = y(this.payload, r, "DictMalformed");
708
- N(this.payload, r.offset, s);
708
+ S(this.payload, r.offset, s);
709
709
  const n = this.payload.subarray(r.offset, r.offset + s);
710
710
  return this.offset = r.offset + s, new O(this.keyType, n);
711
711
  }
@@ -716,13 +716,13 @@ class q {
716
716
  case 12:
717
717
  case 13: {
718
718
  const e = { offset: this.offset }, r = y(this.payload, e, "DictMalformed");
719
- N(this.payload, e.offset, r);
719
+ S(this.payload, e.offset, r);
720
720
  const s = this.payload.subarray(e.offset, e.offset + r);
721
721
  return this.offset = e.offset + r, new O(this.valueType, s);
722
722
  }
723
723
  case 11: {
724
724
  const e = { offset: this.offset }, r = y(this.payload, e, "DictMalformed");
725
- N(this.payload, e.offset, r);
725
+ S(this.payload, e.offset, r);
726
726
  const s = this.payload.subarray(e.offset, e.offset + r);
727
727
  return this.offset = e.offset + r, new O(11, s);
728
728
  }
@@ -744,12 +744,12 @@ class q {
744
744
  case 14:
745
745
  case 1: {
746
746
  const e = P(this.valueType);
747
- N(this.payload, this.offset, e);
747
+ S(this.payload, this.offset, e);
748
748
  const r = this.payload.subarray(this.offset, this.offset + e);
749
749
  return this.offset += e, new O(this.valueType, r);
750
750
  }
751
751
  default:
752
- throw new Error(`Unsupported dictionary value type ${w[this.valueType]}`);
752
+ throw new Error(`Unsupported dictionary value type ${C[this.valueType]}`);
753
753
  }
754
754
  }
755
755
  }
@@ -758,7 +758,7 @@ class ne {
758
758
  this.key = e, this.value = r;
759
759
  }
760
760
  }
761
- class c {
761
+ class f {
762
762
  constructor(e) {
763
763
  this.bytes = e;
764
764
  }
@@ -768,19 +768,19 @@ class c {
768
768
  const r = e.replace(/-/g, "");
769
769
  if (r.length !== 32)
770
770
  throw new Error("Guid string must be 32 hex characters");
771
- const s = new Uint8Array(16), n = c.parseHexSlice(r, 0, 8), i = c.parseHexSlice(r, 8, 4), a = c.parseHexSlice(r, 12, 4);
772
- c.writeUInt32LE(s, 0, n), c.writeUInt16LE(s, 4, i), c.writeUInt16LE(s, 6, a);
773
- for (let o = 0; o < 8; o++)
774
- s[8 + o] = c.parseHexSlice(r, 16 + o * 2, 2);
775
- return new c(s);
771
+ const s = new Uint8Array(16), n = f.parseHexSlice(r, 0, 8), i = f.parseHexSlice(r, 8, 4), o = f.parseHexSlice(r, 12, 4);
772
+ f.writeUInt32LE(s, 0, n), f.writeUInt16LE(s, 4, i), f.writeUInt16LE(s, 6, o);
773
+ for (let a = 0; a < 8; a++)
774
+ s[8 + a] = f.parseHexSlice(r, 16 + a * 2, 2);
775
+ return new f(s);
776
776
  }
777
777
  static fromBytes(e) {
778
778
  if (e.length !== 16)
779
779
  throw new Error("Guid byte array must be 16 bytes");
780
- return new c(Uint8Array.from(e));
780
+ return new f(Uint8Array.from(e));
781
781
  }
782
782
  static createZero() {
783
- return new c(new Uint8Array(16));
783
+ return new f(new Uint8Array(16));
784
784
  }
785
785
  static createRandom() {
786
786
  const e = new Uint8Array(16), r = globalThis.crypto;
@@ -789,14 +789,14 @@ class c {
789
789
  else
790
790
  for (let s = 0; s < e.length; s++)
791
791
  e[s] = Math.floor(Math.random() * 256);
792
- return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, new c(e);
792
+ return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, new f(e);
793
793
  }
794
794
  toString() {
795
795
  const e = this.bytes;
796
796
  return [
797
- c.toHex(c.readUInt32LE(e, 0), 8),
798
- c.toHex(c.readUInt16LE(e, 4), 4),
799
- c.toHex(c.readUInt16LE(e, 6), 4),
797
+ f.toHex(f.readUInt32LE(e, 0), 8),
798
+ f.toHex(f.readUInt16LE(e, 4), 4),
799
+ f.toHex(f.readUInt16LE(e, 6), 4),
800
800
  st(e.subarray(8, 10)),
801
801
  st(e.subarray(10, 16))
802
802
  ].join("-");
@@ -885,8 +885,8 @@ function y(t, e, r) {
885
885
  throw new Error(r);
886
886
  let s = 0, n = 0, i = 0;
887
887
  for (; e.offset < t.length; ) {
888
- const a = t[e.offset++];
889
- if (i++, s |= (a & 127) << n, (a & 128) === 0) {
888
+ const o = t[e.offset++];
889
+ if (i++, s |= (o & 127) << n, (o & 128) === 0) {
890
890
  if (i !== ie(s))
891
891
  throw new Error("Teleport VarUInt is not canonical");
892
892
  return s >>> 0;
@@ -904,7 +904,7 @@ function Y(t, e = 0) {
904
904
  throw new Error("Teleport flags must fit into 4 bits");
905
905
  return (t & 15) << 4 | e & 15;
906
906
  }
907
- function ae(t) {
907
+ function oe(t) {
908
908
  return t === 12 || t === 13 || t === 9 || t === 11 || t === 10;
909
909
  }
910
910
  function P(t) {
@@ -931,11 +931,11 @@ function Q(t) {
931
931
  if (t === 9 || t === 11 || t === 10 || t === 1)
932
932
  throw new Error("Dictionary keys must be primitive Teleport types");
933
933
  }
934
- function N(t, e, r) {
934
+ function S(t, e, r) {
935
935
  if (e < 0 || r < 0 || e + r > t.length)
936
936
  throw new Error("Teleport payload exceeds bounds");
937
937
  }
938
- function oe(t, e) {
938
+ function ae(t, e) {
939
939
  return (t[e] | t[e + 1] << 8 | t[e + 2] << 16 | t[e + 3] << 24) >>> 0;
940
940
  }
941
941
  function Z(t, e) {
@@ -944,15 +944,15 @@ function Z(t, e) {
944
944
  const r = t[e], s = r >> 4 & 15;
945
945
  if ((r & 15) !== 0)
946
946
  throw new Error("Array flags must be zero");
947
- const n = { offset: e + 1 }, i = y(t, n, "ArrayMalformed"), a = P(s);
948
- if (a >= 0) {
949
- const I = a * i;
950
- return N(t, n.offset, I), n.offset + I - e;
947
+ const n = { offset: e + 1 }, i = y(t, n, "ArrayMalformed"), o = P(s);
948
+ if (o >= 0) {
949
+ const I = o * i;
950
+ return S(t, n.offset, I), n.offset + I - e;
951
951
  }
952
- let o = n.offset;
952
+ let a = n.offset;
953
953
  for (let I = 0; I < i; I++)
954
- o = j(s, t, o, "ArrayMalformed");
955
- return o - e;
954
+ a = X(s, t, a, "ArrayMalformed");
955
+ return a - e;
956
956
  }
957
957
  function tt(t, e) {
958
958
  if (e + 2 > t.length)
@@ -962,31 +962,31 @@ function tt(t, e) {
962
962
  throw new Error("Dictionary key/value flags must be zero");
963
963
  Q(r);
964
964
  const n = { offset: e + 2 }, i = y(t, n, "DictMalformed");
965
- let a = n.offset;
966
- for (let o = 0; o < i; o++)
967
- a = j(r, t, a, "DictMalformed"), a = j(s, t, a, "DictMalformed");
968
- return a - e;
965
+ let o = n.offset;
966
+ for (let a = 0; a < i; a++)
967
+ o = X(r, t, o, "DictMalformed"), o = X(s, t, o, "DictMalformed");
968
+ return o - e;
969
969
  }
970
- function j(t, e, r, s) {
970
+ function X(t, e, r, s) {
971
971
  const n = P(t);
972
972
  if (n >= 0)
973
- return N(e, r, n), r + n;
973
+ return S(e, r, n), r + n;
974
974
  switch (t) {
975
975
  case 12:
976
976
  case 13: {
977
- const i = { offset: r }, a = y(e, i, s);
978
- return N(e, i.offset, a), i.offset + a;
977
+ const i = { offset: r }, o = y(e, i, s);
978
+ return S(e, i.offset, o), i.offset + o;
979
979
  }
980
980
  case 11: {
981
- const i = { offset: r }, a = y(e, i, s);
982
- return N(e, i.offset, a), i.offset + a;
981
+ const i = { offset: r }, o = y(e, i, s);
982
+ return S(e, i.offset, o), i.offset + o;
983
983
  }
984
984
  case 9:
985
985
  return r + Z(e, r);
986
986
  case 10:
987
987
  return r + tt(e, r);
988
988
  default:
989
- throw new Error(`Unsupported Teleport type ${w[t]}`);
989
+ throw new Error(`Unsupported Teleport type ${C[t]}`);
990
990
  }
991
991
  }
992
992
  function st(t) {
@@ -995,20 +995,20 @@ function st(t) {
995
995
  function G(t) {
996
996
  return t instanceof Uint8Array ? t : new Uint8Array(t);
997
997
  }
998
- var ot = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(ot || {}), lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(lt || {}), It = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(It || {}), Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(_t || {}), ht = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ut || {}), ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(ft || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(Tt || {}), At = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(At || {}), L = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD = 65560] = "CORE_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(L || {});
998
+ var lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(lt || {}), It = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(It || {}), Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(_t || {}), ht = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ut || {}), ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(ft || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(Tt || {}), At = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(Nt || {}), L = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_RESET_IDLE = 65560] = "CORE_RESET_IDLE", t[t.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", t[t.CORE_ON_APP_READY = 65562] = "CORE_ON_APP_READY", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", t[t.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", t[t.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(L || {});
999
999
  const le = 161083277, Ie = 265814330, Ee = 1368629611, _e = 2431514951, he = 2514959030, ue = 2745379226, ce = 3282782683, fe = 3284746250, Te = 4101844078;
1000
1000
  function St(t) {
1001
1001
  const e = {};
1002
- return Nt(e), e;
1002
+ return dt(e), e;
1003
1003
  }
1004
- function Nt(t) {
1005
- return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = ot.Unknown, t.CodecDetails = "", t.SampleRate = 0, t.Channels = 0, t.ShapeSets = void 0, t.CorrelationId = void 0, t;
1004
+ function dt(t) {
1005
+ return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = lt.Unknown, t.CodecDetails = "", t.SampleRate = 0, t.Channels = 0, t.ShapeSets = void 0, t.CorrelationId = void 0, t;
1006
1006
  }
1007
1007
  function Ae(t, e) {
1008
1008
  const r = e ?? St();
1009
- return Nt(r), Se(t, r), r;
1009
+ return dt(r), Ne(t, r), r;
1010
1010
  }
1011
- function Se(t, e) {
1011
+ function Ne(t, e) {
1012
1012
  let r;
1013
1013
  for (; (r = t.next()) !== null; )
1014
1014
  switch (r.fieldId) {
@@ -1022,7 +1022,7 @@ function Se(t, e) {
1022
1022
  e.ShapeSets = void 0;
1023
1023
  break;
1024
1024
  }
1025
- e.ShapeSets = Ne(r.asArray());
1025
+ e.ShapeSets = Se(r.asArray());
1026
1026
  break;
1027
1027
  }
1028
1028
  case Ee: {
@@ -1065,7 +1065,7 @@ function Se(t, e) {
1065
1065
  }
1066
1066
  }
1067
1067
  }
1068
- function Ne(t) {
1068
+ function Se(t) {
1069
1069
  const e = [];
1070
1070
  let r;
1071
1071
  for (; (r = t.next()) !== null; )
@@ -1075,14 +1075,14 @@ function Ne(t) {
1075
1075
  const de = 1107713536, ye = 1154362099, we = 1185721362;
1076
1076
  function Ce(t) {
1077
1077
  const e = {};
1078
- return dt(e), e;
1078
+ return yt(e), e;
1079
1079
  }
1080
- function dt(t) {
1080
+ function yt(t) {
1081
1081
  return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
1082
1082
  }
1083
1083
  function Ue(t, e) {
1084
1084
  const r = e ?? Ce();
1085
- return dt(r), De(t, r), r;
1085
+ return yt(r), De(t, r), r;
1086
1086
  }
1087
1087
  function De(t, e) {
1088
1088
  let r;
@@ -1112,19 +1112,19 @@ function Re(t) {
1112
1112
  e.push(r.asString());
1113
1113
  return e;
1114
1114
  }
1115
- const Le = 76337612, Oe = 185396121, me = 250031587, ge = 388632637, Fe = 417197284, be = 469070965, Pe = 470595159, ke = 594855258, Me = 781727218, Ve = 834078886, Be = 1043273762, pe = 1236999138, ve = 1286979607, Ge = 1368629611, xe = 1715899485, He = 1942830531, Ye = 1999510636, We = 2033288346, Ke = 2079864626, $e = 2142346422, je = 2228539873, Xe = 2232517119, ze = 2598291686, Je = 2719718823, qe = 2810953526, Qe = 2840065720, Ze = 2885165957, tr = 3542818975, er = 3586157513, rr = 3717933110, sr = 4062655306;
1116
- function nr(t) {
1115
+ const Le = 76337612, Oe = 185396121, me = 250031587, ge = 388632637, Fe = 417197284, be = 425972532, Pe = 469070965, ke = 470595159, Me = 594855258, Be = 617065367, Ve = 661691032, pe = 781727218, ve = 834078886, Ge = 1043273762, xe = 1236999138, He = 1286979607, Ye = 1368629611, We = 1437068682, Ke = 1715899485, $e = 1942830531, Xe = 1999510636, je = 2033288346, ze = 2079864626, Je = 2142346422, qe = 2228539873, Qe = 2232517119, Ze = 2598291686, tr = 2719718823, er = 2810953526, rr = 2840065720, sr = 2885165957, nr = 3542818975, ir = 3586157513, or = 3717933110, ar = 4062655306;
1116
+ function lr(t) {
1117
1117
  const e = {};
1118
- return yt(e), e;
1118
+ return wt(e), e;
1119
1119
  }
1120
- function yt(t) {
1121
- return t.ContextType = It.Unknown, t.UserType = ut.Unknown, t.PayloadType = Et.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = lt.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = ft.Unknown, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialPath = "", t.StyleFormat = ht.Css, t;
1120
+ function wt(t) {
1121
+ return t.ContextType = Et.Unknown, t.UserType = ct.Unknown, t.PayloadType = _t.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = It.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = Tt.Unknown, t.SdkCapability = 0, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialPath = "", t.StyleFormat = ut.Css, t.SupportsCompression = !0, t.IsSoftDisconnected = !1, t.SoftDisconnectAt = 0n, t;
1122
1122
  }
1123
- function ir(t, e) {
1124
- const r = e ?? nr();
1125
- return yt(r), ar(t, r), r;
1123
+ function Ir(t, e) {
1124
+ const r = e ?? lr();
1125
+ return wt(r), Er(t, r), r;
1126
1126
  }
1127
- function ar(t, e) {
1127
+ function Er(t, e) {
1128
1128
  let r;
1129
1129
  for (; (r = t.next()) !== null; )
1130
1130
  switch (r.fieldId) {
@@ -1155,137 +1155,157 @@ function ar(t, e) {
1155
1155
  }
1156
1156
  case be: {
1157
1157
  if (r.isNull) throw new Error();
1158
- e.HasInput = r.asBool();
1158
+ e.SoftDisconnectAt = r.asUInt64();
1159
1159
  break;
1160
1160
  }
1161
1161
  case Pe: {
1162
1162
  if (r.isNull) throw new Error();
1163
- e.UserType = r.asInt32();
1163
+ e.HasInput = r.asBool();
1164
1164
  break;
1165
1165
  }
1166
1166
  case ke: {
1167
1167
  if (r.isNull) throw new Error();
1168
- e.InitialPath = r.asString();
1168
+ e.UserType = r.asInt32();
1169
1169
  break;
1170
1170
  }
1171
1171
  case Me: {
1172
1172
  if (r.isNull) throw new Error();
1173
- e.UserId = r.asString();
1173
+ e.InitialPath = r.asString();
1174
+ break;
1175
+ }
1176
+ case Be: {
1177
+ if (r.isNull) throw new Error();
1178
+ e.IsSoftDisconnected = r.asBool();
1174
1179
  break;
1175
1180
  }
1176
1181
  case Ve: {
1182
+ if (r.isNull) throw new Error();
1183
+ e.SupportsCompression = r.asBool();
1184
+ break;
1185
+ }
1186
+ case pe: {
1187
+ if (r.isNull) throw new Error();
1188
+ e.UserId = r.asString();
1189
+ break;
1190
+ }
1191
+ case ve: {
1177
1192
  if (r.isNull) throw new Error();
1178
1193
  e.ProductId = r.asString();
1179
1194
  break;
1180
1195
  }
1181
- case Be: {
1196
+ case Ge: {
1182
1197
  if (r.isNull) throw new Error();
1183
1198
  e.AuthSessionId = r.asString();
1184
1199
  break;
1185
1200
  }
1186
- case pe: {
1201
+ case xe: {
1187
1202
  if (r.isNull) throw new Error();
1188
1203
  e.ReceiveAllMessages = r.asBool();
1189
1204
  break;
1190
1205
  }
1191
- case ve: {
1206
+ case He: {
1192
1207
  if (r.isNull) throw new Error();
1193
1208
  e.ViewportHeight = r.asInt32();
1194
1209
  break;
1195
1210
  }
1196
- case Ge: {
1211
+ case Ye: {
1197
1212
  if (r.isNull) throw new Error();
1198
1213
  e.Description = r.asString();
1199
1214
  break;
1200
1215
  }
1201
- case xe: {
1216
+ case We: {
1217
+ if (r.isNull) throw new Error();
1218
+ e.SdkCapability = r.asInt32();
1219
+ break;
1220
+ }
1221
+ case Ke: {
1202
1222
  if (r.isNull) throw new Error();
1203
1223
  e.Locale = r.asString();
1204
1224
  break;
1205
1225
  }
1206
- case He: {
1226
+ case $e: {
1207
1227
  if (r.isNull) throw new Error();
1208
1228
  e.SdkType = r.asInt32();
1209
1229
  break;
1210
1230
  }
1211
- case Ye: {
1231
+ case Xe: {
1212
1232
  if (r.isNull) throw new Error();
1213
1233
  e.SessionId = r.asInt32();
1214
1234
  break;
1215
1235
  }
1216
- case We: {
1236
+ case je: {
1217
1237
  if (r.isNull) throw new Error();
1218
1238
  e.ViewportWidth = r.asInt32();
1219
1239
  break;
1220
1240
  }
1221
- case Ke: {
1241
+ case ze: {
1222
1242
  if (r.isNull) throw new Error();
1223
1243
  e.PreciseJoinedAt = r.asUInt64();
1224
1244
  break;
1225
1245
  }
1226
- case $e: {
1246
+ case Je: {
1227
1247
  if (r.isNull) throw new Error();
1228
1248
  e.PayloadType = r.asInt32();
1229
1249
  break;
1230
1250
  }
1231
- case je: {
1251
+ case qe: {
1232
1252
  if (r.isNull) throw new Error();
1233
1253
  e.StyleFormat = r.asInt32();
1234
1254
  break;
1235
1255
  }
1236
- case Xe: {
1256
+ case Qe: {
1237
1257
  if (r.isNull) throw new Error();
1238
1258
  e.IsTouchDevice = r.asBool();
1239
1259
  break;
1240
1260
  }
1241
- case ze: {
1261
+ case Ze: {
1242
1262
  if (r.isNull) throw new Error();
1243
1263
  e.VersionId = r.asString();
1244
1264
  break;
1245
1265
  }
1246
- case Je: {
1266
+ case tr: {
1247
1267
  if (r.isNull) throw new Error();
1248
1268
  e.UniqueSessionId = r.asString();
1249
1269
  break;
1250
1270
  }
1251
- case qe: {
1271
+ case er: {
1252
1272
  if (r.isNull) throw new Error();
1253
1273
  e.ClientType = r.asInt32();
1254
1274
  break;
1255
1275
  }
1256
- case Qe: {
1276
+ case rr: {
1257
1277
  if (r.isNull) throw new Error();
1258
1278
  e.IsReady = r.asBool();
1259
1279
  break;
1260
1280
  }
1261
- case Ze: {
1281
+ case sr: {
1262
1282
  if (r.isNull) throw new Error();
1263
- e.Parameters = or(r.asDictionary());
1283
+ e.Parameters = _r(r.asDictionary());
1264
1284
  break;
1265
1285
  }
1266
- case tr: {
1286
+ case nr: {
1267
1287
  if (r.isNull) throw new Error();
1268
1288
  e.Timezone = r.asString();
1269
1289
  break;
1270
1290
  }
1271
- case er: {
1291
+ case ir: {
1272
1292
  if (r.isNull) throw new Error();
1273
1293
  e.IsInternal = r.asBool();
1274
1294
  break;
1275
1295
  }
1276
- case rr: {
1296
+ case or: {
1277
1297
  if (r.isNull) throw new Error();
1278
1298
  e.ChannelLocale = r.asString();
1279
1299
  break;
1280
1300
  }
1281
- case sr: {
1301
+ case ar: {
1282
1302
  if (r.isNull) throw new Error();
1283
1303
  e.EmbeddedSpaceId = r.asString();
1284
1304
  break;
1285
1305
  }
1286
1306
  }
1287
1307
  }
1288
- function or(t) {
1308
+ function _r(t) {
1289
1309
  const e = /* @__PURE__ */ Object.create(null);
1290
1310
  let r;
1291
1311
  for (; (r = t.next()) !== null; ) {
@@ -1294,289 +1314,289 @@ function or(t) {
1294
1314
  }
1295
1315
  return e;
1296
1316
  }
1297
- const lr = 703025676, Ir = 814454131, Er = 972460562, _r = 976255570, hr = 1368629611, ur = 1479280922, cr = 1533537016, fr = 1909301063, Tr = 2274386296, Ar = 2603556958, Sr = 2885165957, Nr = 3568439632;
1298
- function dr(t) {
1317
+ const hr = 703025676, ur = 814454131, cr = 972460562, fr = 976255570, Tr = 1368629611, Ar = 1479280922, Nr = 1533537016, Sr = 1909301063, dr = 2274386296, yr = 2603556958, wr = 2885165957, Cr = 3568439632;
1318
+ function Ur(t) {
1299
1319
  const e = {};
1300
- return wt(e), e;
1320
+ return Ct(e), e;
1301
1321
  }
1302
- function wt(t) {
1303
- return t.FunctionId = c.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ResultTypeName = "", t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.IsCancellable = !1, t.Description = "", t.LlmInlineResult = !1, t.LlmCallOnlyOnce = !1, t.RequiresInstance = !1, t.Versions = [], t;
1322
+ function Ct(t) {
1323
+ return t.FunctionId = f.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ResultTypeName = "", t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.IsCancellable = !1, t.Description = "", t.LlmInlineResult = !1, t.LlmCallOnlyOnce = !1, t.RequiresInstance = !1, t.Versions = [], t;
1304
1324
  }
1305
- function yr(t, e) {
1306
- const r = e ?? dr();
1307
- return wt(r), wr(t, r), r;
1325
+ function Dr(t, e) {
1326
+ const r = e ?? Ur();
1327
+ return Ct(r), Rr(t, r), r;
1308
1328
  }
1309
- function wr(t, e) {
1329
+ function Rr(t, e) {
1310
1330
  let r;
1311
1331
  for (; (r = t.next()) !== null; )
1312
1332
  switch (r.fieldId) {
1313
- case lr: {
1333
+ case hr: {
1314
1334
  if (r.isNull) throw new Error();
1315
1335
  e.ResultTypeName = r.asString();
1316
1336
  break;
1317
1337
  }
1318
- case Ir: {
1338
+ case ur: {
1319
1339
  if (r.isNull) throw new Error();
1320
1340
  e.FunctionName = r.asString();
1321
1341
  break;
1322
1342
  }
1323
- case Er: {
1343
+ case cr: {
1324
1344
  if (r.isNull) throw new Error();
1325
1345
  e.EnumerableItemTypeName = r.asString();
1326
1346
  break;
1327
1347
  }
1328
- case _r: {
1348
+ case fr: {
1329
1349
  if (r.isNull) throw new Error();
1330
1350
  e.FunctionId = r.asGuid();
1331
1351
  break;
1332
1352
  }
1333
- case hr: {
1353
+ case Tr: {
1334
1354
  if (r.isNull) throw new Error();
1335
1355
  e.Description = r.asString();
1336
1356
  break;
1337
1357
  }
1338
- case ur: {
1358
+ case Ar: {
1339
1359
  if (r.isNull) throw new Error();
1340
1360
  e.IsCancellable = r.asBool();
1341
1361
  break;
1342
1362
  }
1343
- case cr: {
1363
+ case Nr: {
1344
1364
  if (r.isNull) throw new Error();
1345
1365
  e.RequiresInstance = r.asBool();
1346
1366
  break;
1347
1367
  }
1348
- case fr: {
1368
+ case Sr: {
1349
1369
  if (r.isNull) throw new Error();
1350
- e.Versions = Cr(r.asArray());
1370
+ e.Versions = Lr(r.asArray());
1351
1371
  break;
1352
1372
  }
1353
- case Tr: {
1373
+ case dr: {
1354
1374
  if (r.isNull) throw new Error();
1355
1375
  e.LlmInlineResult = r.asBool();
1356
1376
  break;
1357
1377
  }
1358
- case Ar: {
1378
+ case yr: {
1359
1379
  if (r.isNull) throw new Error();
1360
1380
  e.IsEnumerable = r.asBool();
1361
1381
  break;
1362
1382
  }
1363
- case Sr: {
1383
+ case wr: {
1364
1384
  if (r.isNull) throw new Error();
1365
- e.Parameters = Ur(r.asArray());
1385
+ e.Parameters = Or(r.asArray());
1366
1386
  break;
1367
1387
  }
1368
- case Nr: {
1388
+ case Cr: {
1369
1389
  if (r.isNull) throw new Error();
1370
1390
  e.LlmCallOnlyOnce = r.asBool();
1371
1391
  break;
1372
1392
  }
1373
1393
  }
1374
1394
  }
1375
- function Cr(t) {
1395
+ function Lr(t) {
1376
1396
  const e = [];
1377
1397
  let r;
1378
1398
  for (; (r = t.next()) !== null; )
1379
1399
  e.push(r.asString());
1380
1400
  return e;
1381
1401
  }
1382
- function Ur(t) {
1402
+ function Or(t) {
1383
1403
  const e = [];
1384
1404
  let r;
1385
1405
  for (; (r = t.next()) !== null; )
1386
- e.push(Mr(r.asObject()));
1406
+ e.push(vr(r.asObject()));
1387
1407
  return e;
1388
1408
  }
1389
- const Dr = 607861992, Rr = 894485888, Lr = 972460562, Or = 1368629611, mr = 1883521406, gr = 2603556958, Fr = 3609695522, br = 4075263697, Pr = 4257460908;
1390
- function kr(t) {
1409
+ const mr = 607861992, gr = 894485888, Fr = 972460562, br = 1368629611, Pr = 1883521406, kr = 2603556958, Mr = 3609695522, Br = 4075263697, Vr = 4257460908;
1410
+ function pr(t) {
1391
1411
  const e = {};
1392
- return Ct(e), e;
1412
+ return Ut(e), e;
1393
1413
  }
1394
- function Ct(t) {
1414
+ function Ut(t) {
1395
1415
  return t.ParameterIndex = 0, t.ParameterName = "", t.TypeName = "", t.HasDefaultValue = !1, t.DefaultValueJson = "", t.DefaultValueData = new Uint8Array(0), t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.Description = "", t;
1396
1416
  }
1397
- function Mr(t, e) {
1398
- const r = e ?? kr();
1399
- return Ct(r), Vr(t, r), r;
1417
+ function vr(t, e) {
1418
+ const r = e ?? pr();
1419
+ return Ut(r), Gr(t, r), r;
1400
1420
  }
1401
- function Vr(t, e) {
1421
+ function Gr(t, e) {
1402
1422
  let r;
1403
1423
  for (; (r = t.next()) !== null; )
1404
1424
  switch (r.fieldId) {
1405
- case Dr: {
1425
+ case mr: {
1406
1426
  if (r.isNull) throw new Error();
1407
1427
  e.HasDefaultValue = r.asBool();
1408
1428
  break;
1409
1429
  }
1410
- case Rr: {
1430
+ case gr: {
1411
1431
  if (r.isNull) throw new Error();
1412
1432
  e.DefaultValueJson = r.asString();
1413
1433
  break;
1414
1434
  }
1415
- case Lr: {
1435
+ case Fr: {
1416
1436
  if (r.isNull) throw new Error();
1417
1437
  e.EnumerableItemTypeName = r.asString();
1418
1438
  break;
1419
1439
  }
1420
- case Or: {
1440
+ case br: {
1421
1441
  if (r.isNull) throw new Error();
1422
1442
  e.Description = r.asString();
1423
1443
  break;
1424
1444
  }
1425
- case mr: {
1445
+ case Pr: {
1426
1446
  if (r.isNull) throw new Error();
1427
1447
  e.DefaultValueData = r.asBinary();
1428
1448
  break;
1429
1449
  }
1430
- case gr: {
1450
+ case kr: {
1431
1451
  if (r.isNull) throw new Error();
1432
1452
  e.IsEnumerable = r.asBool();
1433
1453
  break;
1434
1454
  }
1435
- case Fr: {
1455
+ case Mr: {
1436
1456
  if (r.isNull) throw new Error();
1437
1457
  e.TypeName = r.asString();
1438
1458
  break;
1439
1459
  }
1440
- case br: {
1460
+ case Br: {
1441
1461
  if (r.isNull) throw new Error();
1442
1462
  e.ParameterName = r.asString();
1443
1463
  break;
1444
1464
  }
1445
- case Pr: {
1465
+ case Vr: {
1446
1466
  if (r.isNull) throw new Error();
1447
1467
  e.ParameterIndex = r.asInt32();
1448
1468
  break;
1449
1469
  }
1450
1470
  }
1451
1471
  }
1452
- const Br = 3167053791, pr = 3342364356, vr = 3612929027;
1453
- function Ut(t) {
1472
+ const xr = 3167053791, Hr = 3342364356, Yr = 3612929027;
1473
+ function Dt(t) {
1454
1474
  const e = {};
1455
- return Dt(e), e;
1475
+ return Rt(e), e;
1456
1476
  }
1457
- function Dt(t) {
1458
- return t.Category = "", t.Type = _t.Face, t.FaceBlendshapes = [], t;
1477
+ function Rt(t) {
1478
+ return t.Category = "", t.Type = ht.Face, t.FaceBlendshapes = [], t;
1459
1479
  }
1460
- function Gr(t, e) {
1461
- const r = e ?? Ut();
1462
- return Dt(r), xr(t, r), r;
1480
+ function Wr(t, e) {
1481
+ const r = e ?? Dt();
1482
+ return Rt(r), Kr(t, r), r;
1463
1483
  }
1464
- function xr(t, e) {
1484
+ function Kr(t, e) {
1465
1485
  let r;
1466
1486
  for (; (r = t.next()) !== null; )
1467
1487
  switch (r.fieldId) {
1468
- case Br: {
1488
+ case xr: {
1469
1489
  if (r.isNull) throw new Error();
1470
1490
  e.Type = r.asInt32();
1471
1491
  break;
1472
1492
  }
1473
- case pr: {
1493
+ case Hr: {
1474
1494
  if (r.isNull) throw new Error();
1475
- e.FaceBlendshapes = Hr(r.asArray());
1495
+ e.FaceBlendshapes = $r(r.asArray());
1476
1496
  break;
1477
1497
  }
1478
- case vr: {
1498
+ case Yr: {
1479
1499
  if (r.isNull) throw new Error();
1480
1500
  e.Category = r.asString();
1481
1501
  break;
1482
1502
  }
1483
1503
  }
1484
1504
  }
1485
- function Hr(t) {
1505
+ function $r(t) {
1486
1506
  const e = [];
1487
1507
  let r;
1488
1508
  for (; (r = t.next()) !== null; )
1489
1509
  e.push(r.asString());
1490
1510
  return e;
1491
1511
  }
1492
- const Yr = 1405462580, Wr = 2968276160;
1493
- function Kr(t) {
1512
+ const Xr = 1405462580, jr = 2968276160;
1513
+ function zr(t) {
1494
1514
  const e = {};
1495
- return Rt(e), e;
1515
+ return Lt(e), e;
1496
1516
  }
1497
- function Rt(t) {
1517
+ function Lt(t) {
1498
1518
  return t.MimeType = "", t.Value = new Uint8Array(0), t;
1499
1519
  }
1500
- function $r(t, e) {
1501
- const r = e ?? Kr();
1502
- return Rt(r), jr(t, r), r;
1520
+ function Jr(t, e) {
1521
+ const r = e ?? zr();
1522
+ return Lt(r), qr(t, r), r;
1503
1523
  }
1504
- function jr(t, e) {
1524
+ function qr(t, e) {
1505
1525
  let r;
1506
1526
  for (; (r = t.next()) !== null; )
1507
1527
  switch (r.fieldId) {
1508
- case Yr: {
1528
+ case Xr: {
1509
1529
  if (r.isNull) throw new Error();
1510
1530
  e.Value = r.asBinary();
1511
1531
  break;
1512
1532
  }
1513
- case Wr: {
1533
+ case jr: {
1514
1534
  if (r.isNull) throw new Error();
1515
1535
  e.MimeType = r.asString();
1516
1536
  break;
1517
1537
  }
1518
1538
  }
1519
1539
  }
1520
- const Xr = 3612929027;
1521
- function Lt(t) {
1540
+ const Qr = 3612929027;
1541
+ function Ot(t) {
1522
1542
  const e = {};
1523
- return Ot(e), e;
1543
+ return mt(e), e;
1524
1544
  }
1525
- function Ot(t) {
1545
+ function mt(t) {
1526
1546
  return t.Category = "", t;
1527
1547
  }
1528
- function zr(t, e) {
1529
- const r = e ?? Lt();
1530
- return Ot(r), Jr(t, r), r;
1548
+ function Zr(t, e) {
1549
+ const r = e ?? Ot();
1550
+ return mt(r), ts(t, r), r;
1531
1551
  }
1532
- function Jr(t, e) {
1552
+ function ts(t, e) {
1533
1553
  let r;
1534
1554
  for (; (r = t.next()) !== null; )
1535
1555
  switch (r.fieldId) {
1536
- case Xr: {
1556
+ case Qr: {
1537
1557
  if (r.isNull) throw new Error();
1538
1558
  e.Category = r.asString();
1539
1559
  break;
1540
1560
  }
1541
1561
  }
1542
1562
  }
1543
- const qr = 2097188, Qr = 979822885, Zr = 2374537704;
1544
- function ts(t) {
1563
+ const es = 2097188, rs = 979822885, ss = 2374537704;
1564
+ function ns(t) {
1545
1565
  const e = {};
1546
- return mt(e), e;
1566
+ return gt(e), e;
1547
1567
  }
1548
- function mt(t) {
1568
+ function gt(t) {
1549
1569
  return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
1550
1570
  }
1551
- function es(t, e) {
1571
+ function is(t, e) {
1552
1572
  const r = m.create(t);
1553
- return rs(r, e);
1573
+ return os(r, e);
1554
1574
  }
1555
- function rs(t, e) {
1556
- const r = e ?? ts();
1557
- return mt(r), ss(t, r), r;
1575
+ function os(t, e) {
1576
+ const r = e ?? ns();
1577
+ return gt(r), as(t, r), r;
1558
1578
  }
1559
- function ss(t, e) {
1579
+ function as(t, e) {
1560
1580
  let r;
1561
1581
  for (; (r = t.next()) !== null; )
1562
1582
  switch (r.fieldId) {
1563
- case Qr: {
1583
+ case rs: {
1564
1584
  if (r.isNull) throw new Error();
1565
1585
  e.StyleId = r.asString();
1566
1586
  break;
1567
1587
  }
1568
- case Zr: {
1588
+ case ss: {
1569
1589
  if (r.isNull) throw new Error();
1570
- e.Style = is(r.asDictionary());
1590
+ e.Style = Is(r.asDictionary());
1571
1591
  break;
1572
1592
  }
1573
1593
  }
1574
1594
  }
1575
- async function ns(t, e) {
1576
- const r = await p(t, qr);
1577
- return es(r, e);
1595
+ async function ls(t, e) {
1596
+ const r = await p(t, es);
1597
+ return is(r, e);
1578
1598
  }
1579
- function is(t) {
1599
+ function Is(t) {
1580
1600
  const e = /* @__PURE__ */ Object.create(null);
1581
1601
  let r;
1582
1602
  for (; (r = t.next()) !== null; ) {
@@ -1585,73 +1605,73 @@ function is(t) {
1585
1605
  }
1586
1606
  return e;
1587
1607
  }
1588
- const as = 2097192, os = 2136687806;
1589
- function ls(t) {
1608
+ const Es = 2097192, _s = 2136687806;
1609
+ function hs(t) {
1590
1610
  const e = {};
1591
- return gt(e), e;
1611
+ return Ft(e), e;
1592
1612
  }
1593
- function gt(t) {
1613
+ function Ft(t) {
1594
1614
  return t.Styles = [], t;
1595
1615
  }
1596
- function Is(t, e) {
1616
+ function us(t, e) {
1597
1617
  const r = m.create(t);
1598
- return Es(r, e);
1618
+ return cs(r, e);
1599
1619
  }
1600
- function Es(t, e) {
1601
- const r = e ?? ls();
1602
- return gt(r), _s(t, r), r;
1620
+ function cs(t, e) {
1621
+ const r = e ?? hs();
1622
+ return Ft(r), fs(t, r), r;
1603
1623
  }
1604
- function _s(t, e) {
1624
+ function fs(t, e) {
1605
1625
  let r;
1606
1626
  for (; (r = t.next()) !== null; )
1607
1627
  switch (r.fieldId) {
1608
- case os: {
1628
+ case _s: {
1609
1629
  if (r.isNull) throw new Error();
1610
- e.Styles = us(r.asArray());
1630
+ e.Styles = As(r.asArray());
1611
1631
  break;
1612
1632
  }
1613
1633
  }
1614
1634
  }
1615
- async function hs(t, e) {
1616
- const r = await p(t, as);
1617
- return Is(r, e);
1635
+ async function Ts(t, e) {
1636
+ const r = await p(t, Es);
1637
+ return us(r, e);
1618
1638
  }
1619
- function us(t) {
1639
+ function As(t) {
1620
1640
  const e = [];
1621
1641
  let r;
1622
1642
  for (; (r = t.next()) !== null; )
1623
- e.push(As(r.asObject()));
1643
+ e.push(ys(r.asObject()));
1624
1644
  return e;
1625
1645
  }
1626
- const cs = 979822885, fs = 2374537704;
1627
- function Ts(t) {
1646
+ const Ns = 979822885, Ss = 2374537704;
1647
+ function ds(t) {
1628
1648
  const e = {};
1629
- return Ft(e), e;
1649
+ return bt(e), e;
1630
1650
  }
1631
- function Ft(t) {
1651
+ function bt(t) {
1632
1652
  return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
1633
1653
  }
1634
- function As(t, e) {
1635
- const r = e ?? Ts();
1636
- return Ft(r), Ss(t, r), r;
1654
+ function ys(t, e) {
1655
+ const r = e ?? ds();
1656
+ return bt(r), ws(t, r), r;
1637
1657
  }
1638
- function Ss(t, e) {
1658
+ function ws(t, e) {
1639
1659
  let r;
1640
1660
  for (; (r = t.next()) !== null; )
1641
1661
  switch (r.fieldId) {
1642
- case cs: {
1662
+ case Ns: {
1643
1663
  if (r.isNull) throw new Error();
1644
1664
  e.StyleId = r.asString();
1645
1665
  break;
1646
1666
  }
1647
- case fs: {
1667
+ case Ss: {
1648
1668
  if (r.isNull) throw new Error();
1649
- e.Style = Ns(r.asDictionary());
1669
+ e.Style = Cs(r.asDictionary());
1650
1670
  break;
1651
1671
  }
1652
1672
  }
1653
1673
  }
1654
- function Ns(t) {
1674
+ function Cs(t) {
1655
1675
  const e = /* @__PURE__ */ Object.create(null);
1656
1676
  let r;
1657
1677
  for (; (r = t.next()) !== null; ) {
@@ -1660,133 +1680,133 @@ function Ns(t) {
1660
1680
  }
1661
1681
  return e;
1662
1682
  }
1663
- const ds = 2097193, ys = 1415642792;
1664
- function ws(t) {
1683
+ const Us = 2097193, Ds = 1415642792;
1684
+ function Rs(t) {
1665
1685
  const e = {};
1666
- return bt(e), e;
1686
+ return Pt(e), e;
1667
1687
  }
1668
- function bt(t) {
1688
+ function Pt(t) {
1669
1689
  return t.StyleIds = [], t;
1670
1690
  }
1671
- function Cs(t, e) {
1691
+ function Ls(t, e) {
1672
1692
  const r = m.create(t);
1673
- return Us(r, e);
1693
+ return Os(r, e);
1674
1694
  }
1675
- function Us(t, e) {
1676
- const r = e ?? ws();
1677
- return bt(r), Ds(t, r), r;
1695
+ function Os(t, e) {
1696
+ const r = e ?? Rs();
1697
+ return Pt(r), ms(t, r), r;
1678
1698
  }
1679
- function Ds(t, e) {
1699
+ function ms(t, e) {
1680
1700
  let r;
1681
1701
  for (; (r = t.next()) !== null; )
1682
1702
  switch (r.fieldId) {
1683
- case ys: {
1703
+ case Ds: {
1684
1704
  if (r.isNull) throw new Error();
1685
- e.StyleIds = Ls(r.asArray());
1705
+ e.StyleIds = Fs(r.asArray());
1686
1706
  break;
1687
1707
  }
1688
1708
  }
1689
1709
  }
1690
- async function Rs(t, e) {
1691
- const r = await p(t, ds);
1692
- return Cs(r, e);
1710
+ async function gs(t, e) {
1711
+ const r = await p(t, Us);
1712
+ return Ls(r, e);
1693
1713
  }
1694
- function Ls(t) {
1714
+ function Fs(t) {
1695
1715
  const e = [];
1696
1716
  let r;
1697
1717
  for (; (r = t.next()) !== null; )
1698
1718
  e.push(r.asString());
1699
1719
  return e;
1700
1720
  }
1701
- const Os = 2097190, ms = 425183262, gs = 653781469;
1702
- function Fs(t) {
1721
+ const bs = 2097190, Ps = 425183262, ks = 653781469;
1722
+ function Ms(t) {
1703
1723
  const e = {};
1704
- return Pt(e), e;
1724
+ return kt(e), e;
1705
1725
  }
1706
- function Pt(t) {
1726
+ function kt(t) {
1707
1727
  return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
1708
1728
  }
1709
- function bs(t, e) {
1729
+ function Bs(t, e) {
1710
1730
  const r = m.create(t);
1711
- return Ps(r, e);
1731
+ return Vs(r, e);
1712
1732
  }
1713
- function Ps(t, e) {
1714
- const r = e ?? Fs();
1715
- return Pt(r), ks(t, r), r;
1733
+ function Vs(t, e) {
1734
+ const r = e ?? Ms();
1735
+ return kt(r), ps(t, r), r;
1716
1736
  }
1717
- function ks(t, e) {
1737
+ function ps(t, e) {
1718
1738
  let r;
1719
1739
  for (; (r = t.next()) !== null; )
1720
1740
  switch (r.fieldId) {
1721
- case ms: {
1741
+ case Ps: {
1722
1742
  if (r.isNull) throw new Error();
1723
1743
  e.Json = r.asString();
1724
1744
  break;
1725
1745
  }
1726
- case gs: {
1746
+ case ks: {
1727
1747
  if (r.isNull) throw new Error();
1728
- e.Payloads = Vs(r.asDictionary());
1748
+ e.Payloads = Gs(r.asDictionary());
1729
1749
  break;
1730
1750
  }
1731
1751
  }
1732
1752
  }
1733
- async function Ms(t, e) {
1734
- const r = await p(t, Os);
1735
- return bs(r, e);
1753
+ async function vs(t, e) {
1754
+ const r = await p(t, bs);
1755
+ return Bs(r, e);
1736
1756
  }
1737
- function Vs(t) {
1757
+ function Gs(t) {
1738
1758
  const e = /* @__PURE__ */ Object.create(null);
1739
1759
  let r;
1740
1760
  for (; (r = t.next()) !== null; ) {
1741
1761
  const s = r.key.asString();
1742
- e[s] = $r(r.value.asObject());
1762
+ e[s] = Jr(r.value.asObject());
1743
1763
  }
1744
1764
  return e;
1745
1765
  }
1746
- const kt = 1, Bs = 1048636, ps = 2610786289;
1747
- function vs(t) {
1748
- const e = new v(kt);
1749
- return Gs(t, e), e.finish();
1766
+ const Mt = 1, xs = 1048636, Hs = 2610786289;
1767
+ function Ys(t) {
1768
+ const e = new v(Mt);
1769
+ return Ws(t, e), e.finish();
1750
1770
  }
1751
- function Gs(t, e) {
1752
- e.writeUInt32Field(ps, t.Version >>> 0);
1771
+ function Ws(t, e) {
1772
+ e.writeUInt32Field(Hs, t.Version >>> 0);
1753
1773
  }
1754
- function xs(t, e, r) {
1755
- const s = vs(t);
1756
- return Zt(Bs, s, kt, e, r);
1774
+ function Ks(t, e, r) {
1775
+ const s = Ys(t);
1776
+ return Zt(xs, s, Mt, e, r);
1757
1777
  }
1758
- const Hs = 161083277, Ys = 164808083, Ws = 1368629611, Ks = 2514959030, $s = 2745379226, js = 2950031986, Xs = 3282782683, zs = 3284746250, Js = 4065070594;
1759
- function Mt(t) {
1778
+ const $s = 161083277, Xs = 164808083, js = 1368629611, zs = 2514959030, Js = 2745379226, qs = 2950031986, Qs = 3282782683, Zs = 3284746250, tn = 4065070594;
1779
+ function Bt(t) {
1760
1780
  const e = {};
1761
1781
  return Vt(e), e;
1762
1782
  }
1763
1783
  function Vt(t) {
1764
- return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = ct.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t.CorrelationId = void 0, t;
1784
+ return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = ft.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t.CorrelationId = void 0, t;
1765
1785
  }
1766
- function qs(t, e) {
1767
- const r = e ?? Mt();
1768
- return Vt(r), Qs(t, r), r;
1786
+ function en(t, e) {
1787
+ const r = e ?? Bt();
1788
+ return Vt(r), rn(t, r), r;
1769
1789
  }
1770
- function Qs(t, e) {
1790
+ function rn(t, e) {
1771
1791
  let r;
1772
1792
  for (; (r = t.next()) !== null; )
1773
1793
  switch (r.fieldId) {
1774
- case Hs: {
1794
+ case $s: {
1775
1795
  if (r.isNull) throw new Error();
1776
1796
  e.StreamId = r.asString();
1777
1797
  break;
1778
1798
  }
1779
- case Ys: {
1799
+ case Xs: {
1780
1800
  if (r.isNull) throw new Error();
1781
1801
  e.Framerate = r.asFloat64();
1782
1802
  break;
1783
1803
  }
1784
- case Ws: {
1804
+ case js: {
1785
1805
  if (r.isNull) throw new Error();
1786
1806
  e.Description = r.asString();
1787
1807
  break;
1788
1808
  }
1789
- case Ks: {
1809
+ case zs: {
1790
1810
  if (r.isNull) {
1791
1811
  e.CorrelationId = void 0;
1792
1812
  break;
@@ -1794,381 +1814,381 @@ function Qs(t, e) {
1794
1814
  e.CorrelationId = r.asString();
1795
1815
  break;
1796
1816
  }
1797
- case $s: {
1817
+ case Js: {
1798
1818
  if (r.isNull) throw new Error();
1799
1819
  e.CodecDetails = r.asString();
1800
1820
  break;
1801
1821
  }
1802
- case js: {
1822
+ case qs: {
1803
1823
  if (r.isNull) throw new Error();
1804
1824
  e.Height = r.asInt32();
1805
1825
  break;
1806
1826
  }
1807
- case Xs: {
1827
+ case Qs: {
1808
1828
  if (r.isNull) throw new Error();
1809
1829
  e.SourceType = r.asString();
1810
1830
  break;
1811
1831
  }
1812
- case zs: {
1832
+ case Zs: {
1813
1833
  if (r.isNull) throw new Error();
1814
1834
  e.Codec = r.asInt32();
1815
1835
  break;
1816
1836
  }
1817
- case Js: {
1837
+ case tn: {
1818
1838
  if (r.isNull) throw new Error();
1819
1839
  e.Width = r.asInt32();
1820
1840
  break;
1821
1841
  }
1822
1842
  }
1823
1843
  }
1824
- const Zs = 65539, tn = 693643444, en = 976837618, rn = 1144553441, sn = 1497620243, nn = 1559330978, an = 1976546434, on = 2271236852, ln = 2277643855, In = 2469008121, En = 3042922213, _n = 3064612128, hn = 3219210453, un = 3504054055, cn = 3678477544, fn = 3696445035, Tn = 3707543140, An = 3712281496, Sn = 3895362455, Nn = 3897397815, dn = 3914217035, yn = 4225107827;
1825
- function wn(t) {
1844
+ const sn = 65539, nn = 693643444, on = 976837618, an = 1144553441, ln = 1497620243, In = 1559330978, En = 1976546434, _n = 2271236852, hn = 2277643855, un = 2469008121, cn = 3042922213, fn = 3064612128, Tn = 3219210453, An = 3504054055, Nn = 3678477544, Sn = 3696445035, dn = 3707543140, yn = 3712281496, wn = 3895362455, Cn = 3897397815, Un = 3914217035, Dn = 4225107827;
1845
+ function Rn(t) {
1826
1846
  const e = {};
1827
- return Bt(e), e;
1847
+ return pt(e), e;
1828
1848
  }
1829
- function Bt(t) {
1830
- return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.ServerSessionId = "", t.SessionHash = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = Tt.Local, t.AppSourceType = At.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
1849
+ function pt(t) {
1850
+ return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.ServerSessionId = "", t.SessionHash = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = At.Local, t.AppSourceType = Nt.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
1831
1851
  }
1832
- function Cn(t, e) {
1852
+ function Ln(t, e) {
1833
1853
  const r = m.create(t);
1834
- return Un(r, e);
1854
+ return On(r, e);
1835
1855
  }
1836
- function Un(t, e) {
1837
- const r = e ?? wn();
1838
- return Bt(r), Dn(t, r), r;
1856
+ function On(t, e) {
1857
+ const r = e ?? Rn();
1858
+ return pt(r), mn(t, r), r;
1839
1859
  }
1840
- function Dn(t, e) {
1860
+ function mn(t, e) {
1841
1861
  let r;
1842
1862
  for (; (r = t.next()) !== null; )
1843
1863
  switch (r.fieldId) {
1844
- case tn: {
1864
+ case nn: {
1845
1865
  if (r.isNull) throw new Error();
1846
1866
  e.FirstUserId = r.asString();
1847
1867
  break;
1848
1868
  }
1849
- case en: {
1869
+ case on: {
1850
1870
  if (r.isNull) throw new Error();
1851
1871
  e.SessionHash = r.asString();
1852
1872
  break;
1853
1873
  }
1854
- case rn: {
1874
+ case an: {
1855
1875
  if (r.isNull) throw new Error();
1856
- e.Clients = Ln(r.asDictionary());
1876
+ e.Clients = Fn(r.asDictionary());
1857
1877
  break;
1858
1878
  }
1859
- case sn: {
1879
+ case ln: {
1860
1880
  if (r.isNull) throw new Error();
1861
- e.TrackingStreams = On(r.asDictionary());
1881
+ e.TrackingStreams = bn(r.asDictionary());
1862
1882
  break;
1863
1883
  }
1864
- case nn: {
1884
+ case In: {
1865
1885
  if (r.isNull) throw new Error();
1866
1886
  e.ChannelId = r.asString();
1867
1887
  break;
1868
1888
  }
1869
- case an: {
1889
+ case En: {
1870
1890
  if (r.isNull) throw new Error();
1871
1891
  e.AppSourceType = r.asInt32();
1872
1892
  break;
1873
1893
  }
1874
- case on: {
1894
+ case _n: {
1875
1895
  if (r.isNull) throw new Error();
1876
1896
  e.SessionChannelUrl = r.asString();
1877
1897
  break;
1878
1898
  }
1879
- case ln: {
1899
+ case hn: {
1880
1900
  if (r.isNull) throw new Error();
1881
1901
  e.ChannelUrl = r.asString();
1882
1902
  break;
1883
1903
  }
1884
- case In: {
1904
+ case un: {
1885
1905
  if (r.isNull) throw new Error();
1886
1906
  e.ChannelName = r.asString();
1887
1907
  break;
1888
1908
  }
1889
- case En: {
1909
+ case cn: {
1890
1910
  if (r.isNull) throw new Error();
1891
1911
  e.PublicAccess = r.asBool();
1892
1912
  break;
1893
1913
  }
1894
- case _n: {
1914
+ case fn: {
1895
1915
  if (r.isNull) throw new Error();
1896
1916
  e.ServerRunType = r.asInt32();
1897
1917
  break;
1898
1918
  }
1899
- case hn: {
1919
+ case Tn: {
1900
1920
  if (r.isNull) throw new Error();
1901
1921
  e.OrganisationName = r.asString();
1902
1922
  break;
1903
1923
  }
1904
- case un: {
1924
+ case An: {
1905
1925
  if (r.isNull) throw new Error();
1906
1926
  e.DebugMode = r.asBool();
1907
1927
  break;
1908
1928
  }
1909
- case cn: {
1929
+ case Nn: {
1910
1930
  if (r.isNull) throw new Error();
1911
- e.Functions = mn(r.asDictionary());
1931
+ e.Functions = Pn(r.asDictionary());
1912
1932
  break;
1913
1933
  }
1914
- case fn: {
1934
+ case Sn: {
1915
1935
  if (r.isNull) throw new Error();
1916
- e.UIStreams = gn(r.asDictionary());
1936
+ e.UIStreams = kn(r.asDictionary());
1917
1937
  break;
1918
1938
  }
1919
- case Tn: {
1939
+ case dn: {
1920
1940
  if (r.isNull) throw new Error();
1921
1941
  e.SpaceId = r.asString();
1922
1942
  break;
1923
1943
  }
1924
- case An: {
1944
+ case yn: {
1925
1945
  if (r.isNull) throw new Error();
1926
1946
  e.PrimaryUserId = r.asString();
1927
1947
  break;
1928
1948
  }
1929
- case Sn: {
1949
+ case wn: {
1930
1950
  if (r.isNull) throw new Error();
1931
- e.AudioStreams = Fn(r.asDictionary());
1951
+ e.AudioStreams = Mn(r.asDictionary());
1932
1952
  break;
1933
1953
  }
1934
- case Nn: {
1954
+ case Cn: {
1935
1955
  if (r.isNull) throw new Error();
1936
- e.VideoStreams = bn(r.asDictionary());
1956
+ e.VideoStreams = Bn(r.asDictionary());
1937
1957
  break;
1938
1958
  }
1939
- case dn: {
1959
+ case Un: {
1940
1960
  if (r.isNull) throw new Error();
1941
1961
  e.ServerSessionId = r.asString();
1942
1962
  break;
1943
1963
  }
1944
- case yn: {
1964
+ case Dn: {
1945
1965
  if (r.isNull) throw new Error();
1946
1966
  e.SpaceName = r.asString();
1947
1967
  break;
1948
1968
  }
1949
1969
  }
1950
1970
  }
1951
- async function Rn(t, e) {
1952
- const r = await p(t, Zs);
1953
- return Cn(r, e);
1971
+ async function gn(t, e) {
1972
+ const r = await p(t, sn);
1973
+ return Ln(r, e);
1954
1974
  }
1955
- function Ln(t) {
1975
+ function Fn(t) {
1956
1976
  const e = /* @__PURE__ */ Object.create(null);
1957
1977
  let r;
1958
1978
  for (; (r = t.next()) !== null; ) {
1959
1979
  const s = r.key.asInt32();
1960
- e[s] = ir(r.value.asObject());
1980
+ e[s] = Ir(r.value.asObject());
1961
1981
  }
1962
1982
  return e;
1963
1983
  }
1964
- function On(t) {
1984
+ function bn(t) {
1965
1985
  const e = /* @__PURE__ */ Object.create(null);
1966
1986
  let r;
1967
1987
  for (; (r = t.next()) !== null; ) {
1968
1988
  const s = r.key.asString();
1969
- e[s] = ai(r.value.asObject());
1989
+ e[s] = Ei(r.value.asObject());
1970
1990
  }
1971
1991
  return e;
1972
1992
  }
1973
- function mn(t) {
1993
+ function Pn(t) {
1974
1994
  const e = /* @__PURE__ */ Object.create(null);
1975
1995
  let r;
1976
1996
  for (; (r = t.next()) !== null; ) {
1977
1997
  const s = r.key.asInt32();
1978
- e[s] = Pn(r.value.asArray());
1998
+ e[s] = Vn(r.value.asArray());
1979
1999
  }
1980
2000
  return e;
1981
2001
  }
1982
- function gn(t) {
2002
+ function kn(t) {
1983
2003
  const e = /* @__PURE__ */ Object.create(null);
1984
2004
  let r;
1985
2005
  for (; (r = t.next()) !== null; ) {
1986
2006
  const s = r.key.asString();
1987
- e[s] = vn(r.value.asObject());
2007
+ e[s] = Yn(r.value.asObject());
1988
2008
  }
1989
2009
  return e;
1990
2010
  }
1991
- function Fn(t) {
2011
+ function Mn(t) {
1992
2012
  const e = /* @__PURE__ */ Object.create(null);
1993
2013
  let r;
1994
2014
  for (; (r = t.next()) !== null; ) {
1995
2015
  const s = r.key.asString();
1996
- e[s] = $n(r.value.asObject());
2016
+ e[s] = Jn(r.value.asObject());
1997
2017
  }
1998
2018
  return e;
1999
2019
  }
2000
- function bn(t) {
2020
+ function Bn(t) {
2001
2021
  const e = /* @__PURE__ */ Object.create(null);
2002
2022
  let r;
2003
2023
  for (; (r = t.next()) !== null; ) {
2004
2024
  const s = r.key.asString();
2005
- e[s] = Zn(r.value.asObject());
2025
+ e[s] = si(r.value.asObject());
2006
2026
  }
2007
2027
  return e;
2008
2028
  }
2009
- function Pn(t) {
2029
+ function Vn(t) {
2010
2030
  const e = [];
2011
2031
  let r;
2012
2032
  for (; (r = t.next()) !== null; )
2013
- e.push(yr(r.asObject()));
2033
+ e.push(Dr(r.asObject()));
2014
2034
  return e;
2015
2035
  }
2016
- const kn = 161083277, Mn = 325678206, Vn = 3469892363, Bn = 3645544153;
2017
- function pn(t) {
2036
+ const pn = 161083277, vn = 325678206, Gn = 3469892363, xn = 3645544153;
2037
+ function Hn(t) {
2018
2038
  const e = {};
2019
- return pt(e), e;
2039
+ return vt(e), e;
2020
2040
  }
2021
- function pt(t) {
2022
- return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Lt(), t;
2041
+ function vt(t) {
2042
+ return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ot(), t;
2023
2043
  }
2024
- function vn(t, e) {
2025
- const r = e ?? pn();
2026
- return pt(r), Gn(t, r), r;
2044
+ function Yn(t, e) {
2045
+ const r = e ?? Hn();
2046
+ return vt(r), Wn(t, r), r;
2027
2047
  }
2028
- function Gn(t, e) {
2048
+ function Wn(t, e) {
2029
2049
  let r;
2030
2050
  for (; (r = t.next()) !== null; )
2031
2051
  switch (r.fieldId) {
2032
- case kn: {
2052
+ case pn: {
2033
2053
  if (r.isNull) throw new Error();
2034
2054
  e.StreamId = r.asString();
2035
2055
  break;
2036
2056
  }
2037
- case Mn: {
2057
+ case vn: {
2038
2058
  if (r.isNull) throw new Error();
2039
2059
  e.ClientSessionId = r.asInt32();
2040
2060
  break;
2041
2061
  }
2042
- case Vn: {
2062
+ case Gn: {
2043
2063
  if (r.isNull) throw new Error();
2044
2064
  e.TrackId = r.asInt32();
2045
2065
  break;
2046
2066
  }
2047
- case Bn: {
2067
+ case xn: {
2048
2068
  if (r.isNull) throw new Error();
2049
- e.Info = zr(r.asObject());
2069
+ e.Info = Zr(r.asObject());
2050
2070
  break;
2051
2071
  }
2052
2072
  }
2053
2073
  }
2054
- const xn = 161083277, Hn = 325678206, Yn = 3469892363, Wn = 3645544153;
2055
- function Kn(t) {
2074
+ const Kn = 161083277, $n = 325678206, Xn = 3469892363, jn = 3645544153;
2075
+ function zn(t) {
2056
2076
  const e = {};
2057
- return vt(e), e;
2077
+ return Gt(e), e;
2058
2078
  }
2059
- function vt(t) {
2079
+ function Gt(t) {
2060
2080
  return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = St(), t;
2061
2081
  }
2062
- function $n(t, e) {
2063
- const r = e ?? Kn();
2064
- return vt(r), jn(t, r), r;
2082
+ function Jn(t, e) {
2083
+ const r = e ?? zn();
2084
+ return Gt(r), qn(t, r), r;
2065
2085
  }
2066
- function jn(t, e) {
2086
+ function qn(t, e) {
2067
2087
  let r;
2068
2088
  for (; (r = t.next()) !== null; )
2069
2089
  switch (r.fieldId) {
2070
- case xn: {
2090
+ case Kn: {
2071
2091
  if (r.isNull) throw new Error();
2072
2092
  e.StreamId = r.asString();
2073
2093
  break;
2074
2094
  }
2075
- case Hn: {
2095
+ case $n: {
2076
2096
  if (r.isNull) throw new Error();
2077
2097
  e.ClientSessionId = r.asInt32();
2078
2098
  break;
2079
2099
  }
2080
- case Yn: {
2100
+ case Xn: {
2081
2101
  if (r.isNull) throw new Error();
2082
2102
  e.TrackId = r.asInt32();
2083
2103
  break;
2084
2104
  }
2085
- case Wn: {
2105
+ case jn: {
2086
2106
  if (r.isNull) throw new Error();
2087
2107
  e.Info = Ae(r.asObject());
2088
2108
  break;
2089
2109
  }
2090
2110
  }
2091
2111
  }
2092
- const Xn = 161083277, zn = 325678206, Jn = 3469892363, qn = 3645544153;
2093
- function Qn(t) {
2112
+ const Qn = 161083277, Zn = 325678206, ti = 3469892363, ei = 3645544153;
2113
+ function ri(t) {
2094
2114
  const e = {};
2095
- return Gt(e), e;
2115
+ return xt(e), e;
2096
2116
  }
2097
- function Gt(t) {
2098
- return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Mt(), t;
2117
+ function xt(t) {
2118
+ return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Bt(), t;
2099
2119
  }
2100
- function Zn(t, e) {
2101
- const r = e ?? Qn();
2102
- return Gt(r), ti(t, r), r;
2120
+ function si(t, e) {
2121
+ const r = e ?? ri();
2122
+ return xt(r), ni(t, r), r;
2103
2123
  }
2104
- function ti(t, e) {
2124
+ function ni(t, e) {
2105
2125
  let r;
2106
2126
  for (; (r = t.next()) !== null; )
2107
2127
  switch (r.fieldId) {
2108
- case Xn: {
2128
+ case Qn: {
2109
2129
  if (r.isNull) throw new Error();
2110
2130
  e.StreamId = r.asString();
2111
2131
  break;
2112
2132
  }
2113
- case zn: {
2133
+ case Zn: {
2114
2134
  if (r.isNull) throw new Error();
2115
2135
  e.ClientSessionId = r.asInt32();
2116
2136
  break;
2117
2137
  }
2118
- case Jn: {
2138
+ case ti: {
2119
2139
  if (r.isNull) throw new Error();
2120
2140
  e.TrackId = r.asInt32();
2121
2141
  break;
2122
2142
  }
2123
- case qn: {
2143
+ case ei: {
2124
2144
  if (r.isNull) throw new Error();
2125
- e.Info = qs(r.asObject());
2145
+ e.Info = en(r.asObject());
2126
2146
  break;
2127
2147
  }
2128
2148
  }
2129
2149
  }
2130
- const ei = 161083277, ri = 325678206, si = 3469892363, ni = 3645544153;
2131
- function ii(t) {
2150
+ const ii = 161083277, oi = 325678206, ai = 3469892363, li = 3645544153;
2151
+ function Ii(t) {
2132
2152
  const e = {};
2133
- return xt(e), e;
2153
+ return Ht(e), e;
2134
2154
  }
2135
- function xt(t) {
2136
- return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ut(), t;
2155
+ function Ht(t) {
2156
+ return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Dt(), t;
2137
2157
  }
2138
- function ai(t, e) {
2139
- const r = e ?? ii();
2140
- return xt(r), oi(t, r), r;
2158
+ function Ei(t, e) {
2159
+ const r = e ?? Ii();
2160
+ return Ht(r), _i(t, r), r;
2141
2161
  }
2142
- function oi(t, e) {
2162
+ function _i(t, e) {
2143
2163
  let r;
2144
2164
  for (; (r = t.next()) !== null; )
2145
2165
  switch (r.fieldId) {
2146
- case ei: {
2166
+ case ii: {
2147
2167
  if (r.isNull) throw new Error();
2148
2168
  e.StreamId = r.asString();
2149
2169
  break;
2150
2170
  }
2151
- case ri: {
2171
+ case oi: {
2152
2172
  if (r.isNull) throw new Error();
2153
2173
  e.ClientSessionId = r.asInt32();
2154
2174
  break;
2155
2175
  }
2156
- case si: {
2176
+ case ai: {
2157
2177
  if (r.isNull) throw new Error();
2158
2178
  e.TrackId = r.asInt32();
2159
2179
  break;
2160
2180
  }
2161
- case ni: {
2181
+ case li: {
2162
2182
  if (r.isNull) throw new Error();
2163
- e.Info = Gr(r.asObject());
2183
+ e.Info = Wr(r.asObject());
2164
2184
  break;
2165
2185
  }
2166
2186
  }
2167
2187
  }
2168
- function C(t) {
2188
+ function U(t) {
2169
2189
  return typeof t == "object" && t !== null && !Array.isArray(t);
2170
2190
  }
2171
- function Ht(t) {
2191
+ function Yt(t) {
2172
2192
  const e = {}, r = Object.keys(t);
2173
2193
  for (let s = 0; s < r.length; s++) {
2174
2194
  const n = r[s];
@@ -2176,16 +2196,16 @@ function Ht(t) {
2176
2196
  }
2177
2197
  return e;
2178
2198
  }
2179
- function Yt(t, e, r, s) {
2199
+ function Wt(t, e, r, s) {
2180
2200
  if (!(t === void 0 && s)) {
2181
2201
  if (Array.isArray(t)) {
2182
2202
  const n = [];
2183
2203
  for (let i = 0; i < t.length; i++) {
2184
- const a = t[i];
2185
- if (typeof a != "string")
2204
+ const o = t[i];
2205
+ if (typeof o != "string")
2186
2206
  throw new Error(`Invalid styleIds entry at ${e}.styleIds[${i}] for element ${r}`);
2187
- const o = a.trim();
2188
- o.length !== 0 && n.push(o);
2207
+ const a = o.trim();
2208
+ a.length !== 0 && n.push(a);
2189
2209
  }
2190
2210
  return n;
2191
2211
  }
@@ -2197,73 +2217,73 @@ function Yt(t, e, r, s) {
2197
2217
  function et(t, e) {
2198
2218
  if (!t || typeof t != "object")
2199
2219
  throw new Error(`Invalid UI node at ${e}`);
2200
- const r = t.Id, s = t.Type, n = t.Props, i = t.Children, a = t.StyleIds;
2220
+ const r = t.Id, s = t.Type, n = t.Props, i = t.Children, o = t.StyleIds;
2201
2221
  if (typeof r != "string")
2202
2222
  throw new Error(`Invalid or missing node id at ${e}`);
2203
2223
  if (typeof s != "string")
2204
2224
  throw new Error(`Invalid or missing node type for ${r}`);
2205
- let o = {};
2225
+ let a = {};
2206
2226
  if (n != null) {
2207
- if (!C(n))
2227
+ if (!U(n))
2208
2228
  throw new Error(`Invalid props for node ${r}`);
2209
- o = Ht(n);
2229
+ a = Yt(n);
2210
2230
  }
2211
2231
  let I = [];
2212
2232
  Array.isArray(i) && (I = i.map(
2213
2233
  (E, h) => et(E ?? {}, `${e}.children[${h}]`)
2214
2234
  ));
2215
- const _ = Yt(a, e, r, !1), l = typeof t.SourceMarker == "string" ? t.SourceMarker : void 0;
2235
+ const _ = Wt(o, e, r, !1), l = typeof t.SourceMarker == "string" ? t.SourceMarker : void 0;
2216
2236
  return {
2217
2237
  id: r,
2218
2238
  type: s,
2219
- props: o,
2239
+ props: a,
2220
2240
  children: I,
2221
2241
  styleIds: _ ?? [],
2222
2242
  ...l ? { sourceMarker: l } : {}
2223
2243
  };
2224
2244
  }
2225
- function li(t, e) {
2226
- if (!C(t))
2245
+ function hi(t, e) {
2246
+ if (!U(t))
2227
2247
  throw new Error(`Invalid text delta at ${e}`);
2228
- const r = t.NodeId, s = t.PropertyName, n = t.Start, i = t.End, a = t.InsertedText;
2248
+ const r = t.NodeId, s = t.PropertyName, n = t.Start, i = t.End, o = t.InsertedText;
2229
2249
  if (typeof r != "string" || r.length === 0)
2230
2250
  throw new Error(`Invalid text delta node id at ${e}`);
2231
2251
  if (typeof s != "string" || s.length === 0)
2232
2252
  throw new Error(`Invalid text delta property name at ${e}`);
2233
2253
  if (typeof n != "number" || !Number.isFinite(n))
2234
2254
  throw new Error(`Invalid text delta start at ${e}`);
2235
- if (typeof a != "string")
2255
+ if (typeof o != "string")
2236
2256
  throw new Error(`Invalid text delta inserted text at ${e}`);
2237
- let o;
2257
+ let a;
2238
2258
  if (typeof i == "number") {
2239
2259
  if (!Number.isFinite(i))
2240
2260
  throw new Error(`Invalid text delta end at ${e}`);
2241
- o = i;
2261
+ a = i;
2242
2262
  } else if (i != null)
2243
2263
  throw new Error(`Invalid text delta end at ${e}`);
2244
2264
  return {
2245
2265
  nodeId: r,
2246
2266
  propertyName: s,
2247
2267
  start: n,
2248
- end: o,
2249
- insertedText: a
2268
+ end: a,
2269
+ insertedText: o
2250
2270
  };
2251
2271
  }
2252
- function Ii(t, e) {
2253
- if (!C(t))
2272
+ function ui(t, e) {
2273
+ if (!U(t))
2254
2274
  throw new Error(`Invalid child insert at ${e}`);
2255
2275
  const r = t.Index, s = t.Node;
2256
2276
  if (typeof r != "number" || !Number.isFinite(r))
2257
2277
  throw new Error(`Invalid child insert index at ${e}`);
2258
- if (!C(s))
2278
+ if (!U(s))
2259
2279
  throw new Error(`Invalid child insert node at ${e}`);
2260
2280
  return {
2261
2281
  index: r,
2262
2282
  node: et(s, `${e}.node`)
2263
2283
  };
2264
2284
  }
2265
- function Ei(t, e) {
2266
- if (!C(t))
2285
+ function ci(t, e) {
2286
+ if (!U(t))
2267
2287
  throw new Error(`Invalid child move at ${e}`);
2268
2288
  const r = t.NodeId, s = t.FromIndex, n = t.ToIndex;
2269
2289
  if (typeof r != "string" || r.length === 0)
@@ -2278,8 +2298,8 @@ function Ei(t, e) {
2278
2298
  toIndex: n
2279
2299
  };
2280
2300
  }
2281
- function _i(t, e) {
2282
- if (!C(t))
2301
+ function fi(t, e) {
2302
+ if (!U(t))
2283
2303
  throw new Error(`Invalid child remove at ${e}`);
2284
2304
  const r = t.NodeId, s = t.Index;
2285
2305
  if (typeof r != "string" || r.length === 0)
@@ -2291,55 +2311,55 @@ function _i(t, e) {
2291
2311
  index: s
2292
2312
  };
2293
2313
  }
2294
- function hi(t, e) {
2295
- if (!C(t))
2314
+ function Ti(t, e) {
2315
+ if (!U(t))
2296
2316
  throw new Error(`Invalid node change at ${e}`);
2297
2317
  const r = t.nodeId;
2298
2318
  if (typeof r != "string" || r.length === 0)
2299
2319
  throw new Error(`Invalid node change nodeId at ${e}`);
2300
2320
  const s = Array.isArray(t.inserts) ? t.inserts.map(
2301
- (l, E) => Ii(l ?? {}, `${e}.inserts[${E}]`)
2321
+ (l, E) => ui(l ?? {}, `${e}.inserts[${E}]`)
2302
2322
  ) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
2303
- (l, E) => Ei(l ?? {}, `${e}.moves[${E}]`)
2323
+ (l, E) => ci(l ?? {}, `${e}.moves[${E}]`)
2304
2324
  ) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
2305
- (l, E) => _i(l ?? {}, `${e}.removals[${E}]`)
2325
+ (l, E) => fi(l ?? {}, `${e}.removals[${E}]`)
2306
2326
  ) : void 0;
2307
- let a;
2308
- if (C(t.changedProps)) {
2309
- a = /* @__PURE__ */ new Map();
2327
+ let o;
2328
+ if (U(t.changedProps)) {
2329
+ o = /* @__PURE__ */ new Map();
2310
2330
  for (const [l, E] of Object.entries(t.changedProps)) {
2311
- if (!C(E))
2331
+ if (!U(E))
2312
2332
  continue;
2313
2333
  const h = E.New;
2314
- h === void 0 ? a.set(l, void 0) : C(h) ? a.set(l, Ht(h)) : a.set(l, h);
2334
+ h === void 0 ? o.set(l, void 0) : U(h) ? o.set(l, Yt(h)) : o.set(l, h);
2315
2335
  }
2316
2336
  }
2317
- const o = Array.isArray(t.textUpdates) ? t.textUpdates.map(
2318
- (l, E) => li(l ?? {}, `${e}.textUpdates[${E}]`)
2319
- ) : void 0, I = t.styleIds, _ = I !== void 0 ? Yt(I, e, r, !0) : void 0;
2337
+ const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
2338
+ (l, E) => hi(l ?? {}, `${e}.textUpdates[${E}]`)
2339
+ ) : void 0, I = t.styleIds, _ = I !== void 0 ? Wt(I, e, r, !0) : void 0;
2320
2340
  return {
2321
2341
  nodeId: r,
2322
2342
  ...s && s.length > 0 ? { inserts: s } : {},
2323
2343
  ...n && n.length > 0 ? { moves: n } : {},
2324
2344
  ...i && i.length > 0 ? { removals: i } : {},
2325
- ...a && a.size > 0 ? { changedProps: a } : {},
2326
- ...o && o.length > 0 ? { textUpdates: o } : {},
2345
+ ...o && o.size > 0 ? { changedProps: o } : {},
2346
+ ...a && a.length > 0 ? { textUpdates: a } : {},
2327
2347
  ..._ !== void 0 ? { styleIds: _ } : {}
2328
2348
  };
2329
2349
  }
2330
- function ui(t) {
2350
+ function Ai(t) {
2331
2351
  const e = /* @__PURE__ */ new Map();
2332
2352
  for (const [r, s] of Object.entries(t))
2333
2353
  e.set(r, s);
2334
2354
  return e;
2335
2355
  }
2336
- function ci(t, e, r) {
2356
+ function Ni(t, e, r) {
2337
2357
  if (!t || typeof t != "object")
2338
- throw new D("UI update graph is missing");
2358
+ throw new R("UI update graph is missing");
2339
2359
  const s = et(t, "graph");
2340
2360
  if (s.type !== "root")
2341
- throw new D('UI update root element must have type "root"');
2342
- const n = Ti(s.props, e);
2361
+ throw new R('UI update root element must have type "root"');
2362
+ const n = di(s.props, e);
2343
2363
  return {
2344
2364
  type: "full",
2345
2365
  version: r,
@@ -2347,17 +2367,17 @@ function ci(t, e, r) {
2347
2367
  metadata: n
2348
2368
  };
2349
2369
  }
2350
- function fi(t, e, r) {
2370
+ function Si(t, e, r) {
2351
2371
  if (!Array.isArray(t))
2352
- throw new D("UI diff changes must be an array");
2353
- if (!C(e))
2354
- throw new D("UI diff metadata must be an object");
2372
+ throw new R("UI diff changes must be an array");
2373
+ if (!U(e))
2374
+ throw new R("UI diff metadata must be an object");
2355
2375
  const s = e.viewId;
2356
2376
  if (typeof s != "string" || s.length === 0)
2357
- throw new D("UI diff metadata is missing viewId");
2377
+ throw new R("UI diff metadata is missing viewId");
2358
2378
  const n = t.map(
2359
- (o, I) => hi(o ?? {}, `changes[${I}]`)
2360
- ), i = typeof e.isUpdate == "boolean" ? e.isUpdate : void 0, a = {
2379
+ (a, I) => Ti(a ?? {}, `changes[${I}]`)
2380
+ ), i = typeof e.isUpdate == "boolean" ? e.isUpdate : void 0, o = {
2361
2381
  viewId: s,
2362
2382
  ...i !== void 0 ? { isUpdate: i } : {}
2363
2383
  };
@@ -2365,45 +2385,45 @@ function fi(t, e, r) {
2365
2385
  type: "diff",
2366
2386
  version: r,
2367
2387
  changes: n,
2368
- metadata: a
2388
+ metadata: o
2369
2389
  };
2370
2390
  }
2371
- function Ti(t, e) {
2391
+ function di(t, e) {
2372
2392
  const r = t.viewId;
2373
2393
  if (typeof r != "string" || r.length === 0)
2374
- throw new D("UI update root is missing viewId");
2394
+ throw new R("UI update root is missing viewId");
2375
2395
  let s = r, n = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0;
2376
- return C(e) && (typeof e.viewId == "string" && e.viewId.length > 0 && (s = e.viewId), typeof e.isUpdate == "boolean" && (n = e.isUpdate)), {
2396
+ return U(e) && (typeof e.viewId == "string" && e.viewId.length > 0 && (s = e.viewId), typeof e.isUpdate == "boolean" && (n = e.isUpdate)), {
2377
2397
  viewId: s,
2378
2398
  ...n !== void 0 ? { isUpdate: n } : {}
2379
2399
  };
2380
2400
  }
2381
- class D extends Error {
2401
+ class R extends Error {
2382
2402
  constructor(e, r) {
2383
2403
  super(e), this.causeError = r, this.name = "UiUpdateParseError", r instanceof Error && (this.stack = r.stack);
2384
2404
  }
2385
2405
  }
2386
- function Ai(t) {
2406
+ function yi(t) {
2387
2407
  let e;
2388
2408
  try {
2389
2409
  e = JSON.parse(t.Json);
2390
- } catch (a) {
2391
- throw new D("Failed to parse UIUpdate.Json payload", a);
2410
+ } catch (o) {
2411
+ throw new R("Failed to parse UIUpdate.Json payload", o);
2392
2412
  }
2393
2413
  if (!e || typeof e != "object")
2394
- throw new D("UI update snapshot must be an object");
2414
+ throw new R("UI update snapshot must be an object");
2395
2415
  const { type: r, version: s } = e;
2396
2416
  if (r !== "full" && r !== "diff")
2397
- throw new D(`Unknown UI update type: ${String(r)}`);
2417
+ throw new R(`Unknown UI update type: ${String(r)}`);
2398
2418
  if (typeof s != "number")
2399
- throw new D("UI update version must be a number");
2400
- const n = r === "full" ? ci(e.graph, e.metadata, s) : fi(e.changes, e.metadata, s), i = t.Payloads ? ui(t.Payloads) : /* @__PURE__ */ new Map();
2419
+ throw new R("UI update version must be a number");
2420
+ const n = r === "full" ? Ni(e.graph, e.metadata, s) : Si(e.changes, e.metadata, s), i = t.Payloads ? Ai(t.Payloads) : /* @__PURE__ */ new Map();
2401
2421
  return {
2402
2422
  snapshot: n,
2403
2423
  payloads: i
2404
2424
  };
2405
2425
  }
2406
- class Si {
2426
+ class wi {
2407
2427
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2408
2428
  cache = /* @__PURE__ */ new Map();
2409
2429
  /**
@@ -2422,7 +2442,7 @@ class Si {
2422
2442
  getHandlerWithPayload(e, r, s) {
2423
2443
  const n = `${e}:${r}:payload`;
2424
2444
  let i = this.cache.get(n);
2425
- return i || (i = (a) => s(r, a), this.cache.set(n, i)), i;
2445
+ return i || (i = (o) => s(r, o), this.cache.set(n, i)), i;
2426
2446
  }
2427
2447
  /**
2428
2448
  * Get a cached handler for boolean payloads.
@@ -2454,7 +2474,7 @@ class Si {
2454
2474
  getNullableBooleanHandler(e, r, s) {
2455
2475
  const n = `${e}:${r}:nullable-bool`;
2456
2476
  let i = this.cache.get(n);
2457
- return i || (i = (a) => s(r, a ?? null), this.cache.set(n, i)), i;
2477
+ return i || (i = (o) => s(r, o ?? null), this.cache.set(n, i)), i;
2458
2478
  }
2459
2479
  /**
2460
2480
  * Invalidate all cached handlers for a specific node.
@@ -2484,7 +2504,8 @@ class Si {
2484
2504
  return this.cache.size;
2485
2505
  }
2486
2506
  }
2487
- class Ni {
2507
+ const Ci = it("UiStreamStore");
2508
+ class Ui {
2488
2509
  views = /* @__PURE__ */ new Map();
2489
2510
  listeners = /* @__PURE__ */ new Set();
2490
2511
  payloads = /* @__PURE__ */ new Map();
@@ -2504,7 +2525,7 @@ class Ni {
2504
2525
  viewsDirty = !0;
2505
2526
  payloadsDirty = !0;
2506
2527
  // Handler cache for stable event handlers
2507
- handlerCache = new Si();
2528
+ handlerCache = new wi();
2508
2529
  apply(e) {
2509
2530
  if (this.snapshotMode) {
2510
2531
  if (e.snapshot.type !== "full")
@@ -2516,27 +2537,27 @@ class Ni {
2516
2537
  };
2517
2538
  }
2518
2539
  const { snapshot: r, payloads: s } = e, { metadata: n } = r, { viewId: i } = n;
2519
- let a = this.views.get(i);
2520
- a || (a = {
2540
+ let o = this.views.get(i);
2541
+ o || (o = {
2521
2542
  version: 0
2522
- }, this.views.set(i, a));
2523
- const o = r.type === "diff" && n.isUpdate === !0;
2524
- if (r.version < a.version || r.version === a.version && !o)
2543
+ }, this.views.set(i, o));
2544
+ const a = r.type === "diff" && n.isUpdate === !0;
2545
+ if (r.version < o.version || r.version === o.version && !a)
2525
2546
  return !1;
2526
2547
  let I = !1;
2527
2548
  this.rootViewId || (this.rootViewId = i, I = !0, this.structureChanged = !0);
2528
- const _ = a.root;
2549
+ const _ = o.root;
2529
2550
  if (r.type === "full")
2530
- a.root = r.root, a.version = r.version, I = !0, this.viewsDirty = !0, this.structureChanged = !0, r.root && B(r.root, this.changedNodeIds);
2551
+ o.root = r.root, o.version = r.version, I = !0, this.viewsDirty = !0, this.structureChanged = !0, r.root && V(r.root, this.changedNodeIds);
2531
2552
  else {
2532
2553
  if (!_)
2533
2554
  return !1;
2534
- const l = yi(_, r.changes);
2535
- l !== _ ? (a.root = l, I = !0, this.viewsDirty = !0, $(_, l, this.changedNodeIds)) : a.root = l, a.version = r.version;
2555
+ const l = Ri(_, r.changes);
2556
+ l !== _ ? (o.root = l, I = !0, this.viewsDirty = !0, $(_, l, this.changedNodeIds)) : o.root = l, o.version = r.version;
2536
2557
  }
2537
2558
  for (const [l, E] of s)
2538
2559
  this.payloads.get(l) !== E && (this.payloads.set(l, E), I = !0, this.payloadsDirty = !0);
2539
- return I ? (this.commitSnapshot(), this.notify(), !0) : (a.version = r.version, !1);
2560
+ return I ? (this.commitSnapshot(), this.notify(), !0) : (o.version = r.version, !1);
2540
2561
  }
2541
2562
  replaceFromWire(e) {
2542
2563
  const r = {
@@ -2553,21 +2574,21 @@ class Ni {
2553
2574
  if (r !== void 0 && this.snapshot.version !== r)
2554
2575
  return !1;
2555
2576
  let s = !1, n = null, i = null;
2556
- const a = () => (n || (n = new Map(this.snapshot.views)), n), o = () => (i || (i = new Map(this.snapshot.payloads)), i);
2577
+ const o = () => (n || (n = new Map(this.snapshot.views)), n), a = () => (i || (i = new Map(this.snapshot.payloads)), i);
2557
2578
  if (e.deleteViews && e.deleteViews.length > 0)
2558
2579
  for (const l of e.deleteViews)
2559
- a().delete(l) && (s = !0, this.structureChanged = !0);
2580
+ o().delete(l) && (s = !0, this.structureChanged = !0);
2560
2581
  if (e.upsertViews && e.upsertViews.length > 0)
2561
2582
  for (const [l, E] of e.upsertViews) {
2562
- const h = a(), T = h.get(l);
2563
- T !== E && (h.set(l, E), s = !0, T ? $(T, E, this.changedNodeIds) : (B(E, this.changedNodeIds), this.structureChanged = !0));
2583
+ const h = o(), T = h.get(l);
2584
+ T !== E && (h.set(l, E), s = !0, T ? $(T, E, this.changedNodeIds) : (V(E, this.changedNodeIds), this.structureChanged = !0));
2564
2585
  }
2565
2586
  if (e.deletePayloads && e.deletePayloads.length > 0)
2566
2587
  for (const l of e.deletePayloads)
2567
- o().delete(l) && (s = !0);
2588
+ a().delete(l) && (s = !0);
2568
2589
  if (e.upsertPayloads && e.upsertPayloads.length > 0)
2569
2590
  for (const [l, E] of e.upsertPayloads) {
2570
- const h = o();
2591
+ const h = a();
2571
2592
  h.get(l) !== E && (h.set(l, E), s = !0);
2572
2593
  }
2573
2594
  const I = e.rootViewId ?? this.snapshot.rootViewId;
@@ -2589,8 +2610,8 @@ class Ni {
2589
2610
  const r = this.snapshot, s = r.version !== e.version || r.rootViewId !== e.rootViewId || r.views.size !== e.views.size || r.payloads.size !== e.payloads.size;
2590
2611
  (r.rootViewId !== e.rootViewId || r.views.size !== e.views.size) && (this.structureChanged = !0);
2591
2612
  for (const [n, i] of e.views) {
2592
- const a = r.views.get(n);
2593
- a ? $(a, i, this.changedNodeIds) : (B(i, this.changedNodeIds), this.structureChanged = !0);
2613
+ const o = r.views.get(n);
2614
+ o ? $(o, i, this.changedNodeIds) : (V(i, this.changedNodeIds), this.structureChanged = !0);
2594
2615
  }
2595
2616
  for (const n of this.changedNodeIds)
2596
2617
  this.nodeVersions.set(n, (this.nodeVersions.get(n) ?? 0) + 1);
@@ -2622,7 +2643,7 @@ class Ni {
2622
2643
  if (r)
2623
2644
  return r;
2624
2645
  for (const s of this.snapshot.views.values()) {
2625
- const n = $t(s, e);
2646
+ const n = Xt(s, e);
2626
2647
  if (n)
2627
2648
  return n;
2628
2649
  }
@@ -2647,8 +2668,8 @@ class Ni {
2647
2668
  let e, r;
2648
2669
  if (this.viewsDirty) {
2649
2670
  const n = /* @__PURE__ */ new Map();
2650
- for (const [i, a] of this.views)
2651
- a.root && n.set(i, a.root);
2671
+ for (const [i, o] of this.views)
2672
+ o.root && n.set(i, o.root);
2652
2673
  e = n, this.viewsDirty = !1;
2653
2674
  } else
2654
2675
  e = this.snapshot.views;
@@ -2674,7 +2695,7 @@ class Ni {
2674
2695
  }
2675
2696
  }
2676
2697
  }
2677
- class di {
2698
+ class Di {
2678
2699
  streams = /* @__PURE__ */ new Map();
2679
2700
  listeners = /* @__PURE__ */ new Set();
2680
2701
  apply(e, r) {
@@ -2738,39 +2759,39 @@ class di {
2738
2759
  }
2739
2760
  getOrCreateStreamEntry(e) {
2740
2761
  let r = this.streams.get(e);
2741
- return r || (r = { store: new Ni() }, this.streams.set(e, r)), r;
2762
+ return r || (r = { store: new Ui() }, this.streams.set(e, r)), r;
2742
2763
  }
2743
2764
  notify(e) {
2744
2765
  for (const r of this.listeners)
2745
2766
  r(e);
2746
2767
  }
2747
2768
  }
2748
- function yi(t, e, r) {
2769
+ function Ri(t, e, r) {
2749
2770
  if (e.length === 0)
2750
2771
  return t;
2751
2772
  const s = /* @__PURE__ */ new Map();
2752
2773
  for (const n of e)
2753
2774
  s.set(n.nodeId, n);
2754
- return Wt(t, s);
2775
+ return Kt(t, s);
2755
2776
  }
2756
- function Wt(t, e, r) {
2777
+ function Kt(t, e, r) {
2757
2778
  const s = e.get(t.id);
2758
2779
  let n = t, i = !1;
2759
2780
  if (s?.textUpdates && s.textUpdates.length > 0) {
2760
- const u = Di(t, s.textUpdates);
2781
+ const u = gi(t, s.textUpdates);
2761
2782
  n = u.node, i = u.changed;
2762
2783
  }
2763
- let a = !1, o = n.props;
2784
+ let o = !1, a = n.props;
2764
2785
  if (s?.changedProps && s.changedProps.size > 0)
2765
- for (const [u, S] of s.changedProps.entries()) {
2766
- const f = o[u];
2767
- if (S === void 0)
2768
- (f !== void 0 || u in o) && (a || (o = V(o), a = !0), delete o[u]);
2769
- else if (X(S)) {
2770
- const A = V(S);
2771
- k(A, f) || (a || (o = V(o), a = !0), o[u] = A);
2786
+ for (const [u, N] of s.changedProps.entries()) {
2787
+ const c = a[u];
2788
+ if (N === void 0)
2789
+ (c !== void 0 || u in a) && (o || (a = B(a), o = !0), delete a[u]);
2790
+ else if (j(N)) {
2791
+ const A = B(N);
2792
+ k(A, c) || (o || (a = B(a), o = !0), a[u] = A);
2772
2793
  } else
2773
- k(S, f) || (a || (o = V(o), a = !0), o[u] = S);
2794
+ k(N, c) || (o || (a = B(a), o = !0), a[u] = N);
2774
2795
  }
2775
2796
  let I = !1, _ = n.styleIds;
2776
2797
  s?.styleIds !== void 0 && (jt(n.styleIds, s.styleIds) || (_ = s.styleIds, I = !0));
@@ -2779,36 +2800,37 @@ function Wt(t, e, r) {
2779
2800
  if (s?.removals && s.removals.length > 0 || s?.moves && s.moves.length > 0 || s?.inserts && s.inserts.length > 0) {
2780
2801
  const u = E.slice();
2781
2802
  if (s?.removals && s.removals.length > 0) {
2782
- const S = [...s.removals].sort((f, A) => A.index - f.index);
2783
- for (const f of S)
2784
- if (f.index >= 0 && f.index < u.length && u[f.index].id === f.nodeId)
2785
- u.splice(f.index, 1);
2803
+ const N = [...s.removals].sort((c, A) => A.index - c.index);
2804
+ for (const c of N)
2805
+ if (c.index >= 0 && c.index < u.length && u[c.index].id === c.nodeId)
2806
+ u.splice(c.index, 1);
2786
2807
  else {
2787
- const A = u.findIndex((R) => R.id === f.nodeId);
2808
+ const A = u.findIndex((w) => w.id === c.nodeId);
2788
2809
  A >= 0 && u.splice(A, 1);
2789
2810
  }
2790
2811
  h = !0;
2791
2812
  }
2792
2813
  if (s?.moves && s.moves.length > 0) {
2793
- const S = [...s.moves].sort((A, R) => A.toIndex - R.toIndex), f = /* @__PURE__ */ new Map();
2794
- for (const A of S) {
2795
- const R = u.findIndex((K) => K.id === A.nodeId);
2796
- R >= 0 && (f.set(A.nodeId, u[R]), u.splice(R, 1));
2797
- }
2798
- for (const A of S) {
2799
- const R = f.get(A.nodeId);
2800
- if (R) {
2814
+ const N = [...s.moves].sort((A, w) => A.toIndex - w.toIndex), c = /* @__PURE__ */ new Map();
2815
+ for (const A of N) {
2816
+ const w = u.findIndex((K) => K.id === A.nodeId);
2817
+ w >= 0 && (c.set(A.nodeId, u[w]), u.splice(w, 1));
2818
+ }
2819
+ for (const A of N) {
2820
+ const w = c.get(A.nodeId);
2821
+ if (w) {
2801
2822
  const K = Math.min(A.toIndex, u.length);
2802
- u.splice(K, 0, R);
2823
+ u.splice(K, 0, w);
2803
2824
  }
2804
2825
  }
2805
2826
  h = !0;
2806
2827
  }
2807
2828
  if (s?.inserts && s.inserts.length > 0) {
2808
- const S = [...s.inserts].sort((f, A) => f.index - A.index);
2809
- for (const f of S) {
2810
- const A = Math.min(f.index, u.length);
2811
- u.splice(A, 0, f.node);
2829
+ const N = [...s.inserts].sort((c, A) => c.index - A.index);
2830
+ for (const c of N) {
2831
+ u.some((w) => w.id === c.node.id) && Ci.warn(`Duplicate node id '${c.node.id}' (type '${c.node.type}') inserted next to an existing sibling — UI tree diverged from the server`);
2832
+ const A = Math.min(c.index, u.length);
2833
+ u.splice(A, 0, c.node);
2812
2834
  }
2813
2835
  h = !0;
2814
2836
  }
@@ -2816,58 +2838,58 @@ function Wt(t, e, r) {
2816
2838
  }
2817
2839
  let d;
2818
2840
  for (let u = 0; u < E.length; u++) {
2819
- const S = E[u], f = Wt(S, e);
2820
- f !== S && (d || (d = E.slice()), d[u] = f);
2841
+ const N = E[u], c = Kt(N, e);
2842
+ c !== N && (d || (d = E.slice()), d[u] = c);
2821
2843
  }
2822
- return d && (E = d, h = !0), i || a || I || h ? !a && !h && !I ? n : {
2844
+ return d && (E = d, h = !0), i || o || I || h ? !o && !h && !I ? n : {
2823
2845
  id: t.id,
2824
2846
  type: t.type,
2825
- props: a ? o : n.props,
2847
+ props: o ? a : n.props,
2826
2848
  children: h ? E : l,
2827
2849
  styleIds: I ? _ : n.styleIds,
2828
2850
  ...t.sourceMarker ? { sourceMarker: t.sourceMarker } : {}
2829
2851
  } : t;
2830
2852
  }
2831
- function B(t, e) {
2853
+ function V(t, e) {
2832
2854
  if (e.add(t.id), t.children)
2833
2855
  for (const r of t.children)
2834
- B(r, e);
2856
+ V(r, e);
2835
2857
  }
2836
2858
  const x = [];
2837
- function wi(t) {
2859
+ function Li(t) {
2838
2860
  for (; x.length <= t; )
2839
2861
  x.push(/* @__PURE__ */ new Map());
2840
2862
  return x[t].clear(), x[t];
2841
2863
  }
2842
2864
  function $(t, e, r) {
2843
- Kt(t, e, r, 0);
2865
+ $t(t, e, r, 0);
2844
2866
  }
2845
- function Kt(t, e, r, s) {
2867
+ function $t(t, e, r, s) {
2846
2868
  if (t === e)
2847
2869
  return;
2848
- (t.type !== e.type || !Ci(t.props, e.props) || !jt(t.styleIds, e.styleIds)) && r.add(e.id);
2849
- const i = t.children ?? [], a = e.children ?? [];
2850
- if (i !== a) {
2851
- const o = wi(s);
2870
+ (t.type !== e.type || !Oi(t.props, e.props) || !jt(t.styleIds, e.styleIds)) && r.add(e.id);
2871
+ const i = t.children ?? [], o = e.children ?? [];
2872
+ if (i !== o) {
2873
+ const a = Li(s);
2852
2874
  for (const _ of i)
2853
- o.set(_.id, _);
2875
+ a.set(_.id, _);
2854
2876
  let I = !1;
2855
- for (let _ = 0; _ < a.length; _++) {
2856
- const l = a[_], E = o.get(l.id);
2857
- E ? (Kt(E, l, r, s + 1), !I && _ < i.length && i[_].id !== l.id && (I = !0)) : (B(l, r), I = !0);
2877
+ for (let _ = 0; _ < o.length; _++) {
2878
+ const l = o[_], E = a.get(l.id);
2879
+ E ? ($t(E, l, r, s + 1), !I && _ < i.length && i[_].id !== l.id && (I = !0)) : (V(l, r), I = !0);
2858
2880
  }
2859
- (i.length !== a.length || I) && r.add(e.id);
2881
+ (i.length !== o.length || I) && r.add(e.id);
2860
2882
  }
2861
2883
  }
2862
- function Ci(t, e) {
2884
+ function Oi(t, e) {
2863
2885
  return k(t, e);
2864
2886
  }
2865
- function $t(t, e) {
2887
+ function Xt(t, e) {
2866
2888
  if (t.id === e)
2867
2889
  return t;
2868
2890
  if (t.children)
2869
2891
  for (const r of t.children) {
2870
- const s = $t(r, e);
2892
+ const s = Xt(r, e);
2871
2893
  if (s)
2872
2894
  return s;
2873
2895
  }
@@ -2875,24 +2897,24 @@ function $t(t, e) {
2875
2897
  function jt(t, e) {
2876
2898
  return k(t, e);
2877
2899
  }
2878
- function Ui(t, e) {
2900
+ function mi(t, e) {
2879
2901
  if (e.length === 0)
2880
2902
  return t;
2881
- const r = [...e].sort((i, a) => i.start - a.start);
2903
+ const r = [...e].sort((i, o) => i.start - o.start);
2882
2904
  let s = t, n = 0;
2883
2905
  for (const i of r) {
2884
- const a = nt(i.start + n, 0, s.length);
2906
+ const o = nt(i.start + n, 0, s.length);
2885
2907
  if (i.end == null) {
2886
- const l = s.slice(a), E = Ri(l, i.insertedText);
2887
- s = s.slice(0, a) + i.insertedText + l.slice(E), n += i.insertedText.length - E;
2908
+ const l = s.slice(o), E = Fi(l, i.insertedText);
2909
+ s = s.slice(0, o) + i.insertedText + l.slice(E), n += i.insertedText.length - E;
2888
2910
  continue;
2889
2911
  }
2890
- const o = i.end + n, I = nt(o, a, s.length), _ = I - a;
2891
- s = s.slice(0, a) + i.insertedText + s.slice(I), n += i.insertedText.length - _;
2912
+ const a = i.end + n, I = nt(a, o, s.length), _ = I - o;
2913
+ s = s.slice(0, o) + i.insertedText + s.slice(I), n += i.insertedText.length - _;
2892
2914
  }
2893
2915
  return s;
2894
2916
  }
2895
- function Di(t, e, r) {
2917
+ function gi(t, e, r) {
2896
2918
  if (e.length === 0)
2897
2919
  return { node: t, changed: !1 };
2898
2920
  const s = /* @__PURE__ */ new Map();
@@ -2900,9 +2922,9 @@ function Di(t, e, r) {
2900
2922
  const i = s.get(n.nodeId);
2901
2923
  i ? i.push(n) : s.set(n.nodeId, [n]);
2902
2924
  }
2903
- return Xt(t, s);
2925
+ return zt(t, s);
2904
2926
  }
2905
- function Xt(t, e, r) {
2927
+ function zt(t, e, r) {
2906
2928
  const s = e.get(t.id) ?? [];
2907
2929
  let n = !1, i = t.props;
2908
2930
  if (s.length > 0) {
@@ -2912,27 +2934,27 @@ function Xt(t, e, r) {
2912
2934
  E ? E.push(l) : _.set(l.propertyName, [l]);
2913
2935
  }
2914
2936
  for (const [l, E] of _.entries()) {
2915
- const h = i[l], d = Ui(typeof h == "string" ? h : "", E);
2916
- n || (i = V(i), n = !0), i[l] = d;
2937
+ const h = i[l], d = mi(typeof h == "string" ? h : "", E);
2938
+ n || (i = B(i), n = !0), i[l] = d;
2917
2939
  }
2918
2940
  }
2919
- let a = !1;
2920
- const o = t.children ?? [];
2921
- let I = o;
2922
- if (o.length > 0) {
2941
+ let o = !1;
2942
+ const a = t.children ?? [];
2943
+ let I = a;
2944
+ if (a.length > 0) {
2923
2945
  let _;
2924
- for (let l = 0; l < o.length; l++) {
2925
- const E = o[l], h = Xt(E, e);
2926
- h.changed && (_ || (_ = [...o]), _[l] = h.node);
2946
+ for (let l = 0; l < a.length; l++) {
2947
+ const E = a[l], h = zt(E, e);
2948
+ h.changed && (_ || (_ = [...a]), _[l] = h.node);
2927
2949
  }
2928
- _ && (I = _, a = !0);
2950
+ _ && (I = _, o = !0);
2929
2951
  }
2930
- return !n && !a ? { node: t, changed: !1 } : {
2952
+ return !n && !o ? { node: t, changed: !1 } : {
2931
2953
  node: {
2932
2954
  id: t.id,
2933
2955
  type: t.type,
2934
2956
  props: n ? i : t.props,
2935
- children: a ? I : o,
2957
+ children: o ? I : a,
2936
2958
  styleIds: t.styleIds,
2937
2959
  ...t.sourceMarker ? { sourceMarker: t.sourceMarker } : {}
2938
2960
  },
@@ -2942,14 +2964,14 @@ function Xt(t, e, r) {
2942
2964
  function nt(t, e, r) {
2943
2965
  return Math.max(e, Math.min(r, t));
2944
2966
  }
2945
- function Ri(t, e) {
2967
+ function Fi(t, e) {
2946
2968
  const r = Math.min(t.length, e.length);
2947
2969
  let s = 0;
2948
2970
  for (; s < r && t.charCodeAt(s) === e.charCodeAt(s); )
2949
2971
  s++;
2950
2972
  return s;
2951
2973
  }
2952
- function V(t) {
2974
+ function B(t) {
2953
2975
  const e = {}, r = Object.keys(t);
2954
2976
  for (let s = 0; s < r.length; s++) {
2955
2977
  const n = r[s];
@@ -2957,7 +2979,7 @@ function V(t) {
2957
2979
  }
2958
2980
  return e;
2959
2981
  }
2960
- function X(t) {
2982
+ function j(t) {
2961
2983
  return typeof t == "object" && t !== null && !Array.isArray(t);
2962
2984
  }
2963
2985
  function k(t, e) {
@@ -2971,7 +2993,7 @@ function k(t, e) {
2971
2993
  return !1;
2972
2994
  return !0;
2973
2995
  }
2974
- if (X(t) && X(e)) {
2996
+ if (j(t) && j(e)) {
2975
2997
  const r = Object.keys(t), s = Object.keys(e);
2976
2998
  if (r.length !== s.length)
2977
2999
  return !1;
@@ -2982,22 +3004,22 @@ function k(t, e) {
2982
3004
  }
2983
3005
  return !1;
2984
3006
  }
2985
- function Li(t) {
3007
+ function bi(t) {
2986
3008
  return new Worker(
2987
- "" + new URL("assets/ui-worker-D4hZvsPd.js", import.meta.url).href,
3009
+ "" + new URL("assets/ui-worker-Cnoq4Ubv.js", import.meta.url).href,
2988
3010
  {
2989
3011
  type: "module",
2990
3012
  name: t?.name
2991
3013
  }
2992
3014
  );
2993
3015
  }
2994
- const U = Jt("IkonUiCore");
2995
- class gi {
3016
+ const D = it("IkonUiCore");
3017
+ class Mi {
2996
3018
  unsubscribeProtocolMessages;
2997
3019
  unsubscribeState;
2998
3020
  client = null;
2999
3021
  lastConnectedSessionId = void 0;
3000
- uiStore = new di();
3022
+ uiStore = new Di();
3001
3023
  uiWorker = null;
3002
3024
  uiStyles = /* @__PURE__ */ new Map();
3003
3025
  uiUpdateListeners = /* @__PURE__ */ new Set();
@@ -3059,23 +3081,23 @@ class gi {
3059
3081
  }
3060
3082
  if (n === "connected") {
3061
3083
  const i = this.client?.sessionId;
3062
- this.lastConnectedSessionId !== void 0 && i !== this.lastConnectedSessionId && (U.info(`SessionId changed (${this.lastConnectedSessionId} → ${i}), clearing UI cache so the server can resend a fresh snapshot under the new SessionId`), this.clearAllState()), this.lastConnectedSessionId = i;
3084
+ this.lastConnectedSessionId !== void 0 && i !== this.lastConnectedSessionId && (D.info(`SessionId changed (${this.lastConnectedSessionId} → ${i}), clearing UI cache so the server can resend a fresh snapshot under the new SessionId`), this.clearAllState()), this.lastConnectedSessionId = i;
3063
3085
  }
3064
3086
  });
3065
3087
  }
3066
3088
  startUiWorker(e) {
3067
3089
  try {
3068
- this.uiWorker = new Li();
3090
+ this.uiWorker = new bi();
3069
3091
  } catch (n) {
3070
- U.warn("Failed to create UI worker, falling back to main thread", n), this.uiWorker = null;
3092
+ D.warn("Failed to create UI worker, falling back to main thread", n), this.uiWorker = null;
3071
3093
  return;
3072
3094
  }
3073
3095
  const r = e?.threading?.flushIntervalMs, s = e?.threading?.maxLatencyMs;
3074
3096
  this.uiWorker.postMessage({ type: "configure", flushIntervalMs: r, maxLatencyMs: s }), this.uiWorker.addEventListener("message", (n) => {
3075
3097
  this.handleUiStoreOpBatch(n.data);
3076
3098
  }), this.uiWorker.addEventListener("error", (n) => {
3077
- const i = [n.message, n.filename, n.lineno, n.colno].filter((a) => a != null && String(a).length > 0);
3078
- U.warn(`UI worker failed, falling back to main thread: ${i.join(" ")}`.trim()), this.uiWorker?.terminate(), this.uiWorker = null, this.rehydrateStoresForMainThread();
3099
+ const i = [n.message, n.filename, n.lineno, n.colno].filter((o) => o != null && String(o).length > 0);
3100
+ D.warn(`UI worker failed, falling back to main thread: ${i.join(" ")}`.trim()), this.uiWorker?.terminate(), this.uiWorker = null, this.rehydrateStoresForMainThread();
3079
3101
  });
3080
3102
  }
3081
3103
  rehydrateStoresForMainThread() {
@@ -3103,7 +3125,7 @@ class gi {
3103
3125
  const r = e.slice().buffer;
3104
3126
  this.uiWorker.postMessage({ type: "protocol", message: r }, [r]);
3105
3127
  } catch (r) {
3106
- U.warn("Failed to forward message to UI worker", r);
3128
+ D.warn("Failed to forward message to UI worker", r);
3107
3129
  }
3108
3130
  }
3109
3131
  handleUiStoreOpBatch(e) {
@@ -3143,7 +3165,7 @@ class gi {
3143
3165
  const i = n.views.get(n.rootViewId);
3144
3166
  if (!i)
3145
3167
  return;
3146
- const a = {
3168
+ const o = {
3147
3169
  snapshot: {
3148
3170
  type: "full",
3149
3171
  version: n.version ?? 0,
@@ -3152,12 +3174,12 @@ class gi {
3152
3174
  },
3153
3175
  payloads: n.payloads
3154
3176
  };
3155
- this.notifyUiUpdate(s, a);
3177
+ this.notifyUiUpdate(s, o);
3156
3178
  return;
3157
3179
  }
3158
3180
  }
3159
3181
  handleProtocolMessage(e) {
3160
- switch (zt(e)) {
3182
+ switch (Jt(e)) {
3161
3183
  case L.CORE_GLOBAL_STATE:
3162
3184
  this.handleGlobalState(e);
3163
3185
  return;
@@ -3181,27 +3203,27 @@ class gi {
3181
3203
  }
3182
3204
  }
3183
3205
  handleGlobalState(e) {
3184
- Rn(e).then((r) => {
3206
+ gn(e).then((r) => {
3185
3207
  const s = /* @__PURE__ */ new Set();
3186
3208
  for (const n of Object.values(r.UIStreams ?? {}))
3187
3209
  s.add(n.StreamId), this.uiStore.setCategory(n.StreamId, n.Info?.Category);
3188
3210
  for (const n of this.uiStore.getSnapshots())
3189
3211
  s.has(n.streamId) || (this.uiStore.remove(n.streamId), this.notifyUiStreamCleared(n.streamId));
3190
3212
  }).catch((r) => {
3191
- U.error("Failed to handle global state", r);
3213
+ D.error("Failed to handle global state", r);
3192
3214
  });
3193
3215
  }
3194
3216
  handleUiUpdate(e) {
3195
3217
  const r = rt(e), s = `${r.senderId}_${r.trackId}`;
3196
- Ms(e).then((n) => {
3197
- const i = Ai(n);
3218
+ vs(e).then((n) => {
3219
+ const i = yi(n);
3198
3220
  this.notifyUiUpdate(s, i), this.uiStore.apply(s, i), this.sendUiUpdateAck(r.trackId, i.snapshot.version, r.senderId);
3199
3221
  }).catch((n) => {
3200
- n instanceof D ? U.warn("Failed to parse UI update", n.causeError ?? n) : U.error("Failed to apply UI update", n);
3222
+ n instanceof R ? D.warn("Failed to parse UI update", n.causeError ?? n) : D.error("Failed to apply UI update", n);
3201
3223
  });
3202
3224
  }
3203
3225
  handleUiStyles(e) {
3204
- ns(e).then((r) => {
3226
+ ls(e).then((r) => {
3205
3227
  if (!r.StyleId) return;
3206
3228
  const s = {
3207
3229
  styleId: r.StyleId,
@@ -3210,11 +3232,11 @@ class gi {
3210
3232
  };
3211
3233
  this.uiStyles.set(s.styleId, s), this.notifyUiStyle(s);
3212
3234
  }).catch((r) => {
3213
- U.error("Failed to handle UI styles", r);
3235
+ D.error("Failed to handle UI styles", r);
3214
3236
  });
3215
3237
  }
3216
3238
  handleUiStylesBatch(e) {
3217
- hs(e).then((r) => {
3239
+ Ts(e).then((r) => {
3218
3240
  if (r.Styles)
3219
3241
  for (const s of r.Styles) {
3220
3242
  if (!s.StyleId) continue;
@@ -3226,18 +3248,18 @@ class gi {
3226
3248
  this.uiStyles.set(n.styleId, n), this.notifyUiStyle(n);
3227
3249
  }
3228
3250
  }).catch((r) => {
3229
- U.error("Failed to handle UI styles batch", r);
3251
+ D.error("Failed to handle UI styles batch", r);
3230
3252
  });
3231
3253
  }
3232
3254
  handleUiStylesDelete(e) {
3233
- Rs(e).then((r) => {
3255
+ gs(e).then((r) => {
3234
3256
  if (!(!r.StyleIds || r.StyleIds.length === 0)) {
3235
3257
  for (const s of r.StyleIds)
3236
3258
  this.uiStyles.delete(s);
3237
3259
  this.notifyUiStyleDelete(r.StyleIds);
3238
3260
  }
3239
3261
  }).catch((r) => {
3240
- U.error("Failed to handle UI styles delete", r);
3262
+ D.error("Failed to handle UI styles delete", r);
3241
3263
  });
3242
3264
  }
3243
3265
  handleClearStream(e) {
@@ -3263,18 +3285,18 @@ class gi {
3263
3285
  sendUiUpdateAck(e, r, s) {
3264
3286
  if (this.client && !(!Number.isFinite(r) || r < 0))
3265
3287
  try {
3266
- const n = s !== void 0 ? { trackId: e, targetIds: [s] } : { trackId: e }, i = xs({ Version: r }, this.client.sessionId ?? 0, n);
3288
+ const n = s !== void 0 ? { trackId: e, targetIds: [s] } : { trackId: e }, i = Ks({ Version: r }, this.client.sessionId ?? 0, n);
3267
3289
  this.client.sendProtocolMessage(i);
3268
3290
  } catch (n) {
3269
- U.warn("Failed to send UI update ack", n);
3291
+ D.warn("Failed to send UI update ack", n);
3270
3292
  }
3271
3293
  }
3272
3294
  }
3273
3295
  export {
3274
- Si as HandlerCache,
3275
- gi as IkonUiCore,
3276
- di as UiStore,
3277
- Ni as UiStreamStore,
3278
- D as UiUpdateParseError,
3279
- Ai as parseUiUpdate
3296
+ wi as HandlerCache,
3297
+ Mi as IkonUiCore,
3298
+ Di as UiStore,
3299
+ Ui as UiStreamStore,
3300
+ R as UiUpdateParseError,
3301
+ yi as parseUiUpdate
3280
3302
  };