@ikonai/sdk 1.0.77 → 1.0.78

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,7 +1,7 @@
1
1
  const Ua = {
2
2
  Compressed: 8
3
3
  };
4
- function pT(t) {
4
+ function ET(t) {
5
5
  return t;
6
6
  }
7
7
  function He(t) {
@@ -13,30 +13,30 @@ function ut(t) {
13
13
  return He(t) & 4294901760;
14
14
  }
15
15
  function Z(t) {
16
- const e = Re(t), n = new DataView(e.buffer, e.byteOffset, e.byteLength);
16
+ const e = be(t), n = new DataView(e.buffer, e.byteOffset, e.byteLength);
17
17
  if (e.length < 27)
18
18
  throw new Error("Protocol payload too short");
19
19
  const r = n.getUint32(0, !0), i = n.getUint32(4, !0), s = n.getUint32(8, !0), o = n.getUint32(12, !0), a = n.getUint32(16, !0), c = n.getUint32(20, !0), l = n.getUint8(24), d = n.getUint8(25), h = n.getUint8(26);
20
20
  if (27 + c * 4 > e.length)
21
21
  throw new Error("Protocol header exceeds payload length");
22
- const p = [];
22
+ const E = [];
23
23
  let _ = 27;
24
24
  for (let I = 0; I < c; I++)
25
- p.push(n.getUint32(_, !0)), _ += 4;
25
+ E.push(n.getUint32(_, !0)), _ += 4;
26
26
  return {
27
27
  length: r,
28
28
  opcode: i,
29
29
  senderId: s,
30
30
  trackId: o,
31
31
  sequenceId: a,
32
- targetIds: p,
32
+ targetIds: E,
33
33
  payloadVersion: l,
34
34
  payloadType: d,
35
35
  flags: h
36
36
  };
37
37
  }
38
38
  function z(t, e, n) {
39
- const r = Re(t), i = Z(r);
39
+ const r = be(t), i = Z(r);
40
40
  if (e !== void 0 && i.opcode !== e)
41
41
  throw new Error(`Unexpected opcode ${i.opcode}`);
42
42
  if (i.payloadType !== 8)
@@ -44,8 +44,8 @@ function z(t, e, n) {
44
44
  const s = 27 + i.targetIds.length * 4;
45
45
  return r.subarray(s, i.length);
46
46
  }
47
- async function ye(t, e, n) {
48
- const r = Re(t), i = Z(r);
47
+ async function Re(t, e, n) {
48
+ const r = be(t), i = Z(r);
49
49
  if (e !== void 0 && i.opcode !== e)
50
50
  throw new Error(`Unexpected opcode ${i.opcode}`);
51
51
  if (i.payloadType !== 8)
@@ -55,11 +55,11 @@ async function ye(t, e, n) {
55
55
  return (i.flags & Ua.Compressed) !== 0 && (o = await La(o)), o;
56
56
  }
57
57
  function k(t, e, n, r, i) {
58
- const s = i?.trackId ?? 0, o = i?.sequenceId ?? 0, a = i?.flags ?? 0, c = i?.targetIds ?? [], l = i?.payloadType ?? 8, d = 27 + c.length * 4, h = d + e.length, u = new Uint8Array(h), p = new DataView(u.buffer);
59
- p.setUint32(0, h, !0), p.setUint32(4, t >>> 0, !0), p.setUint32(8, r >>> 0, !0), p.setUint32(12, s >>> 0, !0), p.setUint32(16, o >>> 0, !0), p.setUint32(20, c.length >>> 0, !0), p.setUint8(24, n & 255), p.setUint8(25, l & 255), p.setUint8(26, a & 255);
58
+ const s = i?.trackId ?? 0, o = i?.sequenceId ?? 0, a = i?.flags ?? 0, c = i?.targetIds ?? [], l = i?.payloadType ?? 8, d = 27 + c.length * 4, h = d + e.length, u = new Uint8Array(h), E = new DataView(u.buffer);
59
+ E.setUint32(0, h, !0), E.setUint32(4, t >>> 0, !0), E.setUint32(8, r >>> 0, !0), E.setUint32(12, s >>> 0, !0), E.setUint32(16, o >>> 0, !0), E.setUint32(20, c.length >>> 0, !0), E.setUint8(24, n & 255), E.setUint8(25, l & 255), E.setUint8(26, a & 255);
60
60
  let _ = 27;
61
61
  for (let I = 0; I < c.length; I++)
62
- p.setUint32(_, c[I] >>> 0, !0), _ += 4;
62
+ E.setUint32(_, c[I] >>> 0, !0), _ += 4;
63
63
  return u.set(e, d), u;
64
64
  }
65
65
  async function La(t) {
@@ -151,7 +151,7 @@ class y {
151
151
  this.writeFieldHeader(e, n, r.length), this.buffer.writeBytes(r);
152
152
  }
153
153
  writeFieldHeader(e, n, r) {
154
- this.buffer.writeUInt32(e >>> 0), this.buffer.writeByte(Et(n)), Wa(n) && this.buffer.writeVarUInt(r >>> 0);
154
+ this.buffer.writeUInt32(e >>> 0), this.buffer.writeByte(pt(n)), Wa(n) && this.buffer.writeVarUInt(r >>> 0);
155
155
  }
156
156
  }
157
157
  class gt {
@@ -258,7 +258,7 @@ class gt {
258
258
  }
259
259
  finish() {
260
260
  const e = new le();
261
- return e.writeByte(Et(this.elementType)), e.writeVarUInt(this.count), e.writeBytes(this.payload.toUint8Array()), e.toUint8Array();
261
+ return e.writeByte(pt(this.elementType)), e.writeVarUInt(this.count), e.writeBytes(this.payload.toUint8Array()), e.toUint8Array();
262
262
  }
263
263
  ensureElementType(e) {
264
264
  if (this.elementType !== e)
@@ -267,7 +267,7 @@ class gt {
267
267
  }
268
268
  class dn {
269
269
  constructor(e, n) {
270
- this.keyType = e, this.valueType = n, En(e);
270
+ this.keyType = e, this.valueType = n, pn(e);
271
271
  }
272
272
  payload = new le();
273
273
  count = 0;
@@ -283,7 +283,7 @@ class dn {
283
283
  if (this.entryOpen)
284
284
  throw new Error("Dictionary entry not completed");
285
285
  const e = new le();
286
- return e.writeByte(Et(this.keyType)), e.writeByte(Et(this.valueType)), e.writeVarUInt(this.count), e.writeBytes(this.payload.toUint8Array()), e.toUint8Array();
286
+ return e.writeByte(pt(this.keyType)), e.writeByte(pt(this.valueType)), e.writeVarUInt(this.count), e.writeBytes(this.payload.toUint8Array()), e.toUint8Array();
287
287
  }
288
288
  }
289
289
  class Pa {
@@ -484,7 +484,7 @@ class P {
484
484
  offset;
485
485
  end;
486
486
  static create(e) {
487
- const n = Re(e);
487
+ const n = be(e);
488
488
  if (n.length < 2)
489
489
  throw new Error("Teleport payload too short");
490
490
  if (n[0] !== Tr || n[n.length - 1] !== wr)
@@ -502,7 +502,7 @@ class P {
502
502
  const n = this.buffer[this.offset++], r = n >> 4 & 15;
503
503
  if ((n & 15) !== 0)
504
504
  throw new Error("Teleport field flags must be zero");
505
- const i = ge(r);
505
+ const i = Se(r);
506
506
  let s;
507
507
  if (i >= 0)
508
508
  x(this.buffer, this.offset, i), s = this.buffer.subarray(this.offset, this.offset + i), this.offset += i;
@@ -630,7 +630,7 @@ class hn {
630
630
  this.count = G(e, r, "ArrayMalformed"), this.offset = r.offset;
631
631
  }
632
632
  static create(e) {
633
- return new hn(Re(e));
633
+ return new hn(be(e));
634
634
  }
635
635
  next() {
636
636
  if (this.index >= this.count) {
@@ -651,38 +651,38 @@ class hn {
651
651
  case 4:
652
652
  case 6:
653
653
  case 14: {
654
- const e = ge(this.elementType);
654
+ const e = Se(this.elementType);
655
655
  x(this.payload, this.offset, e);
656
656
  const n = this.payload.subarray(this.offset, this.offset + e);
657
- return this.offset += e, new De(this.elementType, n);
657
+ return this.offset += e, new Oe(this.elementType, n);
658
658
  }
659
659
  case 12:
660
660
  case 13: {
661
661
  const e = { offset: this.offset }, n = G(this.payload, e, "ArrayMalformed");
662
662
  x(this.payload, e.offset, n);
663
663
  const r = this.payload.subarray(e.offset, e.offset + n);
664
- return this.offset = e.offset + n, new De(this.elementType, r);
664
+ return this.offset = e.offset + n, new Oe(this.elementType, r);
665
665
  }
666
666
  case 11: {
667
667
  const e = { offset: this.offset }, n = G(this.payload, e, "ArrayMalformed");
668
668
  x(this.payload, e.offset, n);
669
669
  const r = this.payload.subarray(e.offset, e.offset + n);
670
- return this.offset = e.offset + n, new De(11, r);
670
+ return this.offset = e.offset + n, new Oe(11, r);
671
671
  }
672
672
  case 9: {
673
- const e = pn(this.payload, this.offset), n = this.payload.subarray(this.offset, this.offset + e);
674
- return this.offset += e, new De(9, n);
673
+ const e = En(this.payload, this.offset), n = this.payload.subarray(this.offset, this.offset + e);
674
+ return this.offset += e, new Oe(9, n);
675
675
  }
676
676
  case 10: {
677
677
  const e = mn(this.payload, this.offset), n = this.payload.subarray(this.offset, this.offset + e);
678
- return this.offset += e, new De(10, n);
678
+ return this.offset += e, new Oe(10, n);
679
679
  }
680
680
  default:
681
681
  throw new Error(`Unsupported array element type ${O[this.elementType]}`);
682
682
  }
683
683
  }
684
684
  }
685
- class De extends J {
685
+ class Oe extends J {
686
686
  constructor(e, n) {
687
687
  super(e, n);
688
688
  }
@@ -699,12 +699,12 @@ class fn {
699
699
  throw new Error("Dictionary payload too short");
700
700
  if (this.keyType = e[0] >> 4 & 15, this.valueType = e[1] >> 4 & 15, (e[0] & 15) !== 0 || (e[1] & 15) !== 0)
701
701
  throw new Error("Dictionary key/value flags must be zero");
702
- En(this.keyType);
702
+ pn(this.keyType);
703
703
  const n = { offset: 2 };
704
704
  this.count = G(e, n, "DictMalformed"), this.offset = n.offset;
705
705
  }
706
706
  static create(e) {
707
- return new fn(Re(e));
707
+ return new fn(be(e));
708
708
  }
709
709
  next() {
710
710
  if (this.index >= this.count) {
@@ -716,7 +716,7 @@ class fn {
716
716
  return this.index++, new Ba(e, n);
717
717
  }
718
718
  readKey() {
719
- const e = ge(this.keyType);
719
+ const e = Se(this.keyType);
720
720
  if (e >= 0) {
721
721
  x(this.payload, this.offset, e);
722
722
  const n = this.payload.subarray(this.offset, this.offset + e);
@@ -746,7 +746,7 @@ class fn {
746
746
  return this.offset = e.offset + n, new J(11, r);
747
747
  }
748
748
  case 9: {
749
- const e = pn(this.payload, this.offset), n = this.payload.subarray(this.offset, this.offset + e);
749
+ const e = En(this.payload, this.offset), n = this.payload.subarray(this.offset, this.offset + e);
750
750
  return this.offset += e, new J(9, n);
751
751
  }
752
752
  case 10: {
@@ -762,7 +762,7 @@ class fn {
762
762
  case 6:
763
763
  case 14:
764
764
  case 1: {
765
- const e = ge(this.valueType);
765
+ const e = Se(this.valueType);
766
766
  x(this.payload, this.offset, e);
767
767
  const n = this.payload.subarray(this.offset, this.offset + e);
768
768
  return this.offset += e, new J(this.valueType, n);
@@ -918,7 +918,7 @@ function G(t, e, n) {
918
918
  function xa(t) {
919
919
  return t < 128 ? 1 : t < 16384 ? 2 : t < 2097152 ? 3 : t < 268435456 ? 4 : 5;
920
920
  }
921
- function Et(t, e = 0) {
921
+ function pt(t, e = 0) {
922
922
  if ((e & 240) !== 0)
923
923
  throw new Error("Teleport flags must fit into 4 bits");
924
924
  return (t & 15) << 4 | e & 15;
@@ -926,7 +926,7 @@ function Et(t, e = 0) {
926
926
  function Wa(t) {
927
927
  return t === 12 || t === 13 || t === 9 || t === 11 || t === 10;
928
928
  }
929
- function ge(t) {
929
+ function Se(t) {
930
930
  switch (t) {
931
931
  case 3:
932
932
  case 5:
@@ -946,7 +946,7 @@ function ge(t) {
946
946
  return -1;
947
947
  }
948
948
  }
949
- function En(t) {
949
+ function pn(t) {
950
950
  if (t === 9 || t === 11 || t === 10 || t === 1)
951
951
  throw new Error("Dictionary keys must be primitive Teleport types");
952
952
  }
@@ -957,13 +957,13 @@ function x(t, e, n) {
957
957
  function Va(t, e) {
958
958
  return (t[e] | t[e + 1] << 8 | t[e + 2] << 16 | t[e + 3] << 24) >>> 0;
959
959
  }
960
- function pn(t, e) {
960
+ function En(t, e) {
961
961
  if (e >= t.length)
962
962
  throw new Error("Array payload exceeds bounds");
963
963
  const n = t[e], r = n >> 4 & 15;
964
964
  if ((n & 15) !== 0)
965
965
  throw new Error("Array flags must be zero");
966
- const i = { offset: e + 1 }, s = G(t, i, "ArrayMalformed"), o = ge(r);
966
+ const i = { offset: e + 1 }, s = G(t, i, "ArrayMalformed"), o = Se(r);
967
967
  if (o >= 0) {
968
968
  const c = o * s;
969
969
  return x(t, i.offset, c), i.offset + c - e;
@@ -979,7 +979,7 @@ function mn(t, e) {
979
979
  const n = t[e] >> 4 & 15, r = t[e + 1] >> 4 & 15;
980
980
  if ((t[e] & 15) !== 0 || (t[e + 1] & 15) !== 0)
981
981
  throw new Error("Dictionary key/value flags must be zero");
982
- En(n);
982
+ pn(n);
983
983
  const i = { offset: e + 2 }, s = G(t, i, "DictMalformed");
984
984
  let o = i.offset;
985
985
  for (let a = 0; a < s; a++)
@@ -987,7 +987,7 @@ function mn(t, e) {
987
987
  return o - e;
988
988
  }
989
989
  function Kt(t, e, n, r) {
990
- const i = ge(t);
990
+ const i = Se(t);
991
991
  if (i >= 0)
992
992
  return x(e, n, i), n + i;
993
993
  switch (t) {
@@ -1001,7 +1001,7 @@ function Kt(t, e, n, r) {
1001
1001
  return x(e, s.offset, o), s.offset + o;
1002
1002
  }
1003
1003
  case 9:
1004
- return n + pn(e, n);
1004
+ return n + En(e, n);
1005
1005
  case 10:
1006
1006
  return n + mn(e, n);
1007
1007
  default:
@@ -1011,14 +1011,14 @@ function Kt(t, e, n, r) {
1011
1011
  function xn(t) {
1012
1012
  return Array.from(t).map((e) => e.toString(16).padStart(2, "0")).join("");
1013
1013
  }
1014
- function Re(t) {
1014
+ function be(t) {
1015
1015
  return t instanceof Uint8Array ? t : new Uint8Array(t);
1016
1016
  }
1017
1017
  let Ot;
1018
1018
  function _n() {
1019
1019
  return Ot === void 0 && (Ot = typeof CompressionStream < "u" && typeof DecompressionStream < "u"), Ot;
1020
1020
  }
1021
- var pe = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.Trace = 1] = "Trace", t[t.Debug = 2] = "Debug", t[t.Info = 4] = "Info", t[t.Warning = 8] = "Warning", t[t.Error = 16] = "Error", t[t.Critical = 32] = "Critical", t[t.Event = 64] = "Event", t[t.Usage = 128] = "Usage", t[t.Exception = 256] = "Exception", t))(pe || {}), gr = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(gr || {}), Ie = /* @__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))(Ie || {}), be = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t[t.Native = 32] = "Native", t))(be || {}), A = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.WebSocket = 1] = "WebSocket", t[t.WebSocketProxy = 2] = "WebSocketProxy", t[t.WebTransport = 4] = "WebTransport", t[t.WebTransportProxy = 8] = "WebTransportProxy", t[t.Tcp = 16] = "Tcp", t[t.TcpProxy = 32] = "TcpProxy", t[t.Https = 64] = "Https", t[t.WebRTC = 128] = "WebRTC", t[t.TcpTls = 256] = "TcpTls", t[t.Udp = 512] = "Udp", t[t.UdpDtls = 1024] = "UdpDtls", t))(A || {}), Sr = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.SendBackToSender = 1] = "SendBackToSender", t[t.Delayable = 2] = "Delayable", t[t.SendToUser = 4] = "SendToUser", t[t.Compressed = 8] = "Compressed", t[t.Unreliable = 16] = "Unreliable", t))(Sr || {}), Ne = /* @__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))(Ne || {}), Cr = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(Cr || {}), In = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(In || {}), ke = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ke || {}), Tn = /* @__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))(Tn || {}), wn = /* @__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))(wn || {}), Ar = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(Ar || {}), yr = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(yr || {}), w = /* @__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_ON_FRONTEND_RELOADED = 65563] = "CORE_ON_FRONTEND_RELOADED", 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_WEBRTC_ICE_SERVERS_REQUEST = 65573] = "CORE_WEBRTC_ICE_SERVERS_REQUEST", t[t.CORE_WEBRTC_ICE_SERVERS_RESPONSE = 65574] = "CORE_WEBRTC_ICE_SERVERS_RESPONSE", t[t.CORE_WEBRTC_CLOSE = 65575] = "CORE_WEBRTC_CLOSE", 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.ACTION_RESULT = 1048654] = "ACTION_RESULT", t[t.UI_RESYNC_REQUEST = 1048655] = "UI_RESYNC_REQUEST", 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))(w || {});
1021
+ var me = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.Trace = 1] = "Trace", t[t.Debug = 2] = "Debug", t[t.Info = 4] = "Info", t[t.Warning = 8] = "Warning", t[t.Error = 16] = "Error", t[t.Critical = 32] = "Critical", t[t.Event = 64] = "Event", t[t.Usage = 128] = "Usage", t[t.Exception = 256] = "Exception", t))(me || {}), gr = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(gr || {}), Te = /* @__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))(Te || {}), Ne = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t[t.Native = 32] = "Native", t))(Ne || {}), A = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.WebSocket = 1] = "WebSocket", t[t.WebSocketProxy = 2] = "WebSocketProxy", t[t.WebTransport = 4] = "WebTransport", t[t.WebTransportProxy = 8] = "WebTransportProxy", t[t.Tcp = 16] = "Tcp", t[t.TcpProxy = 32] = "TcpProxy", t[t.Https = 64] = "Https", t[t.WebRTC = 128] = "WebRTC", t[t.TcpTls = 256] = "TcpTls", t[t.Udp = 512] = "Udp", t[t.UdpDtls = 1024] = "UdpDtls", t))(A || {}), Sr = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.SendBackToSender = 1] = "SendBackToSender", t[t.Delayable = 2] = "Delayable", t[t.SendToUser = 4] = "SendToUser", t[t.Compressed = 8] = "Compressed", t[t.Unreliable = 16] = "Unreliable", t))(Sr || {}), ke = /* @__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))(ke || {}), Cr = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(Cr || {}), In = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(In || {}), ve = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ve || {}), Tn = /* @__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))(Tn || {}), wn = /* @__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))(wn || {}), Ar = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(Ar || {}), yr = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(yr || {}), w = /* @__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_ON_FRONTEND_RELOADED = 65563] = "CORE_ON_FRONTEND_RELOADED", 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_WEBRTC_ICE_SERVERS_REQUEST = 65573] = "CORE_WEBRTC_ICE_SERVERS_REQUEST", t[t.CORE_WEBRTC_ICE_SERVERS_RESPONSE = 65574] = "CORE_WEBRTC_ICE_SERVERS_RESPONSE", t[t.CORE_WEBRTC_CLOSE = 65575] = "CORE_WEBRTC_CLOSE", 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.ACTION_RESULT = 1048654] = "ACTION_RESULT", t[t.UI_RESYNC_REQUEST = 1048655] = "UI_RESYNC_REQUEST", 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))(w || {});
1022
1022
  const Rr = 2, Ga = 1048637, Ha = 727023925, $a = 3395085689, Ka = 3748161056;
1023
1023
  function Ya(t) {
1024
1024
  const e = new y(Rr);
@@ -1059,7 +1059,7 @@ function ec(t, e) {
1059
1059
  }
1060
1060
  }
1061
1061
  async function tc(t, e) {
1062
- const n = await ye(t, Xa);
1062
+ const n = await Re(t, Xa);
1063
1063
  return Za(n, e);
1064
1064
  }
1065
1065
  const nc = 1048654, rc = 2838554230, ic = 3673535008, sc = 3748161056;
@@ -1100,18 +1100,18 @@ function lc(t, e) {
1100
1100
  }
1101
1101
  }
1102
1102
  async function uc(t, e) {
1103
- const n = await ye(t, nc);
1103
+ const n = await Re(t, nc);
1104
1104
  return ac(n, e);
1105
1105
  }
1106
1106
  const kr = 1, dc = 1048642, hc = 3748018590;
1107
1107
  function fc(t) {
1108
1108
  const e = {};
1109
- return Ec(e), t && Object.assign(e, t), e;
1109
+ return pc(e), t && Object.assign(e, t), e;
1110
1110
  }
1111
- function Ec(t) {
1111
+ function pc(t) {
1112
1112
  return t.Path = "", t;
1113
1113
  }
1114
- function pc(t) {
1114
+ function Ec(t) {
1115
1115
  const e = new y(kr);
1116
1116
  return mc(t, e), e.finish();
1117
1117
  }
@@ -1119,7 +1119,7 @@ function mc(t, e) {
1119
1119
  e.writeStringField(hc, t.Path);
1120
1120
  }
1121
1121
  function _c(t, e, n) {
1122
- const r = pc(t);
1122
+ const r = Ec(t);
1123
1123
  return k(dc, r, kr, e, n);
1124
1124
  }
1125
1125
  const Ic = 161083277, Tc = 265814330, wc = 1368629611, gc = 2431514951, Sc = 2514959030, Cc = 2745379226, Ac = 3282782683, yc = 3284746250, Rc = 4101844078;
@@ -1238,13 +1238,13 @@ function Pc(t) {
1238
1238
  e.push(n.asString());
1239
1239
  return e;
1240
1240
  }
1241
- const Qe = 2, Ur = 76337612, Lr = 185396121, Mr = 250031587, Pr = 388632637, Fr = 417197284, Br = 425972532, xr = 469070965, Wr = 470595159, Vr = 594855258, Gr = 617065367, Hr = 661691032, $r = 781727218, Kr = 834078886, Yr = 1043273762, jr = 1236999138, zr = 1286979607, Xr = 1368629611, Jr = 1437068682, Qr = 1668375353, Zr = 1715899485, qr = 1942830531, ei = 1999510636, ti = 2033288346, ni = 2079864626, ri = 2142346422, ii = 2228539873, si = 2232517119, oi = 2598291686, ai = 2719718823, ci = 2810953526, li = 2840065720, ui = 2885165957, di = 3542818975, hi = 3586157513, fi = 3717933110, Ei = 4062655306;
1242
- function pt(t) {
1241
+ const Qe = 2, Ur = 76337612, Lr = 185396121, Mr = 250031587, Pr = 388632637, Fr = 417197284, Br = 425972532, xr = 469070965, Wr = 470595159, Vr = 594855258, Gr = 617065367, Hr = 661691032, $r = 781727218, Kr = 834078886, Yr = 1043273762, jr = 1236999138, zr = 1286979607, Xr = 1368629611, Jr = 1437068682, Qr = 1668375353, Zr = 1715899485, qr = 1942830531, ei = 1999510636, ti = 2033288346, ni = 2079864626, ri = 2142346422, ii = 2228539873, si = 2232517119, oi = 2598291686, ai = 2719718823, ci = 2810953526, li = 2840065720, ui = 2885165957, di = 3542818975, hi = 3586157513, fi = 3717933110, pi = 4062655306;
1242
+ function Et(t) {
1243
1243
  const e = {};
1244
- return pi(e), e;
1244
+ return Ei(e), e;
1245
1245
  }
1246
- function pi(t) {
1247
- return t.ContextType = be.Unknown, t.UserType = ke.Unknown, t.PayloadType = Ne.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsSnapshot = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = Ie.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = wn.Unknown, t.SdkCapability = 0, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialPath = "", t.StyleFormat = In.Css, t.SupportsCompression = !0, t.IsSoftDisconnected = !1, t.SoftDisconnectAt = 0n, t;
1246
+ function Ei(t) {
1247
+ return t.ContextType = Ne.Unknown, t.UserType = ve.Unknown, t.PayloadType = ke.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsSnapshot = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = Te.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = wn.Unknown, t.SdkCapability = 0, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialPath = "", t.StyleFormat = In.Css, t.SupportsCompression = !0, t.IsSoftDisconnected = !1, t.SoftDisconnectAt = 0n, t;
1248
1248
  }
1249
1249
  function Ze(t, e) {
1250
1250
  e.writeStringField(Ur, t.DeviceId), e.writeStringField(Lr, t.InstallId), e.writeStringField(Mr, t.Theme), e.writeStringField(Pr, t.UserAgent), e.writeInt32Field(Fr, t.ContextType), e.writeUInt64Field(Br, t.SoftDisconnectAt), e.writeBoolField(xr, t.HasInput), e.writeInt32Field(Wr, t.UserType), e.writeStringField(Vr, t.InitialPath), e.writeBoolField(Gr, t.IsSoftDisconnected), e.writeBoolField(Hr, t.SupportsCompression), e.writeStringField($r, t.UserId), e.writeStringField(Kr, t.ProductId), e.writeStringField(Yr, t.AuthSessionId), e.writeBoolField(jr, t.ReceiveAllMessages), e.writeInt32Field(zr, t.ViewportHeight | 0), e.writeStringField(Xr, t.Description), e.writeInt32Field(Jr, t.SdkCapability | 0), e.writeBoolField(Qr, t.IsSnapshot), e.writeStringField(Zr, t.Locale), e.writeInt32Field(qr, t.SdkType), e.writeInt32Field(ei, t.SessionId | 0), e.writeInt32Field(ti, t.ViewportWidth | 0), e.writeUInt64Field(ni, t.PreciseJoinedAt), e.writeInt32Field(ri, t.PayloadType), e.writeInt32Field(ii, t.StyleFormat), e.writeBoolField(si, t.IsTouchDevice), e.writeStringField(oi, t.VersionId), e.writeStringField(ai, t.UniqueSessionId), e.writeInt32Field(ci, t.ClientType), e.writeBoolField(li, t.IsReady), e.writeDictionaryField(ui, O.String, O.String, (n) => {
@@ -1256,11 +1256,11 @@ function Ze(t, e) {
1256
1256
  const a = n.beginEntry();
1257
1257
  a.writeKeyString(s), a.writeValueString(o), a.complete();
1258
1258
  }
1259
- }), e.writeStringField(di, t.Timezone), e.writeBoolField(hi, t.IsInternal), e.writeStringField(fi, t.ChannelLocale), e.writeStringField(Ei, t.EmbeddedSpaceId);
1259
+ }), e.writeStringField(di, t.Timezone), e.writeBoolField(hi, t.IsInternal), e.writeStringField(fi, t.ChannelLocale), e.writeStringField(pi, t.EmbeddedSpaceId);
1260
1260
  }
1261
1261
  function mt(t, e) {
1262
- const n = e ?? pt();
1263
- return pi(n), Fc(t, n), n;
1262
+ const n = e ?? Et();
1263
+ return Ei(n), Fc(t, n), n;
1264
1264
  }
1265
1265
  function Fc(t, e) {
1266
1266
  let n;
@@ -1441,7 +1441,7 @@ function Fc(t, e) {
1441
1441
  e.ChannelLocale = n.asString();
1442
1442
  break;
1443
1443
  }
1444
- case Ei: {
1444
+ case pi: {
1445
1445
  if (n.isNull) throw new Error();
1446
1446
  e.EmbeddedSpaceId = n.asString();
1447
1447
  break;
@@ -1462,7 +1462,7 @@ function xc(t) {
1462
1462
  return Wc(e), t && Object.assign(e, t), e;
1463
1463
  }
1464
1464
  function Wc(t) {
1465
- return t.ServerSessionId = "", t.ContextType = be.Unknown, t.UserType = ke.Unknown, t.PayloadType = Ne.Unknown, t.IsInternal = !1, t.IsSnapshot = !1, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.OpcodeGroupsFromServer = w.NONE, t.OpcodeGroupsToServer = w.NONE, t.ProtocolVersion = 0, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.UserAgent = "", t.ClientType = Ie.Unknown, t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = wn.Unknown, t.SdkCapability = 0, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialPath = "", t.StyleFormat = In.Css, t.SupportsCompression = !0, t;
1465
+ return t.ServerSessionId = "", t.ContextType = Ne.Unknown, t.UserType = ve.Unknown, t.PayloadType = ke.Unknown, t.IsInternal = !1, t.IsSnapshot = !1, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.OpcodeGroupsFromServer = w.NONE, t.OpcodeGroupsToServer = w.NONE, t.ProtocolVersion = 0, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.UserAgent = "", t.ClientType = Te.Unknown, t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = wn.Unknown, t.SdkCapability = 0, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialPath = "", t.StyleFormat = In.Css, t.SupportsCompression = !0, t;
1466
1466
  }
1467
1467
  const Vc = 746516514, Gc = 877841741, Hc = 1175184220, $c = 1368629611, Kc = 2341021724, Yc = 3167053791, jc = 3632106223, zc = 3686066300;
1468
1468
  function Xc(t) {
@@ -1528,7 +1528,7 @@ function dl(t) {
1528
1528
  return _i(e), e;
1529
1529
  }
1530
1530
  function _i(t) {
1531
- return t.ClientContext = pt(), t.ServerContext = pt(), t.CertHash = "", t.Entrypoints = [], t.FeatureFlags = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.ChannelInstanceId = "", t.PrimaryUserId = "", t.ServerSessionId = "", t.KeepaliveTimeoutMs = 0, t.ServerCapability = 0, t;
1531
+ return t.ClientContext = Et(), t.ServerContext = Et(), t.CertHash = "", t.Entrypoints = [], t.FeatureFlags = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.ChannelInstanceId = "", t.PrimaryUserId = "", t.ServerSessionId = "", t.KeepaliveTimeoutMs = 0, t.ServerCapability = 0, t;
1532
1532
  }
1533
1533
  function hl(t, e) {
1534
1534
  const n = P.create(t);
@@ -1536,9 +1536,9 @@ function hl(t, e) {
1536
1536
  }
1537
1537
  function fl(t, e) {
1538
1538
  const n = e ?? dl();
1539
- return _i(n), El(t, n), n;
1539
+ return _i(n), pl(t, n), n;
1540
1540
  }
1541
- function El(t, e) {
1541
+ function pl(t, e) {
1542
1542
  let n;
1543
1543
  for (; (n = t.next()) !== null; )
1544
1544
  switch (n.fieldId) {
@@ -1604,8 +1604,8 @@ function El(t, e) {
1604
1604
  }
1605
1605
  }
1606
1606
  }
1607
- async function pl(t, e) {
1608
- const n = await ye(t, Zc);
1607
+ async function El(t, e) {
1608
+ const n = await Re(t, Zc);
1609
1609
  return hl(n, e);
1610
1610
  }
1611
1611
  function ml(t) {
@@ -1732,7 +1732,7 @@ function Dl(t, e, n) {
1732
1732
  return k(wi, r, Ti, e, n);
1733
1733
  }
1734
1734
  async function Ol(t, e) {
1735
- const n = await ye(t, wi);
1735
+ const n = await Re(t, wi);
1736
1736
  return Nl(n, e);
1737
1737
  }
1738
1738
  function Ul(t) {
@@ -1922,7 +1922,7 @@ function cs(t, e) {
1922
1922
  n.writeString(r);
1923
1923
  }), e.writeBoolField(rs, t.LlmInlineResult), e.writeBoolField(is, t.IsEnumerable), e.writeArrayField(ss, O.Object, (n) => {
1924
1924
  for (const r of t.Parameters)
1925
- n.writeObject(pu, (i) => {
1925
+ n.writeObject(Eu, (i) => {
1926
1926
  _u(r, i);
1927
1927
  });
1928
1928
  }), e.writeBoolField(os, t.LlmCallOnlyOnce);
@@ -1991,7 +1991,7 @@ function uu(t, e) {
1991
1991
  }
1992
1992
  case ss: {
1993
1993
  if (n.isNull) throw new Error();
1994
- e.Parameters = Eu(n.asArray());
1994
+ e.Parameters = pu(n.asArray());
1995
1995
  break;
1996
1996
  }
1997
1997
  case os: {
@@ -2016,14 +2016,14 @@ function fu(t) {
2016
2016
  e.push(n.asString());
2017
2017
  return e;
2018
2018
  }
2019
- function Eu(t) {
2019
+ function pu(t) {
2020
2020
  const e = [];
2021
2021
  let n;
2022
2022
  for (; (n = t.next()) !== null; )
2023
2023
  e.push(Iu(n.asObject()));
2024
2024
  return e;
2025
2025
  }
2026
- const pu = 1, ls = 607861992, us = 894485888, ds = 972460562, hs = 1368629611, fs = 1883521406, Es = 2603556958, ps = 3609695522, ms = 4075263697, _s = 4257460908;
2026
+ const Eu = 1, ls = 607861992, us = 894485888, ds = 972460562, hs = 1368629611, fs = 1883521406, ps = 2603556958, Es = 3609695522, ms = 4075263697, _s = 4257460908;
2027
2027
  function mu(t) {
2028
2028
  const e = {};
2029
2029
  return Is(e), e;
@@ -2032,7 +2032,7 @@ function Is(t) {
2032
2032
  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;
2033
2033
  }
2034
2034
  function _u(t, e) {
2035
- e.writeBoolField(ls, t.HasDefaultValue), e.writeStringField(us, t.DefaultValueJson), e.writeStringField(ds, t.EnumerableItemTypeName), e.writeStringField(hs, t.Description), e.writeBinaryField(fs, t.DefaultValueData), e.writeBoolField(Es, t.IsEnumerable), e.writeStringField(ps, t.TypeName), e.writeStringField(ms, t.ParameterName), e.writeInt32Field(_s, t.ParameterIndex | 0);
2035
+ e.writeBoolField(ls, t.HasDefaultValue), e.writeStringField(us, t.DefaultValueJson), e.writeStringField(ds, t.EnumerableItemTypeName), e.writeStringField(hs, t.Description), e.writeBinaryField(fs, t.DefaultValueData), e.writeBoolField(ps, t.IsEnumerable), e.writeStringField(Es, t.TypeName), e.writeStringField(ms, t.ParameterName), e.writeInt32Field(_s, t.ParameterIndex | 0);
2036
2036
  }
2037
2037
  function Iu(t, e) {
2038
2038
  const n = e ?? mu();
@@ -2067,12 +2067,12 @@ function Tu(t, e) {
2067
2067
  e.DefaultValueData = n.asBinary();
2068
2068
  break;
2069
2069
  }
2070
- case Es: {
2070
+ case ps: {
2071
2071
  if (n.isNull) throw new Error();
2072
2072
  e.IsEnumerable = n.asBool();
2073
2073
  break;
2074
2074
  }
2075
- case ps: {
2075
+ case Es: {
2076
2076
  if (n.isNull) throw new Error();
2077
2077
  e.TypeName = n.asString();
2078
2078
  break;
@@ -2299,7 +2299,7 @@ function $u(t, e) {
2299
2299
  }
2300
2300
  }
2301
2301
  async function Ku(t, e) {
2302
- const n = await ye(t, xu);
2302
+ const n = await Re(t, xu);
2303
2303
  return Gu(n, e);
2304
2304
  }
2305
2305
  function Yu(t) {
@@ -2472,15 +2472,15 @@ function hd(t, e, n) {
2472
2472
  return k(ad, r, Xs, e, n);
2473
2473
  }
2474
2474
  const oo = 1, fd = 8388610;
2475
- function Ed(t) {
2475
+ function pd(t) {
2476
2476
  const e = {};
2477
2477
  return t && Object.assign(e, t), e;
2478
2478
  }
2479
- function pd(t) {
2479
+ function Ed(t) {
2480
2480
  return new y(oo).finish();
2481
2481
  }
2482
2482
  function md(t, e, n) {
2483
- const r = pd();
2483
+ const r = Ed();
2484
2484
  return k(fd, r, oo, e, n);
2485
2485
  }
2486
2486
  const ao = 1, _d = 65549;
@@ -2622,7 +2622,7 @@ function $d(t, e) {
2622
2622
  }
2623
2623
  }
2624
2624
  async function Kd(t, e) {
2625
- const n = await ye(t, Td);
2625
+ const n = await Re(t, Td);
2626
2626
  return Gd(n, e);
2627
2627
  }
2628
2628
  function Yd(t) {
@@ -2762,7 +2762,7 @@ function hh(t, e) {
2762
2762
  }
2763
2763
  }
2764
2764
  }
2765
- const fh = 161083277, Eh = 325678206, ph = 3469892363, mh = 3645544153;
2765
+ const fh = 161083277, ph = 325678206, Eh = 3469892363, mh = 3645544153;
2766
2766
  function _h(t) {
2767
2767
  const e = {};
2768
2768
  return ho(e), e;
@@ -2783,12 +2783,12 @@ function Th(t, e) {
2783
2783
  e.StreamId = n.asString();
2784
2784
  break;
2785
2785
  }
2786
- case Eh: {
2786
+ case ph: {
2787
2787
  if (n.isNull) throw new Error();
2788
2788
  e.ClientSessionId = n.asInt32();
2789
2789
  break;
2790
2790
  }
2791
- case ph: {
2791
+ case Eh: {
2792
2792
  if (n.isNull) throw new Error();
2793
2793
  e.TrackId = n.asInt32();
2794
2794
  break;
@@ -2838,16 +2838,16 @@ function Rh(t, e) {
2838
2838
  }
2839
2839
  }
2840
2840
  }
2841
- const Eo = 1, bh = 131074;
2842
- function po(t) {
2841
+ const po = 1, bh = 131074;
2842
+ function Eo(t) {
2843
2843
  return {};
2844
2844
  }
2845
2845
  function Nh(t) {
2846
- return new y(Eo).finish();
2846
+ return new y(po).finish();
2847
2847
  }
2848
2848
  function mo(t, e, n) {
2849
2849
  const r = Nh();
2850
- return k(bh, r, Eo, e, n);
2850
+ return k(bh, r, po, e, n);
2851
2851
  }
2852
2852
  const _o = 1, kh = 65561;
2853
2853
  function vh(t) {
@@ -2904,7 +2904,7 @@ function Hh(t) {
2904
2904
  return To(e), e;
2905
2905
  }
2906
2906
  function To(t) {
2907
- return t.EventOpcode = 0, t.ClientContext = pt(), t;
2907
+ return t.EventOpcode = 0, t.ClientContext = Et(), t;
2908
2908
  }
2909
2909
  function $h(t, e) {
2910
2910
  const n = e ?? Hh();
@@ -2982,18 +2982,18 @@ function hf(t, e, n) {
2982
2982
  const r = uf(t);
2983
2983
  return k(cf, r, Co, e, n);
2984
2984
  }
2985
- const Ao = 1, ff = 65542, Ef = 2802434353;
2986
- function pf(t) {
2985
+ const Ao = 1, ff = 65542, pf = 2802434353;
2986
+ function Ef(t) {
2987
2987
  const e = new y(Ao);
2988
2988
  return mf(t, e), e.finish();
2989
2989
  }
2990
2990
  function mf(t, e) {
2991
- e.writeObjectField(Ef, Qe, (n) => {
2991
+ e.writeObjectField(pf, Qe, (n) => {
2992
2992
  Ze(t.ClientContext, n);
2993
2993
  });
2994
2994
  }
2995
2995
  function _f(t, e, n) {
2996
- const r = pf(t);
2996
+ const r = Ef(t);
2997
2997
  return k(ff, r, Ao, e, n);
2998
2998
  }
2999
2999
  const yo = 1, If = 65558, Tf = 250031587, wf = 1286979607, gf = 2033288346, Sf = 3542818975;
@@ -3138,179 +3138,179 @@ const Po = 1, Zf = 65573;
3138
3138
  function qf(t) {
3139
3139
  return {};
3140
3140
  }
3141
- function eE(t) {
3141
+ function ep(t) {
3142
3142
  return new y(Po).finish();
3143
3143
  }
3144
- function tE(t, e, n) {
3145
- const r = eE();
3144
+ function tp(t, e, n) {
3145
+ const r = ep();
3146
3146
  return k(Zf, r, Po, e, n);
3147
3147
  }
3148
- const Fo = 65574, nE = 4167628991;
3149
- function rE(t) {
3148
+ const Fo = 65574, np = 4167628991;
3149
+ function rp(t) {
3150
3150
  const e = {};
3151
3151
  return Bo(e), e;
3152
3152
  }
3153
3153
  function Bo(t) {
3154
3154
  return t.IceServersJson = "", t;
3155
3155
  }
3156
- function iE(t, e) {
3156
+ function ip(t, e) {
3157
3157
  const n = P.create(t);
3158
- return sE(n, e);
3158
+ return sp(n, e);
3159
3159
  }
3160
- function sE(t, e) {
3161
- const n = e ?? rE();
3162
- return Bo(n), oE(t, n), n;
3160
+ function sp(t, e) {
3161
+ const n = e ?? rp();
3162
+ return Bo(n), op(t, n), n;
3163
3163
  }
3164
- function oE(t, e) {
3164
+ function op(t, e) {
3165
3165
  let n;
3166
3166
  for (; (n = t.next()) !== null; )
3167
3167
  switch (n.fieldId) {
3168
- case nE: {
3168
+ case np: {
3169
3169
  if (n.isNull) throw new Error();
3170
3170
  e.IceServersJson = n.asString();
3171
3171
  break;
3172
3172
  }
3173
3173
  }
3174
3174
  }
3175
- function aE(t, e) {
3175
+ function ap(t, e) {
3176
3176
  const n = z(t, Fo);
3177
- return iE(n, e);
3177
+ return ip(n, e);
3178
3178
  }
3179
- const xo = 1, cE = 65566, lE = 407060584, uE = 1175184220, dE = 1241248827, hE = 1455877031, fE = 3419353826, EE = 3686066300;
3180
- function pE(t) {
3179
+ const xo = 1, cp = 65566, lp = 407060584, up = 1175184220, dp = 1241248827, hp = 1455877031, fp = 3419353826, pp = 3686066300;
3180
+ function Ep(t) {
3181
3181
  const e = {};
3182
- return mE(e), t && Object.assign(e, t), e;
3182
+ return mp(e), t && Object.assign(e, t), e;
3183
3183
  }
3184
- function mE(t) {
3184
+ function mp(t) {
3185
3185
  return t.Sdp = "", t.OpcodeGroupsFromServer = w.NONE, t.OpcodeGroupsToServer = w.NONE, t.UseAudioTrack = !1, t.UseVideoTrack = !1, t.UseDataChannel = !1, t;
3186
3186
  }
3187
- function _E(t) {
3187
+ function _p(t) {
3188
3188
  const e = new y(xo);
3189
- return IE(t, e), e.finish();
3189
+ return Ip(t, e), e.finish();
3190
3190
  }
3191
- function IE(t, e) {
3192
- e.writeBoolField(lE, t.UseVideoTrack), e.writeInt32Field(uE, t.OpcodeGroupsFromServer), e.writeBoolField(dE, t.UseAudioTrack), e.writeStringField(hE, t.Sdp), e.writeBoolField(fE, t.UseDataChannel), e.writeInt32Field(EE, t.OpcodeGroupsToServer);
3191
+ function Ip(t, e) {
3192
+ e.writeBoolField(lp, t.UseVideoTrack), e.writeInt32Field(up, t.OpcodeGroupsFromServer), e.writeBoolField(dp, t.UseAudioTrack), e.writeStringField(hp, t.Sdp), e.writeBoolField(fp, t.UseDataChannel), e.writeInt32Field(pp, t.OpcodeGroupsToServer);
3193
3193
  }
3194
- function TE(t, e, n) {
3195
- const r = _E(t);
3196
- return k(cE, r, xo, e, n);
3194
+ function Tp(t, e, n) {
3195
+ const r = _p(t);
3196
+ return k(cp, r, xo, e, n);
3197
3197
  }
3198
- const Wo = 65569, wE = 2838554230, gE = 3673535008;
3199
- function SE(t) {
3198
+ const Wo = 65569, wp = 2838554230, gp = 3673535008;
3199
+ function Sp(t) {
3200
3200
  const e = {};
3201
3201
  return Vo(e), e;
3202
3202
  }
3203
3203
  function Vo(t) {
3204
3204
  return t.Success = !0, t.ErrorMessage = "", t;
3205
3205
  }
3206
- function CE(t, e) {
3206
+ function Cp(t, e) {
3207
3207
  const n = P.create(t);
3208
- return AE(n, e);
3208
+ return Ap(n, e);
3209
3209
  }
3210
- function AE(t, e) {
3211
- const n = e ?? SE();
3212
- return Vo(n), yE(t, n), n;
3210
+ function Ap(t, e) {
3211
+ const n = e ?? Sp();
3212
+ return Vo(n), yp(t, n), n;
3213
3213
  }
3214
- function yE(t, e) {
3214
+ function yp(t, e) {
3215
3215
  let n;
3216
3216
  for (; (n = t.next()) !== null; )
3217
3217
  switch (n.fieldId) {
3218
- case wE: {
3218
+ case wp: {
3219
3219
  if (n.isNull) throw new Error();
3220
3220
  e.ErrorMessage = n.asString();
3221
3221
  break;
3222
3222
  }
3223
- case gE: {
3223
+ case gp: {
3224
3224
  if (n.isNull) throw new Error();
3225
3225
  e.Success = n.asBool();
3226
3226
  break;
3227
3227
  }
3228
3228
  }
3229
3229
  }
3230
- function RE(t, e) {
3230
+ function Rp(t, e) {
3231
3231
  const n = z(t, Wo);
3232
- return CE(n, e);
3232
+ return Cp(n, e);
3233
3233
  }
3234
- const Go = 65571, bE = 161083277, NE = 317031266, kE = 1093174542, vE = 1970024675, DE = 2481928696, OE = 2762891795, UE = 3282782683;
3235
- function LE(t) {
3234
+ const Go = 65571, bp = 161083277, Np = 317031266, kp = 1093174542, vp = 1970024675, Dp = 2481928696, Op = 2762891795, Up = 3282782683;
3235
+ function Lp(t) {
3236
3236
  const e = {};
3237
3237
  return Ho(e), e;
3238
3238
  }
3239
3239
  function Ho(t) {
3240
3240
  return t.Kind = "", t.TrackIndex = 0, t.SenderId = 0, t.SenderTrackId = 0, t.StreamId = "", t.SourceType = "", t.Active = !0, t;
3241
3241
  }
3242
- function ME(t, e) {
3242
+ function Mp(t, e) {
3243
3243
  const n = P.create(t);
3244
- return PE(n, e);
3244
+ return Pp(n, e);
3245
3245
  }
3246
- function PE(t, e) {
3247
- const n = e ?? LE();
3248
- return Ho(n), FE(t, n), n;
3246
+ function Pp(t, e) {
3247
+ const n = e ?? Lp();
3248
+ return Ho(n), Fp(t, n), n;
3249
3249
  }
3250
- function FE(t, e) {
3250
+ function Fp(t, e) {
3251
3251
  let n;
3252
3252
  for (; (n = t.next()) !== null; )
3253
3253
  switch (n.fieldId) {
3254
- case bE: {
3254
+ case bp: {
3255
3255
  if (n.isNull) throw new Error();
3256
3256
  e.StreamId = n.asString();
3257
3257
  break;
3258
3258
  }
3259
- case NE: {
3259
+ case Np: {
3260
3260
  if (n.isNull) throw new Error();
3261
3261
  e.Kind = n.asString();
3262
3262
  break;
3263
3263
  }
3264
- case kE: {
3264
+ case kp: {
3265
3265
  if (n.isNull) throw new Error();
3266
3266
  e.SenderTrackId = n.asInt32();
3267
3267
  break;
3268
3268
  }
3269
- case vE: {
3269
+ case vp: {
3270
3270
  if (n.isNull) throw new Error();
3271
3271
  e.SenderId = n.asInt32();
3272
3272
  break;
3273
3273
  }
3274
- case DE: {
3274
+ case Dp: {
3275
3275
  if (n.isNull) throw new Error();
3276
3276
  e.Active = n.asBool();
3277
3277
  break;
3278
3278
  }
3279
- case OE: {
3279
+ case Op: {
3280
3280
  if (n.isNull) throw new Error();
3281
3281
  e.TrackIndex = n.asInt32();
3282
3282
  break;
3283
3283
  }
3284
- case UE: {
3284
+ case Up: {
3285
3285
  if (n.isNull) throw new Error();
3286
3286
  e.SourceType = n.asString();
3287
3287
  break;
3288
3288
  }
3289
3289
  }
3290
3290
  }
3291
- function BE(t, e) {
3291
+ function Bp(t, e) {
3292
3292
  const n = z(t, Go);
3293
- return ME(n, e);
3293
+ return Mp(n, e);
3294
3294
  }
3295
- const $o = 1, xE = 65572, WE = 2514959030, VE = 3581890656;
3296
- function GE(t) {
3295
+ const $o = 1, xp = 65572, Wp = 2514959030, Vp = 3581890656;
3296
+ function Gp(t) {
3297
3297
  const e = {};
3298
- return HE(e), t && Object.assign(e, t), e;
3298
+ return Hp(e), t && Object.assign(e, t), e;
3299
3299
  }
3300
- function HE(t) {
3300
+ function Hp(t) {
3301
3301
  return t.SenderIndex = 0, t.CorrelationId = void 0, t;
3302
3302
  }
3303
- function $E(t) {
3303
+ function $p(t) {
3304
3304
  const e = new y($o);
3305
- return KE(t, e), e.finish();
3305
+ return Kp(t, e), e.finish();
3306
3306
  }
3307
- function KE(t, e) {
3307
+ function Kp(t, e) {
3308
3308
  const n = t.CorrelationId;
3309
- n != null && e.writeStringField(WE, n), e.writeInt32Field(VE, t.SenderIndex | 0);
3309
+ n != null && e.writeStringField(Wp, n), e.writeInt32Field(Vp, t.SenderIndex | 0);
3310
3310
  }
3311
- function YE(t, e, n) {
3312
- const r = $E(t);
3313
- return k(xE, r, $o, e, n);
3311
+ function Yp(t, e, n) {
3312
+ const r = $p(t);
3313
+ return k(xp, r, $o, e, n);
3314
3314
  }
3315
3315
  class Ct extends Error {
3316
3316
  constructor(e, n) {
@@ -3332,7 +3332,7 @@ class An extends K {
3332
3332
  super(`No keepalive received within ${e}ms`), this.name = "KeepaliveTimeoutError";
3333
3333
  }
3334
3334
  }
3335
- class me extends K {
3335
+ class _e extends K {
3336
3336
  constructor(e, n) {
3337
3337
  super(e, n), this.name = "AuthRejectedError";
3338
3338
  }
@@ -3372,7 +3372,7 @@ class yt extends M {
3372
3372
  super(e), this.name = "ServerFullError";
3373
3373
  }
3374
3374
  }
3375
- class jE extends Ct {
3375
+ class jp extends Ct {
3376
3376
  constructor(e) {
3377
3377
  super(`Browser is not supported: missing required features (${e.join(", ")})`), this.missingFeatures = e, this.name = "BrowserNotSupportedError";
3378
3378
  }
@@ -3400,7 +3400,7 @@ function jo(t) {
3400
3400
  function Kn() {
3401
3401
  return yn;
3402
3402
  }
3403
- function zE(t) {
3403
+ function zp(t) {
3404
3404
  _t = t;
3405
3405
  }
3406
3406
  function TT() {
@@ -3414,18 +3414,18 @@ function wT(t, e) {
3414
3414
  jt.delete(t);
3415
3415
  };
3416
3416
  }
3417
- const XE = {
3417
+ const Xp = {
3418
3418
  0: "DEBUG",
3419
3419
  1: "INFO",
3420
3420
  2: "WARN",
3421
3421
  3: "ERROR",
3422
3422
  4: "NONE"
3423
3423
  };
3424
- function JE(t, e) {
3424
+ function Jp(t, e) {
3425
3425
  return `[${t}] ${e}`;
3426
3426
  }
3427
3427
  function rt(t, e, n, r) {
3428
- const i = (/* @__PURE__ */ new Date()).toISOString(), s = XE[t], o = {
3428
+ const i = (/* @__PURE__ */ new Date()).toISOString(), s = Xp[t], o = {
3429
3429
  timestamp: i,
3430
3430
  level: t,
3431
3431
  levelName: s,
@@ -3443,7 +3443,7 @@ function rt(t, e, n, r) {
3443
3443
  }
3444
3444
  }
3445
3445
  if (yn <= t) {
3446
- const a = JE(e, n);
3446
+ const a = Jp(e, n);
3447
3447
  switch (t) {
3448
3448
  case 0:
3449
3449
  console.debug(a, ...r);
@@ -3476,7 +3476,7 @@ function U(t) {
3476
3476
  }
3477
3477
  };
3478
3478
  }
3479
- const QE = "ikon-proxy", ZE = "ikon-websocket", qE = "ikon-webtransport", zo = "ikon-debug", ep = "ikon-lang", Xo = "ikon-server-url", gT = "ikon-git-source", ST = "ikon-git-branch", tp = "ikon-audio", np = "ikon-video", rp = "ikon-webrtc", ip = "ikon-ice-transport", Jo = "ikon-inspect", sp = "ikon-debug-overlay", op = "ikon-auth", ap = "ikon-retry", cp = "ikon-api", lp = "ikon-snapshot";
3479
+ const Qp = "ikon-proxy", Zp = "ikon-websocket", qp = "ikon-webtransport", zo = "ikon-debug", eE = "ikon-lang", Xo = "ikon-server-url", gT = "ikon-git-source", ST = "ikon-git-branch", tE = "ikon-audio", nE = "ikon-video", rE = "ikon-webrtc", iE = "ikon-ice-transport", Jo = "ikon-inspect", sE = "ikon-debug-overlay", oE = "ikon-auth", aE = "ikon-retry", cE = "ikon-api", lE = "ikon-snapshot";
3480
3480
  function qe(t, e) {
3481
3481
  if (typeof window > "u")
3482
3482
  return null;
@@ -3496,58 +3496,58 @@ function Qo(t, e) {
3496
3496
  const n = new URL(window.location.href);
3497
3497
  n.searchParams.get(t) !== e && (n.searchParams.set(t, e), window.history.replaceState(null, "", n.toString()));
3498
3498
  }
3499
- function up() {
3500
- return $(QE);
3499
+ function uE() {
3500
+ return $(Qp);
3501
3501
  }
3502
- function dp() {
3503
- return $(ZE);
3502
+ function dE() {
3503
+ return $(Zp);
3504
3504
  }
3505
- function hp() {
3506
- return $(qE);
3505
+ function hE() {
3506
+ return $(qp);
3507
3507
  }
3508
- function fp() {
3508
+ function fE() {
3509
3509
  return $(zo) === !0;
3510
3510
  }
3511
3511
  function CT() {
3512
- return qe(ep);
3512
+ return qe(eE);
3513
3513
  }
3514
- function Ep() {
3514
+ function pE() {
3515
3515
  return qe(Xo);
3516
3516
  }
3517
- function pp() {
3518
- return $(tp);
3517
+ function EE() {
3518
+ return $(tE);
3519
3519
  }
3520
- function mp() {
3521
- return $(np);
3520
+ function mE() {
3521
+ return $(nE);
3522
3522
  }
3523
3523
  function Ut() {
3524
- return $(rp);
3524
+ return $(rE);
3525
3525
  }
3526
- function _p() {
3527
- const t = qe(ip);
3526
+ function _E() {
3527
+ const t = qe(iE);
3528
3528
  return t === "relay" ? "relay" : t === "all" ? "all" : null;
3529
3529
  }
3530
- function Ip() {
3530
+ function IE() {
3531
3531
  return $(Jo) === !0;
3532
3532
  }
3533
3533
  function AT() {
3534
- return $(sp) === !0;
3534
+ return $(sE) === !0;
3535
3535
  }
3536
- function Tp() {
3537
- const t = qe(op);
3536
+ function TE() {
3537
+ const t = qe(oE);
3538
3538
  return t === "true" || t === "same";
3539
3539
  }
3540
3540
  function ne() {
3541
- return $(ap) !== !1;
3541
+ return $(aE) !== !1;
3542
3542
  }
3543
- function wp() {
3544
- return $(cp);
3543
+ function wE() {
3544
+ return $(cE);
3545
3545
  }
3546
3546
  function Rn() {
3547
- return $(lp) === !0;
3547
+ return $(lE) === !0;
3548
3548
  }
3549
- const he = U("WebSocketTransport"), gp = 1e4;
3550
- class Sp {
3549
+ const he = U("WebSocketTransport"), gE = 1e4;
3550
+ class SE {
3551
3551
  ws = null;
3552
3552
  keepaliveTimeout = null;
3553
3553
  isClosed = !1;
@@ -3561,7 +3561,7 @@ class Sp {
3561
3561
  callbacks;
3562
3562
  sessionId;
3563
3563
  constructor(e) {
3564
- this.callbacks = e.callbacks, this.sessionId = e.sessionId, this.keepaliveTimeoutMs = e.keepaliveTimeoutMs, this.connectionTimeoutMs = e.connectionTimeoutMs ?? gp;
3564
+ this.callbacks = e.callbacks, this.sessionId = e.sessionId, this.keepaliveTimeoutMs = e.keepaliveTimeoutMs, this.connectionTimeoutMs = e.connectionTimeoutMs ?? gE;
3565
3565
  }
3566
3566
  get isConnected() {
3567
3567
  return this.ws?.readyState === WebSocket.OPEN;
@@ -3594,13 +3594,13 @@ class Sp {
3594
3594
  he.debug(`WebSocket connection failed after ${Date.now() - r}ms`), d(new K("WebSocket connection failed"));
3595
3595
  }, this.ws.onclose = (u) => {
3596
3596
  if (this.clearKeepaliveTimeout(), !a) {
3597
- d(o ? new me("WebSocket closed before first server message") : new K("WebSocket connection closed before opening"));
3597
+ d(o ? new _e("WebSocket closed before first server message") : new K("WebSocket connection closed before opening"));
3598
3598
  return;
3599
3599
  }
3600
3600
  if (this.isClosed)
3601
3601
  return;
3602
- const p = u.wasClean && (u.code === 1e3 || u.code === 1001), _ = u.reason || `code=${u.code}`;
3603
- this.callbacks.onClose(_, p);
3602
+ const E = u.wasClean && (u.code === 1e3 || u.code === 1001), _ = u.reason || `code=${u.code}`;
3603
+ this.callbacks.onClose(_, E);
3604
3604
  }, this.ws.onmessage = (u) => {
3605
3605
  this.handleProtocolMessage(new Uint8Array(u.data));
3606
3606
  };
@@ -3616,7 +3616,7 @@ class Sp {
3616
3616
  * Get or create a cached keepalive response message.
3617
3617
  */
3618
3618
  getKeepaliveResponse() {
3619
- return this.keepaliveResponseMessage || (this.keepaliveResponseMessage = mo(po(), this.sessionId)), this.keepaliveResponseMessage;
3619
+ return this.keepaliveResponseMessage || (this.keepaliveResponseMessage = mo(Eo(), this.sessionId)), this.keepaliveResponseMessage;
3620
3620
  }
3621
3621
  handleProtocolMessage(e) {
3622
3622
  try {
@@ -3639,11 +3639,11 @@ class Sp {
3639
3639
  this.keepaliveTimeout && (clearTimeout(this.keepaliveTimeout), this.keepaliveTimeout = null);
3640
3640
  }
3641
3641
  }
3642
- const j = U("WebTransportTransport"), Cp = 1e4, Yn = 4, Ap = 65536;
3642
+ const j = U("WebTransportTransport"), CE = 1e4, Yn = 4, AE = 65536;
3643
3643
  function Zo() {
3644
3644
  return typeof WebTransport < "u";
3645
3645
  }
3646
- class yp {
3646
+ class yE {
3647
3647
  transport = null;
3648
3648
  stream = null;
3649
3649
  reader = null;
@@ -3652,7 +3652,7 @@ class yp {
3652
3652
  readLoopActive = !1;
3653
3653
  isClosed = !1;
3654
3654
  // Grow-only receive buffer with offset/length tracking to minimize allocations
3655
- receiveBuffer = new Uint8Array(Ap);
3655
+ receiveBuffer = new Uint8Array(AE);
3656
3656
  receiveBufferOffset = 0;
3657
3657
  receiveBufferLength = 0;
3658
3658
  // Cached DataView to avoid allocation per message
@@ -3669,7 +3669,7 @@ class yp {
3669
3669
  callbacks;
3670
3670
  sessionId;
3671
3671
  constructor(e) {
3672
- this.callbacks = e.callbacks, this.sessionId = e.sessionId, this.keepaliveTimeoutMs = e.keepaliveTimeoutMs, this.connectionTimeoutMs = e.connectionTimeoutMs ?? Cp;
3672
+ this.callbacks = e.callbacks, this.sessionId = e.sessionId, this.keepaliveTimeoutMs = e.keepaliveTimeoutMs, this.connectionTimeoutMs = e.connectionTimeoutMs ?? CE;
3673
3673
  }
3674
3674
  get isConnected() {
3675
3675
  return this.transport !== null && this.writer !== null;
@@ -3778,7 +3778,7 @@ class yp {
3778
3778
  * Get or create a cached keepalive response message.
3779
3779
  */
3780
3780
  getKeepaliveResponse() {
3781
- return this.keepaliveResponseMessage || (this.keepaliveResponseMessage = mo(po(), this.sessionId)), this.keepaliveResponseMessage;
3781
+ return this.keepaliveResponseMessage || (this.keepaliveResponseMessage = mo(Eo(), this.sessionId)), this.keepaliveResponseMessage;
3782
3782
  }
3783
3783
  /**
3784
3784
  * Process complete messages from the receive buffer.
@@ -3821,7 +3821,7 @@ class yp {
3821
3821
  handleClose(e, n) {
3822
3822
  if (!this.isClosed) {
3823
3823
  if (this.isClosed = !0, this.clearKeepaliveTimeout(), this.readLoopActive = !1, this.cleanup(), this.firstMessageRejecter) {
3824
- this.firstMessageRejecter(new me(`WebTransport closed before first server message: ${e}`)), this.firstMessageResolver = null, this.firstMessageRejecter = null;
3824
+ this.firstMessageRejecter(new _e(`WebTransport closed before first server message: ${e}`)), this.firstMessageResolver = null, this.firstMessageRejecter = null;
3825
3825
  return;
3826
3826
  }
3827
3827
  this.callbacks.onClose(e, n);
@@ -3855,7 +3855,7 @@ class yp {
3855
3855
  }
3856
3856
  }
3857
3857
  const Lt = U("Channel");
3858
- class Rp {
3858
+ class RE {
3859
3859
  state = "disconnected";
3860
3860
  transport = null;
3861
3861
  config;
@@ -3949,13 +3949,13 @@ class Rp {
3949
3949
  switch (e.Type) {
3950
3950
  case A.WebSocket:
3951
3951
  case A.WebSocketProxy:
3952
- this.transport = new Sp(n);
3952
+ this.transport = new SE(n);
3953
3953
  break;
3954
3954
  case A.WebTransport:
3955
3955
  case A.WebTransportProxy:
3956
3956
  if (!Zo())
3957
3957
  throw new Error("WebTransport is not supported in this browser");
3958
- this.transport = new yp(n);
3958
+ this.transport = new yE(n);
3959
3959
  break;
3960
3960
  default:
3961
3961
  throw new Error(`Unsupported entrypoint type: ${A[e.Type]}`);
@@ -3996,8 +3996,8 @@ class Rp {
3996
3996
  this.state !== e && (this.state = e, this.config.onStateChange?.(e));
3997
3997
  }
3998
3998
  }
3999
- const B = U("ChannelManager"), bp = 5e3;
4000
- class Np {
3999
+ const B = U("ChannelManager"), bE = 5e3;
4000
+ class NE {
4001
4001
  channels = /* @__PURE__ */ new Map();
4002
4002
  // keyed by opcode group
4003
4003
  activeType = null;
@@ -4112,16 +4112,16 @@ class Np {
4112
4112
  } catch (c) {
4113
4113
  B.warn(`Failed to connect using ${A[s]} after ${Date.now() - a}ms: ${c instanceof Error ? c.message : c}`);
4114
4114
  const l = this.channels.size > 0;
4115
- if (this.disconnectAll(), c instanceof me)
4115
+ if (this.disconnectAll(), c instanceof _e)
4116
4116
  throw c;
4117
4117
  if (l && this.config.onRefreshEntrypoints)
4118
4118
  try {
4119
4119
  B.info("Partial connection detected, refreshing entrypoints");
4120
4120
  const d = await this.config.onRefreshEntrypoints();
4121
4121
  this.entrypoints = d.entrypoints, this.config.sessionId = d.sessionId;
4122
- const h = d.entrypoints.filter((p) => p.Type !== A.WebRTC), u = this.groupByType(h);
4123
- for (const [p, _] of u)
4124
- r.set(p, _);
4122
+ const h = d.entrypoints.filter((E) => E.Type !== A.WebRTC), u = this.groupByType(h);
4123
+ for (const [E, _] of u)
4124
+ r.set(E, _);
4125
4125
  } catch (d) {
4126
4126
  B.warn(`Failed to refresh entrypoints: ${d}`);
4127
4127
  }
@@ -4138,14 +4138,14 @@ class Np {
4138
4138
  const r = (await Promise.allSettled(e.map((i) => this.connectChannel(i)))).filter((i) => i.status === "rejected");
4139
4139
  if (r.length > 0) {
4140
4140
  const i = r.map((s) => s.reason instanceof Error ? s.reason.message : String(s.reason));
4141
- throw r.some((s) => s.reason instanceof me) ? new me(i.join(", ")) : new Error(i.join(", "));
4141
+ throw r.some((s) => s.reason instanceof _e) ? new _e(i.join(", ")) : new Error(i.join(", "));
4142
4142
  }
4143
4143
  }
4144
4144
  /**
4145
4145
  * Connect a single channel.
4146
4146
  */
4147
4147
  async connectChannel(e) {
4148
- const n = new Rp({
4148
+ const n = new RE({
4149
4149
  entrypoint: e,
4150
4150
  sessionId: this.config.sessionId,
4151
4151
  keepaliveTimeoutMs: this.config.keepaliveTimeoutMs,
@@ -4211,7 +4211,7 @@ class Np {
4211
4211
  try {
4212
4212
  await this.connectInternal(!0);
4213
4213
  } catch (e) {
4214
- if (e instanceof me) {
4214
+ if (e instanceof _e) {
4215
4215
  B.warn("Auth rejected during reconnect, stopping retries and signaling full re-auth"), this.config.onError?.(e), this.setState("offline");
4216
4216
  return;
4217
4217
  }
@@ -4236,14 +4236,14 @@ class Np {
4236
4236
  startStabilityTimer() {
4237
4237
  this.clearStabilityTimer(), this.stabilityTimer = setTimeout(() => {
4238
4238
  this.stabilityTimer = null, this.state === "connected" && (this.reconnectAttempts = 0);
4239
- }, bp);
4239
+ }, bE);
4240
4240
  }
4241
4241
  clearStabilityTimer() {
4242
4242
  this.stabilityTimer && (clearTimeout(this.stabilityTimer), this.stabilityTimer = null);
4243
4243
  }
4244
4244
  }
4245
- const yT = "opus", RT = 48e3, bT = 2, NT = 64e3, kp = 150, kT = "VP8", vp = 5e6, vT = 30, Dp = 0.05, Op = "max-bundle", Up = "require", Lp = 5e3, Mp = 8e3, Pp = 16, Fp = 16, Bp = "ikon-data", xp = !1, Wp = 0, H = U("WebRTCConnection");
4246
- class Vp {
4245
+ const yT = "opus", RT = 48e3, bT = 2, NT = 64e3, kE = 150, kT = "VP8", vE = 5e6, vT = 30, DE = 0.05, OE = "max-bundle", UE = "require", LE = 5e3, ME = 8e3, PE = 16, FE = 16, BE = "ikon-data", xE = !1, WE = 0, H = U("WebRTCConnection");
4246
+ class VE {
4247
4247
  pc = null;
4248
4248
  dataChannel = null;
4249
4249
  _state = "new";
@@ -4268,17 +4268,17 @@ class Vp {
4268
4268
  if (this.pc = new RTCPeerConnection({
4269
4269
  iceServers: this.config.iceServers ?? [],
4270
4270
  iceTransportPolicy: this.config.iceTransportPolicy,
4271
- bundlePolicy: Op,
4272
- rtcpMuxPolicy: Up
4271
+ bundlePolicy: OE,
4272
+ rtcpMuxPolicy: UE
4273
4273
  }), this.setupEventHandlers(), this.config.useAudioTrack)
4274
- for (let e = 0; e < Pp; e++)
4274
+ for (let e = 0; e < PE; e++)
4275
4275
  this.pc.addTransceiver("audio", { direction: "sendrecv" });
4276
4276
  if (this.config.useVideoTrack)
4277
- for (let e = 0; e < Fp; e++)
4277
+ for (let e = 0; e < FE; e++)
4278
4278
  this.pc.addTransceiver("video", { direction: "sendrecv" });
4279
- this.config.useDataChannel && (this.dataChannel = this.pc.createDataChannel(Bp, {
4280
- ordered: xp,
4281
- maxRetransmits: Wp
4279
+ this.config.useDataChannel && (this.dataChannel = this.pc.createDataChannel(BE, {
4280
+ ordered: xE,
4281
+ maxRetransmits: WE
4282
4282
  }), this.setupDataChannelHandlers(this.dataChannel));
4283
4283
  }
4284
4284
  async createOffer() {
@@ -4365,7 +4365,7 @@ class Vp {
4365
4365
  }, this.pc.ontrack = (e) => {
4366
4366
  const n = e.track;
4367
4367
  if (n.kind === "audio") {
4368
- const r = kp;
4368
+ const r = kE;
4369
4369
  try {
4370
4370
  e.receiver.jitterBufferTarget = r;
4371
4371
  } catch (o) {
@@ -4375,7 +4375,7 @@ class Vp {
4375
4375
  this.config.onAudioTrack?.(s, n, i);
4376
4376
  } else if (n.kind === "video") {
4377
4377
  try {
4378
- e.receiver.playoutDelayHint = Dp;
4378
+ e.receiver.playoutDelayHint = DE;
4379
4379
  } catch (s) {
4380
4380
  H.warn("Failed to set playoutDelayHint:", s);
4381
4381
  }
@@ -4402,7 +4402,7 @@ class Vp {
4402
4402
  }
4403
4403
  }
4404
4404
  const N = U("WebRTCSignaling");
4405
- class Gp {
4405
+ class GE {
4406
4406
  config;
4407
4407
  connection = null;
4408
4408
  sendMessage = null;
@@ -4449,7 +4449,7 @@ class Gp {
4449
4449
  this.videoTrackCount++, this.config.onVideoTrack?.(s, o, a);
4450
4450
  }
4451
4451
  };
4452
- this.connection = new Vp(r), await this.connection.initialize();
4452
+ this.connection = new VE(r), await this.connection.initialize();
4453
4453
  const i = await this.connection.createOffer();
4454
4454
  this.sendOffer(i);
4455
4455
  } catch (n) {
@@ -4555,7 +4555,7 @@ class Gp {
4555
4555
  sendVideoCaptureCorrelation(e, n) {
4556
4556
  if (!this.sendMessage)
4557
4557
  return;
4558
- const r = GE({ SenderIndex: e, CorrelationId: n }), i = YE(r, this.config.sessionId);
4558
+ const r = Gp({ SenderIndex: e, CorrelationId: n }), i = Yp(r, this.config.sessionId);
4559
4559
  this.sendMessage(i);
4560
4560
  }
4561
4561
  async startVideoCapture(e, n, r = 0, i) {
@@ -4614,7 +4614,7 @@ class Gp {
4614
4614
  }
4615
4615
  sendVideoStreamEnd(e) {
4616
4616
  if (!this.sendMessage) return;
4617
- const n = Ed({});
4617
+ const n = pd({});
4618
4618
  this.sendMessage(md(n, this.config.sessionId, { trackId: e }));
4619
4619
  }
4620
4620
  async stopCapture() {
@@ -4629,7 +4629,7 @@ class Gp {
4629
4629
  }
4630
4630
  async applyEncodingParams(e, n) {
4631
4631
  try {
4632
- const r = n ?? vp, i = e.getParameters();
4632
+ const r = n ?? vE, i = e.getParameters();
4633
4633
  i.encodings?.length || (i.encodings = [{}]), i.encodings[0].maxBitrate = r, i.degradationPreference = "balanced", await e.setParameters(i);
4634
4634
  } catch (r) {
4635
4635
  N.warn("Failed to set encoding params:", r);
@@ -4640,14 +4640,14 @@ class Gp {
4640
4640
  N.error("Cannot send offer: no send function");
4641
4641
  return;
4642
4642
  }
4643
- const n = pE({
4643
+ const n = Ep({
4644
4644
  Sdp: e,
4645
4645
  OpcodeGroupsFromServer: this.config.opcodeGroupsFromServer,
4646
4646
  OpcodeGroupsToServer: this.config.opcodeGroupsToServer,
4647
4647
  UseAudioTrack: this.config.useAudioTrack,
4648
4648
  UseVideoTrack: this.config.useVideoTrack,
4649
4649
  UseDataChannel: this.config.useDataChannel
4650
- }), r = TE(n, this.config.sessionId);
4650
+ }), r = Tp(n, this.config.sessionId);
4651
4651
  this.sendMessage(r), N.debug("Sent WebRTC offer");
4652
4652
  }
4653
4653
  /**
@@ -4667,9 +4667,9 @@ class Gp {
4667
4667
  const i = new Promise((a) => {
4668
4668
  r = setTimeout(() => {
4669
4669
  N.warn("Timed out waiting for ICE servers from server, proceeding without TURN"), a(e);
4670
- }, Lp);
4670
+ }, LE);
4671
4671
  }), s = qf();
4672
- this.sendMessage(tE(s, this.config.sessionId));
4672
+ this.sendMessage(tp(s, this.config.sessionId));
4673
4673
  const o = await Promise.race([n, i]);
4674
4674
  return clearTimeout(r), this.iceServersResolve = null, o;
4675
4675
  }
@@ -4678,7 +4678,7 @@ class Gp {
4678
4678
  return;
4679
4679
  const n = this.config.iceServers ?? [];
4680
4680
  try {
4681
- const r = aE(e), i = r.IceServersJson ? JSON.parse(r.IceServersJson) : [];
4681
+ const r = ap(e), i = r.IceServersJson ? JSON.parse(r.IceServersJson) : [];
4682
4682
  N.debug(`Received ${i.length} ICE server(s) from server`), this.iceServersResolve([...n, ...i]);
4683
4683
  } catch (r) {
4684
4684
  N.warn("Failed to parse ICE servers response, proceeding with configured servers:", r), this.iceServersResolve(n);
@@ -4725,7 +4725,7 @@ class Gp {
4725
4725
  }
4726
4726
  handleReady(e) {
4727
4727
  try {
4728
- const n = RE(e);
4728
+ const n = Rp(e);
4729
4729
  n.Success ? (N.debug("WebRTC connection ready"), this.isConnecting = !1) : (N.error(`WebRTC connection failed (server): ${n.ErrorMessage}`), this.disconnect());
4730
4730
  } catch (n) {
4731
4731
  N.error("Failed to handle WebRTC ready:", n);
@@ -4733,14 +4733,14 @@ class Gp {
4733
4733
  }
4734
4734
  handleTrackMap(e) {
4735
4735
  try {
4736
- const n = BE(e);
4736
+ const n = Bp(e);
4737
4737
  this.config.onTrackMap?.(n);
4738
4738
  } catch (n) {
4739
4739
  N.error("Failed to handle WebRTC track map:", n);
4740
4740
  }
4741
4741
  }
4742
4742
  }
4743
- const Hp = 5e3, $p = 18e4, Kp = 3e4, jn = 2e3, zn = 2, Yp = 5e3, qo = 6e4, jp = 300 * 1e3, zp = 10 * 1e3, zt = "ikon-login-pending-call", Xt = /* @__PURE__ */ new Set();
4743
+ const HE = 5e3, $E = 18e4, KE = 3e4, jn = 2e3, zn = 2, YE = 5e3, qo = 6e4, jE = 300 * 1e3, zE = 10 * 1e3, zt = "ikon-login-pending-call", Xt = /* @__PURE__ */ new Set();
4744
4744
  let bn = { required: !1, reason: null };
4745
4745
  function ea() {
4746
4746
  for (const t of Xt)
@@ -4758,13 +4758,13 @@ function OT() {
4758
4758
  function UT(t) {
4759
4759
  return Xt.add(t), () => Xt.delete(t);
4760
4760
  }
4761
- function Xp(t) {
4761
+ function XE(t) {
4762
4762
  try {
4763
4763
  sessionStorage.setItem(zt, JSON.stringify(t));
4764
4764
  } catch {
4765
4765
  }
4766
4766
  }
4767
- function Jp() {
4767
+ function JE() {
4768
4768
  try {
4769
4769
  const t = sessionStorage.getItem(zt);
4770
4770
  return sessionStorage.removeItem(zt), t ? JSON.parse(t) : null;
@@ -4772,13 +4772,13 @@ function Jp() {
4772
4772
  return null;
4773
4773
  }
4774
4774
  }
4775
- function Qp(t) {
4775
+ function QE(t) {
4776
4776
  if (!t || typeof t != "object")
4777
4777
  return !1;
4778
4778
  const e = t, n = typeof e.name == "string" ? e.name : "", r = typeof e.message == "string" ? e.message : "";
4779
4779
  return !!(n === "NotAllowedError" || n === "SecurityError" || r.toLowerCase().includes("permission") || r.toLowerCase().includes("user gesture"));
4780
4780
  }
4781
- const $e = "ikon-theme", Ke = "ikon-theme-user", Zp = "ikon-theme-change";
4781
+ const $e = "ikon-theme", Ke = "ikon-theme-user", ZE = "ikon-theme-change";
4782
4782
  function Jt(t) {
4783
4783
  typeof document < "u" && document.documentElement && document.documentElement.setAttribute("data-theme", t);
4784
4784
  }
@@ -4796,7 +4796,7 @@ function Rt() {
4796
4796
  function Nn() {
4797
4797
  return typeof window > "u" ? { width: 0, height: 0 } : { width: window.innerWidth, height: window.innerHeight };
4798
4798
  }
4799
- function qp() {
4799
+ function qE() {
4800
4800
  if (typeof window > "u" || !window.localStorage)
4801
4801
  return "light";
4802
4802
  const t = window.localStorage.getItem(Ke), e = window.localStorage.getItem($e);
@@ -4836,7 +4836,7 @@ function rm(t, e) {
4836
4836
  const r = e === void 0 ? !0 : !!e, i = window.localStorage;
4837
4837
  r ? i.setItem(Ke, n) : i.removeItem(Ke), i.setItem($e, n);
4838
4838
  try {
4839
- window.dispatchEvent(new CustomEvent(Zp, { detail: { mode: n } }));
4839
+ window.dispatchEvent(new CustomEvent(ZE, { detail: { mode: n } }));
4840
4840
  } catch {
4841
4841
  }
4842
4842
  return Jt(n), !0;
@@ -4875,9 +4875,9 @@ function vn() {
4875
4875
  }
4876
4876
  function Dn() {
4877
4877
  if (typeof navigator > "u" || typeof window > "u")
4878
- return Ie.Unknown;
4878
+ return Te.Unknown;
4879
4879
  const t = navigator.maxTouchPoints > 0, e = window.innerWidth <= 1024;
4880
- return t && e ? Ie.MobileWeb : Ie.DesktopWeb;
4880
+ return t && e ? Te.MobileWeb : Te.DesktopWeb;
4881
4881
  }
4882
4882
  const cm = {
4883
4883
  name: "ikon.client.getUrl",
@@ -4933,13 +4933,13 @@ function fm(t) {
4933
4933
  return !1;
4934
4934
  }
4935
4935
  }
4936
- const Em = {
4936
+ const pm = {
4937
4937
  name: "ikon.client.vibrate",
4938
4938
  description: "Trigger haptic feedback on supported devices",
4939
4939
  returnType: { kind: "boolean" },
4940
4940
  parameters: [{ name: "pattern", type: { kind: "string" }, description: 'Duration in ms, or comma-separated pattern (e.g., "200" or "100,50,100")' }]
4941
4941
  };
4942
- function pm(t) {
4942
+ function Em(t) {
4943
4943
  if (typeof navigator > "u" || !navigator.vibrate || typeof t != "string")
4944
4944
  return !1;
4945
4945
  try {
@@ -5200,7 +5200,7 @@ async function $m(t, e, n, r, i, s) {
5200
5200
  const d = await Notification.requestPermission();
5201
5201
  return d === "granted" && Zt(o, a, c, l), d;
5202
5202
  } catch (d) {
5203
- return Qp(d) ? (xe.push({ title: o, options: a, launchUrl: c, data: l }), Wm(), "default") : "denied";
5203
+ return QE(d) ? (xe.push({ title: o, options: a, launchUrl: c, data: l }), Wm(), "default") : "denied";
5204
5204
  }
5205
5205
  }
5206
5206
  let dt = null;
@@ -5241,7 +5241,7 @@ const zm = [
5241
5241
  { definition: cm, handler: lm },
5242
5242
  { definition: um, handler: dm },
5243
5243
  { definition: hm, handler: fm },
5244
- { definition: Em, handler: pm },
5244
+ { definition: pm, handler: Em },
5245
5245
  { definition: _m, handler: Im },
5246
5246
  { definition: Tm, handler: wm },
5247
5247
  { definition: gm, handler: Sm },
@@ -5260,7 +5260,7 @@ function Xm(t) {
5260
5260
  const e = zm.map(({ definition: n, handler: r }) => t.register(n, r));
5261
5261
  return () => e.forEach((n) => n());
5262
5262
  }
5263
- function Oe() {
5263
+ function Ue() {
5264
5264
  return typeof window < "u" && typeof navigator < "u";
5265
5265
  }
5266
5266
  function ia() {
@@ -5298,7 +5298,7 @@ function Qm(t) {
5298
5298
  t.level < aa || (Y.push(t), Y.length > qt && (Y = Y.slice(-qt)));
5299
5299
  }
5300
5300
  function Zm(t) {
5301
- qt = t?.maxBufferSize ?? sa, aa = t?.minLevel ?? oa, Y = [], zE(Qm);
5301
+ qt = t?.maxBufferSize ?? sa, aa = t?.minLevel ?? oa, Y = [], zp(Qm);
5302
5302
  }
5303
5303
  function LT(t) {
5304
5304
  en = t;
@@ -5324,19 +5324,19 @@ function BT() {
5324
5324
  }
5325
5325
  Zm();
5326
5326
  const la = U("LogSender"), Ye = 1e3, qm = 6e4, Jn = 10 * 1024, e_ = 400 * 1024, Qn = "…[truncated]", t_ = {
5327
- [re.DEBUG]: pe.Debug,
5328
- [re.INFO]: pe.Info,
5329
- [re.WARN]: pe.Warning,
5330
- [re.ERROR]: pe.Error
5327
+ [re.DEBUG]: me.Debug,
5328
+ [re.INFO]: me.Info,
5329
+ [re.WARN]: me.Warning,
5330
+ [re.ERROR]: me.Error
5331
5331
  };
5332
- let de, je, Nt, kt, ie, ee = [], Se = 0, We;
5332
+ let de, je, Nt, kt, ie, ee = [], Ce = 0, We;
5333
5333
  function n_(t) {
5334
5334
  return t.length <= Jn ? t : t.slice(0, Jn - Qn.length) + Qn;
5335
5335
  }
5336
5336
  function r_(t) {
5337
5337
  return {
5338
5338
  Time: t.timestamp,
5339
- Type: t_[t.level] ?? pe.Info,
5339
+ Type: t_[t.level] ?? me.Info,
5340
5340
  Message: n_(`[${t.component}] ${t.message}`),
5341
5341
  Parameters: "{}"
5342
5342
  };
@@ -5375,9 +5375,9 @@ async function s_(t) {
5375
5375
  }
5376
5376
  }
5377
5377
  function o_() {
5378
- if (Se === 0)
5378
+ if (Ce === 0)
5379
5379
  return Ye;
5380
- const t = Ye * (1 << Math.min(Se, 6));
5380
+ const t = Ye * (1 << Math.min(Ce, 6));
5381
5381
  return Math.min(t, qm);
5382
5382
  }
5383
5383
  function Ve(t) {
@@ -5405,13 +5405,13 @@ async function a_() {
5405
5405
  ee = n.slice(i).flat().concat(ee), r = !0;
5406
5406
  break;
5407
5407
  }
5408
- r ? Se++ : Se = 0, Ve(o_());
5408
+ r ? Ce++ : Ce = 0, Ve(o_());
5409
5409
  }
5410
5410
  function c_() {
5411
5411
  ie !== void 0 && (clearTimeout(ie), ie = void 0), Ve(0);
5412
5412
  }
5413
5413
  function l_(t, e, n, r) {
5414
- da(), de = t, je = e, Nt = n, kt = r, Se = 0, typeof window < "u" && (We = c_, window.addEventListener("online", We)), Ve(Ye);
5414
+ da(), de = t, je = e, Nt = n, kt = r, Ce = 0, typeof window < "u" && (We = c_, window.addEventListener("online", We)), Ve(Ye);
5415
5415
  }
5416
5416
  function u_(t, e) {
5417
5417
  if (!de || !je)
@@ -5426,7 +5426,7 @@ function u_(t, e) {
5426
5426
  }).catch((i) => la.warn(`Failed to send analytics event ${t}: ${i}`));
5427
5427
  }
5428
5428
  function da() {
5429
- ie !== void 0 && (clearTimeout(ie), ie = void 0), We !== void 0 && typeof window < "u" && (window.removeEventListener("online", We), We = void 0), de = void 0, je = void 0, Nt = void 0, kt = void 0, ee = [], Se = 0;
5429
+ ie !== void 0 && (clearTimeout(ie), ie = void 0), We !== void 0 && typeof window < "u" && (window.removeEventListener("online", We), We = void 0), de = void 0, je = void 0, Nt = void 0, kt = void 0, ee = [], Ce = 0;
5430
5430
  }
5431
5431
  const d_ = U("ConnectTimeline"), Zn = "ikon-connect-trace-id";
5432
5432
  let qn, er = !1;
@@ -5523,9 +5523,9 @@ const It = {}, nn = "https://api.prod.ikon.live", rn = "https://api.dev.ikon.liv
5523
5523
  function Ln(t) {
5524
5524
  return f_.some((n) => t.endsWith(n)) ? t.includes(".dev.") ? "development" : "production" : null;
5525
5525
  }
5526
- let Ge = null, Ue = null;
5527
- async function E_() {
5528
- return Ge || (typeof window > "u" ? null : Ue || (Ue = (async () => {
5526
+ let Ge = null, Le = null;
5527
+ async function p_() {
5528
+ return Ge || (typeof window > "u" ? null : Le || (Le = (async () => {
5529
5529
  try {
5530
5530
  const t = await fetch(`${window.location.origin}/ikon/api/env`, {
5531
5531
  signal: ue(5e3)
@@ -5536,19 +5536,19 @@ async function E_() {
5536
5536
  } catch {
5537
5537
  return null;
5538
5538
  } finally {
5539
- Ue = null;
5539
+ Le = null;
5540
5540
  }
5541
- })(), Ue));
5541
+ })(), Le));
5542
5542
  }
5543
5543
  function ha() {
5544
- return typeof window > "u" || wp() === !1 || !et() ? null : `${window.location.origin}/ikon/api`;
5544
+ return typeof window > "u" || wE() === !1 || !et() ? null : `${window.location.origin}/ikon/api`;
5545
5545
  }
5546
- function p_() {
5546
+ function E_() {
5547
5547
  return typeof window > "u" || !et() ? null : `${window.location.origin}/ikon/auth`;
5548
5548
  }
5549
5549
  const m_ = !1;
5550
5550
  function __() {
5551
- return Tp() || m_;
5551
+ return TE() || m_;
5552
5552
  }
5553
5553
  function fa(t) {
5554
5554
  const e = ha();
@@ -5570,7 +5570,7 @@ function GT() {
5570
5570
  }
5571
5571
  async function I_(t) {
5572
5572
  if (__()) {
5573
- const i = p_();
5573
+ const i = E_();
5574
5574
  if (i) return i;
5575
5575
  }
5576
5576
  if (t) return t;
@@ -5581,7 +5581,7 @@ async function I_(t) {
5581
5581
  if (!et())
5582
5582
  return xt;
5583
5583
  const n = Ln(window.location.hostname);
5584
- return n ? n === "development" ? xt : Bt : await E_() === "development" ? xt : Bt;
5584
+ return n ? n === "development" ? xt : Bt : await p_() === "development" ? xt : Bt;
5585
5585
  }
5586
5586
  function Dt() {
5587
5587
  if (typeof window > "u")
@@ -5630,7 +5630,7 @@ function $T() {
5630
5630
  window.history.replaceState(null, "", r + window.location.search);
5631
5631
  }
5632
5632
  }
5633
- const F = U("Authenticator"), Ce = w.GROUP_CORE | w.GROUP_KEEPALIVE | w.GROUP_EVENTS | w.GROUP_ACTIONS | w.GROUP_UI | w.GROUP_AUDIO | w.GROUP_VIDEO | w.GROUP_ANALYTICS | w.GROUP_APP_LOCAL, w_ = 2, g_ = 6e4, S_ = 2e3, Ea = 1e4, C_ = 3e3, A_ = 3e3, pa = 3, Pn = 4;
5633
+ const F = U("Authenticator"), Ae = w.GROUP_CORE | w.GROUP_KEEPALIVE | w.GROUP_EVENTS | w.GROUP_ACTIONS | w.GROUP_UI | w.GROUP_AUDIO | w.GROUP_VIDEO | w.GROUP_ANALYTICS | w.GROUP_APP_LOCAL, w_ = 2, g_ = 6e4, S_ = 2e3, pa = 1e4, C_ = 3e3, A_ = 3e3, Ea = 3, Pn = 4;
5634
5634
  async function y_(t, e, n, r) {
5635
5635
  if (t)
5636
5636
  try {
@@ -5708,13 +5708,13 @@ async function _a(t, e, n, r) {
5708
5708
  }
5709
5709
  return s.json();
5710
5710
  }
5711
- async function _e(t, e, n) {
5712
- const i = ue(n ?? Ea), s = e ? bt([e, i]) : i, o = Date.now(), a = await fetch(t, { signal: s });
5711
+ async function Ie(t, e, n) {
5712
+ const i = ue(n ?? pa), s = e ? bt([e, i]) : i, o = Date.now(), a = await fetch(t, { signal: s });
5713
5713
  if (!a.ok) {
5714
5714
  const h = await a.text().catch(() => "Unknown error");
5715
5715
  throw a.status === 429 ? new yt(`Server is at capacity: ${h}`) : new M(`Failed to connect: ${a.status} ${h}`);
5716
5716
  }
5717
- const c = await a.arrayBuffer(), l = new Uint8Array(c), d = await pl(l);
5717
+ const c = await a.arrayBuffer(), l = new Uint8Array(c), d = await El(l);
5718
5718
  return F.debug(`Connect URL fetched in ${Date.now() - o}ms`), { authResponse: d };
5719
5719
  }
5720
5720
  async function k_(t, e) {
@@ -5734,9 +5734,9 @@ async function Ia(t, e, n, r, i) {
5734
5734
  let c = 0;
5735
5735
  for (; c < w_ || Date.now() - a < g_; ) {
5736
5736
  for (let l = 0; l < s.length; l++) {
5737
- const d = s[l], h = c === 0 && l === 0 && o ? C_ : Ea;
5737
+ const d = s[l], h = c === 0 && l === 0 && o ? C_ : pa;
5738
5738
  try {
5739
- const u = await _e(d.url, i, h);
5739
+ const u = await Ie(d.url, i, h);
5740
5740
  return u.usedProxyUrl = d.isProxy, u.directUrl = t, F.info(`Auth succeeded via ${d.isProxy ? "proxy" : "direct"} URL`), u;
5741
5741
  } catch (u) {
5742
5742
  if (i?.aborted || u instanceof yt)
@@ -5753,9 +5753,9 @@ function v_(t, e, n = "") {
5753
5753
  return xc({
5754
5754
  ServerSessionId: "",
5755
5755
  // Server will fill this in
5756
- ContextType: be.Browser,
5757
- UserType: ke.Human,
5758
- PayloadType: Ne.Teleport,
5756
+ ContextType: Ne.Browser,
5757
+ UserType: ve.Human,
5758
+ PayloadType: ke.Teleport,
5759
5759
  IsInternal: !1,
5760
5760
  IsSnapshot: Rn(),
5761
5761
  Description: t.description ?? "Ikon SDK TypeScript",
@@ -5765,8 +5765,8 @@ function v_(t, e, n = "") {
5765
5765
  VersionId: t.versionId ?? "1.0.0",
5766
5766
  InstallId: t.installId ?? "",
5767
5767
  Locale: t.locale ?? (typeof navigator < "u" ? navigator.language : "en-US"),
5768
- OpcodeGroupsFromServer: t.opcodeGroupsFromServer ?? Ce,
5769
- OpcodeGroupsToServer: t.opcodeGroupsToServer ?? Ce,
5768
+ OpcodeGroupsFromServer: t.opcodeGroupsFromServer ?? Ae,
5769
+ OpcodeGroupsToServer: t.opcodeGroupsToServer ?? Ae,
5770
5770
  ProtocolVersion: 1,
5771
5771
  SdkCapability: Pn,
5772
5772
  HasInput: !1,
@@ -5856,8 +5856,8 @@ async function O_(t, e) {
5856
5856
  const u = (await d.json()).token;
5857
5857
  if (!u)
5858
5858
  throw new M("Server did not return a token");
5859
- const p = `${n}/connect?token=${encodeURIComponent(u)}`, _ = await _e(p, e);
5860
- return _.directUrl = p, _.backendUrl = Wt(t.backendUrl), _.authToken = a, _;
5859
+ const E = `${n}/connect?token=${encodeURIComponent(u)}`, _ = await Ie(E, e);
5860
+ return _.directUrl = E, _.backendUrl = Wt(t.backendUrl), _.authToken = a, _;
5861
5861
  }
5862
5862
  async function U_(t, e, n = "auto", r = !1) {
5863
5863
  if (t.sessionId && t.channelKey)
@@ -5877,14 +5877,14 @@ async function U_(t, e, n = "auto", r = !1) {
5877
5877
  signal: e
5878
5878
  });
5879
5879
  if (!s.ok) {
5880
- const p = await s.text().catch(() => "Unknown error");
5881
- throw new M(`API key authentication failed: ${s.status} ${p}`);
5880
+ const E = await s.text().catch(() => "Unknown error");
5881
+ throw new M(`API key authentication failed: ${s.status} ${E}`);
5882
5882
  }
5883
5883
  const a = (await s.json()).token;
5884
5884
  if (!a)
5885
5885
  throw new M("Backend did not return a token");
5886
- const c = Dt(), l = t.provisioningTimeoutMs ?? qo, d = { ...c, ...t.parameters }, h = Nn(), u = ne() ? pa : 1;
5887
- for (let p = 0; p < u; p++)
5886
+ const c = Dt(), l = t.provisioningTimeoutMs ?? qo, d = { ...c, ...t.parameters }, h = Nn(), u = ne() ? Ea : 1;
5887
+ for (let E = 0; E < u; E++)
5888
5888
  try {
5889
5889
  const _ = {
5890
5890
  space: t.spaceId,
@@ -5894,18 +5894,18 @@ async function U_(t, e, n = "auto", r = !1) {
5894
5894
  waitForRunning: !0,
5895
5895
  waitForRunningTimeoutMs: l,
5896
5896
  connectTraceId: Un(),
5897
- contextType: be.Plugin,
5898
- userType: t.userType ?? ke.Human,
5897
+ contextType: Ne.Plugin,
5898
+ userType: t.userType ?? ve.Human,
5899
5899
  clientType: t.clientType ?? Dn(),
5900
- payloadType: Ne.Teleport,
5900
+ payloadType: ke.Teleport,
5901
5901
  description: t.description ?? "Ikon SDK TypeScript",
5902
5902
  deviceId: t.deviceId ?? vt(),
5903
5903
  productId: t.productId ?? "",
5904
5904
  versionId: t.versionId ?? "",
5905
5905
  installId: t.installId ?? "",
5906
5906
  locale: t.locale ?? (typeof navigator < "u" ? navigator.language : "en-US"),
5907
- opcodeGroupsFromServer: t.opcodeGroupsFromServer ?? Ce,
5908
- opcodeGroupsToServer: t.opcodeGroupsToServer ?? Ce,
5907
+ opcodeGroupsFromServer: t.opcodeGroupsFromServer ?? Ae,
5908
+ opcodeGroupsToServer: t.opcodeGroupsToServer ?? Ae,
5909
5909
  protocolVersion: 1,
5910
5910
  userAgent: typeof navigator < "u" ? navigator.userAgent : "",
5911
5911
  launchParams: d,
@@ -5922,12 +5922,12 @@ async function U_(t, e, n = "auto", r = !1) {
5922
5922
  }, I = e ? bt([e, ue(l)]) : ue(l), T = await _a(i, _, a, I);
5923
5923
  if (T.state?.toLowerCase() !== "running" || !T.configuration?.url)
5924
5924
  throw new Ko(l);
5925
- const E = await Ia(T.configuration.url, T.configuration.proxyUrl, n, r, I);
5926
- return E.backendUrl = i, E.authToken = a, E.brandingRequired = T.configuration.brandingRequired ?? !1, ra(T.configuration.push), E;
5925
+ const p = await Ia(T.configuration.url, T.configuration.proxyUrl, n, r, I);
5926
+ return p.backendUrl = i, p.authToken = a, p.brandingRequired = T.configuration.brandingRequired ?? !1, ra(T.configuration.push), p;
5927
5927
  } catch (_) {
5928
- if (_ instanceof At || _ instanceof yt || p === u - 1)
5928
+ if (_ instanceof At || _ instanceof yt || E === u - 1)
5929
5929
  throw _;
5930
- F.debug(`Init attempt ${p + 1}/${u} failed, retrying: ${_}`);
5930
+ F.debug(`Init attempt ${E + 1}/${u} failed, retrying: ${_}`);
5931
5931
  }
5932
5932
  throw new M("Failed to init after all attempts");
5933
5933
  }
@@ -5936,7 +5936,7 @@ async function L_(t, e, n = "auto", r = !1) {
5936
5936
  throw new M("Cannot specify both sessionId and channelKey. Use sessionId for precomputed sessions or channelKey to select a channel.");
5937
5937
  const i = fa(t.backendType), s = t.token;
5938
5938
  F.debug(`Authenticating with session token to: ${i}, space ID: ${t.spaceId}`);
5939
- const o = Dt(), a = t.provisioningTimeoutMs ?? qo, c = { ...o, ...t.parameters }, l = Nn(), d = ne() ? pa : 1;
5939
+ const o = Dt(), a = t.provisioningTimeoutMs ?? qo, c = { ...o, ...t.parameters }, l = Nn(), d = ne() ? Ea : 1;
5940
5940
  for (let h = 0; h < d; h++)
5941
5941
  try {
5942
5942
  const u = {
@@ -5947,18 +5947,18 @@ async function L_(t, e, n = "auto", r = !1) {
5947
5947
  waitForRunning: !0,
5948
5948
  waitForRunningTimeoutMs: a,
5949
5949
  connectTraceId: Un(),
5950
- contextType: be.Browser,
5951
- userType: ke.Human,
5950
+ contextType: Ne.Browser,
5951
+ userType: ve.Human,
5952
5952
  clientType: Dn(),
5953
- payloadType: Ne.Teleport,
5953
+ payloadType: ke.Teleport,
5954
5954
  description: t.description ?? "Ikon SDK TypeScript",
5955
5955
  deviceId: t.deviceId ?? vt(),
5956
5956
  productId: t.productId ?? "",
5957
5957
  versionId: t.versionId ?? "",
5958
5958
  installId: t.installId ?? "",
5959
5959
  locale: t.locale ?? (typeof navigator < "u" ? navigator.language : "en-US"),
5960
- opcodeGroupsFromServer: t.opcodeGroupsFromServer ?? Ce,
5961
- opcodeGroupsToServer: t.opcodeGroupsToServer ?? Ce,
5960
+ opcodeGroupsFromServer: t.opcodeGroupsFromServer ?? Ae,
5961
+ opcodeGroupsToServer: t.opcodeGroupsToServer ?? Ae,
5962
5962
  protocolVersion: 1,
5963
5963
  userAgent: typeof navigator < "u" ? navigator.userAgent : "",
5964
5964
  launchParams: c,
@@ -5972,10 +5972,10 @@ async function L_(t, e, n = "auto", r = !1) {
5972
5972
  sdkCapability: Pn,
5973
5973
  supportsCompression: _n(),
5974
5974
  isSnapshot: Rn()
5975
- }, p = e ? bt([e, ue(a)]) : ue(a), _ = await _a(i, u, s, p);
5975
+ }, E = e ? bt([e, ue(a)]) : ue(a), _ = await _a(i, u, s, E);
5976
5976
  if (_.state?.toLowerCase() !== "running" || !_.configuration?.url)
5977
5977
  throw new Ko(a);
5978
- const I = await Ia(_.configuration.url, _.configuration.proxyUrl, n, r, p);
5978
+ const I = await Ia(_.configuration.url, _.configuration.proxyUrl, n, r, E);
5979
5979
  return I.backendUrl = i, I.authToken = s, I.brandingRequired = _.configuration.brandingRequired ?? !1, ra(_.configuration.push), I;
5980
5980
  } catch (u) {
5981
5981
  if (u instanceof At || u instanceof yt || h === d - 1)
@@ -6094,7 +6094,7 @@ class F_ extends Error {
6094
6094
  super(e), this.remoteErrorType = n, this.remoteStackTrace = r, this.code = i, this.name = "FunctionCallError";
6095
6095
  }
6096
6096
  }
6097
- const Le = U("FunctionRegistry"), ir = new Uint8Array(0), sr = 3e4;
6097
+ const Me = U("FunctionRegistry"), ir = new Uint8Array(0), sr = 3e4;
6098
6098
  function B_(t) {
6099
6099
  return !t || typeof t != "object" ? !1 : t.data instanceof Uint8Array;
6100
6100
  }
@@ -6201,7 +6201,7 @@ class x_ {
6201
6201
  ValueJson: "",
6202
6202
  ValueData: h
6203
6203
  });
6204
- const p = i.parameters[u], _ = p ? p.TypeName : this.inferTypeName(h);
6204
+ const E = i.parameters[u], _ = E ? E.TypeName : this.inferTypeName(h);
6205
6205
  return Yt({
6206
6206
  ParameterIndex: u,
6207
6207
  TypeName: _,
@@ -6220,13 +6220,13 @@ class x_ {
6220
6220
  targetIds: [i.clientSessionId]
6221
6221
  });
6222
6222
  return new Promise((h, u) => {
6223
- const p = setTimeout(() => {
6223
+ const E = setTimeout(() => {
6224
6224
  this.pendingCalls.delete(o.toString()), u(new Error(`Function call '${e}' timed out after ${sr}ms`));
6225
6225
  }, sr);
6226
6226
  this.pendingCalls.set(o.toString(), {
6227
6227
  resolve: h,
6228
6228
  reject: u,
6229
- timeout: p,
6229
+ timeout: E,
6230
6230
  functionName: e,
6231
6231
  args: s
6232
6232
  }), this.config.sendProtocolMessage(d);
@@ -6312,7 +6312,7 @@ class x_ {
6312
6312
  if (n === w.ACTION_FUNCTION_CALL) {
6313
6313
  const r = Z(e);
6314
6314
  return this.handleFunctionCall(e, r.senderId).catch((i) => {
6315
- Le.error("Failed to handle function call:", i);
6315
+ Me.error("Failed to handle function call:", i);
6316
6316
  }), !0;
6317
6317
  }
6318
6318
  if (n === w.ACTION_FUNCTION_RESULT)
@@ -6337,7 +6337,7 @@ class x_ {
6337
6337
  handleFunctionResult(e) {
6338
6338
  const n = Lu(e), r = n.CallId.toString(), i = this.pendingCalls.get(r);
6339
6339
  if (!i) {
6340
- Le.warn(`Received result for unknown call: ${r}`);
6340
+ Me.warn(`Received result for unknown call: ${r}`);
6341
6341
  return;
6342
6342
  }
6343
6343
  if (this.pendingCalls.delete(r), clearTimeout(i.timeout), n.ResultData && n.ResultData.length > 0 && !n.ResultJson) {
@@ -6350,7 +6350,7 @@ class x_ {
6350
6350
  handleFunctionError(e) {
6351
6351
  const n = ou(e), r = n.CallId.toString(), i = this.pendingCalls.get(r);
6352
6352
  if (!i) {
6353
- Le.warn(`Received error for unknown call: ${r}`);
6353
+ Me.warn(`Received error for unknown call: ${r}`);
6354
6354
  return;
6355
6355
  }
6356
6356
  this.pendingCalls.delete(r), clearTimeout(i.timeout);
@@ -6405,7 +6405,7 @@ class x_ {
6405
6405
  async handleFunctionCall(e, n) {
6406
6406
  const r = await Ol(e), i = this.functions.get(r.FunctionName);
6407
6407
  if (!i) {
6408
- Le.warn(`Received call for unknown function: ${r.FunctionName}`), this.sendError(r.CallId, r.InstanceId, n, new Error(`Unknown function: ${r.FunctionName}`));
6408
+ Me.warn(`Received call for unknown function: ${r.FunctionName}`), this.sendError(r.CallId, r.InstanceId, n, new Error(`Unknown function: ${r.FunctionName}`));
6409
6409
  return;
6410
6410
  }
6411
6411
  this.sendAck(r.CallId, r.InstanceId, n), this.executeFunction(i, r, n);
@@ -6431,7 +6431,7 @@ class x_ {
6431
6431
  const c = Ta(o, e.returnType);
6432
6432
  this.sendResult(n.CallId, n.InstanceId, r, e, c, a);
6433
6433
  } catch (i) {
6434
- Le.error(`Function ${n.FunctionName} execution failed:`, i), this.sendError(n.CallId, n.InstanceId, r, i instanceof Error ? i : new Error(String(i)));
6434
+ Me.error(`Function ${n.FunctionName} execution failed:`, i), this.sendError(n.CallId, n.InstanceId, r, i instanceof Error ? i : new Error(String(i)));
6435
6435
  }
6436
6436
  }
6437
6437
  /**
@@ -6564,7 +6564,7 @@ function or(t) {
6564
6564
  return sn.warn("Failed to parse reactive value JSON, returning raw string:", e), t;
6565
6565
  }
6566
6566
  }
6567
- const K_ = "login_required", Y_ = (t, e) => (t.code !== K_ || (Xp({ functionName: e.functionName, args: e.args }), ta(t.message)), null);
6567
+ const K_ = "login_required", Y_ = (t, e) => (t.code !== K_ || (XE({ functionName: e.functionName, args: e.args }), ta(t.message)), null);
6568
6568
  function j_() {
6569
6569
  if (typeof navigator > "u")
6570
6570
  return !1;
@@ -6588,7 +6588,7 @@ function z_(t) {
6588
6588
  return n.find((i) => i === "user" || i === "environment") ?? void 0;
6589
6589
  }
6590
6590
  }
6591
- function Me(t) {
6591
+ function Pe(t) {
6592
6592
  if (!(typeof t != "string" || !t.trim()))
6593
6593
  try {
6594
6594
  return JSON.parse(t);
@@ -6635,37 +6635,37 @@ function eI(t, e) {
6635
6635
  const n = [];
6636
6636
  return n.push(
6637
6637
  t.register(X_, async (r, i) => {
6638
- if (e.isWebRtcEnabled) {
6638
+ if (e.isWebRtcCaptureAvailable) {
6639
6639
  const l = e.webRtcSignaling;
6640
6640
  if (!l)
6641
6641
  throw new Error("WebRTC signaling is not connected");
6642
- const d = Me(i);
6642
+ const d = Pe(i);
6643
6643
  return await l.startVideoCapture(d?.constraints), "webrtc-video";
6644
6644
  }
6645
6645
  const s = await e.ensureMediaCapture();
6646
6646
  if (!s)
6647
6647
  throw new Error("Media capture is not available in this environment");
6648
- const o = Me(i);
6648
+ const o = Pe(i);
6649
6649
  return ((typeof r == "string" && r.trim().toLowerCase() === "screen" ? "screen" : "camera") === "screen" ? await s.video.startScreen({ userGesture: !1, options: o, constraints: o?.constraints }) : await s.video.startCamera({ userGesture: !1, options: o, constraints: o?.constraints })).streamId;
6650
6650
  })
6651
6651
  ), n.push(
6652
6652
  t.register(J_, async (r) => {
6653
- if (e.isWebRtcEnabled) {
6653
+ if (e.isWebRtcCaptureAvailable) {
6654
6654
  const a = e.webRtcSignaling;
6655
6655
  if (!a)
6656
6656
  throw new Error("WebRTC signaling is not connected");
6657
- const c = Me(r);
6657
+ const c = Pe(r);
6658
6658
  return await a.startAudioCapture(c?.constraints), "webrtc-audio";
6659
6659
  }
6660
6660
  const i = await e.ensureMediaCapture();
6661
6661
  if (!i)
6662
6662
  throw new Error("Media capture is not available in this environment");
6663
- const s = Me(r);
6663
+ const s = Pe(r);
6664
6664
  return (await i.audio.startMic({ userGesture: !1, options: s, constraints: s?.constraints })).streamId;
6665
6665
  })
6666
6666
  ), n.push(
6667
6667
  t.register(Q_, async (r) => {
6668
- if (e.isWebRtcEnabled) {
6668
+ if (e.isWebRtcCaptureAvailable) {
6669
6669
  const a = e.webRtcSignaling;
6670
6670
  return a && await a.stopCapture(), !0;
6671
6671
  }
@@ -6680,7 +6680,7 @@ function eI(t, e) {
6680
6680
  const i = await e.ensureMediaCapture();
6681
6681
  if (!i)
6682
6682
  throw new Error("Media capture is not available in this environment");
6683
- const s = Me(r) ?? {};
6683
+ const s = Pe(r) ?? {};
6684
6684
  if (s.mode === "native" && j_()) {
6685
6685
  const l = await i.image.captureFromNativeCamera({
6686
6686
  facing: z_(s.constraints),
@@ -6695,7 +6695,7 @@ function eI(t, e) {
6695
6695
  return rr(d, l.data);
6696
6696
  }
6697
6697
  let o = null;
6698
- e.isWebRtcEnabled && e.webRtcSignaling && (o = e.webRtcSignaling.getActiveVideoCaptureStream()), o || (o = i.video.getActiveScreenStream());
6698
+ e.isWebRtcCaptureAvailable && e.webRtcSignaling && (o = e.webRtcSignaling.getActiveVideoCaptureStream()), o || (o = i.video.getActiveScreenStream());
6699
6699
  let a;
6700
6700
  o ? a = await i.image.captureFromStream(o, {
6701
6701
  mime: s.mime,
@@ -6733,7 +6733,7 @@ function eI(t, e) {
6733
6733
  const wa = {
6734
6734
  PlaySound: "ikon.client.playSound",
6735
6735
  StopSound: "ikon.client.stopSound"
6736
- }, on = /* @__PURE__ */ new Map(), Ae = /* @__PURE__ */ new Map();
6736
+ }, on = /* @__PURE__ */ new Map(), ye = /* @__PURE__ */ new Map();
6737
6737
  let tI = 1;
6738
6738
  const nI = "data:audio/wav;base64,UklGRjIAAABXQVZFZm10IBAAAAABAAEAQB8AAEAfAAABAAgAZGF0YQYAAAAAAAAAAAA=", rI = 8, Xe = [];
6739
6739
  let st = !1, te = null;
@@ -6808,9 +6808,9 @@ function cI(t, e, n, r) {
6808
6808
  const a = typeof n == "number" ? Math.max(0, Math.min(1, n)) : 1;
6809
6809
  o.volume = a;
6810
6810
  const c = `sound-${tI++}`, l = () => {
6811
- Ae.delete(c), o.removeEventListener("ended", l), o.removeEventListener("error", l);
6811
+ ye.delete(c), o.removeEventListener("ended", l), o.removeEventListener("error", l);
6812
6812
  };
6813
- o.addEventListener("ended", l), o.addEventListener("error", l), Ae.set(c, o), o.play().then(
6813
+ o.addEventListener("ended", l), o.addEventListener("error", l), ye.set(c, o), o.play().then(
6814
6814
  () => s(c),
6815
6815
  () => {
6816
6816
  l(), s(null);
@@ -6830,23 +6830,23 @@ const lI = {
6830
6830
  function uI(t) {
6831
6831
  if (typeof t != "string")
6832
6832
  return !1;
6833
- const e = Ae.get(t);
6833
+ const e = ye.get(t);
6834
6834
  if (!e)
6835
6835
  return !1;
6836
6836
  try {
6837
- return e.pause(), e.currentTime = 0, Ae.delete(t), !0;
6837
+ return e.pause(), e.currentTime = 0, ye.delete(t), !0;
6838
6838
  } catch {
6839
6839
  return !1;
6840
6840
  }
6841
6841
  }
6842
6842
  function dI() {
6843
6843
  on.clear();
6844
- for (const [t, e] of Ae) {
6844
+ for (const [t, e] of ye) {
6845
6845
  try {
6846
6846
  e.pause(), e.currentTime = 0;
6847
6847
  } catch {
6848
6848
  }
6849
- Ae.delete(t);
6849
+ ye.delete(t);
6850
6850
  }
6851
6851
  an();
6852
6852
  }
@@ -6861,7 +6861,7 @@ function fI(t) {
6861
6861
  e.forEach((n) => n()), dI();
6862
6862
  };
6863
6863
  }
6864
- function EI() {
6864
+ function pI() {
6865
6865
  const r = new ArrayBuffer(882044), i = new DataView(r), s = (a, c) => {
6866
6866
  for (let l = 0; l < c.length; l++)
6867
6867
  i.setUint8(a + l, c.charCodeAt(l));
@@ -6876,7 +6876,7 @@ class Sa {
6876
6876
  return this._silentAudioElement;
6877
6877
  }
6878
6878
  setup(e, n) {
6879
- if (!(typeof document > "u") && (this._silentAudioElement || (this._silentAudioElement = document.createElement("audio"), this._silentAudioElement.src = EI(), this._silentAudioElement.loop = !0, this._silentAudioElement.volume = 0.01, this._silentAudioElement.play().catch(() => {
6879
+ if (!(typeof document > "u") && (this._silentAudioElement || (this._silentAudioElement = document.createElement("audio"), this._silentAudioElement.src = pI(), this._silentAudioElement.loop = !0, this._silentAudioElement.volume = 0.01, this._silentAudioElement.play().catch(() => {
6880
6880
  })), typeof navigator < "u" && "mediaSession" in navigator)) {
6881
6881
  const r = e ?? {};
6882
6882
  navigator.mediaSession.metadata = new MediaMetadata({
@@ -6914,7 +6914,7 @@ class Sa {
6914
6914
  }
6915
6915
  }
6916
6916
  }
6917
- function pI(t) {
6917
+ function EI(t) {
6918
6918
  return new Worker(
6919
6919
  "" + new URL("assets/viseme-worker-DVWM4pRh.js", import.meta.url).href,
6920
6920
  {
@@ -6953,7 +6953,7 @@ class bI {
6953
6953
  return;
6954
6954
  this.protocolPort = e;
6955
6955
  try {
6956
- this.worker = new pI();
6956
+ this.worker = new EI();
6957
6957
  } catch (r) {
6958
6958
  Gt.warn(`Failed to create viseme worker: ${r}`), this.protocolPort.close(), this.protocolPort = null;
6959
6959
  return;
@@ -7015,8 +7015,8 @@ class bI {
7015
7015
  const i = r * RI, s = n.frames, o = n.count, c = (n.head - o + oe) % oe;
7016
7016
  let l = null, d = null;
7017
7017
  for (let I = 0; I < o; I++) {
7018
- const T = (c + I) % oe, E = s[T], f = E.samplePosition + Math.max(E.frameSamples, 1);
7019
- if (E.samplePosition <= i && (l = E), f > i && !d && (d = E, E.samplePosition <= i))
7018
+ const T = (c + I) % oe, p = s[T], f = p.samplePosition + Math.max(p.frameSamples, 1);
7019
+ if (p.samplePosition <= i && (l = p), f > i && !d && (d = p, p.samplePosition <= i))
7020
7020
  break;
7021
7021
  }
7022
7022
  if (!l)
@@ -7026,7 +7026,7 @@ class bI {
7026
7026
  continue;
7027
7027
  if (!d)
7028
7028
  return this._visemeResult.mouthOpenY = l.mouthOpenY, this._visemeResult.mouthForm = l.mouthForm, this._visemeResult;
7029
- const u = l.samplePosition, p = Math.max(l.frameSamples, 1), _ = u + p;
7029
+ const u = l.samplePosition, E = Math.max(l.frameSamples, 1), _ = u + E;
7030
7030
  if (l !== d && d.samplePosition > l.samplePosition && _ > u) {
7031
7031
  const I = Math.min(1, Math.max(0, (i - u) / (_ - u)));
7032
7032
  this._visemeResult.mouthOpenY = l.mouthOpenY + I * (d.mouthOpenY - l.mouthOpenY), this._visemeResult.mouthForm = l.mouthForm + I * (d.mouthForm - l.mouthForm);
@@ -7097,7 +7097,7 @@ class bI {
7097
7097
  const Ra = U("DebugMode");
7098
7098
  let ce = !1;
7099
7099
  function NI() {
7100
- return ce ? !0 : (ce = fp(), ce && (jo(re.DEBUG), Ra.info("Debug mode enabled")), ce);
7100
+ return ce ? !0 : (ce = fE(), ce && (jo(re.DEBUG), Ra.info("Debug mode enabled")), ce);
7101
7101
  }
7102
7102
  function dr() {
7103
7103
  return ce;
@@ -7107,7 +7107,7 @@ function kI() {
7107
7107
  }
7108
7108
  let Je = !1;
7109
7109
  function vI() {
7110
- return Je = Ip(), Je;
7110
+ return Je = IE(), Je;
7111
7111
  }
7112
7112
  function KT() {
7113
7113
  return Je;
@@ -7184,7 +7184,7 @@ const fr = {
7184
7184
  [A.WebSocket]: 1,
7185
7185
  [A.WebTransportProxy]: 2,
7186
7186
  [A.WebSocketProxy]: 3
7187
- }, ot = /* @__PURE__ */ new Set([A.WebTransportProxy, A.WebSocketProxy]), Ht = /* @__PURE__ */ new Set([A.WebTransport, A.WebSocket]), Er = /* @__PURE__ */ new Set([A.WebSocket, A.WebSocketProxy]), pr = /* @__PURE__ */ new Set([A.WebTransport, A.WebTransportProxy]), fe = U("EndpointSelector"), at = "ikon-endpoint-type", Ee = "ikon-proxy-preferred", Pe = "ikon-endpoint-timestamp", FI = 1440 * 60 * 1e3;
7187
+ }, ot = /* @__PURE__ */ new Set([A.WebTransportProxy, A.WebSocketProxy]), Ht = /* @__PURE__ */ new Set([A.WebTransport, A.WebSocket]), pr = /* @__PURE__ */ new Set([A.WebSocket, A.WebSocketProxy]), Er = /* @__PURE__ */ new Set([A.WebTransport, A.WebTransportProxy]), fe = U("EndpointSelector"), at = "ikon-endpoint-type", pe = "ikon-proxy-preferred", Fe = "ikon-endpoint-timestamp", FI = 1440 * 60 * 1e3;
7188
7188
  class BI {
7189
7189
  isLocal;
7190
7190
  _proxyMode;
@@ -7208,7 +7208,7 @@ class BI {
7208
7208
  markProxyPreferred() {
7209
7209
  this._proxyPreferred = !0;
7210
7210
  try {
7211
- localStorage.setItem(Ee, "true"), localStorage.setItem(Pe, String(Date.now()));
7211
+ localStorage.setItem(pe, "true"), localStorage.setItem(Fe, String(Date.now()));
7212
7212
  } catch {
7213
7213
  }
7214
7214
  fe.info("Marked proxy as preferred");
@@ -7219,7 +7219,7 @@ class BI {
7219
7219
  clearProxyPreference() {
7220
7220
  this._proxyPreferred = !1;
7221
7221
  try {
7222
- localStorage.removeItem(Ee);
7222
+ localStorage.removeItem(pe);
7223
7223
  } catch {
7224
7224
  }
7225
7225
  }
@@ -7259,19 +7259,19 @@ class BI {
7259
7259
  }
7260
7260
  this.workingEndpointType = e;
7261
7261
  try {
7262
- localStorage.setItem(at, String(e)), localStorage.setItem(Pe, String(Date.now()));
7262
+ localStorage.setItem(at, String(e)), localStorage.setItem(Fe, String(Date.now()));
7263
7263
  } catch {
7264
7264
  }
7265
7265
  if (ot.has(e)) {
7266
7266
  this._proxyPreferred = !0;
7267
7267
  try {
7268
- localStorage.setItem(Ee, "true");
7268
+ localStorage.setItem(pe, "true");
7269
7269
  } catch {
7270
7270
  }
7271
7271
  } else if (Ht.has(e)) {
7272
7272
  this._proxyPreferred = !1;
7273
7273
  try {
7274
- localStorage.removeItem(Ee);
7274
+ localStorage.removeItem(pe);
7275
7275
  } catch {
7276
7276
  }
7277
7277
  }
@@ -7290,15 +7290,15 @@ class BI {
7290
7290
  }
7291
7291
  filterByTransport(e) {
7292
7292
  const n = this._websocket, r = this._webtransport;
7293
- return n === void 0 && r === void 0 || n === !0 && r === !0 ? e : e.filter((i) => n === !0 && r === void 0 ? Er.has(i) : r === !0 && n === void 0 ? pr.has(i) : n === !1 ? !Er.has(i) : r === !1 ? !pr.has(i) : !0);
7293
+ return n === void 0 && r === void 0 || n === !0 && r === !0 ? e : e.filter((i) => n === !0 && r === void 0 ? pr.has(i) : r === !0 && n === void 0 ? Er.has(i) : n === !1 ? !pr.has(i) : r === !1 ? !Er.has(i) : !0);
7294
7294
  }
7295
7295
  checkPreferenceExpiry() {
7296
7296
  try {
7297
- const e = localStorage.getItem(Pe);
7297
+ const e = localStorage.getItem(Fe);
7298
7298
  if (e !== null) {
7299
7299
  const n = Date.now() - Number(e);
7300
7300
  if (n > FI)
7301
- return fe.warn(`Preferences expired (age: ${Math.round(n / 36e5)}h), clearing`), localStorage.removeItem(at), localStorage.removeItem(Ee), localStorage.removeItem(Pe), !0;
7301
+ return fe.warn(`Preferences expired (age: ${Math.round(n / 36e5)}h), clearing`), localStorage.removeItem(at), localStorage.removeItem(pe), localStorage.removeItem(Fe), !0;
7302
7302
  }
7303
7303
  } catch {
7304
7304
  }
@@ -7312,7 +7312,7 @@ class BI {
7312
7312
  const n = Number(e);
7313
7313
  if (A[n] !== void 0) {
7314
7314
  this.workingEndpointType = n;
7315
- const r = localStorage.getItem(Pe), i = r ? Math.round((Date.now() - Number(r)) / 36e5) : "?";
7315
+ const r = localStorage.getItem(Fe), i = r ? Math.round((Date.now() - Number(r)) / 36e5) : "?";
7316
7316
  fe.info(`Loaded remembered type: ${A[n]} (age: ${i}h)`);
7317
7317
  }
7318
7318
  }
@@ -7321,7 +7321,7 @@ class BI {
7321
7321
  }
7322
7322
  loadProxyPreference() {
7323
7323
  try {
7324
- this._proxyPreferred = localStorage.getItem(Ee) === "true", this._proxyPreferred && fe.info("Loaded proxy preference: preferred");
7324
+ this._proxyPreferred = localStorage.getItem(pe) === "true", this._proxyPreferred && fe.info("Loaded proxy preference: preferred");
7325
7325
  } catch {
7326
7326
  }
7327
7327
  }
@@ -7473,7 +7473,7 @@ class jT {
7473
7473
  * later user-gesture click resolves instantly (keeping the gesture intact for iOS).
7474
7474
  */
7475
7475
  async ensureMediaCapture() {
7476
- return this._mediaCapture ? this._mediaCapture : Oe() ? (this._mediaCapturePromise || (this._mediaCapturePromise = Promise.resolve().then(() => ET).then(({ IkonMediaCapture: e }) => (this._mediaCapture = new e(this, this._mediaCaptureConfig), this._mediaCapture))), this._mediaCapturePromise) : null;
7476
+ return this._mediaCapture ? this._mediaCapture : Ue() ? (this._mediaCapturePromise || (this._mediaCapturePromise = Promise.resolve().then(() => pT).then(({ IkonMediaCapture: e }) => (this._mediaCapture = new e(this, this._mediaCaptureConfig), this._mediaCapture))), this._mediaCapturePromise) : null;
7477
7477
  }
7478
7478
  async ensureMedia() {
7479
7479
  return this._media ? this._media : (this._mediaPromise || (this._mediaPromise = Promise.resolve().then(() => zI).then(({ IkonMedia: e }) => (this._media = new e(this, this._mediaConfig), this._media))), this._mediaPromise);
@@ -7497,6 +7497,15 @@ class jT {
7497
7497
  get isWebRtcEnabled() {
7498
7498
  return (Ut() ?? this.config.webRtc?.enabled ?? !0) && (this._audioEnabled || this._videoEnabled);
7499
7499
  }
7500
+ /**
7501
+ * Whether media capture can use the WebRTC transport right now. False when WebRTC is
7502
+ * disabled by config, or when the WebRTC session is gone (e.g. connection failure tore
7503
+ * down signaling and playback fell back to the protocol channel) — capture must then
7504
+ * use the protocol-channel path instead.
7505
+ */
7506
+ get isWebRtcCaptureAvailable() {
7507
+ return this.isWebRtcEnabled && this._webRtcSignaling != null;
7508
+ }
7500
7509
  /**
7501
7510
  * All WebRTC video streams keyed by track index.
7502
7511
  */
@@ -7536,21 +7545,21 @@ class jT {
7536
7545
  return this._webRtcSignaling;
7537
7546
  }
7538
7547
  constructor(e) {
7539
- this.config = e, this._slowConnectionThresholdMs = e.timeouts?.slowConnectionThresholdMs ?? Hp, this.connectionTimeoutMs = e.timeouts?.connectionTimeoutMs ?? $p, this.actionAckTimeoutMs = e.timeouts?.actionAckTimeoutMs ?? Yp;
7548
+ this.config = e, this._slowConnectionThresholdMs = e.timeouts?.slowConnectionThresholdMs ?? HE, this.connectionTimeoutMs = e.timeouts?.connectionTimeoutMs ?? $E, this.actionAckTimeoutMs = e.timeouts?.actionAckTimeoutMs ?? YE;
7540
7549
  const n = [e.local, e.apiKey, e.sessionToken].filter(Boolean).length;
7541
7550
  if (n === 0)
7542
7551
  throw new Error('IkonClient requires one of: "local", "apiKey", or "sessionToken" configuration');
7543
7552
  if (n > 1)
7544
7553
  throw new Error('IkonClient accepts only one of: "local", "apiKey", or "sessionToken" configuration');
7545
- NI(), Oe() && qp();
7546
- const r = e.local ? null : up() ?? e.proxy ?? null, i = r === !0 ? "force-proxy" : r === !1 ? "force-direct" : "auto", s = e.local ? null : dp(), o = e.local ? null : hp(), a = s ?? e.websocket, c = o ?? e.webtransport ?? !1;
7554
+ NI(), Ue() && qE();
7555
+ const r = e.local ? null : uE() ?? e.proxy ?? null, i = r === !0 ? "force-proxy" : r === !1 ? "force-direct" : "auto", s = e.local ? null : dE(), o = e.local ? null : hE(), a = s ?? e.websocket, c = o ?? e.webtransport ?? !1;
7547
7556
  this.endpointSelector = new BI({
7548
7557
  local: e.local,
7549
7558
  proxyMode: i,
7550
7559
  websocket: a,
7551
7560
  webtransport: c
7552
- }), i !== "auto" ? m.info(`Proxy mode: ${i}`) : this.endpointSelector.proxyPreferred && m.info("Proxy preferred (from previous session)"), (a !== void 0 || c !== void 0) && m.debug(`Transport filter: websocket=${a ?? "auto"}, webtransport=${c ?? "auto"}`), this._functionRegistry = new x_(), this._reactiveRegistry = new $_(this._functionRegistry), Oe() && !e.disableBrowserFunctions && (this.unregisterBrowserFunctions = Xm(this._functionRegistry), this.unregisterSoundFunctions = fI(this._functionRegistry)), Oe() && (this.unregisterLoginInterceptor = this._functionRegistry.addErrorInterceptor(Y_));
7553
- const l = pp(), d = mp();
7561
+ }), i !== "auto" ? m.info(`Proxy mode: ${i}`) : this.endpointSelector.proxyPreferred && m.info("Proxy preferred (from previous session)"), (a !== void 0 || c !== void 0) && m.debug(`Transport filter: websocket=${a ?? "auto"}, webtransport=${c ?? "auto"}`), this._functionRegistry = new x_(), this._reactiveRegistry = new $_(this._functionRegistry), Ue() && !e.disableBrowserFunctions && (this.unregisterBrowserFunctions = Xm(this._functionRegistry), this.unregisterSoundFunctions = fI(this._functionRegistry)), Ue() && (this.unregisterLoginInterceptor = this._functionRegistry.addErrorInterceptor(Y_));
7562
+ const l = EE(), d = mE();
7554
7563
  this._audioEnabled = l ?? e.audio?.enabled ?? !0, this._videoEnabled = d ?? e.video?.enabled ?? !0;
7555
7564
  const h = e.audio ? {
7556
7565
  performance: e.audio.performance,
@@ -7563,7 +7572,7 @@ class jT {
7563
7572
  preferWebCodecs: e.audio?.performance?.preferWebCodecs
7564
7573
  }
7565
7574
  }
7566
- }, Oe() && (this.unregisterMediaCaptureFunctions = eI(this._functionRegistry, this));
7575
+ }, Ue() && (this.unregisterMediaCaptureFunctions = eI(this._functionRegistry, this));
7567
7576
  }
7568
7577
  _lastError = void 0;
7569
7578
  /**
@@ -7632,13 +7641,13 @@ class jT {
7632
7641
  this._connectStarted = !0;
7633
7642
  const e = PI();
7634
7643
  if (!e.supported) {
7635
- this.setErrorState(new jE(e.missingFeatures));
7644
+ this.setErrorState(new jp(e.missingFeatures));
7636
7645
  return;
7637
7646
  }
7638
7647
  this.setupLifecycleHandlers();
7639
- const n = Ep();
7648
+ const n = pE();
7640
7649
  if (n) {
7641
- m.info("Found external connect URL in query parameter"), await this.executeConnection(() => _e(n, this.abortController.signal));
7650
+ m.info("Found external connect URL in query parameter"), await this.executeConnection(() => Ie(n, this.abortController.signal));
7642
7651
  return;
7643
7652
  }
7644
7653
  if (this._waitForExternalConnectUrl) {
@@ -8133,11 +8142,11 @@ class jT {
8133
8142
  }
8134
8143
  this.channelManager = null, this.protocolWorker = r, this.workerManagerState = "idle";
8135
8144
  const i = new Promise((h, u) => {
8136
- let p = !1, _;
8145
+ let E = !1, _;
8137
8146
  const I = () => {
8138
8147
  _ !== void 0 && (clearTimeout(_), _ = void 0);
8139
- }, T = (E) => {
8140
- const f = E.data;
8148
+ }, T = (p) => {
8149
+ const f = p.data;
8141
8150
  if (f?.type === "protocol" && f.message instanceof ArrayBuffer) {
8142
8151
  const C = new Uint8Array(f.message);
8143
8152
  this.handleProtocolMessage(C);
@@ -8147,11 +8156,11 @@ class jT {
8147
8156
  const C = f.state;
8148
8157
  this.workerManagerState = C;
8149
8158
  const R = f.activeType;
8150
- R !== void 0 && this.endpointSelector.rememberWorkingType(R), this.handleChannelManagerStateChange(C), C === "connected" && !p && (p = !0, I(), h());
8159
+ R !== void 0 && this.endpointSelector.rememberWorkingType(R), this.handleChannelManagerStateChange(C), C === "connected" && !E && (E = !0, I(), h());
8151
8160
  return;
8152
8161
  }
8153
8162
  if (f?.type === "refreshEntrypoints") {
8154
- this._connectUrl ? _e(this._connectUrl, this.abortController?.signal).then((C) => {
8163
+ this._connectUrl ? Ie(this._connectUrl, this.abortController?.signal).then((C) => {
8155
8164
  this.authResponse = C.authResponse, this._sessionId = C.authResponse.ClientContext.SessionId, r.postMessage({
8156
8165
  type: "refreshedEntrypoints",
8157
8166
  entrypoints: C.authResponse.Entrypoints,
@@ -8167,16 +8176,16 @@ class jT {
8167
8176
  R.name = String(C?.name ?? "Error"), R.name === "AuthRejectedError" && (this._lastFailureWasAuthRejected = !0), u(R);
8168
8177
  }
8169
8178
  };
8170
- r.addEventListener("message", T), r.addEventListener("error", (E) => {
8171
- const f = [E.message, E.filename, E.lineno, E.colno].filter((C) => C != null && String(C).length > 0);
8172
- if (p) {
8179
+ r.addEventListener("message", T), r.addEventListener("error", (p) => {
8180
+ const f = [p.message, p.filename, p.lineno, p.colno].filter((C) => C != null && String(C).length > 0);
8181
+ if (E) {
8173
8182
  m.error("Protocol worker crashed after connect, attempting reconnect"), this.workerManagerState = "offline", this.handleChannelManagerStateChange("reconnecting"), this.attemptReconnect();
8174
8183
  return;
8175
8184
  }
8176
8185
  I(), u(new Error(`Protocol worker failed: ${f.join(" ")}`.trim()));
8177
8186
  }), _ = setTimeout(() => {
8178
- p || (_ = void 0, u(new Error("Protocol worker connect timed out")));
8179
- }, Kp);
8187
+ E || (_ = void 0, u(new Error("Protocol worker connect timed out")));
8188
+ }, KE);
8180
8189
  }), s = this.computeOrderedEndpointTypes(e), o = this.getServerKeepaliveTimeoutMs(), a = this.config.timeouts?.reconnectBackoffMs ?? jn, c = this.config.timeouts?.maxReconnectAttempts ?? zn;
8181
8190
  this.updateWorkerInterestMask(), dr() && (r.postMessage({ type: "enableDevtools", enabled: !0 }), r.postMessage({ type: "setLogLevel", level: Kn() })), vI();
8182
8191
  const d = Ut() ?? this.config.webRtc?.enabled ?? !0;
@@ -8236,7 +8245,7 @@ class jT {
8236
8245
  useVideoTrack: this._videoEnabled,
8237
8246
  useDataChannel: !0,
8238
8247
  iceServers: this.config.webRtc?.iceServers,
8239
- iceTransportPolicy: _p() ?? this.config.webRtc?.iceTransportPolicy,
8248
+ iceTransportPolicy: _E() ?? this.config.webRtc?.iceTransportPolicy,
8240
8249
  onStateChange: (r) => {
8241
8250
  r === "connected" ? this.clearWebRtcConnectWatchdog() : r === "failed" && this.fallbackToCustomPlayback(`webrtc connection ${r}`);
8242
8251
  },
@@ -8267,9 +8276,9 @@ class jT {
8267
8276
  this._pendingActiveAudioTracks.delete(r.TrackIndex), this.destroyWebRtcAudioElement(r.TrackIndex);
8268
8277
  }
8269
8278
  };
8270
- this._webRtcFallbackActive = !1, this._webRtcSignaling = new Gp(n), this.clearWebRtcConnectWatchdog(), this._webRtcConnectWatchdog = setTimeout(() => {
8279
+ this._webRtcFallbackActive = !1, this._webRtcSignaling = new GE(n), this.clearWebRtcConnectWatchdog(), this._webRtcConnectWatchdog = setTimeout(() => {
8271
8280
  this._webRtcSignaling?.state !== "connected" && this.fallbackToCustomPlayback("webrtc connection timed out");
8272
- }, Mp);
8281
+ }, ME);
8273
8282
  try {
8274
8283
  await this._webRtcSignaling.connect((r) => {
8275
8284
  this.sendProtocolMessage(r);
@@ -8375,7 +8384,7 @@ class jT {
8375
8384
  async connectProtocolOnMainThread(e, n = !1) {
8376
8385
  this.workerManagerState = null, this.protocolWorker = null;
8377
8386
  const r = Ut() ?? this.config.webRtc?.enabled ?? !0;
8378
- m.info(`Connecting on main thread (webRtcEnabled=${r}, entrypoints=${e.length})`), this.channelManager = new Np({
8387
+ m.info(`Connecting on main thread (webRtcEnabled=${r}, entrypoints=${e.length})`), this.channelManager = new NE({
8379
8388
  sessionId: this._sessionId,
8380
8389
  keepaliveTimeoutMs: this.getServerKeepaliveTimeoutMs(),
8381
8390
  reconnectBackoffMs: this.config.timeouts?.reconnectBackoffMs ?? jn,
@@ -8392,7 +8401,7 @@ class jT {
8392
8401
  this.config.onError?.(i);
8393
8402
  },
8394
8403
  onRefreshEntrypoints: this._connectUrl ? async () => {
8395
- const i = await _e(this._connectUrl, this.abortController?.signal);
8404
+ const i = await Ie(this._connectUrl, this.abortController?.signal);
8396
8405
  return this.authResponse = i.authResponse, this._sessionId = i.authResponse.ClientContext.SessionId, { entrypoints: i.authResponse.Entrypoints, sessionId: this._sessionId };
8397
8406
  } : void 0
8398
8407
  }), await this.channelManager.connect(e, { retry: n });
@@ -8488,7 +8497,7 @@ class jT {
8488
8497
  if (this._reauthInProgress)
8489
8498
  return;
8490
8499
  this.clearReconnectTimer();
8491
- const e = this._disconnectedAt !== null ? Date.now() - this._disconnectedAt : 1 / 0, n = e > jp;
8500
+ const e = this._disconnectedAt !== null ? Date.now() - this._disconnectedAt : 1 / 0, n = e > jE;
8492
8501
  if (m.info(`Reconnect decision: disconnected ${e === 1 / 0 ? "?" : Math.round(e / 1e3)}s, softExpired=${n}, softAttempted=${this._softReconnectAttempted}, fullAttempted=${this._fullReauthAttempted}, authRejected=${this._lastFailureWasAuthRejected}`), this._lastFailureWasAuthRejected)
8493
8502
  m.info("Skipping soft reconnect — last failure was auth-rejected, going straight to full re-auth"), this._lastFailureWasAuthRejected = !1, this._softReconnectAttempted = !0;
8494
8503
  else if (!n && !this._softReconnectAttempted && !this._fullReauthAttempted && this.authResponse) {
@@ -8516,7 +8525,7 @@ class jT {
8516
8525
  }
8517
8526
  this.clearReconnectTimer(), m.info("Scheduling reconnect retry in 10 seconds"), this._reconnectTimer = setTimeout(() => {
8518
8527
  this._reconnectTimer = null, this.attemptReconnect();
8519
- }, zp);
8528
+ }, zE);
8520
8529
  }
8521
8530
  clearReconnectTimer() {
8522
8531
  this._reconnectTimer && (clearTimeout(this._reconnectTimer), this._reconnectTimer = null);
@@ -8731,7 +8740,7 @@ class jT {
8731
8740
  throw new Error(`Cannot connect with external connect URL: already in state ${this.currentState}`);
8732
8741
  m.info("Connecting with external connect URL");
8733
8742
  try {
8734
- await this.executeConnection(() => _e(e, this.abortController.signal));
8743
+ await this.executeConnection(() => Ie(e, this.abortController.signal));
8735
8744
  } finally {
8736
8745
  this._externalConnectUrlCleanup && (this._externalConnectUrlCleanup(), this._externalConnectUrlCleanup = null);
8737
8746
  }
@@ -8800,7 +8809,7 @@ function tw() {
8800
8809
  t = sessionStorage.getItem(ln), sessionStorage.removeItem(ln);
8801
8810
  } catch {
8802
8811
  }
8803
- return { appRoute: t, pendingCall: Jp() };
8812
+ return { appRoute: t, pendingCall: JE() };
8804
8813
  }
8805
8814
  const Na = () => {
8806
8815
  if (typeof navigator > "u")
@@ -10148,8 +10157,8 @@ class Fn {
10148
10157
  const h = d.data;
10149
10158
  if (!(!h || typeof h != "object")) {
10150
10159
  if (h.type === "log") {
10151
- const u = h, p = u.streamId ? ` [stream=${u.streamId.substring(0, 8)}]` : "";
10152
- u.level === "error" ? D.error(`[Worklet]${p} ${u.message}`) : u.level === "warn" ? D.warn(`[Worklet]${p} ${u.message}`) : D.info(`[Worklet]${p} ${u.message}`);
10160
+ const u = h, E = u.streamId ? ` [stream=${u.streamId.substring(0, 8)}]` : "";
10161
+ u.level === "error" ? D.error(`[Worklet]${E} ${u.message}`) : u.level === "warn" ? D.warn(`[Worklet]${E} ${u.message}`) : D.info(`[Worklet]${E} ${u.message}`);
10153
10162
  return;
10154
10163
  }
10155
10164
  if (h.type === "stats") {
@@ -10178,14 +10187,14 @@ class Fn {
10178
10187
  this.stopAudioWorklet(), this.pendingWorkletMessages = [];
10179
10188
  const r = 1024, i = new Float32Array(r * V), s = Math.round(this.outputSampleRateHz * Aa / 1e3), o = Math.round(this.outputSampleRateHz * cn / 1e3), a = 1 / s, c = 1 / o, l = new Array(V), d = [], h = e.createScriptProcessor(r, 0, V);
10180
10189
  h.onaudioprocess = (u) => {
10181
- const p = u.outputBuffer, _ = p.numberOfChannels, I = p.length;
10182
- for (let E = 0; E < _; E++) {
10183
- const f = p.getChannelData(E);
10184
- f.fill(0), l[E] = f;
10190
+ const E = u.outputBuffer, _ = E.numberOfChannels, I = E.length;
10191
+ for (let p = 0; p < _; p++) {
10192
+ const f = E.getChannelData(p);
10193
+ f.fill(0), l[p] = f;
10185
10194
  }
10186
10195
  let T = 0;
10187
10196
  d.length = 0;
10188
- for (const [E, f] of this.fallbackQueues.entries()) {
10197
+ for (const [p, f] of this.fallbackQueues.entries()) {
10189
10198
  f.totalSamples > 0 && (T += 1), (f.ending || f.inputDrained) && f.fadeDirection !== "out" && f.totalSamples / _ * 1e3 / this.outputSampleRateHz <= cn * 2 && (f.fadeDirection = "out"), this.readFromFallbackQueue(f, i), (f.totalSamples > 0 || !f.hasLastOut) && ((!f.lastOut || f.lastOut.length !== i.length) && (f.lastOut = new Float32Array(i.length)), f.lastOut.set(i), f.hasLastOut = !0);
10190
10199
  for (let R = 0; R < I; R++) {
10191
10200
  f.fadeDirection === "in" ? (f.fadeGain = Math.min(1, f.fadeGain + a), f.fadeGain >= 1 && (f.fadeDirection = "none")) : f.fadeDirection === "out" && (f.fadeGain = Math.max(0, f.fadeGain - c), f.fadeGain <= 0 && (f.fadeDirection = "none"));
@@ -10203,7 +10212,7 @@ class Fn {
10203
10212
  break;
10204
10213
  }
10205
10214
  }
10206
- f.fadeGain <= 1e-3 && f.ending && d.push(E);
10215
+ f.fadeGain <= 1e-3 && f.ending && d.push(p);
10207
10216
  } else if (!C && f.totalSamples <= 0 && f.hasLastOut && f.lastOut && f.fadeGain > 1e-3) {
10208
10217
  f.fadeDirection = "out", f.underrunPending = !0;
10209
10218
  const R = f.lastOut, L = I - 1;
@@ -10217,20 +10226,20 @@ class Fn {
10217
10226
  }
10218
10227
  }
10219
10228
  if (d.length > 0) {
10220
- for (const E of d)
10221
- this.fallbackQueues.delete(E), this.activeStreams.delete(E);
10229
+ for (const p of d)
10230
+ this.fallbackQueues.delete(p), this.activeStreams.delete(p);
10222
10231
  this.activeStreams.size === 0 && this.removeUnlockHandler();
10223
10232
  }
10224
10233
  if (T > 1) {
10225
- const E = 1 / Math.sqrt(T);
10234
+ const p = 1 / Math.sqrt(T);
10226
10235
  for (let f = 0; f < I; f++)
10227
10236
  for (let C = 0; C < _; C++)
10228
- l[C][f] *= E;
10237
+ l[C][f] *= p;
10229
10238
  }
10230
- for (let E = 0; E < I; E++)
10239
+ for (let p = 0; p < I; p++)
10231
10240
  for (let f = 0; f < _; f++) {
10232
- const C = l[f][E];
10233
- l[f][E] = C > 1 ? 1 : C < -1 ? -1 : C;
10241
+ const C = l[f][p];
10242
+ l[f][p] = C > 1 ? 1 : C < -1 ? -1 : C;
10234
10243
  }
10235
10244
  }, h.connect(e.destination), this.scriptProcessorNode = h, this.ensureScriptProcessorDiagnostics(n);
10236
10245
  }
@@ -10378,8 +10387,8 @@ class Fn {
10378
10387
  }
10379
10388
  const n = this.audioWorker;
10380
10389
  n.addEventListener("message", (u) => this.onAudioWorkerMessage(u.data)), n.addEventListener("error", (u) => {
10381
- const p = [u.message, u.filename, u.lineno, u.colno].filter((_) => _ != null && String(_).length > 0);
10382
- D.error(`Audio worker failed: ${p.join(" ")}`.trim());
10390
+ const E = [u.message, u.filename, u.lineno, u.colno].filter((_) => _ != null && String(_).length > 0);
10391
+ D.error(`Audio worker failed: ${E.join(" ")}`.trim());
10383
10392
  });
10384
10393
  const i = (this.config.performance?.preferSharedArrayBuffer ?? !0) && !!this.audioWorkletNode && ht(), s = this.config.performance?.preferWebCodecs ?? !0, o = this.client.isWebRtcEnabled, a = {
10385
10394
  type: "configure",
@@ -11122,7 +11131,7 @@ class iT {
11122
11131
  } catch {
11123
11132
  }
11124
11133
  e.pendingRestartTimer && clearTimeout(e.pendingRestartTimer);
11125
- const p = e.restartCount, _ = e.onError, I = {
11134
+ const E = e.restartCount, _ = e.onError, I = {
11126
11135
  ...e.originalRequest,
11127
11136
  constraints: e.currentConstraints,
11128
11137
  options: e.currentOptions,
@@ -11131,18 +11140,18 @@ class iT {
11131
11140
  };
11132
11141
  e.pendingRestartTimer = setTimeout(() => {
11133
11142
  e.pendingRestartTimer = null, !(!e.stopped || e.stoppedReason !== "recoverable-error") && this.startMic(I).then((T) => {
11134
- const E = this.captures.get(T.captureId);
11135
- E && (E.restartCount = p, E.lastStableTime = Date.now());
11143
+ const p = this.captures.get(T.captureId);
11144
+ p && (p.restartCount = E, p.lastStableTime = Date.now());
11136
11145
  }).catch((T) => {
11137
11146
  v.warn(`Auto-restart failed: ${T}`);
11138
- const E = T instanceof Error ? T : new Error(String(T));
11147
+ const p = T instanceof Error ? T : new Error(String(T));
11139
11148
  let f = "unknown";
11140
- if (E.name === "NotAllowedError" && (f = "permission-revoked"), _)
11149
+ if (p.name === "NotAllowedError" && (f = "permission-revoked"), _)
11141
11150
  try {
11142
11151
  _(
11143
- new Error(`Auto-restart failed: ${E.message}`),
11152
+ new Error(`Auto-restart failed: ${p.message}`),
11144
11153
  f,
11145
- p < l && f !== "permission-revoked"
11154
+ E < l && f !== "permission-revoked"
11146
11155
  );
11147
11156
  } catch {
11148
11157
  }
@@ -11465,8 +11474,9 @@ class iT {
11465
11474
  const n = this.client.sessionId;
11466
11475
  if (!n)
11467
11476
  throw new Error("Cannot start audio capture before client is connected");
11468
- if (this.client.isWebRtcEnabled)
11477
+ if (this.client.isWebRtcCaptureAvailable)
11469
11478
  return this.startMicWebRtc(e);
11479
+ this.client.isWebRtcEnabled && v.warn("WebRTC unavailable, capturing audio via protocol channel");
11470
11480
  const r = nT(), i = {
11471
11481
  captureId: r,
11472
11482
  aborted: !1,
@@ -11512,12 +11522,12 @@ class iT {
11512
11522
  const b = Math.floor(o.sampleRate * 10);
11513
11523
  T = XI.getStorageForCapacity(b, Float32Array);
11514
11524
  }
11515
- const E = "microphone", f = this.ensureWorker(), C = e.onStopped;
11525
+ const p = "microphone", f = this.ensureWorker(), C = e.onStopped;
11516
11526
  f.postMessage({
11517
11527
  type: "start",
11518
11528
  captureId: r,
11519
11529
  streamId: r,
11520
- sourceType: E,
11530
+ sourceType: p,
11521
11531
  senderId: n,
11522
11532
  trackId: d,
11523
11533
  sampleRate: o.sampleRate,
@@ -11533,12 +11543,12 @@ class iT {
11533
11543
  const X = setTimeout(() => {
11534
11544
  f.removeEventListener("message", nt), W(new Error("Audio capture worker start timeout"));
11535
11545
  }, 1e4), nt = (Da) => {
11536
- const ve = Da.data;
11537
- if (ve?.type === "started" && ve.captureId === r)
11546
+ const De = Da.data;
11547
+ if (De?.type === "started" && De.captureId === r)
11538
11548
  clearTimeout(X), f.removeEventListener("message", nt), b();
11539
- else if (ve?.type === "error" && ve.captureId === r) {
11549
+ else if (De?.type === "error" && De.captureId === r) {
11540
11550
  clearTimeout(X), f.removeEventListener("message", nt);
11541
- const Oa = ve.error;
11551
+ const Oa = De.error;
11542
11552
  W(new Error(Oa?.message ?? "Audio capture failed to start"));
11543
11553
  }
11544
11554
  };
@@ -11859,7 +11869,7 @@ class iT {
11859
11869
  return !n || n.stopped ? !1 : this.attemptResumeAsync(n, "userGesture", !0);
11860
11870
  }
11861
11871
  }
11862
- const Te = 1280, we = 720, sT = 30, wt = "image/jpeg", va = 0.92;
11872
+ const we = 1280, ge = 720, sT = 30, wt = "image/jpeg", va = 0.92;
11863
11873
  function un(t, e, n, r) {
11864
11874
  if (!n && !r)
11865
11875
  return { width: t, height: e };
@@ -11903,21 +11913,21 @@ class oT {
11903
11913
  } catch {
11904
11914
  }
11905
11915
  try {
11906
- await new Promise((p, _) => {
11907
- const I = () => p(), T = () => _(new Error("Failed to load video element"));
11916
+ await new Promise((E, _) => {
11917
+ const I = () => E(), T = () => _(new Error("Failed to load video element"));
11908
11918
  i.addEventListener("loadedmetadata", I, { once: !0 }), i.addEventListener("error", T, { once: !0 });
11909
11919
  });
11910
11920
  try {
11911
11921
  await i.play();
11912
11922
  } catch {
11913
11923
  }
11914
- const s = i.videoWidth || (r.getSettings().width ?? Te), o = i.videoHeight || (r.getSettings().height ?? we), { width: a, height: c } = un(s, o, n.width, n.height);
11924
+ const s = i.videoWidth || (r.getSettings().width ?? we), o = i.videoHeight || (r.getSettings().height ?? ge), { width: a, height: c } = un(s, o, n.width, n.height);
11915
11925
  let l;
11916
11926
  if (typeof OffscreenCanvas < "u")
11917
11927
  l = new OffscreenCanvas(a, c);
11918
11928
  else {
11919
- const p = document.createElement("canvas");
11920
- p.width = a, p.height = c, l = p;
11929
+ const E = document.createElement("canvas");
11930
+ E.width = a, E.height = c, l = E;
11921
11931
  }
11922
11932
  const d = l.getContext("2d", { alpha: !1 });
11923
11933
  if (!d)
@@ -11948,7 +11958,7 @@ class oT {
11948
11958
  async acquireCameraStream(e) {
11949
11959
  if (!navigator.mediaDevices)
11950
11960
  throw new Error("Media devices are not available in this environment");
11951
- const n = e.constraints ?? {}, r = e.width ?? Te, i = e.height ?? we, s = {
11961
+ const n = e.constraints ?? {}, r = e.width ?? we, i = e.height ?? ge, s = {
11952
11962
  ...n,
11953
11963
  width: n.width ?? { ideal: r },
11954
11964
  height: n.height ?? { ideal: i }
@@ -11966,21 +11976,21 @@ class oT {
11966
11976
  } catch {
11967
11977
  }
11968
11978
  try {
11969
- await new Promise((p, _) => {
11970
- const I = () => p(), T = () => _(new Error("Failed to load video element"));
11979
+ await new Promise((E, _) => {
11980
+ const I = () => E(), T = () => _(new Error("Failed to load video element"));
11971
11981
  i.addEventListener("loadedmetadata", I, { once: !0 }), i.addEventListener("error", T, { once: !0 });
11972
11982
  });
11973
11983
  try {
11974
11984
  await i.play();
11975
11985
  } catch {
11976
11986
  }
11977
- const s = i.videoWidth || (r.getSettings().width ?? Te), o = i.videoHeight || (r.getSettings().height ?? we), { width: a, height: c } = un(s, o, e.width, e.height);
11987
+ const s = i.videoWidth || (r.getSettings().width ?? we), o = i.videoHeight || (r.getSettings().height ?? ge), { width: a, height: c } = un(s, o, e.width, e.height);
11978
11988
  let l;
11979
11989
  if (typeof OffscreenCanvas < "u")
11980
11990
  l = new OffscreenCanvas(a, c);
11981
11991
  else {
11982
- const p = document.createElement("canvas");
11983
- p.width = a, p.height = c, l = p;
11992
+ const E = document.createElement("canvas");
11993
+ E.width = a, E.height = c, l = E;
11984
11994
  }
11985
11995
  const d = l.getContext("2d", { alpha: !1 });
11986
11996
  if (!d)
@@ -12058,8 +12068,8 @@ async function cT(t, e) {
12058
12068
  let r;
12059
12069
  try {
12060
12070
  r = await new Promise((I, T) => {
12061
- const E = new Image();
12062
- E.onload = () => I(E), E.onerror = () => T(new Error("Failed to decode image")), E.src = n;
12071
+ const p = new Image();
12072
+ p.onload = () => I(p), p.onerror = () => T(new Error("Failed to decode image")), p.src = n;
12063
12073
  });
12064
12074
  } finally {
12065
12075
  URL.revokeObjectURL(n);
@@ -12075,14 +12085,14 @@ async function cT(t, e) {
12075
12085
  if (!u)
12076
12086
  throw new Error("2D canvas context unavailable");
12077
12087
  u.drawImage(r, 0, 0, o, a);
12078
- const p = await new Promise((I, T) => {
12088
+ const E = await new Promise((I, T) => {
12079
12089
  h.toBlob(
12080
- (E) => E ? I(E) : T(new Error("Canvas toBlob returned null")),
12090
+ (p) => p ? I(p) : T(new Error("Canvas toBlob returned null")),
12081
12091
  c,
12082
12092
  l
12083
12093
  );
12084
- }), _ = await p.arrayBuffer();
12085
- return { mime: p.type || c, width: o, height: a, data: new Uint8Array(_) };
12094
+ }), _ = await E.arrayBuffer();
12095
+ return { mime: E.type || c, width: o, height: a, data: new Uint8Array(_) };
12086
12096
  }
12087
12097
  function lT(t) {
12088
12098
  return new Worker(
@@ -12093,7 +12103,7 @@ function lT(t) {
12093
12103
  }
12094
12104
  );
12095
12105
  }
12096
- const Fe = U("IkonVideoCapture");
12106
+ const Ee = U("IkonVideoCapture");
12097
12107
  function uT() {
12098
12108
  const t = globalThis.crypto;
12099
12109
  return t?.randomUUID ? t.randomUUID() : `cap_${Date.now()}_${Math.floor(Math.random() * 1e9)}`;
@@ -12125,8 +12135,8 @@ class hT {
12125
12135
  const r = n.data;
12126
12136
  if (r?.type === "error") {
12127
12137
  const i = r.error;
12128
- Fe.warn(`Video capture worker error: ${i?.name ?? "Error"} ${i?.message ?? ""}`);
12129
- } else r?.type === "log" ? Fe.info(r.message) : r?.type === "debug" && Fe.debug(r.message);
12138
+ Ee.warn(`Video capture worker error: ${i?.name ?? "Error"} ${i?.message ?? ""}`);
12139
+ } else r?.type === "log" ? Ee.info(r.message) : r?.type === "debug" && Ee.debug(r.message);
12130
12140
  }), e;
12131
12141
  }
12132
12142
  ensurePorts() {
@@ -12155,7 +12165,7 @@ class hT {
12155
12165
  };
12156
12166
  return navigator.mediaDevices.getDisplayMedia({ video: a, audio: !1 });
12157
12167
  }
12158
- const i = e.options?.width ?? Te, s = e.options?.height ?? we, o = {
12168
+ const i = e.options?.width ?? we, s = e.options?.height ?? ge, o = {
12159
12169
  ...n,
12160
12170
  frameRate: n.frameRate ?? { ideal: r },
12161
12171
  width: n.width ?? { ideal: i },
@@ -12225,17 +12235,17 @@ class hT {
12225
12235
  const n = this.client.sessionId;
12226
12236
  if (!n)
12227
12237
  throw new Error("Cannot start video capture before client is connected");
12228
- if (this.client.isWebRtcEnabled && e.sourceType === "camera")
12238
+ if (this.client.isWebRtcCaptureAvailable && e.sourceType === "camera")
12229
12239
  return this.startCameraWebRtc(e);
12230
- if (this.client.isWebRtcEnabled && e.sourceType === "screen")
12240
+ if (this.client.isWebRtcCaptureAvailable && e.sourceType === "screen")
12231
12241
  return this.startScreenWebRtc(e);
12232
- this.ensurePorts();
12242
+ this.client.isWebRtcEnabled && Ee.warn("WebRTC unavailable, capturing video via protocol channel"), this.ensurePorts();
12233
12243
  const r = uT(), i = await this.getMediaStream(e), s = i.getVideoTracks()[0];
12234
12244
  if (!s)
12235
- throw i.getTracks().forEach((E) => E.stop()), new Error("No video track available");
12236
- e.sourceType === "screen" && await new Promise((E) => setTimeout(E, 200));
12237
- const o = s.getSettings(), a = e.sourceType === "screen" ? o.width ?? Te : e.options?.width ?? o.width ?? Te, c = e.sourceType === "screen" ? o.height ?? we : e.options?.height ?? o.height ?? we, l = dT(), h = new l({ track: s }).readable, u = this.allocateTrackId(), p = this.ensureWorker(), _ = e.sourceType, I = e.onStopped;
12238
- p.postMessage(
12245
+ throw i.getTracks().forEach((p) => p.stop()), new Error("No video track available");
12246
+ e.sourceType === "screen" && await new Promise((p) => setTimeout(p, 200));
12247
+ const o = s.getSettings(), a = e.sourceType === "screen" ? o.width ?? we : e.options?.width ?? o.width ?? we, c = e.sourceType === "screen" ? o.height ?? ge : e.options?.height ?? o.height ?? ge, l = dT(), h = new l({ track: s }).readable, u = this.allocateTrackId(), E = this.ensureWorker(), _ = e.sourceType, I = e.onStopped;
12248
+ E.postMessage(
12239
12249
  {
12240
12250
  type: "start",
12241
12251
  captureId: r,
@@ -12269,41 +12279,41 @@ class hT {
12269
12279
  if (!T.stopped) {
12270
12280
  T.stopped = !0, this.captures.delete(r), T.dimensionCheckInterval && (clearInterval(T.dimensionCheckInterval), T.dimensionCheckInterval = void 0);
12271
12281
  try {
12272
- i.getTracks().forEach((E) => E.stop());
12282
+ i.getTracks().forEach((p) => p.stop());
12273
12283
  } catch {
12274
12284
  }
12275
- if (p.postMessage({ type: "stop", captureId: r }), I)
12285
+ if (E.postMessage({ type: "stop", captureId: r }), I)
12276
12286
  try {
12277
12287
  I();
12278
12288
  } catch {
12279
12289
  }
12280
12290
  }
12281
12291
  },
12282
- updateOptions: async (E) => {
12292
+ updateOptions: async (p) => {
12283
12293
  if (!T.stopped) {
12284
12294
  if (T.sourceType === "camera") {
12285
- const f = E.width !== void 0 && E.width !== T.currentOptions?.width, C = E.height !== void 0 && E.height !== T.currentOptions?.height, R = E.framerate !== void 0 && E.framerate !== T.currentOptions?.framerate;
12295
+ const f = p.width !== void 0 && p.width !== T.currentOptions?.width, C = p.height !== void 0 && p.height !== T.currentOptions?.height, R = p.framerate !== void 0 && p.framerate !== T.currentOptions?.framerate;
12286
12296
  if (f || C || R)
12287
12297
  try {
12288
12298
  const L = {};
12289
- E.width !== void 0 && (L.width = { ideal: E.width }), E.height !== void 0 && (L.height = { ideal: E.height }), E.framerate !== void 0 && (L.frameRate = { ideal: E.framerate }), await s.applyConstraints(L), Fe.info(`Camera track constraints updated: ${E.width}x${E.height}@${E.framerate}fps`);
12299
+ p.width !== void 0 && (L.width = { ideal: p.width }), p.height !== void 0 && (L.height = { ideal: p.height }), p.framerate !== void 0 && (L.frameRate = { ideal: p.framerate }), await s.applyConstraints(L), Ee.info(`Camera track constraints updated: ${p.width}x${p.height}@${p.framerate}fps`);
12290
12300
  } catch (L) {
12291
- Fe.warn(`Failed to apply camera constraints: ${L}`);
12301
+ Ee.warn(`Failed to apply camera constraints: ${L}`);
12292
12302
  }
12293
12303
  }
12294
- T.currentOptions = E, p.postMessage({ type: "updateOptions", captureId: r, options: E });
12304
+ T.currentOptions = p, E.postMessage({ type: "updateOptions", captureId: r, options: p });
12295
12305
  }
12296
12306
  }
12297
12307
  };
12298
12308
  if (e.sourceType === "screen") {
12299
- let E = a, f = c;
12309
+ let p = a, f = c;
12300
12310
  T.dimensionCheckInterval = setInterval(() => {
12301
12311
  if (T.stopped) {
12302
12312
  T.dimensionCheckInterval && (clearInterval(T.dimensionCheckInterval), T.dimensionCheckInterval = void 0);
12303
12313
  return;
12304
12314
  }
12305
- const C = s.getSettings(), R = C.width ?? E, L = C.height ?? f;
12306
- (R !== E || L !== f) && (E = R, f = L, p.postMessage({
12315
+ const C = s.getSettings(), R = C.width ?? p, L = C.height ?? f;
12316
+ (R !== p || L !== f) && (p = R, f = L, E.postMessage({
12307
12317
  type: "updateDimensions",
12308
12318
  captureId: r,
12309
12319
  width: R,
@@ -12371,22 +12381,22 @@ class fT {
12371
12381
  this.audio.dispose(), this.video.dispose();
12372
12382
  }
12373
12383
  }
12374
- const ET = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12384
+ const pT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12375
12385
  __proto__: null,
12376
12386
  IkonMediaCapture: fT
12377
12387
  }, Symbol.toStringTag, { value: "Module" }));
12378
12388
  export {
12379
12389
  At as AccessDeniedError,
12380
12390
  WI as AppMessaging,
12381
- me as AuthRejectedError,
12391
+ _e as AuthRejectedError,
12382
12392
  M as AuthenticationError,
12383
- jE as BrowserNotSupportedError,
12384
- Rp as Channel,
12385
- Np as ChannelManager,
12393
+ jp as BrowserNotSupportedError,
12394
+ RE as Channel,
12395
+ NE as ChannelManager,
12386
12396
  mT as ChannelNotFoundError,
12387
- Ie as ClientType,
12397
+ Te as ClientType,
12388
12398
  Ct as ConnectionError,
12389
- be as ContextType,
12399
+ Ne as ContextType,
12390
12400
  BI as EndpointSelector,
12391
12401
  A as EntrypointType,
12392
12402
  F_ as FunctionCallError,
@@ -12396,21 +12406,21 @@ export {
12396
12406
  Bt as IKON_AUTH_URL_PROD,
12397
12407
  rn as IKON_BACKEND_URL_DEV,
12398
12408
  nn as IKON_BACKEND_URL_PROD,
12399
- tp as IKON_PARAM_AUDIO,
12400
- op as IKON_PARAM_AUTH,
12409
+ tE as IKON_PARAM_AUDIO,
12410
+ oE as IKON_PARAM_AUTH,
12401
12411
  zo as IKON_PARAM_DEBUG,
12402
- sp as IKON_PARAM_DEBUG_OVERLAY,
12412
+ sE as IKON_PARAM_DEBUG_OVERLAY,
12403
12413
  ST as IKON_PARAM_GIT_BRANCH,
12404
12414
  gT as IKON_PARAM_GIT_SOURCE,
12405
12415
  Jo as IKON_PARAM_INSPECT,
12406
- ep as IKON_PARAM_LANG,
12407
- QE as IKON_PARAM_PROXY,
12408
- ap as IKON_PARAM_RETRY,
12416
+ eE as IKON_PARAM_LANG,
12417
+ Qp as IKON_PARAM_PROXY,
12418
+ aE as IKON_PARAM_RETRY,
12409
12419
  Xo as IKON_PARAM_SERVER_URL,
12410
- np as IKON_PARAM_VIDEO,
12411
- rp as IKON_PARAM_WEBRTC,
12412
- ZE as IKON_PARAM_WEBSOCKET,
12413
- qE as IKON_PARAM_WEBTRANSPORT,
12420
+ nE as IKON_PARAM_VIDEO,
12421
+ rE as IKON_PARAM_WEBRTC,
12422
+ Zp as IKON_PARAM_WEBSOCKET,
12423
+ qp as IKON_PARAM_WEBTRANSPORT,
12414
12424
  iT as IkonAudioCapture,
12415
12425
  Fn as IkonAudioPlayback,
12416
12426
  jT as IkonClient,
@@ -12428,36 +12438,36 @@ export {
12428
12438
  yt as ServerFullError,
12429
12439
  _T as SpaceNotFoundError,
12430
12440
  K as TransportError,
12431
- ke as UserType,
12441
+ ve as UserType,
12432
12442
  bI as VisemeTracker,
12433
12443
  NT as WEBRTC_AUDIO_BITRATE,
12434
12444
  bT as WEBRTC_AUDIO_CHANNELS,
12435
12445
  yT as WEBRTC_AUDIO_CODEC,
12436
- kp as WEBRTC_AUDIO_JITTER_BUFFER_TARGET_MS,
12446
+ kE as WEBRTC_AUDIO_JITTER_BUFFER_TARGET_MS,
12437
12447
  RT as WEBRTC_AUDIO_SAMPLE_RATE,
12438
- Op as WEBRTC_BUNDLE_POLICY,
12439
- Bp as WEBRTC_DATA_CHANNEL_LABEL,
12440
- Wp as WEBRTC_DATA_CHANNEL_MAX_RETRANSMITS,
12441
- xp as WEBRTC_DATA_CHANNEL_ORDERED,
12442
- Pp as WEBRTC_MAX_AUDIO_TRACKS,
12443
- Fp as WEBRTC_MAX_VIDEO_TRACKS,
12444
- Up as WEBRTC_RTCP_MUX_POLICY,
12448
+ OE as WEBRTC_BUNDLE_POLICY,
12449
+ BE as WEBRTC_DATA_CHANNEL_LABEL,
12450
+ WE as WEBRTC_DATA_CHANNEL_MAX_RETRANSMITS,
12451
+ xE as WEBRTC_DATA_CHANNEL_ORDERED,
12452
+ PE as WEBRTC_MAX_AUDIO_TRACKS,
12453
+ FE as WEBRTC_MAX_VIDEO_TRACKS,
12454
+ UE as WEBRTC_RTCP_MUX_POLICY,
12445
12455
  kT as WEBRTC_VIDEO_CODEC,
12446
- vp as WEBRTC_VIDEO_MAX_BITRATE,
12456
+ vE as WEBRTC_VIDEO_MAX_BITRATE,
12447
12457
  vT as WEBRTC_VIDEO_MAX_FRAMERATE,
12448
- Vp as WebRTCConnection,
12449
- Gp as WebRTCSignaling,
12458
+ VE as WebRTCConnection,
12459
+ GE as WebRTCSignaling,
12450
12460
  bt as abortSignalAny,
12451
12461
  ue as abortSignalTimeout,
12452
12462
  zT as appMessaging,
12453
- pT as asProtocolMessage,
12463
+ ET as asProtocolMessage,
12454
12464
  PI as checkBrowserSupport,
12455
12465
  WT as clearDeviceId,
12456
12466
  FT as clearLogBuffer,
12457
12467
  OT as clearLoginPrompt,
12458
12468
  $T as clearSessionParamsFromUrl,
12459
12469
  tw as consumeLoginHandoff,
12460
- Jp as consumeLoginPendingCall,
12470
+ JE as consumeLoginPendingCall,
12461
12471
  U as createLogger,
12462
12472
  I_ as deriveAuthUrl,
12463
12473
  GT as deriveBackendType,
@@ -12465,13 +12475,13 @@ export {
12465
12475
  YT as enableInspectMode,
12466
12476
  h_ as extractUserIdFromToken,
12467
12477
  PT as flushLogs,
12468
- pp as getAudioParam,
12469
- Tp as getAuthSameOriginParam,
12478
+ EE as getAudioParam,
12479
+ TE as getAuthSameOriginParam,
12470
12480
  MT as getBufferedLogs,
12471
12481
  Un as getConnectTraceId,
12472
12482
  AT as getDebugOverlayParam,
12473
- fp as getDebugParam,
12474
- Ip as getInspectParam,
12483
+ fE as getDebugParam,
12484
+ IE as getInspectParam,
12475
12485
  CT as getLangParam,
12476
12486
  BT as getLogBufferSize,
12477
12487
  Kn as getLogLevel,
@@ -12479,19 +12489,19 @@ export {
12479
12489
  DT as getLoginPromptState,
12480
12490
  qT as getOpcodeName,
12481
12491
  vt as getOrCreateDeviceId,
12482
- up as getProxyParam,
12492
+ uE as getProxyParam,
12483
12493
  ne as getRetryParam,
12484
- p_ as getSameOriginAuthUrl,
12485
- Ep as getServerUrlParam,
12486
- mp as getVideoParam,
12494
+ E_ as getSameOriginAuthUrl,
12495
+ pE as getServerUrlParam,
12496
+ mE as getVideoParam,
12487
12497
  Ut as getWebRtcParam,
12488
- dp as getWebSocketParam,
12489
- hp as getWebTransportParam,
12498
+ dE as getWebSocketParam,
12499
+ hE as getWebTransportParam,
12490
12500
  NI as initializeDebugMode,
12491
12501
  vI as initializeInspectMode,
12492
12502
  Zm as initializeLogSink,
12493
12503
  ka as isAudioWorkletSupported,
12494
- Oe as isBrowserEnvironment,
12504
+ Ue as isBrowserEnvironment,
12495
12505
  et as isCloudEnvironment,
12496
12506
  JT as isConnected,
12497
12507
  XT as isConnecting,
@@ -12512,7 +12522,7 @@ export {
12512
12522
  xT as reportConnectTimeline,
12513
12523
  ew as reprovisionAfterLogin,
12514
12524
  jo as setLogLevel,
12515
- zE as setLogSink,
12525
+ zp as setLogSink,
12516
12526
  Qo as setSdkUrlParam,
12517
12527
  LT as setSendLogsCallback,
12518
12528
  l_ as startLogSender,