bl-trtc-callkit-vue 1.0.1 → 1.0.2

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.
@@ -1207,7 +1207,7 @@ function LG() {
1207
1207
  St({ target: "String", proto: !0, forced: x6 }, { padStart: function(e) {
1208
1208
  return U6(this, e, arguments.length > 1 ? arguments[1] : void 0);
1209
1209
  } });
1210
- var EI = A, yI = Ji, V6 = Cd, TI = S, SI = Mt, Bz = SI("species"), II = RegExp.prototype, Hf = X, F6 = Ln, B6 = Bi, H6 = se, W6 = Hf("".charAt), RI = Hf("".charCodeAt), G6 = Hf("".slice), AI = function(e) {
1210
+ var EI = A, yI = Ji, V6 = Cd, TI = S, SI = Mt, Hz = SI("species"), II = RegExp.prototype, Hf = X, F6 = Ln, B6 = Bi, H6 = se, W6 = Hf("".charAt), RI = Hf("".charCodeAt), G6 = Hf("".slice), AI = function(e) {
1211
1211
  return function(t, i) {
1212
1212
  var r, n, s = B6(H6(t)), o = F6(i), l = s.length;
1213
1213
  return o < 0 || o >= l ? e ? "" : void 0 : (r = RI(s, o)) < 55296 || r > 56319 || o + 1 === l || (n = RI(s, o + 1)) < 56320 || n > 57343 ? e ? W6(s, o) : r : e ? G6(s, o, o + 2) : n - 56320 + (r - 55296 << 10) + 65536;
@@ -3846,9 +3846,9 @@ a=extmap-allow-mixed`) !== -1) {
3846
3846
  let t = String(e.getMilliseconds());
3847
3847
  return "padStart" in String.prototype && (t = t.toString().padStart(3, "0")), "".concat(e.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1"), ":").concat(t);
3848
3848
  }, Mr = {};
3849
- ln(Mr, { REPORT_TYPE: () => Bg, buildSSOPackage: () => So, bytes2ms: () => T1, calculateScaleResolutionDownNumber: () => fh, concatArrayBuffers: () => Hg, convertObjectNumberToInt: () => mh, copyProperties: () => y1, deepClone: () => To, deepCloneBasic: () => _h, deepMerge: () => hn, delay: () => xr, fibonacci: () => yo, formatedTime: () => P1, getConstructorName: () => uh, getContainerFromElement: () => N1, getEnv: () => f1, getFirst16Bits: () => M1, getInternalVersion: () => w1, getLast16Bits: () => Wg, getLoggerUrl: () => Eo, getMediaStreamTrackInfo: () => Fg, getMuteStateFromFlag: () => js, getNetworkType: () => ch, getNumNetworkType: () => nc, getReconnectionTimeout: () => Gs, getStringByteLength: () => ph, getTestSignalDomain: () => _1, getTurnServer: () => D1, getUint32Version: () => xg, getValueType: () => Zt, getViewListFromView: () => cc, glog: () => I1, ipv4ToUint32: () => lc, isArray: () => Kt, isAudioWorkletSupported: () => b1, isBoolean: () => It, isConstructor: () => ac, isEmpty: () => dh, isFunction: () => Lt, isLangChinese: () => dn, isMediaStreamTrack: () => R1, isNumber: () => rt, isObject: () => Lr, isOverseaSdkAppId: () => Xn, isPlainObject: () => er, isPortrait: () => Lg, isPromise: () => sc, isRemoteTrack: () => A1, isRotate90Or270: () => Qn, isSetSinkIdSupported: () => C1, isString: () => dt, isUndefined: () => j, loadImage: () => uc, loadVideo: () => O1, ms2bytes: () => S1, ms2samples: () => Mg, normalizeUrl: () => Vg, performanceNow: () => xe, promiseAny: () => oc, samples2ms: () => Og, setNetworkTypeFromWebRTC: () => Pg, stringify: () => Tr, stringifyIncludeValue: () => hh, throttlePromise: () => Ug });
3849
+ ln(Mr, { REPORT_TYPE: () => Bg, buildSSOPackage: () => So, bytes2ms: () => TC, calculateScaleResolutionDownNumber: () => fh, concatArrayBuffers: () => Hg, convertObjectNumberToInt: () => mh, copyProperties: () => yC, deepClone: () => To, deepCloneBasic: () => _h, deepMerge: () => hn, delay: () => xr, fibonacci: () => yo, formatedTime: () => PC, getConstructorName: () => uh, getContainerFromElement: () => NC, getEnv: () => fC, getFirst16Bits: () => MC, getInternalVersion: () => wC, getLast16Bits: () => Wg, getLoggerUrl: () => Eo, getMediaStreamTrackInfo: () => Fg, getMuteStateFromFlag: () => js, getNetworkType: () => ch, getNumNetworkType: () => nc, getReconnectionTimeout: () => Gs, getStringByteLength: () => ph, getTestSignalDomain: () => _C, getTurnServer: () => DC, getUint32Version: () => xg, getValueType: () => Zt, getViewListFromView: () => cc, glog: () => IC, ipv4ToUint32: () => lc, isArray: () => Kt, isAudioWorkletSupported: () => bC, isBoolean: () => It, isConstructor: () => ac, isEmpty: () => dh, isFunction: () => Lt, isLangChinese: () => dn, isMediaStreamTrack: () => RC, isNumber: () => rt, isObject: () => Lr, isOverseaSdkAppId: () => Xn, isPlainObject: () => er, isPortrait: () => Lg, isPromise: () => sc, isRemoteTrack: () => AC, isRotate90Or270: () => Qn, isSetSinkIdSupported: () => CC, isString: () => dt, isUndefined: () => j, loadImage: () => uc, loadVideo: () => OC, ms2bytes: () => SC, ms2samples: () => Mg, normalizeUrl: () => Vg, performanceNow: () => xe, promiseAny: () => oc, samples2ms: () => Og, setNetworkTypeFromWebRTC: () => Pg, stringify: () => Tr, stringifyIncludeValue: () => hh, throttlePromise: () => Ug });
3850
3850
  var zb = {};
3851
- ln(zb, { ASR_ROBOT_FROM_TYPE: () => lh, AUDIO_MUTE_BIT: () => vg, AUDIO_STAT_BIT: () => Xl, AUX_STAT_BIT: () => ih, AUX_STREAM_MSID: () => i1, BACKEND_ENV: () => _g, BASE_DOC_URL: () => cn, BASE_HOST: () => Jb, CAPABILITIES_KEYS: () => Sg, CLASS_NAME: () => dB, CLOUD_CONSOLE_URL: () => JF, CROSS_ROOM_BIT: () => e1, DATA_CHANNEL_FROM_TYPE_BIT: () => t1, DATA_FREEZE_TIMING: () => yg, DOC_BILLING_CN: () => dg, DOC_BILLING_OVERSEA: () => hg, DOC_URL: () => YF, DTLS_STATE_UNKNOWN: () => Yn, ENV_NAME: () => Bs, EXCHANGE_SDP_TIMEOUT: () => l1, IS_WORKER: () => th, IS_WORKLET: () => cg, KIBANA_EVENT: () => ci, LOCAL_STREAM_PUBLISH_STATE: () => c1, LOGGER_CMD_TYPE: () => Jl, LOGGER_DOMAIN: () => Yb, LOGGER_DOMAIN_OVERSEA: () => qb, LOG_LEVEL: () => Jn, LOG_LEVEL_NAME: () => pB, MAIN_STREAM_MSID: () => rh, MAX_RTT: () => oh, MICROPHONE_COMMUNICATIONS: () => hB, MICROPHONE_DEFAULT: () => Zl, MUTE_ALL_BIT: () => QF, NAME: () => D, NETWORK_TYPE: () => pg, NOT_SUPPORTED_H264: () => sh, PAUSED_RETRY_COUNT: () => Ws, PEERCONNECTION_CONNECTING_TIMEOUT: () => Tg, PEER_CONNECTION_STATE: () => zt, PEER_LEAVE_REASON: () => u1, RECOVER_CAPTURE_INTERVAL: () => ec, REMOTE_STREAM_TYPE_AUX: () => n1, REMOTE_STREAM_TYPE_MAIN: () => r1, RENDER_FREEZE_TIMING: () => oB, SCHEDULE_DOMAIN: () => qn, SCHEDULE_TIMEOUT: () => uB, SDP_SEMANTICS_PLAN_B: () => nh, SDP_SEMANTICS_UNIFIED_PLAN: () => Ql, SECOND_HOST: () => zF, SIGNAL_PING_PONG_INTERVAL: () => XF, SIGNAL_PING_TIMEOUT: () => qF, SIGNAL_RECONNECTION_COUNT: () => sB, SMALL_STAT_BIT: () => gg, SPEAKER_DEFAULT: () => ah, STORAGE_EXPIRES_TIME: () => Qb, STREAM_TYPE_BIG: () => lB, STREAM_TYPE_SMALL: () => cB, SUBSCRIBE_SMALL_RETRY_COUNT: () => $l, SYNC_USER_LIST_INTERVAL: () => aB, Scene: () => $b, THIRD_HOST: () => KF, TRANSPORT_DIRECTION: () => it, TRTC_ERROR_ASSISTANCE: () => Xb, TRTC_QUALITY_BAD: () => iB, TRTC_QUALITY_DISCONNECTED: () => nB, TRTC_QUALITY_EXCELLENT: () => $F, TRTC_QUALITY_GOOD: () => eB, TRTC_QUALITY_POOR: () => tB, TRTC_QUALITY_UNKNOWN: () => ZF, TRTC_QUALITY_VERY_BAD: () => rB, UPDATE_OFFER_TIMEOUT: () => o1, VIDEO_MUTE_BIT: () => Eg, VIDEO_STAT_BIT: () => ql, WEBGL_ATTRIBUTES: () => d1, audioProfileMap: () => mg, defaultBigVideoProfile: () => Yl, defaultSmallVideoProfile: () => Zb, getRetryCount: () => go, getScriptDir: () => jF, innerVersion: () => og, loggerProxy: () => ug, screenProfileMap: () => fg, setLoggerProxy: () => Kl, setRetryCount: () => a1, setVersion: () => Kb, version: () => yr, videoProfileMap: () => un });
3851
+ ln(zb, { ASR_ROBOT_FROM_TYPE: () => lh, AUDIO_MUTE_BIT: () => vg, AUDIO_STAT_BIT: () => Xl, AUX_STAT_BIT: () => ih, AUX_STREAM_MSID: () => iC, BACKEND_ENV: () => _g, BASE_DOC_URL: () => cn, BASE_HOST: () => Jb, CAPABILITIES_KEYS: () => Sg, CLASS_NAME: () => dB, CLOUD_CONSOLE_URL: () => JF, CROSS_ROOM_BIT: () => eC, DATA_CHANNEL_FROM_TYPE_BIT: () => tC, DATA_FREEZE_TIMING: () => yg, DOC_BILLING_CN: () => dg, DOC_BILLING_OVERSEA: () => hg, DOC_URL: () => YF, DTLS_STATE_UNKNOWN: () => Yn, ENV_NAME: () => Bs, EXCHANGE_SDP_TIMEOUT: () => lC, IS_WORKER: () => th, IS_WORKLET: () => cg, KIBANA_EVENT: () => ci, LOCAL_STREAM_PUBLISH_STATE: () => cC, LOGGER_CMD_TYPE: () => Jl, LOGGER_DOMAIN: () => Yb, LOGGER_DOMAIN_OVERSEA: () => qb, LOG_LEVEL: () => Jn, LOG_LEVEL_NAME: () => pB, MAIN_STREAM_MSID: () => rh, MAX_RTT: () => oh, MICROPHONE_COMMUNICATIONS: () => hB, MICROPHONE_DEFAULT: () => Zl, MUTE_ALL_BIT: () => QF, NAME: () => D, NETWORK_TYPE: () => pg, NOT_SUPPORTED_H264: () => sh, PAUSED_RETRY_COUNT: () => Ws, PEERCONNECTION_CONNECTING_TIMEOUT: () => Tg, PEER_CONNECTION_STATE: () => zt, PEER_LEAVE_REASON: () => uC, RECOVER_CAPTURE_INTERVAL: () => ec, REMOTE_STREAM_TYPE_AUX: () => nC, REMOTE_STREAM_TYPE_MAIN: () => rC, RENDER_FREEZE_TIMING: () => oB, SCHEDULE_DOMAIN: () => qn, SCHEDULE_TIMEOUT: () => uB, SDP_SEMANTICS_PLAN_B: () => nh, SDP_SEMANTICS_UNIFIED_PLAN: () => Ql, SECOND_HOST: () => zF, SIGNAL_PING_PONG_INTERVAL: () => XF, SIGNAL_PING_TIMEOUT: () => qF, SIGNAL_RECONNECTION_COUNT: () => sB, SMALL_STAT_BIT: () => gg, SPEAKER_DEFAULT: () => ah, STORAGE_EXPIRES_TIME: () => Qb, STREAM_TYPE_BIG: () => lB, STREAM_TYPE_SMALL: () => cB, SUBSCRIBE_SMALL_RETRY_COUNT: () => $l, SYNC_USER_LIST_INTERVAL: () => aB, Scene: () => $b, THIRD_HOST: () => KF, TRANSPORT_DIRECTION: () => it, TRTC_ERROR_ASSISTANCE: () => Xb, TRTC_QUALITY_BAD: () => iB, TRTC_QUALITY_DISCONNECTED: () => nB, TRTC_QUALITY_EXCELLENT: () => $F, TRTC_QUALITY_GOOD: () => eB, TRTC_QUALITY_POOR: () => tB, TRTC_QUALITY_UNKNOWN: () => ZF, TRTC_QUALITY_VERY_BAD: () => rB, UPDATE_OFFER_TIMEOUT: () => oC, VIDEO_MUTE_BIT: () => Eg, VIDEO_STAT_BIT: () => ql, WEBGL_ATTRIBUTES: () => dC, audioProfileMap: () => mg, defaultBigVideoProfile: () => Yl, defaultSmallVideoProfile: () => Zb, getRetryCount: () => go, getScriptDir: () => jF, innerVersion: () => og, loggerProxy: () => ug, screenProfileMap: () => fg, setLoggerProxy: () => Kl, setRetryCount: () => aC, setVersion: () => Kb, version: () => yr, videoProfileMap: () => un });
3852
3852
  var og = "4.15.00.1600", yr = "5.0.0";
3853
3853
  function Kb(e) {
3854
3854
  yr = e;
@@ -3858,14 +3858,14 @@ a=extmap-allow-mixed`) !== -1) {
3858
3858
  var lg, Wi, th = typeof importScripts < "u", cg = typeof registerProcessor < "u", jF = () => {
3859
3859
  let e = th ? self.location.href : document.currentScript.src;
3860
3860
  return e.substring(0, e.lastIndexOf("/") + 1);
3861
- }, ug = "", Kl = (e) => ug = e, Jb = "web.sdk.qcloud.com", zF = "web.sdk.tencent.cn", KF = "web.sdk.cloud.tencent.cn", JF = "https://console.cloud.tencent.com/trtc", cn = "https://".concat(Jb, "/trtc/webrtc/doc"), YF = "".concat(cn, "/zh-cn/"), dg = "https://cloud.tencent.com/document/product/647/85386", hg = "https://trtc.io/document/56025", Yb = "https://yun.tim.qq.com", qb = "https://apisgp.my-imcloud.com", Xb = "trtc_error_assistance", Jl = { LOG: "jssdk_log", EVENT: "jssdk_event", KEY_POINT: "jssdk_new_endreport", KV_STAT: "jssdk_key_metrics_report" }, Bs = { QCLOUD: "qcloud", OLD_CLOUD_LADDER: "trtc", WEBRTC: "webrtc" }, Jn = ((Wi = Jn || {})[Wi.TRACE = 0] = "TRACE", Wi[Wi.DEBUG = 1] = "DEBUG", Wi[Wi.INFO = 2] = "INFO", Wi[Wi.WARN = 3] = "WARN", Wi[Wi.ERROR = 4] = "ERROR", Wi[Wi.NONE = 5] = "NONE", Wi), qF = 18e3, XF = 2e3, pg = { unknown: 0, wifi: 1, "4g": 2, "3g": 3, "2g": 4, wired: 5, "5g": 6 }, Qb = 6048e5, mg = { standard: { sampleRate: 48e3, channelCount: 1, bitrate: 40 }, "standard-stereo": { sampleRate: 48e3, channelCount: 2, bitrate: 64 }, high: { sampleRate: 48e3, channelCount: 1, bitrate: 128 }, "high-stereo": { sampleRate: 48e3, channelCount: 2, bitrate: 192 } }, un = { "120p": { width: 160, height: 120, frameRate: 15, bitrate: 200 }, "120p_2": { width: 160, height: 120, frameRate: 15, bitrate: 100 }, "180p": { width: 320, height: 180, frameRate: 15, bitrate: 350 }, "180p_2": { width: 320, height: 180, frameRate: 15, bitrate: 150 }, "240p": { width: 320, height: 240, frameRate: 15, bitrate: 400 }, "240p_2": { width: 320, height: 240, frameRate: 15, bitrate: 200 }, "360p": { width: 640, height: 360, frameRate: 15, bitrate: 800 }, "360p_2": { width: 640, height: 360, frameRate: 15, bitrate: 400 }, "480p": { width: 640, height: 480, frameRate: 15, bitrate: 900 }, "480p_2": { width: 640, height: 480, frameRate: 15, bitrate: 500 }, "720p": { width: 1280, height: 720, frameRate: 15, bitrate: 1500 }, "1080p": { width: 1920, height: 1080, frameRate: 15, bitrate: 2e3 }, "1440p": { width: 2560, height: 1440, frameRate: 30, bitrate: 4860 }, "4K": { width: 3840, height: 2160, frameRate: 30, bitrate: 9e3 } }, Yl = un["480p_2"], Zb = un["120p_2"], fg = { "480p": { width: 640, height: 480, frameRate: 5, bitrate: 900 }, "480p_2": { width: 640, height: 480, frameRate: 30, bitrate: 1e3 }, "720p": { width: 1280, height: 720, frameRate: 5, bitrate: 1200 }, "720p_2": { width: 1280, height: 720, frameRate: 30, bitrate: 3e3 }, "1080p": { width: 1920, height: 1080, frameRate: 5, bitrate: 1600 }, "1080p_2": { width: 1920, height: 1080, frameRate: 30, bitrate: 4e3 } }, D = { CANVAS: "canvas", AUDIO: "audio", VIDEO: "video", SCREEN: "screen", SMALL: "small", BIG: "big", AUXILIARY: "auxiliary", SMALL_VIDEO: "smallVideo", FACING_MODE_USER: "user", FACING_MODE_ENVIRONMENT: "environment", MUTE: "mute", UNMUTE: "unmute", ENDED: "ended", PLAYING: "playing", PAUSE: "pause", ERROR: "error", LOADSTART: "loadstart", LOADEDDATA: "loadeddata", LOADEDMETADATA: "loadedmetadata", AUDIO_INPUT: "audioinput", VIDEO_INPUT: "videoinput", DETAIL: "detail", TEXT: "text", MAIN: "main", BACKUP: "backup", BANNED: "banned", KICK: "kick", USER_TIME_OUT: "user_time_out", ROOM_DISBAND: "room_disband", SEI_MESSAGE: "sei-message", ADD: "add", REMOVE: "remove", REPLACE: "replace", TRACK: "track", SUBSCRIBE: "subscribe", UNSUBSCRIBE: "unsubscribe", TRANSCEIVER_DIRECTION_SENDONLY: "sendonly", TRANSCEIVER_DIRECTION_RECVONLY: "recvonly", ENTER_PICTURE_IN_PICTURE: "enterpictureinpicture", LEAVE_PICTURE_IN_PICTURE: "leavepictureinpicture", FULLSCREEN_CHANGE: "fullscreenchange", RESIZE: "resize", TIME_UPDATE: "timeupdate" }, it = { INACTIVE: "inactive", SENDONLY: "sendonly", RECVONLY: "recvonly" }, _g = { OLD_CLOUD_LADDER: "wss://trtc.rtc.qq.com", WEBRTC: "wss://webrtc.qq.com" }, $b = ((lg = $b || {}).LIVE = "live", lg.RTC = "rtc", lg), ql = 1, gg = 2, ih = 4, Xl = 8, vg = 64, Eg = 16, QF = 112, e1 = 128, t1 = 256, rh = "5Y2wZK8nANNAoVw6dSAHVjNxrD1ObBM2kBPV", i1 = "224d130c-7b5c-415b-aaa2-79c2eb5a6df2", r1 = D.MAIN, n1 = D.AUXILIARY, ZF = 0, $F = 1, eB = 2, tB = 3, iB = 4, rB = 5, nB = 6, Yn = "unknown", zt = { NEW: "new", CONNECTING: "connecting", FAILED: "failed", CLOSED: "closed", DISCONNECTED: "disconnected", CONNECTED: "connected", COMPLETED: "completed" }, s1 = 1 / 0;
3862
- function a1(e) {
3863
- s1 = e;
3861
+ }, ug = "", Kl = (e) => ug = e, Jb = "web.sdk.qcloud.com", zF = "web.sdk.tencent.cn", KF = "web.sdk.cloud.tencent.cn", JF = "https://console.cloud.tencent.com/trtc", cn = "https://".concat(Jb, "/trtc/webrtc/doc"), YF = "".concat(cn, "/zh-cn/"), dg = "https://cloud.tencent.com/document/product/647/85386", hg = "https://trtc.io/document/56025", Yb = "https://yun.tim.qq.com", qb = "https://apisgp.my-imcloud.com", Xb = "trtc_error_assistance", Jl = { LOG: "jssdk_log", EVENT: "jssdk_event", KEY_POINT: "jssdk_new_endreport", KV_STAT: "jssdk_key_metrics_report" }, Bs = { QCLOUD: "qcloud", OLD_CLOUD_LADDER: "trtc", WEBRTC: "webrtc" }, Jn = ((Wi = Jn || {})[Wi.TRACE = 0] = "TRACE", Wi[Wi.DEBUG = 1] = "DEBUG", Wi[Wi.INFO = 2] = "INFO", Wi[Wi.WARN = 3] = "WARN", Wi[Wi.ERROR = 4] = "ERROR", Wi[Wi.NONE = 5] = "NONE", Wi), qF = 18e3, XF = 2e3, pg = { unknown: 0, wifi: 1, "4g": 2, "3g": 3, "2g": 4, wired: 5, "5g": 6 }, Qb = 6048e5, mg = { standard: { sampleRate: 48e3, channelCount: 1, bitrate: 40 }, "standard-stereo": { sampleRate: 48e3, channelCount: 2, bitrate: 64 }, high: { sampleRate: 48e3, channelCount: 1, bitrate: 128 }, "high-stereo": { sampleRate: 48e3, channelCount: 2, bitrate: 192 } }, un = { "120p": { width: 160, height: 120, frameRate: 15, bitrate: 200 }, "120p_2": { width: 160, height: 120, frameRate: 15, bitrate: 100 }, "180p": { width: 320, height: 180, frameRate: 15, bitrate: 350 }, "180p_2": { width: 320, height: 180, frameRate: 15, bitrate: 150 }, "240p": { width: 320, height: 240, frameRate: 15, bitrate: 400 }, "240p_2": { width: 320, height: 240, frameRate: 15, bitrate: 200 }, "360p": { width: 640, height: 360, frameRate: 15, bitrate: 800 }, "360p_2": { width: 640, height: 360, frameRate: 15, bitrate: 400 }, "480p": { width: 640, height: 480, frameRate: 15, bitrate: 900 }, "480p_2": { width: 640, height: 480, frameRate: 15, bitrate: 500 }, "720p": { width: 1280, height: 720, frameRate: 15, bitrate: 1500 }, "1080p": { width: 1920, height: 1080, frameRate: 15, bitrate: 2e3 }, "1440p": { width: 2560, height: 1440, frameRate: 30, bitrate: 4860 }, "4K": { width: 3840, height: 2160, frameRate: 30, bitrate: 9e3 } }, Yl = un["480p_2"], Zb = un["120p_2"], fg = { "480p": { width: 640, height: 480, frameRate: 5, bitrate: 900 }, "480p_2": { width: 640, height: 480, frameRate: 30, bitrate: 1e3 }, "720p": { width: 1280, height: 720, frameRate: 5, bitrate: 1200 }, "720p_2": { width: 1280, height: 720, frameRate: 30, bitrate: 3e3 }, "1080p": { width: 1920, height: 1080, frameRate: 5, bitrate: 1600 }, "1080p_2": { width: 1920, height: 1080, frameRate: 30, bitrate: 4e3 } }, D = { CANVAS: "canvas", AUDIO: "audio", VIDEO: "video", SCREEN: "screen", SMALL: "small", BIG: "big", AUXILIARY: "auxiliary", SMALL_VIDEO: "smallVideo", FACING_MODE_USER: "user", FACING_MODE_ENVIRONMENT: "environment", MUTE: "mute", UNMUTE: "unmute", ENDED: "ended", PLAYING: "playing", PAUSE: "pause", ERROR: "error", LOADSTART: "loadstart", LOADEDDATA: "loadeddata", LOADEDMETADATA: "loadedmetadata", AUDIO_INPUT: "audioinput", VIDEO_INPUT: "videoinput", DETAIL: "detail", TEXT: "text", MAIN: "main", BACKUP: "backup", BANNED: "banned", KICK: "kick", USER_TIME_OUT: "user_time_out", ROOM_DISBAND: "room_disband", SEI_MESSAGE: "sei-message", ADD: "add", REMOVE: "remove", REPLACE: "replace", TRACK: "track", SUBSCRIBE: "subscribe", UNSUBSCRIBE: "unsubscribe", TRANSCEIVER_DIRECTION_SENDONLY: "sendonly", TRANSCEIVER_DIRECTION_RECVONLY: "recvonly", ENTER_PICTURE_IN_PICTURE: "enterpictureinpicture", LEAVE_PICTURE_IN_PICTURE: "leavepictureinpicture", FULLSCREEN_CHANGE: "fullscreenchange", RESIZE: "resize", TIME_UPDATE: "timeupdate" }, it = { INACTIVE: "inactive", SENDONLY: "sendonly", RECVONLY: "recvonly" }, _g = { OLD_CLOUD_LADDER: "wss://trtc.rtc.qq.com", WEBRTC: "wss://webrtc.qq.com" }, $b = ((lg = $b || {}).LIVE = "live", lg.RTC = "rtc", lg), ql = 1, gg = 2, ih = 4, Xl = 8, vg = 64, Eg = 16, QF = 112, eC = 128, tC = 256, rh = "5Y2wZK8nANNAoVw6dSAHVjNxrD1ObBM2kBPV", iC = "224d130c-7b5c-415b-aaa2-79c2eb5a6df2", rC = D.MAIN, nC = D.AUXILIARY, ZF = 0, $F = 1, eB = 2, tB = 3, iB = 4, rB = 5, nB = 6, Yn = "unknown", zt = { NEW: "new", CONNECTING: "connecting", FAILED: "failed", CLOSED: "closed", DISCONNECTED: "disconnected", CONNECTED: "connected", COMPLETED: "completed" }, sC = 1 / 0;
3862
+ function aC(e) {
3863
+ sC = e;
3864
3864
  }
3865
3865
  function go() {
3866
- return s1;
3866
+ return sC;
3867
3867
  }
3868
- var Hs, sB = 30, ci = { JOIN: "join", DELTA_JOIN: "delta-join", REJOIN: "rejoin", LEAVE: "leave", DELTA_LEAVE: "delta-leave", PUBLISH: "publish", DELTA_PUBLISH: "delta-publish", UNPUBLISH: "unpublish", SUBSCRIBE: "subscribe", UNSUBSCRIBE: "unsubscribe", UPLINK_CONNECTION: "uplink-connection", UPLINK_RECONNECTION: "uplink-reconnection", DOWNLINK_CONNECTION: "downlink-connection", DOWNLINK_RECONNECTION: "downlink-reconnection", ON_TRACK: "ontrack", ICE_CONNECTION_STATE: "iceConnectionState", LOCAL_STREAM_INITIALIZE: "stream-initialize", SIGNAL_CONNECTION: "websocketConnectionState", SIGNAL_RECONNECTION: "websocketReconnectionState", UPDATE_STREAM: "update-stream", RECOVER_LOCAL_AUDIO_TRACK: "recover-local-audio-track", RECOVER_LOCAL_VIDEO_TRACK: "recover-local-video-track", RECOVER_SUBSCRIPTION: "recover-subscription", START_MIX_TRANSCODE: "start-mix-transcode", STOP_MIX_TRANSCODE: "stop-mix-transcode", PLAYER_ERROR: "player-error", SCHEDULE: "schedule", LOAD_WORKLET: "load-worklet", VIDEO_FROZEN_COUNT: "videoFrozenCount", GET_USER_MEDIA_RETRY: "getUserMedia-retry", VIDEO_ENCODE_FAILED_DURING_CALL: "video-encode-failed-during-call", VIDEO_ENCODE_RESUME_DURING_CALL: "video-encode-resume-during-call", AUDIO_ENCODE_FAILED_DURING_CALL: "audio-encode-failed-during-call", AUDIO_ENCODE_RESUME_DURING_CALL: "audio-encode-resume-during-call", VIDEO_DECODE_FAILED_DURING_CALL: "video-decode-failed-during-call", VIDEO_DECODE_RESUME_DURING_CALL: "video-decode-resume-during-call", AUDIO_DECODE_FAILED_DURING_CALL: "audio-decode-failed-during-call", AUDIO_DECODE_RESUME_DURING_CALL: "audio-decode-resume-during-call", VIDEO_HARDWARE_DECODE_FAILED: "video-hardware-decode-failed", VIDEO_HARDWARE_DECODE_RESUME: "video-hardware-decode-resume" }, aB = 1e4, o1 = 1e4, l1 = 1e4, Ql = "unified-plan", nh = "plan-b", sh = 1028, c1 = ((Hs = c1 || {})[Hs.UNPUBLISH = -1] = "UNPUBLISH", Hs[Hs.PUBLISHING = 0] = "PUBLISHING", Hs[Hs.PUBLISHED = 1] = "PUBLISHED", Hs), yg = 500, oB = 1e3, lB = D.BIG, cB = D.SMALL, Tg = 1e4, qn = { MAIN: "schedule.cloud-rtc.com", BACKUP: "schedule.cloud-rtc.net", MAIN_OVERSEA: "schedule.rtc-web.com", BACKUP_OVERSEA: "schedule.rtc-web.io", MAIN_OVERSEA_BACKUP: "intl-schedule.cloud-rtc.com" }, uB = 2e3, dB = { TRTC: "TRTC", CLIENT: "Client", LOCAL_STREAM: "LocalStream", REMOTE_STREAM: "RemoteStream", STREAM: "Stream" }, Ws = 5, Zl = "default", ah = Zl, hB = "communications", pB = Object.keys(Jn), u1 = ["normal leave", "timeout leave", "kick", "role change"], $l = 10, ec = 2e3, Sg = ["width", "height", "frameRate", "facingMode", "sampleRate", "sampleSize", "channelCount", "deviceId", "min", "max"], oh = 1e4, lh = 14, d1 = { alpha: !0, antialias: !1, premultipliedAlpha: !1, preserveDrawingBuffer: !1, depth: !1, stencil: !1, failIfMajorPerformanceCaveat: !0, powerPreference: "low-power" }, mB = function(e, t, i, r) {
3868
+ var Hs, sB = 30, ci = { JOIN: "join", DELTA_JOIN: "delta-join", REJOIN: "rejoin", LEAVE: "leave", DELTA_LEAVE: "delta-leave", PUBLISH: "publish", DELTA_PUBLISH: "delta-publish", UNPUBLISH: "unpublish", SUBSCRIBE: "subscribe", UNSUBSCRIBE: "unsubscribe", UPLINK_CONNECTION: "uplink-connection", UPLINK_RECONNECTION: "uplink-reconnection", DOWNLINK_CONNECTION: "downlink-connection", DOWNLINK_RECONNECTION: "downlink-reconnection", ON_TRACK: "ontrack", ICE_CONNECTION_STATE: "iceConnectionState", LOCAL_STREAM_INITIALIZE: "stream-initialize", SIGNAL_CONNECTION: "websocketConnectionState", SIGNAL_RECONNECTION: "websocketReconnectionState", UPDATE_STREAM: "update-stream", RECOVER_LOCAL_AUDIO_TRACK: "recover-local-audio-track", RECOVER_LOCAL_VIDEO_TRACK: "recover-local-video-track", RECOVER_SUBSCRIPTION: "recover-subscription", START_MIX_TRANSCODE: "start-mix-transcode", STOP_MIX_TRANSCODE: "stop-mix-transcode", PLAYER_ERROR: "player-error", SCHEDULE: "schedule", LOAD_WORKLET: "load-worklet", VIDEO_FROZEN_COUNT: "videoFrozenCount", GET_USER_MEDIA_RETRY: "getUserMedia-retry", VIDEO_ENCODE_FAILED_DURING_CALL: "video-encode-failed-during-call", VIDEO_ENCODE_RESUME_DURING_CALL: "video-encode-resume-during-call", AUDIO_ENCODE_FAILED_DURING_CALL: "audio-encode-failed-during-call", AUDIO_ENCODE_RESUME_DURING_CALL: "audio-encode-resume-during-call", VIDEO_DECODE_FAILED_DURING_CALL: "video-decode-failed-during-call", VIDEO_DECODE_RESUME_DURING_CALL: "video-decode-resume-during-call", AUDIO_DECODE_FAILED_DURING_CALL: "audio-decode-failed-during-call", AUDIO_DECODE_RESUME_DURING_CALL: "audio-decode-resume-during-call", VIDEO_HARDWARE_DECODE_FAILED: "video-hardware-decode-failed", VIDEO_HARDWARE_DECODE_RESUME: "video-hardware-decode-resume" }, aB = 1e4, oC = 1e4, lC = 1e4, Ql = "unified-plan", nh = "plan-b", sh = 1028, cC = ((Hs = cC || {})[Hs.UNPUBLISH = -1] = "UNPUBLISH", Hs[Hs.PUBLISHING = 0] = "PUBLISHING", Hs[Hs.PUBLISHED = 1] = "PUBLISHED", Hs), yg = 500, oB = 1e3, lB = D.BIG, cB = D.SMALL, Tg = 1e4, qn = { MAIN: "schedule.cloud-rtc.com", BACKUP: "schedule.cloud-rtc.net", MAIN_OVERSEA: "schedule.rtc-web.com", BACKUP_OVERSEA: "schedule.rtc-web.io", MAIN_OVERSEA_BACKUP: "intl-schedule.cloud-rtc.com" }, uB = 2e3, dB = { TRTC: "TRTC", CLIENT: "Client", LOCAL_STREAM: "LocalStream", REMOTE_STREAM: "RemoteStream", STREAM: "Stream" }, Ws = 5, Zl = "default", ah = Zl, hB = "communications", pB = Object.keys(Jn), uC = ["normal leave", "timeout leave", "kick", "role change"], $l = 10, ec = 2e3, Sg = ["width", "height", "frameRate", "facingMode", "sampleRate", "sampleSize", "channelCount", "deviceId", "min", "max"], oh = 1e4, lh = 14, dC = { alpha: !0, antialias: !1, premultipliedAlpha: !1, preserveDrawingBuffer: !1, depth: !1, stencil: !1, failIfMajorPerformanceCaveat: !0, powerPreference: "low-power" }, mB = function(e, t, i, r) {
3869
3869
  return new (i || (i = Promise))(function(n, s) {
3870
3870
  function o(h) {
3871
3871
  try {
@@ -4019,7 +4019,7 @@ a=extmap-allow-mixed`) !== -1) {
4019
4019
  }
4020
4020
  return i.buffer || new Uint8Array(0);
4021
4021
  }
4022
- var h1 = class {
4022
+ var hC = class {
4023
4023
  constructor() {
4024
4024
  m(this, "buffer"), this.buffer = [];
4025
4025
  }
@@ -4042,13 +4042,13 @@ a=extmap-allow-mixed`) !== -1) {
4042
4042
  for (let t = 0; t < e.length; t++) this.buffer.push(e[t]);
4043
4043
  }
4044
4044
  };
4045
- function p1(e, t, i) {
4045
+ function pC(e, t, i) {
4046
4046
  e[i] = t >>> 24 & 255, e[i + 1] = t >>> 16 & 255, e[i + 2] = t >>> 8 & 255, e[i + 3] = 255 & t;
4047
4047
  }
4048
4048
  function Mi(e, t) {
4049
4049
  return e[t] << 24 | e[t + 1] << 16 | e[t + 2] << 8 | e[t + 3];
4050
4050
  }
4051
- function m1(e, t) {
4051
+ function mC(e, t) {
4052
4052
  return e[t];
4053
4053
  }
4054
4054
  function tc(e, t, i) {
@@ -4058,7 +4058,7 @@ a=extmap-allow-mixed`) !== -1) {
4058
4058
  }
4059
4059
  var kg = 0, wg = 2654435769, Dg = 16, ic = 2, rc = 7;
4060
4060
  function _B(e, t) {
4061
- let i = new h1(), r = (function(G, he, H) {
4061
+ let i = new hC(), r = (function(G, he, H) {
4062
4062
  let Z = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "AVQualityReportSvc.C2S";
4063
4063
  return { version: arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 2e3, encryption: arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 2, d2: "", d2Len: 0, uinType: arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : 30, uin: "", uinLen: 0, reqHead: { seqNumber: H, appId: G, appidAtThird: new Uint8Array(0), a2: "", a2Len: 0, serviceCmd: Z, serviceCmdLen: 0, cookie: "", cookieLen: 0, imei: "", imeiLen: 0, ksid: "", ksidLen: 0, clientVersionInfo: "", clientVersionInfoLen: 0 }, busiBuff: he };
4064
4064
  })(t, e, kg);
@@ -4067,7 +4067,7 @@ a=extmap-allow-mixed`) !== -1) {
4067
4067
  i.writeInt32(n.length + 4), n && i.writeBytes(n), i.writeByte(r.uinType);
4068
4068
  let s = new TextEncoder().encode(r.uin);
4069
4069
  i.writeInt32(s.length + 4), s.length && i.writeBytes(s);
4070
- let o = new h1();
4070
+ let o = new hC();
4071
4071
  o.writeInt32(0), o.writeInt32(r.reqHead.seqNumber), o.writeInt32(r.reqHead.appId), o.writeByte(r.reqHead.appId >>> 24 & 255), o.writeByte(r.reqHead.appId >>> 16 & 255), o.writeByte(r.reqHead.appId >>> 8 & 255), o.writeByte(255 & r.reqHead.appId);
4072
4072
  for (let G = 4; G < 16; G++) o.writeByte(0);
4073
4073
  let l = new TextEncoder().encode(r.reqHead.a2);
@@ -4116,36 +4116,36 @@ a=extmap-allow-mixed`) !== -1) {
4116
4116
  for (let C = 0; C < 4; C++) T[C] = Mi(l, 4 * C);
4117
4117
  let b = 0;
4118
4118
  for (let C = 0; C < Dg; C++) b += wg, b >>>= 0, _ += (f << 4) + T[0] ^ f + b ^ (f >>> 5) + T[1], _ >>>= 0, f += (_ << 4) + T[2] ^ _ + b ^ (_ >>> 5) + T[3], f >>>= 0;
4119
- p1(c, _, h), p1(c, f, h + 4);
4119
+ pC(c, _, h), pC(c, f, h + 4);
4120
4120
  })(e, t, n, s);
4121
4121
  for (let o = 0; o < 8; o++) n[s + o] ^= i[o];
4122
4122
  for (let o = 0; o < 8; o++) i[o] = e[o];
4123
4123
  }
4124
- var f1 = function() {
4124
+ var fC = function() {
4125
4125
  return new URLSearchParams(location.search).get("trtc_env") || "";
4126
- }, _1 = function(e) {
4126
+ }, _C = function(e) {
4127
4127
  return e.includes(".") ? e : "".concat(e).concat(".rtc.qq.com");
4128
4128
  }, Xn = (e) => Number(e) < 14e8, Eo = function(e, t) {
4129
4129
  let i;
4130
4130
  i = ug || (Xn(e) ? qb : Yb);
4131
4131
  let r = Math.floor(Math.random() * jl(2, 31));
4132
4132
  return "".concat(i, "/v5/AVQualityReportSvc/C2S?random=").concat(r, "&sdkappid=").concat(e, "&cmdtype=").concat(t);
4133
- }, g1 = "unknown";
4133
+ }, gC = "unknown";
4134
4134
  function ch() {
4135
4135
  (function() {
4136
4136
  var s;
4137
- v1 || (v1 = !0, (s = navigator.connection) == null || s.addEventListener("typechange", gB));
4137
+ vC || (vC = !0, (s = navigator.connection) == null || s.addEventListener("typechange", gB));
4138
4138
  })();
4139
4139
  let { userAgent: e, connection: t } = navigator, i = (e.match(/NetType\/\S+/) || [])[0] || "";
4140
4140
  i = i.toLowerCase().replace("nettype/", ""), i === "3gnet" && (i = "3g");
4141
4141
  let r = t && t.type && t.type.toLowerCase(), n = t && t.effectiveType && t.effectiveType.toLowerCase();
4142
- return n === "slow-2" && (n = "2g"), r ? E1(r, n) : g1;
4142
+ return n === "slow-2" && (n = "2g"), r ? EC(r, n) : gC;
4143
4143
  }
4144
4144
  function gB() {
4145
4145
  fe.warn("netType changed", ch());
4146
4146
  }
4147
- var v1 = !1;
4148
- function E1(e, t) {
4147
+ var vC = !1;
4148
+ function EC(e, t) {
4149
4149
  if (pg[e]) return e;
4150
4150
  switch (e) {
4151
4151
  case "cellular":
@@ -4158,31 +4158,31 @@ a=extmap-allow-mixed`) !== -1) {
4158
4158
  }
4159
4159
  }
4160
4160
  function Pg(e) {
4161
- g1 = E1(e);
4161
+ gC = EC(e);
4162
4162
  }
4163
4163
  function nc() {
4164
4164
  return pg[ch()];
4165
4165
  }
4166
- function y1(e, t) {
4166
+ function yC(e, t) {
4167
4167
  for (let i of Reflect.ownKeys(t)) if (i !== "constructor" && i !== "prototype" && i !== "name") {
4168
4168
  let r = Object.getOwnPropertyDescriptor(t, i) || "";
4169
4169
  Object.defineProperty(e, i, r);
4170
4170
  }
4171
4171
  return e;
4172
4172
  }
4173
- function T1(e) {
4173
+ function TC(e) {
4174
4174
  return Og(e / 4, arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 48e3);
4175
4175
  }
4176
4176
  function Og(e) {
4177
4177
  return 1e3 * e / (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 48e3);
4178
4178
  }
4179
- function S1(e) {
4179
+ function SC(e) {
4180
4180
  return 4 * Mg(e, arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 48e3);
4181
4181
  }
4182
4182
  function Mg(e) {
4183
4183
  return e * (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 48e3) / 1e3;
4184
4184
  }
4185
- var I1 = typeof window < "u" && typeof window.glog == "function" ? window.glog : () => {
4185
+ var IC = typeof window < "u" && typeof window.glog == "function" ? window.glog : () => {
4186
4186
  }, dn = () => {
4187
4187
  let e = navigator.language;
4188
4188
  return e = e.substring(0, 2), e === "zh";
@@ -4203,7 +4203,7 @@ a=extmap-allow-mixed`) !== -1) {
4203
4203
  function Zt(e) {
4204
4204
  return Reflect.apply(Object.prototype.toString, e, []).replace(/^\[object\s(\w+)\]$/, "$1").toLowerCase();
4205
4205
  }
4206
- var Lt = (e) => typeof e == "function", j = (e) => e === void 0, dt = (e) => typeof e == "string", rt = (e) => typeof e == "number", It = (e) => typeof e == "boolean", Lr = (e) => Zt(e) === "object", Kt = (e) => Zt(e) === "array", R1 = (e) => Zt(e) === "MediaStreamTrack".toLowerCase(), A1 = (e) => e.isRemote, sc = (e) => Zt(e) === "promise", ac = (e) => Lt(e) && e.prototype.constructor === e, uh = (e) => ac(e) ? e.prototype.constructor.name : "", b1 = typeof AudioWorkletNode < "u", C1 = typeof HTMLMediaElement < "u" && "setSinkId" in HTMLMediaElement.prototype;
4206
+ var Lt = (e) => typeof e == "function", j = (e) => e === void 0, dt = (e) => typeof e == "string", rt = (e) => typeof e == "number", It = (e) => typeof e == "boolean", Lr = (e) => Zt(e) === "object", Kt = (e) => Zt(e) === "array", RC = (e) => Zt(e) === "MediaStreamTrack".toLowerCase(), AC = (e) => e.isRemote, sc = (e) => Zt(e) === "promise", ac = (e) => Lt(e) && e.prototype.constructor === e, uh = (e) => ac(e) ? e.prototype.constructor.name : "", bC = typeof AudioWorkletNode < "u", CC = typeof HTMLMediaElement < "u" && "setSinkId" in HTMLMediaElement.prototype;
4207
4207
  function oc(e) {
4208
4208
  return new Promise((t, i) => {
4209
4209
  let r = [];
@@ -4217,10 +4217,10 @@ a=extmap-allow-mixed`) !== -1) {
4217
4217
  function xe() {
4218
4218
  return performance && performance.now ? Math.floor(performance.now()) : Date.now();
4219
4219
  }
4220
- var k1 = (e) => +e < 10 ? "0".concat(e) : e, w1 = (e) => {
4220
+ var kC = (e) => +e < 10 ? "0".concat(e) : e, wC = (e) => {
4221
4221
  let t = e.match(/^\d+\.\d+\.\d+/)[0];
4222
4222
  if (!t) return e;
4223
- let i = t.split("."), r = k1(i[1]) + k1(i[2]);
4223
+ let i = t.split("."), r = kC(i[1]) + kC(i[2]);
4224
4224
  return i[1] - 15 > 0 && (i[1] = "15"), i[2] - 15 > 0 && (i[2] = "15"), "".concat(i.join("."), ".").concat(r);
4225
4225
  }, vB = Object.prototype.hasOwnProperty;
4226
4226
  function dh(e) {
@@ -4241,9 +4241,9 @@ a=extmap-allow-mixed`) !== -1) {
4241
4241
  return !1;
4242
4242
  }
4243
4243
  function js(e, t) {
4244
- return { userId: t, hasAudio: !!(e & Xl), hasVideo: !!(e & ql), hasAuxiliary: !!(e & ih), hasSmall: !!(e & gg), audioMuted: !!(e & vg), videoMuted: !!(e & Eg), audioAvailable: !(!(e & Xl) || e & vg), videoAvailable: !(!(e & ql) || e & Eg), hasDatachannel: !!(e & t1) };
4244
+ return { userId: t, hasAudio: !!(e & Xl), hasVideo: !!(e & ql), hasAuxiliary: !!(e & ih), hasSmall: !!(e & gg), audioMuted: !!(e & vg), videoMuted: !!(e & Eg), audioAvailable: !(!(e & Xl) || e & vg), videoAvailable: !(!(e & ql) || e & Eg), hasDatachannel: !!(e & tC) };
4245
4245
  }
4246
- function D1(e) {
4246
+ function DC(e) {
4247
4247
  let t = { urls: e.url.startsWith("turn:") || e.url.startsWith("turns:") ? e.url : "turn:".concat(e.url) };
4248
4248
  return !j(e.username) && !j(e.credential) && (t.username = e.username, t.credential = e.credential, t.credentialType = "password", j(e.credentialType) || (t.credentialType = e.credentialType)), t;
4249
4249
  }
@@ -4286,7 +4286,7 @@ a=extmap-allow-mixed`) !== -1) {
4286
4286
  i && t.push(i);
4287
4287
  } else e && t.push(e);
4288
4288
  return t;
4289
- }, N1 = (e) => dt(e) ? document.getElementById(e) : e, P1 = () => ((e) => {
4289
+ }, NC = (e) => dt(e) ? document.getElementById(e) : e, PC = () => ((e) => {
4290
4290
  let t = (c) => c < 10 ? "0".concat(c) : "".concat(c), i = e.getFullYear(), r = e.getMonth() + 1, n = e.getDate(), s = t(e.getHours()), o = t(e.getMinutes()), l = t(e.getSeconds());
4291
4291
  return "".concat(i, "/").concat(r, "/").concat(n, " ").concat(s, ":").concat(o, ":").concat(l);
4292
4292
  })(/* @__PURE__ */ new Date());
@@ -4361,7 +4361,7 @@ a=extmap-allow-mixed`) !== -1) {
4361
4361
  function Qn(e) {
4362
4362
  return e === 90 || e === 270;
4363
4363
  }
4364
- function O1(e) {
4364
+ function OC(e) {
4365
4365
  return P(this, null, function* () {
4366
4366
  return new Promise((t, i) => {
4367
4367
  let r = document.createElement("video");
@@ -4408,17 +4408,17 @@ a=extmap-allow-mixed`) !== -1) {
4408
4408
  function Wg(e) {
4409
4409
  return (65535 & e) >>> 0;
4410
4410
  }
4411
- function M1(e) {
4411
+ function MC(e) {
4412
4412
  return (4294901760 & e) >>> 0;
4413
4413
  }
4414
4414
  function EB(e) {
4415
4415
  let t = (function(i) {
4416
4416
  try {
4417
4417
  let r = {}, n = 0;
4418
- r.totalLength = Mi(i, n), n += 4, r.version = Mi(i, n), n += 4, r.encryption = m1(i, n), n += 1, r.uinType = m1(i, n), n += 1, r.uinLength = Mi(i, n), n += 4, r.uin = r.uinLength > 4 ? tc(i, n, r.uinLength - 4) : "", n += r.uinLength - 4;
4418
+ r.totalLength = Mi(i, n), n += 4, r.version = Mi(i, n), n += 4, r.encryption = mC(i, n), n += 1, r.uinType = mC(i, n), n += 1, r.uinLength = Mi(i, n), n += 4, r.uin = r.uinLength > 4 ? tc(i, n, r.uinLength - 4) : "", n += r.uinLength - 4;
4419
4419
  let s = i.slice(n);
4420
4420
  return r.encryption === 2 ? (i = (function(o, l) {
4421
- let c = 0, h = new Uint8Array(8).fill(0), _ = new Uint8Array(o.slice(0, 8)), f = L1(_, l), T = 7 & f[0], b = o.length - 1 - T - ic - rc, C = new Uint8Array(b), x = 0, B = h, Y = o.slice(0, 8);
4421
+ let c = 0, h = new Uint8Array(8).fill(0), _ = new Uint8Array(o.slice(0, 8)), f = LC(_, l), T = 7 & f[0], b = o.length - 1 - T - ic - rc, C = new Uint8Array(b), x = 0, B = h, Y = o.slice(0, 8);
4422
4422
  c = 8;
4423
4423
  let G = 1;
4424
4424
  G += T;
@@ -4447,7 +4447,7 @@ a=extmap-allow-mixed`) !== -1) {
4447
4447
  })(e);
4448
4448
  return t?.busiBuff;
4449
4449
  }
4450
- function L1(e, t) {
4450
+ function LC(e, t) {
4451
4451
  let i = e[0] << 24 | e[1] << 16 | e[2] << 8 | e[3], r = e[4] << 24 | e[5] << 16 | e[6] << 8 | e[7];
4452
4452
  i >>>= 0, r >>>= 0;
4453
4453
  let n = wg * Dg >>> 0;
@@ -4458,13 +4458,13 @@ a=extmap-allow-mixed`) !== -1) {
4458
4458
  if (t + 8 > e.length) return { success: !1 };
4459
4459
  let o = new Uint8Array(r), l = e.slice(t, t + 8), c = new Uint8Array(8);
4460
4460
  for (let h = 0; h < 8; h++) c[h] = n[h] ^ l[h];
4461
- return { success: !0, ivPreCrypt: o, ivCurCrypt: l, debiBuf: L1(c, s), bufPos: t + 8 };
4461
+ return { success: !0, ivPreCrypt: o, ivCurCrypt: l, debiBuf: LC(c, s), bufPos: t + 8 };
4462
4462
  }
4463
- var x1 = typeof TextDecoder < "u" ? new TextDecoder() : void 0;
4463
+ var xC = typeof TextDecoder < "u" ? new TextDecoder() : void 0;
4464
4464
  function dc(e) {
4465
4465
  let { url: t, body: i, method: r = "POST", timeout: n, priority: s } = e;
4466
4466
  return new Promise((o, l) => {
4467
- if ("fetch" in window) return fetch(t, { method: r, body: i, priority: s }).then((h) => h.clone().json().then((_) => ({ data: _ }), () => h.arrayBuffer().then((_) => ({ data: EB(new Uint8Array(_)) || (x1 ? x1.decode(_) : _) })))).then(o, l);
4467
+ if ("fetch" in window) return fetch(t, { method: r, body: i, priority: s }).then((h) => h.clone().json().then((_) => ({ data: _ }), () => h.arrayBuffer().then((_) => ({ data: EB(new Uint8Array(_)) || (xC ? xC.decode(_) : _) })))).then(o, l);
4468
4468
  let c = new XMLHttpRequest();
4469
4469
  c.onreadystatechange = () => {
4470
4470
  if (c.readyState === 4) if (c.status >= 200 && c.status < 300) try {
@@ -4477,7 +4477,7 @@ a=extmap-allow-mixed`) !== -1) {
4477
4477
  }, c.timeout = n || 5e3, c.open(r, t, !0), c.send(i);
4478
4478
  });
4479
4479
  }
4480
- function U1(e) {
4480
+ function UC(e) {
4481
4481
  return P(this, null, function* () {
4482
4482
  let t = xe(), i = JSON.stringify(e);
4483
4483
  try {
@@ -4489,7 +4489,7 @@ a=extmap-allow-mixed`) !== -1) {
4489
4489
  }
4490
4490
  });
4491
4491
  }
4492
- var yB = Object.prototype.hasOwnProperty, zs = (e) => typeof e == "function", tr = (e) => e === void 0, jg = (e) => typeof e == "string", V1 = (e) => typeof e == "boolean", zg = (e) => e.isRemote, F1 = function(e) {
4492
+ var yB = Object.prototype.hasOwnProperty, zs = (e) => typeof e == "function", tr = (e) => e === void 0, jg = (e) => typeof e == "string", VC = (e) => typeof e == "boolean", zg = (e) => e.isRemote, FC = function(e) {
4493
4493
  if (!e || typeof e != "object" || Object.prototype.toString.call(e) != "[object Object]") return !1;
4494
4494
  let t = Object.getPrototypeOf(e);
4495
4495
  if (t === null) return !0;
@@ -4519,7 +4519,7 @@ a=extmap-allow-mixed`) !== -1) {
4519
4519
  };
4520
4520
  }, Kg = class TN {
4521
4521
  constructor(t) {
4522
- m(this, "_parentPath"), m(this, "userId"), m(this, "remoteUserId"), m(this, "id"), m(this, "sdkAppId"), m(this, "type"), m(this, "isLocal"), this.id = t.id, this.userId = t.userId, this.sdkAppId = t.sdkAppId, this.remoteUserId = t.remoteUserId, this.isLocal = !V1(t.isLocal) || t.isLocal, this.type = this.isLocal ? "" : t.type;
4522
+ m(this, "_parentPath"), m(this, "userId"), m(this, "remoteUserId"), m(this, "id"), m(this, "sdkAppId"), m(this, "type"), m(this, "isLocal"), this.id = t.id, this.userId = t.userId, this.sdkAppId = t.sdkAppId, this.remoteUserId = t.remoteUserId, this.isLocal = !VC(t.isLocal) || t.isLocal, this.type = this.isLocal ? "" : t.type;
4523
4523
  }
4524
4524
  getFullId() {
4525
4525
  return this._parentPath && this.id ? "".concat(this._parentPath, "-").concat(this.id) : this._parentPath ? this._parentPath : this.id;
@@ -4546,7 +4546,7 @@ a=extmap-allow-mixed`) !== -1) {
4546
4546
  if (typeof s == "number") return s === 0;
4547
4547
  if (typeof s == "string" || typeof s == "function" || Array.isArray(s)) return s.length === 0;
4548
4548
  if (s instanceof Error) return s.message === "";
4549
- if (F1(s)) switch (Object.prototype.toString.call(s)) {
4549
+ if (FC(s)) switch (Object.prototype.toString.call(s)) {
4550
4550
  case "[object File]":
4551
4551
  case "[object Map]":
4552
4552
  case "[object Set]":
@@ -4574,8 +4574,8 @@ a=extmap-allow-mixed`) !== -1) {
4574
4574
  for (var t = arguments.length, i = new Array(t), r = 0; r < t; r++) i[r] = arguments[r];
4575
4575
  this.log(4, i);
4576
4576
  }
4577
- }, B1 = {};
4578
- ln(B1, { ANDROID_VERSION: () => vh, CHROME_MAJOR_VERSION: () => nr, CHROME_VERSION: () => h0, EDGE_VERSION: () => qg, EDG_MAJOR_VERSION: () => G1, EDG_VERSION: () => Xg, ELECTRON_MAJOR_VERSION: () => Y1, FIREFOX_MAJOR_VERSION: () => Eh, FIREFOX_VERSION: () => Yg, HUAWEI_VERSION: () => l0, IE_VERSION: () => AB, IOS_MAIN_VERSION: () => Sr, IOS_VERSION: () => sr, IPADQQB_VERSION: () => n0, IS_ANDROID: () => xt, IS_ANDROID_WEBVIEW: () => wB, IS_ANY_SAFARI: () => Ys, IS_CHROME: () => Dh, IS_CHROME_OS: () => s0, IS_CHROMIUM_128_TO_143: () => bo, IS_CHROMIUM_BASE: () => rr, IS_DESKTOP_IOS_CHROME: () => Q1, IS_EDG: () => mc, IS_EDGE: () => Ro, IS_ELECTRON: () => CB, IS_FIREFOX: () => lt, IS_HEADLESS_CHROME: () => J1, IS_HONOR: () => K1, IS_HUAWEI: () => o0, IS_HUAWEIBROWSER: () => bh, IS_IE: () => j1, IS_IE8: () => RB, IS_IOS: () => Wt, IS_IOS_13_OR_14: () => X1, IS_IOS_15_1: () => q1, IS_IOS_CHROME: () => Tc, IS_IPAD: () => Io, IS_IPADQQB: () => Rh, IS_IPAD_PRO: () => Jg, IS_IPHONE: () => Ks, IS_IPOD: () => W1, IS_LINUX: () => vc, IS_LOCAL: () => Xs, IS_MAC: () => $n, IS_MACQQB: () => Ih, IS_MIBROWSER: () => Ah, IS_MQQB: () => _c, IS_NATIVE_ANDROID: () => IB, IS_OLD_ANDROID: () => SB, IS_OPENHARMONY: () => yc, IS_OPPOBROWSER: () => Ec, IS_SAFARI: () => $t, IS_SAFARI_15_1: () => DB, IS_SAMSUNGBROWSER: () => Ch, IS_SOGOU: () => Th, IS_SOGOUM: () => yh, IS_TBS: () => Ur, IS_UCBROWSER: () => z1, IS_VIVOBROWSER: () => kh, IS_WECHAT: () => Js, IS_WIN: () => Ao, IS_WQQB: () => Sh, IS_WX: () => bB, IS_X5MQQB: () => fc, IS_XWEB: () => Zn, MACQQB_VERSION: () => r0, MI_VERSION: () => a0, MQQB_VERSION: () => gc, OPENHARMONY_VERSION: () => kB, OPPO_VERSION: () => u0, SAFARI_VERSION: () => qs, SAMSUNG_VERSION: () => c0, SOGOUM_VERSION: () => Qg, SOGOU_VERSION: () => Zg, TBS_VERSION: () => $g, UA_DATA_STRING: () => pn, USER_AGENT: () => ir, VIVO_VERSION: () => d0, WECHAT_VERSION: () => t0, WQQB_VERSION: () => i0, XWEB_VERSION: () => e0, browserInfo: () => es, getBrowserCoreNumber: () => tC, getBrowserInfo: () => Z1, getChromeMajorVersion: () => wh, getDeviceModel: () => ko, getDeviceModelFromUA: () => g0, getGPUInfo: () => Co, getOSName: () => v0, getOSNumber: () => Ph, getOSString: () => wo, getOSType: () => OB, getTerminalType: () => iC, getUserAgentData: () => Nh, isAMDGPU: () => $1, isAppleSiliconGPU: () => PB, isLocalStorageEnabled: () => Qs, isMobile: () => f0, isNvidiaGPU: () => NB, isRealIOS: () => pc, isVersionLargerThan: () => m0, isVersionSmallerThan: () => p0 });
4577
+ }, BC = {};
4578
+ ln(BC, { ANDROID_VERSION: () => vh, CHROME_MAJOR_VERSION: () => nr, CHROME_VERSION: () => h0, EDGE_VERSION: () => qg, EDG_MAJOR_VERSION: () => GC, EDG_VERSION: () => Xg, ELECTRON_MAJOR_VERSION: () => YC, FIREFOX_MAJOR_VERSION: () => Eh, FIREFOX_VERSION: () => Yg, HUAWEI_VERSION: () => l0, IE_VERSION: () => AB, IOS_MAIN_VERSION: () => Sr, IOS_VERSION: () => sr, IPADQQB_VERSION: () => n0, IS_ANDROID: () => xt, IS_ANDROID_WEBVIEW: () => wB, IS_ANY_SAFARI: () => Ys, IS_CHROME: () => Dh, IS_CHROME_OS: () => s0, IS_CHROMIUM_128_TO_143: () => bo, IS_CHROMIUM_BASE: () => rr, IS_DESKTOP_IOS_CHROME: () => QC, IS_EDG: () => mc, IS_EDGE: () => Ro, IS_ELECTRON: () => CB, IS_FIREFOX: () => lt, IS_HEADLESS_CHROME: () => JC, IS_HONOR: () => KC, IS_HUAWEI: () => o0, IS_HUAWEIBROWSER: () => bh, IS_IE: () => jC, IS_IE8: () => RB, IS_IOS: () => Wt, IS_IOS_13_OR_14: () => XC, IS_IOS_15_1: () => qC, IS_IOS_CHROME: () => Tc, IS_IPAD: () => Io, IS_IPADQQB: () => Rh, IS_IPAD_PRO: () => Jg, IS_IPHONE: () => Ks, IS_IPOD: () => WC, IS_LINUX: () => vc, IS_LOCAL: () => Xs, IS_MAC: () => $n, IS_MACQQB: () => Ih, IS_MIBROWSER: () => Ah, IS_MQQB: () => _c, IS_NATIVE_ANDROID: () => IB, IS_OLD_ANDROID: () => SB, IS_OPENHARMONY: () => yc, IS_OPPOBROWSER: () => Ec, IS_SAFARI: () => $t, IS_SAFARI_15_1: () => DB, IS_SAMSUNGBROWSER: () => Ch, IS_SOGOU: () => Th, IS_SOGOUM: () => yh, IS_TBS: () => Ur, IS_UCBROWSER: () => zC, IS_VIVOBROWSER: () => kh, IS_WECHAT: () => Js, IS_WIN: () => Ao, IS_WQQB: () => Sh, IS_WX: () => bB, IS_X5MQQB: () => fc, IS_XWEB: () => Zn, MACQQB_VERSION: () => r0, MI_VERSION: () => a0, MQQB_VERSION: () => gc, OPENHARMONY_VERSION: () => kB, OPPO_VERSION: () => u0, SAFARI_VERSION: () => qs, SAMSUNG_VERSION: () => c0, SOGOUM_VERSION: () => Qg, SOGOU_VERSION: () => Zg, TBS_VERSION: () => $g, UA_DATA_STRING: () => pn, USER_AGENT: () => ir, VIVO_VERSION: () => d0, WECHAT_VERSION: () => t0, WQQB_VERSION: () => i0, XWEB_VERSION: () => e0, browserInfo: () => es, getBrowserCoreNumber: () => t1, getBrowserInfo: () => ZC, getChromeMajorVersion: () => wh, getDeviceModel: () => ko, getDeviceModelFromUA: () => g0, getGPUInfo: () => Co, getOSName: () => v0, getOSNumber: () => Ph, getOSString: () => wo, getOSType: () => OB, getTerminalType: () => i1, getUserAgentData: () => Nh, isAMDGPU: () => $C, isAppleSiliconGPU: () => PB, isLocalStorageEnabled: () => Qs, isMobile: () => f0, isNvidiaGPU: () => NB, isRealIOS: () => pc, isVersionLargerThan: () => m0, isVersionSmallerThan: () => p0 });
4579
4579
  var ir = typeof navigator > "u" ? "" : navigator.userAgent, Je = (e) => new RegExp(e, "i").test(ir), Ht = (e) => {
4580
4580
  if (Je(e)) {
4581
4581
  let t = new RegExp("".concat(e, "\\/([\\d.]+)")), i = ir.match(t);
@@ -4588,7 +4588,7 @@ a=extmap-allow-mixed`) !== -1) {
4588
4588
  if (i && i[1]) return parseFloat(i[1]);
4589
4589
  }
4590
4590
  return NaN;
4591
- }, H1 = /AppleWebKit\/([\d.]+)/i.exec(ir), TB = H1 ? parseFloat(H1[1]) : NaN, Io = Je("iPad"), Jg = typeof navigator < "u" && navigator.maxTouchPoints && navigator.maxTouchPoints > 2 && Je("Macintosh"), Ks = Je("iPhone") && !Io, W1 = Je("iPod"), Wt = Ks || Io || W1 || Jg, pc = () => {
4591
+ }, HC = /AppleWebKit\/([\d.]+)/i.exec(ir), TB = HC ? parseFloat(HC[1]) : NaN, Io = Je("iPad"), Jg = typeof navigator < "u" && navigator.maxTouchPoints && navigator.maxTouchPoints > 2 && Je("Macintosh"), Ks = Je("iPhone") && !Io, WC = Je("iPod"), Wt = Ks || Io || WC || Jg, pc = () => {
4592
4592
  try {
4593
4593
  return Wt && navigator.maxTouchPoints > 1 && navigator.vendor.includes("Apple");
4594
4594
  } catch {
@@ -4604,13 +4604,13 @@ a=extmap-allow-mixed`) !== -1) {
4604
4604
  }
4605
4605
  }
4606
4606
  return NaN;
4607
- })(), SB = xt && Je("webkit") && vh < 2.3, IB = xt && vh < 5 && TB < 537, lt = Je("Firefox"), Yg = Ht("Firefox"), Eh = gh("Firefox"), Ro = Je("Edge"), qg = Ht("Edge"), mc = Je("Edg"), Xg = Ht("Edg"), G1 = gh("Edg"), yh = Je("SogouMobileBrowser"), Qg = Ht("SogouMobileBrowser"), Th = Je("MetaSr\\s"), Zg = Ht("MetaSr\\s"), Ur = Je("TBS"), $g = Ht("TBS"), Zn = Je("XWEB"), e0 = Ht("XWEB"), RB = Je("MSIE\\s8\\.0"), j1 = Je("MSIE\\/\\d+"), AB = (function() {
4608
- if (j1) {
4607
+ })(), SB = xt && Je("webkit") && vh < 2.3, IB = xt && vh < 5 && TB < 537, lt = Je("Firefox"), Yg = Ht("Firefox"), Eh = gh("Firefox"), Ro = Je("Edge"), qg = Ht("Edge"), mc = Je("Edg"), Xg = Ht("Edg"), GC = gh("Edg"), yh = Je("SogouMobileBrowser"), Qg = Ht("SogouMobileBrowser"), Th = Je("MetaSr\\s"), Zg = Ht("MetaSr\\s"), Ur = Je("TBS"), $g = Ht("TBS"), Zn = Je("XWEB"), e0 = Ht("XWEB"), RB = Je("MSIE\\s8\\.0"), jC = Je("MSIE\\/\\d+"), AB = (function() {
4608
+ if (jC) {
4609
4609
  let e = /MSIE\s(\d+)\.\d/.exec(ir), t = e && parseFloat(e[1]);
4610
4610
  return !t && /Trident\/7.0/i.test(ir) && /rv:11.0/.test(ir) && (t = 11), t;
4611
4611
  }
4612
4612
  return NaN;
4613
- })(), Js = Je("(micromessenger|webbrowser)"), t0 = Ht("MicroMessenger"), fc = !Ur && Je("MQQBrowser") && Je("COVC"), _c = !Ur && Je("MQQBrowser") && !Je("COVC"), gc = _c || fc ? Ht("MQQBrowser") : "", Sh = !Ur && Je(" QQBrowser"), i0 = Ht(" QQBrowser"), Ih = !Ur && Je("QQBrowserLite"), r0 = Ht("QQBrowserLite"), Rh = !Ur && Je("MQBHD"), n0 = Ht("MQBHD"), Ao = Je("Windows"), $n = !Wt && Je("MAC OS X"), vc = !xt && Je("Linux"), s0 = Je("CrOS"), bB = Je("MicroMessenger"), z1 = Je("UCBrowser"), CB = Je("Electron"), Ah = Je("MiuiBrowser"), a0 = Ht("MiuiBrowser"), bh = Je("HuaweiBrowser"), o0 = Je("Huawei") || Je("HUAWEI"), K1 = Je("Honor") || Je("HONOR"), l0 = Ht("HuaweiBrowser"), Ch = Je("SamsungBrowser"), c0 = Ht("SamsungBrowser"), Ec = Je("HeyTapBrowser"), u0 = Ht("HeyTapBrowser"), kh = Je("VivoBrowser"), d0 = Ht("VivoBrowser"), yc = Je("OpenHarmony"), kB = Ht("OpenHarmony"), wh = () => gh("Chrome"), Tc = Je("CriOS"), rr = Je("Chrome"), Dh = !Ro && !Th && !yh && !Ur && !Zn && !mc && !Sh && !Ah && !bh && !Ch && !Ec && !kh && rr, J1 = Je("HeadlessChrome"), nr = wh(), bo = rr && nr >= 128 && nr <= 143, h0 = Ht("Chrome"), Y1 = gh("Electron"), $t = !rr && !_c && !fc && !Ih && !Rh && Je("Safari"), Ys = $t || Wt, qs = Ht("Version"), wB = /Android.*(wv|.0.0.0)/.test(ir), sr = (() => {
4613
+ })(), Js = Je("(micromessenger|webbrowser)"), t0 = Ht("MicroMessenger"), fc = !Ur && Je("MQQBrowser") && Je("COVC"), _c = !Ur && Je("MQQBrowser") && !Je("COVC"), gc = _c || fc ? Ht("MQQBrowser") : "", Sh = !Ur && Je(" QQBrowser"), i0 = Ht(" QQBrowser"), Ih = !Ur && Je("QQBrowserLite"), r0 = Ht("QQBrowserLite"), Rh = !Ur && Je("MQBHD"), n0 = Ht("MQBHD"), Ao = Je("Windows"), $n = !Wt && Je("MAC OS X"), vc = !xt && Je("Linux"), s0 = Je("CrOS"), bB = Je("MicroMessenger"), zC = Je("UCBrowser"), CB = Je("Electron"), Ah = Je("MiuiBrowser"), a0 = Ht("MiuiBrowser"), bh = Je("HuaweiBrowser"), o0 = Je("Huawei") || Je("HUAWEI"), KC = Je("Honor") || Je("HONOR"), l0 = Ht("HuaweiBrowser"), Ch = Je("SamsungBrowser"), c0 = Ht("SamsungBrowser"), Ec = Je("HeyTapBrowser"), u0 = Ht("HeyTapBrowser"), kh = Je("VivoBrowser"), d0 = Ht("VivoBrowser"), yc = Je("OpenHarmony"), kB = Ht("OpenHarmony"), wh = () => gh("Chrome"), Tc = Je("CriOS"), rr = Je("Chrome"), Dh = !Ro && !Th && !yh && !Ur && !Zn && !mc && !Sh && !Ah && !bh && !Ch && !Ec && !kh && rr, JC = Je("HeadlessChrome"), nr = wh(), bo = rr && nr >= 128 && nr <= 143, h0 = Ht("Chrome"), YC = gh("Electron"), $t = !rr && !_c && !fc && !Ih && !Rh && Je("Safari"), Ys = $t || Wt, qs = Ht("Version"), wB = /Android.*(wv|.0.0.0)/.test(ir), sr = (() => {
4614
4614
  if (Jg) return qs;
4615
4615
  if (Wt) {
4616
4616
  let e = ir.match(/OS (\d+)_(\d+)/i);
@@ -4639,10 +4639,10 @@ a=extmap-allow-mixed`) !== -1) {
4639
4639
  }
4640
4640
  return i;
4641
4641
  }
4642
- var Sr = Number(sr.split(".")[0]), DB = qs === "15.1", q1 = sr === "15.1", X1 = (() => {
4642
+ var Sr = Number(sr.split(".")[0]), DB = qs === "15.1", qC = sr === "15.1", XC = (() => {
4643
4643
  let e = Number(sr.split(".")[0]);
4644
4644
  return e === 14 || e === 13;
4645
- })(), Q1 = Tc && qs === "11.1.1", Xs = typeof location < "u" && (location.protocol === "file:" || location.hostname === "localhost" || location.hostname === "127.0.0.1"), Qs = /* @__PURE__ */ (() => {
4645
+ })(), QC = Tc && qs === "11.1.1", Xs = typeof location < "u" && (location.protocol === "file:" || location.hostname === "localhost" || location.hostname === "127.0.0.1"), Qs = /* @__PURE__ */ (() => {
4646
4646
  let e;
4647
4647
  return () => {
4648
4648
  if (e === void 0) try {
@@ -4652,8 +4652,8 @@ a=extmap-allow-mixed`) !== -1) {
4652
4652
  }
4653
4653
  return e;
4654
4654
  };
4655
- })(), es = Z1();
4656
- function Z1() {
4655
+ })(), es = ZC();
4656
+ function ZC() {
4657
4657
  let e = /* @__PURE__ */ new Map([[lt, ["Firefox", Yg]], [mc, ["Edg", Xg]], [Dh, ["Chrome", h0]], [Tc, ["ChiOS", Ht("CriOS")]], [$t && !Tc, ["Safari", qs]], [Ur, ["TBS", $g]], [Zn, ["XWEB", e0]], [Js && Ks, ["WeChat", t0]], [Sh, ["QQ(Win)", i0]], [_c, ["QQ(Mobile)", gc]], [fc, ["QQ(Mobile X5)", gc]], [Ih, ["QQ(Mac)", r0]], [Rh, ["QQ(iPad)", n0]], [Ah, ["MI", a0]], [bh, ["HW", l0]], [Ch, ["Samsung", c0]], [Ec, ["OPPO", u0]], [kh, ["VIVO", d0]], [Ro, ["EDGE", qg]], [yh, ["SogouMobile", Qg]], [Th, ["Sogou", Zg]]]), t = "unknown", i = "unknown";
4658
4658
  return e.has(!0) && ([t, i] = e.get(!0)), { name: t, version: i };
4659
4659
  }
@@ -4689,7 +4689,7 @@ a=extmap-allow-mixed`) !== -1) {
4689
4689
  return "";
4690
4690
  }
4691
4691
  }
4692
- function $1() {
4692
+ function $C() {
4693
4693
  try {
4694
4694
  let e = Co();
4695
4695
  return e.includes("AMD") || e.includes("ATI");
@@ -4719,26 +4719,26 @@ a=extmap-allow-mixed`) !== -1) {
4719
4719
  let e = ir.match(/;\s*([^;)]+)\s+Build\//);
4720
4720
  return e != null && e[1] ? e[1].trim() : null;
4721
4721
  }
4722
- var eC = /* @__PURE__ */ new Map([[xt, "Android"], [Wt, "iOS"], [Ao, "Windows"], [$n, "MacOS"], [vc, "Linux"], [s0, "ChromeOS"]]), v0 = function() {
4723
- return eC.get(!0) ? eC.get(!0) : yt ? yt.platform : "unknown";
4722
+ var e1 = /* @__PURE__ */ new Map([[xt, "Android"], [Wt, "iOS"], [Ao, "Windows"], [$n, "MacOS"], [vc, "Linux"], [s0, "ChromeOS"]]), v0 = function() {
4723
+ return e1.get(!0) ? e1.get(!0) : yt ? yt.platform : "unknown";
4724
4724
  };
4725
4725
  function Ph() {
4726
4726
  return Ao ? 1 : xt ? 2 : $n ? 3 : Wt ? 4 : vc ? 5 : s0 ? 6 : yc ? 7 : 0;
4727
4727
  }
4728
- function tC() {
4728
+ function t1() {
4729
4729
  return Js || Zn ? 4 : rr ? 1 : $t ? 2 : lt ? 3 : 0;
4730
4730
  }
4731
4731
  var wo = () => {
4732
4732
  let e = v0();
4733
4733
  return yt != null && yt.platformVersion ? e += "/".concat(yt.platformVersion) : Wt ? e += "/".concat(sr) : xt && (e += "/".concat(vh)), e += "/".concat(es.name, "/").concat($t && !Tc ? es.version : es.version.split(".")[0]), yt != null && yt.architecture && (e += "/".concat(yt.architecture)), e;
4734
4734
  };
4735
- function iC() {
4735
+ function i1() {
4736
4736
  return xt ? 4 : Ks ? 2 : Io ? 3 : $n ? 12 : Ao ? 5 : vc ? 13 : yc ? 22 : 1;
4737
4737
  }
4738
4738
  function OB() {
4739
4739
  return xt ? "Android" : Ks ? "iPhone" : Io ? "iPad" : $n ? "Mac" : Ao ? "Windows" : vc ? "Linux" : "unknown";
4740
4740
  }
4741
- var be, $ = new (Qt(Ri(), 1)).default(), rC = ((be = rC || {}).ROOM_DESTROY = "1", be.JOIN_START = "21", be.JOIN_SCHEDULE_SUCCESS = "22", be.JOIN_SIGNAL_CONNECTION_START = "23", be.JOIN_SIGNAL_CONNECTION_END = "24", be.JOIN_SEND_CMD = "25", be.JOIN_RECEIVED_CMD_RES = "26", be.JOIN_SUCCESS = "27", be.JOIN_FAILED = "28", be.LEAVE_START = "51", be.LEAVE_SEND_CMD = "52", be.LEAVE_SUCCESS = "53", be.PUBLISH_START = "61", be.SEND_FIRST_VIDEO_FRAME = "62", be.PUBLISH_FAILED = "63", be.SUBSCRIBE_START = "81", be.SUBSCRIBE_SUCCESS = "82", be.SUBSCRIBE_FAILED = "84", be.UNSUBSCRIBE_SUCCESS = "83", be.LOCAL_TRACK_CAPTURE_START = "101", be.LOCAL_TRACK_CAPTURE_SUCCESS = "102", be.LOCAL_TRACK_CAPTURE_FAILED = "103", be.LOCAL_TRACK_PUBLISHED = "104", be.LOCAL_TRACK_UNPUBLISHED = "105", be.LOCAL_TRACK_REPLACED = "106", be.SWITCH_DEVICE_SUCCESS = "107", be.TRACK_MUTED = "108", be.TRACK_UNMUTED = "109", be.REMOTE_TRACK_SUBSCRIBED = "110", be.REMOTE_TRACK_UNSUBSCRIBED = "111", be.LOCAL_TRACK_RECAPTURE = "112", be.LOCAL_AUDIO_STARTED = "113", be.LOCAL_AUDIO_STOPPED = "114", be.REMOTE_AUDIO_STARTED = "115", be.REMOTE_AUDIO_STOPPED = "116", be.PLAY_TRACK_START = "151", be.PLAYER_STATE_CHANGED = "152", be.VIDEO_LOADED_DATA = "153", be.AUTOPLAY_DIALOG_CLICK_CONFIRM = "154", be.AUDIO_CONTEXT_LONG_SUSPENDED = "155", be.REMOTE_VIDEO_PLAY_START = "156", be.REMOTE_VIDEO_PLAY_FINISH = "157", be.SIGNAL_CONNECTION_STATE_CHANGED = "201", be.PEER_CONNECTION_STATE_CHANGED = "202", be.SINGLE_CONNECTION_STAT = "203", be.SPC_RECONNECTED = "204", be.HEARTBEAT_REPORT = "251", be.RECEIVED_PUBLISHED_USER_LIST = "252", be.REMOTE_PUBLISH_STATE_CHANGED = "253", be.AUDIO_LEVEL_INTERVAL = "260", be.NETWORK_QUALITY = "261", be.VIDEO_CODEC_IMPLEMENTATION_CHANGED = "262", be.QUALITY_LIMITATION_CHANGED = "263", be.LOG = "264", be.AUDIO_PROCESSOR_DEBUG = "265", be.SSO_SWITCH = "266", be.SEI_MESSAGE = "267", be.USER_PAUSE_IN_PIP = "268", be.USER_RESUME_IN_PIP = "269", be.ENTER_PICTURE_IN_PICTURE = "270", be.LEAVE_PICTURE_IN_PICTURE = "271", be.SWITCH_ROOM_START = "401", be.SWITCH_ROOM_SUCCESS = "407", be.SWITCH_ROOM_FAILED = "408", be), ie = rC, Sc = new class {
4741
+ var be, $ = new (Qt(Ri(), 1)).default(), r1 = ((be = r1 || {}).ROOM_DESTROY = "1", be.JOIN_START = "21", be.JOIN_SCHEDULE_SUCCESS = "22", be.JOIN_SIGNAL_CONNECTION_START = "23", be.JOIN_SIGNAL_CONNECTION_END = "24", be.JOIN_SEND_CMD = "25", be.JOIN_RECEIVED_CMD_RES = "26", be.JOIN_SUCCESS = "27", be.JOIN_FAILED = "28", be.LEAVE_START = "51", be.LEAVE_SEND_CMD = "52", be.LEAVE_SUCCESS = "53", be.PUBLISH_START = "61", be.SEND_FIRST_VIDEO_FRAME = "62", be.PUBLISH_FAILED = "63", be.SUBSCRIBE_START = "81", be.SUBSCRIBE_SUCCESS = "82", be.SUBSCRIBE_FAILED = "84", be.UNSUBSCRIBE_SUCCESS = "83", be.LOCAL_TRACK_CAPTURE_START = "101", be.LOCAL_TRACK_CAPTURE_SUCCESS = "102", be.LOCAL_TRACK_CAPTURE_FAILED = "103", be.LOCAL_TRACK_PUBLISHED = "104", be.LOCAL_TRACK_UNPUBLISHED = "105", be.LOCAL_TRACK_REPLACED = "106", be.SWITCH_DEVICE_SUCCESS = "107", be.TRACK_MUTED = "108", be.TRACK_UNMUTED = "109", be.REMOTE_TRACK_SUBSCRIBED = "110", be.REMOTE_TRACK_UNSUBSCRIBED = "111", be.LOCAL_TRACK_RECAPTURE = "112", be.LOCAL_AUDIO_STARTED = "113", be.LOCAL_AUDIO_STOPPED = "114", be.REMOTE_AUDIO_STARTED = "115", be.REMOTE_AUDIO_STOPPED = "116", be.PLAY_TRACK_START = "151", be.PLAYER_STATE_CHANGED = "152", be.VIDEO_LOADED_DATA = "153", be.AUTOPLAY_DIALOG_CLICK_CONFIRM = "154", be.AUDIO_CONTEXT_LONG_SUSPENDED = "155", be.REMOTE_VIDEO_PLAY_START = "156", be.REMOTE_VIDEO_PLAY_FINISH = "157", be.SIGNAL_CONNECTION_STATE_CHANGED = "201", be.PEER_CONNECTION_STATE_CHANGED = "202", be.SINGLE_CONNECTION_STAT = "203", be.SPC_RECONNECTED = "204", be.HEARTBEAT_REPORT = "251", be.RECEIVED_PUBLISHED_USER_LIST = "252", be.REMOTE_PUBLISH_STATE_CHANGED = "253", be.AUDIO_LEVEL_INTERVAL = "260", be.NETWORK_QUALITY = "261", be.VIDEO_CODEC_IMPLEMENTATION_CHANGED = "262", be.QUALITY_LIMITATION_CHANGED = "263", be.LOG = "264", be.AUDIO_PROCESSOR_DEBUG = "265", be.SSO_SWITCH = "266", be.SEI_MESSAGE = "267", be.USER_PAUSE_IN_PIP = "268", be.USER_RESUME_IN_PIP = "269", be.ENTER_PICTURE_IN_PICTURE = "270", be.LEAVE_PICTURE_IN_PICTURE = "271", be.SWITCH_ROOM_START = "401", be.SWITCH_ROOM_SUCCESS = "407", be.SWITCH_ROOM_FAILED = "408", be), ie = r1, Sc = new class {
4742
4742
  constructor() {
4743
4743
  m(this, "enable", !1), m(this, "ssoFailCount", 0), $.on("22", (e) => {
4744
4744
  let { schedule: t } = e;
@@ -4752,7 +4752,7 @@ a=extmap-allow-mixed`) !== -1) {
4752
4752
  handleUploadFailed() {
4753
4753
  this.ssoFailCount++, this.ssoFailCount > 3 && $.emit("266", { enable: !1 });
4754
4754
  }
4755
- }(), nC = class SN {
4755
+ }(), n1 = class SN {
4756
4756
  constructor() {
4757
4757
  m(this, "_isEnableUploadLog", !0), m(this, "_localJoinedUser", /* @__PURE__ */ new Map()), m(this, "_queue", []), m(this, "_timeoutId", -1), m(this, "_logLevel", 1), m(this, "_logLevelToUpload", 2), !th && !cg && (this.checkURLParam(), this.installEvents());
4758
4758
  }
@@ -4894,8 +4894,8 @@ a=extmap-allow-mixed`) !== -1) {
4894
4894
  return this._queue;
4895
4895
  }
4896
4896
  };
4897
- m(nC, "PRINT_LOG_TAG", !(Wt || xt || J1));
4898
- var fe = new nC(), sC = function() {
4897
+ m(n1, "PRINT_LOG_TAG", !(Wt || xt || JC));
4898
+ var fe = new n1(), s1 = function() {
4899
4899
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
4900
4900
  let t = 16 * Math.random() | 0;
4901
4901
  return (e == "x" ? t : 3 & t | 8).toString(16);
@@ -4963,9 +4963,9 @@ a=extmap-allow-mixed`) !== -1) {
4963
4963
  }
4964
4964
  }(), Ic = {};
4965
4965
  ln(Ic, { HTTPS_API: () => GB, IS_GET_CAPABILITIES_FROM_INPUTDEVICE_SUPPORTED: () => m2, IS_GET_CAPABILITIES_SUPPORTED: () => p2, IS_GET_SETTINGS_SUPPORTED: () => Po, IS_GET_SYNCHRONIZATION_SOURCES_SUPPORTED: () => h2, IS_INSERTABLE_STREAM_SUPPORTED: () => $s, IS_JITTER_BUFFER_TARGET_SUPPORTED: () => Uh, IS_RTC_RTP_SENDER_SUPPORTED: () => wc, IS_SCRIPT_TRANSFORM_SUPPORTED: () => xh, IS_SEI_SUPPORTED: () => M0, IS_SPC_SUPPORTED: () => kc, basis: () => KB, capabilityCheck: () => y2, checkSystemRequirementsInternal: () => k0, decodeSupportStatus: () => C0, detectVideoCodecCapabilities: () => I2, detectVideoDecoderCapabilities: () => A2, detectVideoEncoderCapabilities: () => R2, encodeSupportStatus: () => b0, getBrowserInfo: () => FB, getDisplayResolution: () => a2, getH264ProfileLevelIds: () => b2, isAddTransceiverSupported: () => Rr, isBrowserSupported: () => I0, isCanvasCaptureStreamAPISupported: () => c2, isCanvasSmallStreamSupported: () => N0, isGetReceiversSupported: () => Lh, isGetSendersSupported: () => Cc, isGetTransceiversSupported: () => No, isGetUserMediaSupported: () => o2, isMediaDevicesSupported: () => R0, isMediaSessionSupported: () => f2, isMediaStreamTrackGeneratorSupported: () => BB, isMediaStreamTrackProcessorSupported: () => A0, isReplaceTrackSupported: () => d2, isRequestVideoFrameCallbackSupported: () => Dc, isSIMDSupported: () => g2, isScaleResolutionDownBySupported: () => u2, isScreenCaptureApiAvailable: () => Mh, isSelectedCandidatePair: () => bc, isSetParametersSupported: () => O0, isSetSinkIdSupported: () => WB, isSmallStreamSupported: () => P0, isStopTransceiverSupported: () => zB, isTRTCSupported: () => HB, isUnifiedPlanDefault: () => jB, isUsedInHttpProtocol: () => Zs, isWebAudioSupported: () => l2, isWebCodecSupported: () => x0, isWebCodecsSupported: () => Oh, isWebRTCSupported: () => L0, isWebTransportSupported: () => _2 });
4966
- var aC = {};
4967
- ln(aC, { AUDIO_LEVEL_SCALE: () => Vr, AlphaStitchingType: () => S0, AudioCodecPipelineType: () => GC, AudioDecoderDowngradeState: () => SC, AudioPlayerMode: () => UC, AudioType: () => CC, BASIC_TYPE: () => HC, BannedReason: () => VC, CONNECTION_CLOSED_REASON: () => cC, CheckPermissionType: () => qC, ClientEvent: () => uC, CodecType: () => jC, ConnectionEvent: () => lC, ConnectionState: () => TC, DECODE_FAILED_ERROR_CODE: () => zC, DenoiserMode: () => BC, DeviceType: () => XC, FacingMode: () => LC, FrameWorkType: () => oC, LeaveReason: () => FC, LocalTrackEvent: () => hC, MULTI_VIDEO_DATA_TYPE: () => NC, MediaType: () => bC, MediaTypeLabel: () => MB, MonitorEventId: () => PC, MutedFlag: () => gC, NetworkQualityValue: () => OC, PlayerState: () => pC, ReceiveMode: () => MC, RemoteStreamType: () => DC, RemoteTrackEvent: () => _C, RoomEvent: () => mC, SMALL_MODE: () => YC, SceneNumber: () => vC, StreamEvent: () => dC, StreamType: () => wC, SubscribeMediaType: () => LB, TIMER_TYPE: () => JC, TRACK_ACTION: () => AC, TRACK_KIND: () => RC, TrackEvent: () => fC, UserRole: () => yC, UserRoleNumber: () => EC, VideoCodec: () => T0, VideoCodecPipelineType: () => WC, VideoContentHint: () => KC, VideoDecoderDowngradeState: () => IC, VideoPlayerMode: () => xC, VideoType: () => kC });
4968
- var kt, Yt, Ee, y0, Rc, Ai, bt, mn, Do, ui, mi, oC = ((e) => (e[e.WEBRTC = 30] = "WEBRTC", e[e.WASM = 37] = "WASM", e))(oC || {}), lC = ((mi = lC || {}).TRACK_ADDED = "track-added", mi.TRACK_UPDATED = "track-updated", mi.TRACK_SUBSCRIBED = "track-subscribed", mi.STREAM_ADDED = "stream-added", mi.STREAM_REMOVED = "stream-removed", mi.STREAM_UPDATED = "stream-updated", mi.STREAM_PUBLISHED = "stream-published", mi.STREAM_SUBSCRIBED = "stream-subscribed", mi.STREAM_UNSUBSCRIBED = "stream-unsubscribed", mi.STATE_CHANGED = "state-changed", mi.ERROR = "error", mi.CONNECTION_STATE_CHANGED = "connection-state-changed", mi.FIREWALL_RESTRICTION = "firewall-restriction", mi.SEI_MESSAGE = "sei-message", mi.CLOSED = "closed", mi), cC = ((e) => (e.REMOTE_LEAVE = "remote user exitRoom", e.REMOTE_UNPUBLISH = "remote user unpublished", e.LOCAL_LEAVE = "you exitRoom", e.LOCAL_UNPUBLISH = "you unpublished", e.LOCAL_UNSUBSCRIBE = "you unsubscribed", e.SWITCH_ROLE = "you switch role to audience", e))(cC || {}), uC = ((ui = uC || {}).STREAM_ADDED = "stream-added", ui.STREAM_REMOVED = "stream-removed", ui.STREAM_UPDATED = "stream-updated", ui.STREAM_SUBSCRIBED = "stream-subscribed", ui.CONNECTION_STATE_CHANGED = "connection-state-changed", ui.PEER_JOIN = "peer-join", ui.PEER_LEAVE = "peer-leave", ui.MUTE_AUDIO = "mute-audio", ui.MUTE_VIDEO = "mute-video", ui.UNMUTE_AUDIO = "unmute-audio", ui.UNMUTE_VIDEO = "unmute-video", ui.CLIENT_BANNED = "client-banned", ui.NETWORK_QUALITY = "network-quality", ui.AUDIO_VOLUME = "audio-volume", ui.SEI_MESSAGE = "sei-message", ui.ERROR = "error", ui), dC = ((Do = dC || {}).PLAYER_STATE_CHANGED = "player-state-changed", Do.SCREEN_SHARING_STOPPED = "screen-sharing-stopped", Do.CONNECTION_STATE_CHANGED = "connection-state-changed", Do.DEVICE_AUTO_RECOVERED = "device-auto-recovered", Do.ERROR = "error", Do), hC = ((mn = hC || {}).DEVICE_AUTO_RECOVERED = "1", mn.DEVICE_RECOVER_FAILED = "5", mn.DEVICE_CHANGED = "2", mn.ERROR = "3", mn.PUBLISH_STATE_CHANGED = "4", mn.ENCODE_FAILED = "6", mn.TRACK_ENDED = "7", mn.RENDER = "render", mn), pC = ((e) => (e.PAUSED = "PAUSED", e.PLAYING = "PLAYING", e.STOPPED = "STOPPED", e))(pC || {}), mC = ((bt = mC || {}).PEER_JOIN = "peer-join", bt.PEER_LEAVE = "peer-leave", bt.SIGNAL_CONNECTION_STATE_CHANGED = "signal-connection-state-changed", bt.MEDIA_CONNECTION_STATE_CHANGED = "media-connection-state-changed", bt.BANNED = "banned", bt.NETWORK_QUALITY = "network-quality", bt.AUDIO_VOLUME = "audio-volume", bt.SEI_MESSAGE = "sei-message", bt.ERROR = "error", bt.REMOTE_PUBLISH_STATE_CHANGED = "remote-publish-state-changed", bt.REMOTE_PUBLISHED = "remote-published", bt.REMOTE_UNPUBLISHED = "remote-unpublished", bt.FIREWALL_RESTRICTION = "firewall-restriction", bt.HEARTBEAT_REPORT = "heartbeat-report", bt.CUSTOM_MESSAGE = "custom-message", bt.LAYER_DATA = "layerData", bt.FIRST_VIDEO_FRAME = "first-video-frame", bt.DUMP = "dump", bt.AUDIO_FRAME = "audio-frame", bt.SUBSCRIBE_SMALL_VIDEO_CHANGED = "subscribe-small-video-changed", bt.LOCAL_PUBLISH_FLAG_CHANGED = "local-publish-flag-changed", bt.NTP_TIME_UPDATED = "ntp-time-updated", bt.DATA_CHANNEL_MESSAGE = "data-channel-message", bt.ASR_ROBOT_PEER_JOIN = "asr-robot-peer-join", bt.ASR_ROBOT_PEER_LEAVE = "asr-robot-peer-leave", bt), fC = ((e) => (e.PLAYER_STATE_CHANGED = "player-state-changed", e.MUTE = "mute", e.UNMUTE = "unmute", e.ERROR = "error", e.INPUT_MEDIA_TRACK_CHANGED = "input-media-track-changed", e.OUTPUT_MEDIA_TRACK_CHANGED = "output-media-track-changed", e.FIRST_VIDEO_FRAME = "first-video-frame", e.VIDEO_SIZE_CHANGED = "video-size-changed", e))(fC || {}), _C = ((e) => (e.DECODE_FAILED = "decode-failed", e.DECODE_FAILED_DURING_CALL = "decode-failed-during-call", e.DECODE_DOWNGRADE_STATE_CHANGED = "decode-downgrade-state-changed", e.REMOTE_PUBLISH_CHANGED = "remote-publish-changed", e.AUDIO_FRAME_WITH_NTP = "audio-frame-with-ntp", e))(_C || {}), gC = ((Ai = gC || {})[Ai.VIDEO = 1] = "VIDEO", Ai[Ai.SMALL = 2] = "SMALL", Ai[Ai.AUX = 4] = "AUX", Ai[Ai.AUDIO = 8] = "AUDIO", Ai[Ai.VIDEO_MUTE = 16] = "VIDEO_MUTE", Ai[Ai.AUX_MUTE = 32] = "AUX_MUTE", Ai[Ai.AUDIO_MUTE = 64] = "AUDIO_MUTE", Ai), vC = ((e) => (e[e.RTC = 1] = "RTC", e[e.LIVE = 2] = "LIVE", e))(vC || {}), EC = ((e) => (e[e.ANCHOR = 20] = "ANCHOR", e[e.AUDIENCE = 21] = "AUDIENCE", e))(EC || {}), yC = ((e) => (e.ANCHOR = "anchor", e.AUDIENCE = "audience", e))(yC || {}), TC = ((e) => (e.CONNECTED = "CONNECTED", e.DISCONNECTED = "DISCONNECTED", e.CONNECTING = "CONNECTING", e.RECONNECTED = "RECONNECTED", e.RECONNECTING = "RECONNECTING", e))(TC || {}), SC = ((Rc = SC || {}).INITIALIZED = "INITIALIZED", Rc.STARTING = "STARTING", Rc.STARTED = "STARTED", Rc.FAILED = "FAILED", Rc), IC = ((e) => (e.INITIALIZED = "INITIALIZED", e.STARTING = "STARTING", e.STARTED = "STARTED", e.FAILED = "FAILED", e))(IC || {}), RC = ((e) => (e.AUDIO = "audio", e.VIDEO = "video", e.AUXILIARY = "auxVideo", e))(RC || {}), AC = ((e) => (e.ADD = "add", e.REMOVE = "remove", e))(AC || {}), bC = ((e) => (e[e.NULL = 0] = "NULL", e[e.AUDIO = 1] = "AUDIO", e[e.AUX_VIDEO = 2] = "AUX_VIDEO", e[e.BIG_VIDEO = 4] = "BIG_VIDEO", e[e.SMALL_VIDEO = 8] = "SMALL_VIDEO", e))(bC || {}), MB = { 1: "audio", 2: "auxVideo", 4: "video" }, CC = ((y0 = CC || {})[y0.opus = 111] = "opus", y0), kC = ((e) => (e[e.h264 = 100] = "h264", e[e.vp8 = 101] = "vp8", e))(kC || {}), wC = ((e) => (e.Big = "big", e.Small = "small", e))(wC || {}), DC = ((e) => (e.Main = "main", e.Aux = "auxiliary", e))(DC || {}), NC = ((e) => (e[e.MULTI_DATA_AUDIO = 1] = "MULTI_DATA_AUDIO", e[e.MULTI_DATA_BIG_IMG = 2] = "MULTI_DATA_BIG_IMG", e[e.MULTI_DATA_SMALL_IMG = 3] = "MULTI_DATA_SMALL_IMG", e[e.MULTI_DATA_AUX_IMG = 7] = "MULTI_DATA_AUX_IMG", e[e.MULTI_DATA_TYPE_BUTT = 12] = "MULTI_DATA_TYPE_BUTT", e))(NC || {}), PC = ((Ee = PC || {})[Ee.PUBLISH_VIDEO = 32768] = "PUBLISH_VIDEO", Ee[Ee.PUBLISH_AUDIO = 32769] = "PUBLISH_AUDIO", Ee[Ee.UNPUBLISH_VIDEO = 32770] = "UNPUBLISH_VIDEO", Ee[Ee.UNPUBLISH_AUDIO = 32771] = "UNPUBLISH_AUDIO", Ee[Ee.MUTE_AUDIO = 32772] = "MUTE_AUDIO", Ee[Ee.MUTE_VIDEO = 32773] = "MUTE_VIDEO", Ee[Ee.UNMUTE_AUDIO = 32774] = "UNMUTE_AUDIO", Ee[Ee.UNMUTE_VIDEO = 32775] = "UNMUTE_VIDEO", Ee[Ee.SUBSCRIBE_VIDEO = 32776] = "SUBSCRIBE_VIDEO", Ee[Ee.SUBSCRIBE_AUDIO = 32777] = "SUBSCRIBE_AUDIO", Ee[Ee.UNSUBSCRIBE_VIDEO = 32778] = "UNSUBSCRIBE_VIDEO", Ee[Ee.UNSUBSCRIBE_AUDIO = 32779] = "UNSUBSCRIBE_AUDIO", Ee[Ee.SWITCH_CAMERA = 32780] = "SWITCH_CAMERA", Ee[Ee.SWITCH_MICROPHONE = 32781] = "SWITCH_MICROPHONE", Ee[Ee.REPLACE_VIDEO = 32782] = "REPLACE_VIDEO", Ee[Ee.REPLACE_AUDIO = 32783] = "REPLACE_AUDIO", Ee[Ee.MUTE_REMOTE_VIDEO = 32784] = "MUTE_REMOTE_VIDEO", Ee[Ee.MUTE_REMOTE_AUDIO = 32785] = "MUTE_REMOTE_AUDIO", Ee[Ee.UNMUTE_REMOTE_VIDEO = 32786] = "UNMUTE_REMOTE_VIDEO", Ee[Ee.UNMUTE_REMOTE_AUDIO = 32787] = "UNMUTE_REMOTE_AUDIO", Ee[Ee.JOIN = 32788] = "JOIN", Ee[Ee.LEAVE = 32789] = "LEAVE", Ee[Ee.SIGNAL_DISCONNECTED = 32790] = "SIGNAL_DISCONNECTED", Ee[Ee.SIGNAL_CONNECTED = 32791] = "SIGNAL_CONNECTED", Ee[Ee.TRANSPORT_UPLINK_CONNECTED = 32792] = "TRANSPORT_UPLINK_CONNECTED", Ee[Ee.TRANSPORT_DOWNLINK_CONNECTED = 32793] = "TRANSPORT_DOWNLINK_CONNECTED", Ee[Ee.SIGNAl_RECONNECTING = 32794] = "SIGNAl_RECONNECTING", Ee[Ee.SIGNAL_RECONNECT_SUCCESS = 32795] = "SIGNAL_RECONNECT_SUCCESS", Ee[Ee.SIGNAL_RECONNECT_FAIL = 32796] = "SIGNAL_RECONNECT_FAIL", Ee[Ee.TRANSPORT_UPLINK_RECONNECTING = 32797] = "TRANSPORT_UPLINK_RECONNECTING", Ee[Ee.TRANSPORT_UPLINK_RECONNECT_SUCCESS = 32798] = "TRANSPORT_UPLINK_RECONNECT_SUCCESS", Ee[Ee.TRANSPORT_UPLINK_RECONNECT_FAIL = 32799] = "TRANSPORT_UPLINK_RECONNECT_FAIL", Ee[Ee.TRANSPORT_DOWNLINK_RECONNECTING = 32800] = "TRANSPORT_DOWNLINK_RECONNECTING", Ee[Ee.TRANSPORT_DOWNLINK_RECONNECT_SUCCESS = 32801] = "TRANSPORT_DOWNLINK_RECONNECT_SUCCESS", Ee[Ee.TRANSPORT_DOWNLINK_RECONNECT_FAIL = 32802] = "TRANSPORT_DOWNLINK_RECONNECT_FAIL", Ee[Ee.SUBSCRIBE_SMALL_VIDEO = 32803] = "SUBSCRIBE_SMALL_VIDEO", Ee[Ee.UNSUBSCRIBE_SMALL_VIDEO = 32804] = "UNSUBSCRIBE_SMALL_VIDEO", Ee[Ee.PUBLISH_AUX = 32805] = "PUBLISH_AUX", Ee[Ee.UNPUBLISH_AUX = 32806] = "UNPUBLISH_AUX", Ee[Ee.DEVICE_CAPTURE = 2003] = "DEVICE_CAPTURE", Ee[Ee.VIDEO_ENCODER = 4004] = "VIDEO_ENCODER", Ee[Ee.VIDEO_DECODER = 4005] = "VIDEO_DECODER", Ee), OC = ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.EXCELLENT = 1] = "EXCELLENT", e[e.GOOD = 2] = "GOOD", e[e.POOR = 3] = "POOR", e[e.BAD = 4] = "BAD", e[e.VERY_BAD = 5] = "VERY_BAD", e[e.DISCONNECTED = 6] = "DISCONNECTED", e))(OC || {}), MC = ((e) => (e[e.MANUAL = 0] = "MANUAL", e[e.AUTO_AUDIO = 1] = "AUTO_AUDIO", e[e.AUTO_VIDEO = 2] = "AUTO_VIDEO", e[e.AUTO_ALL = 3] = "AUTO_ALL", e))(MC || {}), LC = ((e) => (e.user = "user", e.environment = "environment", e))(LC || {}), xC = ((e) => (e[e.ELEMENT = 0] = "ELEMENT", e[e.CANVAS_FROM_ELEMENT = 1] = "CANVAS_FROM_ELEMENT", e[e.CANVAS_WITHOUT_ELEMENT = 2] = "CANVAS_WITHOUT_ELEMENT", e))(xC || {}), UC = ((e) => (e[e.ELEMENT = 0] = "ELEMENT", e[e.CONTEXT = 1] = "CONTEXT", e))(UC || {}), VC = ((e) => (e.BANNED = "banned", e.KICK = "kick", e.USER_TIME_OUT = "user_time_out", e.ROOM_DISBAND = "room_disband", e))(VC || {}), FC = ((Yt = FC || {})[Yt.USER_EXIT_REASON_TC_USER_EXIT_NORMAL = 0] = "USER_EXIT_REASON_TC_USER_EXIT_NORMAL", Yt[Yt.USER_EXIT_REASON_TC_USER_EXIT_TIMEOUT = 1] = "USER_EXIT_REASON_TC_USER_EXIT_TIMEOUT", Yt[Yt.USER_EXIT_REASON_TC_USER_EXIT_KICKED = 2] = "USER_EXIT_REASON_TC_USER_EXIT_KICKED", Yt[Yt.USER_EXIT_REASON_TC_USER_EXIT_CHANGED = 3] = "USER_EXIT_REASON_TC_USER_EXIT_CHANGED", Yt[Yt.USER_KICK_OUT_CODE_BUSINESS_USER = 4] = "USER_KICK_OUT_CODE_BUSINESS_USER", Yt[Yt.USER_KICK_OUT_CODE_BUSINESS_ROOM = 5] = "USER_KICK_OUT_CODE_BUSINESS_ROOM", Yt[Yt.USER_KICK_OUT_CODE_SERVER_USER = 6] = "USER_KICK_OUT_CODE_SERVER_USER", Yt[Yt.USER_KICK_OUT_CODE_SERVER_ROOM = 7] = "USER_KICK_OUT_CODE_SERVER_ROOM", Yt[Yt.USER_KICK_SESS_EXSIT = 8] = "USER_KICK_SESS_EXSIT", Yt), Vr = 1e8, BC = ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.FAR_FIELD_REDUCTION = 1] = "FAR_FIELD_REDUCTION", e))(BC || {}), LB = class {
4966
+ var a1 = {};
4967
+ ln(a1, { AUDIO_LEVEL_SCALE: () => Vr, AlphaStitchingType: () => S0, AudioCodecPipelineType: () => G1, AudioDecoderDowngradeState: () => S1, AudioPlayerMode: () => U1, AudioType: () => C1, BASIC_TYPE: () => H1, BannedReason: () => V1, CONNECTION_CLOSED_REASON: () => c1, CheckPermissionType: () => q1, ClientEvent: () => u1, CodecType: () => j1, ConnectionEvent: () => l1, ConnectionState: () => T1, DECODE_FAILED_ERROR_CODE: () => z1, DenoiserMode: () => B1, DeviceType: () => X1, FacingMode: () => L1, FrameWorkType: () => o1, LeaveReason: () => F1, LocalTrackEvent: () => h1, MULTI_VIDEO_DATA_TYPE: () => N1, MediaType: () => b1, MediaTypeLabel: () => MB, MonitorEventId: () => P1, MutedFlag: () => g1, NetworkQualityValue: () => O1, PlayerState: () => p1, ReceiveMode: () => M1, RemoteStreamType: () => D1, RemoteTrackEvent: () => _1, RoomEvent: () => m1, SMALL_MODE: () => Y1, SceneNumber: () => v1, StreamEvent: () => d1, StreamType: () => w1, SubscribeMediaType: () => LB, TIMER_TYPE: () => J1, TRACK_ACTION: () => A1, TRACK_KIND: () => R1, TrackEvent: () => f1, UserRole: () => y1, UserRoleNumber: () => E1, VideoCodec: () => T0, VideoCodecPipelineType: () => W1, VideoContentHint: () => K1, VideoDecoderDowngradeState: () => I1, VideoPlayerMode: () => x1, VideoType: () => k1 });
4968
+ var kt, Yt, Ee, y0, Rc, Ai, bt, mn, Do, ui, mi, o1 = ((e) => (e[e.WEBRTC = 30] = "WEBRTC", e[e.WASM = 37] = "WASM", e))(o1 || {}), l1 = ((mi = l1 || {}).TRACK_ADDED = "track-added", mi.TRACK_UPDATED = "track-updated", mi.TRACK_SUBSCRIBED = "track-subscribed", mi.STREAM_ADDED = "stream-added", mi.STREAM_REMOVED = "stream-removed", mi.STREAM_UPDATED = "stream-updated", mi.STREAM_PUBLISHED = "stream-published", mi.STREAM_SUBSCRIBED = "stream-subscribed", mi.STREAM_UNSUBSCRIBED = "stream-unsubscribed", mi.STATE_CHANGED = "state-changed", mi.ERROR = "error", mi.CONNECTION_STATE_CHANGED = "connection-state-changed", mi.FIREWALL_RESTRICTION = "firewall-restriction", mi.SEI_MESSAGE = "sei-message", mi.CLOSED = "closed", mi), c1 = ((e) => (e.REMOTE_LEAVE = "remote user exitRoom", e.REMOTE_UNPUBLISH = "remote user unpublished", e.LOCAL_LEAVE = "you exitRoom", e.LOCAL_UNPUBLISH = "you unpublished", e.LOCAL_UNSUBSCRIBE = "you unsubscribed", e.SWITCH_ROLE = "you switch role to audience", e))(c1 || {}), u1 = ((ui = u1 || {}).STREAM_ADDED = "stream-added", ui.STREAM_REMOVED = "stream-removed", ui.STREAM_UPDATED = "stream-updated", ui.STREAM_SUBSCRIBED = "stream-subscribed", ui.CONNECTION_STATE_CHANGED = "connection-state-changed", ui.PEER_JOIN = "peer-join", ui.PEER_LEAVE = "peer-leave", ui.MUTE_AUDIO = "mute-audio", ui.MUTE_VIDEO = "mute-video", ui.UNMUTE_AUDIO = "unmute-audio", ui.UNMUTE_VIDEO = "unmute-video", ui.CLIENT_BANNED = "client-banned", ui.NETWORK_QUALITY = "network-quality", ui.AUDIO_VOLUME = "audio-volume", ui.SEI_MESSAGE = "sei-message", ui.ERROR = "error", ui), d1 = ((Do = d1 || {}).PLAYER_STATE_CHANGED = "player-state-changed", Do.SCREEN_SHARING_STOPPED = "screen-sharing-stopped", Do.CONNECTION_STATE_CHANGED = "connection-state-changed", Do.DEVICE_AUTO_RECOVERED = "device-auto-recovered", Do.ERROR = "error", Do), h1 = ((mn = h1 || {}).DEVICE_AUTO_RECOVERED = "1", mn.DEVICE_RECOVER_FAILED = "5", mn.DEVICE_CHANGED = "2", mn.ERROR = "3", mn.PUBLISH_STATE_CHANGED = "4", mn.ENCODE_FAILED = "6", mn.TRACK_ENDED = "7", mn.RENDER = "render", mn), p1 = ((e) => (e.PAUSED = "PAUSED", e.PLAYING = "PLAYING", e.STOPPED = "STOPPED", e))(p1 || {}), m1 = ((bt = m1 || {}).PEER_JOIN = "peer-join", bt.PEER_LEAVE = "peer-leave", bt.SIGNAL_CONNECTION_STATE_CHANGED = "signal-connection-state-changed", bt.MEDIA_CONNECTION_STATE_CHANGED = "media-connection-state-changed", bt.BANNED = "banned", bt.NETWORK_QUALITY = "network-quality", bt.AUDIO_VOLUME = "audio-volume", bt.SEI_MESSAGE = "sei-message", bt.ERROR = "error", bt.REMOTE_PUBLISH_STATE_CHANGED = "remote-publish-state-changed", bt.REMOTE_PUBLISHED = "remote-published", bt.REMOTE_UNPUBLISHED = "remote-unpublished", bt.FIREWALL_RESTRICTION = "firewall-restriction", bt.HEARTBEAT_REPORT = "heartbeat-report", bt.CUSTOM_MESSAGE = "custom-message", bt.LAYER_DATA = "layerData", bt.FIRST_VIDEO_FRAME = "first-video-frame", bt.DUMP = "dump", bt.AUDIO_FRAME = "audio-frame", bt.SUBSCRIBE_SMALL_VIDEO_CHANGED = "subscribe-small-video-changed", bt.LOCAL_PUBLISH_FLAG_CHANGED = "local-publish-flag-changed", bt.NTP_TIME_UPDATED = "ntp-time-updated", bt.DATA_CHANNEL_MESSAGE = "data-channel-message", bt.ASR_ROBOT_PEER_JOIN = "asr-robot-peer-join", bt.ASR_ROBOT_PEER_LEAVE = "asr-robot-peer-leave", bt), f1 = ((e) => (e.PLAYER_STATE_CHANGED = "player-state-changed", e.MUTE = "mute", e.UNMUTE = "unmute", e.ERROR = "error", e.INPUT_MEDIA_TRACK_CHANGED = "input-media-track-changed", e.OUTPUT_MEDIA_TRACK_CHANGED = "output-media-track-changed", e.FIRST_VIDEO_FRAME = "first-video-frame", e.VIDEO_SIZE_CHANGED = "video-size-changed", e))(f1 || {}), _1 = ((e) => (e.DECODE_FAILED = "decode-failed", e.DECODE_FAILED_DURING_CALL = "decode-failed-during-call", e.DECODE_DOWNGRADE_STATE_CHANGED = "decode-downgrade-state-changed", e.REMOTE_PUBLISH_CHANGED = "remote-publish-changed", e.AUDIO_FRAME_WITH_NTP = "audio-frame-with-ntp", e))(_1 || {}), g1 = ((Ai = g1 || {})[Ai.VIDEO = 1] = "VIDEO", Ai[Ai.SMALL = 2] = "SMALL", Ai[Ai.AUX = 4] = "AUX", Ai[Ai.AUDIO = 8] = "AUDIO", Ai[Ai.VIDEO_MUTE = 16] = "VIDEO_MUTE", Ai[Ai.AUX_MUTE = 32] = "AUX_MUTE", Ai[Ai.AUDIO_MUTE = 64] = "AUDIO_MUTE", Ai), v1 = ((e) => (e[e.RTC = 1] = "RTC", e[e.LIVE = 2] = "LIVE", e))(v1 || {}), E1 = ((e) => (e[e.ANCHOR = 20] = "ANCHOR", e[e.AUDIENCE = 21] = "AUDIENCE", e))(E1 || {}), y1 = ((e) => (e.ANCHOR = "anchor", e.AUDIENCE = "audience", e))(y1 || {}), T1 = ((e) => (e.CONNECTED = "CONNECTED", e.DISCONNECTED = "DISCONNECTED", e.CONNECTING = "CONNECTING", e.RECONNECTED = "RECONNECTED", e.RECONNECTING = "RECONNECTING", e))(T1 || {}), S1 = ((Rc = S1 || {}).INITIALIZED = "INITIALIZED", Rc.STARTING = "STARTING", Rc.STARTED = "STARTED", Rc.FAILED = "FAILED", Rc), I1 = ((e) => (e.INITIALIZED = "INITIALIZED", e.STARTING = "STARTING", e.STARTED = "STARTED", e.FAILED = "FAILED", e))(I1 || {}), R1 = ((e) => (e.AUDIO = "audio", e.VIDEO = "video", e.AUXILIARY = "auxVideo", e))(R1 || {}), A1 = ((e) => (e.ADD = "add", e.REMOVE = "remove", e))(A1 || {}), b1 = ((e) => (e[e.NULL = 0] = "NULL", e[e.AUDIO = 1] = "AUDIO", e[e.AUX_VIDEO = 2] = "AUX_VIDEO", e[e.BIG_VIDEO = 4] = "BIG_VIDEO", e[e.SMALL_VIDEO = 8] = "SMALL_VIDEO", e))(b1 || {}), MB = { 1: "audio", 2: "auxVideo", 4: "video" }, C1 = ((y0 = C1 || {})[y0.opus = 111] = "opus", y0), k1 = ((e) => (e[e.h264 = 100] = "h264", e[e.vp8 = 101] = "vp8", e))(k1 || {}), w1 = ((e) => (e.Big = "big", e.Small = "small", e))(w1 || {}), D1 = ((e) => (e.Main = "main", e.Aux = "auxiliary", e))(D1 || {}), N1 = ((e) => (e[e.MULTI_DATA_AUDIO = 1] = "MULTI_DATA_AUDIO", e[e.MULTI_DATA_BIG_IMG = 2] = "MULTI_DATA_BIG_IMG", e[e.MULTI_DATA_SMALL_IMG = 3] = "MULTI_DATA_SMALL_IMG", e[e.MULTI_DATA_AUX_IMG = 7] = "MULTI_DATA_AUX_IMG", e[e.MULTI_DATA_TYPE_BUTT = 12] = "MULTI_DATA_TYPE_BUTT", e))(N1 || {}), P1 = ((Ee = P1 || {})[Ee.PUBLISH_VIDEO = 32768] = "PUBLISH_VIDEO", Ee[Ee.PUBLISH_AUDIO = 32769] = "PUBLISH_AUDIO", Ee[Ee.UNPUBLISH_VIDEO = 32770] = "UNPUBLISH_VIDEO", Ee[Ee.UNPUBLISH_AUDIO = 32771] = "UNPUBLISH_AUDIO", Ee[Ee.MUTE_AUDIO = 32772] = "MUTE_AUDIO", Ee[Ee.MUTE_VIDEO = 32773] = "MUTE_VIDEO", Ee[Ee.UNMUTE_AUDIO = 32774] = "UNMUTE_AUDIO", Ee[Ee.UNMUTE_VIDEO = 32775] = "UNMUTE_VIDEO", Ee[Ee.SUBSCRIBE_VIDEO = 32776] = "SUBSCRIBE_VIDEO", Ee[Ee.SUBSCRIBE_AUDIO = 32777] = "SUBSCRIBE_AUDIO", Ee[Ee.UNSUBSCRIBE_VIDEO = 32778] = "UNSUBSCRIBE_VIDEO", Ee[Ee.UNSUBSCRIBE_AUDIO = 32779] = "UNSUBSCRIBE_AUDIO", Ee[Ee.SWITCH_CAMERA = 32780] = "SWITCH_CAMERA", Ee[Ee.SWITCH_MICROPHONE = 32781] = "SWITCH_MICROPHONE", Ee[Ee.REPLACE_VIDEO = 32782] = "REPLACE_VIDEO", Ee[Ee.REPLACE_AUDIO = 32783] = "REPLACE_AUDIO", Ee[Ee.MUTE_REMOTE_VIDEO = 32784] = "MUTE_REMOTE_VIDEO", Ee[Ee.MUTE_REMOTE_AUDIO = 32785] = "MUTE_REMOTE_AUDIO", Ee[Ee.UNMUTE_REMOTE_VIDEO = 32786] = "UNMUTE_REMOTE_VIDEO", Ee[Ee.UNMUTE_REMOTE_AUDIO = 32787] = "UNMUTE_REMOTE_AUDIO", Ee[Ee.JOIN = 32788] = "JOIN", Ee[Ee.LEAVE = 32789] = "LEAVE", Ee[Ee.SIGNAL_DISCONNECTED = 32790] = "SIGNAL_DISCONNECTED", Ee[Ee.SIGNAL_CONNECTED = 32791] = "SIGNAL_CONNECTED", Ee[Ee.TRANSPORT_UPLINK_CONNECTED = 32792] = "TRANSPORT_UPLINK_CONNECTED", Ee[Ee.TRANSPORT_DOWNLINK_CONNECTED = 32793] = "TRANSPORT_DOWNLINK_CONNECTED", Ee[Ee.SIGNAl_RECONNECTING = 32794] = "SIGNAl_RECONNECTING", Ee[Ee.SIGNAL_RECONNECT_SUCCESS = 32795] = "SIGNAL_RECONNECT_SUCCESS", Ee[Ee.SIGNAL_RECONNECT_FAIL = 32796] = "SIGNAL_RECONNECT_FAIL", Ee[Ee.TRANSPORT_UPLINK_RECONNECTING = 32797] = "TRANSPORT_UPLINK_RECONNECTING", Ee[Ee.TRANSPORT_UPLINK_RECONNECT_SUCCESS = 32798] = "TRANSPORT_UPLINK_RECONNECT_SUCCESS", Ee[Ee.TRANSPORT_UPLINK_RECONNECT_FAIL = 32799] = "TRANSPORT_UPLINK_RECONNECT_FAIL", Ee[Ee.TRANSPORT_DOWNLINK_RECONNECTING = 32800] = "TRANSPORT_DOWNLINK_RECONNECTING", Ee[Ee.TRANSPORT_DOWNLINK_RECONNECT_SUCCESS = 32801] = "TRANSPORT_DOWNLINK_RECONNECT_SUCCESS", Ee[Ee.TRANSPORT_DOWNLINK_RECONNECT_FAIL = 32802] = "TRANSPORT_DOWNLINK_RECONNECT_FAIL", Ee[Ee.SUBSCRIBE_SMALL_VIDEO = 32803] = "SUBSCRIBE_SMALL_VIDEO", Ee[Ee.UNSUBSCRIBE_SMALL_VIDEO = 32804] = "UNSUBSCRIBE_SMALL_VIDEO", Ee[Ee.PUBLISH_AUX = 32805] = "PUBLISH_AUX", Ee[Ee.UNPUBLISH_AUX = 32806] = "UNPUBLISH_AUX", Ee[Ee.DEVICE_CAPTURE = 2003] = "DEVICE_CAPTURE", Ee[Ee.VIDEO_ENCODER = 4004] = "VIDEO_ENCODER", Ee[Ee.VIDEO_DECODER = 4005] = "VIDEO_DECODER", Ee), O1 = ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.EXCELLENT = 1] = "EXCELLENT", e[e.GOOD = 2] = "GOOD", e[e.POOR = 3] = "POOR", e[e.BAD = 4] = "BAD", e[e.VERY_BAD = 5] = "VERY_BAD", e[e.DISCONNECTED = 6] = "DISCONNECTED", e))(O1 || {}), M1 = ((e) => (e[e.MANUAL = 0] = "MANUAL", e[e.AUTO_AUDIO = 1] = "AUTO_AUDIO", e[e.AUTO_VIDEO = 2] = "AUTO_VIDEO", e[e.AUTO_ALL = 3] = "AUTO_ALL", e))(M1 || {}), L1 = ((e) => (e.user = "user", e.environment = "environment", e))(L1 || {}), x1 = ((e) => (e[e.ELEMENT = 0] = "ELEMENT", e[e.CANVAS_FROM_ELEMENT = 1] = "CANVAS_FROM_ELEMENT", e[e.CANVAS_WITHOUT_ELEMENT = 2] = "CANVAS_WITHOUT_ELEMENT", e))(x1 || {}), U1 = ((e) => (e[e.ELEMENT = 0] = "ELEMENT", e[e.CONTEXT = 1] = "CONTEXT", e))(U1 || {}), V1 = ((e) => (e.BANNED = "banned", e.KICK = "kick", e.USER_TIME_OUT = "user_time_out", e.ROOM_DISBAND = "room_disband", e))(V1 || {}), F1 = ((Yt = F1 || {})[Yt.USER_EXIT_REASON_TC_USER_EXIT_NORMAL = 0] = "USER_EXIT_REASON_TC_USER_EXIT_NORMAL", Yt[Yt.USER_EXIT_REASON_TC_USER_EXIT_TIMEOUT = 1] = "USER_EXIT_REASON_TC_USER_EXIT_TIMEOUT", Yt[Yt.USER_EXIT_REASON_TC_USER_EXIT_KICKED = 2] = "USER_EXIT_REASON_TC_USER_EXIT_KICKED", Yt[Yt.USER_EXIT_REASON_TC_USER_EXIT_CHANGED = 3] = "USER_EXIT_REASON_TC_USER_EXIT_CHANGED", Yt[Yt.USER_KICK_OUT_CODE_BUSINESS_USER = 4] = "USER_KICK_OUT_CODE_BUSINESS_USER", Yt[Yt.USER_KICK_OUT_CODE_BUSINESS_ROOM = 5] = "USER_KICK_OUT_CODE_BUSINESS_ROOM", Yt[Yt.USER_KICK_OUT_CODE_SERVER_USER = 6] = "USER_KICK_OUT_CODE_SERVER_USER", Yt[Yt.USER_KICK_OUT_CODE_SERVER_ROOM = 7] = "USER_KICK_OUT_CODE_SERVER_ROOM", Yt[Yt.USER_KICK_SESS_EXSIT = 8] = "USER_KICK_SESS_EXSIT", Yt), Vr = 1e8, B1 = ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.FAR_FIELD_REDUCTION = 1] = "FAR_FIELD_REDUCTION", e))(B1 || {}), LB = class {
4969
4969
  constructor() {
4970
4970
  m(this, "mediaType", 0);
4971
4971
  }
@@ -4993,7 +4993,7 @@ a=extmap-allow-mixed`) !== -1) {
4993
4993
  get smallVideo() {
4994
4994
  return !!(8 & this.mediaType);
4995
4995
  }
4996
- }, HC = ((e) => (e.String = "string", e.Number = "number", e.Boolean = "boolean", e.Array = "array", e.Object = "object", e))(HC || {}), T0 = ((e) => (e.H264 = "h264", e.H265 = "h265", e.VP8 = "vp8", e.VP9 = "vp9", e.AV1 = "av1", e))(T0 || {}), WC = ((e) => (e[e.ENCRYPT_AND_DECRYPT = 0] = "ENCRYPT_AND_DECRYPT", e[e.DUMP = 1] = "DUMP", e[e.SEI = 2] = "SEI", e[e.ENCODE_AND_DECODE = 3] = "ENCODE_AND_DECODE", e))(WC || {}), GC = ((e) => (e[e.ENCRYPT_AND_DECRYPT = 0] = "ENCRYPT_AND_DECRYPT", e[e.NTP_TO_AUDIO_FRAME = 1] = "NTP_TO_AUDIO_FRAME", e[e.DUMP = 2] = "DUMP", e[e.ENCODE_AND_DECODE = 3] = "ENCODE_AND_DECODE", e))(GC || {}), jC = ((e) => (e.WebRTC = "webrtc", e.WebCodecs = "webcodecs", e.WebAssembly = "webassembly", e))(jC || {}), zC = ((kt = zC || {})[kt.SUCCESS = 0] = "SUCCESS", kt[kt.FAILED = 1] = "FAILED", kt[kt.WEBCODEC_INIT = 2] = "WEBCODEC_INIT", kt[kt.WEBCODEC_CONFIG_NOT_SUPPORT = 3] = "WEBCODEC_CONFIG_NOT_SUPPORT", kt[kt.WEBCODEC_DECODER_ERROR = 4] = "WEBCODEC_DECODER_ERROR", kt[kt.WEBCODEC_TRACK_MUTE = 5] = "WEBCODEC_TRACK_MUTE", kt[kt.WASM_INIT = 6] = "WASM_INIT", kt[kt.WASM_WEBGL_UNAVALIABLE = 7] = "WASM_WEBGL_UNAVALIABLE", kt[kt.WASM_DECODER_ERROR = 8] = "WASM_DECODER_ERROR", kt[kt.WASM_TRACK_MUTE = 9] = "WASM_TRACK_MUTE", kt[kt.TEST = 10] = "TEST", kt[kt.RENDER_2D_ERROR = 11] = "RENDER_2D_ERROR", kt), KC = ((e) => (e.NONE = "", e.DETAIL = "detail", e.MOTION = "motion", e.TEXT = "text", e))(KC || {}), JC = ((e) => (e.INTERVAL = "interval", e.TIMEOUT = "timeout", e.RAF = "raf", e.RIC = "ric", e.INTERVAL_IN_WORKER = "intervalInWorker", e))(JC || {}), YC = ((e) => (e.CANVAS = "canvas", e.API = "api", e))(YC || {}), qC = ((e) => (e[e.NONE = 0] = "NONE", e[e.MICROPHONE = 1] = "MICROPHONE", e[e.CAMERA = 2] = "CAMERA", e[e.BOTH = 3] = "BOTH", e))(qC || {}), XC = ((e) => (e.CAMERA = "camera", e.MICROPHONE = "microphone", e))(XC || {}), S0 = ((e) => (e[e.none = 0] = "none", e[e.horizontal = 1] = "horizontal", e[e.vertical = 2] = "vertical", e))(S0 || {}), Ve = { AVOID_REPEATED_CALL: "AVOID_REPEATED_CALL", INVALID_PARAMETER_REQUIRED: "INVALID_PARAMETER_REQUIRED", INVALID_PARAMETER_TYPE: "INVALID_PARAMETER_TYPE", INVALID_PARAMETER_EMPTY: "INVALID_PARAMETER_EMPTY", INVALID_PARAMETER_INSTANCE: "INVALID_PARAMETER_INSTANCE", INVALID_PARAMETER_RANGE: "INVALID_PARAMETER_RANGE", INVALID_PARAMETER_MIN: "INVALID_PARAMETER_MIN", INVALID_PARAMETER_MAX: "INVALID_PARAMETER_MAX", INVALID_PARAMETER_STREAMTYPE: "INVALID_PARAMETER_STREAMTYPE", API_CALL_TIMEOUT: "API_CALL_TIMEOUT", SIGNAL_CHANNEL_RECONNECTION_FAILED: "SIGNAL_CHANNEL_RECONNECTION_FAILED", SIGNAL_CHANNEL_SETUP_FAILED: "SIGNAL_CHANNEL_SETUP_FAILED", ERROR_MESSAGE: "ERROR_MESSAGE", EXCHANGE_SDP_TIMEOUT: "EXCHANGE_SDP_TIMEOUT", DOWNLINK_RECONNECTION_FAILED: "DOWNLINK_RECONNECTION_FAILED", EXCHANGE_SDP_FAILED: "EXCHANGE_SDP_FAILED", UPDATE_OFFER_TIMEOUT: "UPDATE_OFFER_TIMEOUT", UPLINK_RECONNECTION_FAILED: "UPLINK_RECONNECTION_FAILED", INVALID_RECORDID: "INVALID_RECORDID", INVALID_PURE_AUDIO: "INVALID_PURE_AUDIO", INVALID_STREAMID: "INVALID_STREAMID", INVALID_USER_DEFINE_RECORDID: "INVALID_USER_DEFINE_RECORDID", INVALID_USER_DEFINE_PUSH_ARGS: "INVALID_USER_DEFINE_PUSH_ARGS", INVALID_PROXY: "INVALID_PROXY", INVALID_JOIN: "INVALID_JOIN", INVALID_ROOMID_STRING: "INVALID_ROOMID_STRING", INVALID_ROOMID_INTEGER: "INVALID_ROOMID_INTEGER", INVALID_SIGNAL_CHANNEL: "INVALID_SIGNAL_CHANNEL", JOIN_ROOM_TIMEOUT: "JOIN_ROOM_TIMEOUT", JOIN_ROOM_FAILED: "JOIN_ROOM_FAILED", REJOIN_ROOM_FAILED: "REJOIN_ROOM_FAILED", INVALID_DESTROY: "INVALID_DESTROY", INVALID_PUBLISH: "INVALID_PUBLISH", INVALID_UNPUBLISH: "INVALID_UNPUBLISH", INVALID_AUDIENCE: "INVALID_AUDIENCE", INVALID_INITIALIZE: "INVALID_INITIALIZE", INVALID_DUPLICATE_PUBLISHING: "INVALID_DUPLICATE_PUBLISHING", INVALID_SUBSCRIBE_UNDEFINED: "INVALID_SUBSCRIBE_UNDEFINED", INVALID_SUBSCRIBE_LOCAL: "INVALID_SUBSCRIBE_LOCAL", INVALID_REMOTE_STREAM: "INVALID_REMOTE_STREAM", SUBSCRIBE_FAILED: "SUBSCRIBE_FAILED", INVALID_ROLE: "INVALID_ROLE", INVALID_PARAMETER_SWITCH_ROLE: "INVALID_PARAMETER_SWITCH_ROLE", INVALID_OPERATION_SWITCH_ROLE: "INVALID_OPERATION_SWITCH_ROLE", SWITCH_ROLE_TIMEOUT: "SWITCH_ROLE_TIMEOUT", SWITCH_ROLE_FAILED: "SWITCH_ROLE_FAILED", CLIENT_BANNED: "CLIENT_BANNED", INVALID_OPERATION_START_PUBLISH_CDN: "INVALID_OPERATION_START_PUBLISH_CDN", INVALID_OPERATION_STOP_PUBLISH_CDN: "INVALID_OPERATION_STOP_PUBLISH_CDN", INVALID_STREAM_ID: "INVALID_STREAM_ID", START_PUBLISH_CDN_FAILED: "START_PUBLISH_CDN_FAILED", STOP_PUBLISH_CDN_FAILED: "STOP_PUBLISH_CDN_FAILED", START_MIX_TRANSCODE: "START_MIX_TRANSCODE", STOP_MIX_TRANSCODE: "STOP_MIX_TRANSCODE", INVALID_AUDIO_VOLUME: "INVALID_AUDIO_VOLUME", ENABLE_SMALL_STREAM_PUBLISHED: "ENABLE_SMALL_STREAM_PUBLISHED", DISABLE_SMALL_STREAM_PUBLISHED: "DISABLE_SMALL_STREAM_PUBLISHED", NOT_SUPPORTED_SMALL_STREAM: "NOT_SUPPORTED_SMALL_STREAM", INVALID_SMALL_STREAM_PROFILE: "INVALID_SMALL_STREAM_PROFILE", INVALID_PARAMETER_REMOTE_STREAM: "INVALID_PARAMETER_REMOTE_STREAM", INVALID_OPERATION_CHANGE_SMALL: "INVALID_OPERATION_CHANGE_SMALL", REMOTE_NOT_PUBLISH_SMALL_STREAM: "REMOTE_NOT_PUBLISH_SMALL_STREAM", INVALID_SWITCH_DEVICE: "INVALID_SWITCH_DEVICE", INVALID_SWITCH_DEVICE_PUBLISHING: "INVALID_SWITCH_DEVICE_PUBLISHING", INVALID_REPLACE_TRACK: "INVALID_REPLACE_TRACK", INVALID_INITIALIZE_LOCAL_STREAM: "INVALID_INITIALIZE_LOCAL_STREAM", INVALID_ADD_TRACK_REPETITIVE: "INVALID_ADD_TRACK_REPETITIVE", INVALID_ADD_TRACK_REMOVING: "INVALID_ADD_TRACK_REMOVING", INVALID_ADD_TRACK_PUBLISHING: "INVALID_ADD_TRACK_PUBLISHING", INVALID_STREAM_INITIALIZED: "INVALID_STREAM_INITIALIZED", INVALID_ADD_TRACK_NUMBER: "INVALID_ADD_TRACK_NUMBER", INVALID_REMOVE_AUDIO_TRACK: "INVALID_REMOVE_AUDIO_TRACK", INVALID_REMOVE_AUDIO_ADDING: "INVALID_REMOVE_AUDIO_ADDING", INVALID_REMOVE_AUDIO_ON: "INVALID_REMOVE_AUDIO_ON", INVALID_REMOVE_TRACK_PUBLISHING: "INVALID_REMOVE_TRACK_PUBLISHING", INVALID_REMOVE_TRACK_NOT_TRACK: "INVALID_REMOVE_TRACK_NOT_TRACK", INVALID_REMOVE_TRACK_NUMBER: "INVALID_REMOVE_TRACK_NUMBER", INVALID_REPLACE_TRACK_NO_TRACK: "INVALID_REPLACE_TRACK_NO_TRACK", REPEAT_JOIN: "REPEAT_JOIN", CLIENT_DESTROYED: "CLIENT_DESTROYED", NOT_BUG_PACKAGE: "NOT_BUG_PACKAGE", START_MIX_TRANSCODE_FAILED: "START_MIX_TRANSCODE_FAILED", STOP_MIX_TRANSCODE_FAILED: "STOP_MIX_TRANSCODE_FAILED", MIX_TRANSCODE_NOT_STARTED: "MIX_TRANSCODE_NOT_STARTED", CANNOT_LESS_THAN_ZERO: "CANNOT_LESS_THAN_ZERO", MIX_PARAMS_VIDEO_FRAMERATE: "MIX_PARAMS_VIDEO_FRAMERATE", MIX_PARAMS_VIDEO_GOP: "MIX_PARAMS_VIDEO_GOP", MIX_PARAMS_AUDIO_BITRATE: "MIX_PARAMS_AUDIO_BITRATE", MIX_PARAMS_USER_Z_ORDER: "MIX_PARAMS_USER_Z_ORDER", MIX_PARAMS_NOT_SELF: "MIX_PARAMS_NOT_SELF", MIX_PARAMS_USER_STREAM: "MIX_PARAMS_USER_STREAM", INVALID_PLAY: "INVALID_PLAY", INVALID_ELEMENT_ID: "INVALID_ELEMENT_ID", INVALID_ELEMENT_ID_TYPE: "INVALID_ELEMENT_ID_TYPE", PLAY_FAILED: "PLAY_FAILED", INVALID_USERID: "INVALID_USERID", INVALID_CREATE_STREAM_SOURCE: "INVALID_CREATE_STREAM_SOURCE", INVALID_CREATE_STREAM_SCREEN: "INVALID_CREATE_STREAM_SCREEN", INVALID_CREATE_STREAM_AUDIO: "INVALID_CREATE_STREAM_AUDIO", INVALID_CREATE_STREAM_SCREEN_AUDIO: "INVALID_CREATE_STREAM_SCREEN_AUDIO", NOT_SUPPORTED_HTTP: "NOT_SUPPORTED_HTTP", NOT_SUPPORTED_WEBRTC: "NOT_SUPPORTED_WEBRTC", NOT_SUPPORTED_PROFILE: "NOT_SUPPORTED_PROFILE", NOT_SUPPORTED_MEDIA: "NOT_SUPPORTED_MEDIA", NOT_SUPPORTED_H264ENCODE: "NOT_SUPPORTED_H264ENCODE", NOT_SUPPORTED_H264DECODE: "NOT_SUPPORTED_H264DECODE", NOT_SUPPORTED_TRACK: "NOT_SUPPORTED_TRACK", NOT_SUPPORTED_SWITCH_DEVICE: "NOT_SUPPORTED_SWITCH_DEVICE", NOT_SUPPORTED_CAPTURE: "NOT_SUPPORTED_CAPTURE", NOT_SUPPORTED_AUX: "NOT_SUPPORTED_AUX", MICROPHONE_NOT_FOUND: "MICROPHONE_NOT_FOUND", CAMERA_NOT_FOUND: "CAMERA_NOT_FOUND", SIGNAL_RESPONSE_FAILED: "SIGNAL_RESPONSE_FAILED", CATCH_HANDLER_ERROR: "CATCH_HANDLER_ERROR", API_NOT_EXIST: "API_NOT_EXIST", CONNECTION_CLOSED: "CONNECTION_CLOSED", SUBSCRIBE_ALL_FALSE: "SUBSCRIBE_ALL_FALSE", SEI_NOT_SUPPORT: "SEI_NOT_SUPPORT", SEI_DISABLED: "SEI_DISABLED", SEI_BEFORE_PUBLISH: "SEI_BEFORE_PUBLISH", SEI_NOT_VIDEO: "SEI_NOT_VIDEO", CALL_FREQUENCY_LIMIT: "CALL_FREQUENCY_LIMIT", CONNECTION_ABORTED: "CONNECTION_ABORTED", API_CALL_ABORTED: "API_CALL_ABORTED", DUPLICATE_AUX: "DUPLICATE_AUX" }, Ir = { AVOID_REPEATED_CALL: (e) => "previous ".concat(e.name, "() is ongoing, please avoid repeated calls."), INVALID_PARAMETER_REQUIRED(e) {
4996
+ }, H1 = ((e) => (e.String = "string", e.Number = "number", e.Boolean = "boolean", e.Array = "array", e.Object = "object", e))(H1 || {}), T0 = ((e) => (e.H264 = "h264", e.H265 = "h265", e.VP8 = "vp8", e.VP9 = "vp9", e.AV1 = "av1", e))(T0 || {}), W1 = ((e) => (e[e.ENCRYPT_AND_DECRYPT = 0] = "ENCRYPT_AND_DECRYPT", e[e.DUMP = 1] = "DUMP", e[e.SEI = 2] = "SEI", e[e.ENCODE_AND_DECODE = 3] = "ENCODE_AND_DECODE", e))(W1 || {}), G1 = ((e) => (e[e.ENCRYPT_AND_DECRYPT = 0] = "ENCRYPT_AND_DECRYPT", e[e.NTP_TO_AUDIO_FRAME = 1] = "NTP_TO_AUDIO_FRAME", e[e.DUMP = 2] = "DUMP", e[e.ENCODE_AND_DECODE = 3] = "ENCODE_AND_DECODE", e))(G1 || {}), j1 = ((e) => (e.WebRTC = "webrtc", e.WebCodecs = "webcodecs", e.WebAssembly = "webassembly", e))(j1 || {}), z1 = ((kt = z1 || {})[kt.SUCCESS = 0] = "SUCCESS", kt[kt.FAILED = 1] = "FAILED", kt[kt.WEBCODEC_INIT = 2] = "WEBCODEC_INIT", kt[kt.WEBCODEC_CONFIG_NOT_SUPPORT = 3] = "WEBCODEC_CONFIG_NOT_SUPPORT", kt[kt.WEBCODEC_DECODER_ERROR = 4] = "WEBCODEC_DECODER_ERROR", kt[kt.WEBCODEC_TRACK_MUTE = 5] = "WEBCODEC_TRACK_MUTE", kt[kt.WASM_INIT = 6] = "WASM_INIT", kt[kt.WASM_WEBGL_UNAVALIABLE = 7] = "WASM_WEBGL_UNAVALIABLE", kt[kt.WASM_DECODER_ERROR = 8] = "WASM_DECODER_ERROR", kt[kt.WASM_TRACK_MUTE = 9] = "WASM_TRACK_MUTE", kt[kt.TEST = 10] = "TEST", kt[kt.RENDER_2D_ERROR = 11] = "RENDER_2D_ERROR", kt), K1 = ((e) => (e.NONE = "", e.DETAIL = "detail", e.MOTION = "motion", e.TEXT = "text", e))(K1 || {}), J1 = ((e) => (e.INTERVAL = "interval", e.TIMEOUT = "timeout", e.RAF = "raf", e.RIC = "ric", e.INTERVAL_IN_WORKER = "intervalInWorker", e))(J1 || {}), Y1 = ((e) => (e.CANVAS = "canvas", e.API = "api", e))(Y1 || {}), q1 = ((e) => (e[e.NONE = 0] = "NONE", e[e.MICROPHONE = 1] = "MICROPHONE", e[e.CAMERA = 2] = "CAMERA", e[e.BOTH = 3] = "BOTH", e))(q1 || {}), X1 = ((e) => (e.CAMERA = "camera", e.MICROPHONE = "microphone", e))(X1 || {}), S0 = ((e) => (e[e.none = 0] = "none", e[e.horizontal = 1] = "horizontal", e[e.vertical = 2] = "vertical", e))(S0 || {}), Ve = { AVOID_REPEATED_CALL: "AVOID_REPEATED_CALL", INVALID_PARAMETER_REQUIRED: "INVALID_PARAMETER_REQUIRED", INVALID_PARAMETER_TYPE: "INVALID_PARAMETER_TYPE", INVALID_PARAMETER_EMPTY: "INVALID_PARAMETER_EMPTY", INVALID_PARAMETER_INSTANCE: "INVALID_PARAMETER_INSTANCE", INVALID_PARAMETER_RANGE: "INVALID_PARAMETER_RANGE", INVALID_PARAMETER_MIN: "INVALID_PARAMETER_MIN", INVALID_PARAMETER_MAX: "INVALID_PARAMETER_MAX", INVALID_PARAMETER_STREAMTYPE: "INVALID_PARAMETER_STREAMTYPE", API_CALL_TIMEOUT: "API_CALL_TIMEOUT", SIGNAL_CHANNEL_RECONNECTION_FAILED: "SIGNAL_CHANNEL_RECONNECTION_FAILED", SIGNAL_CHANNEL_SETUP_FAILED: "SIGNAL_CHANNEL_SETUP_FAILED", ERROR_MESSAGE: "ERROR_MESSAGE", EXCHANGE_SDP_TIMEOUT: "EXCHANGE_SDP_TIMEOUT", DOWNLINK_RECONNECTION_FAILED: "DOWNLINK_RECONNECTION_FAILED", EXCHANGE_SDP_FAILED: "EXCHANGE_SDP_FAILED", UPDATE_OFFER_TIMEOUT: "UPDATE_OFFER_TIMEOUT", UPLINK_RECONNECTION_FAILED: "UPLINK_RECONNECTION_FAILED", INVALID_RECORDID: "INVALID_RECORDID", INVALID_PURE_AUDIO: "INVALID_PURE_AUDIO", INVALID_STREAMID: "INVALID_STREAMID", INVALID_USER_DEFINE_RECORDID: "INVALID_USER_DEFINE_RECORDID", INVALID_USER_DEFINE_PUSH_ARGS: "INVALID_USER_DEFINE_PUSH_ARGS", INVALID_PROXY: "INVALID_PROXY", INVALID_JOIN: "INVALID_JOIN", INVALID_ROOMID_STRING: "INVALID_ROOMID_STRING", INVALID_ROOMID_INTEGER: "INVALID_ROOMID_INTEGER", INVALID_SIGNAL_CHANNEL: "INVALID_SIGNAL_CHANNEL", JOIN_ROOM_TIMEOUT: "JOIN_ROOM_TIMEOUT", JOIN_ROOM_FAILED: "JOIN_ROOM_FAILED", REJOIN_ROOM_FAILED: "REJOIN_ROOM_FAILED", INVALID_DESTROY: "INVALID_DESTROY", INVALID_PUBLISH: "INVALID_PUBLISH", INVALID_UNPUBLISH: "INVALID_UNPUBLISH", INVALID_AUDIENCE: "INVALID_AUDIENCE", INVALID_INITIALIZE: "INVALID_INITIALIZE", INVALID_DUPLICATE_PUBLISHING: "INVALID_DUPLICATE_PUBLISHING", INVALID_SUBSCRIBE_UNDEFINED: "INVALID_SUBSCRIBE_UNDEFINED", INVALID_SUBSCRIBE_LOCAL: "INVALID_SUBSCRIBE_LOCAL", INVALID_REMOTE_STREAM: "INVALID_REMOTE_STREAM", SUBSCRIBE_FAILED: "SUBSCRIBE_FAILED", INVALID_ROLE: "INVALID_ROLE", INVALID_PARAMETER_SWITCH_ROLE: "INVALID_PARAMETER_SWITCH_ROLE", INVALID_OPERATION_SWITCH_ROLE: "INVALID_OPERATION_SWITCH_ROLE", SWITCH_ROLE_TIMEOUT: "SWITCH_ROLE_TIMEOUT", SWITCH_ROLE_FAILED: "SWITCH_ROLE_FAILED", CLIENT_BANNED: "CLIENT_BANNED", INVALID_OPERATION_START_PUBLISH_CDN: "INVALID_OPERATION_START_PUBLISH_CDN", INVALID_OPERATION_STOP_PUBLISH_CDN: "INVALID_OPERATION_STOP_PUBLISH_CDN", INVALID_STREAM_ID: "INVALID_STREAM_ID", START_PUBLISH_CDN_FAILED: "START_PUBLISH_CDN_FAILED", STOP_PUBLISH_CDN_FAILED: "STOP_PUBLISH_CDN_FAILED", START_MIX_TRANSCODE: "START_MIX_TRANSCODE", STOP_MIX_TRANSCODE: "STOP_MIX_TRANSCODE", INVALID_AUDIO_VOLUME: "INVALID_AUDIO_VOLUME", ENABLE_SMALL_STREAM_PUBLISHED: "ENABLE_SMALL_STREAM_PUBLISHED", DISABLE_SMALL_STREAM_PUBLISHED: "DISABLE_SMALL_STREAM_PUBLISHED", NOT_SUPPORTED_SMALL_STREAM: "NOT_SUPPORTED_SMALL_STREAM", INVALID_SMALL_STREAM_PROFILE: "INVALID_SMALL_STREAM_PROFILE", INVALID_PARAMETER_REMOTE_STREAM: "INVALID_PARAMETER_REMOTE_STREAM", INVALID_OPERATION_CHANGE_SMALL: "INVALID_OPERATION_CHANGE_SMALL", REMOTE_NOT_PUBLISH_SMALL_STREAM: "REMOTE_NOT_PUBLISH_SMALL_STREAM", INVALID_SWITCH_DEVICE: "INVALID_SWITCH_DEVICE", INVALID_SWITCH_DEVICE_PUBLISHING: "INVALID_SWITCH_DEVICE_PUBLISHING", INVALID_REPLACE_TRACK: "INVALID_REPLACE_TRACK", INVALID_INITIALIZE_LOCAL_STREAM: "INVALID_INITIALIZE_LOCAL_STREAM", INVALID_ADD_TRACK_REPETITIVE: "INVALID_ADD_TRACK_REPETITIVE", INVALID_ADD_TRACK_REMOVING: "INVALID_ADD_TRACK_REMOVING", INVALID_ADD_TRACK_PUBLISHING: "INVALID_ADD_TRACK_PUBLISHING", INVALID_STREAM_INITIALIZED: "INVALID_STREAM_INITIALIZED", INVALID_ADD_TRACK_NUMBER: "INVALID_ADD_TRACK_NUMBER", INVALID_REMOVE_AUDIO_TRACK: "INVALID_REMOVE_AUDIO_TRACK", INVALID_REMOVE_AUDIO_ADDING: "INVALID_REMOVE_AUDIO_ADDING", INVALID_REMOVE_AUDIO_ON: "INVALID_REMOVE_AUDIO_ON", INVALID_REMOVE_TRACK_PUBLISHING: "INVALID_REMOVE_TRACK_PUBLISHING", INVALID_REMOVE_TRACK_NOT_TRACK: "INVALID_REMOVE_TRACK_NOT_TRACK", INVALID_REMOVE_TRACK_NUMBER: "INVALID_REMOVE_TRACK_NUMBER", INVALID_REPLACE_TRACK_NO_TRACK: "INVALID_REPLACE_TRACK_NO_TRACK", REPEAT_JOIN: "REPEAT_JOIN", CLIENT_DESTROYED: "CLIENT_DESTROYED", NOT_BUG_PACKAGE: "NOT_BUG_PACKAGE", START_MIX_TRANSCODE_FAILED: "START_MIX_TRANSCODE_FAILED", STOP_MIX_TRANSCODE_FAILED: "STOP_MIX_TRANSCODE_FAILED", MIX_TRANSCODE_NOT_STARTED: "MIX_TRANSCODE_NOT_STARTED", CANNOT_LESS_THAN_ZERO: "CANNOT_LESS_THAN_ZERO", MIX_PARAMS_VIDEO_FRAMERATE: "MIX_PARAMS_VIDEO_FRAMERATE", MIX_PARAMS_VIDEO_GOP: "MIX_PARAMS_VIDEO_GOP", MIX_PARAMS_AUDIO_BITRATE: "MIX_PARAMS_AUDIO_BITRATE", MIX_PARAMS_USER_Z_ORDER: "MIX_PARAMS_USER_Z_ORDER", MIX_PARAMS_NOT_SELF: "MIX_PARAMS_NOT_SELF", MIX_PARAMS_USER_STREAM: "MIX_PARAMS_USER_STREAM", INVALID_PLAY: "INVALID_PLAY", INVALID_ELEMENT_ID: "INVALID_ELEMENT_ID", INVALID_ELEMENT_ID_TYPE: "INVALID_ELEMENT_ID_TYPE", PLAY_FAILED: "PLAY_FAILED", INVALID_USERID: "INVALID_USERID", INVALID_CREATE_STREAM_SOURCE: "INVALID_CREATE_STREAM_SOURCE", INVALID_CREATE_STREAM_SCREEN: "INVALID_CREATE_STREAM_SCREEN", INVALID_CREATE_STREAM_AUDIO: "INVALID_CREATE_STREAM_AUDIO", INVALID_CREATE_STREAM_SCREEN_AUDIO: "INVALID_CREATE_STREAM_SCREEN_AUDIO", NOT_SUPPORTED_HTTP: "NOT_SUPPORTED_HTTP", NOT_SUPPORTED_WEBRTC: "NOT_SUPPORTED_WEBRTC", NOT_SUPPORTED_PROFILE: "NOT_SUPPORTED_PROFILE", NOT_SUPPORTED_MEDIA: "NOT_SUPPORTED_MEDIA", NOT_SUPPORTED_H264ENCODE: "NOT_SUPPORTED_H264ENCODE", NOT_SUPPORTED_H264DECODE: "NOT_SUPPORTED_H264DECODE", NOT_SUPPORTED_TRACK: "NOT_SUPPORTED_TRACK", NOT_SUPPORTED_SWITCH_DEVICE: "NOT_SUPPORTED_SWITCH_DEVICE", NOT_SUPPORTED_CAPTURE: "NOT_SUPPORTED_CAPTURE", NOT_SUPPORTED_AUX: "NOT_SUPPORTED_AUX", MICROPHONE_NOT_FOUND: "MICROPHONE_NOT_FOUND", CAMERA_NOT_FOUND: "CAMERA_NOT_FOUND", SIGNAL_RESPONSE_FAILED: "SIGNAL_RESPONSE_FAILED", CATCH_HANDLER_ERROR: "CATCH_HANDLER_ERROR", API_NOT_EXIST: "API_NOT_EXIST", CONNECTION_CLOSED: "CONNECTION_CLOSED", SUBSCRIBE_ALL_FALSE: "SUBSCRIBE_ALL_FALSE", SEI_NOT_SUPPORT: "SEI_NOT_SUPPORT", SEI_DISABLED: "SEI_DISABLED", SEI_BEFORE_PUBLISH: "SEI_BEFORE_PUBLISH", SEI_NOT_VIDEO: "SEI_NOT_VIDEO", CALL_FREQUENCY_LIMIT: "CALL_FREQUENCY_LIMIT", CONNECTION_ABORTED: "CONNECTION_ABORTED", API_CALL_ABORTED: "API_CALL_ABORTED", DUPLICATE_AUX: "DUPLICATE_AUX" }, Ir = { AVOID_REPEATED_CALL: (e) => "previous ".concat(e.name, "() is ongoing, please avoid repeated calls."), INVALID_PARAMETER_REQUIRED(e) {
4997
4997
  let { key: t, rule: i, fnName: r, value: n } = e;
4998
4998
  return "'".concat(t || i.name, "' is a required param when calling ").concat(r, "(), received: ").concat(n, ".");
4999
4999
  }, INVALID_PARAMETER_TYPE(e) {
@@ -5047,7 +5047,7 @@ a=extmap-allow-mixed`) !== -1) {
5047
5047
  }, CONNECTION_ABORTED: (e) => "connection aborted due to: ".concat(e), API_CALL_ABORTED(e) {
5048
5048
  let t;
5049
5049
  return t = e.message.includes("REMOTE_STREAM_NOT_EXIST") ? "Subscribe ".concat(e.userId, " ").concat(e.streamType, " stream aborted, reason: remote user ").concat(e.userId, " unpublished stream.") : "API aborted, reason: ".concat(e.message), t;
5050
- }, DUPLICATE_AUX: "only one auxiliary stream can be published in a room.", NOT_SUPPORTED_AUX: "publish auxiliary stream is not supported on your browser.", INVALID_PARAMETER_STREAMTYPE: (e) => "'streamType' is required when 'userId' is not '*', calling ".concat(e, "()") }, QC = (e, t) => t ? "".concat(cn, "/").concat(e, "/").concat(t) : "".concat(cn, "/").concat(e, "/index.html"), xB = () => {
5050
+ }, DUPLICATE_AUX: "only one auxiliary stream can be published in a room.", NOT_SUPPORTED_AUX: "publish auxiliary stream is not supported on your browser.", INVALID_PARAMETER_STREAMTYPE: (e) => "'streamType' is required when 'userId' is not '*', calling ".concat(e, "()") }, Q1 = (e, t) => t ? "".concat(cn, "/").concat(e, "/").concat(t) : "".concat(cn, "/").concat(e, "/index.html"), xB = () => {
5051
5051
  if (window.TRTC_ERROR_INFO && window.TRTC_ERROR_LINK) return { TRTC_ERROR_INFO: window.TRTC_ERROR_INFO, TRTC_ERROR_LINK: window.TRTC_ERROR_LINK };
5052
5052
  let e = localStorage == null ? void 0 : localStorage.getItem(Xb);
5053
5053
  if (e) {
@@ -5066,15 +5066,15 @@ a=extmap-allow-mixed`) !== -1) {
5066
5066
  r ? l = "".concat(r.className, ".html#").concat(r.fnName) : h && h[t] && (Lt(h[t]) ? l = h[t](i) : dt(h[t]) && (l = h[t]));
5067
5067
  let _ = s;
5068
5068
  return dn() && (c && c[t] && (Lt(c[t]) ? o = c[t](i) : dt(c[t]) && (o = c[t])), o && (_ = n ? "".concat(o, `
5069
- 请查看文档: `).concat(QC("zh-cn", l), `
5069
+ 请查看文档: `).concat(Q1("zh-cn", l), `
5070
5070
 
5071
5071
  `) : "".concat(o, `
5072
5072
 
5073
5073
  `), _ += s)), n && (_ += `
5074
- Refer to: `.concat(QC("en", l), `
5074
+ Refer to: `.concat(Q1("en", l), `
5075
5075
  `)), _;
5076
5076
  }
5077
- var Ke, tt, ZC = Qt(FF(), 1), $C = class {
5077
+ var Ke, tt, Z1 = Qt(FF(), 1), $1 = class {
5078
5078
  constructor() {
5079
5079
  let e = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0];
5080
5080
  m(this, "countMap", /* @__PURE__ */ new Map()), m(this, "distributionMap", /* @__PURE__ */ new Map()), m(this, "version"), m(this, "log", fe.createLogger({ id: "kv" })), e && ($.on("102", (t) => {
@@ -5160,13 +5160,13 @@ Refer to: `.concat(QC("en", l), `
5160
5160
  let r = te.UNKNOWN;
5161
5161
  i && (rt(i) ? r = i : (!j(i.extraCode) || !j(i.code)) && (r = i.extraCode || i.code)), this.addEnum({ key: t, value: 0, useUV: !1 }), this.addEnum({ key: t, value: Math.abs(r), useUV: !1 });
5162
5162
  }
5163
- }, e2 = ((Ke = e2 || {})[Ke.enterRoom = 500700] = "enterRoom", Ke[Ke.exitRoom = 500701] = "exitRoom", Ke[Ke.switchRole = 500702] = "switchRole", Ke[Ke.destroy = 500703] = "destroy", Ke[Ke.startLocalAudio = 500704] = "startLocalAudio", Ke[Ke.updateLocalAudio = 500705] = "updateLocalAudio", Ke[Ke.stopLocalAudio = 500706] = "stopLocalAudio", Ke[Ke.startLocalVideo = 500707] = "startLocalVideo", Ke[Ke.updateLocalVideo = 500708] = "updateLocalVideo", Ke[Ke.stopLocalVideo = 500709] = "stopLocalVideo", Ke[Ke.startScreenShare = 500710] = "startScreenShare", Ke[Ke.updateScreenShare = 500711] = "updateScreenShare", Ke[Ke.stopScreenShare = 500712] = "stopScreenShare", Ke[Ke.startRemoteVideo = 500713] = "startRemoteVideo", Ke[Ke.updateRemoteVideo = 500714] = "updateRemoteVideo", Ke[Ke.stopRemoteVideo = 500715] = "stopRemoteVideo", Ke[Ke.muteRemoteAudio = 500716] = "muteRemoteAudio", Ke[Ke.setRemoteAudioVolume = 500717] = "setRemoteAudioVolume", Ke[Ke.use = 500718] = "use", Ke[Ke.switchRoom = 500719] = "switchRoom", Ke[Ke.getPermissions = 500720] = "getPermissions", Ke[Ke.sendSEIMessage = 5e5] = "sendSEIMessage", Ke[Ke.sendCustomMessage = 500001] = "sendCustomMessage", Ke), t2 = ((e) => (e[e.AudioMixer = 550700] = "AudioMixer", e[e.AIDenoiser = 551700] = "AIDenoiser", e[e.VirtualBackground = 570700] = "VirtualBackground", e[e.Beauty = 571700] = "Beauty", e[e.Watermark = 572700] = "Watermark", e[e.BasicBeauty = 574700] = "BasicBeauty", e[e.FaceDetector = 575700] = "FaceDetector", e[e.CDNStreaming = 590700] = "CDNStreaming", e[e.DeviceDetector = 591700] = "DeviceDetector", e[e.Debug = 592700] = "Debug", e[e.SmallStreamAutoSwitcher = 593700] = "SmallStreamAutoSwitcher", e[e.VideoMixer = 594700] = "VideoMixer", e[e.AudioProcessor = 595700] = "AudioProcessor", e[e.LEBPlayer = 596700] = "LEBPlayer", e[e.RealtimeTranscriber = 597700] = "RealtimeTranscriber", e))(t2 || {}), i2 = ((e) => (e[e.AudioMixer = 550701] = "AudioMixer", e[e.AIDenoiser = 551701] = "AIDenoiser", e[e.VirtualBackground = 570701] = "VirtualBackground", e[e.Beauty = 571701] = "Beauty", e[e.Watermark = 572701] = "Watermark", e[e.BasicBeauty = 574701] = "BasicBeauty", e[e.FaceDetector = 575701] = "FaceDetector", e[e.CDNStreaming = 590701] = "CDNStreaming", e[e.DeviceDetector = 591701] = "DeviceDetector", e[e.Debug = 592701] = "Debug", e[e.SmallStreamAutoSwitcher = 593701] = "SmallStreamAutoSwitcher", e[e.VideoMixer = 594701] = "VideoMixer", e[e.AudioProcessor = 595701] = "AudioProcessor", e[e.LEBPlayer = 596701] = "LEBPlayer", e[e.RealtimeTranscriber = 597701] = "RealtimeTranscriber", e))(i2 || {}), r2 = ((e) => (e[e.AudioMixer = 550702] = "AudioMixer", e[e.AIDenoiser = 551702] = "AIDenoiser", e[e.VirtualBackground = 570702] = "VirtualBackground", e[e.Beauty = 571702] = "Beauty", e[e.Watermark = 572702] = "Watermark", e[e.BasicBeauty = 574702] = "BasicBeauty", e[e.FaceDetector = 575702] = "FaceDetector", e[e.CDNStreaming = 590702] = "CDNStreaming", e[e.DeviceDetector = 591702] = "DeviceDetector", e[e.Debug = 592702] = "Debug", e[e.SmallStreamAutoSwitcher = 593702] = "SmallStreamAutoSwitcher", e[e.VideoMixer = 594702] = "VideoMixer", e[e.AudioProcessor = 595702] = "AudioProcessor", e[e.LEBPlayer = 596702] = "LEBPlayer", e[e.RealtimeTranscriber = 597702] = "RealtimeTranscriber", e))(r2 || {}), n2 = ((tt = n2 || {})[tt.DECODER_TYPE = 514700] = "DECODER_TYPE", tt[tt.DECODER_HW_SW = 514701] = "DECODER_HW_SW", tt[tt.DECODE_RESULT = 514702] = "DECODE_RESULT", tt[tt.DECODE_FAILED_OS = 514703] = "DECODE_FAILED_OS", tt[tt.DOWNGRADE_RESULT = 514704] = "DOWNGRADE_RESULT", tt[tt.DOWNGRADE_WEBCODECS_VIDEO = 514705] = "DOWNGRADE_WEBCODECS_VIDEO", tt[tt.DOWNGRADE_WEBCODECS_2D = 514706] = "DOWNGRADE_WEBCODECS_2D", tt[tt.DOWNGRADE_WASM_WEGBL = 514707] = "DOWNGRADE_WASM_WEGBL", tt[tt.DOWNGRADE_WASM_VIDEO = 514708] = "DOWNGRADE_WASM_VIDEO", tt[tt.DOWNGRADE_WASM_2D = 514709] = "DOWNGRADE_WASM_2D", tt[tt.DECODE_H264_RESULT = 514710] = "DECODE_H264_RESULT", tt[tt.DECODE_H265_RESULT = 514711] = "DECODE_H265_RESULT", tt[tt.DECODE_VP8_RESULT = 514712] = "DECODE_VP8_RESULT", tt[tt.DECODE_CAPABILITIES = 514713] = "DECODE_CAPABILITIES", tt[tt.H264_PROFILE_LEVEL_ID_HIGH = 514714] = "H264_PROFILE_LEVEL_ID_HIGH", tt[tt.H264_PROFILE_LEVEL_ID_MAIN = 514715] = "H264_PROFILE_LEVEL_ID_MAIN", tt[tt.RENDER_FREEZE_RATE = 514850] = "RENDER_FREEZE_RATE", tt[tt.DATA_FREEZE_RATE = 514851] = "DATA_FREEZE_RATE", tt[tt.VIDEO_CONSUME_RENDER_RATE = 514852] = "VIDEO_CONSUME_RENDER_RATE", tt), UB = new $C(!0), Ac = new $C(!1), ce = UB, Qe = { result: !1, detail: { isBrowserSupported: !1, isWebRTCSupported: !1, isWebCodecsSupported: !1, isMediaDevicesSupported: !1, isScreenShareSupported: !1, isSmallStreamSupported: !1, isH264EncodeSupported: !1, isVp8EncodeSupported: !1, isH265EncodeSupported: !1, isH264DecodeSupported: !1, isVp8DecodeSupported: !1, isH265DecodeSupported: !1 } }, VB = /* @__PURE__ */ new Map([[lt, ["Firefox", Yg]], [mc, ["Edg", Xg]], [Dh, ["Chrome", h0]], [$t, ["Safari", qs]], [Ur, ["TBS", $g]], [Zn, ["XWEB", e0]], [Js && Ks, ["WeChat", t0]], [Sh, ["QQ(Win)", i0]], [_c, ["QQ(Mobile)", gc]], [fc, ["QQ(Mobile X5)", gc]], [Ih, ["QQ(Mac)", r0]], [Rh, ["QQ(iPad)", n0]], [Ah, ["MI", a0]], [bh, ["HW", l0]], [Ch, ["Samsung", c0]], [Ec, ["OPPO", u0]], [kh, ["VIVO", d0]], [Ro, ["EDGE", qg]], [yh, ["SogouMobile", Qg]], [Th, ["Sogou", Zg]]]);
5163
+ }, e2 = ((Ke = e2 || {})[Ke.enterRoom = 500700] = "enterRoom", Ke[Ke.exitRoom = 500701] = "exitRoom", Ke[Ke.switchRole = 500702] = "switchRole", Ke[Ke.destroy = 500703] = "destroy", Ke[Ke.startLocalAudio = 500704] = "startLocalAudio", Ke[Ke.updateLocalAudio = 500705] = "updateLocalAudio", Ke[Ke.stopLocalAudio = 500706] = "stopLocalAudio", Ke[Ke.startLocalVideo = 500707] = "startLocalVideo", Ke[Ke.updateLocalVideo = 500708] = "updateLocalVideo", Ke[Ke.stopLocalVideo = 500709] = "stopLocalVideo", Ke[Ke.startScreenShare = 500710] = "startScreenShare", Ke[Ke.updateScreenShare = 500711] = "updateScreenShare", Ke[Ke.stopScreenShare = 500712] = "stopScreenShare", Ke[Ke.startRemoteVideo = 500713] = "startRemoteVideo", Ke[Ke.updateRemoteVideo = 500714] = "updateRemoteVideo", Ke[Ke.stopRemoteVideo = 500715] = "stopRemoteVideo", Ke[Ke.muteRemoteAudio = 500716] = "muteRemoteAudio", Ke[Ke.setRemoteAudioVolume = 500717] = "setRemoteAudioVolume", Ke[Ke.use = 500718] = "use", Ke[Ke.switchRoom = 500719] = "switchRoom", Ke[Ke.getPermissions = 500720] = "getPermissions", Ke[Ke.sendSEIMessage = 5e5] = "sendSEIMessage", Ke[Ke.sendCustomMessage = 500001] = "sendCustomMessage", Ke), t2 = ((e) => (e[e.AudioMixer = 550700] = "AudioMixer", e[e.AIDenoiser = 551700] = "AIDenoiser", e[e.VirtualBackground = 570700] = "VirtualBackground", e[e.Beauty = 571700] = "Beauty", e[e.Watermark = 572700] = "Watermark", e[e.BasicBeauty = 574700] = "BasicBeauty", e[e.FaceDetector = 575700] = "FaceDetector", e[e.CDNStreaming = 590700] = "CDNStreaming", e[e.DeviceDetector = 591700] = "DeviceDetector", e[e.Debug = 592700] = "Debug", e[e.SmallStreamAutoSwitcher = 593700] = "SmallStreamAutoSwitcher", e[e.VideoMixer = 594700] = "VideoMixer", e[e.AudioProcessor = 595700] = "AudioProcessor", e[e.LEBPlayer = 596700] = "LEBPlayer", e[e.RealtimeTranscriber = 597700] = "RealtimeTranscriber", e))(t2 || {}), i2 = ((e) => (e[e.AudioMixer = 550701] = "AudioMixer", e[e.AIDenoiser = 551701] = "AIDenoiser", e[e.VirtualBackground = 570701] = "VirtualBackground", e[e.Beauty = 571701] = "Beauty", e[e.Watermark = 572701] = "Watermark", e[e.BasicBeauty = 574701] = "BasicBeauty", e[e.FaceDetector = 575701] = "FaceDetector", e[e.CDNStreaming = 590701] = "CDNStreaming", e[e.DeviceDetector = 591701] = "DeviceDetector", e[e.Debug = 592701] = "Debug", e[e.SmallStreamAutoSwitcher = 593701] = "SmallStreamAutoSwitcher", e[e.VideoMixer = 594701] = "VideoMixer", e[e.AudioProcessor = 595701] = "AudioProcessor", e[e.LEBPlayer = 596701] = "LEBPlayer", e[e.RealtimeTranscriber = 597701] = "RealtimeTranscriber", e))(i2 || {}), r2 = ((e) => (e[e.AudioMixer = 550702] = "AudioMixer", e[e.AIDenoiser = 551702] = "AIDenoiser", e[e.VirtualBackground = 570702] = "VirtualBackground", e[e.Beauty = 571702] = "Beauty", e[e.Watermark = 572702] = "Watermark", e[e.BasicBeauty = 574702] = "BasicBeauty", e[e.FaceDetector = 575702] = "FaceDetector", e[e.CDNStreaming = 590702] = "CDNStreaming", e[e.DeviceDetector = 591702] = "DeviceDetector", e[e.Debug = 592702] = "Debug", e[e.SmallStreamAutoSwitcher = 593702] = "SmallStreamAutoSwitcher", e[e.VideoMixer = 594702] = "VideoMixer", e[e.AudioProcessor = 595702] = "AudioProcessor", e[e.LEBPlayer = 596702] = "LEBPlayer", e[e.RealtimeTranscriber = 597702] = "RealtimeTranscriber", e))(r2 || {}), n2 = ((tt = n2 || {})[tt.DECODER_TYPE = 514700] = "DECODER_TYPE", tt[tt.DECODER_HW_SW = 514701] = "DECODER_HW_SW", tt[tt.DECODE_RESULT = 514702] = "DECODE_RESULT", tt[tt.DECODE_FAILED_OS = 514703] = "DECODE_FAILED_OS", tt[tt.DOWNGRADE_RESULT = 514704] = "DOWNGRADE_RESULT", tt[tt.DOWNGRADE_WEBCODECS_VIDEO = 514705] = "DOWNGRADE_WEBCODECS_VIDEO", tt[tt.DOWNGRADE_WEBCODECS_2D = 514706] = "DOWNGRADE_WEBCODECS_2D", tt[tt.DOWNGRADE_WASM_WEGBL = 514707] = "DOWNGRADE_WASM_WEGBL", tt[tt.DOWNGRADE_WASM_VIDEO = 514708] = "DOWNGRADE_WASM_VIDEO", tt[tt.DOWNGRADE_WASM_2D = 514709] = "DOWNGRADE_WASM_2D", tt[tt.DECODE_H264_RESULT = 514710] = "DECODE_H264_RESULT", tt[tt.DECODE_H265_RESULT = 514711] = "DECODE_H265_RESULT", tt[tt.DECODE_VP8_RESULT = 514712] = "DECODE_VP8_RESULT", tt[tt.DECODE_CAPABILITIES = 514713] = "DECODE_CAPABILITIES", tt[tt.H264_PROFILE_LEVEL_ID_HIGH = 514714] = "H264_PROFILE_LEVEL_ID_HIGH", tt[tt.H264_PROFILE_LEVEL_ID_MAIN = 514715] = "H264_PROFILE_LEVEL_ID_MAIN", tt[tt.RENDER_FREEZE_RATE = 514850] = "RENDER_FREEZE_RATE", tt[tt.DATA_FREEZE_RATE = 514851] = "DATA_FREEZE_RATE", tt[tt.VIDEO_CONSUME_RENDER_RATE = 514852] = "VIDEO_CONSUME_RENDER_RATE", tt), UB = new $1(!0), Ac = new $1(!1), ce = UB, Qe = { result: !1, detail: { isBrowserSupported: !1, isWebRTCSupported: !1, isWebCodecsSupported: !1, isMediaDevicesSupported: !1, isScreenShareSupported: !1, isSmallStreamSupported: !1, isH264EncodeSupported: !1, isVp8EncodeSupported: !1, isH265EncodeSupported: !1, isH264DecodeSupported: !1, isVp8DecodeSupported: !1, isH265DecodeSupported: !1 } }, VB = /* @__PURE__ */ new Map([[lt, ["Firefox", Yg]], [mc, ["Edg", Xg]], [Dh, ["Chrome", h0]], [$t, ["Safari", qs]], [Ur, ["TBS", $g]], [Zn, ["XWEB", e0]], [Js && Ks, ["WeChat", t0]], [Sh, ["QQ(Win)", i0]], [_c, ["QQ(Mobile)", gc]], [fc, ["QQ(Mobile X5)", gc]], [Ih, ["QQ(Mac)", r0]], [Rh, ["QQ(iPad)", n0]], [Ah, ["MI", a0]], [bh, ["HW", l0]], [Ch, ["Samsung", c0]], [Ec, ["OPPO", u0]], [kh, ["VIVO", d0]], [Ro, ["EDGE", qg]], [yh, ["SogouMobile", Qg]], [Th, ["Sogou", Zg]]]);
5164
5164
  function FB() {
5165
5165
  let e = VB.get(!0);
5166
5166
  return { browserName: e ? e[0] : "unknown", browserVersion: e ? e[1] : "unknown" };
5167
5167
  }
5168
5168
  var I0 = function() {
5169
- return !(z1 || Ro || mc && G1 < 80 || lt && Eh < 56);
5169
+ return !(zC || Ro || mc && GC < 80 || lt && Eh < 56);
5170
5170
  }, Oh = function() {
5171
5171
  return ["VideoDecoder", "VideoEncoder", "AudioEncoder", "AudioDecoder"].every((e) => e in window);
5172
5172
  }, R0 = function() {
@@ -5302,8 +5302,8 @@ Refer to: `.concat(QC("en", l), `
5302
5302
  Ae.addEventListener("icecandidate", (ft) => Ge.addIceCandidate(ft.candidate)), Ge.addEventListener("icecandidate", (ft) => Ae.addIceCandidate(ft.candidate)), Ae.addTrack(Ne.getVideoTracks()[0], Ne);
5303
5303
  let Pe = yield Ae.createOffer();
5304
5304
  yield Ae.setLocalDescription(Pe), yield Ge.setRemoteDescription(Pe);
5305
- let Fe = yield Ge.createAnswer(), st = ZC.default.parse(Fe.sdp), vt = st.media[0].rtp.findIndex((ft) => ft.codec === "H264");
5306
- st.media[0].rtp = [st.media[0].rtp[vt]], st.media[0].fmtp = st.media[0].fmtp.filter((ft) => ft.payload === st.media[0].rtp[0].payload), st.media[0].rtcpFb && (st.media[0].rtcpFb = st.media[0].rtcpFb.filter((ft) => ft.payload === st.media[0].rtp[0].payload)), Fe.sdp = ZC.default.write(st), yield Ge.setLocalDescription(Fe), yield Ae.setRemoteDescription(Fe), de = setInterval(() => P(null, null, function* () {
5305
+ let Fe = yield Ge.createAnswer(), st = Z1.default.parse(Fe.sdp), vt = st.media[0].rtp.findIndex((ft) => ft.codec === "H264");
5306
+ st.media[0].rtp = [st.media[0].rtp[vt]], st.media[0].fmtp = st.media[0].fmtp.filter((ft) => ft.payload === st.media[0].rtp[0].payload), st.media[0].rtcpFb && (st.media[0].rtcpFb = st.media[0].rtcpFb.filter((ft) => ft.payload === st.media[0].rtp[0].payload)), Fe.sdp = Z1.default.write(st), yield Ge.setLocalDescription(Fe), yield Ae.setRemoteDescription(Fe), de = setInterval(() => P(null, null, function* () {
5307
5307
  Y.encode && Y.decode && (G(), B(Y));
5308
5308
  let [ft, fa] = yield Promise.all([Ae.getSenders()[0].getStats(), Ge.getReceivers()[0].getStats()]);
5309
5309
  Y.encode || ft.forEach((Li) => {
@@ -5382,7 +5382,7 @@ Refer to: `.concat(QC("en", l), `
5382
5382
  return "RTCPeerConnection" in window && "getTransceivers" in window.RTCPeerConnection.prototype;
5383
5383
  }
5384
5384
  function Rr() {
5385
- return !(Sr === 11 && !Q1) && "RTCPeerConnection" in window && "addTransceiver" in window.RTCPeerConnection.prototype;
5385
+ return !(Sr === 11 && !QC) && "RTCPeerConnection" in window && "addTransceiver" in window.RTCPeerConnection.prototype;
5386
5386
  }
5387
5387
  var kc = !(!Rr() || rr && nr < 86);
5388
5388
  function zB() {
@@ -5440,7 +5440,7 @@ Refer to: `.concat(QC("en", l), `
5440
5440
  var e;
5441
5441
  try {
5442
5442
  if (S2 || (e = navigator?.mediaCapabilities) == null || !e.encodingInfo) return;
5443
- let t = Ph(), i = tC();
5443
+ let t = Ph(), i = t1();
5444
5444
  if (t === 0 || i === 0) return;
5445
5445
  S2 = !0;
5446
5446
  let r = ["H264", "VP8", "VP9", "AV1", "H265"], [n, s] = yield Promise.all([R2(r), A2(r)]);
@@ -5865,7 +5865,7 @@ Refer to: `.concat(QC("en", l), `
5865
5865
  return this.isPausedByUserCall = !1, this.doResume(e);
5866
5866
  }
5867
5867
  doResume() {
5868
- return this._log.info("resume"), this.isPausedByUserCall || this.isPlaying ? Promise.resolve() : q1 ? this.replay() : this.play().catch(() => {
5868
+ return this._log.info("resume"), this.isPausedByUserCall || this.isPlaying ? Promise.resolve() : qC ? this.replay() : this.play().catch(() => {
5869
5869
  });
5870
5870
  }
5871
5871
  setMuted(e) {
@@ -5913,7 +5913,7 @@ Refer to: `.concat(QC("en", l), `
5913
5913
  if (this.element && this.element.error) {
5914
5914
  this.handlePaused(D.ERROR);
5915
5915
  let { code: t, message: i } = this.element.error;
5916
- this._log.error("".concat(this.kind, " ").concat(this._log.isLocal ? "local" : "remote", " MediaError code: ").concat(t, " message: ").concat(i, " userAgent: ").concat(navigator.userAgent)), ct.uploadEvent({ log: "stat-".concat(this.kind, "-").concat(ci.PLAYER_ERROR, "-").concat(t, "-").concat(navigator.userAgent), error: this.element.error }), K1 || o0 ? this.emit(Oe.ERROR, this.element.error) : this.replayByRecreateMediaStream(this.element.error);
5916
+ this._log.error("".concat(this.kind, " ").concat(this._log.isLocal ? "local" : "remote", " MediaError code: ").concat(t, " message: ").concat(i, " userAgent: ").concat(navigator.userAgent)), ct.uploadEvent({ log: "stat-".concat(this.kind, "-").concat(ci.PLAYER_ERROR, "-").concat(t, "-").concat(navigator.userAgent), error: this.element.error }), KC || o0 ? this.emit(Oe.ERROR, this.element.error) : this.replayByRecreateMediaStream(this.element.error);
5917
5917
  }
5918
5918
  break;
5919
5919
  case D.LOADEDDATA:
@@ -6836,7 +6836,7 @@ Refer to: `.concat(QC("en", l), `
6836
6836
  constructor(e) {
6837
6837
  let { userId: t, sdkAppId: i, mediaType: r, room: n, PlayerClass: s = r === 1 ? Y2 : Br } = e;
6838
6838
  var o;
6839
- super(), m(this, "id", sC()), m(this, "userId", ""), m(this, "isRemote"), m(this, "mediaType"), m(this, "room"), m(this, "user"), m(this, "_log"), m(this, "_inputTrack"), m(this, "_outputTrack"), m(this, "isPlayCalled"), m(this, "container", null), m(this, "player"), m(this, "subVideoPlayerMap"), m(this, "muted", !1), m(this, "abortCtrl"), m(this, "objectFit", "cover"), m(this, "mirror"), m(this, "rotation"), m(this, "isScreen", !1), m(this, "manager"), m(this, "trackSettings"), m(this, "isFirstVideoFrameEmitted", !1), this.userId = t || "", this.mediaType = r, this._log = fe.createLogger({ parent: n?.getLogger(), id: "".concat(this.kind[0], "t"), userId: (o = n || this.room) == null ? void 0 : o.userId, remoteUserId: this instanceof Yc ? void 0 : this.userId, sdkAppId: i, type: this.mediaType === 2 ? "auxiliary" : "main", isLocal: this instanceof Yc }), this.player = new s({ id: this.userId || this.id, track: null, muted: !1, container: null, log: this._log, enableVolumeControlInIOS: n?.enableVolumeControlInIOS }), this.player.on(Oe.PLAYER_STATE_CHANGED, (l) => {
6839
+ super(), m(this, "id", s1()), m(this, "userId", ""), m(this, "isRemote"), m(this, "mediaType"), m(this, "room"), m(this, "user"), m(this, "_log"), m(this, "_inputTrack"), m(this, "_outputTrack"), m(this, "isPlayCalled"), m(this, "container", null), m(this, "player"), m(this, "subVideoPlayerMap"), m(this, "muted", !1), m(this, "abortCtrl"), m(this, "objectFit", "cover"), m(this, "mirror"), m(this, "rotation"), m(this, "isScreen", !1), m(this, "manager"), m(this, "trackSettings"), m(this, "isFirstVideoFrameEmitted", !1), this.userId = t || "", this.mediaType = r, this._log = fe.createLogger({ parent: n?.getLogger(), id: "".concat(this.kind[0], "t"), userId: (o = n || this.room) == null ? void 0 : o.userId, remoteUserId: this instanceof Yc ? void 0 : this.userId, sdkAppId: i, type: this.mediaType === 2 ? "auxiliary" : "main", isLocal: this instanceof Yc }), this.player = new s({ id: this.userId || this.id, track: null, muted: !1, container: null, log: this._log, enableVolumeControlInIOS: n?.enableVolumeControlInIOS }), this.player.on(Oe.PLAYER_STATE_CHANGED, (l) => {
6840
6840
  if ($.emit(ie.PLAYER_STATE_CHANGED, ve({ track: this }, l)), this.emit("player-state-changed", l), l.state === "PLAYING" && this.room) {
6841
6841
  let c = !0;
6842
6842
  for (let { remoteAudioTrack: h, remoteVideoTrack: _, remoteAuxiliaryTrack: f } of [...this.room.remotePublishedUserMap.values()]) if (h.isAvailable && !h.player.isPlaying || _.isAvailable && !_.player.isPlaying || f.isAvailable && !f.player.isPlaying) {
@@ -8786,7 +8786,7 @@ Refer to: `.concat(QC("en", l), `
8786
8786
  }
8787
8787
  fallbackProfile(t) {
8788
8788
  let i = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], r = t.width > t.height, n = ve({}, t);
8789
- return t.width * t.height <= 19200 && xt && rr && (this.log.warn("".concat(i ? "small " : "", "resolution is ").concat(t.width, "*").concat(t.height, ", fallback to 240*180 for android chrome")), n.width = r ? 240 : 180, n.height = r ? 180 : 240, n.bitrate = Math.max(t.bitrate, 150)), t.width * t.height > 921600 && X1 && (n.width = r ? 1280 : 720, n.height = r ? 720 : 1280, this.log.warn("reset to 1280 * 720 on iOS 13~14")), p0(sr, "14.3") && m0(sr, "14.0", !0) && this.on("7", () => {
8789
+ return t.width * t.height <= 19200 && xt && rr && (this.log.warn("".concat(i ? "small " : "", "resolution is ").concat(t.width, "*").concat(t.height, ", fallback to 240*180 for android chrome")), n.width = r ? 240 : 180, n.height = r ? 180 : 240, n.bitrate = Math.max(t.bitrate, 150)), t.width * t.height > 921600 && XC && (n.width = r ? 1280 : 720, n.height = r ? 720 : 1280, this.log.warn("reset to 1280 * 720 on iOS 13~14")), p0(sr, "14.3") && m0(sr, "14.0", !0) && this.on("7", () => {
8790
8790
  let s = this.profile.width > this.profile.height;
8791
8791
  this.profile.width * this.profile.height > 307200 ? (this.profile.width = s ? 640 : 480, this.profile.height = s ? 480 : 640, this.log.warn("reduce the resolution to 480p on iOS 14.0 ~ 14.2")) : this.profile.width * this.profile.height > 230400 && (this.profile.width = s ? 640 : 360, this.profile.height = s ? 360 : 640, this.log.warn("reduce the resolution to 360p on iOS 14.0 ~ 14.2"));
8792
8792
  }), !i && this.avoidCropping && (rr || lt) && !f0() && t.width * t.height <= 230400 && t.width / t.height === 16 / 9 && (this._scaleResolutionDownBy = 1280 / t.width, t.width = 1280, t.height = 720, this.log.warn("capture 720p, scale: ".concat(this._scaleResolutionDownBy))), n;
@@ -8852,7 +8852,7 @@ Refer to: `.concat(QC("en", l), `
8852
8852
  this.setContentHint(e.contentHint || "motion");
8853
8853
  })], Rk.prototype, "capture");
8854
8854
  var En = Rk, Ak = {};
8855
- ln(Ak, { REPORT_TYPE: () => Bg, buildSSOPackage: () => So, bytes2ms: () => T1, calculateScaleResolutionDownNumber: () => fh, concatArrayBuffers: () => Hg, convertObjectNumberToInt: () => mh, copyProperties: () => y1, deepClone: () => To, deepCloneBasic: () => _h, deepMerge: () => hn, delay: () => xr, fibonacci: () => yo, formatedTime: () => P1, getConstructorName: () => uh, getContainerFromElement: () => N1, getEnv: () => f1, getFirst16Bits: () => M1, getInternalVersion: () => w1, getLast16Bits: () => Wg, getLoggerUrl: () => Eo, getMediaStreamTrackInfo: () => Fg, getMuteStateFromFlag: () => js, getNetworkType: () => ch, getNumNetworkType: () => nc, getReconnectionTimeout: () => Gs, getStringByteLength: () => ph, getTestSignalDomain: () => _1, getTurnServer: () => D1, getUint32Version: () => xg, getValueType: () => Zt, getViewListFromView: () => cc, glog: () => I1, ipv4ToUint32: () => lc, isArray: () => Kt, isAudioWorkletSupported: () => b1, isBoolean: () => It, isConstructor: () => ac, isEmpty: () => dh, isFunction: () => Lt, isLangChinese: () => dn, isMediaStreamTrack: () => R1, isNumber: () => rt, isObject: () => Lr, isOverseaSdkAppId: () => Xn, isPlainObject: () => er, isPortrait: () => Lg, isPromise: () => sc, isRemoteTrack: () => A1, isRotate90Or270: () => Qn, isSetSinkIdSupported: () => C1, isString: () => dt, isUndefined: () => j, loadImage: () => uc, loadVideo: () => O1, ms2bytes: () => S1, ms2samples: () => Mg, normalizeUrl: () => Vg, performanceNow: () => xe, promiseAny: () => oc, samples2ms: () => Og, setNetworkTypeFromWebRTC: () => Pg, stringify: () => Tr, stringifyIncludeValue: () => hh, throttlePromise: () => Ug });
8855
+ ln(Ak, { REPORT_TYPE: () => Bg, buildSSOPackage: () => So, bytes2ms: () => TC, calculateScaleResolutionDownNumber: () => fh, concatArrayBuffers: () => Hg, convertObjectNumberToInt: () => mh, copyProperties: () => yC, deepClone: () => To, deepCloneBasic: () => _h, deepMerge: () => hn, delay: () => xr, fibonacci: () => yo, formatedTime: () => PC, getConstructorName: () => uh, getContainerFromElement: () => NC, getEnv: () => fC, getFirst16Bits: () => MC, getInternalVersion: () => wC, getLast16Bits: () => Wg, getLoggerUrl: () => Eo, getMediaStreamTrackInfo: () => Fg, getMuteStateFromFlag: () => js, getNetworkType: () => ch, getNumNetworkType: () => nc, getReconnectionTimeout: () => Gs, getStringByteLength: () => ph, getTestSignalDomain: () => _C, getTurnServer: () => DC, getUint32Version: () => xg, getValueType: () => Zt, getViewListFromView: () => cc, glog: () => IC, ipv4ToUint32: () => lc, isArray: () => Kt, isAudioWorkletSupported: () => bC, isBoolean: () => It, isConstructor: () => ac, isEmpty: () => dh, isFunction: () => Lt, isLangChinese: () => dn, isMediaStreamTrack: () => RC, isNumber: () => rt, isObject: () => Lr, isOverseaSdkAppId: () => Xn, isPlainObject: () => er, isPortrait: () => Lg, isPromise: () => sc, isRemoteTrack: () => AC, isRotate90Or270: () => Qn, isSetSinkIdSupported: () => CC, isString: () => dt, isUndefined: () => j, loadImage: () => uc, loadVideo: () => OC, ms2bytes: () => SC, ms2samples: () => Mg, normalizeUrl: () => Vg, performanceNow: () => xe, promiseAny: () => oc, samples2ms: () => Og, setNetworkTypeFromWebRTC: () => Pg, stringify: () => Tr, stringifyIncludeValue: () => hh, throttlePromise: () => Ug });
8856
8856
  var NH = [-1, -1, 1, -1, -1, 1, 1, 1], PH = [0, 0, 1, 0, 0, 1, 1, 1], Xc = class vE extends $e {
8857
8857
  constructor(t, i) {
8858
8858
  if (super(), this.context = t, m(this, "name"), m(this, "input"), m(this, "output"), m(this, "texture"), m(this, "ctx2d", null), m(this, "fbo"), m(this, "width", 0), m(this, "height", 0), m(this, "x", 0), m(this, "y", 0), m(this, "program"), m(this, "vertexShader"), m(this, "fragmentShader"), m(this, "totalFrames", 0), m(this, "dropFrames", 0), m(this, "matchInputSize", !0), m(this, "texCoordBuffer"), m(this, "positionBuffer"), m(this, "lastInfo", { name: "", timestamp: 0, totalFrames: 0, x: 0, y: 0, width: 0, height: 0, fps: 0 }), m(this, "cost", 0), m(this, "_canvas", null), m(this, "_image"), m(this, "log"), this.context.on("disconnect", this.close, this), this.name = i.name, this.log = i.logger, this.matchInputSize = i.matchInputSize !== !1, this.width = i.width || t.width, this.height = i.height || t.height, this._image = i.image, t instanceof Wr) t.ctx && i.create2d && (typeof OffscreenCanvas == "function" && Sr !== 16 ? this._canvas = new OffscreenCanvas(this.width, this.height) : (this._canvas = document.createElement("canvas"), this._canvas.width = this.width, this._canvas.height = this.height), this.ctx2d = this._canvas.getContext("2d"), this._image = this._canvas);
@@ -9257,7 +9257,7 @@ Refer to: `.concat(QC("en", l), `
9257
9257
  }
9258
9258
  create() {
9259
9259
  let e = arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
9260
- if (this._canvas || (this._canvas = document.createElement("canvas"), this._canvas.id = "trtc_".concat(this.name, "_").concat(Qc._ids++)), e && (this._canvas2d = document.createElement("canvas")), this.ctx = this._canvas.getContext("webgl2", d1), !this.ctx) throw new me({ code: te.VIDEO_MANAGER_ERROR, extraCode: 2, message: "webgl2 not supported" });
9260
+ if (this._canvas || (this._canvas = document.createElement("canvas"), this._canvas.id = "trtc_".concat(this.name, "_").concat(Qc._ids++)), e && (this._canvas2d = document.createElement("canvas")), this.ctx = this._canvas.getContext("webgl2", dC), !this.ctx) throw new me({ code: te.VIDEO_MANAGER_ERROR, extraCode: 2, message: "webgl2 not supported" });
9261
9261
  this.defaultVShader = this.createShader(this.ctx.VERTEX_SHADER, `
9262
9262
  // 顶点着色器
9263
9263
  attribute vec4 a_position;
@@ -9695,7 +9695,7 @@ void main() {
9695
9695
  for (let t of this.videoNodeMap.values()) t.image instanceof HTMLVideoElement && this.stopVideoElement(t.image);
9696
9696
  this.videoNodeMap.clear(), this.log.info("localMixVideoTrack close, stop mix");
9697
9697
  }
9698
- }, fv = sC();
9698
+ }, fv = s1();
9699
9699
  if (typeof navigator < "u" && navigator.mediaDevices && "setCaptureHandleConfig" in navigator.mediaDevices) try {
9700
9700
  navigator.mediaDevices.setCaptureHandleConfig({ handle: fv, exposeOrigin: !0, permittedOrigins: ["*"] });
9701
9701
  } catch {
@@ -10451,7 +10451,7 @@ void main() {
10451
10451
  if (!i) return;
10452
10452
  if (this.asrRobotUserMap.has(e)) return void this.deleteAsrRobotUser(e);
10453
10453
  let r = "peer leave [".concat(e, "]");
10454
- j(t) || (r += ":".concat(u1[t])), this._log.info(r);
10454
+ j(t) || (r += ":".concat(uC[t])), this._log.info(r);
10455
10455
  let n = this.remotePublishedUserMap.get(e);
10456
10456
  if (n) {
10457
10457
  let s = n.muteState;
@@ -10765,7 +10765,7 @@ void main() {
10765
10765
  }
10766
10766
  function cp(e, t) {
10767
10767
  let i = t ? Zb : Yl;
10768
- return F1(e) ? ve(ve({}, i), e) : un[e] ? un[e] : i;
10768
+ return FC(e) ? ve(ve({}, i), e) : un[e] ? un[e] : i;
10769
10769
  }
10770
10770
  var Mk = { type: "object", properties: { cameraId: { type: "string" }, useFrontCamera: { type: "boolean" }, fillMode: { type: "string", values: ["contain", "cover", "fill"] }, mirror: { type: ["string", "boolean"], values: [!0, !1, "view", "publish", "both"] }, small: { type: ["string", "object", "boolean"], properties: { width: { type: "number" }, height: { type: "number" }, frameRate: { type: "number" }, bitrate: { type: "number" } } }, videoTrack: { instanceOf: MediaStreamTrack } } }, Lk = { type: "object", properties: { systemAudio: { type: "boolean" }, fillMode: { type: "string", values: ["contain", "cover", "fill"] }, profile: { type: ["string", "object"], properties: { width: { type: "number" }, height: { type: "number" }, frameRate: { type: "number" }, bitrate: { type: "number" } } }, videoTrack: { instanceOf: MediaStreamTrack }, audioTrack: { instanceOf: MediaStreamTrack } } }, Vo = { type: ["string", HTMLElement, null, "array"], arrayItem: { instanceOf: HTMLElement }, validate(e, t, i) {
10771
10771
  if (dt(e) && !document.getElementById(e)) throw new De({ code: we.INVALID_PARAMETER, extraCode: 5009, fnName: i, messageParams: { key: t } });
@@ -11358,7 +11358,7 @@ void main() {
11358
11358
  function iW(e) {
11359
11359
  var t = this;
11360
11360
  let { TRTC: i, room: r, errorModule: n, assetsPath: s } = e;
11361
- return { TRTC: i, LocalMixVideoTrack: mv, LocalVideoTrack: En, LocalScreenTrack: sa, room: r, assetsPath: s, fileDownloader: Iv, innerEmitter: $, INNER_EVENT: ie, constants: zb, environment: B1, utils: Ak, eventLogger: ct, log: this.room.getLogger(), loggerManager: fe, errorModule: n, kvStatManager: ce, rtcDectection: Ic, trtc: this, rx: ek, enums: aC, schedule: Gk, getDevices: Kh, initVisionTaskRegistry: function(o, l) {
11361
+ return { TRTC: i, LocalMixVideoTrack: mv, LocalVideoTrack: En, LocalScreenTrack: sa, room: r, assetsPath: s, fileDownloader: Iv, innerEmitter: $, INNER_EVENT: ie, constants: zb, environment: BC, utils: Ak, eventLogger: ct, log: this.room.getLogger(), loggerManager: fe, errorModule: n, kvStatManager: ce, rtcDectection: Ic, trtc: this, rx: ek, enums: a1, schedule: Gk, getDevices: Kh, initVisionTaskRegistry: function(o, l) {
11362
11362
  let c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "/mediapipe/vision.js";
11363
11363
  return P(t, null, function* () {
11364
11364
  !window.VisionTaskRegistry && !nw && (nw = !0, rw = Iv.loadScript("".concat(o, "/").concat(c).replace(/([^:]\/)\/+/g, "$1"))), yield rw, yield (yield window.VisionTaskRegistry.getInstance(o)).preloadModels(l);
@@ -13778,7 +13778,7 @@ CPU core: `).concat(navigator.hardwareConcurrency, ", GPU: ").concat(Co());
13778
13778
  return P(this, null, function* () {
13779
13779
  try {
13780
13780
  this._isSDPExchanging = !0, yield this.createOffer(), this._log.info("createOffer success, sending offer");
13781
- let { type: i, sdp: r } = this._peerConnection.localDescription, n = { type: i, sdp: r, srcUserId: this.userId, srcTinyId: this.tinyId, audio: t.audio, bigVideo: t.video, auxVideo: t.auxiliary, smallVideo: t.smallVideo }, s = yield this._signalChannel.sendWaitForResponse({ command: Ew, commandDesc: "exchange sdp", data: n, responseCommand: We.SUBSCRIBE_RESULT, timeout: l1 });
13781
+ let { type: i, sdp: r } = this._peerConnection.localDescription, n = { type: i, sdp: r, srcUserId: this.userId, srcTinyId: this.tinyId, audio: t.audio, bigVideo: t.video, auxVideo: t.auxiliary, smallVideo: t.smallVideo }, s = yield this._signalChannel.sendWaitForResponse({ command: Ew, commandDesc: "exchange sdp", data: n, responseCommand: We.SUBSCRIBE_RESULT, timeout: lC });
13782
13782
  if (!this._peerConnection) {
13783
13783
  let o = new me({ code: te.INVALID_OPERATION, message: Be({ key: Ve.CONNECTION_CLOSED }) });
13784
13784
  throw this._log.warn(o), o;
@@ -13855,7 +13855,7 @@ CPU core: `).concat(navigator.hardwareConcurrency, ", GPU: ").concat(Co());
13855
13855
  return (o = s.value) == null ? void 0 : o.includes(rh);
13856
13856
  }), n = i.ssrcs.find((s) => {
13857
13857
  var o;
13858
- return (o = s.value) == null ? void 0 : o.includes(i1);
13858
+ return (o = s.value) == null ? void 0 : o.includes(iC);
13859
13859
  });
13860
13860
  r && (this.ssrc.video = Number(r.id)), n && (this.ssrc.auxiliary = Number(n.id));
13861
13861
  }
@@ -14178,7 +14178,7 @@ CPU core: `).concat(navigator.hardwareConcurrency, ", GPU: ").concat(Co());
14178
14178
  lt && r.sdp && (r.sdp = this.setSDPDirection(r.sdp, "sendrecv")), yield this.setOffer(r);
14179
14179
  let n = this.updateMediaSettings(), s = { action: t, trackId: i.id, kind: i.kind === D.VIDEO ? "bigVideo" : i.kind, type: "offer", sdp: this._peerConnection.localDescription.sdp, constraintConfig: n, state: this._room.publishState };
14180
14180
  this._log.info("createOffer success, sending updated offer to remote server"), this._log.debug("updatedOffer: ".concat(s.sdp));
14181
- let o = yield this._signalChannel.sendWaitForResponse({ command: _w, data: s, responseCommand: We.UPDATE_OFFER_RESULT, timeout: o1, commandDesc: "update offer" }), { code: l, message: c } = o.data;
14181
+ let o = yield this._signalChannel.sendWaitForResponse({ command: _w, data: s, responseCommand: We.UPDATE_OFFER_RESULT, timeout: oC, commandDesc: "update offer" }), { code: l, message: c } = o.data;
14182
14182
  l !== 0 && this.checkPublishResultCode(l, c), yield this.acceptAnswer(o.data.data), r.sdp && this.updateSSRC(r.sdp);
14183
14183
  } catch (r) {
14184
14184
  throw this._log.error(r), r;
@@ -14543,11 +14543,11 @@ b=`.concat(r, ":").concat(i, `\r
14543
14543
  Z.msg_audio_status = de;
14544
14544
  }
14545
14545
  if (H.hasVideo) {
14546
- let de = r.get("".concat(H.userId, "_").concat(r1)), pe = de ? de.duration : 0, Ne = { uint32_video_stream_type: H.isSmallSubscribed ? 3 : 2, uint32_video_receive_fps: H.video.framesReceived, uint32_video_width: H.video.frameWidth, uint32_video_height: H.video.frameHeight, uint32_video_codec_bitrate: H.video.bytesReceived, uint32_video_receive: H.video.packetsReceived, uint32_video_origin_lost: H.video.packetsLost, uint32_video_block_time: pe, uint32_video_dec_fps: H.video.framesDecoded, uint32_video_codec_fps: H.video.fpsRender, uint32_video_cache_ms: H.video.totalJitter, uint32_video_cache_ms_count: H.video.totalJitterCount, uint32_video_p2p_delay: H.video.p2pDelay, uint32_video_codec: H.video.codec, int32_video_audio_relative_delay: H.avSyncDelay + 5e3 };
14546
+ let de = r.get("".concat(H.userId, "_").concat(rC)), pe = de ? de.duration : 0, Ne = { uint32_video_stream_type: H.isSmallSubscribed ? 3 : 2, uint32_video_receive_fps: H.video.framesReceived, uint32_video_width: H.video.frameWidth, uint32_video_height: H.video.frameHeight, uint32_video_codec_bitrate: H.video.bytesReceived, uint32_video_receive: H.video.packetsReceived, uint32_video_origin_lost: H.video.packetsLost, uint32_video_block_time: pe, uint32_video_dec_fps: H.video.framesDecoded, uint32_video_codec_fps: H.video.fpsRender, uint32_video_cache_ms: H.video.totalJitter, uint32_video_cache_ms_count: H.video.totalJitterCount, uint32_video_p2p_delay: H.video.p2pDelay, uint32_video_codec: H.video.codec, int32_video_audio_relative_delay: H.avSyncDelay + 5e3 };
14547
14547
  Z.msg_video_status.push(Ne);
14548
14548
  }
14549
14549
  if (H.hasAuxiliary) {
14550
- let de = r.get("".concat(H.userId, "_").concat(n1)), pe = de ? de.duration : 0, Ne = { uint32_video_stream_type: 7, uint32_video_receive_fps: H.auxiliary.framesReceived, uint32_video_width: H.auxiliary.frameWidth, uint32_video_height: H.auxiliary.frameHeight, uint32_video_codec_bitrate: H.auxiliary.bytesReceived, uint32_video_receive: H.auxiliary.packetsReceived + H.auxiliary.packetsLost, uint32_video_origin_lost: H.auxiliary.packetsLost, uint32_video_block_time: pe, uint32_video_dec_fps: H.auxiliary.framesDecoded, uint32_video_codec_fps: H.video.fpsRender, uint32_video_cache_ms: H.auxiliary.totalJitter, uint32_video_cache_ms_count: H.auxiliary.totalJitterCount, uint32_video_p2p_delay: H.auxiliary.p2pDelay, uint32_video_codec: H.video.codec };
14550
+ let de = r.get("".concat(H.userId, "_").concat(nC)), pe = de ? de.duration : 0, Ne = { uint32_video_stream_type: 7, uint32_video_receive_fps: H.auxiliary.framesReceived, uint32_video_width: H.auxiliary.frameWidth, uint32_video_height: H.auxiliary.frameHeight, uint32_video_codec_bitrate: H.auxiliary.bytesReceived, uint32_video_receive: H.auxiliary.packetsReceived + H.auxiliary.packetsLost, uint32_video_origin_lost: H.auxiliary.packetsLost, uint32_video_block_time: pe, uint32_video_dec_fps: H.auxiliary.framesDecoded, uint32_video_codec_fps: H.video.fpsRender, uint32_video_cache_ms: H.auxiliary.totalJitter, uint32_video_cache_ms_count: H.auxiliary.totalJitterCount, uint32_video_p2p_delay: H.auxiliary.p2pDelay, uint32_video_codec: H.video.codec };
14551
14551
  Z.msg_video_status.push(Ne);
14552
14552
  }
14553
14553
  i.msg_down_stream_info.push(Z);
@@ -15103,7 +15103,7 @@ b=`.concat(r, ":").concat(i, `\r
15103
15103
  upload(e) {
15104
15104
  return P(this, null, function* () {
15105
15105
  if (e.msg_path_enter_room.uint64_start_time === 0) return;
15106
- let t = Number(this._room.sdkAppId), i = Sc.enable ? So(e, 2001, t) : yield U1(e), r = i instanceof ArrayBuffer, n = "".concat(Eo(t, Jl.KEY_POINT), "&gzip=").concat(+r), s = !1;
15106
+ let t = Number(this._room.sdkAppId), i = Sc.enable ? So(e, 2001, t) : yield UC(e), r = i instanceof ArrayBuffer, n = "".concat(Eo(t, Jl.KEY_POINT), "&gzip=").concat(+r), s = !1;
15107
15107
  navigator.sendBeacon && (s = navigator.sendBeacon(n, i));
15108
15108
  let o = [this.uploadKVStat(ce), this.uploadKVStat(Ac)];
15109
15109
  s || o.push(dc({ url: n, body: i, priority: "low" })), yield Promise.all(o);
@@ -15121,7 +15121,7 @@ b=`.concat(r, ":").concat(i, `\r
15121
15121
  let o = t.getReportData((n = i._room) == null ? void 0 : n.userSig, (s = i._signalInfo) == null ? void 0 : s.reportToken);
15122
15122
  if (o.stats_count.length === 0 && o.stats_distribution.length === 0) return;
15123
15123
  o.msg_sdk_basic_info = Le(ve({}, o.msg_sdk_basic_info), { bytes_device_name: i._basicInfo.string_device_name || "", bytes_os_version: i._basicInfo.string_os_version || "", uint32_framework: i._frameWorkType, uint32_network_type: i._basicInfo.uint32_networkType || 0 }), i._log.debug(o);
15124
- let l = Sc.enable ? So(o, 2003, r) : yield U1(o), c = l instanceof ArrayBuffer, h = "".concat(Eo(+r, Jl.KV_STAT), "&gzip=").concat(+c), _ = !1;
15124
+ let l = Sc.enable ? So(o, 2003, r) : yield UC(o), c = l instanceof ArrayBuffer, h = "".concat(Eo(+r, Jl.KV_STAT), "&gzip=").concat(+c), _ = !1;
15125
15125
  navigator.sendBeacon && (_ = navigator.sendBeacon(h, l)), _ || dc({ url: h, body: l });
15126
15126
  })();
15127
15127
  });
@@ -15910,7 +15910,7 @@ void main() {
15910
15910
  }
15911
15911
  initializeGlVideoContext() {
15912
15912
  try {
15913
- this._glVideoContext.create(Y1 <= 22), this._glVideoContext.on(ar.UNAVAILABLE, (e) => {
15913
+ this._glVideoContext.create(YC <= 22), this._glVideoContext.on(ar.UNAVAILABLE, (e) => {
15914
15914
  var t;
15915
15915
  this.emit("error", e), this.log.warn("video context unavailable", e), (t = this._virtualBackgroundAbortCallback) == null || t.call(this, e), this.update().catch((i) => {
15916
15916
  this.log.error(i);
@@ -16329,7 +16329,7 @@ void main() {
16329
16329
  let o = xe();
16330
16330
  try {
16331
16331
  let { isCached: l, result: c, detailCost: h } = yield zk({ userId: this.userId, sdkAppId: this.sdkAppId, roomId: this.useStringRoomId ? e.strRoomId : e.roomId, useStringRoomId: this.useStringRoomId, version: yr, userSig: this.userSig, role: this.scene === "live" ? e.role : void 0, frameWorkType: t, latencyLevel: e.latencyLevel });
16332
- this._isUsingCachedSchedule = l, this._log.info("schedule cache:".concat(+l, " ").concat(Tr(c, { keysToExclude: ["username", "credential"] }))), l && $.once(ie.JOIN_RECEIVED_CMD_RES, () => this.sendAbilityStatus({ scheduleCache: 1 })), this.scheduleResult = ve(ve({}, this.scheduleResult), c), rt((i = c.config) == null ? void 0 : i.retryCount) && a1(c.config.retryCount), dt((r = c.config) == null ? void 0 : r.loggerDomain) && Kl(c.config.loggerDomain), this.videoDecodeFallbackType = ((n = c.config) == null ? void 0 : n.videoDecodeFallback) || this.videoDecodeFallbackType, this.smallMode = ((s = c.config) == null ? void 0 : s.smallMode) || this.smallMode, $.emit(ie.JOIN_SCHEDULE_SUCCESS, { room: this, schedule: this.scheduleResult, detailCost: h }), ce.addSuccessEvent({ key: 521700, cost: xe() - o });
16332
+ this._isUsingCachedSchedule = l, this._log.info("schedule cache:".concat(+l, " ").concat(Tr(c, { keysToExclude: ["username", "credential"] }))), l && $.once(ie.JOIN_RECEIVED_CMD_RES, () => this.sendAbilityStatus({ scheduleCache: 1 })), this.scheduleResult = ve(ve({}, this.scheduleResult), c), rt((i = c.config) == null ? void 0 : i.retryCount) && aC(c.config.retryCount), dt((r = c.config) == null ? void 0 : r.loggerDomain) && Kl(c.config.loggerDomain), this.videoDecodeFallbackType = ((n = c.config) == null ? void 0 : n.videoDecodeFallback) || this.videoDecodeFallbackType, this.smallMode = ((s = c.config) == null ? void 0 : s.smallMode) || this.smallMode, $.emit(ie.JOIN_SCHEDULE_SUCCESS, { room: this, schedule: this.scheduleResult, detailCost: h }), ce.addSuccessEvent({ key: 521700, cost: xe() - o });
16333
16333
  } catch (l) {
16334
16334
  throw ce.addFailedEvent({ key: 521700, error: l }), l;
16335
16335
  }
@@ -16606,7 +16606,7 @@ void main() {
16606
16606
  getPeerConnectionConfig(e) {
16607
16607
  var t;
16608
16608
  let i = { encodedInsertableStreams: this.enableInsertableStreams, offerExtmapAllowMixed: !0, iceServers: e, iceTransportPolicy: this._room.getIceTransportPolicy(), sdpSemantics: this._room.sdpSemantics, bundlePolicy: "max-bundle", rtcpMuxPolicy: "require", tcpCandidatePolicy: "disable", IceTransportsType: "nohost" }, r = (t = this._peerConnection) == null ? void 0 : t.getConfiguration().encodedInsertableStreams;
16609
- return V1(r) && (i.encodedInsertableStreams = r), this._log.debug("getPeerConnectionConfig", JSON.stringify(i)), i;
16609
+ return VC(r) && (i.encodedInsertableStreams = r), this._log.debug("getPeerConnectionConfig", JSON.stringify(i)), i;
16610
16610
  }
16611
16611
  initialize(e) {
16612
16612
  return P(this, null, function* () {
@@ -17417,7 +17417,7 @@ next answer: `).concat(this.filterSDPDirection(t))), this._log.warn("offer: ".co
17417
17417
  return P(this, null, function* () {
17418
17418
  var t, i;
17419
17419
  if ((((t = this._room.scheduleResult.config) == null ? void 0 : t.profileLevelId) || {})[e.streamType === "main" ? "big" : "aux"] !== "high") return;
17420
- let r = e.newWidth * e.newHeight >= 921600 && !$1();
17420
+ let r = e.newWidth * e.newHeight >= 921600 && !$C();
17421
17421
  try {
17422
17422
  yield (i = this.singlePC) == null ? void 0 : i.setH264ProfileLevelId(e.streamType, r);
17423
17423
  } catch (n) {
@@ -18030,7 +18030,7 @@ next answer: `).concat(this.filterSDPDirection(t))), this._log.warn("offer: ".co
18030
18030
  e.privateMapKey && (this.privateMapKey = e.privateMapKey), e.latencyLevel && (this.latencyLevel = e.latencyLevel), this.signalChannel.once(Ep, (C) => {
18031
18031
  this.clearJoinTimeout(), $.emit(ie.JOIN_SIGNAL_CONNECTION_END, { room: this, error: C }), r(C);
18032
18032
  }), It((s = (n = this.scheduleResult) == null ? void 0 : n.config) == null ? void 0 : s.singlePC) && kc && (this.enableSPC = this.scheduleResult.config.singlePC), this.keyPointManager.setConnectionType(this.singlePC ? 1 : 2), (!((l = (o = this.scheduleResult) == null ? void 0 : o.config) != null && l.jitterDelay) && !((h = (c = this.scheduleResult) == null ? void 0 : c.config) != null && h.jitterDelayAux) || !Uh) && t && this.playoutDelay && (this._log.info("set playoutDelay", JSON.stringify(this.playoutDelay)), t.playoutDelay = this.playoutDelay);
18033
- let T = { roomId: String(e.roomId || e.strRoomId), useStringRoomId: this.useStringRoomId, privateMapKey: this.privateMapKey, latencyLevel: this.latencyLevel, trtcRole: e.role, trtcScene: this.scene === "live" ? 2 : 1, sdpSemantics: this.sdpSemantics, version: this._version, ua: navigator && navigator.userAgent || "", terminalType: iC(), netType: nc(), bussinessInfo: this._businessInfo, ability: t, sdkType: this._sdkType, userSig: this.userSig, receiveMix: !0, isChorus: !!this.enableChorus, enableNtpAudioFrame: !!this.enableChorus && Oh(), transcription: this._enableDataChannel, downUseVp8: ((_ = this.scheduleResult.config) == null ? void 0 : _.downUseVp8) || !1 };
18033
+ let T = { roomId: String(e.roomId || e.strRoomId), useStringRoomId: this.useStringRoomId, privateMapKey: this.privateMapKey, latencyLevel: this.latencyLevel, trtcRole: e.role, trtcScene: this.scene === "live" ? 2 : 1, sdpSemantics: this.sdpSemantics, version: this._version, ua: navigator && navigator.userAgent || "", terminalType: i1(), netType: nc(), bussinessInfo: this._businessInfo, ability: t, sdkType: this._sdkType, userSig: this.userSig, receiveMix: !0, isChorus: !!this.enableChorus, enableNtpAudioFrame: !!this.enableChorus && Oh(), transcription: this._enableDataChannel, downUseVp8: ((_ = this.scheduleResult.config) == null ? void 0 : _.downUseVp8) || !1 };
18034
18034
  this._log.debug("join room signal data: ".concat(JSON.stringify(T)));
18035
18035
  let b = 5e3;
18036
18036
  (f = this.scheduleResult.config) != null && f.enterRoomTimeout && this.scheduleResult.config.enterRoomTimeout >= 1 && (b = 1e3 * this.scheduleResult.config.enterRoomTimeout), this._joinTimeout = window.setTimeout(() => {
@@ -18164,7 +18164,7 @@ next answer: `).concat(this.filterSDPDirection(t))), this._log.warn("offer: ".co
18164
18164
  if (!this.isJoined) return;
18165
18165
  let t = !1, i = e.data.userList || [], r = e.data.mixRobotList || [], n = [];
18166
18166
  for (let o of i) {
18167
- if (o.flag === e1) continue;
18167
+ if (o.flag === eC) continue;
18168
18168
  let { userId: l, srcTinyId: c, flag: h, fromType: _ } = o;
18169
18169
  l === this.userId && (t = !0, this.uplinkConnection && (this.uplinkConnection.flag = h), this.localPublishFlag !== h && (this.localPublishFlag = h, this.emit("local-publish-flag-changed", h))), n.push({ userId: l, tinyId: c, flag: h, fromType: _ });
18170
18170
  }
@@ -22958,8 +22958,8 @@ const Tz = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
22958
22958
  _: 1
22959
22959
  }));
22960
22960
  }
22961
- }, Wz = /* @__PURE__ */ bz(Fz, [["__scopeId", "data-v-989115b9"]]);
22961
+ }, Bz = /* @__PURE__ */ bz(Fz, [["__scopeId", "data-v-989115b9"]]), Gz = Bz;
22962
22962
  export {
22963
- Wz as CallKit,
22964
- Wz as default
22963
+ Gz as CallKit,
22964
+ Bz as default
22965
22965
  };