@realsee/live 0.6.2 → 0.6.4

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/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
1
  var At = Object.defineProperty;
2
2
  var Dt = (t, s, e) => s in t ? At(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
3
3
  var o = (t, s, e) => (Dt(t, typeof s != "symbol" ? s + "" : s, e), e);
4
- import Vt from "@realsee/jsbridge-x";
4
+ import Mt from "@realsee/jsbridge-x";
5
5
  import ke from "trtc-js-sdk";
6
- import { ConsoleLogger as Mt, LogLevel as $t, DefaultDeviceController as xt, MeetingSessionConfiguration as Ut, DefaultMeetingSession as Bt, DefaultModality as et, MeetingSessionStatusCode as Wt } from "amazon-chime-sdk-js";
6
+ import { ConsoleLogger as Vt, LogLevel as $t, DefaultDeviceController as xt, MeetingSessionConfiguration as Ut, DefaultMeetingSession as Bt, DefaultModality as et, MeetingSessionStatusCode as Wt } from "amazon-chime-sdk-js";
7
7
  import V, { createContext as Ft } from "react";
8
8
  const oe = Symbol("$$REALSEE_LIVE_EVENT$$");
9
9
  function ge(t) {
@@ -108,7 +108,7 @@ const Kt = () => {
108
108
  info: Gt,
109
109
  error: Ht,
110
110
  warn: Jt
111
- }, A = zt;
111
+ }, T = zt;
112
112
  function X() {
113
113
  return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
114
114
  }
@@ -194,7 +194,7 @@ class tt extends De {
194
194
  const n = { audio: !0, video: !1 };
195
195
  try {
196
196
  navigator.mediaDevices.getUserMedia(n).then(() => e(!0)).catch((i) => {
197
- A.error(i.message), e(!1);
197
+ T.error(i.message), e(!1);
198
198
  });
199
199
  } catch (i) {
200
200
  console.error(i), e(!1);
@@ -239,9 +239,11 @@ class rt extends De {
239
239
  o(this, "audioOutput");
240
240
  o(this, "deviceChangeObserver", {});
241
241
  o(this, "audioVideoObserver", {});
242
+ o(this, "audioMixObserver");
242
243
  o(this, "_getVoiceSign", () => {
243
244
  throw new Error("方法 getVoiceSign 未实现");
244
245
  });
246
+ o(this, "_autoPlayConfirm");
245
247
  o(this, "$dom", document.createElement("div"));
246
248
  o(this, "$audio", document.createElement("audio"));
247
249
  /**
@@ -281,6 +283,21 @@ class rt extends De {
281
283
  audioVideoDidStartConnecting: (e) => {
282
284
  e && this.logger.info("Attempting to reconnect");
283
285
  }
286
+ }, this.audioMixObserver = {
287
+ meetingAudioStreamBecameActive: (e) => {
288
+ if (this.$audio.paused) {
289
+ const n = () => this.$audio.play().then(() => {
290
+ }).catch((i) => {
291
+ if (T.error("播放远端流失败!", i), typeof this._autoPlayConfirm == "function") {
292
+ const a = () => n();
293
+ this._autoPlayConfirm({ onConfirm: a });
294
+ }
295
+ });
296
+ n();
297
+ }
298
+ },
299
+ meetingAudioStreamBecameInactive: (e) => {
300
+ }
284
301
  };
285
302
  });
286
303
  /**
@@ -292,41 +309,41 @@ class rt extends De {
292
309
  if (e) {
293
310
  const g = /* @__PURE__ */ new Map(), v = () => {
294
311
  const p = [];
295
- return g.forEach((w, m) => {
312
+ return g.forEach((S, m) => {
296
313
  p.push({
297
- userId: w.userId,
298
- volume: w.muted || w.signalStrength === 0 || !Boolean(w.volume) ? 0 : w.volume
314
+ userId: S.userId,
315
+ volume: S.muted || S.signalStrength === 0 || !Boolean(S.volume) ? 0 : S.volume
299
316
  });
300
317
  }), p;
301
318
  };
302
319
  (u = this.meetingSession) == null || u.audioVideo.realtimeSubscribeToAttendeeIdPresence(
303
- (p, w, m) => {
304
- var N;
305
- if (!w) {
320
+ (p, S, m) => {
321
+ var A;
322
+ if (!S) {
306
323
  g.delete(p), this.emit("userVolumes", v());
307
324
  return;
308
325
  }
309
- (N = this.meetingSession) == null || N.audioVideo.realtimeSubscribeToVolumeIndicator(
326
+ (A = this.meetingSession) == null || A.audioVideo.realtimeSubscribeToVolumeIndicator(
310
327
  p,
311
- (M, P, Y, K) => {
312
- new et(M).base() === M && (g.set(M, {
313
- userId: m || M,
328
+ (w, P, H, J) => {
329
+ new et(w).base() === w && (g.set(w, {
330
+ userId: m || w,
314
331
  volume: P,
315
- muted: Y,
316
- signalStrength: K
332
+ muted: H,
333
+ signalStrength: J
317
334
  }), this.emit("userVolumes", v()));
318
335
  }
319
336
  );
320
337
  }
321
338
  ), (f = this.meetingSession) == null || f.audioVideo.realtimeSubscribeToVolumeIndicator(
322
339
  e,
323
- (p, w, m, N) => {
324
- new et(p).base() === p && N !== null && N !== 1 && this.emit("weakNetwork");
340
+ (p, S, m, A) => {
341
+ new et(p).base() === p && A !== null && A !== 1 && this.emit("weakNetwork");
325
342
  }
326
343
  ), (_ = this.meetingSession) == null || _.audioVideo.realtimeSubscribeToFatalError((p) => this.emit("error", p));
327
344
  }
328
345
  });
329
- this._getVoiceSign = e.getVoiceSign, this._initDom(), this.logger = new Mt("WebRTCLogger", e.logLevel || $t.INFO), this.deviceController = new xt(this.logger), this.initObservers();
346
+ this._getVoiceSign = e.getVoiceSign, this._autoPlayConfirm = e.autoPlayConfirm, this._initDom(), this.logger = new Vt("WebRTCLogger", e.logLevel || $t.INFO), this.deviceController = new xt(this.logger), this.initObservers();
330
347
  }
331
348
  /**
332
349
  * 加入语音会议
@@ -343,11 +360,11 @@ class rt extends De {
343
360
  roomId: e.roomId || 0
344
361
  });
345
362
  this.userId = _;
346
- const { attendence: p, vendor_wrapper: w } = JSON.parse(
363
+ const { attendence: p, vendor_wrapper: S } = JSON.parse(
347
364
  decodeURIComponent(v)
348
365
  ), m = new Ut(
349
366
  {
350
- Meeting: w
367
+ Meeting: S
351
368
  },
352
369
  {
353
370
  Attendee: {
@@ -358,20 +375,35 @@ class rt extends De {
358
375
  }
359
376
  );
360
377
  this.meetingSession = new Bt(m, this.logger, this.deviceController), this._registerRtcEvent(), this.meetingSession.audioVideo.addDeviceChangeObserver(this.deviceChangeObserver), this.meetingSession.audioVideo.addObserver(this.audioVideoObserver), this.meetingSession.audioVideo.bindAudioElement(this.$audio);
361
- const N = {
378
+ const A = {
362
379
  audioVideoDidStart: () => {
363
- var I;
364
- (I = this.meetingSession) == null || I.audioVideo.realtimeMuteLocalAudio(), this.joined = !0, this.emit("joined"), n(!0);
380
+ var w;
381
+ (w = this.meetingSession) == null || w.audioVideo.realtimeMuteLocalAudio(), this.joined = !0, this.emit("joined"), n(!0);
365
382
  },
366
383
  audioVideoDidStop: () => {
367
384
  this.joined = !1, n(!1);
368
385
  }
369
386
  };
370
- this.meetingSession.audioVideo.addObserver(N), this.meetingSession.audioVideo.setDeviceLabelTrigger(
387
+ this.meetingSession.audioVideo.addObserver(A), this.audioMixObserver && this.meetingSession.audioVideo.addAudioMixObserver(this.audioMixObserver), this.meetingSession.audioVideo.setDeviceLabelTrigger(
371
388
  async () => await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 })
372
389
  );
373
- const P = ((a = (await this.meetingSession.audioVideo.listAudioInputDevices())[0]) == null ? void 0 : a.deviceId) || "default", K = ((u = (await this.meetingSession.audioVideo.listAudioOutputDevices())[0]) == null ? void 0 : u.deviceId) || "default";
374
- await this.meetingSession.audioVideo.startAudioInput(P), await this.meetingSession.audioVideo.chooseAudioOutput(K), this.meetingSession.audioVideo.start();
390
+ try {
391
+ const w = await this.meetingSession.audioVideo.listAudioInputDevices();
392
+ T.info("audioInputDevices ===>", w);
393
+ const P = ((a = w[0]) == null ? void 0 : a.deviceId) || "default";
394
+ await this.meetingSession.audioVideo.startAudioInput(P);
395
+ } catch (w) {
396
+ T.error(`设置语音输入设备失败:${w.message}`);
397
+ }
398
+ try {
399
+ const w = await this.meetingSession.audioVideo.listAudioOutputDevices();
400
+ T.info("audioOutputDevices ===>", w);
401
+ const P = ((u = w[0]) == null ? void 0 : u.deviceId) || "default";
402
+ await this.meetingSession.audioVideo.chooseAudioOutput(P);
403
+ } catch (w) {
404
+ T.error(`设置语音输出设备失败:${w.message}`);
405
+ }
406
+ this.meetingSession.audioVideo.start();
375
407
  } catch (f) {
376
408
  this.emit("error", f), this.logger.error(f.message), n(!1);
377
409
  }
@@ -474,7 +506,7 @@ class nt extends De {
474
506
  this.jsBridge.shock(1);
475
507
  }
476
508
  }
477
- var W = /* @__PURE__ */ ((t) => (t.SelfUserInfo = "SELF_USER_INFO", t.RoomInfo = "ROOM_INFO", t.RTCInfo = "RTC_INFO", t.UserList = "USER_LIST", t.BuiltinMsg = "BUILTIN_MSG", t.CustomEvent = "CUSTOM_EVENT", t.KeyframeSync = "KEYFRAME_SYNC", t.UserKickOut = "USER_KICK_OUT", t))(W || {}), q = /* @__PURE__ */ ((t) => (t.UserChange = "user_change", t.RoomChange = "room_change", t))(q || {}), J = /* @__PURE__ */ ((t) => (t.UserMicroStatus = "change_micro_status", t.UserMicroStatusSync = "sync_micro_status", t.UserPermission = "change_permission", t.UserStatus = "change_status", t.UserInfo = "change_info", t.RoomClose = "close", t))(J || {}), Z = /* @__PURE__ */ ((t) => (t.OPEN = "OPEN", t.CLOSE = "CLOSE", t))(Z || {});
509
+ var W = /* @__PURE__ */ ((t) => (t.SelfUserInfo = "SELF_USER_INFO", t.RoomInfo = "ROOM_INFO", t.RTCInfo = "RTC_INFO", t.UserList = "USER_LIST", t.BuiltinMsg = "BUILTIN_MSG", t.CustomEvent = "CUSTOM_EVENT", t.KeyframeSync = "KEYFRAME_SYNC", t.UserKickOut = "USER_KICK_OUT", t))(W || {}), q = /* @__PURE__ */ ((t) => (t.UserChange = "user_change", t.RoomChange = "room_change", t))(q || {}), G = /* @__PURE__ */ ((t) => (t.UserMicroStatus = "change_micro_status", t.UserMicroStatusSync = "sync_micro_status", t.UserPermission = "change_permission", t.UserStatus = "change_status", t.UserInfo = "change_info", t.RoomClose = "close", t))(G || {}), Z = /* @__PURE__ */ ((t) => (t.OPEN = "OPEN", t.CLOSE = "CLOSE", t))(Z || {});
478
510
  function Tr(t) {
479
511
  try {
480
512
  const s = JSON.parse(t), e = {
@@ -565,14 +597,14 @@ function ur(t, s) {
565
597
  function lr(t, s) {
566
598
  return Ee(t, s) ? !0 : ve(t) && ve(s) ? cr(t, s) : Array.isArray(t) && Array.isArray(s) ? ur(t, s) : !1;
567
599
  }
568
- function Ve(t, s) {
600
+ function Me(t, s) {
569
601
  return Ee(t, s) ? !0 : ve(t) && ve(s) ? dr(t, s) : Array.isArray(t) && Array.isArray(s) ? fr(t, s) : !1;
570
602
  }
571
603
  function fr(t, s) {
572
604
  if (t.length !== s.length)
573
605
  return !1;
574
606
  for (let e = 0, n = t.length; e < n; e++)
575
- if (!Ve(t[e], s[e]))
607
+ if (!Me(t[e], s[e]))
576
608
  return !1;
577
609
  return !0;
578
610
  }
@@ -582,13 +614,13 @@ function dr(t, s) {
582
614
  return !1;
583
615
  for (let i = 0, a = e.length; i < a; i++) {
584
616
  const u = e[i];
585
- if (!Ve(t[u], s[u]))
617
+ if (!Me(t[u], s[u]))
586
618
  return !1;
587
619
  }
588
620
  return !0;
589
621
  }
590
622
  function st(t, s, e = { deep: !1 }) {
591
- return e.deep ? Ve(t, s) : lr(t, s);
623
+ return e.deep ? Me(t, s) : lr(t, s);
592
624
  }
593
625
  class hr extends ae {
594
626
  constructor(e) {
@@ -856,7 +888,7 @@ class _r extends ae {
856
888
  * @param event
857
889
  */
858
890
  o(this, "_handleCloseEvent", (e) => {
859
- A.info(
891
+ T.info(
860
892
  `live room closed bacause of ${e.code}-${e.reason || tr(e.code)}`
861
893
  ), this.state = x.CLOSED;
862
894
  });
@@ -865,21 +897,21 @@ class _r extends ae {
865
897
  */
866
898
  o(this, "_handleClosingEvent", () => {
867
899
  var e;
868
- A.info("live room is closing, onLine:", (e = globalThis == null ? void 0 : globalThis.navigator) == null ? void 0 : e.onLine), this.state = x.CLOSED;
900
+ T.info("live room is closing, onLine:", (e = globalThis == null ? void 0 : globalThis.navigator) == null ? void 0 : e.onLine), this.state = x.CLOSED;
869
901
  });
870
902
  /**
871
903
  * 连接中
872
904
  * @param event
873
905
  */
874
906
  o(this, "_handleConnectingEvent", () => {
875
- A.info("live room is connecting"), this.state = x.CONNECTING;
907
+ T.info("live room is connecting"), this.state = x.CONNECTING;
876
908
  });
877
909
  /**
878
910
  * 连接发送异常
879
911
  * @param event
880
912
  */
881
913
  o(this, "_handleErrorEvent", (e) => {
882
- A.error("live room error", e), this.state = x.CLOSED;
914
+ T.error("live room error", e), this.state = x.CLOSED;
883
915
  });
884
916
  /**
885
917
  * 接收到消息
@@ -900,14 +932,14 @@ class _r extends ae {
900
932
  * @param event
901
933
  */
902
934
  o(this, "_handleOpenEvent", (e) => {
903
- A.info("live room open", e.detail), this.state = x.OPEN, e.detail.reconnects > 0 && this.emit("reconnected", e.detail);
935
+ T.info("live room open", e.detail), this.state = x.OPEN, e.detail.reconnects > 0 && this.emit("reconnected", e.detail);
904
936
  });
905
937
  /**
906
938
  * 处理超时
907
939
  * @param event
908
940
  */
909
941
  o(this, "_handleTimeoutEvent", (e) => {
910
- A.error("live room connect timeout!", e.detail), this.state = x.CLOSED;
942
+ T.error("live room connect timeout!", e.detail), this.state = x.CLOSED;
911
943
  });
912
944
  /**
913
945
  * 释放资源,释放之后需要重新实例化
@@ -1001,7 +1033,7 @@ class vr extends ae {
1001
1033
  try {
1002
1034
  return this._controller.sendMessage(i), !0;
1003
1035
  } catch (a) {
1004
- return A.error(a), !1;
1036
+ return T.error(a), !1;
1005
1037
  }
1006
1038
  });
1007
1039
  /**
@@ -1033,7 +1065,7 @@ class vr extends ae {
1033
1065
  o(this, "_handleMessage", async (e) => {
1034
1066
  var n, i, a, u, f;
1035
1067
  if (typeof e == "object") {
1036
- const { command: _, data: g = {}, frontRequestId: v, code: p, message: w } = e;
1068
+ const { command: _, data: g = {}, frontRequestId: v, code: p, message: S } = e;
1037
1069
  if (p === "SUCCESS")
1038
1070
  switch (_) {
1039
1071
  case W.SelfUserInfo: {
@@ -1054,19 +1086,19 @@ class vr extends ae {
1054
1086
  break;
1055
1087
  }
1056
1088
  case W.RTCInfo: {
1057
- const { voice_id: m, type: N } = g;
1058
- if (this._buildInData.rtcInfo = { voiceId: m, type: N }, (n = this.$RTC) != null && n.joined)
1059
- A.warn("已加入语音房间,无需重复加入!");
1089
+ const { voice_id: m, type: A } = g;
1090
+ if (this._buildInData.rtcInfo = { voiceId: m, type: A }, (n = this.$RTC) != null && n.joined)
1091
+ T.warn("已加入语音房间,无需重复加入!");
1060
1092
  else if (await ((u = this.$RTC) == null ? void 0 : u.join({
1061
1093
  voiceId: m,
1062
1094
  userId: ((i = this.selfInfo) == null ? void 0 : i.id) || "",
1063
1095
  roomId: (a = this.roomInfo) == null ? void 0 : a.info.room_code,
1064
- type: N
1096
+ type: A
1065
1097
  }))) {
1066
1098
  const P = (f = this._options.initialMicroStatus) != null ? f : Z.OPEN;
1067
1099
  await this.toggleMicro(P === Z.OPEN);
1068
1100
  } else
1069
- A.error("加入语音房间失败");
1101
+ T.error("加入语音房间失败");
1070
1102
  break;
1071
1103
  }
1072
1104
  case W.UserList: {
@@ -1080,10 +1112,10 @@ class vr extends ae {
1080
1112
  break;
1081
1113
  }
1082
1114
  case W.KeyframeSync: {
1083
- const m = g, N = Object.keys(
1115
+ const m = g, A = Object.keys(
1084
1116
  m
1085
1117
  ).reduce(
1086
- (M, P) => {
1118
+ (w, P) => {
1087
1119
  if (st(
1088
1120
  m[P],
1089
1121
  this._buildInData.keyframes[P],
@@ -1091,27 +1123,27 @@ class vr extends ae {
1091
1123
  deep: !0
1092
1124
  }
1093
1125
  ))
1094
- return M;
1095
- const Y = [
1126
+ return w;
1127
+ const H = [
1096
1128
  m[P],
1097
1129
  this._buildInData.keyframes[P],
1098
1130
  v
1099
- ], K = P;
1131
+ ], J = P;
1100
1132
  return this.keyframes.emit(
1101
- K,
1102
- ...Y
1103
- ), this._buildInData.keyframes[P] = m[P], M[P] = m[P], M;
1133
+ J,
1134
+ ...H
1135
+ ), this._buildInData.keyframes[P] = m[P], w[P] = m[P], w;
1104
1136
  },
1105
1137
  {}
1106
1138
  );
1107
- this.emit("keyframes", N, v);
1139
+ this.emit("keyframes", A, v);
1108
1140
  break;
1109
1141
  }
1110
1142
  case W.BuiltinMsg: {
1111
1143
  const m = g;
1112
- this.emit("builtinEvent", m), m.event_type === q.UserChange && this.emit("userChange", m), m.event_type === q.RoomChange && this.emit("roomChange", m), m.event_type === q.UserChange && m.action === J.UserMicroStatus && await this.toggleMicro(
1144
+ this.emit("builtinEvent", m), m.event_type === q.UserChange && this.emit("userChange", m), m.event_type === q.RoomChange && this.emit("roomChange", m), m.event_type === q.UserChange && m.action === G.UserMicroStatus && await this.toggleMicro(
1113
1145
  m.data.status === Z.OPEN
1114
- ), m.event_type === q.RoomChange && m.action === J.RoomClose && await this.exit();
1146
+ ), m.event_type === q.RoomChange && m.action === G.RoomClose && await this.exit();
1115
1147
  break;
1116
1148
  }
1117
1149
  case W.UserKickOut: {
@@ -1171,7 +1203,7 @@ class vr extends ae {
1171
1203
  try {
1172
1204
  await ((e = this.$RTC) == null ? void 0 : e.quit());
1173
1205
  } catch (n) {
1174
- A.warn(n);
1206
+ T.warn(n);
1175
1207
  }
1176
1208
  return await this._controller.close();
1177
1209
  });
@@ -1186,7 +1218,7 @@ class vr extends ae {
1186
1218
  if ((n = (e = this.selfInfo) == null ? void 0 : e.permission) != null && n.close_live_room)
1187
1219
  return await this.updateStatus(
1188
1220
  q.RoomChange,
1189
- J.RoomClose,
1221
+ G.RoomClose,
1190
1222
  {}
1191
1223
  );
1192
1224
  });
@@ -1202,7 +1234,7 @@ class vr extends ae {
1202
1234
  */
1203
1235
  o(this, "setSelfInfo", async (e) => await this.updateStatus(
1204
1236
  q.UserChange,
1205
- J.UserInfo,
1237
+ G.UserInfo,
1206
1238
  e
1207
1239
  ));
1208
1240
  // 仅用于用户自己的麦克风控制
@@ -1213,7 +1245,7 @@ class vr extends ae {
1213
1245
  const n = await ((u = this.$RTC) == null ? void 0 : u.toggleMicro(e));
1214
1246
  return n && await this.updateStatus(
1215
1247
  q.UserChange,
1216
- J.UserMicroStatus,
1248
+ G.UserMicroStatus,
1217
1249
  {
1218
1250
  status: e ? Z.OPEN : Z.CLOSE
1219
1251
  },
@@ -1230,7 +1262,7 @@ class vr extends ae {
1230
1262
  var i, a;
1231
1263
  return typeof this._options.canForbidUserMicro == "function" && !this._options.canForbidUserMicro(n) || !((a = (i = this.selfInfo) == null ? void 0 : i.permission) != null && a.control_other_micro) ? !1 : await this.updateStatus(
1232
1264
  q.UserChange,
1233
- J.UserMicroStatus,
1265
+ G.UserMicroStatus,
1234
1266
  {
1235
1267
  status: e
1236
1268
  },
@@ -1247,7 +1279,7 @@ class vr extends ae {
1247
1279
  var i, a;
1248
1280
  return typeof this._options.canForbidUserSync == "function" && !this._options.canForbidUserSync(n) || !((a = (i = this.selfInfo) == null ? void 0 : i.permission) != null && a.control_other_sync) ? !1 : await this.updateStatus(
1249
1281
  q.UserChange,
1250
- J.UserPermission,
1282
+ G.UserPermission,
1251
1283
  { sync_frame: e },
1252
1284
  n
1253
1285
  );
@@ -1261,7 +1293,7 @@ class vr extends ae {
1261
1293
  var n, i;
1262
1294
  return typeof this._options.canForbidUserKick == "function" && !this._options.canForbidUserKick(e) || !((i = (n = this.selfInfo) == null ? void 0 : n.permission) != null && i.change_other_status) ? !1 : await this.updateStatus(
1263
1295
  q.UserChange,
1264
- J.UserStatus,
1296
+ G.UserStatus,
1265
1297
  {
1266
1298
  status: "KICK_OUT"
1267
1299
  },
@@ -1275,12 +1307,12 @@ class vr extends ae {
1275
1307
  if (e.jsBridge)
1276
1308
  return e.jsBridge;
1277
1309
  if (e.useBuiltInJsBridge)
1278
- return new Vt();
1310
+ return new Mt();
1279
1311
  })(), this._options.getVoiceSign = (n = e.getVoiceSign) != null ? n : gr, this._options.autoPlayConfirm = e.autoPlayConfirm, this._options.rtc = (() => {
1280
1312
  if (e.rtc)
1281
1313
  return e.rtc;
1282
1314
  if (e.rtcType)
1283
- switch (e.getVoiceSign || A.error(
1315
+ switch (e.getVoiceSign || T.error(
1284
1316
  "GetVoiceSign method must be passed when using built-in RTC instances"
1285
1317
  ), e.rtcType) {
1286
1318
  case Q.RealseeVRWebViewRTC: {
@@ -1289,7 +1321,7 @@ class vr extends ae {
1289
1321
  jsBridge: this._options.jsBridge,
1290
1322
  getVoiceSign: this._options.getVoiceSign
1291
1323
  });
1292
- A.error(
1324
+ T.error(
1293
1325
  "JsBridge instance must be passed when using built-in VRWebViewRTC instances"
1294
1326
  );
1295
1327
  return;
@@ -1300,19 +1332,19 @@ class vr extends ae {
1300
1332
  logLevel: e.__debug__ ? it.DEBUG : it.INFO
1301
1333
  });
1302
1334
  case Q.RealseeBrowserRTC:
1303
- return this._options.autoPlayConfirm || A.error(
1335
+ return this._options.autoPlayConfirm || T.error(
1304
1336
  "autoPlayConfirm method must be passed when using built-in RealseeBrowserRTC instances"
1305
1337
  ), new tt({
1306
1338
  getVoiceSign: this._options.getVoiceSign,
1307
1339
  autoPlayConfirm: this._options.autoPlayConfirm
1308
1340
  });
1309
1341
  default: {
1310
- A.error("unknown built-in RTC type");
1342
+ T.error("unknown built-in RTC type");
1311
1343
  return;
1312
1344
  }
1313
1345
  }
1314
1346
  if (e.useBuiltInRTC) {
1315
- if (e.getVoiceSign || A.error(
1347
+ if (e.getVoiceSign || T.error(
1316
1348
  "GetVoiceSign method must be passed when using built-in RTC instances"
1317
1349
  ), this._options.jsBridge)
1318
1350
  return ar && (ir || sr) || or ? new nt({
@@ -1324,12 +1356,12 @@ class vr extends ae {
1324
1356
  getVoiceSign: this._options.getVoiceSign,
1325
1357
  autoPlayConfirm: this._options.autoPlayConfirm
1326
1358
  });
1327
- A.error(
1359
+ T.error(
1328
1360
  "jsBridge instance must be passed when using built-in RTC instances"
1329
1361
  );
1330
1362
  return;
1331
1363
  }
1332
- })(), this._options.rtc || A.warn("unused rtc"), this._options.url && this._options.getTicket && this.connect(), this._options.__debug__ && Object.assign(window, { $liveController: this._controller, $live: this });
1364
+ })(), this._options.rtc || T.warn("unused rtc"), this._options.url && this._options.getTicket && this.connect(), this._options.__debug__ && Object.assign(window, { $liveController: this._controller, $live: this });
1333
1365
  }
1334
1366
  get options() {
1335
1367
  return Object.freeze(this._options || {});
@@ -1408,7 +1440,7 @@ class vr extends ae {
1408
1440
  try {
1409
1441
  return this._controller.sendMessage(f), !0;
1410
1442
  } catch (_) {
1411
- return A.error(_), !1;
1443
+ return T.error(_), !1;
1412
1444
  }
1413
1445
  }
1414
1446
  /**
@@ -1426,8 +1458,8 @@ class vr extends ae {
1426
1458
  n
1427
1459
  ), _ = f.front_request_id, g = i ? setTimeout(() => {
1428
1460
  u(new Error("RESPONSE TIMEOUT")), this.off("broadcast", v);
1429
- }, i) : void 0, v = (p, w) => {
1430
- w === _ && (g && clearTimeout(g), this.off("broadcast", v), a(p));
1461
+ }, i) : void 0, v = (p, S) => {
1462
+ S === _ && (g && clearTimeout(g), this.off("broadcast", v), a(p));
1431
1463
  };
1432
1464
  this.on("broadcast", v);
1433
1465
  try {
@@ -1492,8 +1524,8 @@ function dt() {
1492
1524
  s.call(f, p) && (_[p] = f[p]);
1493
1525
  if (t) {
1494
1526
  g = t(f);
1495
- for (var w = 0; w < g.length; w++)
1496
- e.call(f, g[w]) && (_[g[w]] = f[g[w]]);
1527
+ for (var S = 0; S < g.length; S++)
1528
+ e.call(f, g[S]) && (_[g[S]] = f[g[S]]);
1497
1529
  }
1498
1530
  }
1499
1531
  return _;
@@ -1519,14 +1551,14 @@ function br() {
1519
1551
  }
1520
1552
  var n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = Object.prototype.hasOwnProperty, a = { key: !0, ref: !0, __self: !0, __source: !0 };
1521
1553
  function u(f, _, g) {
1522
- var v, p = {}, w = null, m = null;
1523
- g !== void 0 && (w = "" + g), _.key !== void 0 && (w = "" + _.key), _.ref !== void 0 && (m = _.ref);
1554
+ var v, p = {}, S = null, m = null;
1555
+ g !== void 0 && (S = "" + g), _.key !== void 0 && (S = "" + _.key), _.ref !== void 0 && (m = _.ref);
1524
1556
  for (v in _)
1525
1557
  i.call(_, v) && !a.hasOwnProperty(v) && (p[v] = _[v]);
1526
1558
  if (f && f.defaultProps)
1527
1559
  for (v in _ = f.defaultProps, _)
1528
1560
  p[v] === void 0 && (p[v] = _[v]);
1529
- return { $$typeof: s, type: f, key: w, ref: m, props: p, _owner: n.current };
1561
+ return { $$typeof: s, type: f, key: S, ref: m, props: p, _owner: n.current };
1530
1562
  }
1531
1563
  return ie.jsx = u, ie.jsxs = u, ie;
1532
1564
  }
@@ -1545,16 +1577,16 @@ function yr() {
1545
1577
  process.env.NODE_ENV !== "production" && function() {
1546
1578
  var s = V, e = dt(), n = 60103, i = 60106;
1547
1579
  t.Fragment = 60107;
1548
- var a = 60108, u = 60114, f = 60109, _ = 60110, g = 60112, v = 60113, p = 60120, w = 60115, m = 60116, N = 60121, M = 60122, P = 60117, Y = 60129, K = 60131;
1580
+ var a = 60108, u = 60114, f = 60109, _ = 60110, g = 60112, v = 60113, p = 60120, S = 60115, m = 60116, A = 60121, w = 60122, P = 60117, H = 60129, J = 60131;
1549
1581
  if (typeof Symbol == "function" && Symbol.for) {
1550
- var I = Symbol.for;
1551
- n = I("react.element"), i = I("react.portal"), t.Fragment = I("react.fragment"), a = I("react.strict_mode"), u = I("react.profiler"), f = I("react.provider"), _ = I("react.context"), g = I("react.forward_ref"), v = I("react.suspense"), p = I("react.suspense_list"), w = I("react.memo"), m = I("react.lazy"), N = I("react.block"), M = I("react.server.block"), P = I("react.fundamental"), I("react.scope"), I("react.opaque.id"), Y = I("react.debug_trace_mode"), I("react.offscreen"), K = I("react.legacy_hidden");
1582
+ var k = Symbol.for;
1583
+ n = k("react.element"), i = k("react.portal"), t.Fragment = k("react.fragment"), a = k("react.strict_mode"), u = k("react.profiler"), f = k("react.provider"), _ = k("react.context"), g = k("react.forward_ref"), v = k("react.suspense"), p = k("react.suspense_list"), S = k("react.memo"), m = k("react.lazy"), A = k("react.block"), w = k("react.server.block"), P = k("react.fundamental"), k("react.scope"), k("react.opaque.id"), H = k("react.debug_trace_mode"), k("react.offscreen"), J = k("react.legacy_hidden");
1552
1584
  }
1553
- var d = typeof Symbol == "function" && Symbol.iterator, S = "@@iterator";
1554
- function L(r) {
1585
+ var d = typeof Symbol == "function" && Symbol.iterator, O = "@@iterator";
1586
+ function D(r) {
1555
1587
  if (r === null || typeof r != "object")
1556
1588
  return null;
1557
- var c = d && r[d] || r[S];
1589
+ var c = d && r[d] || r[O];
1558
1590
  return typeof c == "function" ? c : null;
1559
1591
  }
1560
1592
  var b = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -1562,22 +1594,22 @@ function yr() {
1562
1594
  {
1563
1595
  for (var c = arguments.length, l = new Array(c > 1 ? c - 1 : 0), h = 1; h < c; h++)
1564
1596
  l[h - 1] = arguments[h];
1565
- D("error", r, l);
1597
+ M("error", r, l);
1566
1598
  }
1567
1599
  }
1568
- function D(r, c, l) {
1600
+ function M(r, c, l) {
1569
1601
  {
1570
- var h = b.ReactDebugCurrentFrame, O = h.getStackAddendum();
1571
- O !== "" && (c += "%s", l = l.concat([O]));
1572
- var R = l.map(function(C) {
1602
+ var h = b.ReactDebugCurrentFrame, R = h.getStackAddendum();
1603
+ R !== "" && (c += "%s", l = l.concat([R]));
1604
+ var I = l.map(function(C) {
1573
1605
  return "" + C;
1574
1606
  });
1575
- R.unshift("Warning: " + c), Function.prototype.apply.call(console[r], console, R);
1607
+ I.unshift("Warning: " + c), Function.prototype.apply.call(console[r], console, I);
1576
1608
  }
1577
1609
  }
1578
1610
  var U = !1;
1579
1611
  function z(r) {
1580
- return !!(typeof r == "string" || typeof r == "function" || r === t.Fragment || r === u || r === Y || r === a || r === v || r === p || r === K || U || typeof r == "object" && r !== null && (r.$$typeof === m || r.$$typeof === w || r.$$typeof === f || r.$$typeof === _ || r.$$typeof === g || r.$$typeof === P || r.$$typeof === N || r[0] === M));
1612
+ return !!(typeof r == "string" || typeof r == "function" || r === t.Fragment || r === u || r === H || r === a || r === v || r === p || r === J || U || typeof r == "object" && r !== null && (r.$$typeof === m || r.$$typeof === S || r.$$typeof === f || r.$$typeof === _ || r.$$typeof === g || r.$$typeof === P || r.$$typeof === A || r[0] === w));
1581
1613
  }
1582
1614
  function ue(r, c, l) {
1583
1615
  var h = c.displayName || c.name || "";
@@ -1617,14 +1649,14 @@ function yr() {
1617
1649
  return be(l._context) + ".Provider";
1618
1650
  case g:
1619
1651
  return ue(r, r.render, "ForwardRef");
1620
- case w:
1652
+ case S:
1621
1653
  return F(r.type);
1622
- case N:
1654
+ case A:
1623
1655
  return F(r._render);
1624
1656
  case m: {
1625
- var h = r, O = h._payload, R = h._init;
1657
+ var h = r, R = h._payload, I = h._init;
1626
1658
  try {
1627
- return F(R(O));
1659
+ return F(I(R));
1628
1660
  } catch (C) {
1629
1661
  return null;
1630
1662
  }
@@ -1632,14 +1664,14 @@ function yr() {
1632
1664
  }
1633
1665
  return null;
1634
1666
  }
1635
- var ee = 0, T, B, te, le, Me, $e, xe;
1667
+ var ee = 0, j, B, te, le, Ve, $e, xe;
1636
1668
  function Ue() {
1637
1669
  }
1638
1670
  Ue.__reactDisabledLog = !0;
1639
1671
  function ht() {
1640
1672
  {
1641
1673
  if (ee === 0) {
1642
- T = console.log, B = console.info, te = console.warn, le = console.error, Me = console.group, $e = console.groupCollapsed, xe = console.groupEnd;
1674
+ j = console.log, B = console.info, te = console.warn, le = console.error, Ve = console.group, $e = console.groupCollapsed, xe = console.groupEnd;
1643
1675
  var r = {
1644
1676
  configurable: !0,
1645
1677
  enumerable: !0,
@@ -1669,7 +1701,7 @@ function yr() {
1669
1701
  };
1670
1702
  Object.defineProperties(console, {
1671
1703
  log: e({}, r, {
1672
- value: T
1704
+ value: j
1673
1705
  }),
1674
1706
  info: e({}, r, {
1675
1707
  value: B
@@ -1681,7 +1713,7 @@ function yr() {
1681
1713
  value: le
1682
1714
  }),
1683
1715
  group: e({}, r, {
1684
- value: Me
1716
+ value: Ve
1685
1717
  }),
1686
1718
  groupCollapsed: e({}, r, {
1687
1719
  value: $e
@@ -1700,21 +1732,21 @@ function yr() {
1700
1732
  if (Ce === void 0)
1701
1733
  try {
1702
1734
  throw Error();
1703
- } catch (O) {
1704
- var h = O.stack.trim().match(/\n( *(at )?)/);
1735
+ } catch (R) {
1736
+ var h = R.stack.trim().match(/\n( *(at )?)/);
1705
1737
  Ce = h && h[1] || "";
1706
1738
  }
1707
1739
  return `
1708
1740
  ` + Ce + r;
1709
1741
  }
1710
1742
  }
1711
- var we = !1, de;
1743
+ var Se = !1, de;
1712
1744
  {
1713
1745
  var gt = typeof WeakMap == "function" ? WeakMap : Map;
1714
1746
  de = new gt();
1715
1747
  }
1716
1748
  function Be(r, c) {
1717
- if (!r || we)
1749
+ if (!r || Se)
1718
1750
  return "";
1719
1751
  {
1720
1752
  var l = de.get(r);
@@ -1722,11 +1754,11 @@ function yr() {
1722
1754
  return l;
1723
1755
  }
1724
1756
  var h;
1725
- we = !0;
1726
- var O = Error.prepareStackTrace;
1757
+ Se = !0;
1758
+ var R = Error.prepareStackTrace;
1727
1759
  Error.prepareStackTrace = void 0;
1728
- var R;
1729
- R = ye.current, ye.current = null, ht();
1760
+ var I;
1761
+ I = ye.current, ye.current = null, ht();
1730
1762
  try {
1731
1763
  if (c) {
1732
1764
  var C = function() {
@@ -1739,47 +1771,47 @@ function yr() {
1739
1771
  }), typeof Reflect == "object" && Reflect.construct) {
1740
1772
  try {
1741
1773
  Reflect.construct(C, []);
1742
- } catch (H) {
1743
- h = H;
1774
+ } catch (Y) {
1775
+ h = Y;
1744
1776
  }
1745
1777
  Reflect.construct(r, [], C);
1746
1778
  } else {
1747
1779
  try {
1748
1780
  C.call();
1749
- } catch (H) {
1750
- h = H;
1781
+ } catch (Y) {
1782
+ h = Y;
1751
1783
  }
1752
1784
  r.call(C.prototype);
1753
1785
  }
1754
1786
  } else {
1755
1787
  try {
1756
1788
  throw Error();
1757
- } catch (H) {
1758
- h = H;
1789
+ } catch (Y) {
1790
+ h = Y;
1759
1791
  }
1760
1792
  r();
1761
1793
  }
1762
- } catch (H) {
1763
- if (H && h && typeof H.stack == "string") {
1764
- for (var E = H.stack.split(`
1794
+ } catch (Y) {
1795
+ if (Y && h && typeof Y.stack == "string") {
1796
+ for (var E = Y.stack.split(`
1765
1797
  `), $ = h.stack.split(`
1766
- `), k = E.length - 1, j = $.length - 1; k >= 1 && j >= 0 && E[k] !== $[j]; )
1767
- j--;
1768
- for (; k >= 1 && j >= 0; k--, j--)
1769
- if (E[k] !== $[j]) {
1770
- if (k !== 1 || j !== 1)
1798
+ `), N = E.length - 1, L = $.length - 1; N >= 1 && L >= 0 && E[N] !== $[L]; )
1799
+ L--;
1800
+ for (; N >= 1 && L >= 0; N--, L--)
1801
+ if (E[N] !== $[L]) {
1802
+ if (N !== 1 || L !== 1)
1771
1803
  do
1772
- if (k--, j--, j < 0 || E[k] !== $[j]) {
1773
- var G = `
1774
- ` + E[k].replace(" at new ", " at ");
1775
- return typeof r == "function" && de.set(r, G), G;
1804
+ if (N--, L--, L < 0 || E[N] !== $[L]) {
1805
+ var K = `
1806
+ ` + E[N].replace(" at new ", " at ");
1807
+ return typeof r == "function" && de.set(r, K), K;
1776
1808
  }
1777
- while (k >= 1 && j >= 0);
1809
+ while (N >= 1 && L >= 0);
1778
1810
  break;
1779
1811
  }
1780
1812
  }
1781
1813
  } finally {
1782
- we = !1, ye.current = R, _t(), Error.prepareStackTrace = O;
1814
+ Se = !1, ye.current = I, _t(), Error.prepareStackTrace = R;
1783
1815
  }
1784
1816
  var ne = r ? r.displayName || r.name : "", Qe = ne ? fe(ne) : "";
1785
1817
  return typeof r == "function" && de.set(r, Qe), Qe;
@@ -1808,14 +1840,14 @@ function yr() {
1808
1840
  switch (r.$$typeof) {
1809
1841
  case g:
1810
1842
  return We(r.render);
1811
- case w:
1843
+ case S:
1812
1844
  return he(r.type, c, l);
1813
- case N:
1845
+ case A:
1814
1846
  return We(r._render);
1815
1847
  case m: {
1816
- var h = r, O = h._payload, R = h._init;
1848
+ var h = r, R = h._payload, I = h._init;
1817
1849
  try {
1818
- return he(R(O), c, l);
1850
+ return he(I(R), c, l);
1819
1851
  } catch (C) {
1820
1852
  }
1821
1853
  }
@@ -1830,11 +1862,11 @@ function yr() {
1830
1862
  } else
1831
1863
  qe.setExtraStackFrame(null);
1832
1864
  }
1833
- function vt(r, c, l, h, O) {
1865
+ function vt(r, c, l, h, R) {
1834
1866
  {
1835
- var R = Function.call.bind(Object.prototype.hasOwnProperty);
1867
+ var I = Function.call.bind(Object.prototype.hasOwnProperty);
1836
1868
  for (var C in r)
1837
- if (R(r, C)) {
1869
+ if (I(r, C)) {
1838
1870
  var E = void 0;
1839
1871
  try {
1840
1872
  if (typeof r[C] != "function") {
@@ -1842,14 +1874,14 @@ function yr() {
1842
1874
  throw $.name = "Invariant Violation", $;
1843
1875
  }
1844
1876
  E = r[C](c, C, h, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1845
- } catch (k) {
1846
- E = k;
1877
+ } catch (N) {
1878
+ E = N;
1847
1879
  }
1848
- E && !(E instanceof Error) && (_e(O), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", h || "React class", l, C, typeof E), _e(null)), E instanceof Error && !(E.message in Fe) && (Fe[E.message] = !0, _e(O), y("Failed %s type: %s", l, E.message), _e(null));
1880
+ E && !(E instanceof Error) && (_e(R), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", h || "React class", l, C, typeof E), _e(null)), E instanceof Error && !(E.message in Fe) && (Fe[E.message] = !0, _e(R), y("Failed %s type: %s", l, E.message), _e(null));
1849
1881
  }
1850
1882
  }
1851
1883
  }
1852
- var se = b.ReactCurrentOwner, Se = Object.prototype.hasOwnProperty, pt = {
1884
+ var se = b.ReactCurrentOwner, we = Object.prototype.hasOwnProperty, pt = {
1853
1885
  key: !0,
1854
1886
  ref: !0,
1855
1887
  __self: !0,
@@ -1857,7 +1889,7 @@ function yr() {
1857
1889
  }, Ke, Ye, Oe;
1858
1890
  Oe = {};
1859
1891
  function Et(r) {
1860
- if (Se.call(r, "ref")) {
1892
+ if (we.call(r, "ref")) {
1861
1893
  var c = Object.getOwnPropertyDescriptor(r, "ref").get;
1862
1894
  if (c && c.isReactWarning)
1863
1895
  return !1;
@@ -1865,7 +1897,7 @@ function yr() {
1865
1897
  return r.ref !== void 0;
1866
1898
  }
1867
1899
  function bt(r) {
1868
- if (Se.call(r, "key")) {
1900
+ if (we.call(r, "key")) {
1869
1901
  var c = Object.getOwnPropertyDescriptor(r, "key").get;
1870
1902
  if (c && c.isReactWarning)
1871
1903
  return !1;
@@ -1889,7 +1921,7 @@ function yr() {
1889
1921
  });
1890
1922
  }
1891
1923
  }
1892
- function wt(r, c) {
1924
+ function St(r, c) {
1893
1925
  {
1894
1926
  var l = function() {
1895
1927
  Ye || (Ye = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
@@ -1900,7 +1932,7 @@ function yr() {
1900
1932
  });
1901
1933
  }
1902
1934
  }
1903
- var St = function(r, c, l, h, O, R, C) {
1935
+ var wt = function(r, c, l, h, R, I, C) {
1904
1936
  var E = {
1905
1937
  // This tag allows us to uniquely identify this as a React Element
1906
1938
  $$typeof: n,
@@ -1910,7 +1942,7 @@ function yr() {
1910
1942
  ref: l,
1911
1943
  props: C,
1912
1944
  // Record the component responsible for creating this element.
1913
- _owner: R
1945
+ _owner: I
1914
1946
  };
1915
1947
  return E._store = {}, Object.defineProperty(E._store, "validated", {
1916
1948
  configurable: !1,
@@ -1926,25 +1958,25 @@ function yr() {
1926
1958
  configurable: !1,
1927
1959
  enumerable: !1,
1928
1960
  writable: !1,
1929
- value: O
1961
+ value: R
1930
1962
  }), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
1931
1963
  };
1932
- function Ot(r, c, l, h, O) {
1964
+ function Ot(r, c, l, h, R) {
1933
1965
  {
1934
- var R, C = {}, E = null, $ = null;
1935
- l !== void 0 && (E = "" + l), bt(c) && (E = "" + c.key), Et(c) && ($ = c.ref, yt(c, O));
1936
- for (R in c)
1937
- Se.call(c, R) && !pt.hasOwnProperty(R) && (C[R] = c[R]);
1966
+ var I, C = {}, E = null, $ = null;
1967
+ l !== void 0 && (E = "" + l), bt(c) && (E = "" + c.key), Et(c) && ($ = c.ref, yt(c, R));
1968
+ for (I in c)
1969
+ we.call(c, I) && !pt.hasOwnProperty(I) && (C[I] = c[I]);
1938
1970
  if (r && r.defaultProps) {
1939
- var k = r.defaultProps;
1940
- for (R in k)
1941
- C[R] === void 0 && (C[R] = k[R]);
1971
+ var N = r.defaultProps;
1972
+ for (I in N)
1973
+ C[I] === void 0 && (C[I] = N[I]);
1942
1974
  }
1943
1975
  if (E || $) {
1944
- var j = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
1945
- E && Ct(C, j), $ && wt(C, j);
1976
+ var L = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
1977
+ E && Ct(C, L), $ && St(C, L);
1946
1978
  }
1947
- return St(r, E, $, O, h, se.current, C);
1979
+ return wt(r, E, $, R, h, se.current, C);
1948
1980
  }
1949
1981
  }
1950
1982
  var Re = b.ReactCurrentOwner, Ge = b.ReactDebugCurrentFrame;
@@ -2021,9 +2053,9 @@ Check the top-level render call using <` + l + ">.");
2021
2053
  else if (Te(r))
2022
2054
  r._store && (r._store.validated = !0);
2023
2055
  else if (r) {
2024
- var O = L(r);
2025
- if (typeof O == "function" && O !== r.entries)
2026
- for (var R = O.call(r), C; !(C = R.next()).done; )
2056
+ var R = D(r);
2057
+ if (typeof R == "function" && R !== r.entries)
2058
+ for (var I = R.call(r), C; !(C = I.next()).done; )
2027
2059
  Te(C.value) && ze(C.value, c);
2028
2060
  }
2029
2061
  }
@@ -2038,7 +2070,7 @@ Check the top-level render call using <` + l + ">.");
2038
2070
  l = c.propTypes;
2039
2071
  else if (typeof c == "object" && (c.$$typeof === g || // Note: Memo only checks outer props here.
2040
2072
  // Inner props are checked in the reconciler.
2041
- c.$$typeof === w))
2073
+ c.$$typeof === S))
2042
2074
  l = c.propTypes;
2043
2075
  else
2044
2076
  return;
@@ -2047,8 +2079,8 @@ Check the top-level render call using <` + l + ">.");
2047
2079
  vt(l, r.props, "prop", h, r);
2048
2080
  } else if (c.PropTypes !== void 0 && !Ie) {
2049
2081
  Ie = !0;
2050
- var O = F(c);
2051
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
2082
+ var R = F(c);
2083
+ y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
2052
2084
  }
2053
2085
  typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2054
2086
  }
@@ -2065,34 +2097,34 @@ Check the top-level render call using <` + l + ">.");
2065
2097
  r.ref !== null && (re(r), y("Invalid attribute `ref` supplied to `React.Fragment`."), re(null));
2066
2098
  }
2067
2099
  }
2068
- function Ze(r, c, l, h, O, R) {
2100
+ function Ze(r, c, l, h, R, I) {
2069
2101
  {
2070
2102
  var C = z(r);
2071
2103
  if (!C) {
2072
2104
  var E = "";
2073
2105
  (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2074
- var $ = Rt(O);
2106
+ var $ = Rt(R);
2075
2107
  $ ? E += $ : E += He();
2076
- var k;
2077
- r === null ? k = "null" : Array.isArray(r) ? k = "array" : r !== void 0 && r.$$typeof === n ? (k = "<" + (F(r.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : k = typeof r, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, E);
2108
+ var N;
2109
+ r === null ? N = "null" : Array.isArray(r) ? N = "array" : r !== void 0 && r.$$typeof === n ? (N = "<" + (F(r.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : N = typeof r, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, E);
2078
2110
  }
2079
- var j = Ot(r, c, l, O, R);
2080
- if (j == null)
2081
- return j;
2111
+ var L = Ot(r, c, l, R, I);
2112
+ if (L == null)
2113
+ return L;
2082
2114
  if (C) {
2083
- var G = c.children;
2084
- if (G !== void 0)
2115
+ var K = c.children;
2116
+ if (K !== void 0)
2085
2117
  if (h)
2086
- if (Array.isArray(G)) {
2087
- for (var ne = 0; ne < G.length; ne++)
2088
- Xe(G[ne], r);
2089
- Object.freeze && Object.freeze(G);
2118
+ if (Array.isArray(K)) {
2119
+ for (var ne = 0; ne < K.length; ne++)
2120
+ Xe(K[ne], r);
2121
+ Object.freeze && Object.freeze(K);
2090
2122
  } else
2091
2123
  y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
2092
2124
  else
2093
- Xe(G, r);
2125
+ Xe(K, r);
2094
2126
  }
2095
- return r === t.Fragment ? kt(j) : Tt(j), j;
2127
+ return r === t.Fragment ? kt(L) : Tt(L), L;
2096
2128
  }
2097
2129
  }
2098
2130
  function Pt(r, c, l) {
@@ -2117,50 +2149,50 @@ function kr(t) {
2117
2149
  throw new Error("LiveProvider never found.");
2118
2150
  return d;
2119
2151
  }, u = () => e, f = () => e.$RTC, _ = () => f(), g = () => async (d) => await e.connect(d);
2120
- function v(d, S, L = []) {
2121
- const b = a(), y = [b, name, ...L], D = () => b.keyframes.off(d, S);
2122
- return V.useEffect(() => (b.keyframes.on(d, S), D), y), D;
2152
+ function v(d, O, D = []) {
2153
+ const b = a(), y = [b, name, ...D], M = () => b.keyframes.off(d, O);
2154
+ return V.useEffect(() => (b.keyframes.on(d, O), M), y), M;
2123
2155
  }
2124
2156
  function p() {
2125
2157
  const d = a();
2126
2158
  return {
2127
- connect: async (T) => await d.connect(T),
2128
- broadcast: async (T, B, te = 0) => await d.broadcast(T, B, te),
2159
+ connect: async (j) => await d.connect(j),
2160
+ broadcast: async (j, B, te = 0) => await d.broadcast(j, B, te),
2129
2161
  exit: async () => await d.exit(),
2130
- kick: async (T) => await d.kick(T),
2131
- toggleMicro: (T) => d.toggleMicro(T),
2132
- forbidMicro: async (T, B = []) => await d.forbidMicro(T, B),
2133
- forbidSync: (T, B = []) => d.forbidSync(T, B),
2134
- sendKeyframe: (T, B) => d.sendKeyframe(T, B),
2135
- getFramesByKey: (T) => d.getFramesByKey(T),
2136
- setSelfInfo: (T) => d.setSelfInfo(T),
2137
- updateStatus: (T, B, te, le) => d.updateStatus(T, B, te, le)
2162
+ kick: async (j) => await d.kick(j),
2163
+ toggleMicro: (j) => d.toggleMicro(j),
2164
+ forbidMicro: async (j, B = []) => await d.forbidMicro(j, B),
2165
+ forbidSync: (j, B = []) => d.forbidSync(j, B),
2166
+ sendKeyframe: (j, B) => d.sendKeyframe(j, B),
2167
+ getFramesByKey: (j) => d.getFramesByKey(j),
2168
+ setSelfInfo: (j) => d.setSelfInfo(j),
2169
+ updateStatus: (j, B, te, le) => d.updateStatus(j, B, te, le)
2138
2170
  };
2139
2171
  }
2140
- function w(d) {
2141
- const S = a(), [L, b] = V.useState(S.getFramesByKey(d));
2172
+ function S(d) {
2173
+ const O = a(), [D, b] = V.useState(O.getFramesByKey(d));
2142
2174
  V.useEffect(() => {
2143
- const D = (ue) => b(ue), U = d, z = D;
2144
- return S.keyframes.on(U, z), () => S.keyframes.off(U, z);
2145
- }, [S]);
2175
+ const M = (ue) => b(ue), U = d, z = M;
2176
+ return O.keyframes.on(U, z), () => O.keyframes.off(U, z);
2177
+ }, [O]);
2146
2178
  const y = V.useCallback(
2147
- (D) => S.sendKeyframe(d, D),
2148
- [S]
2179
+ (M) => O.sendKeyframe(d, M),
2180
+ [O]
2149
2181
  );
2150
- return [L, y];
2182
+ return [D, y];
2151
2183
  }
2152
- function m(d, S, L = []) {
2153
- const b = a(), y = () => b.off(d, S), D = [b, d, ...L];
2154
- return V.useEffect(() => (b.on(d, S), y), D), y;
2184
+ function m(d, O, D = []) {
2185
+ const b = a(), y = () => b.off(d, O), M = [b, d, ...D];
2186
+ return V.useEffect(() => (b.on(d, O), y), M), y;
2155
2187
  }
2156
- function N() {
2157
- const d = a(), [S, L] = V.useState(d.state);
2188
+ function A() {
2189
+ const d = a(), [O, D] = V.useState(d.state);
2158
2190
  return V.useEffect(() => {
2159
- const b = (y) => L(y);
2191
+ const b = (y) => D(y);
2160
2192
  return d.on("stateChange", b), () => d.off("stateChange", b);
2161
- }, [d]), S;
2193
+ }, [d]), O;
2162
2194
  }
2163
- function M() {
2195
+ function w() {
2164
2196
  const d = a();
2165
2197
  return {
2166
2198
  join: (U) => d.$RTC.join(U),
@@ -2173,33 +2205,33 @@ function kr(t) {
2173
2205
  detectMicro: () => d.$RTC.detectMicro()
2174
2206
  };
2175
2207
  }
2176
- function P(d, S, L = []) {
2177
- const b = a(), y = () => b.$RTC.off(d, S), D = [b, d, ...L];
2178
- return V.useEffect(() => (b.$RTC.on(d, S), y), D), y;
2208
+ function P(d, O, D = []) {
2209
+ const b = a(), y = () => b.$RTC.off(d, O), M = [b, d, ...D];
2210
+ return V.useEffect(() => (b.$RTC.on(d, O), y), M), y;
2179
2211
  }
2180
- function Y() {
2181
- const d = a(), [S, L] = V.useState(
2212
+ function H() {
2213
+ const d = a(), [O, D] = V.useState(
2182
2214
  d.selfInfo || {}
2183
- ), b = (D) => L(D);
2215
+ ), b = (M) => D(M);
2184
2216
  V.useEffect(() => (d.on("selfInfoUpdate", b), () => d.off("selfInfoUpdate", b)), [d]);
2185
2217
  const y = V.useCallback(
2186
- async (D) => await d.setSelfInfo(D),
2218
+ async (M) => await d.setSelfInfo(M),
2187
2219
  [d]
2188
2220
  );
2189
- return [S, y];
2221
+ return [O, y];
2190
2222
  }
2191
- function K() {
2192
- const d = a(), [S, L] = V.useState(
2223
+ function J() {
2224
+ const d = a(), [O, D] = V.useState(
2193
2225
  d.snapshot
2194
2226
  );
2195
2227
  return V.useEffect(() => {
2196
- const b = (y) => L(y);
2228
+ const b = (y) => D(y);
2197
2229
  return d.on("keyframes", b), () => d.off("keyframes", b);
2198
- }), S;
2230
+ }), O;
2199
2231
  }
2200
- function I() {
2201
- const d = a(), [S, L] = V.useState(d.userList), b = (y) => L(y);
2202
- return V.useEffect(() => (d.on("userListUpdate", b), () => d.off("userListUpdate", b)), [d]), S;
2232
+ function k() {
2233
+ const d = a(), [O, D] = V.useState(d.userList), b = (y) => D(y);
2234
+ return V.useEffect(() => (d.on("userListUpdate", b), () => d.off("userListUpdate", b)), [d]), O;
2203
2235
  }
2204
2236
  return {
2205
2237
  live: e,
@@ -2208,23 +2240,23 @@ function kr(t) {
2208
2240
  unsafe__useLiveInstance: u,
2209
2241
  unsafe__useRTCInstance: _,
2210
2242
  useConnect: g,
2211
- useKeyframe: w,
2243
+ useKeyframe: S,
2212
2244
  useKeyframeUpdateCallback: v,
2213
2245
  useLiveAction: p,
2214
2246
  useLiveEventCallback: m,
2215
- useLiveState: N,
2216
- useRTCAction: M,
2247
+ useLiveState: A,
2248
+ useRTCAction: w,
2217
2249
  useRTCEventCallback: P,
2218
- useSelfInfo: Y,
2219
- useKeyframesSnapshot: K,
2220
- useUserList: I
2250
+ useSelfInfo: H,
2251
+ useKeyframesSnapshot: J,
2252
+ useUserList: k
2221
2253
  };
2222
2254
  }
2223
2255
  export {
2224
2256
  tt as BrowserRTC,
2225
2257
  rt as BrowserRTC4Chime,
2226
2258
  ut as BuiltInRTCType,
2227
- J as BuiltinActionType,
2259
+ G as BuiltinActionType,
2228
2260
  q as BuiltinEventType,
2229
2261
  W as Command,
2230
2262
  De as CoreRTC,