@ikonai/sdk 0.0.29 → 0.0.31

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.
@@ -812,6 +812,7 @@ function xt(e) {
812
812
  application: "lowdelay",
813
813
  signal: "voice"
814
814
  }
815
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
815
816
  }), r;
816
817
  }
817
818
  function Pt(e) {
package/index.js CHANGED
@@ -51,9 +51,9 @@ function v(t, e, r, n, s) {
51
51
  f.setUint32(p, c[E] >>> 0, !0), p += 4;
52
52
  return m.set(e, h), m;
53
53
  }
54
- var N = /* @__PURE__ */ ((t) => (t[t.Null = 1] = "Null", t[t.Bool = 2] = "Bool", t[t.Int32 = 3] = "Int32", t[t.Int64 = 4] = "Int64", t[t.UInt32 = 5] = "UInt32", t[t.UInt64 = 6] = "UInt64", t[t.Float32 = 7] = "Float32", t[t.Float64 = 8] = "Float64", t[t.Array = 9] = "Array", t[t.Dict = 10] = "Dict", t[t.Object = 11] = "Object", t[t.String = 12] = "String", t[t.Binary = 13] = "Binary", t[t.Guid = 14] = "Guid", t))(N || {});
54
+ var g = /* @__PURE__ */ ((t) => (t[t.Null = 1] = "Null", t[t.Bool = 2] = "Bool", t[t.Int32 = 3] = "Int32", t[t.Int64 = 4] = "Int64", t[t.UInt32 = 5] = "UInt32", t[t.UInt64 = 6] = "UInt64", t[t.Float32 = 7] = "Float32", t[t.Float64 = 8] = "Float64", t[t.Array = 9] = "Array", t[t.Dict = 10] = "Dict", t[t.Object = 11] = "Object", t[t.String = 12] = "String", t[t.Binary = 13] = "Binary", t[t.Guid = 14] = "Guid", t))(g || {});
55
55
  const ut = 161, dt = 162, ue = new TextEncoder(), Lr = new TextDecoder("utf-8", { fatal: !0 });
56
- class R {
56
+ class b {
57
57
  constructor(e = 1) {
58
58
  this.version = e, this.buffer.writeByte(ut), this.buffer.writeVarUInt(e >>> 0);
59
59
  }
@@ -95,7 +95,7 @@ class R {
95
95
  this.writeVariableField(e, 13, r);
96
96
  }
97
97
  writeObjectField(e, r, n) {
98
- const s = new R(r);
98
+ const s = new b(r);
99
99
  n(s);
100
100
  const i = s.finish();
101
101
  this.writeVariableField(e, 11, i);
@@ -202,7 +202,7 @@ class me {
202
202
  11
203
203
  /* Object */
204
204
  ), this.count++;
205
- const n = new R(e);
205
+ const n = new b(e);
206
206
  r(n);
207
207
  const s = n.finish();
208
208
  this.payload.writeVarUInt(s.length), this.payload.writeBytes(s);
@@ -233,7 +233,7 @@ class me {
233
233
  }
234
234
  ensureElementType(e) {
235
235
  if (this.elementType !== e)
236
- throw new Error(`Array element type is ${N[this.elementType]}, expected ${N[e]}`);
236
+ throw new Error(`Array element type is ${g[this.elementType]}, expected ${g[e]}`);
237
237
  }
238
238
  }
239
239
  class Le {
@@ -407,7 +407,7 @@ class Fr {
407
407
  11
408
408
  /* Object */
409
409
  );
410
- const n = new R(e);
410
+ const n = new b(e);
411
411
  r(n);
412
412
  const s = n.finish();
413
413
  this.payload.writeVarUInt(s.length), this.payload.writeBytes(s), this.valueWritten = !0;
@@ -441,11 +441,11 @@ class Fr {
441
441
  }
442
442
  ensureKeyType(e) {
443
443
  if (this.keyType !== e)
444
- throw new Error(`Dictionary key type is ${N[this.keyType]}, expected ${N[e]}`);
444
+ throw new Error(`Dictionary key type is ${g[this.keyType]}, expected ${g[e]}`);
445
445
  }
446
446
  ensureValueType(e) {
447
447
  if (this.valueType !== e)
448
- throw new Error(`Dictionary value type is ${N[this.valueType]}, expected ${N[e]}`);
448
+ throw new Error(`Dictionary value type is ${g[this.valueType]}, expected ${g[e]}`);
449
449
  }
450
450
  }
451
451
  class K {
@@ -460,7 +460,7 @@ class K {
460
460
  throw new Error("Teleport payload too short");
461
461
  if (r[0] !== ut || r[r.length - 1] !== dt)
462
462
  throw new Error("Teleport object missing markers");
463
- const n = { offset: 1 }, s = C(r, n, "InvalidLength");
463
+ const n = { offset: 1 }, s = R(r, n, "InvalidLength");
464
464
  return new K(r, s, n.offset);
465
465
  }
466
466
  next() {
@@ -476,10 +476,10 @@ class K {
476
476
  const s = H(n);
477
477
  let i;
478
478
  if (s >= 0)
479
- A(this.buffer, this.offset, s), i = this.buffer.subarray(this.offset, this.offset + s), this.offset += s;
479
+ N(this.buffer, this.offset, s), i = this.buffer.subarray(this.offset, this.offset + s), this.offset += s;
480
480
  else {
481
- const o = { offset: this.offset }, a = C(this.buffer, o, "InvalidLength");
482
- A(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
481
+ const o = { offset: this.offset }, a = R(this.buffer, o, "InvalidLength");
482
+ N(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
483
483
  }
484
484
  return new vr(e, n, i);
485
485
  }
@@ -574,7 +574,7 @@ class F {
574
574
  }
575
575
  ensureType(e) {
576
576
  if (this.type !== e)
577
- throw new Error(`Teleport value has type ${N[this.type]}, expected ${N[e]}`);
577
+ throw new Error(`Teleport value has type ${g[this.type]}, expected ${g[e]}`);
578
578
  }
579
579
  }
580
580
  class vr extends F {
@@ -598,7 +598,7 @@ class Fe {
598
598
  if (this.elementType = r >> 4 & 15, (r & 15) !== 0)
599
599
  throw new Error("Array flags must be zero");
600
600
  const n = { offset: 1 };
601
- this.count = C(e, n, "ArrayMalformed"), this.offset = n.offset;
601
+ this.count = R(e, n, "ArrayMalformed"), this.offset = n.offset;
602
602
  }
603
603
  static create(e) {
604
604
  return new Fe(ne(e));
@@ -623,20 +623,20 @@ class Fe {
623
623
  case 6:
624
624
  case 14: {
625
625
  const e = H(this.elementType);
626
- A(this.payload, this.offset, e);
626
+ N(this.payload, this.offset, e);
627
627
  const r = this.payload.subarray(this.offset, this.offset + e);
628
628
  return this.offset += e, new Q(this.elementType, r);
629
629
  }
630
630
  case 12:
631
631
  case 13: {
632
- const e = { offset: this.offset }, r = C(this.payload, e, "ArrayMalformed");
633
- A(this.payload, e.offset, r);
632
+ const e = { offset: this.offset }, r = R(this.payload, e, "ArrayMalformed");
633
+ N(this.payload, e.offset, r);
634
634
  const n = this.payload.subarray(e.offset, e.offset + r);
635
635
  return this.offset = e.offset + r, new Q(this.elementType, n);
636
636
  }
637
637
  case 11: {
638
- const e = { offset: this.offset }, r = C(this.payload, e, "ArrayMalformed");
639
- A(this.payload, e.offset, r);
638
+ const e = { offset: this.offset }, r = R(this.payload, e, "ArrayMalformed");
639
+ N(this.payload, e.offset, r);
640
640
  const n = this.payload.subarray(e.offset, e.offset + r);
641
641
  return this.offset = e.offset + r, new Q(11, n);
642
642
  }
@@ -649,7 +649,7 @@ class Fe {
649
649
  return this.offset += e, new Q(10, r);
650
650
  }
651
651
  default:
652
- throw new Error(`Unsupported array element type ${N[this.elementType]}`);
652
+ throw new Error(`Unsupported array element type ${g[this.elementType]}`);
653
653
  }
654
654
  }
655
655
  }
@@ -672,7 +672,7 @@ class ve {
672
672
  throw new Error("Dictionary key/value flags must be zero");
673
673
  Pe(this.keyType);
674
674
  const r = { offset: 2 };
675
- this.count = C(e, r, "DictMalformed"), this.offset = r.offset;
675
+ this.count = R(e, r, "DictMalformed"), this.offset = r.offset;
676
676
  }
677
677
  static create(e) {
678
678
  return new ve(ne(e));
@@ -689,13 +689,13 @@ class ve {
689
689
  readKey() {
690
690
  const e = H(this.keyType);
691
691
  if (e >= 0) {
692
- A(this.payload, this.offset, e);
692
+ N(this.payload, this.offset, e);
693
693
  const r = this.payload.subarray(this.offset, this.offset + e);
694
694
  return this.offset += e, new F(this.keyType, r);
695
695
  }
696
696
  if (this.keyType === 12 || this.keyType === 13) {
697
- const r = { offset: this.offset }, n = C(this.payload, r, "DictMalformed");
698
- A(this.payload, r.offset, n);
697
+ const r = { offset: this.offset }, n = R(this.payload, r, "DictMalformed");
698
+ N(this.payload, r.offset, n);
699
699
  const s = this.payload.subarray(r.offset, r.offset + n);
700
700
  return this.offset = r.offset + n, new F(this.keyType, s);
701
701
  }
@@ -705,14 +705,14 @@ class ve {
705
705
  switch (this.valueType) {
706
706
  case 12:
707
707
  case 13: {
708
- const e = { offset: this.offset }, r = C(this.payload, e, "DictMalformed");
709
- A(this.payload, e.offset, r);
708
+ const e = { offset: this.offset }, r = R(this.payload, e, "DictMalformed");
709
+ N(this.payload, e.offset, r);
710
710
  const n = this.payload.subarray(e.offset, e.offset + r);
711
711
  return this.offset = e.offset + r, new F(this.valueType, n);
712
712
  }
713
713
  case 11: {
714
- const e = { offset: this.offset }, r = C(this.payload, e, "DictMalformed");
715
- A(this.payload, e.offset, r);
714
+ const e = { offset: this.offset }, r = R(this.payload, e, "DictMalformed");
715
+ N(this.payload, e.offset, r);
716
716
  const n = this.payload.subarray(e.offset, e.offset + r);
717
717
  return this.offset = e.offset + r, new F(11, n);
718
718
  }
@@ -734,12 +734,12 @@ class ve {
734
734
  case 14:
735
735
  case 1: {
736
736
  const e = H(this.valueType);
737
- A(this.payload, this.offset, e);
737
+ N(this.payload, this.offset, e);
738
738
  const r = this.payload.subarray(this.offset, this.offset + e);
739
739
  return this.offset += e, new F(this.valueType, r);
740
740
  }
741
741
  default:
742
- throw new Error(`Unsupported dictionary value type ${N[this.valueType]}`);
742
+ throw new Error(`Unsupported dictionary value type ${g[this.valueType]}`);
743
743
  }
744
744
  }
745
745
  }
@@ -859,7 +859,7 @@ class ee {
859
859
  return Uint8Array.from(this.bytes);
860
860
  }
861
861
  }
862
- function C(t, e, r) {
862
+ function R(t, e, r) {
863
863
  if (e.offset >= t.length)
864
864
  throw new Error(r);
865
865
  let n = 0, s = 0, i = 0;
@@ -910,7 +910,7 @@ function Pe(t) {
910
910
  if (t === 9 || t === 11 || t === 10 || t === 1)
911
911
  throw new Error("Dictionary keys must be primitive Teleport types");
912
912
  }
913
- function A(t, e, r) {
913
+ function N(t, e, r) {
914
914
  if (e < 0 || r < 0 || e + r > t.length)
915
915
  throw new Error("Teleport payload exceeds bounds");
916
916
  }
@@ -923,10 +923,10 @@ function Be(t, e) {
923
923
  const r = t[e], n = r >> 4 & 15;
924
924
  if ((r & 15) !== 0)
925
925
  throw new Error("Array flags must be zero");
926
- const s = { offset: e + 1 }, i = C(t, s, "ArrayMalformed"), o = H(n);
926
+ const s = { offset: e + 1 }, i = R(t, s, "ArrayMalformed"), o = H(n);
927
927
  if (o >= 0) {
928
928
  const c = o * i;
929
- return A(t, s.offset, c), s.offset + c - e;
929
+ return N(t, s.offset, c), s.offset + c - e;
930
930
  }
931
931
  let a = s.offset;
932
932
  for (let c = 0; c < i; c++)
@@ -940,7 +940,7 @@ function Ge(t, e) {
940
940
  if ((t[e] & 15) !== 0 || (t[e + 1] & 15) !== 0)
941
941
  throw new Error("Dictionary key/value flags must be zero");
942
942
  Pe(r);
943
- const s = { offset: e + 2 }, i = C(t, s, "DictMalformed");
943
+ const s = { offset: e + 2 }, i = R(t, s, "DictMalformed");
944
944
  let o = s.offset;
945
945
  for (let a = 0; a < i; a++)
946
946
  o = Ne(r, t, o, "DictMalformed"), o = Ne(n, t, o, "DictMalformed");
@@ -949,23 +949,23 @@ function Ge(t, e) {
949
949
  function Ne(t, e, r, n) {
950
950
  const s = H(t);
951
951
  if (s >= 0)
952
- return A(e, r, s), r + s;
952
+ return N(e, r, s), r + s;
953
953
  switch (t) {
954
954
  case 12:
955
955
  case 13: {
956
- const i = { offset: r }, o = C(e, i, n);
957
- return A(e, i.offset, o), i.offset + o;
956
+ const i = { offset: r }, o = R(e, i, n);
957
+ return N(e, i.offset, o), i.offset + o;
958
958
  }
959
959
  case 11: {
960
- const i = { offset: r }, o = C(e, i, n);
961
- return A(e, i.offset, o), i.offset + o;
960
+ const i = { offset: r }, o = R(e, i, n);
961
+ return N(e, i.offset, o), i.offset + o;
962
962
  }
963
963
  case 9:
964
964
  return r + Be(e, r);
965
965
  case 10:
966
966
  return r + Ge(e, r);
967
967
  default:
968
- throw new Error(`Unsupported Teleport type ${N[t]}`);
968
+ throw new Error(`Unsupported Teleport type ${g[t]}`);
969
969
  }
970
970
  }
971
971
  function Xe(t) {
@@ -974,10 +974,10 @@ function Xe(t) {
974
974
  function ne(t) {
975
975
  return t instanceof Uint8Array ? t : new Uint8Array(t);
976
976
  }
977
- var ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(ht || {}), Y = /* @__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))(Y || {}), j = /* @__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))(j || {}), g = /* @__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))(g || {}), z = /* @__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))(z || {}), ft = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ft || {}), X = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(X || {}), pt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Hevc = 2] = "Hevc", t[t.Vp8 = 3] = "Vp8", t))(pt || {}), xe = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(xe || {}), _ = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(_ || {});
977
+ var ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(ht || {}), Y = /* @__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))(Y || {}), j = /* @__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))(j || {}), C = /* @__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))(C || {}), z = /* @__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))(z || {}), ft = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ft || {}), X = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(X || {}), pt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Hevc = 2] = "Hevc", t[t.Vp8 = 3] = "Vp8", t))(pt || {}), xe = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(xe || {}), _ = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(_ || {});
978
978
  const Et = 1, Wr = 1048637, Vr = 727023925, Hr = 3395085689;
979
979
  function $r(t) {
980
- const e = new R(Et);
980
+ const e = new b(Et);
981
981
  return Kr(t, e), e.finish();
982
982
  }
983
983
  function Kr(t, e) {
@@ -1236,7 +1236,7 @@ function $n(t) {
1236
1236
  return wt(e), e;
1237
1237
  }
1238
1238
  function wt(t) {
1239
- return t.Type = g.None, t.Uri = "", t.OpcodeGroupsFromServer = _.NONE, t.OpcodeGroupsToServer = _.NONE, t.Priority = 0, t.Description = "", t.AuthTicket = new Uint8Array(0), t;
1239
+ return t.Type = C.None, t.Uri = "", t.OpcodeGroupsFromServer = _.NONE, t.OpcodeGroupsToServer = _.NONE, t.Priority = 0, t.Description = "", t.AuthTicket = new Uint8Array(0), t;
1240
1240
  }
1241
1241
  function Kn(t, e) {
1242
1242
  const r = e ?? $n();
@@ -1386,7 +1386,7 @@ function ms(t) {
1386
1386
  return t.CallId = I.fromBytes(new Uint8Array(16)), t.InstanceId = I.fromBytes(new Uint8Array(16)), t;
1387
1387
  }
1388
1388
  function _s(t) {
1389
- const e = new R(yt);
1389
+ const e = new b(yt);
1390
1390
  return Ts(t, e), e.finish();
1391
1391
  }
1392
1392
  function Ts(t, e) {
@@ -1508,7 +1508,7 @@ function Xs(t) {
1508
1508
  return t.CallId = I.fromBytes(new Uint8Array(16)), t.InstanceId = I.fromBytes(new Uint8Array(16)), t.ErrorMessage = "", t.ErrorTypeName = "", t.StackTrace = "", t;
1509
1509
  }
1510
1510
  function Js(t) {
1511
- const e = new R(gt);
1511
+ const e = new b(gt);
1512
1512
  return Qs(t, e), e.finish();
1513
1513
  }
1514
1514
  function Qs(t, e) {
@@ -1527,11 +1527,11 @@ function Pt(t) {
1527
1527
  return t.FunctionId = I.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ResultTypeName = "", t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.IsCancellable = !1, t.Description = "", t.LlmInlineResult = !1, t.LlmCallOnlyOnce = !1, t.RequiresInstance = !1, t;
1528
1528
  }
1529
1529
  function ti(t) {
1530
- const e = new R(We);
1530
+ const e = new b(We);
1531
1531
  return Bt(t, e), e.finish();
1532
1532
  }
1533
1533
  function Bt(t, e) {
1534
- e.writeStringField(Ct, t.ResultTypeName), e.writeStringField(Rt, t.FunctionName), e.writeStringField(bt, t.EnumerableItemTypeName), e.writeGuidField(kt, t.FunctionId), e.writeStringField(Ut, t.Description), e.writeBoolField(Dt, t.IsCancellable), e.writeBoolField(Ot, t.RequiresInstance), e.writeBoolField(Mt, t.LlmInlineResult), e.writeBoolField(Lt, t.IsEnumerable), e.writeArrayField(Ft, N.Object, (r) => {
1534
+ e.writeStringField(Ct, t.ResultTypeName), e.writeStringField(Rt, t.FunctionName), e.writeStringField(bt, t.EnumerableItemTypeName), e.writeGuidField(kt, t.FunctionId), e.writeStringField(Ut, t.Description), e.writeBoolField(Dt, t.IsCancellable), e.writeBoolField(Ot, t.RequiresInstance), e.writeBoolField(Mt, t.LlmInlineResult), e.writeBoolField(Lt, t.IsEnumerable), e.writeArrayField(Ft, g.Object, (r) => {
1535
1535
  for (const n of t.Parameters)
1536
1536
  r.writeObject(oi, (s) => {
1537
1537
  ci(n, s);
@@ -1689,11 +1689,11 @@ function pi(t) {
1689
1689
  return t.Functions = [], t;
1690
1690
  }
1691
1691
  function Ei(t) {
1692
- const e = new R(Xt);
1692
+ const e = new b(Xt);
1693
1693
  return Ii(t, e), e.finish();
1694
1694
  }
1695
1695
  function Ii(t, e) {
1696
- e.writeArrayField(hi, N.Object, (r) => {
1696
+ e.writeArrayField(hi, g.Object, (r) => {
1697
1697
  for (const n of t.Functions)
1698
1698
  r.writeObject(We, (s) => {
1699
1699
  Bt(n, s);
@@ -1713,7 +1713,7 @@ function gi(t) {
1713
1713
  return t.CallId = I.fromBytes(new Uint8Array(16)), t.InstanceId = I.fromBytes(new Uint8Array(16)), t.ResultTypeName = "", t.ResultJson = "", t.ResultData = new Uint8Array(0), t;
1714
1714
  }
1715
1715
  function Ci(t) {
1716
- const e = new R(Jt);
1716
+ const e = new b(Jt);
1717
1717
  return Ri(t, e), e.finish();
1718
1718
  }
1719
1719
  function Ri(t, e) {
@@ -1728,7 +1728,7 @@ function Je(t) {
1728
1728
  return {};
1729
1729
  }
1730
1730
  function Ui(t) {
1731
- return new R(Qt).finish();
1731
+ return new b(Qt).finish();
1732
1732
  }
1733
1733
  function Qe(t, e, r) {
1734
1734
  const n = Ui();
@@ -2159,7 +2159,7 @@ function ur(t) {
2159
2159
  return {};
2160
2160
  }
2161
2161
  function Zo(t) {
2162
- return new R(lr).finish();
2162
+ return new b(lr).finish();
2163
2163
  }
2164
2164
  function dr(t, e, r) {
2165
2165
  const n = Zo();
@@ -2170,7 +2170,7 @@ function ea(t) {
2170
2170
  return {};
2171
2171
  }
2172
2172
  function ta(t) {
2173
- return new R(hr).finish();
2173
+ return new b(hr).finish();
2174
2174
  }
2175
2175
  function ra(t, e, r) {
2176
2176
  const n = ta();
@@ -2630,18 +2630,18 @@ class fa {
2630
2630
  }
2631
2631
  };
2632
2632
  switch (e.Type) {
2633
- case g.WebSocket:
2634
- case g.WebSocketProxy:
2633
+ case C.WebSocket:
2634
+ case C.WebSocketProxy:
2635
2635
  this.transport = new ua(r);
2636
2636
  break;
2637
- case g.WebTransport:
2638
- case g.WebTransportProxy:
2637
+ case C.WebTransport:
2638
+ case C.WebTransportProxy:
2639
2639
  if (!Er())
2640
2640
  throw new Error("WebTransport is not supported in this browser");
2641
2641
  this.transport = new ha(r);
2642
2642
  break;
2643
2643
  default:
2644
- throw new Error(`Unsupported entrypoint type: ${g[e.Type]}`);
2644
+ throw new Error(`Unsupported entrypoint type: ${C[e.Type]}`);
2645
2645
  }
2646
2646
  await this.transport.connect(e.Uri, e.AuthTicket);
2647
2647
  }
@@ -2761,7 +2761,7 @@ class pa {
2761
2761
  await this.connectAllChannels(i), this.config.endpointSelector?.rememberWorkingType(s), this.config.onRememberWorkingType?.(s), this.activeType = s, this.reconnectAttempts = 0, this.setState("connected");
2762
2762
  return;
2763
2763
  } catch (o) {
2764
- B.warn(`Failed to connect using ${g[s]}: ${o}`), this.disconnectAll();
2764
+ B.warn(`Failed to connect using ${C[s]}: ${o}`), this.disconnectAll();
2765
2765
  }
2766
2766
  }
2767
2767
  throw B.error("All endpoint types failed"), e || this.setState("offline"), new Error("Failed to connect using any endpoint type");
@@ -3956,7 +3956,7 @@ function Uc(t) {
3956
3956
  }
3957
3957
  );
3958
3958
  }
3959
- const we = 48e3, k = 2, Cr = 1500, at = 512, Dc = "playback", Oc = 120, Mc = 300, Lc = 4, Fc = 200, vc = 100, Pc = 8e3, Bc = 10, Rr = 100, Ue = 50, br = 128, Gc = 20, y = O("IkonAudioPlayback"), xc = () => {
3959
+ const we = 48e3, k = 2, Cr = 1500, at = 512, Dc = "playback", Oc = 120, Mc = 300, Lc = 4, Fc = 200, vc = 100, Pc = 8e3, Bc = 10, Rr = 100, Ue = 50, br = 128, Gc = 20, A = O("IkonAudioPlayback"), xc = () => {
3960
3960
  const t = globalThis.navigator;
3961
3961
  if (!t) return !1;
3962
3962
  const e = t.platform ?? t.userAgentData?.platform ?? "", r = t.userAgent ?? "", n = t.maxTouchPoints, s = /iPad|iPhone|iPod/.test(e), i = /iPad|iPhone|iPod/.test(r), o = e === "MacIntel" && typeof n == "number" && n > 1;
@@ -4959,14 +4959,14 @@ class ze {
4959
4959
  try {
4960
4960
  this.audioContext = new AudioContext();
4961
4961
  } catch (d) {
4962
- y.warn(`Failed to create AudioContext: ${W(d)}`), this.audioContext = null;
4962
+ A.warn(`Failed to create AudioContext: ${W(d)}`), this.audioContext = null;
4963
4963
  return;
4964
4964
  }
4965
- y.debug(`AudioContext latencyHint unsupported: ${W(h)}`);
4965
+ A.debug(`AudioContext latencyHint unsupported: ${W(h)}`);
4966
4966
  }
4967
- y.debug(`AudioContext sample rate request unsupported: ${W(l)}`);
4967
+ A.debug(`AudioContext sample rate request unsupported: ${W(l)}`);
4968
4968
  }
4969
- this.outputSampleRateHz = this.audioContext.sampleRate || we, this.outputSampleRateHz !== a && y.debug(`AudioContext running at ${this.outputSampleRateHz}Hz (requested ${a}Hz)`), this.attachAudioContextHealthHandlers(this.audioContext);
4969
+ this.outputSampleRateHz = this.audioContext.sampleRate || we, this.outputSampleRateHz !== a && A.debug(`AudioContext running at ${this.outputSampleRateHz}Hz (requested ${a}Hz)`), this.attachAudioContextHealthHandlers(this.audioContext);
4970
4970
  }
4971
4971
  const n = this.audioContext, s = this.resolveOutputConfig();
4972
4972
  if ((this.config.threading?.preferAudioWorklet ?? !0) && gr(n)) {
@@ -5062,7 +5062,7 @@ class ze {
5062
5062
  this.workletModuleKey = i, this.workletReady = null, this.workletModuleUrl = URL.createObjectURL(new Blob([Vc({ outputSampleRateHz: this.outputSampleRateHz, outputChannels: k })], { type: "text/javascript" }));
5063
5063
  }
5064
5064
  this.workletReady || (this.workletReady = e.audioWorklet.addModule(this.workletModuleUrl).catch((l) => {
5065
- throw y.warn(`Failed to load AudioWorklet module, falling back: ${W(l)}`), l;
5065
+ throw A.warn(`Failed to load AudioWorklet module, falling back: ${W(l)}`), l;
5066
5066
  }));
5067
5067
  try {
5068
5068
  await this.workletReady;
@@ -5090,10 +5090,10 @@ class ze {
5090
5090
  const d = h;
5091
5091
  if (d.state === "BUFFERING" && d.inputDrained)
5092
5092
  return;
5093
- y.debug(`[Audio] stream=${d.streamId.substring(0, 8)} state=${d.state} buffer=${d.bufferMs.toFixed(0)}ms target=${d.targetMs.toFixed(0)}ms jitter=${d.jitterMs.toFixed(1)}ms underrun=${d.underrunCount} drop=${d.dropCount} dup=${d.dupCount}`);
5093
+ A.debug(`[Audio] stream=${d.streamId.substring(0, 8)} state=${d.state} buffer=${d.bufferMs.toFixed(0)}ms target=${d.targetMs.toFixed(0)}ms jitter=${d.jitterMs.toFixed(1)}ms underrun=${d.underrunCount} drop=${d.dropCount} dup=${d.dupCount}`);
5094
5094
  return;
5095
5095
  }
5096
- if (h.type === "streamDrained" && typeof h.streamId == "string") {
5096
+ if (h.type === "streamDrained" && "streamId" in h && typeof h.streamId == "string") {
5097
5097
  const d = h.streamId;
5098
5098
  this.activeStreams.delete(d), this.activeStreams.size === 0 && this.removeUnlockHandler();
5099
5099
  return;
@@ -5115,7 +5115,7 @@ class ze {
5115
5115
  const u = f.getChannelData(T);
5116
5116
  u.fill(0), l[T] = u;
5117
5117
  }
5118
- const b = r.multiStreamNormalization.enabled;
5118
+ const y = r.multiStreamNormalization.enabled;
5119
5119
  let U = 0;
5120
5120
  h.length = 0;
5121
5121
  for (const [T, u] of this.fallbackQueues.entries()) {
@@ -5154,7 +5154,7 @@ class ze {
5154
5154
  this.fallbackQueues.delete(T), this.activeStreams.delete(T);
5155
5155
  this.activeStreams.size === 0 && this.removeUnlockHandler();
5156
5156
  }
5157
- if (b && U > 1) {
5157
+ if (y && U > 1) {
5158
5158
  const T = 1 / Math.sqrt(U);
5159
5159
  for (let u = 0; u < E; u++)
5160
5160
  for (let M = 0; M < p; M++)
@@ -5205,7 +5205,7 @@ class ze {
5205
5205
  if (i.totalSamples <= 0)
5206
5206
  continue;
5207
5207
  const a = i.totalSamples / k * 1e3 / this.outputSampleRateHz;
5208
- y.debug(`[Audio] stream=${s.substring(0, 8)} buffer=${a.toFixed(0)}ms renderer=ScriptProcessor`);
5208
+ A.debug(`[Audio] stream=${s.substring(0, 8)} buffer=${a.toFixed(0)}ms renderer=ScriptProcessor`);
5209
5209
  }
5210
5210
  }, n);
5211
5211
  }
@@ -5232,7 +5232,7 @@ class ze {
5232
5232
  try {
5233
5233
  await this.resumeWithTimeout(e), this.removeUnlockHandler();
5234
5234
  } catch (o) {
5235
- y.warn(`Failed to resume AudioContext: ${W(o)}`), this.addUnlockHandler();
5235
+ A.warn(`Failed to resume AudioContext: ${W(o)}`), this.addUnlockHandler();
5236
5236
  }
5237
5237
  }
5238
5238
  async recoverAudioContext(e) {
@@ -5278,7 +5278,7 @@ class ze {
5278
5278
  try {
5279
5279
  await this.resumeWithTimeout(o);
5280
5280
  } catch (c) {
5281
- y.debug(`AudioContext resume failed or timed out (${e.reason}): ${c}`);
5281
+ A.debug(`AudioContext resume failed or timed out (${e.reason}): ${c}`);
5282
5282
  }
5283
5283
  if (this.getContextState(o) === "running") {
5284
5284
  this.removeUnlockHandler();
@@ -5313,25 +5313,25 @@ class ze {
5313
5313
  if (this.audioWorker)
5314
5314
  return;
5315
5315
  if (typeof Worker > "u") {
5316
- y.warn("Audio decode worker unavailable (Workers not supported)");
5316
+ A.warn("Audio decode worker unavailable (Workers not supported)");
5317
5317
  return;
5318
5318
  }
5319
5319
  const e = this.client.createProtocolMessagePort({ opcodeGroupsMask: _.GROUP_AUDIO });
5320
5320
  if (!e) {
5321
- this.enabled && y.debug("Audio pipeline waiting for client connection");
5321
+ this.enabled && A.debug("Audio pipeline waiting for client connection");
5322
5322
  return;
5323
5323
  }
5324
5324
  this.protocolPort = e;
5325
5325
  try {
5326
5326
  this.audioWorker = new Uc();
5327
5327
  } catch (d) {
5328
- y.warn(`Failed to create audio worker: ${W(d)}`), this.protocolPort.close(), this.protocolPort = null;
5328
+ A.warn(`Failed to create audio worker: ${W(d)}`), this.protocolPort.close(), this.protocolPort = null;
5329
5329
  return;
5330
5330
  }
5331
5331
  const r = this.audioWorker;
5332
5332
  r.addEventListener("message", (d) => this.onAudioWorkerMessage(d.data)), r.addEventListener("error", (d) => {
5333
5333
  const m = [d.message, d.filename, d.lineno, d.colno].filter((f) => f != null && String(f).length > 0);
5334
- y.error(`Audio worker failed: ${m.join(" ")}`.trim());
5334
+ A.error(`Audio worker failed: ${m.join(" ")}`.trim());
5335
5335
  });
5336
5336
  const s = (this.config.threading?.preferSharedArrayBuffer ?? !0) && !!this.audioWorkletNode && ce(), i = this.config.threading?.preferWebCodecs ?? !0, o = {
5337
5337
  type: "configure",
@@ -5341,8 +5341,8 @@ class ze {
5341
5341
  preferWebCodecs: i
5342
5342
  };
5343
5343
  r.postMessage(o), r.postMessage({ type: "attachProtocolPort", port: e.port }, [e.port]);
5344
- const a = this.audioWorkletNode ? "AudioWorklet" : "ScriptProcessor", c = s ? "SharedArrayBuffer" : "MessagePort", h = i && typeof AudioDecoder < "u" ? "WebCodecs (when supported)" : "WASM Opus (fallback)";
5345
- y.debug(`Audio initialized: renderer=${a}, transport=${c}, decoder=${h}, output=${this.outputSampleRateHz}Hz/${k}ch`);
5344
+ const a = this.audioWorkletNode ? "AudioWorklet" : "ScriptProcessor", c = s ? "SharedArrayBuffer" : "MessagePort", h = i && typeof AudioDecoder < "u" ? "WebCodecs" : "WASM Opus";
5345
+ A.debug(`Audio initialized: renderer=${a}, transport=${c}, decoder=${h}, output=${this.outputSampleRateHz}Hz/${k}ch`);
5346
5346
  }
5347
5347
  onAudioWorkerMessage(e) {
5348
5348
  if (e.type === "streamBegin") {
@@ -5391,7 +5391,7 @@ class ze {
5391
5391
  });
5392
5392
  return;
5393
5393
  }
5394
- e.type === "error" && y.warn(`Audio worker error${e.streamId ? ` (stream ${e.streamId})` : ""}: ${e.error.message}`);
5394
+ e.type === "error" && A.warn(`Audio worker error${e.streamId ? ` (stream ${e.streamId})` : ""}: ${e.error.message}`);
5395
5395
  }
5396
5396
  postToWorklet(e, r) {
5397
5397
  if (!this.audioWorkletNode) {
@@ -5564,7 +5564,7 @@ class $c {
5564
5564
  this.enabled = !1, this.stateUnsubscribe?.(), this.stateUnsubscribe = null, this.surfaces.clear(), this.stopWorker();
5565
5565
  }
5566
5566
  canUseOffscreenCanvas(e) {
5567
- return this.config.threading?.preferOffscreenCanvas ?? !0 ? typeof e.transferControlToOffscreen == "function" : !1;
5567
+ return this.config.threading?.preferOffscreenCanvas ?? !0 ? "transferControlToOffscreen" in e && typeof e.transferControlToOffscreen == "function" : !1;
5568
5568
  }
5569
5569
  hasDemand() {
5570
5570
  return this.surfaces.size > 0;
@@ -5783,7 +5783,7 @@ class Yc {
5783
5783
  }
5784
5784
  function jc(t) {
5785
5785
  return new Worker(
5786
- "" + new URL("assets/audio-capture-worker-fxRKlQJF.js", import.meta.url).href,
5786
+ "" + new URL("assets/audio-capture-worker-DINNsNmH.js", import.meta.url).href,
5787
5787
  {
5788
5788
  type: "module",
5789
5789
  name: t?.name
@@ -5928,7 +5928,10 @@ class Qc {
5928
5928
  const e = new jc();
5929
5929
  return this.worker = e, e.addEventListener("message", (r) => {
5930
5930
  const n = r.data;
5931
- n?.type === "error" && zc.warn(`Audio capture worker error: ${n.error?.name ?? "Error"} ${n.error?.message ?? ""}`);
5931
+ if (n?.type === "error") {
5932
+ const s = n.error;
5933
+ zc.warn(`Audio capture worker error: ${s?.name ?? "Error"} ${s?.message ?? ""}`);
5934
+ }
5932
5935
  }), e;
5933
5936
  }
5934
5937
  ensureSendPort() {
@@ -6013,7 +6016,7 @@ class Qc {
6013
6016
  p.postMessage({ type: "pcm", captureId: o, pcm: u }, [u.buffer]);
6014
6017
  }
6015
6018
  });
6016
- const b = {
6019
+ const y = {
6017
6020
  captureId: o,
6018
6021
  trackId: a,
6019
6022
  stream: s,
@@ -6024,8 +6027,8 @@ class Qc {
6024
6027
  gain: l,
6025
6028
  stopped: !1,
6026
6029
  stop: async () => {
6027
- if (!b.stopped) {
6028
- b.stopped = !0, this.captures.delete(o);
6030
+ if (!y.stopped) {
6031
+ y.stopped = !0, this.captures.delete(o);
6029
6032
  try {
6030
6033
  c.disconnect();
6031
6034
  } catch {
@@ -6047,8 +6050,8 @@ class Qc {
6047
6050
  }
6048
6051
  };
6049
6052
  return i.addEventListener("ended", () => {
6050
- b.stop();
6051
- }), this.captures.set(o, b), { captureId: o, stop: b.stop };
6053
+ y.stop();
6054
+ }), this.captures.set(o, y), { captureId: o, stop: y.stop };
6052
6055
  }
6053
6056
  async stop(e) {
6054
6057
  const r = this.captures.get(e);
@@ -6120,8 +6123,8 @@ class qc {
6120
6123
  }
6121
6124
  try {
6122
6125
  await new Promise((f, p) => {
6123
- const E = () => f(), b = () => p(new Error("Failed to load video element"));
6124
- s.addEventListener("loadedmetadata", E, { once: !0 }), s.addEventListener("error", b, { once: !0 });
6126
+ const E = () => f(), y = () => p(new Error("Failed to load video element"));
6127
+ s.addEventListener("loadedmetadata", E, { once: !0 }), s.addEventListener("error", y, { once: !0 });
6125
6128
  });
6126
6129
  try {
6127
6130
  await s.play();
@@ -6205,7 +6208,10 @@ class nl {
6205
6208
  const e = new el();
6206
6209
  return this.worker = e, e.addEventListener("message", (r) => {
6207
6210
  const n = r.data;
6208
- n?.type === "error" && ct.warn(`Video capture worker error: ${n.error?.name ?? "Error"} ${n.error?.message ?? ""}`);
6211
+ if (n?.type === "error") {
6212
+ const s = n.error;
6213
+ ct.warn(`Video capture worker error: ${s?.name ?? "Error"} ${s?.message ?? ""}`);
6214
+ }
6209
6215
  }), e;
6210
6216
  }
6211
6217
  ensurePorts() {
@@ -6330,10 +6336,10 @@ class sl {
6330
6336
  }
6331
6337
  }
6332
6338
  const lt = {
6333
- [g.WebTransport]: 0,
6334
- [g.WebSocket]: 1,
6335
- [g.WebTransportProxy]: 2,
6336
- [g.WebSocketProxy]: 3
6339
+ [C.WebTransport]: 0,
6340
+ [C.WebSocket]: 1,
6341
+ [C.WebTransportProxy]: 2,
6342
+ [C.WebSocketProxy]: 3
6337
6343
  }, Ae = "ikon_endpoint_type";
6338
6344
  class il {
6339
6345
  isLocal;
@@ -6390,7 +6396,7 @@ class il {
6390
6396
  const e = localStorage.getItem(Ae);
6391
6397
  if (e !== null) {
6392
6398
  const r = Number(e);
6393
- g[r] !== void 0 && (this.workingEndpointType = r);
6399
+ C[r] !== void 0 && (this.workingEndpointType = r);
6394
6400
  }
6395
6401
  } catch {
6396
6402
  }
@@ -6832,13 +6838,13 @@ class Al {
6832
6838
  if (p?.type === "state") {
6833
6839
  const E = p.state;
6834
6840
  this.workerManagerState = E;
6835
- const b = p.activeType;
6836
- b !== void 0 && this.endpointSelector.rememberWorkingType(b), this.handleChannelManagerStateChange(E), E === "connected" && h();
6841
+ const y = p.activeType;
6842
+ y !== void 0 && this.endpointSelector.rememberWorkingType(y), this.handleChannelManagerStateChange(E), E === "connected" && h();
6837
6843
  return;
6838
6844
  }
6839
6845
  if (p?.type === "error") {
6840
- const E = new Error(String(p.error?.message ?? "Worker error"));
6841
- E.name = String(p.error?.name ?? "Error"), d(E);
6846
+ const E = p.error, y = new Error(String(E?.message ?? "Worker error"));
6847
+ y.name = String(E?.name ?? "Error"), d(y);
6842
6848
  }
6843
6849
  };
6844
6850
  s.addEventListener("message", m), s.addEventListener("error", (f) => {
@@ -7051,7 +7057,7 @@ export {
7051
7057
  Ve as ConnectionError,
7052
7058
  j as ContextType,
7053
7059
  il as EndpointSelector,
7054
- g as EntrypointType,
7060
+ C as EntrypointType,
7055
7061
  yc as FunctionRegistry,
7056
7062
  _l as IKON_AUTH_BASE_URL,
7057
7063
  nt as IKON_AUTH_URL_DEV,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonai/sdk",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",