@100mslive/roomkit-react 0.3.25-alpha.0 → 0.3.25-alpha.10

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -35,8 +35,8 @@ var __objRest = (source, exclude) => {
35
35
  }
36
36
  return target;
37
37
  };
38
- var __esm = (fn, res) => function __init() {
39
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
38
+ var __esm = (fn2, res) => function __init() {
39
+ return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
40
40
  };
41
41
  var __commonJS = (cb, mod) => function __require() {
42
42
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
@@ -45,13 +45,13 @@ var __export = (target, all) => {
45
45
  for (var name in all)
46
46
  __defProp(target, name, { get: all[name], enumerable: true });
47
47
  };
48
- var __copyProps = (to2, from, except, desc) => {
48
+ var __copyProps = (to, from, except, desc) => {
49
49
  if (from && typeof from === "object" || typeof from === "function") {
50
50
  for (let key of __getOwnPropNames(from))
51
- if (!__hasOwnProp.call(to2, key) && key !== except)
52
- __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
51
+ if (!__hasOwnProp.call(to, key) && key !== except)
52
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
53
53
  }
54
- return to2;
54
+ return to;
55
55
  };
56
56
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
57
57
  // If the importer is in node compatibility mode or this is not an ESM
@@ -100,7 +100,7 @@ var __async = (__this, __arguments, generator) => {
100
100
  reject(e);
101
101
  }
102
102
  };
103
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
103
+ var step = (x2) => x2.done ? resolve(x2.value) : Promise.resolve(x2.value).then(fulfilled, rejected);
104
104
  step((generator = generator.apply(__this, __arguments)).next());
105
105
  });
106
106
  };
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
109
109
  var define_process_env_default;
110
110
  var init_define_process_env = __esm({
111
111
  "<define:process.env>"() {
112
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_fdc18806-25a5-4068-94ca-265cb522b1de", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.15-alpha.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.25-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_fdc18806-25a5-4068-94ca-265cb522b1de", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.25-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", npm_package_dependencies_framer_motion: "^11.11.0", GRADLE_HOME: "/usr/share/gradle-8.11", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "600", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241112.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.9/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.3/x64", JOURNAL_STREAM: "8:20104", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.25-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "11855271102", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "b9a15a40498feb37cf34dc6fab790cb9dcfcd775", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "8d13f3e7ae5c69b0c10cdb4fded7a35cfe4ae6e9d7ba5cee97915716e4554ca8", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1731669432812-0.2337573796001824:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1731669432604-0.25873287059744565:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1731669407147-0.439723742794045:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1731669406969-0.25071026887460657:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_c2abb25f-b4f9-43ca-8583-3e4886dcb4b7", INVOCATION_ID: "d5ed20e7f2ff420da6ea7ee0a9611a63", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "701", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 292", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.25-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:only", npm_package_version: "0.3.25-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "b9a15a40498feb37cf34dc6fab790cb9dcfcd775", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_fdc18806-25a5-4068-94ca-265cb522b1de", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_fdc18806-25a5-4068-94ca-265cb522b1de", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_fdc18806-25a5-4068-94ca-265cb522b1de" };
112
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_3f7c2a95-478d-43c5-a996-4d9605571b3a", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.15-alpha.10", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.5 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.25-alpha.10", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_3f7c2a95-478d-43c5-a996-4d9605571b3a", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.25-alpha.10", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.11.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "598", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241201.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.9/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.2-alpha.9", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.3/x64", JOURNAL_STREAM: "8:19894", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^19.6.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.25-alpha.10", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12197856980", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "b501de9d52ebead7150aaeaeed746c0ed1ac2c6d", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "41816079005826034c1b1b2492c064f7b7c59e8bfc7cc5b31476a372dc13471c", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1733483942039-0.5957725804967211:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733483941843-0.661728115866506:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733483916627-0.8087495583368669:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733483916438-0.6988583562272579:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_3baa011b-ddb7-46b8-913b-bdce922594db", INVOCATION_ID: "e38f861e3dbe4d48b4f86feea7250623", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "712", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 182", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.25-alpha.10", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:only", npm_package_version: "0.3.25-alpha.10", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "b501de9d52ebead7150aaeaeed746c0ed1ac2c6d", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_3f7c2a95-478d-43c5-a996-4d9605571b3a", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3f7c2a95-478d-43c5-a996-4d9605571b3a", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_3f7c2a95-478d-43c5-a996-4d9605571b3a" };
113
113
  }
114
114
  });
115
115
 
@@ -2288,8 +2288,8 @@ var require_lodash = __commonJS({
2288
2288
  function createBind(func, bitmask, thisArg) {
2289
2289
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
2290
2290
  function wrapper() {
2291
- var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2292
- return fn.apply(isBind ? thisArg : this, arguments);
2291
+ var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2292
+ return fn2.apply(isBind ? thisArg : this, arguments);
2293
2293
  }
2294
2294
  return wrapper;
2295
2295
  }
@@ -2355,8 +2355,8 @@ var require_lodash = __commonJS({
2355
2355
  arity - length
2356
2356
  );
2357
2357
  }
2358
- var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2359
- return apply(fn, this, args);
2358
+ var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2359
+ return apply(fn2, this, args);
2360
2360
  }
2361
2361
  return wrapper;
2362
2362
  }
@@ -2444,7 +2444,7 @@ var require_lodash = __commonJS({
2444
2444
  arity - length
2445
2445
  );
2446
2446
  }
2447
- var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func;
2447
+ var thisBinding = isBind ? thisArg : this, fn2 = isBindKey ? thisBinding[func] : func;
2448
2448
  length = args.length;
2449
2449
  if (argPos) {
2450
2450
  args = reorder(args, argPos);
@@ -2455,9 +2455,9 @@ var require_lodash = __commonJS({
2455
2455
  args.length = ary2;
2456
2456
  }
2457
2457
  if (this && this !== root && this instanceof wrapper) {
2458
- fn = Ctor || createCtor(fn);
2458
+ fn2 = Ctor || createCtor(fn2);
2459
2459
  }
2460
- return fn.apply(thisBinding, args);
2460
+ return fn2.apply(thisBinding, args);
2461
2461
  }
2462
2462
  return wrapper;
2463
2463
  }
@@ -2514,14 +2514,14 @@ var require_lodash = __commonJS({
2514
2514
  function createPartial(func, bitmask, thisArg, partials) {
2515
2515
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
2516
2516
  function wrapper() {
2517
- var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2517
+ var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2518
2518
  while (++leftIndex < leftLength) {
2519
2519
  args[leftIndex] = partials[leftIndex];
2520
2520
  }
2521
2521
  while (argsLength--) {
2522
2522
  args[leftIndex++] = arguments[++argsIndex];
2523
2523
  }
2524
- return apply(fn, isBind ? thisArg : this, args);
2524
+ return apply(fn2, isBind ? thisArg : this, args);
2525
2525
  }
2526
2526
  return wrapper;
2527
2527
  }
@@ -5630,7 +5630,7 @@ var require_ua_parser = __commonJS({
5630
5630
  return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
5631
5631
  }
5632
5632
  };
5633
- var rgxMapper = function(ua2, arrays) {
5633
+ var rgxMapper = function(ua, arrays) {
5634
5634
  var i = 0, j, k2, p, q, matches, match18;
5635
5635
  while (i < arrays.length && !matches) {
5636
5636
  var regex = arrays[i], props = arrays[i + 1];
@@ -5639,7 +5639,7 @@ var require_ua_parser = __commonJS({
5639
5639
  if (!regex[j]) {
5640
5640
  break;
5641
5641
  }
5642
- matches = regex[j++].exec(ua2);
5642
+ matches = regex[j++].exec(ua);
5643
5643
  if (!!matches) {
5644
5644
  for (p = 0; p < props.length; p++) {
5645
5645
  match18 = matches[++k2];
@@ -6728,16 +6728,16 @@ var require_ua_parser = __commonJS({
6728
6728
  [NAME, VERSION]
6729
6729
  ]
6730
6730
  };
6731
- var UAParser = function(ua2, extensions) {
6732
- if (typeof ua2 === OBJ_TYPE) {
6733
- extensions = ua2;
6734
- ua2 = undefined2;
6731
+ var UAParser = function(ua, extensions) {
6732
+ if (typeof ua === OBJ_TYPE) {
6733
+ extensions = ua;
6734
+ ua = undefined2;
6735
6735
  }
6736
6736
  if (!(this instanceof UAParser)) {
6737
- return new UAParser(ua2, extensions).getResult();
6737
+ return new UAParser(ua, extensions).getResult();
6738
6738
  }
6739
6739
  var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
6740
- var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6740
+ var _ua = ua || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6741
6741
  var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
6742
6742
  var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
6743
6743
  var _isSelfNav = _navigator && _navigator.userAgent == _ua;
@@ -6803,8 +6803,8 @@ var require_ua_parser = __commonJS({
6803
6803
  this.getUA = function() {
6804
6804
  return _ua;
6805
6805
  };
6806
- this.setUA = function(ua3) {
6807
- _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
6806
+ this.setUA = function(ua2) {
6807
+ _ua = typeof ua2 === STR_TYPE && ua2.length > UA_MAX_LENGTH ? trim(ua2, UA_MAX_LENGTH) : ua2;
6808
6808
  return this;
6809
6809
  };
6810
6810
  this.setUA(_ua);
@@ -6829,18 +6829,18 @@ var require_ua_parser = __commonJS({
6829
6829
  window2.UAParser = UAParser;
6830
6830
  }
6831
6831
  }
6832
- var $2 = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6833
- if ($2 && !$2.ua) {
6832
+ var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6833
+ if ($ && !$.ua) {
6834
6834
  var parser = new UAParser();
6835
- $2.ua = parser.getResult();
6836
- $2.ua.get = function() {
6835
+ $.ua = parser.getResult();
6836
+ $.ua.get = function() {
6837
6837
  return parser.getUA();
6838
6838
  };
6839
- $2.ua.set = function(ua2) {
6840
- parser.setUA(ua2);
6839
+ $.ua.set = function(ua) {
6840
+ parser.setUA(ua);
6841
6841
  var result = parser.getResult();
6842
6842
  for (var prop in result) {
6843
- $2.ua[prop] = result[prop];
6843
+ $.ua[prop] = result[prop];
6844
6844
  }
6845
6845
  };
6846
6846
  }
@@ -8750,13 +8750,13 @@ var require_writer = __commonJS({
8750
8750
  var i = 1;
8751
8751
  var args = arguments;
8752
8752
  var len = args.length;
8753
- return formatStr.replace(formatRegExp, function(x) {
8753
+ return formatStr.replace(formatRegExp, function(x2) {
8754
8754
  if (i >= len) {
8755
- return x;
8755
+ return x2;
8756
8756
  }
8757
8757
  var arg = args[i];
8758
8758
  i += 1;
8759
- switch (x) {
8759
+ switch (x2) {
8760
8760
  case "%%":
8761
8761
  return "%";
8762
8762
  case "%s":
@@ -8886,7 +8886,7 @@ var require_react_is_production_min = __commonJS({
8886
8886
  var t = b2 ? Symbol.for("react.lazy") : 60116;
8887
8887
  var v = b2 ? Symbol.for("react.block") : 60121;
8888
8888
  var w = b2 ? Symbol.for("react.fundamental") : 60117;
8889
- var x = b2 ? Symbol.for("react.responder") : 60118;
8889
+ var x2 = b2 ? Symbol.for("react.responder") : 60118;
8890
8890
  var y2 = b2 ? Symbol.for("react.scope") : 60119;
8891
8891
  function z2(a2) {
8892
8892
  if ("object" === typeof a2 && null !== a2) {
@@ -8972,7 +8972,7 @@ var require_react_is_production_min = __commonJS({
8972
8972
  return z2(a2) === p;
8973
8973
  };
8974
8974
  exports.isValidElementType = function(a2) {
8975
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8975
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x2 || a2.$$typeof === y2 || a2.$$typeof === v);
8976
8976
  };
8977
8977
  exports.typeOf = z2;
8978
8978
  }
@@ -9195,25 +9195,25 @@ var require_object_assign = __commonJS({
9195
9195
  }
9196
9196
  module2.exports = shouldUseNative() ? Object.assign : function(target, source) {
9197
9197
  var from;
9198
- var to2 = toObject(target);
9198
+ var to = toObject(target);
9199
9199
  var symbols;
9200
9200
  for (var s = 1; s < arguments.length; s++) {
9201
9201
  from = Object(arguments[s]);
9202
9202
  for (var key in from) {
9203
9203
  if (hasOwnProperty.call(from, key)) {
9204
- to2[key] = from[key];
9204
+ to[key] = from[key];
9205
9205
  }
9206
9206
  }
9207
9207
  if (getOwnPropertySymbols) {
9208
9208
  symbols = getOwnPropertySymbols(from);
9209
9209
  for (var i = 0; i < symbols.length; i++) {
9210
9210
  if (propIsEnumerable.call(from, symbols[i])) {
9211
- to2[symbols[i]] = from[symbols[i]];
9211
+ to[symbols[i]] = from[symbols[i]];
9212
9212
  }
9213
9213
  }
9214
9214
  }
9215
9215
  }
9216
- return to2;
9216
+ return to;
9217
9217
  };
9218
9218
  }
9219
9219
  });
@@ -9254,7 +9254,7 @@ var require_checkPropTypes = __commonJS({
9254
9254
  }
9255
9255
  try {
9256
9256
  throw new Error(message);
9257
- } catch (x) {
9257
+ } catch (x2) {
9258
9258
  }
9259
9259
  };
9260
9260
  }
@@ -9323,7 +9323,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9323
9323
  }
9324
9324
  try {
9325
9325
  throw new Error(message);
9326
- } catch (x) {
9326
+ } catch (x2) {
9327
9327
  }
9328
9328
  };
9329
9329
  }
@@ -9361,11 +9361,11 @@ var require_factoryWithTypeCheckers = __commonJS({
9361
9361
  shape: createShapeTypeChecker,
9362
9362
  exact: createStrictShapeTypeChecker
9363
9363
  };
9364
- function is2(x, y2) {
9365
- if (x === y2) {
9366
- return x !== 0 || 1 / x === 1 / y2;
9364
+ function is(x2, y2) {
9365
+ if (x2 === y2) {
9366
+ return x2 !== 0 || 1 / x2 === 1 / y2;
9367
9367
  } else {
9368
- return x !== x && y2 !== y2;
9368
+ return x2 !== x2 && y2 !== y2;
9369
9369
  }
9370
9370
  }
9371
9371
  function PropTypeError(message, data3) {
@@ -9504,7 +9504,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9504
9504
  function validate(props, propName, componentName, location, propFullName) {
9505
9505
  var propValue = props[propName];
9506
9506
  for (var i = 0; i < expectedValues.length; i++) {
9507
- if (is2(propValue, expectedValues[i])) {
9507
+ if (is(propValue, expectedValues[i])) {
9508
9508
  return null;
9509
9509
  }
9510
9510
  }
@@ -10242,7 +10242,6 @@ var _a5, _b5;
10242
10242
  var isMacOS = ((_b5 = (_a5 = import_react_sdk.parsedUserAgent.getOS()) == null ? void 0 : _a5.name) == null ? void 0 : _b5.toLowerCase()) === "mac os";
10243
10243
  var _a6, _b6;
10244
10244
  var isAndroid = ((_b6 = (_a6 = import_react_sdk.parsedUserAgent.getOS()) == null ? void 0 : _a6.name) == null ? void 0 : _b6.toLowerCase()) === "android";
10245
- var isIPadOS = false;
10246
10245
  var QUESTION_TYPE_TITLE = /* @__PURE__ */ ((QUESTION_TYPE_TITLE2) => {
10247
10246
  QUESTION_TYPE_TITLE2["single-choice"] = "Single Choice";
10248
10247
  QUESTION_TYPE_TITLE2["multiple-choice"] = "Multiple Choice";
@@ -10481,8 +10480,8 @@ init_define_process_env();
10481
10480
  // src/Loading/Loading.tsx
10482
10481
  init_define_process_env();
10483
10482
  var import_react5 = __toESM(require("react"));
10484
- var Loading = (_a7) => {
10485
- var _b7 = _a7, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10483
+ var Loading = (_a8) => {
10484
+ var _b7 = _a8, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10486
10485
  return /* @__PURE__ */ import_react5.default.createElement("svg", __spreadValues({ width: size, height: size, viewBox: "0 0 50 50", fill: color, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ import_react5.default.createElement("circle", { cx: "25", cy: "25", r: "20", stroke: color, strokeWidth: "4", strokeDasharray: "70 30", fill: "none" }, /* @__PURE__ */ import_react5.default.createElement(
10487
10486
  "animateTransform",
10488
10487
  {
@@ -10659,8 +10658,8 @@ var StyledButton = styled("button", __spreadProps(__spreadValues({}, flexCenter)
10659
10658
  variant: "primary"
10660
10659
  }
10661
10660
  }));
10662
- var Button = import_react6.default.forwardRef((_a7, ref) => {
10663
- var _b7 = _a7, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10661
+ var Button = import_react6.default.forwardRef((_a8, ref) => {
10662
+ var _b7 = _a8, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10664
10663
  return /* @__PURE__ */ import_react6.default.createElement(StyledButton, __spreadProps(__spreadValues({}, buttonProps), { ref }), /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, loading && /* @__PURE__ */ import_react6.default.createElement(
10665
10664
  Flex,
10666
10665
  {
@@ -10888,11 +10887,11 @@ var import_react_icons = require("@100mslive/react-icons");
10888
10887
  // src/Avatar/getAvatarBg.ts
10889
10888
  init_define_process_env();
10890
10889
  var getInitials = (name) => {
10891
- var _a7, _b7, _c;
10890
+ var _a8, _b7, _c;
10892
10891
  if (!name) {
10893
10892
  return void 0;
10894
10893
  } else {
10895
- return (_c = (_b7 = (_a7 = name.trim().replace(/[^a-zA-Z0-9]/g, "").match(/(^\S\S?|\b\S)?/g)) == null ? void 0 : _a7.join("")) == null ? void 0 : _b7.match(/(^\S|\S$)?/g)) == null ? void 0 : _c.join("").toUpperCase();
10894
+ return (_c = (_b7 = (_a8 = name.trim().replace(/[^a-zA-Z0-9]/g, "").match(/(^\S\S?|\b\S)?/g)) == null ? void 0 : _a8.join("")) == null ? void 0 : _b7.match(/(^\S|\S$)?/g)) == null ? void 0 : _c.join("").toUpperCase();
10896
10895
  }
10897
10896
  };
10898
10897
  var getAvatarBg = (name) => {
@@ -10958,8 +10957,8 @@ var StyledAvatar = styled("div", __spreadProps(__spreadValues({}, flexCenter), {
10958
10957
  shape: "circle"
10959
10958
  }
10960
10959
  }));
10961
- var Avatar = (_a7) => {
10962
- var _b7 = _a7, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10960
+ var Avatar = (_a8) => {
10961
+ var _b7 = _a8, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10963
10962
  const info = getAvatarBg(name);
10964
10963
  let { color } = info;
10965
10964
  if (!name) {
@@ -11261,8 +11260,8 @@ var Arrow = styled("span", {
11261
11260
  alignItems: "center",
11262
11261
  transition: "border .2s ease 0s"
11263
11262
  });
11264
- var DefaultDownIcon = (_a7) => {
11265
- var props = __objRest(_a7, []);
11263
+ var DefaultDownIcon = (_a8) => {
11264
+ var props = __objRest(_a8, []);
11266
11265
  return /* @__PURE__ */ import_react10.default.createElement(Arrow, __spreadValues({}, props), /* @__PURE__ */ import_react10.default.createElement(import_react_icons2.ChevronDownIcon, null));
11267
11266
  };
11268
11267
  var Select = {
@@ -11316,16 +11315,16 @@ var Thumb3 = styled(BaseSlider.Thumb, {
11316
11315
  "&:hover": { backgroundColor: "$primary_default" },
11317
11316
  "&:focus": { boxShadow: "none" }
11318
11317
  });
11319
- var Slider = (_a7) => {
11320
- var _b7 = _a7, {
11318
+ var Slider = (_a8) => {
11319
+ var _b7 = _a8, {
11321
11320
  showTooltip = true,
11322
11321
  thumbStyles
11323
11322
  } = _b7, props = __objRest(_b7, [
11324
11323
  "showTooltip",
11325
11324
  "thumbStyles"
11326
11325
  ]);
11327
- var _a8;
11328
- return /* @__PURE__ */ import_react11.default.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ import_react11.default.createElement(Track2, null, /* @__PURE__ */ import_react11.default.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ import_react11.default.createElement(Tooltip, { title: String((_a8 = props.value) == null ? void 0 : _a8[0]) }, /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles }));
11326
+ var _a9;
11327
+ return /* @__PURE__ */ import_react11.default.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ import_react11.default.createElement(Track2, null, /* @__PURE__ */ import_react11.default.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ import_react11.default.createElement(Tooltip, { title: String((_a9 = props.value) == null ? void 0 : _a9[0]) }, /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles }));
11329
11328
  };
11330
11329
 
11331
11330
  // src/Modal/index.ts
@@ -11482,8 +11481,8 @@ var PasswordRoot = styled("div", {
11482
11481
  position: "relative",
11483
11482
  display: "flex"
11484
11483
  });
11485
- var PasswordShowIcon = (_a7) => {
11486
- var _b7 = _a7, {
11484
+ var PasswordShowIcon = (_a8) => {
11485
+ var _b7 = _a8, {
11487
11486
  showPassword,
11488
11487
  css: css2
11489
11488
  } = _b7, props = __objRest(_b7, [
@@ -11492,13 +11491,13 @@ var PasswordShowIcon = (_a7) => {
11492
11491
  ]);
11493
11492
  return /* @__PURE__ */ import_react17.default.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), showPassword ? /* @__PURE__ */ import_react17.default.createElement(import_react_icons4.EyeOpenIcon, null) : /* @__PURE__ */ import_react17.default.createElement(import_react_icons4.EyeCloseIcon, null));
11494
11493
  };
11495
- var PasswordCopyIcon = (_a7) => {
11496
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11494
+ var PasswordCopyIcon = (_a8) => {
11495
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11497
11496
  return /* @__PURE__ */ import_react17.default.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), /* @__PURE__ */ import_react17.default.createElement(import_react_icons4.CopyIcon, null));
11498
11497
  };
11499
11498
  var PasswordIcons = import_react17.default.forwardRef(
11500
- (_a7, ref) => {
11501
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11499
+ (_a8, ref) => {
11500
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11502
11501
  return /* @__PURE__ */ import_react17.default.createElement(
11503
11502
  Flex,
11504
11503
  __spreadValues({
@@ -11517,8 +11516,8 @@ var PasswordIcons = import_react17.default.forwardRef(
11517
11516
  );
11518
11517
  }
11519
11518
  );
11520
- var ReactInput = import_react17.default.forwardRef((_a7, ref) => {
11521
- var _b7 = _a7, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11519
+ var ReactInput = import_react17.default.forwardRef((_a8, ref) => {
11520
+ var _b7 = _a8, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11522
11521
  return /* @__PURE__ */ import_react17.default.createElement(
11523
11522
  Input,
11524
11523
  __spreadProps(__spreadValues({
@@ -11542,21 +11541,9 @@ init_define_process_env();
11542
11541
 
11543
11542
  // src/VideoTile/StyledVideoTile.tsx
11544
11543
  init_define_process_env();
11545
- var import_framer_motion = require("framer-motion");
11546
11544
  var Root7 = styled("div", {
11547
11545
  padding: "0.75rem"
11548
11546
  });
11549
- var MotionRoot = (0, import_framer_motion.motion)(Root7);
11550
- MotionRoot.defaultProps = {
11551
- layout: true,
11552
- transition: {
11553
- type: "spring",
11554
- stiffness: 300,
11555
- damping: 30,
11556
- mass: 1,
11557
- duration: 0.15
11558
- }
11559
- };
11560
11547
  var Container = styled("div", {
11561
11548
  width: "100%",
11562
11549
  height: "100%",
@@ -11667,7 +11654,7 @@ var AvatarContainer = styled(Box, __spreadProps(__spreadValues({}, flexCenter),
11667
11654
  }
11668
11655
  }));
11669
11656
  var StyledVideoTile = {
11670
- Root: MotionRoot,
11657
+ Root: Root7,
11671
11658
  Container,
11672
11659
  Overlay: Overlay2,
11673
11660
  Info,
@@ -11955,8 +11942,8 @@ var StyledVideo = styled("video", {
11955
11942
  mirror: false
11956
11943
  }
11957
11944
  });
11958
- var Video = (_a7) => {
11959
- var _b7 = _a7, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11945
+ var Video = (_a8) => {
11946
+ var _b7 = _a8, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11960
11947
  const { videoRef } = (0, import_react_sdk2.useVideo)({ trackId, attach });
11961
11948
  return /* @__PURE__ */ import_react18.default.createElement(StyledVideo, __spreadValues({ ref: videoRef }, props));
11962
11949
  };
@@ -12199,11 +12186,11 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
12199
12186
  return "-";
12200
12187
  }
12201
12188
  const k2 = 1024;
12202
- const dm2 = decimals < 0 ? 0 : decimals;
12189
+ const dm = decimals < 0 ? 0 : decimals;
12203
12190
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
12204
12191
  let i = Math.floor(Math.log(bytes) / Math.log(k2));
12205
12192
  i === 0 && i++;
12206
- return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(dm2))} ${sizes[i]}`;
12193
+ return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(dm))} ${sizes[i]}`;
12207
12194
  };
12208
12195
 
12209
12196
  // src/Stats/StyledStats.tsx
@@ -12288,13 +12275,13 @@ var useQoE = ({ videoTrackID, audioTrackID, isLocal = false }) => {
12288
12275
 
12289
12276
  // src/Stats/Stats.tsx
12290
12277
  function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false }) {
12291
- var _a7, _b7, _c;
12278
+ var _a8, _b7, _c;
12292
12279
  const audioSelector = isLocal ? import_react_sdk6.selectHMSStats.localAudioTrackStatsByID : import_react_sdk6.selectHMSStats.trackStatsByID;
12293
12280
  const audioTrackStats = (0, import_react_sdk6.useHMSStatsStore)(audioSelector(audioTrackID));
12294
12281
  const localVideoTrackStats = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.localVideoTrackStatsByID(videoTrackID));
12295
12282
  const remoteVideoTrackStats = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.trackStatsByID(videoTrackID));
12296
12283
  const videoTrackStats = isLocal ? localVideoTrackStats == null ? void 0 : localVideoTrackStats[0] : remoteVideoTrackStats;
12297
- const downlinkScore = (_a7 = (0, import_react_sdk6.useHMSStore)((0, import_react_sdk6.selectConnectionQualityByPeerID)(peerID))) == null ? void 0 : _a7.downlinkQuality;
12284
+ const downlinkScore = (_a8 = (0, import_react_sdk6.useHMSStore)((0, import_react_sdk6.selectConnectionQualityByPeerID)(peerID))) == null ? void 0 : _a8.downlinkQuality;
12298
12285
  const availableOutgoingBitrate = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.availablePublishBitrate);
12299
12286
  const qoe = useQoE({ videoTrackID, audioTrackID, isLocal });
12300
12287
  if (!(audioTrackStats || videoTrackStats)) {
@@ -12309,7 +12296,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12309
12296
  value: formatBytes(availableOutgoingBitrate, "b/s")
12310
12297
  }
12311
12298
  ), localVideoTrackStats == null ? void 0 : localVideoTrackStats.map((stat) => {
12312
- var _a8, _b8;
12299
+ var _a9, _b8;
12313
12300
  if (!stat) {
12314
12301
  return null;
12315
12302
  }
@@ -12319,7 +12306,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12319
12306
  {
12320
12307
  show: isNotNullishAndNot0(stat.frameWidth),
12321
12308
  label: "Width",
12322
- value: (_a8 = stat.frameWidth) == null ? void 0 : _a8.toString()
12309
+ value: (_a9 = stat.frameWidth) == null ? void 0 : _a9.toString()
12323
12310
  }
12324
12311
  ), /* @__PURE__ */ import_react22.default.createElement(
12325
12312
  StatsRow,
@@ -12398,11 +12385,11 @@ var PacketLostAndJitter = ({
12398
12385
  audioTrackStats,
12399
12386
  videoTrackStats
12400
12387
  }) => {
12401
- var _a7, _b7;
12388
+ var _a8, _b7;
12402
12389
  const isLocalPeer = (audioTrackStats == null ? void 0 : audioTrackStats.type.includes("outbound")) || (videoTrackStats == null ? void 0 : videoTrackStats.type.includes("outbound"));
12403
12390
  const audioStats = isLocalPeer ? audioTrackStats == null ? void 0 : audioTrackStats.remote : audioTrackStats;
12404
12391
  const videoStats = isLocalPeer ? videoTrackStats == null ? void 0 : videoTrackStats.remote : videoTrackStats;
12405
- return /* @__PURE__ */ import_react22.default.createElement(import_react22.default.Fragment, null, /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter), label: "Jitter(V)", value: (_a7 = videoStats == null ? void 0 : videoStats.jitter) == null ? void 0 : _a7.toFixed(4) }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter), label: "Jitter(A)", value: (_b7 = audioStats == null ? void 0 : audioStats.jitter) == null ? void 0 : _b7.toFixed(4) }));
12392
+ return /* @__PURE__ */ import_react22.default.createElement(import_react22.default.Fragment, null, /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter), label: "Jitter(V)", value: (_a8 = videoStats == null ? void 0 : videoStats.jitter) == null ? void 0 : _a8.toFixed(4) }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter), label: "Jitter(A)", value: (_b7 = audioStats == null ? void 0 : audioStats.jitter) == null ? void 0 : _b7.toFixed(4) }));
12406
12393
  };
12407
12394
  var TrackPacketsLostRow = ({
12408
12395
  stats,
@@ -12604,8 +12591,8 @@ var ToastViewport = styled(ToastPrimitives.Viewport, {
12604
12591
  var DefaultClose = ({ css: css2 }) => {
12605
12592
  return /* @__PURE__ */ import_react23.default.createElement(ToastClose, { css: css2, asChild: true }, /* @__PURE__ */ import_react23.default.createElement(IconButton, null, /* @__PURE__ */ import_react23.default.createElement(import_react_icons5.CrossIcon, null)));
12606
12593
  };
12607
- var HMSToast = (_a7) => {
12608
- var _b7 = _a7, {
12594
+ var HMSToast = (_a8) => {
12595
+ var _b7 = _a8, {
12609
12596
  title,
12610
12597
  description,
12611
12598
  isClosable = true,
@@ -12690,13 +12677,13 @@ var StyledChevron = styled(import_react_icons6.ChevronUpIcon, {
12690
12677
  });
12691
12678
  var AccordionRoot = StyledAccordion;
12692
12679
  var AccordionItem = StyledItem;
12693
- var AccordionHeader = import_react24.default.forwardRef((_a7, forwardedRef) => {
12694
- var _b7 = _a7, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12680
+ var AccordionHeader = import_react24.default.forwardRef((_a8, forwardedRef) => {
12681
+ var _b7 = _a8, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12695
12682
  return /* @__PURE__ */ import_react24.default.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ import_react24.default.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ import_react24.default.createElement(StyledChevron, { "data-testid": chevronID, "aria-hidden": true, css: iconStyles })));
12696
12683
  });
12697
12684
  var AccordionContent = import_react24.default.forwardRef(
12698
- (_a7, forwardedRef) => {
12699
- var _b7 = _a7, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12685
+ (_a8, forwardedRef) => {
12686
+ var _b7 = _a8, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12700
12687
  return /* @__PURE__ */ import_react24.default.createElement(StyledContent3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), /* @__PURE__ */ import_react24.default.createElement(Box, { css: contentStyles }, children));
12701
12688
  }
12702
12689
  );
@@ -12935,8 +12922,8 @@ var LinkComponent = styled("a", {
12935
12922
  }
12936
12923
  }
12937
12924
  });
12938
- var Link = (_a7) => {
12939
- var _b7 = _a7, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12925
+ var Link = (_a8) => {
12926
+ var _b7 = _a8, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12940
12927
  const Icon4 = icon ? icons[icon] : import_react26.default.Fragment;
12941
12928
  const renderedIcon = icon ? /* @__PURE__ */ import_react26.default.createElement(Flex, { as: "span" }, /* @__PURE__ */ import_react26.default.createElement(Icon4, { height: 13.33, width: 13.33 }), " ") : null;
12942
12929
  return /* @__PURE__ */ import_react26.default.createElement(LinkComponent, __spreadProps(__spreadValues({}, rest), { color }), iconSide === "left" && renderedIcon, /* @__PURE__ */ import_react26.default.createElement(Text, { as: "span", variant: "body2", css: { color: "inherit" } }, children), iconSide === "right" && renderedIcon);
@@ -13085,8 +13072,8 @@ var useAuthToken = () => {
13085
13072
  return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.authToken));
13086
13073
  };
13087
13074
  var useUrlToEmbed = () => {
13088
- var _a7;
13089
- return (_a7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.embedConfig))) == null ? void 0 : _a7.url;
13075
+ var _a8;
13076
+ return (_a8 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.embedConfig))) == null ? void 0 : _a8.url;
13090
13077
  };
13091
13078
  var usePDFConfig = () => {
13092
13079
  return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.pdfConfig));
@@ -13100,10 +13087,10 @@ var useResetEmbedConfig = () => {
13100
13087
  return () => setEmbedConfig();
13101
13088
  };
13102
13089
  var usePinnedTrack = () => {
13103
- var _a7, _b7;
13090
+ var _a8, _b7;
13104
13091
  const pinnedTrackId = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.pinnedTrackId));
13105
13092
  const spotlightPeerId = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectSessionStore)("spotlight" /* SPOTLIGHT */));
13106
- const spotlightVideoTrackId = (_a7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectVideoTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _a7.id;
13093
+ const spotlightVideoTrackId = (_a8 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectVideoTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _a8.id;
13107
13094
  const spotlightAudioTrackId = (_b7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAudioTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _b7.id;
13108
13095
  return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectTrackByID)(pinnedTrackId || spotlightVideoTrackId || spotlightAudioTrackId));
13109
13096
  };
@@ -13383,18 +13370,18 @@ var useFetchRoomLayout = ({
13383
13370
  const isFetchInProgress = (0, import_react31.useRef)(false);
13384
13371
  const setOriginalLayout = (0, import_react31.useCallback)(() => setLayout(originalLayout.current), []);
13385
13372
  const updateRoomLayoutForRole = (0, import_react31.useCallback)((role) => {
13386
- var _a7;
13373
+ var _a8;
13387
13374
  if (!layoutResp.current) {
13388
13375
  return;
13389
13376
  }
13390
- const [layout2] = (((_a7 = layoutResp.current) == null ? void 0 : _a7.data) || []).filter((layout3) => layout3.role === role);
13377
+ const [layout2] = (((_a8 = layoutResp.current) == null ? void 0 : _a8.data) || []).filter((layout3) => layout3.role === role);
13391
13378
  if (layout2) {
13392
13379
  setLayout(layout2);
13393
13380
  }
13394
13381
  }, []);
13395
13382
  (0, import_react31.useEffect)(() => {
13396
13383
  (() => __async(void 0, null, function* () {
13397
- var _a7, _b7;
13384
+ var _a8, _b7;
13398
13385
  if (isFetchInProgress.current || !authToken) {
13399
13386
  return;
13400
13387
  }
@@ -13412,7 +13399,7 @@ var useFetchRoomLayout = ({
13412
13399
  data: [defaultLayout]
13413
13400
  };
13414
13401
  }
13415
- let layoutForRole = (_b7 = (_a7 = layoutResp.current) == null ? void 0 : _a7.data) == null ? void 0 : _b7[0];
13402
+ let layoutForRole = (_b7 = (_a8 = layoutResp.current) == null ? void 0 : _a8.data) == null ? void 0 : _b7[0];
13416
13403
  if (!layoutForRole) {
13417
13404
  console.error(
13418
13405
  "[Room Layout API]: Unable to figure out room layout from API response. Resorting to default layout."
@@ -13452,16 +13439,16 @@ var RoomLayoutProvider = ({
13452
13439
  return /* @__PURE__ */ import_react32.default.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole, setOriginalLayout } }, children);
13453
13440
  };
13454
13441
  var useRoomLayout = () => {
13455
- var _a7;
13456
- return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.layout;
13442
+ var _a8;
13443
+ return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
13457
13444
  };
13458
13445
  var useUpdateRoomLayout = () => {
13459
- var _a7;
13460
- return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.updateRoomLayoutForRole;
13446
+ var _a8;
13447
+ return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
13461
13448
  };
13462
13449
  var useSetOriginalLayout = () => {
13463
- var _a7;
13464
- return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.setOriginalLayout;
13450
+ var _a8;
13451
+ return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.setOriginalLayout;
13465
13452
  };
13466
13453
 
13467
13454
  // src/Prebuilt/common/utils.js
@@ -13531,11 +13518,11 @@ var isMobileUserAgent = /Mobi|Android|iPhone/i.test(navigator.userAgent);
13531
13518
  var getPeerResponses = (questions, peerid, userid) => {
13532
13519
  return questions.map(
13533
13520
  (question) => {
13534
- var _a7;
13535
- return (_a7 = question.responses) == null ? void 0 : _a7.filter(
13521
+ var _a8;
13522
+ return (_a8 = question.responses) == null ? void 0 : _a8.filter(
13536
13523
  (response) => {
13537
- var _a8, _b7;
13538
- return response && (((_a8 = response.peer) == null ? void 0 : _a8.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13524
+ var _a9, _b7;
13525
+ return response && (((_a9 = response.peer) == null ? void 0 : _a9.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13539
13526
  }
13540
13527
  );
13541
13528
  }
@@ -13556,20 +13543,20 @@ var getIndexToShow = (responses) => {
13556
13543
  function useRoomLayoutScreen({
13557
13544
  screen
13558
13545
  }) {
13559
- var _a7;
13546
+ var _a8;
13560
13547
  const roomLayout = useRoomLayout();
13561
- const screenProps = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7[screen];
13548
+ const screenProps = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8[screen];
13562
13549
  return screenProps;
13563
13550
  }
13564
13551
  function useRoomLayoutPreviewScreen() {
13565
- var _a7;
13552
+ var _a8;
13566
13553
  const screenProps = useRoomLayoutScreen({ screen: "preview" });
13567
13554
  const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
13568
13555
  let elements;
13569
13556
  let screenType;
13570
13557
  if (isPreviewScreenEnabled) {
13571
13558
  screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
13572
- elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13559
+ elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13573
13560
  }
13574
13561
  return {
13575
13562
  isPreviewScreenEnabled,
@@ -13578,10 +13565,10 @@ function useRoomLayoutPreviewScreen() {
13578
13565
  };
13579
13566
  }
13580
13567
  function useRoomLayoutConferencingScreen() {
13581
- var _a7, _b7;
13568
+ var _a8, _b7;
13582
13569
  const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
13583
13570
  const screenType = Object.keys(screenProps)[0];
13584
- const elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13571
+ const elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13585
13572
  const hideSections = ((_b7 = screenProps[screenType]) == null ? void 0 : _b7.hideSections) || [];
13586
13573
  return {
13587
13574
  hideSections,
@@ -13590,25 +13577,25 @@ function useRoomLayoutConferencingScreen() {
13590
13577
  };
13591
13578
  }
13592
13579
  function useRoomLayoutLeaveScreen() {
13593
- var _a7, _b7;
13580
+ var _a8, _b7;
13594
13581
  const screenProps = useRoomLayoutScreen({ screen: "leave" });
13595
13582
  const isLeaveScreenEnabled = !!screenProps;
13596
13583
  return {
13597
13584
  isLeaveScreenEnabled,
13598
- feedback: (_b7 = (_a7 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a7.elements) == null ? void 0 : _b7.feedback
13585
+ feedback: (_b7 = (_a8 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a8.elements) == null ? void 0 : _b7.feedback
13599
13586
  };
13600
13587
  }
13601
13588
  function useRoomLayoutHeader() {
13602
- var _a7, _b7;
13589
+ var _a8, _b7;
13603
13590
  const { elements } = useRoomLayoutConferencingScreen();
13604
13591
  const { isRecordingOn } = (0, import_react_sdk9.useRecordingStreaming)();
13605
13592
  const peerCount = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectPeerCount);
13606
13593
  const sessionStartedAt = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectRoomStartTime);
13607
13594
  const hlsState = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectHLSState);
13608
13595
  const details = (0, import_react33.useMemo)(() => {
13609
- var _a8;
13596
+ var _a9;
13610
13597
  const details2 = [];
13611
- if ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8["startedAt"]) {
13598
+ if ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9["startedAt"]) {
13612
13599
  details2.push(`${getFormattedCount(peerCount)} watching`);
13613
13600
  details2.push(hlsState.variants[0]["startedAt"]);
13614
13601
  } else if (sessionStartedAt) {
@@ -13620,7 +13607,7 @@ function useRoomLayoutHeader() {
13620
13607
  return details2;
13621
13608
  }, [hlsState == null ? void 0 : hlsState.variants, isRecordingOn, peerCount, sessionStartedAt]);
13622
13609
  return {
13623
- title: ((_a7 = elements.header) == null ? void 0 : _a7.title) || "",
13610
+ title: ((_a8 = elements.header) == null ? void 0 : _a8.title) || "",
13624
13611
  description: ((_b7 = elements.header) == null ? void 0 : _b7.description) || "",
13625
13612
  details
13626
13613
  };
@@ -13761,7 +13748,7 @@ var initialAppData = {
13761
13748
  [APP_DATA.noiseCancellation]: false
13762
13749
  };
13763
13750
  var AppData = import_react35.default.memo(() => {
13764
- var _a7, _b7, _c, _d;
13751
+ var _a8, _b7, _c, _d;
13765
13752
  const hmsActions = (0, import_react_sdk11.useHMSActions)();
13766
13753
  const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
13767
13754
  const appData = (0, import_react_sdk11.useHMSStore)(import_react_sdk11.selectFullAppData);
@@ -13772,14 +13759,14 @@ var AppData = import_react35.default.memo(() => {
13772
13759
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
13773
13760
  const isMobile = (0, import_react_use3.useMedia)(config.media.md);
13774
13761
  (0, import_react35.useEffect)(() => {
13775
- var _a8;
13776
- if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
13762
+ var _a9;
13763
+ if ((_a9 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a9.enabled_by_default) {
13777
13764
  setNoiseCancellationEnabled(true);
13778
13765
  }
13779
- }, [(_a7 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a7.enabled_by_default, setNoiseCancellationEnabled]);
13766
+ }, [(_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default, setNoiseCancellationEnabled]);
13780
13767
  const defaultMediaURL = (0, import_react35.useMemo)(() => {
13781
- var _a8;
13782
- const media = ((_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media) || [];
13768
+ var _a9;
13769
+ const media = ((_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) || [];
13783
13770
  for (let i = 0; i < media.length; i++) {
13784
13771
  if (media[i].default && media[i].url) {
13785
13772
  return media[i].url;
@@ -13804,11 +13791,11 @@ var AppData = import_react35.default.memo(() => {
13804
13791
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
13805
13792
  }, [hmsActions, preferences]);
13806
13793
  (0, import_react35.useEffect)(() => {
13807
- var _a8, _b8;
13794
+ var _a9, _b8;
13808
13795
  hmsActions.setAppData(
13809
13796
  APP_DATA.uiSettings,
13810
13797
  {
13811
- [UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
13798
+ [UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
13812
13799
  },
13813
13800
  true
13814
13801
  );
@@ -13933,41 +13920,41 @@ var VBPlugin = class {
13933
13920
  }
13934
13921
  });
13935
13922
  this.getBackground = () => {
13936
- var _a7, _b7;
13923
+ var _a8, _b7;
13937
13924
  if (this.effectsPlugin) {
13938
- return (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getBackground();
13925
+ return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
13939
13926
  } else {
13940
13927
  const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
13941
13928
  return (background == null ? void 0 : background.src) || background;
13942
13929
  }
13943
13930
  };
13944
13931
  this.getBlurAmount = () => {
13945
- var _a7;
13932
+ var _a8;
13946
13933
  if (this.effectsPlugin) {
13947
13934
  return this.effectsPlugin.getBlurAmount();
13948
13935
  } else {
13949
- return ((_a7 = this.hmsPlugin) == null ? void 0 : _a7.getBackground()) === import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13936
+ return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13950
13937
  }
13951
13938
  };
13952
13939
  this.getVBObject = () => {
13953
13940
  return this.effectsPlugin || this.hmsPlugin;
13954
13941
  };
13955
13942
  this.getName = () => {
13956
- var _a7, _b7;
13957
- return this.effectsPlugin ? (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13943
+ var _a8, _b7;
13944
+ return this.effectsPlugin ? (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13958
13945
  };
13959
13946
  this.setBlur = (blurPower) => __async(this, null, function* () {
13960
- var _a7, _b7;
13947
+ var _a8, _b7;
13961
13948
  if (this.effectsPlugin) {
13962
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBlur(blurPower);
13949
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBlur(blurPower);
13963
13950
  } else {
13964
13951
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR, import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR);
13965
13952
  }
13966
13953
  });
13967
13954
  this.setBackground = (mediaURL) => __async(this, null, function* () {
13968
- var _a7, _b7, _c;
13955
+ var _a8, _b7, _c;
13969
13956
  if (this.effectsPlugin) {
13970
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBackground(mediaURL);
13957
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBackground(mediaURL);
13971
13958
  } else {
13972
13959
  const img = document.createElement("img");
13973
13960
  let retries = 0;
@@ -13990,13 +13977,13 @@ var VBPlugin = class {
13990
13977
  }
13991
13978
  });
13992
13979
  this.getPreset = () => {
13993
- var _a7;
13994
- return ((_a7 = this.effectsPlugin) == null ? void 0 : _a7.getPreset()) || "";
13980
+ var _a8;
13981
+ return ((_a8 = this.effectsPlugin) == null ? void 0 : _a8.getPreset()) || "";
13995
13982
  };
13996
13983
  this.removeEffects = () => __async(this, null, function* () {
13997
- var _a7, _b7;
13984
+ var _a8, _b7;
13998
13985
  if (this.effectsPlugin) {
13999
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.removeEffects();
13986
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.removeEffects();
14000
13987
  } else {
14001
13988
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(import_hmsvbplugin.HMSVirtualBackgroundTypes.NONE, import_hmsvbplugin.HMSVirtualBackgroundTypes.NONE);
14002
13989
  }
@@ -14015,11 +14002,11 @@ var VBPlugin = class {
14015
14002
  return false;
14016
14003
  };
14017
14004
  this.isEffectsSupported = () => {
14018
- var _a7, _b7;
14005
+ var _a8, _b7;
14019
14006
  if (!isSafari) {
14020
14007
  return true;
14021
14008
  }
14022
- const browserVersion = ((_b7 = (_a7 = import_react_sdk12.parsedUserAgent) == null ? void 0 : _a7.getBrowser()) == null ? void 0 : _b7.version) || "16";
14009
+ const browserVersion = ((_b7 = (_a8 = import_react_sdk12.parsedUserAgent) == null ? void 0 : _a8.getBrowser()) == null ? void 0 : _b7.version) || "16";
14023
14010
  if (browserVersion && parseInt(browserVersion.split(".")[0]) < 17) {
14024
14011
  return false;
14025
14012
  }
@@ -14165,12 +14152,12 @@ var PipManager = class {
14165
14152
  this.tracksToShow = [];
14166
14153
  this.state = "stopped" /* stopped */;
14167
14154
  this.stop = () => __async(this, null, function* () {
14168
- var _a7, _b7;
14155
+ var _a8, _b7;
14169
14156
  if (this.state === "stopped" /* stopped */) {
14170
14157
  return;
14171
14158
  }
14172
14159
  this.state = "stopping" /* stopping */;
14173
- (_a7 = this.pipVideo) == null ? void 0 : _a7.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14160
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14174
14161
  if (this.timeoutRef) {
14175
14162
  workerTimers.clearTimeout(this.timeoutRef);
14176
14163
  this.timeoutRef = 0;
@@ -14231,7 +14218,7 @@ var PipManager = class {
14231
14218
  */
14232
14219
  start(hmsActions, onStateChangeFn) {
14233
14220
  return __async(this, null, function* () {
14234
- var _a7, _b7;
14221
+ var _a8, _b7;
14235
14222
  if (!this.isSupported()) {
14236
14223
  throw new Error("pip is not supported on this browser");
14237
14224
  }
@@ -14244,7 +14231,7 @@ var PipManager = class {
14244
14231
  this.state = "starting" /* starting */;
14245
14232
  try {
14246
14233
  yield this.init(hmsActions, onStateChangeFn);
14247
- (_a7 = this.pipVideo) == null ? void 0 : _a7.addEventListener(LEAVE_EVENT_NAME, this.stop);
14234
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.addEventListener(LEAVE_EVENT_NAME, this.stop);
14248
14235
  this.renderLoop();
14249
14236
  if (!this.isOn()) {
14250
14237
  yield this.requestPIP();
@@ -14421,14 +14408,14 @@ var PipManager = class {
14421
14408
  // eslint-disable-next-line complexity
14422
14409
  detachOldAttachNewTracks(oldTracks, newTracks, tracksMap = null) {
14423
14410
  return __async(this, null, function* () {
14424
- var _a7, _b7;
14411
+ var _a8, _b7;
14425
14412
  const numTracks = Math.max(oldTracks.length, newTracks.length);
14426
14413
  for (let i = 0; i < numTracks; i++) {
14427
14414
  if (oldTracks[i] === newTracks[i]) {
14428
14415
  continue;
14429
14416
  } else if (oldTracks[i]) {
14430
14417
  if (!tracksMap || tracksMap[oldTracks[i]]) {
14431
- yield (_a7 = this.hmsActions) == null ? void 0 : _a7.detachVideo(oldTracks[i], this.videoElements[i]);
14418
+ yield (_a8 = this.hmsActions) == null ? void 0 : _a8.detachVideo(oldTracks[i], this.videoElements[i]);
14432
14419
  }
14433
14420
  if (this.videoElements[i]) {
14434
14421
  this.videoElements[i].srcObject = null;
@@ -14643,10 +14630,10 @@ var convertError = (error) => {
14643
14630
  body: `Endpoint is not reachable. ${error.description}.`
14644
14631
  })).otherwise(
14645
14632
  () => {
14646
- var _a7;
14633
+ var _a8;
14647
14634
  return (
14648
14635
  // @ts-ignore
14649
- (0, import_ts_pattern3.match)((_a7 = error.response) == null ? void 0 : _a7.status).with(404, () => ({
14636
+ (0, import_ts_pattern3.match)((_a8 = error.response) == null ? void 0 : _a8.status).with(404, () => ({
14650
14637
  title: "Room does not exist",
14651
14638
  body: "We could not find a room corresponding to this link."
14652
14639
  })).with(403, () => ({
@@ -14850,8 +14837,8 @@ var IconButtonWithOptions = ({
14850
14837
  // src/Prebuilt/components/MoreSettings/ActionTile.jsx
14851
14838
  init_define_process_env();
14852
14839
  var import_react41 = __toESM(require("react"));
14853
- var ActionTileRoot = (_a7) => {
14854
- var _b7 = _a7, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14840
+ var ActionTileRoot = (_a8) => {
14841
+ var _b7 = _a8, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14855
14842
  return /* @__PURE__ */ import_react41.default.createElement(
14856
14843
  Flex,
14857
14844
  __spreadProps(__spreadValues({}, props), {
@@ -14995,8 +14982,8 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
14995
14982
  }
14996
14983
  });
14997
14984
  var SheetContent = import_react42.default.forwardRef(
14998
- (_a7, forwardedRef) => {
14999
- var _b7 = _a7, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
14985
+ (_a8, forwardedRef) => {
14986
+ var _b7 = _a8, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
15000
14987
  return /* @__PURE__ */ import_react42.default.createElement(Dialog.Portal, { container }, /* @__PURE__ */ import_react42.default.createElement(StyledOverlay, null), /* @__PURE__ */ import_react42.default.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
15001
14988
  }
15002
14989
  );
@@ -15098,7 +15085,7 @@ var useDropdownSelection = () => {
15098
15085
 
15099
15086
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
15100
15087
  var Settings = ({ setHide }) => {
15101
- var _a7;
15088
+ var _a8;
15102
15089
  const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk15.useDevices)();
15103
15090
  const { videoInput, audioInput, audioOutput } = allDevices;
15104
15091
  const videoTrackId = (0, import_react_sdk15.useHMSStore)(import_react_sdk15.selectLocalVideoTrackID);
@@ -15114,7 +15101,7 @@ var Settings = ({ setHide }) => {
15114
15101
  hmsActions.refreshDevices();
15115
15102
  }
15116
15103
  }, [hmsActions, isMobile]);
15117
- const audioOutputFiltered = (_a7 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a7 : [];
15104
+ const audioOutputFiltered = (_a8 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a8 : [];
15118
15105
  if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
15119
15106
  setHide(true);
15120
15107
  }
@@ -15170,7 +15157,7 @@ var Settings = ({ setHide }) => {
15170
15157
  ) : null);
15171
15158
  };
15172
15159
  var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
15173
- var _a7, _b7;
15160
+ var _a8, _b7;
15174
15161
  const [open, setOpen] = (0, import_react45.useState)(false);
15175
15162
  const selectionBg = useDropdownSelection();
15176
15163
  const ref = (0, import_react45.useRef)(null);
@@ -15205,7 +15192,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
15205
15192
  {
15206
15193
  ref,
15207
15194
  icon,
15208
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
15195
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
15209
15196
  open
15210
15197
  }
15211
15198
  ), /* @__PURE__ */ import_react45.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react45.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_b7 = ref.current) == null ? void 0 : _b7.clientWidth, zIndex: 1001 } }, devices.map((device) => {
@@ -15240,8 +15227,8 @@ var TestAudio = ({ id }) => {
15240
15227
  }
15241
15228
  },
15242
15229
  onClick: () => {
15243
- var _a7;
15244
- return (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15230
+ var _a8;
15231
+ return (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15245
15232
  },
15246
15233
  disabled: playing
15247
15234
  },
@@ -15360,18 +15347,18 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
15360
15347
  }
15361
15348
  }, [screenType, hideSettingByTabName]);
15362
15349
  const [selection, setSelection] = (0, import_react47.useState)(() => {
15363
- var _a7;
15364
- return (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15350
+ var _a8;
15351
+ return (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15365
15352
  });
15366
15353
  const resetSelection = (0, import_react47.useCallback)(() => {
15367
15354
  setSelection("");
15368
15355
  }, []);
15369
15356
  (0, import_react47.useEffect)(() => {
15370
- var _a7;
15357
+ var _a8;
15371
15358
  if (isMobile) {
15372
15359
  setSelection("");
15373
15360
  } else {
15374
- const firstNotHiddenTabName = (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15361
+ const firstNotHiddenTabName = (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15375
15362
  setSelection(firstNotHiddenTabName);
15376
15363
  }
15377
15364
  }, [isMobile, showSetting]);
@@ -15592,11 +15579,11 @@ var OptionLabel = ({ children, icon }) => {
15592
15579
  );
15593
15580
  };
15594
15581
  var useNoiseCancellationWithPlugin = () => {
15595
- var _a7;
15582
+ var _a8;
15596
15583
  const actions = (0, import_react_sdk16.useHMSActions)();
15597
15584
  const [inProgress, setInProgress] = (0, import_react48.useState)(false);
15598
15585
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
15599
- const isEnabledForRoom = (_a7 = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15586
+ const isEnabledForRoom = (_a8 = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15600
15587
  const setNoiseCancellationWithPlugin = (0, import_react48.useCallback)(
15601
15588
  (enabled) => __async(void 0, null, function* () {
15602
15589
  if (!isEnabledForRoom || inProgress) {
@@ -15639,7 +15626,7 @@ var NoiseCancellation = ({
15639
15626
  ActionTile.Root,
15640
15627
  {
15641
15628
  active: isNoiseCancellationEnabled && isKrispPluginAdded,
15642
- disable: inProgress,
15629
+ disabled: inProgress,
15643
15630
  onClick: () => __async(void 0, null, function* () {
15644
15631
  yield setNoiseCancellationWithPlugin(!isNoiseCancellationEnabled);
15645
15632
  setOpenOptionsSheet == null ? void 0 : setOpenOptionsSheet(false);
@@ -15702,11 +15689,11 @@ var AudioOutputLabel = ({ deviceId }) => {
15702
15689
  variant: "xs",
15703
15690
  css: { color: "$primary_bright", "&:hover": { cursor: "pointer" } },
15704
15691
  onClick: () => __async(void 0, null, function* () {
15705
- var _a7;
15692
+ var _a8;
15706
15693
  if (playing) {
15707
15694
  return;
15708
15695
  }
15709
- yield (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15696
+ yield (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15710
15697
  })
15711
15698
  },
15712
15699
  /* @__PURE__ */ import_react48.default.createElement(
@@ -15768,8 +15755,8 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
15768
15755
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
15769
15756
  (0, import_react48.useEffect)(() => {
15770
15757
  (() => __async(void 0, null, function* () {
15771
- var _a7;
15772
- const isEnabledForRoom = (_a7 = vanillaStore.getState(import_react_sdk16.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15758
+ var _a8;
15759
+ const isEnabledForRoom = (_a8 = vanillaStore.getState(import_react_sdk16.selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15773
15760
  if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
15774
15761
  try {
15775
15762
  yield setNoiseCancellationWithPlugin(true);
@@ -15936,15 +15923,15 @@ var import_react_use8 = require("react-use");
15936
15923
  var import_join_form2 = require("@100mslive/types-prebuilt/elements/join_form");
15937
15924
  var import_react_sdk18 = require("@100mslive/react-sdk");
15938
15925
  var useFilteredRoles = () => {
15939
- var _a7;
15926
+ var _a8;
15940
15927
  const { elements } = useRoomLayoutConferencingScreen();
15941
- return ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.roles_whitelist) || [];
15928
+ return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
15942
15929
  };
15943
15930
  var useDefaultChatSelection = () => {
15944
- var _a7;
15931
+ var _a8;
15945
15932
  const { elements } = useRoomLayoutConferencingScreen();
15946
15933
  const roles = useFilteredRoles();
15947
- if ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.public_chat_enabled) {
15934
+ if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
15948
15935
  return CHAT_SELECTOR.EVERYONE;
15949
15936
  }
15950
15937
  if (roles.length > 0) {
@@ -15953,20 +15940,20 @@ var useDefaultChatSelection = () => {
15953
15940
  return "";
15954
15941
  };
15955
15942
  var useShowStreamingUI = () => {
15956
- var _a7, _b7, _c;
15943
+ var _a8, _b7, _c;
15957
15944
  const layout = useRoomLayout();
15958
- const { join_form } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
15945
+ const { join_form } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
15959
15946
  return (join_form == null ? void 0 : join_form.join_btn_type) === import_join_form2.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
15960
15947
  };
15961
15948
  var useParticipants = (params) => {
15962
- var _a7;
15949
+ var _a8;
15963
15950
  const isConnected = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectIsConnectedToRoom);
15964
15951
  const peerCount = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectPeerCount);
15965
15952
  const availableRoles = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectAvailableRoleNames);
15966
15953
  let participantList = (0, import_react_sdk18.useHMSStore)(isConnected ? import_react_sdk18.selectPeers : import_react_sdk18.selectRemotePeers);
15967
15954
  const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
15968
15955
  const vanillaStore = (0, import_react_sdk18.useHMSVanillaStore)();
15969
- if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
15956
+ if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
15970
15957
  participantList = participantList.filter((peer) => {
15971
15958
  return vanillaStore.getState((0, import_react_sdk18.selectPeerMetadata)(peer.id)).isHandRaised;
15972
15959
  });
@@ -16085,9 +16072,9 @@ function useWaitingRoomInfo() {
16085
16072
  const isScreenOnlyPublishParams = screen && !(video || audio);
16086
16073
  const hasSubscribedRolePublishing = (0, import_react52.useMemo)(() => {
16087
16074
  return peersByRoles.some((peer) => {
16088
- var _a7;
16075
+ var _a8;
16089
16076
  if (peer.roleName && roles[peer.roleName] && !peer.isLocal) {
16090
- return !!((_a7 = roles[peer.roleName].publishParams) == null ? void 0 : _a7.allowed.length);
16077
+ return !!((_a8 = roles[peer.roleName].publishParams) == null ? void 0 : _a8.allowed.length);
16091
16078
  }
16092
16079
  return false;
16093
16080
  });
@@ -16116,14 +16103,14 @@ var EmojiReaction = ({ showCard = false }) => {
16116
16103
  type: EMOJI_REACTION_TYPE
16117
16104
  });
16118
16105
  const sendReaction = (emojiId) => __async(void 0, null, function* () {
16119
- var _a7;
16106
+ var _a8;
16120
16107
  const data3 = {
16121
16108
  type: EMOJI_REACTION_TYPE,
16122
16109
  emojiId,
16123
16110
  senderId: localPeerId
16124
16111
  };
16125
16112
  sendEvent(data3, { roleNames: roles });
16126
- (_a7 = window.showFlyingEmoji) == null ? void 0 : _a7.call(window, { emojiId, senderId: localPeerId });
16113
+ (_a8 = window.showFlyingEmoji) == null ? void 0 : _a8.call(window, { emojiId, senderId: localPeerId });
16127
16114
  });
16128
16115
  if (!isConnected || !elements.emoji_reactions) {
16129
16116
  return null;
@@ -16576,18 +16563,18 @@ var SetupMediaSession = class {
16576
16563
  this.setUpHandlers();
16577
16564
  });
16578
16565
  __publicField(this, "initState", () => {
16579
- var _a7, _b7, _c, _d;
16566
+ var _a8, _b7, _c, _d;
16580
16567
  const isMicActive = this.store.getState(import_react_sdk23.selectIsLocalAudioEnabled);
16581
16568
  const isCamActive = this.store.getState(import_react_sdk23.selectIsLocalVideoEnabled);
16582
- (_b7 = (_a7 = navigator.mediaSession) == null ? void 0 : _a7.setMicrophoneActive) == null ? void 0 : _b7.call(_a7, isMicActive);
16569
+ (_b7 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b7.call(_a8, isMicActive);
16583
16570
  (_d = (_c = navigator.mediaSession) == null ? void 0 : _c.setCameraActive) == null ? void 0 : _d.call(_c, isCamActive);
16584
16571
  this.store.subscribe((isMicActive2) => {
16585
- var _a8, _b8;
16586
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b8.call(_a8, isMicActive2);
16572
+ var _a9, _b8;
16573
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setMicrophoneActive) == null ? void 0 : _b8.call(_a9, isMicActive2);
16587
16574
  }, import_react_sdk23.selectIsLocalAudioEnabled);
16588
16575
  this.store.subscribe((isCamActive2) => {
16589
- var _a8, _b8;
16590
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setCameraActive) == null ? void 0 : _b8.call(_a8, isCamActive2);
16576
+ var _a9, _b8;
16577
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setCameraActive) == null ? void 0 : _b8.call(_a9, isCamActive2);
16591
16578
  }, import_react_sdk23.selectIsLocalVideoEnabled);
16592
16579
  });
16593
16580
  __publicField(this, "toggleMic", () => __async(this, null, function* () {
@@ -16833,9 +16820,9 @@ var ChatActions = ({
16833
16820
  openSheet,
16834
16821
  setOpenSheet
16835
16822
  }) => {
16836
- var _a7, _b7;
16823
+ var _a8, _b7;
16837
16824
  const { elements } = useRoomLayoutConferencingScreen();
16838
- const { can_hide_message = false, can_block_user = false } = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) || {};
16825
+ const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
16839
16826
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
16840
16827
  const [open, setOpen] = (0, import_react65.useState)(false);
16841
16828
  const actions = (0, import_react_sdk27.useHMSActions)();
@@ -17024,7 +17011,7 @@ var import_react66 = __toESM(require("react"));
17024
17011
  var import_react_use11 = require("react-use");
17025
17012
  var import_empty_chat = __toESM(require("./empty-chat.svg"));
17026
17013
  var EmptyChat = () => {
17027
- var _a7;
17014
+ var _a8;
17028
17015
  const { elements } = useRoomLayoutConferencingScreen();
17029
17016
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17030
17017
  const isMobile = (0, import_react_use11.useMedia)(config.media.md);
@@ -17032,7 +17019,7 @@ var EmptyChat = () => {
17032
17019
  const isMobileHLSStream = useMobileHLSStream();
17033
17020
  const isLandscapeStream = useLandscapeHLSStream();
17034
17021
  const streaming = isMobileHLSStream || isLandscapeStream;
17035
- if (isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming)
17022
+ if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming)
17036
17023
  return /* @__PURE__ */ import_react66.default.createElement(import_react66.default.Fragment, null);
17037
17024
  return /* @__PURE__ */ import_react66.default.createElement(
17038
17025
  Flex,
@@ -17093,12 +17080,12 @@ var CHAT_MESSAGE_LIMIT = 2e3;
17093
17080
  var rowHeights = {};
17094
17081
  var listInstance = null;
17095
17082
  function getRowHeight(index) {
17096
- var _a7;
17097
- return ((_a7 = rowHeights[index]) == null ? void 0 : _a7.size) || 72;
17083
+ var _a8;
17084
+ return ((_a8 = rowHeights[index]) == null ? void 0 : _a8.size) || 72;
17098
17085
  }
17099
17086
  var setRowHeight = (index, id, size) => {
17100
- var _a7, _b7;
17101
- if (((_a7 = rowHeights[index]) == null ? void 0 : _a7.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17087
+ var _a8, _b7;
17088
+ if (((_a8 = rowHeights[index]) == null ? void 0 : _a8.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17102
17089
  return;
17103
17090
  }
17104
17091
  listInstance == null ? void 0 : listInstance.resetAfterIndex(Math.max(index - 1, 0));
@@ -17199,11 +17186,11 @@ var SenderName = styled(Text, {
17199
17186
  });
17200
17187
  var ChatMessage = import_react68.default.memo(
17201
17188
  ({ index, style = {}, message }) => {
17202
- var _a7, _b7, _c;
17189
+ var _a8, _b7, _c;
17203
17190
  const { elements } = useRoomLayoutConferencingScreen();
17204
17191
  const rowRef = (0, import_react68.useRef)(null);
17205
17192
  const isMobile = (0, import_react_use12.useMedia)(config.media.md);
17206
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
17193
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
17207
17194
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
17208
17195
  const localPeerId = (0, import_react_sdk29.useHMSStore)(import_react_sdk29.selectLocalPeerID);
17209
17196
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
@@ -17491,7 +17478,7 @@ var PinnedBy = ({
17491
17478
 
17492
17479
  // src/Prebuilt/components/PIP/PIPChat.tsx
17493
17480
  var PIPChat = () => {
17494
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17481
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17495
17482
  const messages = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectHMSMessages);
17496
17483
  const localPeerID = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectLocalPeerID);
17497
17484
  const count = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectUnreadHMSMessagesCount);
@@ -17517,7 +17504,7 @@ var PIPChat = () => {
17517
17504
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk30.useHMSStore)((0, import_react_sdk30.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
17518
17505
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17519
17506
  const { elements } = useRoomLayoutConferencingScreen();
17520
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
17507
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
17521
17508
  const canSendChatMessages = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled) || !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.roles_whitelist) == null ? void 0 : _d.length) || !!((_e = elements == null ? void 0 : elements.chat) == null ? void 0 : _e.private_chat_enabled);
17522
17509
  const getChatStatus = (0, import_react69.useCallback)(() => {
17523
17510
  if (isLocalPeerBlacklisted)
@@ -17533,7 +17520,7 @@ var PIPChat = () => {
17533
17520
  localPeerID,
17534
17521
  message_placeholder
17535
17522
  ]);
17536
- return /* @__PURE__ */ import_react69.default.createElement("div", { style: { height: "100%" } }, /* @__PURE__ */ import_react69.default.createElement(
17523
+ return /* @__PURE__ */ import_react69.default.createElement("div", { style: { height: "100vh" } }, /* @__PURE__ */ import_react69.default.createElement(
17537
17524
  Box,
17538
17525
  {
17539
17526
  id: "chat-container",
@@ -17750,11 +17737,11 @@ var RoleChangeContent = ({
17750
17737
  onOpenChange,
17751
17738
  isMobile = false
17752
17739
  }) => {
17753
- var _a7;
17740
+ var _a8;
17754
17741
  const roles = (0, import_react_sdk31.useHMSStore)(import_react_sdk31.selectAvailableRoleNames).filter(
17755
17742
  (role) => role !== (peer == null ? void 0 : peer.roleName) && role !== "__internal_recorder"
17756
17743
  );
17757
- const [selectedRole, setRole] = (0, import_react71.useState)(((_a7 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a7[0]) || (peer == null ? void 0 : peer.roleName));
17744
+ const [selectedRole, setRole] = (0, import_react71.useState)(((_a8 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a8[0]) || (peer == null ? void 0 : peer.roleName));
17758
17745
  const hmsActions = (0, import_react_sdk31.useHMSActions)();
17759
17746
  const [open, setOpen] = (0, import_react71.useState)(false);
17760
17747
  const triggerRef = (0, import_react71.useRef)();
@@ -17808,14 +17795,14 @@ var RoleChangeContent = ({
17808
17795
  },
17809
17796
  /* @__PURE__ */ import_react71.default.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ import_react71.default.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ import_react71.default.createElement(import_react_icons25.ChevronUpIcon, null) : /* @__PURE__ */ import_react71.default.createElement(import_react_icons25.ChevronDownIcon, null))
17810
17797
  ), /* @__PURE__ */ import_react71.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { zIndex: 1e3, w: "100%" } }, roles.map((role) => {
17811
- var _a8;
17798
+ var _a9;
17812
17799
  return /* @__PURE__ */ import_react71.default.createElement(
17813
17800
  Dropdown.Item,
17814
17801
  {
17815
17802
  "data-testid": role,
17816
17803
  key: role,
17817
17804
  onSelect: () => setRole(role),
17818
- css: { w: `${(_a8 = triggerRef.current) == null ? void 0 : _a8.clientWidth}px` }
17805
+ css: { w: `${(_a9 = triggerRef.current) == null ? void 0 : _a9.clientWidth}px` }
17819
17806
  },
17820
17807
  role
17821
17808
  );
@@ -17877,12 +17864,12 @@ var import_react_icons27 = require("@100mslive/react-icons");
17877
17864
  init_define_process_env();
17878
17865
  var import_react72 = __toESM(require("react"));
17879
17866
  var import_react_icons26 = require("@100mslive/react-icons");
17880
- var DialogContent = (_a7) => {
17881
- var _b7 = _a7, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17867
+ var DialogContent = (_a8) => {
17868
+ var _b7 = _a8, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17882
17869
  return /* @__PURE__ */ import_react72.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react72.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react72.default.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ import_react72.default.createElement(Dialog.Title, null, /* @__PURE__ */ import_react72.default.createElement(Flex, { justify: "between" }, /* @__PURE__ */ import_react72.default.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon4 ? /* @__PURE__ */ import_react72.default.createElement(Flex, { css: __spreadValues(__spreadValues({ mr: "$2", color: "$on_primary_high" }, flexCenter), iconCSS) }, /* @__PURE__ */ import_react72.default.createElement(Icon4, null)) : null, /* @__PURE__ */ import_react72.default.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ import_react72.default.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ import_react72.default.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ import_react72.default.createElement(Box, null, children)));
17883
17870
  };
17884
- var ErrorDialog = (_a7) => {
17885
- var _b7 = _a7, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17871
+ var ErrorDialog = (_a8) => {
17872
+ var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17886
17873
  return /* @__PURE__ */ import_react72.default.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ import_react72.default.createElement(
17887
17874
  DialogContent,
17888
17875
  __spreadValues({
@@ -17926,8 +17913,8 @@ var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" })
17926
17913
  }
17927
17914
  return /* @__PURE__ */ import_react72.default.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
17928
17915
  };
17929
- var DialogCol = (_a7) => {
17930
- var _b7 = _a7, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
17916
+ var DialogCol = (_a8) => {
17917
+ var _b7 = _a8, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
17931
17918
  let finalCSS = {
17932
17919
  margin: "$10 0",
17933
17920
  w: "100%"
@@ -17942,24 +17929,24 @@ var DialogCol = (_a7) => {
17942
17929
  }
17943
17930
  return /* @__PURE__ */ import_react72.default.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
17944
17931
  };
17945
- var DialogSelect = (_a7) => {
17946
- var _b7 = _a7, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
17932
+ var DialogSelect = (_a8) => {
17933
+ var _b7 = _a8, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
17947
17934
  return /* @__PURE__ */ import_react72.default.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ import_react72.default.createElement(Label3, null, title), /* @__PURE__ */ import_react72.default.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ import_react72.default.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ import_react72.default.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
17948
17935
  const id = keyField ? option[keyField] : option;
17949
17936
  const label = labelField ? option[labelField] : option;
17950
17937
  return /* @__PURE__ */ import_react72.default.createElement("option", { value: id, key: id }, label);
17951
17938
  }))));
17952
17939
  };
17953
- var DialogInputFile = (_a7) => {
17954
- var _b7 = _a7, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
17940
+ var DialogInputFile = (_a8) => {
17941
+ var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
17955
17942
  const inputRef = (0, import_react72.useRef)();
17956
17943
  return /* @__PURE__ */ import_react72.default.createElement(
17957
17944
  DialogCol,
17958
17945
  {
17959
17946
  breakSm: true,
17960
17947
  onClick: () => {
17961
- var _a8;
17962
- return (_a8 = inputRef.current) == null ? void 0 : _a8.click();
17948
+ var _a9;
17949
+ return (_a9 = inputRef.current) == null ? void 0 : _a9.click();
17963
17950
  },
17964
17951
  css: {
17965
17952
  justifyContent: "center",
@@ -18168,7 +18155,7 @@ var import_react_use14 = require("react-use");
18168
18155
  var import_ts_pattern4 = require("ts-pattern");
18169
18156
  var import_react_sdk33 = require("@100mslive/react-sdk");
18170
18157
  var StatsForNerds = ({ open, onOpenChange }) => {
18171
- var _a7, _b7;
18158
+ var _a8, _b7;
18172
18159
  const mediaQueryLg = config.media.md;
18173
18160
  const isMobile = (0, import_react_use14.useMedia)(mediaQueryLg);
18174
18161
  const tracksWithLabels = useTracksWithLabel();
@@ -18232,7 +18219,7 @@ var StatsForNerds = ({ open, onOpenChange }) => {
18232
18219
  open: openDropdown,
18233
18220
  ref
18234
18221
  }
18235
- ), /* @__PURE__ */ import_react75.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react75.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18222
+ ), /* @__PURE__ */ import_react75.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react75.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18236
18223
  const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
18237
18224
  return /* @__PURE__ */ import_react75.default.createElement(
18238
18225
  Dropdown.Item,
@@ -18315,8 +18302,8 @@ var useTracksWithLabel = () => {
18315
18302
  const localPeerID = (0, import_react_sdk33.useHMSStore)(import_react_sdk33.selectLocalPeerID);
18316
18303
  const tracksWithLabels = (0, import_react75.useMemo)(
18317
18304
  () => Object.values(tracksMap).reduce((res, track) => {
18318
- var _a7, _b7;
18319
- const peerName = (_a7 = peersMap[track.peerId]) == null ? void 0 : _a7.name;
18305
+ var _a8, _b7;
18306
+ const peerName = (_a8 = peersMap[track.peerId]) == null ? void 0 : _a8.name;
18320
18307
  const isLocalTrack = track.peerId === localPeerID;
18321
18308
  if (isLocalTrack && ((_b7 = track.layerDefinitions) == null ? void 0 : _b7.length)) {
18322
18309
  res = res.concat(
@@ -18343,12 +18330,12 @@ var useTracksWithLabel = () => {
18343
18330
  return tracksWithLabels;
18344
18331
  };
18345
18332
  var LocalPeerStats = () => {
18346
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
18333
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i;
18347
18334
  const stats = (0, import_react_sdk33.useHMSStatsStore)(import_react_sdk33.selectHMSStats.localPeerStats);
18348
18335
  if (!stats) {
18349
18336
  return null;
18350
18337
  }
18351
- return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: (_a7 = stats.subscribe) == null ? void 0 : _a7.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(
18338
+ return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: (_a8 = stats.subscribe) == null ? void 0 : _a8.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(
18352
18339
  StatsRow2,
18353
18340
  {
18354
18341
  label: "Available Outgoing Bitrate",
@@ -18363,7 +18350,7 @@ var LocalPeerStats = () => {
18363
18350
  ));
18364
18351
  };
18365
18352
  var TrackStats = ({ trackID, layer, local }) => {
18366
- var _a7;
18353
+ var _a8;
18367
18354
  const selector = (0, import_ts_pattern4.match)({ trackID, layer, local }).with(
18368
18355
  {
18369
18356
  layer: import_ts_pattern4.P.when((layer2) => !!layer2)
@@ -18375,7 +18362,7 @@ var TrackStats = ({ trackID, layer, local }) => {
18375
18362
  return null;
18376
18363
  }
18377
18364
  const inbound = stats.type.includes("inbound");
18378
- return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_a7 = stats.jitter) == null ? void 0 : _a7.toFixed(3) }), /* @__PURE__ */ import_react75.default.createElement(
18365
+ return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_a8 = stats.jitter) == null ? void 0 : _a8.toFixed(3) }), /* @__PURE__ */ import_react75.default.createElement(
18379
18366
  StatsRow2,
18380
18367
  {
18381
18368
  label: inbound ? "Bytes Received" : "Bytes Sent",
@@ -18390,8 +18377,8 @@ var TrackStats = ({ trackID, layer, local }) => {
18390
18377
  ));
18391
18378
  };
18392
18379
  var DebugInfo = ({ details }) => {
18393
- var _a7;
18394
- return /* @__PURE__ */ import_react75.default.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Header, null, /* @__PURE__ */ import_react75.default.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ import_react75.default.createElement(Accordion.Content, null, /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a7 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a7.join(", ") })))));
18380
+ var _a8;
18381
+ return /* @__PURE__ */ import_react75.default.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Header, null, /* @__PURE__ */ import_react75.default.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ import_react75.default.createElement(Accordion.Content, null, /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a8 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a8.join(", ") })))));
18395
18382
  };
18396
18383
  var StatsRow2 = import_react75.default.memo(({ label, value, css: css2 }) => /* @__PURE__ */ import_react75.default.createElement(Box, { css: __spreadValues({ bg: "$surface_bright", w: "calc(50% - $6)", p: "$8", r: "$3" }, css2) }, /* @__PURE__ */ import_react75.default.createElement(
18397
18384
  Text,
@@ -18412,7 +18399,7 @@ var import_react76 = __toESM(require("react"));
18412
18399
  var import_react_sdk34 = require("@100mslive/react-sdk");
18413
18400
  var import_react_icons29 = require("@100mslive/react-icons");
18414
18401
  var BulkRoleChangeModal = ({ onOpenChange }) => {
18415
- var _a7, _b7;
18402
+ var _a8, _b7;
18416
18403
  const roles = useFilteredRoles();
18417
18404
  const hmsActions = (0, import_react_sdk34.useHMSActions)();
18418
18405
  const ref = (0, import_react76.useRef)(null);
@@ -18463,7 +18450,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
18463
18450
  /* @__PURE__ */ import_react76.default.createElement(
18464
18451
  Dropdown.Content,
18465
18452
  {
18466
- css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 },
18453
+ css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 },
18467
18454
  onInteractOutside: () => {
18468
18455
  if (bulkRoleDialog) {
18469
18456
  setBulkRoleDialog(false);
@@ -19702,20 +19689,20 @@ function shimOnTrack(window2) {
19702
19689
  }
19703
19690
  function shimGetSendersWithDtmf(window2) {
19704
19691
  if (typeof window2 === "object" && window2.RTCPeerConnection && !("getSenders" in window2.RTCPeerConnection.prototype) && "createDTMFSender" in window2.RTCPeerConnection.prototype) {
19705
- const shimSenderWithDtmf = function(pc2, track) {
19692
+ const shimSenderWithDtmf = function(pc, track) {
19706
19693
  return {
19707
19694
  track,
19708
19695
  get dtmf() {
19709
19696
  if (this._dtmf === void 0) {
19710
19697
  if (track.kind === "audio") {
19711
- this._dtmf = pc2.createDTMFSender(track);
19698
+ this._dtmf = pc.createDTMFSender(track);
19712
19699
  } else {
19713
19700
  this._dtmf = null;
19714
19701
  }
19715
19702
  }
19716
19703
  return this._dtmf;
19717
19704
  },
19718
- _pc: pc2
19705
+ _pc: pc
19719
19706
  };
19720
19707
  };
19721
19708
  if (!window2.RTCPeerConnection.prototype.getSenders) {
@@ -20070,11 +20057,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
20070
20057
  }
20071
20058
  return this.getSenders().find((s) => s.track === track);
20072
20059
  };
20073
- function replaceInternalStreamId(pc2, description) {
20060
+ function replaceInternalStreamId(pc, description) {
20074
20061
  let sdp2 = description.sdp;
20075
- Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
20076
- const externalStream = pc2._reverseStreams[internalId];
20077
- const internalStream = pc2._streams[externalStream.id];
20062
+ Object.keys(pc._reverseStreams || []).forEach((internalId) => {
20063
+ const externalStream = pc._reverseStreams[internalId];
20064
+ const internalStream = pc._streams[externalStream.id];
20078
20065
  sdp2 = sdp2.replace(
20079
20066
  new RegExp(internalStream.id, "g"),
20080
20067
  externalStream.id
@@ -20085,11 +20072,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
20085
20072
  sdp: sdp2
20086
20073
  });
20087
20074
  }
20088
- function replaceExternalStreamId(pc2, description) {
20075
+ function replaceExternalStreamId(pc, description) {
20089
20076
  let sdp2 = description.sdp;
20090
- Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
20091
- const externalStream = pc2._reverseStreams[internalId];
20092
- const internalStream = pc2._streams[externalStream.id];
20077
+ Object.keys(pc._reverseStreams || []).forEach((internalId) => {
20078
+ const externalStream = pc._reverseStreams[internalId];
20079
+ const internalStream = pc._streams[externalStream.id];
20093
20080
  sdp2 = sdp2.replace(
20094
20081
  new RegExp(externalStream.id, "g"),
20095
20082
  internalStream.id
@@ -20203,9 +20190,9 @@ function shimPeerConnection(window2, browserDetails) {
20203
20190
  }
20204
20191
  function fixNegotiationNeeded(window2, browserDetails) {
20205
20192
  wrapPeerConnectionEvent(window2, "negotiationneeded", (e) => {
20206
- const pc2 = e.target;
20207
- if (browserDetails.version < 72 || pc2.getConfiguration && pc2.getConfiguration().sdpSemantics === "plan-b") {
20208
- if (pc2.signalingState !== "stable") {
20193
+ const pc = e.target;
20194
+ if (browserDetails.version < 72 || pc.getConfiguration && pc.getConfiguration().sdpSemantics === "plan-b") {
20195
+ if (pc.signalingState !== "stable") {
20209
20196
  return;
20210
20197
  }
20211
20198
  }
@@ -20652,24 +20639,24 @@ function shimRemoteStreamsAPI(window2) {
20652
20639
  });
20653
20640
  const origSetRemoteDescription = window2.RTCPeerConnection.prototype.setRemoteDescription;
20654
20641
  window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
20655
- const pc2 = this;
20642
+ const pc = this;
20656
20643
  if (!this._onaddstreampoly) {
20657
20644
  this.addEventListener("track", this._onaddstreampoly = function(e) {
20658
20645
  e.streams.forEach((stream) => {
20659
- if (!pc2._remoteStreams) {
20660
- pc2._remoteStreams = [];
20646
+ if (!pc._remoteStreams) {
20647
+ pc._remoteStreams = [];
20661
20648
  }
20662
- if (pc2._remoteStreams.indexOf(stream) >= 0) {
20649
+ if (pc._remoteStreams.indexOf(stream) >= 0) {
20663
20650
  return;
20664
20651
  }
20665
- pc2._remoteStreams.push(stream);
20652
+ pc._remoteStreams.push(stream);
20666
20653
  const event = new Event("addstream");
20667
20654
  event.stream = stream;
20668
- pc2.dispatchEvent(event);
20655
+ pc.dispatchEvent(event);
20669
20656
  });
20670
20657
  });
20671
20658
  }
20672
- return origSetRemoteDescription.apply(pc2, arguments);
20659
+ return origSetRemoteDescription.apply(pc, arguments);
20673
20660
  };
20674
20661
  }
20675
20662
  }
@@ -21035,13 +21022,13 @@ function shimSendThrowTypeError(window2) {
21035
21022
  if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
21036
21023
  return;
21037
21024
  }
21038
- function wrapDcSend(dc, pc2) {
21025
+ function wrapDcSend(dc, pc) {
21039
21026
  const origDataChannelSend = dc.send;
21040
21027
  dc.send = function send() {
21041
21028
  const data3 = arguments[0];
21042
21029
  const length = data3.length || data3.size || data3.byteLength;
21043
- if (dc.readyState === "open" && pc2.sctp && length > pc2.sctp.maxMessageSize) {
21044
- throw new TypeError("Message too large (can send a maximum of " + pc2.sctp.maxMessageSize + " bytes)");
21030
+ if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
21031
+ throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
21045
21032
  }
21046
21033
  return origDataChannelSend.apply(dc, arguments);
21047
21034
  };
@@ -21099,11 +21086,11 @@ function shimConnectionState(window2) {
21099
21086
  proto[method] = function() {
21100
21087
  if (!this._connectionstatechangepoly) {
21101
21088
  this._connectionstatechangepoly = (e) => {
21102
- const pc2 = e.target;
21103
- if (pc2._lastConnectionState !== pc2.connectionState) {
21104
- pc2._lastConnectionState = pc2.connectionState;
21089
+ const pc = e.target;
21090
+ if (pc._lastConnectionState !== pc.connectionState) {
21091
+ pc._lastConnectionState = pc.connectionState;
21105
21092
  const newEvent = new Event("connectionstatechange", e);
21106
- pc2.dispatchEvent(newEvent);
21093
+ pc.dispatchEvent(newEvent);
21107
21094
  }
21108
21095
  return e;
21109
21096
  };
@@ -21314,36 +21301,36 @@ var import_eventemitter2 = require("eventemitter2");
21314
21301
  var import_eventemitter22 = require("eventemitter2");
21315
21302
  var import_uuid8 = require("uuid");
21316
21303
  var import_eventemitter23 = require("eventemitter2");
21317
- var Jt = __toESM(require_lib());
21304
+ var Xt = __toESM(require_lib());
21318
21305
  var import_eventemitter24 = __toESM(require("eventemitter2"));
21319
21306
  var import_uuid9 = require("uuid");
21320
21307
  var import_uuid10 = require("uuid");
21321
- var ro = Object.defineProperty;
21322
- var so = Object.defineProperties;
21323
- var ao = Object.getOwnPropertyDescriptors;
21324
- var ii = Object.getOwnPropertySymbols;
21325
- var ls = Object.prototype.hasOwnProperty;
21326
- var us = Object.prototype.propertyIsEnumerable;
21327
- var ds = (a2, e, t) => e in a2 ? ro(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21308
+ var co = Object.defineProperty;
21309
+ var lo = Object.defineProperties;
21310
+ var uo = Object.getOwnPropertyDescriptors;
21311
+ var oi = Object.getOwnPropertySymbols;
21312
+ var Ss = Object.prototype.hasOwnProperty;
21313
+ var gs = Object.prototype.propertyIsEnumerable;
21314
+ var ms = (a2, e, t) => e in a2 ? co(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21328
21315
  var h = (a2, e) => {
21329
21316
  for (var t in e || (e = {}))
21330
- ls.call(e, t) && ds(a2, t, e[t]);
21331
- if (ii)
21332
- for (var t of ii(e))
21333
- us.call(e, t) && ds(a2, t, e[t]);
21317
+ Ss.call(e, t) && ms(a2, t, e[t]);
21318
+ if (oi)
21319
+ for (var t of oi(e))
21320
+ gs.call(e, t) && ms(a2, t, e[t]);
21334
21321
  return a2;
21335
21322
  };
21336
- var M = (a2, e) => so(a2, ao(e));
21337
- var Tr = (a2, e) => {
21323
+ var M = (a2, e) => lo(a2, uo(e));
21324
+ var yr = (a2, e) => {
21338
21325
  var t = {};
21339
21326
  for (var i in a2)
21340
- ls.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21341
- if (a2 != null && ii)
21342
- for (var i of ii(a2))
21343
- e.indexOf(i) < 0 && us.call(a2, i) && (t[i] = a2[i]);
21327
+ Ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21328
+ if (a2 != null && oi)
21329
+ for (var i of oi(a2))
21330
+ e.indexOf(i) < 0 && gs.call(a2, i) && (t[i] = a2[i]);
21344
21331
  return t;
21345
21332
  };
21346
- var co = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21333
+ var mo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21347
21334
  var c = (a2, e, t) => new Promise((i, r) => {
21348
21335
  var s = (d) => {
21349
21336
  try {
@@ -21360,51 +21347,51 @@ var c = (a2, e, t) => new Promise((i, r) => {
21360
21347
  }, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
21361
21348
  n((t = t.apply(a2, e)).next());
21362
21349
  });
21363
- var kr = co((Wc, fo) => {
21364
- fo.exports = { version: "0.12.25-alpha.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21350
+ var Ar = mo((Jc, Eo) => {
21351
+ Eo.exports = { version: "0.12.25-alpha.10", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21365
21352
  });
21366
- var fr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(fr || {});
21367
- var lo = ((e) => (e.CHAT = "chat", e))(lo || {});
21368
- var ps = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ps || {});
21369
- var vr = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(vr || {});
21370
- var hs = ((t) => (t.audio = "audio", t.video = "video", t))(hs || {});
21371
- function Be(a2, e) {
21353
+ var kr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(kr || {});
21354
+ var So = ((e) => (e.CHAT = "chat", e))(So || {});
21355
+ var Ts = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Ts || {});
21356
+ var Er = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(Er || {});
21357
+ var fs = ((t) => (t.audio = "audio", t.video = "video", t))(fs || {});
21358
+ function Fe(a2, e) {
21372
21359
  let t, i;
21373
21360
  if (e)
21374
21361
  for (let r of e.auxiliaryTracks) {
21375
21362
  let s = a2[r];
21376
- uo(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
21363
+ go(s) && (i = gt(s) ? s : i, t = Tt(s) ? s : t);
21377
21364
  }
21378
21365
  return { video: t, audio: i };
21379
21366
  }
21380
- function ht(a2) {
21367
+ function gt(a2) {
21381
21368
  return a2 && a2.type === "audio";
21382
21369
  }
21383
- function mt(a2) {
21370
+ function Tt(a2) {
21384
21371
  return a2 && a2.type === "video";
21385
21372
  }
21386
- function uo(a2) {
21373
+ function go(a2) {
21387
21374
  return a2 && a2.source === "screen";
21388
21375
  }
21389
- function ai(a2) {
21376
+ function di(a2) {
21390
21377
  return a2 && a2.source === "audioplaylist";
21391
21378
  }
21392
- function St(a2) {
21379
+ function ft(a2) {
21393
21380
  return a2 && a2.source === "videoplaylist";
21394
21381
  }
21395
- function ms(a2) {
21382
+ function vs(a2) {
21396
21383
  return a2 ? !!(a2 != null && a2.degraded) : false;
21397
21384
  }
21398
- function Je(a2, e) {
21385
+ function ze(a2, e) {
21399
21386
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21400
21387
  }
21401
- function gt(a2) {
21388
+ function vt(a2) {
21402
21389
  var r;
21403
21390
  let e = false, t = false, i = false;
21404
21391
  return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
21405
21392
  }
21406
- var gs = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(gs || {});
21407
- var po = typeof window != "undefined" && typeof window.expect != "undefined";
21393
+ var ys = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(ys || {});
21394
+ var To = typeof window != "undefined" && typeof window.expect != "undefined";
21408
21395
  var l = class {
21409
21396
  static v(e, ...t) {
21410
21397
  this.log(0, e, ...t);
@@ -21470,28 +21457,28 @@ var l = class {
21470
21457
  }
21471
21458
  }
21472
21459
  };
21473
- l.level = po ? 7 : 0;
21474
- var me = new import_ua_parser_js.UAParser();
21475
- var B = typeof window != "undefined";
21476
- var Ts;
21477
- var Ve = typeof window == "undefined" && !((Ts = me.getBrowser().name) != null && Ts.toLowerCase().includes("electron"));
21478
- var mo = () => !Ve;
21479
- var pc = mo();
21480
- var fs;
21481
- var vs;
21482
- var Ps = (vs = (fs = me.getBrowser()) == null ? void 0 : fs.name) == null ? void 0 : vs.toLowerCase().includes("safari");
21483
- var Ms;
21484
- var ys;
21485
- var bs = ((ys = (Ms = me.getBrowser()) == null ? void 0 : Ms.name) == null ? void 0 : ys.toLowerCase()) === "firefox";
21486
- var As = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(As || {});
21487
- function So() {
21488
- if (B && window) {
21460
+ l.level = To ? 7 : 0;
21461
+ var ge = new import_ua_parser_js.UAParser();
21462
+ var x = typeof window != "undefined";
21463
+ var ks;
21464
+ var Ge = typeof window == "undefined" && !((ks = ge.getBrowser().name) != null && ks.toLowerCase().includes("electron"));
21465
+ var vo = () => !Ge;
21466
+ var Tc = vo();
21467
+ var Es;
21468
+ var Ps;
21469
+ var Hs = (Ps = (Es = ge.getBrowser()) == null ? void 0 : Es.name) == null ? void 0 : Ps.toLowerCase().includes("safari");
21470
+ var bs;
21471
+ var As;
21472
+ var Cs = ((As = (bs = ge.getBrowser()) == null ? void 0 : bs.name) == null ? void 0 : As.toLowerCase()) === "firefox";
21473
+ var Ls = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ls || {});
21474
+ function Mo() {
21475
+ if (x && window) {
21489
21476
  let a2 = window.location.hostname;
21490
21477
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21491
21478
  }
21492
21479
  return "CUSTOM";
21493
21480
  }
21494
- var ze = So();
21481
+ var Xe = Mo();
21495
21482
  var P4 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014, NO_DATA: 3015 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
21496
21483
  var k = class a extends Error {
21497
21484
  constructor(t, i, r, s, o, n = false) {
@@ -21522,7 +21509,7 @@ var k = class a extends Error {
21522
21509
  }`;
21523
21510
  }
21524
21511
  };
21525
- var $ = class extends k {
21512
+ var W = class extends k {
21526
21513
  constructor(t, i, r, s, o, n) {
21527
21514
  super(t, i, r, s, o, false);
21528
21515
  this.code = t;
@@ -21548,8 +21535,8 @@ var $ = class extends k {
21548
21535
  }`;
21549
21536
  }
21550
21537
  };
21551
- var Is = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Is || {});
21552
- var go = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21538
+ var Ds = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Ds || {});
21539
+ var yo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21553
21540
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21554
21541
  return new k(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21555
21542
  }, WebSocketConnectionLost(a2, e = "") {
@@ -21565,37 +21552,37 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21565
21552
  }, InitConfigNotAvailable(a2, e = "") {
21566
21553
  return new k(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21567
21554
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21568
- return new $(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21555
+ return new W(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21569
21556
  }, CantAccessCaptureDevice(a2, e, t = "") {
21570
- return new $(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21557
+ return new W(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21571
21558
  }, DeviceNotAvailable(a2, e, t = "") {
21572
- return new $(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21559
+ return new W(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21573
21560
  }, DeviceInUse(a2, e, t = "") {
21574
- return new $(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21561
+ return new W(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21575
21562
  }, DeviceLostMidway(a2, e, t = "") {
21576
- return new $(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21563
+ return new W(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21577
21564
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21578
- return new $(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21565
+ return new W(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21579
21566
  }, InvalidVideoSettings(a2, e = "") {
21580
- return new $(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21567
+ return new W(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21581
21568
  }, AutoplayBlocked(a2, e = "") {
21582
- return new $(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21569
+ return new W(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21583
21570
  }, CodecChangeNotPermitted(a2, e = "") {
21584
- return new $(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21571
+ return new W(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21585
21572
  }, OverConstrained(a2, e, t = "") {
21586
- return new $(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21573
+ return new W(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21587
21574
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21588
- return new $(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21575
+ return new W(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21589
21576
  }, SystemDeniedPermission(a2, e, t = "") {
21590
- return new $(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21577
+ return new W(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21591
21578
  }, CurrentTabNotShared() {
21592
- return new $(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed", "screen");
21579
+ return new W(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed", "screen");
21593
21580
  }, AudioPlaybackError(a2) {
21594
- return new $(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21581
+ return new W(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21595
21582
  }, SelectedDeviceMissing(a2) {
21596
- return new $(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21583
+ return new W(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21597
21584
  }, NoDataInTrack(a2) {
21598
- return new $(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21585
+ return new W(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21599
21586
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21600
21587
  return new k(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21601
21588
  }, CreateAnswerFailed(a2, e = "") {
@@ -21611,7 +21598,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21611
21598
  }, StatsFailed(a2, e = "") {
21612
21599
  return new k(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21613
21600
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21614
- return new k(a2, "ServerErrors", e, t, t, go.includes(e));
21601
+ return new k(a2, "ServerErrors", e, t, t, yo.includes(e));
21615
21602
  }, AlreadyJoined(a2, e = "") {
21616
21603
  return new k(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21617
21604
  }, CannotJoinPreviewInProgress(a2, e = "") {
@@ -21659,7 +21646,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21659
21646
  }, NoEntryPlaying(a2, e) {
21660
21647
  return new k(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21661
21648
  } } };
21662
- var yr = class {
21649
+ var br = class {
21663
21650
  constructor() {
21664
21651
  this.valuesMap = /* @__PURE__ */ new Map();
21665
21652
  }
@@ -21684,21 +21671,21 @@ var yr = class {
21684
21671
  return this.valuesMap.size;
21685
21672
  }
21686
21673
  };
21687
- var Rs = () => {
21674
+ var ws = () => {
21688
21675
  try {
21689
- B && !localStorage && (window.localStorage = new yr());
21676
+ x && !localStorage && (window.localStorage = new br());
21690
21677
  } catch (a2) {
21691
21678
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21692
21679
  }
21693
21680
  };
21694
- var Se = class {
21681
+ var Te = class {
21695
21682
  constructor(e) {
21696
21683
  this.key = e;
21697
21684
  this.storage = null;
21698
21685
  }
21699
21686
  getStorage() {
21700
21687
  try {
21701
- return B && !this.storage && (Rs(), this.storage = window.localStorage), this.storage;
21688
+ return x && !this.storage && (ws(), this.storage = window.localStorage), this.storage;
21702
21689
  } catch (e) {
21703
21690
  return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21704
21691
  }
@@ -21718,32 +21705,32 @@ var Se = class {
21718
21705
  (e = this.getStorage()) == null || e.removeItem(this.key);
21719
21706
  }
21720
21707
  };
21721
- var oi = () => {
21722
- let a2, e = new Se("hms-analytics-deviceId"), t = e.get();
21708
+ var li = () => {
21709
+ let a2, e = new Te("hms-analytics-deviceId"), t = e.get();
21723
21710
  return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
21724
21711
  };
21725
- function le(a2) {
21712
+ function pe(a2) {
21726
21713
  return a2 != null;
21727
21714
  }
21728
- var Ls = kr().version;
21729
- function Mt(a2 = "prod", e) {
21730
- let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21731
- if (Ve)
21732
- return Ds({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ls, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21733
- let r = me.getOS(), s = me.getDevice(), o = me.getBrowser(), n = Er(`web_${r.name}`), d = r.version || "", u = Er(`${o.name}_${o.version}`), p = u;
21734
- return s.type && (p = `${Er(`${s.vendor}_${s.type}`)}/${u}`), Ds({ os: n, os_version: d, sdk: t, sdk_version: Ls, device_model: p, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21715
+ var Os = Ar().version;
21716
+ function Et(a2 = "prod", e) {
21717
+ let t = "web", i = Xe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21718
+ if (Ge)
21719
+ return xs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Os, env: i, domain: Xe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21720
+ let r = ge.getOS(), s = ge.getDevice(), o = ge.getBrowser(), n = Ir(`web_${r.name}`), d = r.version || "", u = Ir(`${o.name}_${o.version}`), p = u;
21721
+ return s.type && (p = `${Ir(`${s.vendor}_${s.type}`)}/${u}`), xs({ os: n, os_version: d, sdk: t, sdk_version: Os, device_model: p, env: i, domain: Xe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21735
21722
  }
21736
- function Er(a2) {
21723
+ function Ir(a2) {
21737
21724
  return a2.replace(/ /g, "_");
21738
21725
  }
21739
- var Ds = (a2, e = ",") => Object.keys(a2).filter((t) => le(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21726
+ var xs = (a2, e = ",") => Object.keys(a2).filter((t) => pe(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21740
21727
  var C = class {
21741
21728
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21742
- this.metadata = { peer: {}, userAgent: Mt() };
21743
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = oi();
21729
+ this.metadata = { peer: {}, userAgent: Et() };
21730
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = li();
21744
21731
  }
21745
21732
  toSignalParams() {
21746
- return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21733
+ return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: Xe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21747
21734
  }
21748
21735
  };
21749
21736
  var y = class {
@@ -21756,12 +21743,12 @@ var y = class {
21756
21743
  return new C({ name: i, level: r, properties: s });
21757
21744
  }
21758
21745
  static preview(i) {
21759
- var r = i, { error: e } = r, t = Tr(r, ["error"]);
21746
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21760
21747
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21761
21748
  return new C({ name: s, level: o, properties: n });
21762
21749
  }
21763
21750
  static join(i) {
21764
- var r = i, { error: e } = r, t = Tr(r, ["error"]);
21751
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21765
21752
  let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(h({}, t), { is_preview_called: !!t.is_preview_called }), e);
21766
21753
  return new C({ name: s, level: o, properties: n });
21767
21754
  }
@@ -21849,9 +21836,9 @@ var y = class {
21849
21836
  }
21850
21837
  };
21851
21838
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21852
- var Pr = class {
21839
+ var Rr = class {
21853
21840
  constructor() {
21854
- this.storage = new Se("hms-device-selection");
21841
+ this.storage = new Te("hms-device-selection");
21855
21842
  this.remember = false;
21856
21843
  this.TAG = "[HMSDeviceStorage]";
21857
21844
  }
@@ -21883,11 +21870,19 @@ var Pr = class {
21883
21870
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
21884
21871
  }
21885
21872
  };
21886
- var X = new Pr();
21887
- var br = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(br || {});
21888
- var Ar = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ar || {});
21889
- var Hr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Hr || {});
21890
- function di(a2, e = 300) {
21873
+ var Y = new Rr();
21874
+ var Hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Hr || {});
21875
+ var Cr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Cr || {});
21876
+ var Lr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Lr || {});
21877
+ var Us = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Us || {});
21878
+ var Bs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Bs || {});
21879
+ var Vs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Vs || {});
21880
+ var Fs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Fs || {});
21881
+ var Gs = ((e) => (e.CAPTION = "caption", e))(Gs || {});
21882
+ var Dr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Dr || {});
21883
+ var Ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ws || {});
21884
+ var Nr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Nr || {});
21885
+ function hi(a2, e = 300) {
21891
21886
  let t;
21892
21887
  return function(...i) {
21893
21888
  clearTimeout(t), t = void 0;
@@ -21897,15 +21892,7 @@ function di(a2, e = 300) {
21897
21892
  }, e);
21898
21893
  };
21899
21894
  }
21900
- var Lr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Lr || {});
21901
- var Os = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Os || {});
21902
- var xs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(xs || {});
21903
- var Us = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Us || {});
21904
- var Bs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Bs || {});
21905
- var Vs = ((e) => (e.CAPTION = "caption", e))(Vs || {});
21906
- var Dr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Dr || {});
21907
- var Fs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Fs || {});
21908
- var wr = class {
21895
+ var xr = class {
21909
21896
  constructor() {
21910
21897
  this.TAG = "[HMSIntersectionObserverWrapper]";
21911
21898
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21928,12 +21915,12 @@ var wr = class {
21928
21915
  this.createObserver();
21929
21916
  }
21930
21917
  isSupported() {
21931
- let e = B && typeof window.IntersectionObserver != "undefined";
21918
+ let e = x && typeof window.IntersectionObserver != "undefined";
21932
21919
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21933
21920
  }
21934
21921
  };
21935
- var Ks = new wr();
21936
- var _r = class {
21922
+ var zs = new xr();
21923
+ var Ur = class {
21937
21924
  constructor() {
21938
21925
  this.TAG = "[HMSResizeObserverWrapper]";
21939
21926
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21946,7 +21933,7 @@ var _r = class {
21946
21933
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
21947
21934
  };
21948
21935
  this.createObserver = () => {
21949
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(di(this.handleResize, 300)));
21936
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(hi(this.handleResize, 300)));
21950
21937
  };
21951
21938
  this.handleResize = (e) => {
21952
21939
  var t;
@@ -21956,47 +21943,47 @@ var _r = class {
21956
21943
  this.createObserver();
21957
21944
  }
21958
21945
  isSupported() {
21959
- let e = B && typeof window.ResizeObserver != "undefined";
21946
+ let e = x && typeof window.ResizeObserver != "undefined";
21960
21947
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
21961
21948
  }
21962
21949
  };
21963
- var qs = new _r();
21964
- var Nr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Nr || {});
21965
- var Or = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Or || {});
21966
- var Qs = "https://event.100ms.live/v2/client/report";
21967
- var zs = "https://event-nonprod.100ms.live/v2/client/report";
21968
- var bt = Math.pow(2, 31) - 1;
21969
- var st = class {
21970
- };
21971
- st.makePeerId = () => (0, import_uuid7.v4)();
21972
- var F = (a2) => a2.room;
21973
- var Uo = (a2) => a2.errors;
21974
- var dm = createSelector(Uo, (a2) => a2.length === 0 ? null : a2.at(-1));
21975
- var lm = createSelector(F, (a2) => a2.id);
21976
- var z = (a2) => a2.peers;
21977
- var yi = (a2) => a2.messages.byID;
21978
- var aa = (a2) => a2.messages.allIDs;
21979
- var O = (a2) => a2.tracks;
21980
- var Kr = (a2) => a2.appData;
21981
- var Bo = (a2) => a2.speakers;
21982
- var xe = createSelector([F], (a2) => a2 && a2.isConnected);
21983
- var hm = createSelector([xe, F], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21984
- var Vo = (a2) => a2.hideLocalPeer;
21985
- var ve = createSelector([F, z, Vo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21986
- var Fo = createSelector(O, (a2) => Object.values(a2));
21987
- var re = createSelector(F, z, (a2, e) => e[a2.localPeer]);
21988
- var Pe = createSelector(F, (a2) => a2.localPeer);
21989
- var mm = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
21990
- var Sm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
21991
- var ce = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
21992
- var Z = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
21993
- var Go = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21994
- var na = createSelector([ce, Z, Go], (a2, e, t) => {
21950
+ var Ys = new Ur();
21951
+ var Br = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Br || {});
21952
+ var Vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Vr || {});
21953
+ var ea = "https://event.100ms.live/v2/client/report";
21954
+ var ta = "https://event-nonprod.100ms.live/v2/client/report";
21955
+ var Ht = Math.pow(2, 31) - 1;
21956
+ var ot = class {
21957
+ };
21958
+ ot.makePeerId = () => (0, import_uuid7.v4)();
21959
+ var V = (a2) => a2.room;
21960
+ var Wo = (a2) => a2.errors;
21961
+ var fm = createSelector(Wo, (a2) => a2.length === 0 ? null : a2.at(-1));
21962
+ var vm = createSelector(V, (a2) => a2.id);
21963
+ var Q = (a2) => a2.peers;
21964
+ var bi = (a2) => a2.messages.byID;
21965
+ var la = (a2) => a2.messages.allIDs;
21966
+ var N = (a2) => a2.tracks;
21967
+ var Qr = (a2) => a2.appData;
21968
+ var $o = (a2) => a2.speakers;
21969
+ var Be = createSelector([V], (a2) => a2 && a2.isConnected);
21970
+ var km = createSelector([Be, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21971
+ var Ko = (a2) => a2.hideLocalPeer;
21972
+ var ye = createSelector([V, Q, Ko], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21973
+ var qo = createSelector(N, (a2) => Object.values(a2));
21974
+ var re = createSelector(V, Q, (a2, e) => e[a2.localPeer]);
21975
+ var Ae = createSelector(V, (a2) => a2.localPeer);
21976
+ var Em = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
21977
+ var Pm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
21978
+ var de = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
21979
+ var X = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
21980
+ var jo = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21981
+ var pa = createSelector([de, X, jo], (a2, e, t) => {
21995
21982
  let i = t ? [...t] : [];
21996
21983
  return a2 && i.unshift(a2), e && i.unshift(e), i;
21997
21984
  });
21998
- var gm = createSelector(ve, (a2) => a2.filter((e) => !e.isLocal));
21999
- var Tm = createSelector(z, Bo, (a2, e) => {
21985
+ var bm = createSelector(ye, (a2) => a2.filter((e) => !e.isLocal));
21986
+ var Am = createSelector(Q, $o, (a2, e) => {
22000
21987
  let t = Object.entries(e).sort((i, r) => {
22001
21988
  var n, d;
22002
21989
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -22009,112 +21996,112 @@ var Tm = createSelector(z, Bo, (a2, e) => {
22009
21996
  }
22010
21997
  return null;
22011
21998
  });
22012
- var jr = createSelector(re, O, (a2, e) => {
22013
- let { video: t, audio: i } = Be(e, a2);
21999
+ var Yr = createSelector(re, N, (a2, e) => {
22000
+ let { video: t, audio: i } = Fe(e, a2);
22014
22001
  return !!(t || i);
22015
22002
  });
22016
- var Wo = createSelector(z, O, (a2, e) => {
22003
+ var Jo = createSelector(Q, N, (a2, e) => {
22017
22004
  let t;
22018
22005
  for (let i in a2) {
22019
- let r = a2[i], { video: s, audio: o } = Be(e, r);
22006
+ let r = a2[i], { video: s, audio: o } = Fe(e, r);
22020
22007
  if (s)
22021
22008
  return r;
22022
22009
  o && !t && (t = r);
22023
22010
  }
22024
22011
  return t;
22025
22012
  });
22026
- var vm = createSelector(Wo, (a2) => !!a2);
22027
- var Mm = createSelector(z, O, (a2, e) => {
22013
+ var Rm = createSelector(Jo, (a2) => !!a2);
22014
+ var Hm = createSelector(Q, N, (a2, e) => {
22028
22015
  for (let t in a2) {
22029
- let i = a2[t], { audio: r, video: s } = Be(e, i);
22016
+ let i = a2[t], { audio: r, video: s } = Fe(e, i);
22030
22017
  if (!s && r)
22031
22018
  return i;
22032
22019
  }
22033
22020
  });
22034
- var ym = createSelector(z, O, (a2, e) => {
22021
+ var Cm = createSelector(Q, N, (a2, e) => {
22035
22022
  let t = [], i = [];
22036
22023
  for (let r in a2) {
22037
- let s = a2[r], { video: o, audio: n } = Be(e, s);
22024
+ let s = a2[r], { video: o, audio: n } = Fe(e, s);
22038
22025
  o ? t.push(s) : n && i.push(s);
22039
22026
  }
22040
22027
  return t.concat(i);
22041
22028
  });
22042
- var km = createSelector(z, O, (a2, e) => {
22029
+ var Lm = createSelector(Q, N, (a2, e) => {
22043
22030
  for (let t in e) {
22044
22031
  let i = e[t];
22045
- if (St(i) && mt(i) && i.peerId)
22032
+ if (ft(i) && Tt(i) && i.peerId)
22046
22033
  return a2[i.peerId];
22047
22034
  }
22048
22035
  });
22049
- var Em = createSelector(z, O, (a2, e) => {
22036
+ var Dm = createSelector(Q, N, (a2, e) => {
22050
22037
  for (let t in e) {
22051
22038
  let i = e[t];
22052
- if (ai(i) && i.peerId)
22039
+ if (di(i) && i.peerId)
22053
22040
  return a2[i.peerId];
22054
22041
  }
22055
22042
  });
22056
- var Pm = createSelector(Fo, (a2) => a2.filter(ms));
22057
- var bm = createSelector(aa, (a2) => a2.length);
22058
- var Am = createSelector(yi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22059
- var Ht = createSelector(aa, yi, (a2, e) => {
22043
+ var wm = createSelector(qo, (a2) => a2.filter(vs));
22044
+ var _m = createSelector(la, (a2) => a2.length);
22045
+ var Nm = createSelector(bi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22046
+ var wt = createSelector(la, bi, (a2, e) => {
22060
22047
  let t = [];
22061
22048
  return a2.forEach((i) => {
22062
22049
  t.push(e[i]);
22063
22050
  }), t;
22064
22051
  });
22065
- var $o = createSelector(Ht, (a2) => a2.filter((e) => {
22052
+ var Qo = createSelector(wt, (a2) => a2.filter((e) => {
22066
22053
  var t;
22067
22054
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
22068
22055
  }));
22069
- var Im = createSelector($o, (a2) => a2.filter((e) => !e.read).length);
22070
- var se = createSelector([F], (a2) => a2 && a2.roomState);
22071
- var da = createSelector(se, (a2) => a2 === "Preview");
22072
- var Rm = createSelector(F, (a2) => a2.roomState !== "Disconnected");
22073
- var Hm = createSelector(F, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22074
- var Me = (a2) => a2.roles;
22075
- var Cm = createSelector([Me], (a2) => Object.keys(a2));
22076
- var ot = createSelector([re, Me], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22077
- var Ko = (a2) => {
22056
+ var Om = createSelector(Qo, (a2) => a2.filter((e) => !e.read).length);
22057
+ var se = createSelector([V], (a2) => a2 && a2.roomState);
22058
+ var ma = createSelector(se, (a2) => a2 === "Preview");
22059
+ var xm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
22060
+ var Um = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22061
+ var ke = (a2) => a2.roles;
22062
+ var Bm = createSelector([ke], (a2) => Object.keys(a2));
22063
+ var ct = createSelector([re, ke], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22064
+ var zo = (a2) => {
22078
22065
  var e;
22079
22066
  return (e = a2.preview) == null ? void 0 : e.asRole;
22080
22067
  };
22081
- var la = createSelector([Ko, Me], (a2, e) => a2 ? e[a2] : null);
22082
- var Lm = createSelector([ot], (a2) => {
22068
+ var Sa = createSelector([zo, ke], (a2, e) => a2 ? e[a2] : null);
22069
+ var Vm = createSelector([ct], (a2) => {
22083
22070
  var e;
22084
22071
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
22085
22072
  });
22086
- var ua = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
22087
- var Dm = createSelector(F, (a2) => a2.recording);
22088
- var wm = createSelector(F, (a2) => a2.rtmp);
22089
- var _m = createSelector(F, (a2) => a2.hls);
22090
- var Nm = createSelector(F, (a2) => a2.transcriptions);
22091
- var Om = createSelector(F, (a2) => a2.sessionId);
22092
- var xm = createSelector(F, (a2) => a2.startedAt);
22093
- var Um = createSelector(F, (a2) => !!a2.isLargeRoom);
22094
- var Bm = createSelector(F, (a2) => !!a2.isEffectsEnabled);
22095
- var Vm = createSelector(F, (a2) => !!a2.isVBEnabled);
22096
- var Fm = createSelector(F, (a2) => a2.effectsKey);
22097
- var pa = (a2) => a2.polls;
22098
- var Km = createSelector(ve, (a2) => a2.filter((e) => e.isHandRaised));
22099
- var qo = (a2) => a2.whiteboards;
22100
- var qm = createSelector(qo, (a2) => Object.values(a2)[0]);
22101
- var ma = (a2 = "audio") => (e) => e.playlist[a2].list;
22102
- var Jr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22103
- var Sa = (a2 = "audio") => (e) => e.playlist[a2].progress;
22104
- var ga = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22105
- var Ta = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22106
- var fa = (a2 = "audio") => (e) => e.playlist[a2].volume;
22107
- var va = (a2 = "audio") => createSelector(ma(a2), (e) => Object.values(e));
22108
- var Ma = (a2 = "audio") => createSelector(ma(a2), Jr(a2), (e, t) => {
22073
+ var ga = createSelector(ct, (a2) => a2 == null ? void 0 : a2.permissions);
22074
+ var Fm = createSelector(V, (a2) => a2.recording);
22075
+ var Gm = createSelector(V, (a2) => a2.rtmp);
22076
+ var Wm = createSelector(V, (a2) => a2.hls);
22077
+ var $m = createSelector(V, (a2) => a2.transcriptions);
22078
+ var Km = createSelector(V, (a2) => a2.sessionId);
22079
+ var qm = createSelector(V, (a2) => a2.startedAt);
22080
+ var jm = createSelector(V, (a2) => !!a2.isLargeRoom);
22081
+ var Jm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
22082
+ var Qm = createSelector(V, (a2) => !!a2.isVBEnabled);
22083
+ var zm = createSelector(V, (a2) => a2.effectsKey);
22084
+ var Ta = (a2) => a2.polls;
22085
+ var eS = createSelector(ye, (a2) => a2.filter((e) => e.isHandRaised));
22086
+ var Yo = (a2) => a2.whiteboards;
22087
+ var tS = createSelector(Yo, (a2) => Object.values(a2)[0]);
22088
+ var va = (a2 = "audio") => (e) => e.playlist[a2].list;
22089
+ var Xr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22090
+ var Ma = (a2 = "audio") => (e) => e.playlist[a2].progress;
22091
+ var ya = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22092
+ var ka = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22093
+ var Ea = (a2 = "audio") => (e) => e.playlist[a2].volume;
22094
+ var Pa = (a2 = "audio") => createSelector(va(a2), (e) => Object.values(e));
22095
+ var ba = (a2 = "audio") => createSelector(va(a2), Xr(a2), (e, t) => {
22109
22096
  if (t.id)
22110
22097
  return e[t.id];
22111
22098
  });
22112
- var ya = { selection: Jr("audio"), progress: Sa("audio"), currentTime: ga("audio"), playbackRate: Ta("audio"), volume: fa("audio"), list: va("audio"), selectedItem: Ma("audio") };
22113
- var ka = { selection: Jr("video"), progress: Sa("video"), currentTime: ga("video"), playbackRate: Ta("video"), volume: fa("video"), list: va("video"), selectedItem: Ma("video") };
22099
+ var Aa = { selection: Xr("audio"), progress: Ma("audio"), currentTime: ya("audio"), playbackRate: ka("audio"), volume: Ea("audio"), list: Pa("audio"), selectedItem: ba("audio") };
22100
+ var Ia = { selection: Xr("video"), progress: Ma("video"), currentTime: ya("video"), playbackRate: ka("video"), volume: Ea("video"), list: Pa("video"), selectedItem: ba("video") };
22114
22101
  function H(a2) {
22115
22102
  return (e) => (t) => a2(t, e);
22116
22103
  }
22117
- var Ct = "HMS-Store:";
22104
+ var _t = "HMS-Store:";
22118
22105
  var b = class {
22119
22106
  static v(e, ...t) {
22120
22107
  this.log(0, e, ...t);
@@ -22144,23 +22131,23 @@ var b = class {
22144
22131
  if (!(this.level.valueOf() > e.valueOf()))
22145
22132
  switch (e) {
22146
22133
  case 0: {
22147
- console.log(Ct, ...t);
22134
+ console.log(_t, ...t);
22148
22135
  break;
22149
22136
  }
22150
22137
  case 1: {
22151
- console.debug(Ct, ...t);
22138
+ console.debug(_t, ...t);
22152
22139
  break;
22153
22140
  }
22154
22141
  case 2: {
22155
- console.info(Ct, ...t);
22142
+ console.info(_t, ...t);
22156
22143
  break;
22157
22144
  }
22158
22145
  case 3: {
22159
- console.warn(Ct, ...t);
22146
+ console.warn(_t, ...t);
22160
22147
  break;
22161
22148
  }
22162
22149
  case 6: {
22163
- console.error(Ct, ...t);
22150
+ console.error(_t, ...t);
22164
22151
  break;
22165
22152
  }
22166
22153
  case 4: {
@@ -22181,133 +22168,133 @@ var b = class {
22181
22168
  }
22182
22169
  };
22183
22170
  b.level = 0;
22184
- var Qr = (a2, e) => e;
22185
- var Lt = (a2, e) => e;
22186
- var Ea = (a2, e) => e;
22187
- var jo = (a2, e) => e;
22188
- var Jo = (a2, e) => e;
22189
- var Y = createSelector([z, Qr], (a2, e) => e ? a2[e] : null);
22190
- var zr = createSelector([O, Lt], (a2, e) => e ? a2[e] : null);
22191
- var Qo = createSelector([O, Lt], (a2, e) => {
22171
+ var Zr = (a2, e) => e;
22172
+ var Nt = (a2, e) => e;
22173
+ var Ra = (a2, e) => e;
22174
+ var Xo = (a2, e) => e;
22175
+ var Zo = (a2, e) => e;
22176
+ var z = createSelector([Q, Zr], (a2, e) => e ? a2[e] : null);
22177
+ var es = createSelector([N, Nt], (a2, e) => e ? a2[e] : null);
22178
+ var en = createSelector([N, Nt], (a2, e) => {
22192
22179
  if (!e)
22193
22180
  return null;
22194
22181
  let t = a2[e];
22195
22182
  return (t == null ? void 0 : t.type) === "video" ? t : null;
22196
22183
  });
22197
- var zo = createSelector([O, Lt], (a2, e) => {
22184
+ var tn = createSelector([N, Nt], (a2, e) => {
22198
22185
  if (!e)
22199
22186
  return null;
22200
22187
  let t = a2[e];
22201
22188
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
22202
22189
  });
22203
- var Yo = createSelector([O, Lt], (a2, e) => {
22190
+ var rn = createSelector([N, Nt], (a2, e) => {
22204
22191
  if (!e)
22205
22192
  return null;
22206
22193
  let t = a2[e];
22207
22194
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22208
22195
  });
22209
- var Xo = createSelector([O, Lt], (a2, e) => {
22196
+ var sn = createSelector([N, Nt], (a2, e) => {
22210
22197
  if (!e)
22211
22198
  return null;
22212
22199
  let t = a2[e];
22213
22200
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22214
22201
  });
22215
- var Zo = createSelector([pa, Jo], (a2, e) => e ? a2[e] : null);
22216
- var ee = H(Y);
22217
- var rS = H(createSelector([Kr, jo], (a2, e) => {
22202
+ var an = createSelector([Ta, Zo], (a2, e) => e ? a2[e] : null);
22203
+ var Z = H(z);
22204
+ var pS = H(createSelector([Qr, Xo], (a2, e) => {
22218
22205
  if (a2)
22219
22206
  return e ? a2[e] : a2;
22220
22207
  }));
22221
- function sS(a2) {
22208
+ function hS(a2) {
22222
22209
  return (e) => {
22223
22210
  if (e.sessionStore)
22224
22211
  return a2 ? e.sessionStore[a2] : e.sessionStore;
22225
22212
  };
22226
22213
  }
22227
- var oS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.name));
22228
- var nS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.type));
22229
- var ki = H(zr);
22230
- var Pa = H(Qo);
22231
- var cS = H(zo);
22232
- var dS = H(Yo);
22233
- var lS = H(Xo);
22234
- var en = H((a2, e) => {
22235
- let t = Y(a2, e);
22214
+ var SS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.name));
22215
+ var gS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.type));
22216
+ var Ai = H(es);
22217
+ var Ha = H(en);
22218
+ var TS = H(tn);
22219
+ var fS = H(rn);
22220
+ var vS = H(sn);
22221
+ var on = H((a2, e) => {
22222
+ let t = z(a2, e);
22236
22223
  if (t && t.videoTrack && t.videoTrack !== "")
22237
22224
  return a2.tracks[t.videoTrack];
22238
22225
  });
22239
- var tn = H((a2, e) => {
22240
- let t = Y(a2, e);
22226
+ var nn = H((a2, e) => {
22227
+ let t = z(a2, e);
22241
22228
  if (t && t.audioTrack && t.audioTrack !== "")
22242
22229
  return a2.tracks[t.audioTrack];
22243
22230
  });
22244
- var pS = H((a2, e) => {
22245
- let t = Y(a2, e);
22231
+ var yS = H((a2, e) => {
22232
+ let t = z(a2, e);
22246
22233
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22247
22234
  });
22248
- var ba = (a2, e) => e ? a2.speakers[e] : null;
22249
- var hS = H(createSelector(ba, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22250
- var rn = (a2, e) => {
22251
- let t = tn(e)(a2);
22252
- return ba(a2, t == null ? void 0 : t.id);
22253
- };
22254
- var mS = H(createSelector(rn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22255
- var SS = H((a2, e) => {
22235
+ var Ca = (a2, e) => e ? a2.speakers[e] : null;
22236
+ var kS = H(createSelector(Ca, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22237
+ var cn = (a2, e) => {
22238
+ let t = nn(e)(a2);
22239
+ return Ca(a2, t == null ? void 0 : t.id);
22240
+ };
22241
+ var ES = H(createSelector(cn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22242
+ var PS = H((a2, e) => {
22256
22243
  if (e)
22257
22244
  return a2.connectionQualities[e];
22258
22245
  });
22259
- var gS = H((a2, e) => {
22260
- let t = Y(a2, e);
22246
+ var bS = H((a2, e) => {
22247
+ let t = z(a2, e);
22261
22248
  if (t) {
22262
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
22249
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => gt(a2.tracks[r]));
22263
22250
  return i ? a2.tracks[i] : void 0;
22264
22251
  }
22265
22252
  });
22266
- var TS = H(createSelector(O, Y, (a2, e) => {
22253
+ var AS = H(createSelector(N, z, (a2, e) => {
22267
22254
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22268
22255
  let r = a2[i];
22269
- return St(r) && mt(r);
22256
+ return ft(r) && Tt(r);
22270
22257
  });
22271
22258
  return t ? a2[t] : void 0;
22272
22259
  }));
22273
- var fS = H(createSelector(O, Y, (a2, e) => {
22260
+ var IS = H(createSelector(N, z, (a2, e) => {
22274
22261
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22275
22262
  let r = a2[i];
22276
- return St(r) && ht(r);
22263
+ return ft(r) && gt(r);
22277
22264
  });
22278
22265
  return t ? a2[t] : void 0;
22279
22266
  }));
22280
- var vS = H(createSelector(O, Y, (a2, e) => {
22267
+ var RS = H(createSelector(N, z, (a2, e) => {
22281
22268
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22282
22269
  let r = a2[i];
22283
- return ai(r) && ht(r);
22270
+ return di(r) && gt(r);
22284
22271
  });
22285
22272
  return t ? a2[t] : void 0;
22286
22273
  }));
22287
- var Aa = H(createSelector(O, Y, (a2, e) => Be(a2, e)));
22288
- var Ia = (a2) => createSelector(Aa(a2), (e) => e.audio);
22289
- var yS = H((a2, e) => {
22290
- let t = Y(a2, e);
22291
- return Je(a2, t == null ? void 0 : t.audioTrack);
22274
+ var La = H(createSelector(N, z, (a2, e) => Fe(a2, e)));
22275
+ var Da = (a2) => createSelector(La(a2), (e) => e.audio);
22276
+ var CS = H((a2, e) => {
22277
+ let t = z(a2, e);
22278
+ return ze(a2, t == null ? void 0 : t.audioTrack);
22292
22279
  });
22293
- var kS = H((a2, e) => {
22294
- let t = Y(a2, e);
22295
- return Je(a2, t == null ? void 0 : t.videoTrack);
22280
+ var LS = H((a2, e) => {
22281
+ let t = z(a2, e);
22282
+ return ze(a2, t == null ? void 0 : t.videoTrack);
22296
22283
  });
22297
- var Ra = H((a2, e) => {
22284
+ var wa = H((a2, e) => {
22298
22285
  if (e && a2.tracks[e])
22299
22286
  return a2.tracks[e].volume === 0;
22300
22287
  });
22301
- var ES = H((a2, e) => {
22302
- let t = Y(a2, e);
22303
- return Ra(t == null ? void 0 : t.audioTrack)(a2);
22288
+ var DS = H((a2, e) => {
22289
+ let t = z(a2, e);
22290
+ return wa(t == null ? void 0 : t.audioTrack)(a2);
22304
22291
  });
22305
- var PS = H((a2, e) => {
22306
- let t = Ia(e)(a2);
22307
- return Ra(t == null ? void 0 : t.id)(a2);
22292
+ var wS = H((a2, e) => {
22293
+ let t = Da(e)(a2);
22294
+ return wa(t == null ? void 0 : t.id)(a2);
22308
22295
  });
22309
- var Ha = H((a2, e) => {
22310
- let t = zr(a2, e);
22296
+ var _a7 = H((a2, e) => {
22297
+ let t = es(a2, e);
22311
22298
  if (t) {
22312
22299
  if (t.type !== "audio") {
22313
22300
  b.w("Please pass audio track here");
@@ -22316,16 +22303,16 @@ var Ha = H((a2, e) => {
22316
22303
  return t.volume;
22317
22304
  }
22318
22305
  });
22319
- var bS = H((a2, e) => {
22320
- let t = Y(a2, e);
22321
- return Ha(t == null ? void 0 : t.audioTrack)(a2);
22306
+ var _S = H((a2, e) => {
22307
+ let t = z(a2, e);
22308
+ return _a7(t == null ? void 0 : t.audioTrack)(a2);
22322
22309
  });
22323
- var AS = H((a2, e) => {
22324
- let t = Ia(e)(a2);
22325
- return Ha(t == null ? void 0 : t.id)(a2);
22310
+ var NS = H((a2, e) => {
22311
+ let t = Da(e)(a2);
22312
+ return _a7(t == null ? void 0 : t.id)(a2);
22326
22313
  });
22327
- var IS = H((a2, e) => {
22328
- let t = zr(a2, e);
22314
+ var OS = H((a2, e) => {
22315
+ let t = es(a2, e);
22329
22316
  if (t) {
22330
22317
  if (t.type !== "video") {
22331
22318
  b.w("Please pass video track here");
@@ -22334,53 +22321,53 @@ var IS = H((a2, e) => {
22334
22321
  return t.layer;
22335
22322
  }
22336
22323
  });
22337
- var Ca = createSelector([Ht, Pe, Qr], (a2, e, t) => {
22324
+ var Na = createSelector([wt, Ae, Zr], (a2, e, t) => {
22338
22325
  if (t)
22339
22326
  return a2.filter((i) => {
22340
22327
  var r;
22341
22328
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22342
22329
  });
22343
22330
  });
22344
- var La = createSelector([Ht, Ea], (a2, e) => {
22331
+ var Oa = createSelector([wt, Ra], (a2, e) => {
22345
22332
  if (e)
22346
22333
  return a2.filter((t) => {
22347
22334
  var i, r;
22348
22335
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22349
22336
  });
22350
22337
  });
22351
- var sn = createSelector(Ht, (a2) => a2.filter((e) => {
22338
+ var dn = createSelector(wt, (a2) => a2.filter((e) => {
22352
22339
  var t;
22353
22340
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22354
22341
  }));
22355
- var an = createSelector([La, Ea], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22356
- var on = createSelector([Ca, Qr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22357
- var RS = createSelector(sn, (a2) => a2.filter((e) => !e.read).length);
22358
- var HS = H(Ca);
22359
- var CS = H(La);
22360
- var LS = H(an);
22361
- var DS = H(on);
22362
- var Da = H(Zo);
22363
- var $S = createSelector([z, O], (a2, e) => Object.values(a2).map((i) => {
22342
+ var ln = createSelector([Oa, Ra], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22343
+ var un = createSelector([Na, Zr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22344
+ var xS = createSelector(dn, (a2) => a2.filter((e) => !e.read).length);
22345
+ var US = H(Na);
22346
+ var BS = H(Oa);
22347
+ var VS = H(ln);
22348
+ var FS = H(un);
22349
+ var xa = H(an);
22350
+ var ZS = createSelector([Q, N], (a2, e) => Object.values(a2).map((i) => {
22364
22351
  var r;
22365
22352
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22366
22353
  }));
22367
- var nn = (a2) => a2.roleChangeRequests[0] || null;
22368
- var KS = createSelector([nn, z, Me], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22369
- var qS = createSelector([ot], (a2) => gt(a2));
22370
- var jS = createSelector([la], (a2) => gt(a2));
22371
- var dn = createSelector([Z, O], (a2, e) => {
22354
+ var pn = (a2) => a2.roleChangeRequests[0] || null;
22355
+ var eg = createSelector([pn, Q, ke], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22356
+ var tg = createSelector([ct], (a2) => vt(a2));
22357
+ var ig = createSelector([Sa], (a2) => vt(a2));
22358
+ var mn = createSelector([X, N], (a2, e) => {
22372
22359
  let t = null;
22373
22360
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22374
22361
  });
22375
- var ln = createSelector([ce, O], (a2, e) => {
22362
+ var Sn = createSelector([de, N], (a2, e) => {
22376
22363
  let t = null;
22377
22364
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22378
22365
  });
22379
- var hn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(hn || {});
22380
- var ts = class {
22366
+ var fn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(fn || {});
22367
+ var as = class {
22381
22368
  constructor() {
22382
22369
  this.TAG = "[HTTPAnalyticsTransport]";
22383
- this.failedEvents = new Se("client-events");
22370
+ this.failedEvents = new Te("client-events");
22384
22371
  this.isConnected = true;
22385
22372
  this.env = null;
22386
22373
  this.websocketURL = "";
@@ -22396,7 +22383,7 @@ var ts = class {
22396
22383
  this.addEventToStorage(e);
22397
22384
  return;
22398
22385
  }
22399
- let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Qs : zs;
22386
+ let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? ea : ta;
22400
22387
  fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
22401
22388
  if (r.status === 401) {
22402
22389
  this.removeFromStorage(e);
@@ -22422,8 +22409,8 @@ var ts = class {
22422
22409
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22423
22410
  }
22424
22411
  };
22425
- var Ae = new ts();
22426
- var Ft = class {
22412
+ var Re = new as();
22413
+ var Kt = class {
22427
22414
  static handleError(e) {
22428
22415
  if (e.status === 404)
22429
22416
  throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
@@ -22449,67 +22436,67 @@ var Ft = class {
22449
22436
  });
22450
22437
  }
22451
22438
  };
22452
- Ft.TAG = "[FeedbackService]";
22453
- var is = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(is || {});
22439
+ Kt.TAG = "[FeedbackService]";
22440
+ var os = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(os || {});
22454
22441
  var J = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(J || {});
22455
- var ar = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(ar || {});
22456
- var ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
22457
- var wn = (a2) => a2.localPeer.id;
22458
- var _n = (a2) => a2.localPeer.audioTrack;
22459
- var Nn = (a2) => a2.localPeer.videoTrack;
22460
- var On = (a2, e) => e;
22461
- var to = (a2, e) => e;
22462
- var xn = (a2) => a2.remoteTrackStats;
22463
- var io = (a2) => a2.peerStats;
22464
- var os = (a2) => a2.localTrackStats;
22465
- var Re = createSelector([io, wn], (a2, e) => a2[e]);
22466
- var Un = createSelector(Re, (a2) => {
22442
+ var dr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(dr || {});
22443
+ var ht = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ht || {});
22444
+ var Un = (a2) => a2.localPeer.id;
22445
+ var Bn = (a2) => a2.localPeer.audioTrack;
22446
+ var Vn = (a2) => a2.localPeer.videoTrack;
22447
+ var Fn = (a2, e) => e;
22448
+ var oo = (a2, e) => e;
22449
+ var Gn = (a2) => a2.remoteTrackStats;
22450
+ var no = (a2) => a2.peerStats;
22451
+ var ls = (a2) => a2.localTrackStats;
22452
+ var Ce = createSelector([no, Un], (a2, e) => a2[e]);
22453
+ var Wn = createSelector(Ce, (a2) => {
22467
22454
  var e;
22468
22455
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22469
22456
  });
22470
- var Bn = createSelector(Re, (a2) => {
22457
+ var $n = createSelector(Ce, (a2) => {
22471
22458
  var e;
22472
22459
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22473
22460
  });
22474
- var Vn = createSelector(Re, (a2) => {
22461
+ var Kn = createSelector(Ce, (a2) => {
22475
22462
  var e;
22476
22463
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22477
22464
  });
22478
- var Fn = createSelector(Re, (a2) => {
22465
+ var qn = createSelector(Ce, (a2) => {
22479
22466
  var e;
22480
22467
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22481
22468
  });
22482
- var Gn = createSelector(Re, (a2) => {
22469
+ var jn = createSelector(Ce, (a2) => {
22483
22470
  var e;
22484
22471
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22485
22472
  });
22486
- var Wn = createSelector(Re, (a2) => {
22473
+ var Jn = createSelector(Ce, (a2) => {
22487
22474
  var e;
22488
22475
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22489
22476
  });
22490
- var $n = createSelector(Re, (a2) => {
22477
+ var Qn = createSelector(Ce, (a2) => {
22491
22478
  var e;
22492
22479
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22493
22480
  });
22494
- var Kn = createSelector(Re, (a2) => {
22481
+ var zn = createSelector(Ce, (a2) => {
22495
22482
  var e;
22496
22483
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22497
22484
  });
22498
- var qn = createSelector([io, On], (a2, e) => e ? a2[e] : void 0);
22499
- var jn = createSelector([xn, to], (a2, e) => e ? a2[e] : void 0);
22500
- var ns = createSelector([os, to], (a2, e) => e ? a2[e] : void 0);
22501
- var Jn = H(qn);
22502
- var Qn = H(jn);
22503
- var zn = createSelector([os, _n], (a2, e) => {
22485
+ var Yn = createSelector([no, Fn], (a2, e) => e ? a2[e] : void 0);
22486
+ var Xn = createSelector([Gn, oo], (a2, e) => e ? a2[e] : void 0);
22487
+ var us = createSelector([ls, oo], (a2, e) => e ? a2[e] : void 0);
22488
+ var Zn = H(Yn);
22489
+ var ec = H(Xn);
22490
+ var tc = createSelector([ls, Bn], (a2, e) => {
22504
22491
  var t;
22505
22492
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22506
22493
  });
22507
- var Yn = H(createSelector(ns, (a2) => a2 == null ? void 0 : a2[0]));
22508
- var Xn = createSelector([os, Nn], (a2, e) => {
22494
+ var ic = H(createSelector(us, (a2) => a2 == null ? void 0 : a2[0]));
22495
+ var rc = createSelector([ls, Vn], (a2, e) => {
22509
22496
  var t;
22510
22497
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22511
22498
  });
22512
- var Zn = H(createSelector(ns, (a2) => a2));
22499
+ var sc = H(createSelector(us, (a2) => a2));
22513
22500
 
22514
22501
  // src/Prebuilt/components/Header/StreamActions.tsx
22515
22502
  var import_react_sdk41 = require("@100mslive/react-sdk");
@@ -22535,7 +22522,7 @@ var getRecordingText = ({
22535
22522
  return title.join(delimiter);
22536
22523
  };
22537
22524
  var LiveStatus = () => {
22538
- var _a7;
22525
+ var _a8;
22539
22526
  const { isHLSRunning, isRTMPRunning } = (0, import_react_sdk41.useRecordingStreaming)();
22540
22527
  const hlsState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectHLSState);
22541
22528
  const isMobile = (0, import_react_use16.useMedia)(config.media.md);
@@ -22544,8 +22531,8 @@ var LiveStatus = () => {
22544
22531
  const [liveTime, setLiveTime] = (0, import_react88.useState)(0);
22545
22532
  const startTimer = (0, import_react88.useCallback)(() => {
22546
22533
  intervalRef.current = setInterval(() => {
22547
- var _a8;
22548
- const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22534
+ var _a9;
22535
+ const timeStamp = (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22549
22536
  if ((hlsState == null ? void 0 : hlsState.running) && timeStamp) {
22550
22537
  setLiveTime(Date.now() - timeStamp.getTime());
22551
22538
  }
@@ -22579,7 +22566,7 @@ var LiveStatus = () => {
22579
22566
  }
22580
22567
  },
22581
22568
  /* @__PURE__ */ import_react88.default.createElement(Box, { css: { w: "$4", h: "$4", r: "$round", bg: "$alert_error_default", mr: "$2" } }),
22582
- /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ import_react88.default.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ import_react88.default.createElement(Text, { variant: "caption" }, ((_a7 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a7.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22569
+ /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ import_react88.default.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ import_react88.default.createElement(Text, { variant: "caption" }, ((_a8 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a8.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22583
22570
  );
22584
22571
  };
22585
22572
  var RecordingStatus = () => {
@@ -22618,7 +22605,7 @@ var RecordingStatus = () => {
22618
22605
  };
22619
22606
  var RecordingPauseStatus = () => {
22620
22607
  const recording = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRecordingState);
22621
- if (recording.hls && recording.hls.state === Os.PAUSED) {
22608
+ if (recording.hls && recording.hls.state === Us.PAUSED) {
22622
22609
  return /* @__PURE__ */ import_react88.default.createElement(
22623
22610
  Tooltip,
22624
22611
  {
@@ -22737,8 +22724,8 @@ var ChangeNameContent = ({
22737
22724
  (0, import_react89.useEffect)(() => {
22738
22725
  if (isMobile) {
22739
22726
  setTimeout(() => {
22740
- var _a7;
22741
- (_a7 = inputRef.current) == null ? void 0 : _a7.focus();
22727
+ var _a8;
22728
+ (_a8 = inputRef.current) == null ? void 0 : _a8.focus();
22742
22729
  }, 200);
22743
22730
  }
22744
22731
  }, [isMobile]);
@@ -22907,7 +22894,7 @@ init_define_process_env();
22907
22894
  var import_react92 = require("react");
22908
22895
  var import_react_sdk44 = require("@100mslive/react-sdk");
22909
22896
  var useUnreadPollQuizPresent = () => {
22910
- const localPeerID = (0, import_react_sdk44.useHMSStore)(Pe);
22897
+ const localPeerID = (0, import_react_sdk44.useHMSStore)(Ae);
22911
22898
  const notification = (0, import_react_sdk44.useHMSNotifications)(import_react_sdk44.HMSNotificationTypes.POLL_STARTED);
22912
22899
  const [unreadPollQuiz, setUnreadPollQuiz] = (0, import_react92.useState)(false);
22913
22900
  (0, import_react92.useEffect)(() => {
@@ -23735,9 +23722,9 @@ var VBToggle = () => {
23735
23722
  const hmsActions = (0, import_react_sdk48.useHMSActions)();
23736
23723
  const { toggleVideo } = (0, import_react_sdk48.useAVToggle)();
23737
23724
  (0, import_react103.useEffect)(() => {
23738
- var _a7;
23725
+ var _a8;
23739
23726
  if (!toggleVideo) {
23740
- (_a7 = VBHandler) == null ? void 0 : _a7.reset();
23727
+ (_a8 = VBHandler) == null ? void 0 : _a8.reset();
23741
23728
  hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin2.HMSVirtualBackgroundTypes.NONE);
23742
23729
  }
23743
23730
  }, [hmsActions, toggleVideo]);
@@ -23854,8 +23841,8 @@ var ConnectionIndicator = ({
23854
23841
  isTile = false,
23855
23842
  hideBg = false
23856
23843
  }) => {
23857
- var _a7;
23858
- const downlinkQuality = (_a7 = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectConnectionQualityByPeerID)(peerId))) == null ? void 0 : _a7.downlinkQuality;
23844
+ var _a8;
23845
+ const downlinkQuality = (_a8 = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectConnectionQualityByPeerID)(peerId))) == null ? void 0 : _a8.downlinkQuality;
23859
23846
  const peerType = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectPeerTypeByID)(peerId));
23860
23847
  const { theme: theme2 } = useTheme();
23861
23848
  const defaultColor = theme2.colors.on_surface_low;
@@ -23920,8 +23907,8 @@ var import_react106 = __toESM(require("react"));
23920
23907
  var import_react_sdk51 = require("@100mslive/react-sdk");
23921
23908
  var import_react_icons45 = require("@100mslive/react-icons");
23922
23909
  var RemoveParticipant = ({ peerId }) => {
23923
- var _a7;
23924
- const canRemoveOthers = (_a7 = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions)) == null ? void 0 : _a7.removeOthers;
23910
+ var _a8;
23911
+ const canRemoveOthers = (_a8 = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions)) == null ? void 0 : _a8.removeOthers;
23925
23912
  const localPeerId = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectLocalPeerID);
23926
23913
  const actions = (0, import_react_sdk51.useHMSActions)();
23927
23914
  if (peerId === localPeerId || !canRemoveOthers) {
@@ -24018,11 +24005,11 @@ var RoleOptions = ({ roleName, peerList }) => {
24018
24005
  let isVideoOnForSomePeers = false;
24019
24006
  let isAudioOnForSomePeers = false;
24020
24007
  peerList.forEach((peer) => {
24021
- var _a7, _b7;
24008
+ var _a8, _b7;
24022
24009
  if (peer.isLocal) {
24023
24010
  return;
24024
24011
  }
24025
- const isAudioOn = !!peer.audioTrack && ((_a7 = tracks[peer.audioTrack]) == null ? void 0 : _a7.enabled);
24012
+ const isAudioOn = !!peer.audioTrack && ((_a8 = tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
24026
24013
  const isVideoOn = !!peer.videoTrack && ((_b7 = tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
24027
24014
  isAudioOnForSomePeers = isAudioOnForSomePeers || isAudioOn;
24028
24015
  isVideoOnForSomePeers = isVideoOnForSomePeers || isVideoOn;
@@ -24088,7 +24075,7 @@ init_define_process_env();
24088
24075
  var import_ts_pattern8 = require("ts-pattern");
24089
24076
  var import_react_sdk53 = require("@100mslive/react-sdk");
24090
24077
  var useGroupOnStageActions = ({ peers }) => {
24091
- var _a7;
24078
+ var _a8;
24092
24079
  const hmsActions = (0, import_react_sdk53.useHMSActions)();
24093
24080
  const { elements } = useRoomLayoutConferencingScreen();
24094
24081
  const {
@@ -24098,7 +24085,7 @@ var useGroupOnStageActions = ({ peers }) => {
24098
24085
  off_stage_roles = [],
24099
24086
  skip_preview_for_role_change = false
24100
24087
  } = elements.on_stage_exp || {};
24101
- const canChangeRole = (_a7 = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions)) == null ? void 0 : _a7.changeRole;
24088
+ const canChangeRole = (_a8 = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions)) == null ? void 0 : _a8.changeRole;
24102
24089
  const offStageRolePeers = peers.filter(
24103
24090
  (peer) => (0, import_ts_pattern8.match)({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
24104
24091
  {
@@ -24137,8 +24124,8 @@ var useGroupOnStageActions = ({ peers }) => {
24137
24124
  var ROW_HEIGHT = 50;
24138
24125
  var ITER_TIMER = 5e3;
24139
24126
  function itemKey(index, data3) {
24140
- var _a7;
24141
- return (_a7 = data3.peerList[index]) == null ? void 0 : _a7.id;
24127
+ var _a8;
24128
+ return (_a8 = data3.peerList[index]) == null ? void 0 : _a8.id;
24142
24129
  }
24143
24130
  var VirtualizedParticipantItem = import_react108.default.memo(
24144
24131
  ({ index, data: data3, style }) => {
@@ -24283,7 +24270,7 @@ init_define_process_env();
24283
24270
  var import_react110 = require("react");
24284
24271
  var import_react_sdk56 = require("@100mslive/react-sdk");
24285
24272
  var usePeerOnStageActions = ({ peerId, role }) => {
24286
- var _a7, _b7;
24273
+ var _a8, _b7;
24287
24274
  const hmsActions = (0, import_react_sdk56.useHMSActions)();
24288
24275
  const { elements } = useRoomLayoutConferencingScreen();
24289
24276
  const {
@@ -24294,7 +24281,7 @@ var usePeerOnStageActions = ({ peerId, role }) => {
24294
24281
  skip_preview_for_role_change = false
24295
24282
  } = elements.on_stage_exp || {};
24296
24283
  const isInStage = role === on_stage_role;
24297
- const canChangeRole = (_a7 = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectPermissions)) == null ? void 0 : _a7.changeRole;
24284
+ const canChangeRole = (_a8 = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectPermissions)) == null ? void 0 : _a8.changeRole;
24298
24285
  const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
24299
24286
  const prevRole = (_b7 = (0, import_react_sdk56.useHMSStore)((0, import_react_sdk56.selectPeerMetadata)(peerId))) == null ? void 0 : _b7.prevRole;
24300
24287
  const [open, setOpen] = (0, import_react110.useState)(false);
@@ -24525,9 +24512,9 @@ var ParticipantActions = import_react111.default.memo(
24525
24512
  role,
24526
24513
  isHandRaisedAccordion
24527
24514
  }) => {
24528
- var _a7, _b7;
24515
+ var _a8, _b7;
24529
24516
  const isHandRaised = (0, import_react_sdk57.useHMSStore)((0, import_react_sdk57.selectHasPeerHandRaised)(peerId));
24530
- const canChangeRole = (_a7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a7.changeRole;
24517
+ const canChangeRole = (_a8 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a8.changeRole;
24531
24518
  const canRemoveOthers = (_b7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _b7.removeOthers;
24532
24519
  const { elements } = useRoomLayoutConferencingScreen();
24533
24520
  const { on_stage_exp } = elements || {};
@@ -24582,7 +24569,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
24582
24569
  return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ import_react111.default.createElement(import_react_icons48.CrossIcon, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ import_react111.default.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ import_react111.default.createElement(import_react_icons48.AddIcon, { height: 18, width: 18 })));
24583
24570
  };
24584
24571
  var ParticipantMoreActions = ({ peerId, role }) => {
24585
- var _a7;
24572
+ var _a8;
24586
24573
  const {
24587
24574
  open,
24588
24575
  setOpen,
@@ -24592,7 +24579,7 @@ var ParticipantMoreActions = ({ peerId, role }) => {
24592
24579
  isInStage,
24593
24580
  shouldShowStageRoleChange
24594
24581
  } = usePeerOnStageActions({ peerId, role });
24595
- const canChangeRole = !!((_a7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a7.changeRole);
24582
+ const canChangeRole = !!((_a8 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a8.changeRole);
24596
24583
  const [openRoleChangeModal, setOpenRoleChangeModal] = (0, import_react111.useState)(false);
24597
24584
  const roles = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectAvailableRoleNames);
24598
24585
  return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ import_react111.default.createElement(
@@ -24745,9 +24732,9 @@ var Footer2 = ({
24745
24732
  screenType,
24746
24733
  elements
24747
24734
  }) => {
24748
- var _a7, _b7;
24735
+ var _a8, _b7;
24749
24736
  const isMobile = (0, import_react_use22.useMedia)(config.media.md);
24750
- const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
24737
+ const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
24751
24738
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
24752
24739
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
24753
24740
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
@@ -25110,11 +25097,11 @@ var PrevMenu = () => {
25110
25097
  const polls = (0, import_react_sdk61.useHMSStore)(import_react_sdk61.selectPolls);
25111
25098
  const sortedPolls = (0, import_react118.useMemo)(
25112
25099
  () => {
25113
- var _a7;
25114
- return (_a7 = polls == null ? void 0 : polls.sort((a2, b2) => {
25115
- var _a8, _b7, _c, _d;
25116
- return (((_b7 = (_a8 = b2 == null ? void 0 : b2.createdAt) == null ? void 0 : _a8.getTime) == null ? void 0 : _b7.call(_a8)) || 0) - (((_d = (_c = a2 == null ? void 0 : a2.createdAt) == null ? void 0 : _c.getTime) == null ? void 0 : _d.call(_c)) || 0);
25117
- })) == null ? void 0 : _a7.sort((a2, b2) => ((b2 == null ? void 0 : b2.state) === "started" ? 1 : 0) - ((a2 == null ? void 0 : a2.state) === "started" ? 1 : 0));
25100
+ var _a8;
25101
+ return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
25102
+ var _a9, _b7, _c, _d;
25103
+ return (((_b7 = (_a9 = b2 == null ? void 0 : b2.createdAt) == null ? void 0 : _a9.getTime) == null ? void 0 : _b7.call(_a9)) || 0) - (((_d = (_c = a2 == null ? void 0 : a2.createdAt) == null ? void 0 : _c.getTime) == null ? void 0 : _d.call(_c)) || 0);
25104
+ })) == null ? void 0 : _a8.sort((a2, b2) => ((b2 == null ? void 0 : b2.state) === "started" ? 1 : 0) - ((a2 == null ? void 0 : a2.state) === "started" ? 1 : 0));
25118
25105
  },
25119
25106
  [polls]
25120
25107
  );
@@ -25303,13 +25290,13 @@ var MultipleChoiceOptions = ({
25303
25290
  setSelectedOptions(newSelected);
25304
25291
  };
25305
25292
  return /* @__PURE__ */ import_react124.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
25306
- var _a7;
25293
+ var _a8;
25307
25294
  return /* @__PURE__ */ import_react124.default.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ import_react124.default.createElement(
25308
25295
  Checkbox.Root,
25309
25296
  {
25310
25297
  id: `${questionIndex}-${option.index}`,
25311
25298
  disabled: !canRespond,
25312
- checked: (_a7 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a7.includes(option.index),
25299
+ checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
25313
25300
  onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
25314
25301
  css: {
25315
25302
  cursor: canRespond ? "pointer" : "not-allowed",
@@ -25454,7 +25441,7 @@ var QuestionForm = ({
25454
25441
  removeQuestion,
25455
25442
  isQuiz
25456
25443
  }) => {
25457
- var _a7;
25444
+ var _a8;
25458
25445
  const ref = (0, import_react126.useRef)(null);
25459
25446
  const selectionBg = useDropdownSelection();
25460
25447
  const [openDelete, setOpenDelete] = (0, import_react126.useState)(false);
@@ -25526,7 +25513,7 @@ var QuestionForm = ({
25526
25513
  },
25527
25514
  open
25528
25515
  }
25529
- ), /* @__PURE__ */ import_react126.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react126.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, Object.keys(QUESTION_TYPE_TITLE).map((value) => {
25516
+ ), /* @__PURE__ */ import_react126.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react126.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, Object.keys(QUESTION_TYPE_TITLE).map((value) => {
25530
25517
  return /* @__PURE__ */ import_react126.default.createElement(
25531
25518
  Dropdown.Item,
25532
25519
  {
@@ -25668,11 +25655,11 @@ var SavedQuestion = ({
25668
25655
  length,
25669
25656
  convertToDraft
25670
25657
  }) => {
25671
- var _a7;
25658
+ var _a8;
25672
25659
  const answerArray = (0, import_react127.useMemo)(() => {
25673
- var _a8;
25660
+ var _a9;
25674
25661
  const updatedAnswerArray = [];
25675
- const { option, options } = (_a8 = question == null ? void 0 : question.answer) != null ? _a8 : {};
25662
+ const { option, options } = (_a9 = question == null ? void 0 : question.answer) != null ? _a9 : {};
25676
25663
  if (option) {
25677
25664
  updatedAnswerArray.push(option);
25678
25665
  }
@@ -25681,7 +25668,7 @@ var SavedQuestion = ({
25681
25668
  }
25682
25669
  return updatedAnswerArray;
25683
25670
  }, [question == null ? void 0 : question.answer]);
25684
- return /* @__PURE__ */ import_react127.default.createElement(import_react127.default.Fragment, null, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a7 = question.options) == null ? void 0 : _a7.map((option, index2) => /* @__PURE__ */ import_react127.default.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ import_react127.default.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(import_react_icons58.CheckCircleIcon, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ import_react127.default.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ import_react127.default.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25671
+ return /* @__PURE__ */ import_react127.default.createElement(import_react127.default.Fragment, null, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a8 = question.options) == null ? void 0 : _a8.map((option, index2) => /* @__PURE__ */ import_react127.default.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ import_react127.default.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(import_react_icons58.CheckCircleIcon, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ import_react127.default.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ import_react127.default.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25685
25672
  };
25686
25673
 
25687
25674
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
@@ -25692,14 +25679,14 @@ var getEditableFormat = (questions) => {
25692
25679
  return editableQuestions;
25693
25680
  };
25694
25681
  function CreateQuestions() {
25695
- var _a7, _b7, _c, _d;
25682
+ var _a8, _b7, _c, _d;
25696
25683
  const actions = (0, import_react_sdk62.useHMSActions)();
25697
25684
  const { isHLSRunning } = (0, import_react_sdk62.useRecordingStreaming)();
25698
25685
  const togglePollView = usePollViewToggle();
25699
25686
  const { pollInView: id, setPollView } = usePollViewState();
25700
25687
  const interaction = (0, import_react_sdk62.useHMSStore)((0, import_react_sdk62.selectPollByID)(id));
25701
25688
  const [questions, setQuestions] = (0, import_react128.useState)(
25702
- ((_a7 = interaction.questions) == null ? void 0 : _a7.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
25689
+ ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
25703
25690
  );
25704
25691
  const isValidPoll = (0, import_react128.useMemo)(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
25705
25692
  const launchPoll = () => __async(this, null, function* () {
@@ -25895,13 +25882,13 @@ var useQuizSummary = (quizID) => {
25895
25882
  const [calculations, setCalculations] = (0, import_react131.useState)({ maxPossibleScore: 0, totalResponses: 0 });
25896
25883
  (0, import_react131.useEffect)(() => {
25897
25884
  const fetchLeaderboardData = () => __async(void 0, null, function* () {
25898
- var _a7;
25885
+ var _a8;
25899
25886
  if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
25900
25887
  const leaderboardData = yield hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 50);
25901
- const { maxPossibleScore, totalResponses } = ((_a7 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a7.reduce((accumulator, question) => {
25902
- var _a8;
25888
+ const { maxPossibleScore, totalResponses } = ((_a8 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a8.reduce((accumulator, question) => {
25889
+ var _a9;
25903
25890
  accumulator.maxPossibleScore += question.weight || 0;
25904
- accumulator.totalResponses += ((_a8 = question == null ? void 0 : question.responses) == null ? void 0 : _a8.length) || 0;
25891
+ accumulator.totalResponses += ((_a9 = question == null ? void 0 : question.responses) == null ? void 0 : _a9.length) || 0;
25905
25892
  return accumulator;
25906
25893
  }, calculations)) || calculations;
25907
25894
  setQuizLeaderboard(leaderboardData);
@@ -25927,8 +25914,8 @@ var PeerParticipationSummary = ({ quiz }) => {
25927
25914
  }
25928
25915
  const isLocalPeerQuizCreator = localPeerId === quiz.startedBy;
25929
25916
  const peerEntry = quizLeaderboard == null ? void 0 : quizLeaderboard.entries.find((entry) => {
25930
- var _a7;
25931
- return ((_a7 = entry.peer) == null ? void 0 : _a7.peerid) === localPeerId;
25917
+ var _a8;
25918
+ return ((_a8 = entry.peer) == null ? void 0 : _a8.peerid) === localPeerId;
25932
25919
  });
25933
25920
  const boxes = isLocalPeerQuizCreator ? [
25934
25921
  {
@@ -25960,7 +25947,7 @@ var PeerParticipationSummary = ({ quiz }) => {
25960
25947
 
25961
25948
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
25962
25949
  var LeaderboardSummary = ({ pollID }) => {
25963
- var _a7, _b7;
25950
+ var _a8, _b7;
25964
25951
  const quiz = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectPollByID)(pollID));
25965
25952
  const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
25966
25953
  const [viewAllEntries, setViewAllEntries] = (0, import_react133.useState)(false);
@@ -25968,7 +25955,7 @@ var LeaderboardSummary = ({ pollID }) => {
25968
25955
  const toggleSidepane = useSidepaneToggle();
25969
25956
  if (!quiz || !quizLeaderboard)
25970
25957
  return /* @__PURE__ */ import_react133.default.createElement(Flex, { align: "center", justify: "center", css: { size: "100%" } }, /* @__PURE__ */ import_react133.default.createElement(Loading, null));
25971
- const questionCount = ((_a7 = quiz.questions) == null ? void 0 : _a7.length) || 0;
25958
+ const questionCount = ((_a8 = quiz.questions) == null ? void 0 : _a8.length) || 0;
25972
25959
  return /* @__PURE__ */ import_react133.default.createElement(Container3, { rounded: true }, /* @__PURE__ */ import_react133.default.createElement(Flex, { direction: "column", css: { size: "100%", p: "$8" } }, /* @__PURE__ */ import_react133.default.createElement(Flex, { justify: "between", align: "center", css: { pb: "$6", borderBottom: "1px solid $border_bright", mb: "$8" } }, /* @__PURE__ */ import_react133.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react133.default.createElement(
25973
25960
  Flex,
25974
25961
  {
@@ -26218,14 +26205,14 @@ var StandardView = ({
26218
26205
  localPeerResponses,
26219
26206
  updateSavedResponses
26220
26207
  }) => {
26221
- var _a7;
26208
+ var _a8;
26222
26209
  if (!(poll == null ? void 0 : poll.questions)) {
26223
26210
  return null;
26224
26211
  }
26225
26212
  const isQuiz = poll.type === "quiz";
26226
26213
  const isStopped = poll.state === "stopped";
26227
- return /* @__PURE__ */ import_react135.default.createElement(import_react135.default.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ import_react135.default.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a7 = poll.questions) == null ? void 0 : _a7.map((question, index) => {
26228
- var _a8;
26214
+ return /* @__PURE__ */ import_react135.default.createElement(import_react135.default.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ import_react135.default.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a8 = poll.questions) == null ? void 0 : _a8.map((question, index) => {
26215
+ var _a9;
26229
26216
  return /* @__PURE__ */ import_react135.default.createElement(
26230
26217
  QuestionCard2,
26231
26218
  {
@@ -26238,7 +26225,7 @@ var StandardView = ({
26238
26225
  text: question.text,
26239
26226
  type: question.type,
26240
26227
  result: question.result,
26241
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26228
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26242
26229
  options: question.options,
26243
26230
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26244
26231
  answer: question.answer,
@@ -26257,9 +26244,9 @@ var TimedView = ({
26257
26244
  localPeerResponses,
26258
26245
  updateSavedResponses
26259
26246
  }) => {
26260
- var _a7, _b7, _c;
26247
+ var _a8, _b7, _c;
26261
26248
  const [currentIndex, setCurrentIndex] = (0, import_react136.useState)(getIndexToShow(localPeerResponses));
26262
- const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
26249
+ const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
26263
26250
  const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
26264
26251
  (0, import_react136.useEffect)(() => {
26265
26252
  setCurrentIndex(getIndexToShow(localPeerResponses));
@@ -26268,7 +26255,7 @@ var TimedView = ({
26268
26255
  return null;
26269
26256
  }
26270
26257
  return /* @__PURE__ */ import_react136.default.createElement(import_react136.default.Fragment, null, poll.questions.map((question) => {
26271
- var _a8;
26258
+ var _a9;
26272
26259
  return attemptedAll || (activeQuestion == null ? void 0 : activeQuestion.index) === question.index ? /* @__PURE__ */ import_react136.default.createElement(
26273
26260
  QuestionCard2,
26274
26261
  {
@@ -26281,7 +26268,7 @@ var TimedView = ({
26281
26268
  text: question.text,
26282
26269
  type: question.type,
26283
26270
  result: question == null ? void 0 : question.result,
26284
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26271
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26285
26272
  options: question.options,
26286
26273
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26287
26274
  answer: question.answer,
@@ -26325,9 +26312,9 @@ var Voting = ({ id, toggleVoting }) => {
26325
26312
  localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
26326
26313
  if (response) {
26327
26314
  setSavedResponses((prev) => {
26328
- var _a7, _b7, _c;
26315
+ var _a8, _b7, _c;
26329
26316
  const prevCopy = __spreadValues({}, prev);
26330
- prevCopy[(_a7 = response[0]) == null ? void 0 : _a7.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c = response[0]) == null ? void 0 : _c.options };
26317
+ prevCopy[(_a8 = response[0]) == null ? void 0 : _a8.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c = response[0]) == null ? void 0 : _c.options };
26331
26318
  return prevCopy;
26332
26319
  });
26333
26320
  }
@@ -26442,9 +26429,9 @@ var LogoImg = styled("img", {
26442
26429
  }
26443
26430
  });
26444
26431
  var Logo = () => {
26445
- var _a7;
26432
+ var _a8;
26446
26433
  const roomLayout = useRoomLayout();
26447
- const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
26434
+ const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
26448
26435
  const [hideImage, setHideImage] = (0, import_react139.useState)(false);
26449
26436
  (0, import_react139.useEffect)(() => {
26450
26437
  if (hideImage) {
@@ -26561,8 +26548,8 @@ var SelectorItem = ({
26561
26548
  icon = void 0
26562
26549
  }) => {
26563
26550
  const isMobile = (0, import_react_use23.useMedia)(config.media.md);
26564
- const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
26565
- var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
26551
+ const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
26552
+ var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
26566
26553
  return /* @__PURE__ */ import_react143.default.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
26567
26554
  };
26568
26555
  return /* @__PURE__ */ import_react143.default.createElement(
@@ -26689,11 +26676,11 @@ var VirtualizedSelectItemList = ({
26689
26676
  return /* @__PURE__ */ import_react143.default.createElement(Dropdown.Group, { css: { overflowY: "auto", maxHeight: "$64", bg: "$surface_default" } }, listItems.map((item, index) => /* @__PURE__ */ import_react143.default.createElement(Box, { key: index }, item)));
26690
26677
  };
26691
26678
  var ChatSelector = ({ role, peerId }) => {
26692
- var _a7, _b7;
26679
+ var _a8, _b7;
26693
26680
  const { elements } = useRoomLayoutConferencingScreen();
26694
26681
  const peers = (0, import_react_sdk69.useHMSStore)(import_react_sdk69.selectRemotePeers);
26695
26682
  const [search, setSearch] = (0, import_react143.useState)("");
26696
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26683
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26697
26684
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26698
26685
  return /* @__PURE__ */ import_react143.default.createElement(import_react143.default.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ import_react143.default.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ import_react143.default.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ import_react143.default.createElement(
26699
26686
  VirtualizedSelectItemList,
@@ -26709,11 +26696,11 @@ var ChatSelector = ({ role, peerId }) => {
26709
26696
 
26710
26697
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
26711
26698
  var ChatSelectorContainer = () => {
26712
- var _a7, _b7;
26699
+ var _a8, _b7;
26713
26700
  const [open, setOpen] = (0, import_react144.useState)(false);
26714
26701
  const isMobile = (0, import_react_use24.useMedia)(config.media.md);
26715
26702
  const { elements } = useRoomLayoutConferencingScreen();
26716
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26703
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26717
26704
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26718
26705
  const roles = useFilteredRoles();
26719
26706
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -26853,8 +26840,8 @@ var useEmojiPickerStyles = (showing) => {
26853
26840
  (0, import_react146.useEffect)(() => {
26854
26841
  if (showing) {
26855
26842
  setTimeout(() => {
26856
- var _a7, _b7;
26857
- const root = (_b7 = (_a7 = ref.current) == null ? void 0 : _a7.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
26843
+ var _a8, _b7;
26844
+ const root = (_b7 = (_a8 = ref.current) == null ? void 0 : _a8.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
26858
26845
  const style = document.createElement("style");
26859
26846
  style.textContent = `
26860
26847
  #root {
@@ -26924,13 +26911,13 @@ function EmojiPicker({ onSelect }) {
26924
26911
  )));
26925
26912
  }
26926
26913
  var ChatFooter = ({ onSend, children }) => {
26927
- var _a7, _b7, _c, _d, _e;
26914
+ var _a8, _b7, _c, _d, _e;
26928
26915
  const hmsActions = (0, import_react_sdk71.useHMSActions)();
26929
26916
  const inputRef = (0, import_react147.useRef)(null);
26930
26917
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
26931
26918
  const isMobile = (0, import_react_use25.useMedia)(config.media.md);
26932
26919
  const { elements, screenType } = useRoomLayoutConferencingScreen();
26933
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
26920
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
26934
26921
  const localPeer = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectLocalPeer);
26935
26922
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
26936
26923
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
@@ -26943,11 +26930,11 @@ var ChatFooter = ({ onSend, children }) => {
26943
26930
  const [messageLengthExceeded, setMessageLengthExceeded] = (0, import_react147.useState)(false);
26944
26931
  const isLandscapeHLSStream = useLandscapeHLSStream();
26945
26932
  (0, import_react147.useEffect)(() => {
26946
- var _a8, _b8;
26933
+ var _a9, _b8;
26947
26934
  if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
26948
26935
  setRoleSelector(defaultSelection);
26949
26936
  } else {
26950
- if (!(isMobile || isLandscapeHLSStream) && !((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.disable_autofocus)) {
26937
+ if (!(isMobile || isLandscapeHLSStream) && !((_a9 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a9.disable_autofocus)) {
26951
26938
  (_b8 = inputRef.current) == null ? void 0 : _b8.focus();
26952
26939
  }
26953
26940
  }
@@ -26966,8 +26953,8 @@ var ChatFooter = ({ onSend, children }) => {
26966
26953
  }
26967
26954
  }, []);
26968
26955
  const sendMessage = (0, import_react147.useCallback)(() => __async(void 0, null, function* () {
26969
- var _a8;
26970
- const message = (_a8 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a8.value;
26956
+ var _a9;
26957
+ const message = (_a9 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a9.value;
26971
26958
  if (!message || !message.trim().length) {
26972
26959
  return;
26973
26960
  }
@@ -27136,10 +27123,10 @@ init_define_process_env();
27136
27123
  var import_react149 = __toESM(require("react"));
27137
27124
  var import_react_sdk72 = require("@100mslive/react-sdk");
27138
27125
  var ChatPaused = () => {
27139
- var _a7, _b7;
27126
+ var _a8, _b7;
27140
27127
  const hmsActions = (0, import_react_sdk72.useHMSActions)();
27141
27128
  const { elements } = useRoomLayoutConferencingScreen();
27142
- const can_disable_chat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27129
+ const can_disable_chat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27143
27130
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk72.useHMSStore)((0, import_react_sdk72.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
27144
27131
  const localPeer = (0, import_react_sdk72.useHMSStore)(import_react_sdk72.selectLocalPeer);
27145
27132
  const unPauseChat = (0, import_react149.useCallback)(
@@ -27248,13 +27235,13 @@ var StickIndicator = ({ total, index }) => {
27248
27235
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
27249
27236
  var PINNED_MESSAGE_LENGTH = 75;
27250
27237
  var PinnedMessage = () => {
27251
- var _a7, _b7, _c, _d;
27238
+ var _a8, _b7, _c, _d;
27252
27239
  const pinnedMessages = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
27253
27240
  const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react152.useState)(0);
27254
27241
  const { removePinnedMessage } = usePinnedMessages();
27255
27242
  const isMobile = (0, import_react_use26.useMedia)(config.media.md);
27256
27243
  const { elements } = useRoomLayoutConferencingScreen();
27257
- const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
27244
+ const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
27258
27245
  const [hideOverflow, setHideOverflow] = (0, import_react152.useState)(true);
27259
27246
  const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
27260
27247
  const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
@@ -27363,12 +27350,12 @@ var PinnedMessage = () => {
27363
27350
 
27364
27351
  // src/Prebuilt/components/Chat/Chat.tsx
27365
27352
  var Chat = () => {
27366
- var _a7, _b7;
27353
+ var _a8, _b7;
27367
27354
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27368
27355
  const listRef = (0, import_react153.useRef)(null);
27369
27356
  const hmsActions = (0, import_react_sdk74.useHMSActions)();
27370
27357
  const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
27371
- const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(sS("chatState" /* CHAT_STATE */)) || {};
27358
+ const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(hS("chatState" /* CHAT_STATE */)) || {};
27372
27359
  const isMobile = (0, import_react_use27.useMedia)(config.media.md);
27373
27360
  const isMobileHLSStream = useMobileHLSStream();
27374
27361
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27376,13 +27363,13 @@ var Chat = () => {
27376
27363
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
27377
27364
  const scrollToBottom = (0, import_react153.useCallback)(
27378
27365
  (unreadCount = 0) => {
27379
- var _a8;
27366
+ var _a9;
27380
27367
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
27381
27368
  const messagesCount = vanillaStore.getState(import_react_sdk74.selectHMSMessagesCount);
27382
- (_a8 = listRef.current) == null ? void 0 : _a8.scrollToItem(messagesCount, "end");
27369
+ (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27383
27370
  requestAnimationFrame(() => {
27384
- var _a9;
27385
- (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27371
+ var _a10;
27372
+ (_a10 = listRef.current) == null ? void 0 : _a10.scrollToItem(messagesCount, "end");
27386
27373
  });
27387
27374
  hmsActions.setMessageRead(true);
27388
27375
  }
@@ -27400,7 +27387,7 @@ var Chat = () => {
27400
27387
  gap: "$4"
27401
27388
  }
27402
27389
  },
27403
- isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming ? null : /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null),
27390
+ isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming ? null : /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null),
27404
27391
  /* @__PURE__ */ import_react153.default.createElement(ChatBody, { ref: listRef, scrollToBottom }),
27405
27392
  /* @__PURE__ */ import_react153.default.createElement(Flex, { align: "center", css: { w: "100%", gap: "$2" } }, /* @__PURE__ */ import_react153.default.createElement(ChatPaused, null), /* @__PURE__ */ import_react153.default.createElement(ChatBlocked, null), streaming && (!isChatEnabled || isLocalPeerBlacklisted) && /* @__PURE__ */ import_react153.default.createElement(import_react153.default.Fragment, null, /* @__PURE__ */ import_react153.default.createElement(RaiseHand, { css: { bg: "$surface_default" } }), /* @__PURE__ */ import_react153.default.createElement(MoreSettings, { elements, screenType }))),
27406
27393
  isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && !streaming ? /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null) : null,
@@ -27458,7 +27445,7 @@ var NewMessageIndicator = ({
27458
27445
  scrollToBottom,
27459
27446
  listRef
27460
27447
  }) => {
27461
- const unreadCount = (0, import_react_sdk74.useHMSStore)(Am);
27448
+ const unreadCount = (0, import_react_sdk74.useHMSStore)(Nm);
27462
27449
  if (!unreadCount || !listRef.current) {
27463
27450
  return null;
27464
27451
  }
@@ -27549,8 +27536,8 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
27549
27536
  const { peers, total, hasNext, loadPeers, loadMorePeers } = (0, import_react_sdk75.usePaginatedParticipants)({ role: roleName, limit: 20 });
27550
27537
  const [search, setSearch] = (0, import_react154.useState)("");
27551
27538
  const filteredPeers = peers.filter((p) => {
27552
- var _a7;
27553
- return (_a7 = p.name) == null ? void 0 : _a7.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27539
+ var _a8;
27540
+ return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27554
27541
  });
27555
27542
  const isConnected = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectIsConnectedToRoom);
27556
27543
  const [ref, { width }] = (0, import_react_use28.useMeasure)();
@@ -27589,11 +27576,11 @@ var import_react155 = __toESM(require("react"));
27589
27576
  var import_react_sdk76 = require("@100mslive/react-sdk");
27590
27577
  var import_react_icons73 = require("@100mslive/react-icons");
27591
27578
  var ChatSettings = () => {
27592
- var _a7, _b7;
27579
+ var _a8, _b7;
27593
27580
  const hmsActions = (0, import_react_sdk76.useHMSActions)();
27594
27581
  const localPeer = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeer);
27595
27582
  const { elements } = useRoomLayoutConferencingScreen();
27596
- const canPauseChat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27583
+ const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27597
27584
  const { enabled: isChatEnabled = true } = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
27598
27585
  const showPause = canPauseChat && isChatEnabled;
27599
27586
  if (!showPause) {
@@ -27656,7 +27643,7 @@ var ParticipantCount2 = ({ count }) => {
27656
27643
  return count < 1e3 ? /* @__PURE__ */ import_react156.default.createElement("span", null, "(", count, ")") : /* @__PURE__ */ import_react156.default.createElement(Tooltip, { title: count }, /* @__PURE__ */ import_react156.default.createElement("span", null, "(", getFormattedCount(count), ")"));
27657
27644
  };
27658
27645
  var SidePaneTabs = import_react156.default.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = false }) => {
27659
- var _a7, _b7;
27646
+ var _a8, _b7;
27660
27647
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
27661
27648
  const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
27662
27649
  const resetSidePane = useSidepaneReset();
@@ -27664,7 +27651,7 @@ var SidePaneTabs = import_react156.default.memo(({ active = SIDE_PANE_OPTIONS.CH
27664
27651
  const [activeRole, setActiveRole] = (0, import_react156.useState)("");
27665
27652
  const peerCount = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectPeerCount);
27666
27653
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27667
- const chat_title = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.chat_title) || "Chat";
27654
+ const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
27668
27655
  const showChat = !!(elements == null ? void 0 : elements.chat);
27669
27656
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
27670
27657
  const hideTabs = !(showChat && showParticipants) || hideTab;
@@ -27944,11 +27931,11 @@ var MinimiseInset = () => {
27944
27931
  return /* @__PURE__ */ import_react158.default.createElement(import_react158.default.Fragment, null, /* @__PURE__ */ import_react158.default.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: spacingCSS, onClick: () => setMinimised(!minimised) }, /* @__PURE__ */ import_react158.default.createElement(import_react_icons76.ShrinkIcon, { height: 20, width: 20 }), /* @__PURE__ */ import_react158.default.createElement("span", null, minimised ? "Show" : "Minimise", " your video")));
27945
27932
  };
27946
27933
  var SimulcastLayers = ({ trackId }) => {
27947
- var _a7;
27934
+ var _a8;
27948
27935
  const track = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectTrackByID)(trackId));
27949
27936
  const actions = (0, import_react_sdk79.useHMSActions)();
27950
27937
  const bg2 = useDropdownSelection();
27951
- if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
27938
+ if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
27952
27939
  return null;
27953
27940
  }
27954
27941
  const currentLayer = track.layerDefinitions.find((layer) => layer.layer === track.layer);
@@ -28145,7 +28132,7 @@ var TileMenu = ({
28145
28132
  canMinimise,
28146
28133
  enableSpotlightingPeer = true
28147
28134
  }) => {
28148
- var _a7, _b7;
28135
+ var _a8, _b7;
28149
28136
  const [open, setOpen] = (0, import_react159.useState)(false);
28150
28137
  const { theme: theme2 } = useTheme();
28151
28138
  const localPeerID = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectLocalPeerID);
@@ -28153,7 +28140,7 @@ var TileMenu = ({
28153
28140
  const { removeOthers } = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectPermissions) || {};
28154
28141
  const { setVolume, toggleAudio, toggleVideo } = (0, import_react_sdk80.useRemoteAVToggle)(audioTrackID, videoTrackID);
28155
28142
  const showSpotlight = enableSpotlightingPeer;
28156
- const isPrimaryVideoTrack = ((_a7 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
28143
+ const isPrimaryVideoTrack = ((_a8 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
28157
28144
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
28158
28145
  const track = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(videoTrackID));
28159
28146
  const audioTrack = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(audioTrackID));
@@ -28411,11 +28398,11 @@ var VBCollection = ({
28411
28398
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28412
28399
  var iconDims = { height: "40px", width: "40px" };
28413
28400
  var VBPicker = ({ backgroundMedia = [] }) => {
28414
- var _a7, _b7;
28401
+ var _a8, _b7;
28415
28402
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28416
28403
  const hmsActions = (0, import_react_sdk82.useHMSActions)();
28417
28404
  const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
28418
- const role = (0, import_react_sdk82.useHMSStore)(ot);
28405
+ const role = (0, import_react_sdk82.useHMSStore)(ct);
28419
28406
  const isVideoOn = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLocalVideoEnabled);
28420
28407
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28421
28408
  const trackSelector = (0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -28424,12 +28411,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28424
28411
  const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
28425
28412
  const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
28426
28413
  const isEffectsSupported = VBHandler.isEffectsSupported();
28427
- const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(Bm);
28428
- const effectsKey = (0, import_react_sdk82.useHMSStore)(Fm);
28414
+ const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(Jm);
28415
+ const effectsKey = (0, import_react_sdk82.useHMSStore)(zm);
28429
28416
  const isMobile = (0, import_react_use33.useMedia)(config.media.md);
28430
28417
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28431
- const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28432
- const background = (0, import_react_sdk82.useHMSStore)(rS(APP_DATA.background));
28418
+ const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
28419
+ const background = (0, import_react_sdk82.useHMSStore)(pS(APP_DATA.background));
28433
28420
  const mediaList = backgroundMedia.map((media) => media.url || "");
28434
28421
  const pluginLoadingRef = (0, import_react163.useRef)(false);
28435
28422
  const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
@@ -28553,8 +28540,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28553
28540
  icon: /* @__PURE__ */ import_react163.default.createElement(import_react_icons79.BlurPersonHighIcon, { style: iconDims }),
28554
28541
  value: import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR,
28555
28542
  onClick: () => __async(void 0, null, function* () {
28556
- var _a8;
28557
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
28543
+ var _a9;
28544
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
28558
28545
  hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR);
28559
28546
  }),
28560
28547
  supported: isBlurSupported
@@ -28585,8 +28572,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28585
28572
  mediaURL,
28586
28573
  value: mediaURL,
28587
28574
  onClick: () => __async(void 0, null, function* () {
28588
- var _a8;
28589
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBackground(mediaURL);
28575
+ var _a9;
28576
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBackground(mediaURL);
28590
28577
  hmsActions.setAppData(APP_DATA.background, mediaURL);
28591
28578
  if (isMobile) {
28592
28579
  toggleVB();
@@ -28700,11 +28687,11 @@ var SidePane = ({
28700
28687
  tileProps,
28701
28688
  hideControls = false
28702
28689
  }) => {
28703
- var _a7, _b7, _c, _d, _e, _f, _g;
28690
+ var _a8, _b7, _c, _d, _e, _f, _g;
28704
28691
  const isMobile = (0, import_react_use34.useMedia)(config.media.md);
28705
28692
  const sidepane = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.sidePane));
28706
28693
  const activeScreensharePeerId = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.activeScreensharePeerId));
28707
- const trackId = (_a7 = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a7.id;
28694
+ const trackId = (_a8 = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a8.id;
28708
28695
  const { elements } = useRoomLayoutConferencingScreen();
28709
28696
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
28710
28697
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
@@ -28837,14 +28824,14 @@ var PreviewForm = ({
28837
28824
  cannotPublishVideo = false,
28838
28825
  cannotPublishAudio = false
28839
28826
  }) => {
28840
- var _a7, _b7, _c;
28827
+ var _a8, _b7, _c;
28841
28828
  const formSubmit = (e) => {
28842
28829
  e.preventDefault();
28843
28830
  };
28844
28831
  const isMobile = (0, import_react_use35.useMedia)(config.media.md);
28845
28832
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk84.useRecordingStreaming)();
28846
28833
  const layout = useRoomLayout();
28847
- const { join_form: joinForm = {} } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
28834
+ const { join_form: joinForm = {} } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
28848
28835
  const showGoLive = (joinForm == null ? void 0 : joinForm.join_btn_type) === import_join_form3.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE && !isHLSRunning && !isRTMPRunning && !isHLSRecordingOn && !isBrowserRecordingOn;
28849
28836
  return /* @__PURE__ */ import_react167.default.createElement(
28850
28837
  Form,
@@ -29150,10 +29137,10 @@ var RoleChangeRequestModal = () => {
29150
29137
  {
29151
29138
  title: "You're invited to join the stage",
29152
29139
  onOpenChange: (value) => __async(void 0, null, function* () {
29153
- var _a7;
29140
+ var _a8;
29154
29141
  if (!value) {
29155
29142
  hmsActions.rejectChangeRole(roleChangeRequest);
29156
- sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a7 = roleChangeRequest.requestedBy) == null ? void 0 : _a7.id });
29143
+ sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a8 = roleChangeRequest.requestedBy) == null ? void 0 : _a8.id });
29157
29144
  yield hmsActions.cancelMidCallPreview();
29158
29145
  yield hmsActions.lowerLocalPeerHand();
29159
29146
  }
@@ -29407,11 +29394,10 @@ var Pagination = ({
29407
29394
  // src/Prebuilt/components/VideoLayouts/Grid.tsx
29408
29395
  init_define_process_env();
29409
29396
  var import_react175 = __toESM(require("react"));
29410
- var import_framer_motion2 = require("framer-motion");
29411
29397
  var Grid = import_react175.default.forwardRef(
29412
29398
  ({ tiles, edgeToEdge }, ref) => {
29413
29399
  const videoTileProps = useVideoTileContext();
29414
- return /* @__PURE__ */ import_react175.default.createElement(import_framer_motion2.AnimatePresence, null, /* @__PURE__ */ import_react175.default.createElement(
29400
+ return /* @__PURE__ */ import_react175.default.createElement(
29415
29401
  Box,
29416
29402
  {
29417
29403
  ref,
@@ -29428,11 +29414,11 @@ var Grid = import_react175.default.forwardRef(
29428
29414
  }
29429
29415
  },
29430
29416
  tiles == null ? void 0 : tiles.map((tile) => {
29431
- var _a7, _b7, _c, _d;
29417
+ var _a8, _b7, _c, _d;
29432
29418
  return /* @__PURE__ */ import_react175.default.createElement(
29433
29419
  VideoTile_default,
29434
29420
  __spreadValues({
29435
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29421
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29436
29422
  width: tile.width,
29437
29423
  height: tile.height,
29438
29424
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
@@ -29442,7 +29428,7 @@ var Grid = import_react175.default.forwardRef(
29442
29428
  }, videoTileProps)
29443
29429
  );
29444
29430
  })
29445
- ));
29431
+ );
29446
29432
  }
29447
29433
  );
29448
29434
 
@@ -29549,7 +29535,7 @@ var useTileLayout = ({
29549
29535
 
29550
29536
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29551
29537
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
29552
- var _a7;
29538
+ var _a8;
29553
29539
  const isMobile = (0, import_react_use40.useMedia)(config.media.md);
29554
29540
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29555
29541
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
@@ -29563,7 +29549,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29563
29549
  edgeToEdge
29564
29550
  });
29565
29551
  const [page, setPage] = (0, import_react177.useState)(0);
29566
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
29552
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
29567
29553
  (0, import_react177.useEffect)(() => {
29568
29554
  if (pageSize > 0) {
29569
29555
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -29653,11 +29639,11 @@ var SecondarySection = ({
29653
29639
  })
29654
29640
  },
29655
29641
  tiles.map((tile) => {
29656
- var _a7, _b7, _c, _d;
29642
+ var _a8, _b7, _c, _d;
29657
29643
  return /* @__PURE__ */ import_react178.default.createElement(
29658
29644
  VideoTile_default,
29659
29645
  __spreadValues({
29660
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29646
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29661
29647
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
29662
29648
  trackId: (_d = tile.track) == null ? void 0 : _d.id,
29663
29649
  rootCSS: __spreadProps(__spreadValues({
@@ -29682,14 +29668,14 @@ var ProminenceLayout = {
29682
29668
 
29683
29669
  // src/Prebuilt/components/SecondaryTiles.tsx
29684
29670
  var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
29685
- var _a7, _b7;
29671
+ var _a8, _b7;
29686
29672
  const isMobile = (0, import_react_use41.useMedia)(config.media.md);
29687
29673
  const maxTileCount = isMobile ? 2 : 4;
29688
29674
  const [page, setPage] = (0, import_react179.useState)(0);
29689
29675
  const pinnedTrackId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.pinnedTrackId));
29690
29676
  const spotlightPeerId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectSessionStore)("spotlight" /* SPOTLIGHT */));
29691
29677
  const activeScreensharePeerId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.activeScreensharePeerId));
29692
- const pinnedPeer = (_a7 = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a7.peerId;
29678
+ const pinnedPeer = (_a8 = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a8.peerId;
29693
29679
  const pageChangedAfterPinning = (0, import_react179.useRef)(false);
29694
29680
  const pagesWithTiles = usePagesWithTiles({
29695
29681
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
@@ -29712,8 +29698,8 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
29712
29698
  });
29713
29699
  const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
29714
29700
  (0, import_react179.useEffect)(() => {
29715
- var _a8;
29716
- if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
29701
+ var _a9;
29702
+ if (peers.length > 0 && !((_a9 = pagesWithTiles[page]) == null ? void 0 : _a9.length)) {
29717
29703
  setPage(Math.max(0, page - 1));
29718
29704
  }
29719
29705
  }, [peers, page, pagesWithTiles]);
@@ -29787,7 +29773,7 @@ function RoleProminence({
29787
29773
  onPageSize,
29788
29774
  edgeToEdge
29789
29775
  }) {
29790
- var _a7;
29776
+ var _a8;
29791
29777
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
29792
29778
  const localPeer = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeer);
29793
29779
  const isMobile = (0, import_react_use42.useMedia)(config.media.md);
@@ -29802,7 +29788,7 @@ function RoleProminence({
29802
29788
  maxTileCount
29803
29789
  });
29804
29790
  const [page, setPage] = (0, import_react181.useState)(0);
29805
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
29791
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
29806
29792
  (0, import_react181.useEffect)(() => {
29807
29793
  if (pageSize > 0) {
29808
29794
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -30079,7 +30065,7 @@ var ScreenshareTile_default = ScreenshareTile;
30079
30065
 
30080
30066
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
30081
30067
  var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30082
- var _a7;
30068
+ var _a8;
30083
30069
  const peersSharing = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeersScreenSharing);
30084
30070
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30085
30071
  const [page, setPage] = (0, import_react185.useState)(0);
@@ -30115,7 +30101,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30115
30101
  setActiveScreenSharePeer("");
30116
30102
  };
30117
30103
  }, [activeSharePeer == null ? void 0 : activeSharePeer.id, setActiveScreenSharePeer]);
30118
- return /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react185.default.createElement(ScreenshareTile_default, { peerId: (_a7 = peersSharing[page]) == null ? void 0 : _a7.id }), !edgeToEdge && /* @__PURE__ */ import_react185.default.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ import_react185.default.createElement(
30104
+ return /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react185.default.createElement(ScreenshareTile_default, { peerId: (_a8 = peersSharing[page]) == null ? void 0 : _a8.id }), !edgeToEdge && /* @__PURE__ */ import_react185.default.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ import_react185.default.createElement(
30119
30105
  SecondaryTiles,
30120
30106
  {
30121
30107
  peers: secondaryPeers,
@@ -30226,10 +30212,10 @@ var PeersSorter = class {
30226
30212
  this.listeners.add(cb);
30227
30213
  };
30228
30214
  this.stop = () => {
30229
- var _a7;
30215
+ var _a8;
30230
30216
  this.updateListeners();
30231
30217
  this.listeners.clear();
30232
- (_a7 = this.storeUnsubscribe) == null ? void 0 : _a7.call(this);
30218
+ (_a8 = this.storeUnsubscribe) == null ? void 0 : _a8.call(this);
30233
30219
  this.storeUnsubscribe = void 0;
30234
30220
  this.speaker = void 0;
30235
30221
  };
@@ -30249,8 +30235,8 @@ var PeersSorter = class {
30249
30235
  this.updateListeners();
30250
30236
  };
30251
30237
  this.onDominantSpeakerChange = (speaker) => {
30252
- var _a7;
30253
- if (!speaker || speaker.id === ((_a7 = this.speaker) == null ? void 0 : _a7.id)) {
30238
+ var _a8;
30239
+ if (!speaker || speaker.id === ((_a8 = this.speaker) == null ? void 0 : _a8.id)) {
30254
30240
  return;
30255
30241
  }
30256
30242
  if (!this.peers.has(speaker.id)) {
@@ -30491,7 +30477,7 @@ init_define_process_env();
30491
30477
  var import_react189 = __toESM(require("react"));
30492
30478
  var import_react_icons88 = require("@100mslive/react-icons");
30493
30479
  function HlsStatsOverlay({ hlsStatsState, onClose }) {
30494
- var _a7, _b7, _c;
30480
+ var _a8, _b7, _c;
30495
30481
  return /* @__PURE__ */ import_react189.default.createElement(
30496
30482
  Flex,
30497
30483
  {
@@ -30517,7 +30503,7 @@ function HlsStatsOverlay({ hlsStatsState, onClose }) {
30517
30503
  },
30518
30504
  "Stream url"
30519
30505
  ))),
30520
- /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a7.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
30506
+ /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a8 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a8.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
30521
30507
  /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Buffer duration" }, (_c = hlsStatsState == null ? void 0 : hlsStatsState.bufferedDuration) == null ? void 0 : _c.toFixed(2), " "),
30522
30508
  /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Connection speed" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bandwidthEstimate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
30523
30509
  /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Bitrate" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bitrate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
@@ -30595,8 +30581,8 @@ var RightControls = styled(Flex, {
30595
30581
  // src/Prebuilt/components/HMSVideo/HMSVideo.jsx
30596
30582
  init_define_process_env();
30597
30583
  var import_react190 = __toESM(require("react"));
30598
- var HMSVideo = (0, import_react190.forwardRef)((_a7, videoRef) => {
30599
- var _b7 = _a7, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30584
+ var HMSVideo = (0, import_react190.forwardRef)((_a8, videoRef) => {
30585
+ var _b7 = _a8, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30600
30586
  const [width, setWidth] = (0, import_react190.useState)("auto");
30601
30587
  (0, import_react190.useEffect)(() => {
30602
30588
  const updatingVideoWidth = () => {
@@ -30891,7 +30877,7 @@ var VideoProgress = ({
30891
30877
  const [bufferProgress, setBufferProgress] = (0, import_react195.useState)(0);
30892
30878
  const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
30893
30879
  const setProgress = (0, import_react195.useCallback)(() => {
30894
- var _a7;
30880
+ var _a8;
30895
30881
  if (!videoEl) {
30896
30882
  return;
30897
30883
  }
@@ -30899,7 +30885,7 @@ var VideoProgress = ({
30899
30885
  const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
30900
30886
  let bufferProgress2 = 0;
30901
30887
  if (videoEl.buffered.length > 0) {
30902
- bufferProgress2 = Math.floor(getPercentage((_a7 = videoEl.buffered) == null ? void 0 : _a7.end(0), duration));
30888
+ bufferProgress2 = Math.floor(getPercentage((_a8 = videoEl.buffered) == null ? void 0 : _a8.end(0), duration));
30903
30889
  }
30904
30890
  if (!isNaN(videoProgress2)) {
30905
30891
  setVideoProgress(videoProgress2);
@@ -30925,13 +30911,13 @@ var VideoProgress = ({
30925
30911
  };
30926
30912
  }, [setProgress, timeupdateHandler, videoEl]);
30927
30913
  const onProgress = (progress) => {
30928
- var _a7;
30914
+ var _a8;
30929
30915
  const progress1 = Math.floor(getPercentage(progress[0], 100));
30930
30916
  const videoEl2 = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
30931
30917
  if (!videoEl2) {
30932
30918
  return;
30933
30919
  }
30934
- const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a7 = videoEl2.seekable) == null ? void 0 : _a7.end(0)) || 0;
30920
+ const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a8 = videoEl2.seekable) == null ? void 0 : _a8.end(0)) || 0;
30935
30921
  const currentTime = progress1 * duration / 100;
30936
30922
  hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(currentTime);
30937
30923
  setProgress();
@@ -31029,9 +31015,9 @@ init_define_process_env();
31029
31015
  var import_react197 = __toESM(require("react"));
31030
31016
  var import_react_icons91 = require("@100mslive/react-icons");
31031
31017
  var VolumeControl = () => {
31032
- var _a7;
31018
+ var _a8;
31033
31019
  const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
31034
- const [volume, setVolume] = (0, import_react197.useState)((_a7 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a7 : 100);
31020
+ const [volume, setVolume] = (0, import_react197.useState)((_a8 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a8 : 100);
31035
31021
  const [showSlider, setShowSlider] = (0, import_react197.useState)(false);
31036
31022
  return /* @__PURE__ */ import_react197.default.createElement(
31037
31023
  Flex,
@@ -31482,7 +31468,7 @@ var ToggleChat = ({ isFullScreen = false }) => {
31482
31468
  return null;
31483
31469
  };
31484
31470
  var HLSView = () => {
31485
- var _a7, _b7, _c, _d, _e, _f, _g;
31471
+ var _a8, _b7, _c, _d, _e, _f, _g;
31486
31472
  const videoRef = (0, import_react203.useRef)(null);
31487
31473
  const hlsViewRef = (0, import_react203.useRef)();
31488
31474
  const { elements } = useRoomLayoutConferencingScreen();
@@ -31493,7 +31479,7 @@ var HLSView = () => {
31493
31479
  const { themeType } = useTheme();
31494
31480
  const [streamEnded, setStreamEnded] = (0, import_react203.useState)(false);
31495
31481
  let [hlsStatsState, setHlsStatsState] = (0, import_react203.useState)(null);
31496
- const hlsUrl = (_a7 = hlsState.variants[0]) == null ? void 0 : _a7.url;
31482
+ const hlsUrl = (_a8 = hlsState.variants[0]) == null ? void 0 : _a8.url;
31497
31483
  const [availableLayers, setAvailableLayers] = (0, import_react203.useState)([]);
31498
31484
  const [isVideoLive, setIsVideoLive] = (0, import_react203.useState)(true);
31499
31485
  const [isCaptionEnabled, setIsCaptionEnabled] = (0, import_react203.useState)(true);
@@ -31562,9 +31548,9 @@ var HLSView = () => {
31562
31548
  }, [hlsUrl]);
31563
31549
  const handleQuality = (0, import_react203.useCallback)(
31564
31550
  (quality) => {
31565
- var _a8;
31551
+ var _a9;
31566
31552
  if (hlsPlayer) {
31567
- setIsUserSelectedAuto(((_a8 = quality.height) == null ? void 0 : _a8.toString().toLowerCase()) === "auto");
31553
+ setIsUserSelectedAuto(((_a9 = quality.height) == null ? void 0 : _a9.toString().toLowerCase()) === "auto");
31568
31554
  hlsPlayer == null ? void 0 : hlsPlayer.setLayer(quality);
31569
31555
  }
31570
31556
  },
@@ -31580,9 +31566,9 @@ var HLSView = () => {
31580
31566
  const layerUpdatedHandler = ({ layer }) => {
31581
31567
  setCurrentSelectedQuality(layer);
31582
31568
  };
31583
- const metadataLoadedHandler = (_a8) => {
31584
- var _b8 = _a8, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31585
- var _a9;
31569
+ const metadataLoadedHandler = (_a9) => {
31570
+ var _b8 = _a9, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31571
+ var _a10;
31586
31572
  const parsePayload = (str) => {
31587
31573
  try {
31588
31574
  return JSON.parse(str);
@@ -31627,7 +31613,7 @@ var HLSView = () => {
31627
31613
  }
31628
31614
  switch (parsedPayload.type) {
31629
31615
  case EMOJI_REACTION_TYPE:
31630
- (_a9 = window.showFlyingEmoji) == null ? void 0 : _a9.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31616
+ (_a10 = window.showFlyingEmoji) == null ? void 0 : _a10.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31631
31617
  break;
31632
31618
  default: {
31633
31619
  const toast = {
@@ -31728,7 +31714,7 @@ var HLSView = () => {
31728
31714
  }, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
31729
31715
  const onSeekTo = (0, import_react203.useCallback)(
31730
31716
  (seek) => {
31731
- var _a8;
31717
+ var _a9;
31732
31718
  (0, import_ts_pattern13.match)({ isLandscape, isMobile, seek }).with({ seek: -10, isMobile: false, isLandscape: false }, () => {
31733
31719
  setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekBackward: true }));
31734
31720
  setTimeout(() => {
@@ -31744,14 +31730,14 @@ var HLSView = () => {
31744
31730
  }));
31745
31731
  }, 1e3);
31746
31732
  }).otherwise(() => null);
31747
- hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a8 = videoRef.current) == null ? void 0 : _a8.currentTime) + seek);
31733
+ hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
31748
31734
  },
31749
31735
  [hoverControlsVisible, isLandscape, isMobile]
31750
31736
  );
31751
31737
  const onDoubleClickHandler = (0, import_react203.useCallback)(
31752
31738
  (event) => {
31753
- var _a8;
31754
- if (!(isMobile || isLandscape) || ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) !== import_react_sdk98.HLSPlaylistType.DVR) {
31739
+ var _a9;
31740
+ if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== import_react_sdk98.HLSPlaylistType.DVR) {
31755
31741
  return;
31756
31742
  }
31757
31743
  const sidePercentage = event.screenX * 100 / event.target.clientWidth;
@@ -31776,8 +31762,8 @@ var HLSView = () => {
31776
31762
  [hlsState == null ? void 0 : hlsState.variants, hoverControlsVisible, isLandscape, isMobile, onSeekTo]
31777
31763
  );
31778
31764
  const onClickHandler = (0, import_react203.useCallback)(() => __async(void 0, null, function* () {
31779
- var _a8;
31780
- (0, import_ts_pattern13.match)({ isMobile, isLandscape, playlist_type: (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type }).with({ playlist_type: import_react_sdk98.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
31765
+ var _a9;
31766
+ (0, import_ts_pattern13.match)({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type: import_react_sdk98.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
31781
31767
  if (isPaused) {
31782
31768
  yield hlsPlayer == null ? void 0 : hlsPlayer.play();
31783
31769
  } else {
@@ -31874,8 +31860,8 @@ var HLSView = () => {
31874
31860
  outline: "none"
31875
31861
  },
31876
31862
  onKeyDown: (event) => __async(void 0, null, function* () {
31877
- var _a8;
31878
- if (((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR) {
31863
+ var _a9;
31864
+ if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR) {
31879
31865
  yield keyHandler(event);
31880
31866
  }
31881
31867
  }),
@@ -32142,7 +32128,7 @@ var SimpleQueue = class {
32142
32128
  this.storage = [];
32143
32129
  }
32144
32130
  enqueue(data3) {
32145
- var _a7;
32131
+ var _a8;
32146
32132
  if (!data3.transcript.trim()) {
32147
32133
  return;
32148
32134
  }
@@ -32154,7 +32140,7 @@ var SimpleQueue = class {
32154
32140
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32155
32141
  return;
32156
32142
  }
32157
- if (this.size() > 0 && ((_a7 = this.storage[this.size() - 1]) == null ? void 0 : _a7.final) === true) {
32143
+ if (this.size() > 0 && ((_a8 = this.storage[this.size() - 1]) == null ? void 0 : _a8.final) === true) {
32158
32144
  this.storage.push(data3);
32159
32145
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32160
32146
  return;
@@ -32288,11 +32274,11 @@ var CaptionsViewer = ({
32288
32274
  defaultPosition,
32289
32275
  setDefaultPosition
32290
32276
  }) => {
32291
- var _a7;
32277
+ var _a8;
32292
32278
  const { elements, screenType } = useRoomLayoutConferencingScreen();
32293
32279
  const isMobile = (0, import_react_use50.useMedia)(config.media.md);
32294
32280
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
32295
- const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
32281
+ const showCaptionAtTop = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && isChatOpen && isMobile;
32296
32282
  const [captionQueue] = (0, import_react205.useState)(new CaptionMaintainerQueue());
32297
32283
  const [currentData, setCurrentData] = (0, import_react205.useState)([]);
32298
32284
  const isCaptionEnabled = useIsCaptionEnabled();
@@ -32300,11 +32286,11 @@ var CaptionsViewer = ({
32300
32286
  const nodeRef = (0, import_react205.useRef)(null);
32301
32287
  (0, import_react205.useEffect)(() => {
32302
32288
  const timeInterval = setInterval(() => {
32303
- var _a8;
32289
+ var _a9;
32304
32290
  if (!captionQueue) {
32305
32291
  return;
32306
32292
  }
32307
- const data3 = (_a8 = captionQueue.captionData) == null ? void 0 : _a8.findPeerData();
32293
+ const data3 = (_a9 = captionQueue.captionData) == null ? void 0 : _a9.findPeerData();
32308
32294
  setCurrentData(data3);
32309
32295
  }, 1e3);
32310
32296
  return () => clearInterval(timeInterval);
@@ -32383,7 +32369,7 @@ var VideoStreamingSection = ({
32383
32369
  elements,
32384
32370
  hideControls = false
32385
32371
  }) => {
32386
- var _a7;
32372
+ var _a8;
32387
32373
  const localPeerRoleName = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectLocalPeerRoleName);
32388
32374
  const isConnected = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsConnectedToRoom);
32389
32375
  const isSharingScreen = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsLocalScreenShared);
@@ -32461,8 +32447,8 @@ var VideoStreamingSection = ({
32461
32447
  ({ urlToIframe: urlToIframe2 }) => !!urlToIframe2,
32462
32448
  () => /* @__PURE__ */ import_react207.default.createElement(EmbedView, null)
32463
32449
  ).otherwise(() => {
32464
- var _a8;
32465
- return /* @__PURE__ */ import_react207.default.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
32450
+ var _a9;
32451
+ return /* @__PURE__ */ import_react207.default.createElement(GridLayout, __spreadValues({}, (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid));
32466
32452
  }),
32467
32453
  /* @__PURE__ */ import_react207.default.createElement(CaptionsViewer, { setDefaultPosition: setCaptionPosition, defaultPosition: captionPosition }),
32468
32454
  /* @__PURE__ */ import_react207.default.createElement(
@@ -32481,7 +32467,7 @@ var VideoStreamingSection = ({
32481
32467
  SidePane_default,
32482
32468
  {
32483
32469
  screenType,
32484
- tileProps: (_a7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a7.grid,
32470
+ tileProps: (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid,
32485
32471
  hideControls
32486
32472
  }
32487
32473
  )
@@ -32714,48 +32700,23 @@ var PreviousRoleInMetadata = () => {
32714
32700
 
32715
32701
  // src/Prebuilt/components/ConferenceScreen.tsx
32716
32702
  var ConferenceScreen = () => {
32717
- var _a7, _b7, _c, _d, _e, _f;
32703
+ var _a8, _b7, _c, _d, _e, _f;
32718
32704
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
32719
32705
  const screenProps = useRoomLayoutConferencingScreen();
32720
32706
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
32721
32707
  const roomState = (0, import_react_sdk106.useHMSStore)(import_react_sdk106.selectRoomState);
32722
32708
  const isConnectedToRoom = (0, import_react_sdk106.useHMSStore)(import_react_sdk106.selectIsConnectedToRoom);
32723
32709
  const hmsActions = (0, import_react_sdk106.useHMSActions)();
32724
- const [hideControls, setHideControls] = (0, import_react212.useState)(false);
32725
- const dropdownList = (0, import_react_sdk106.useHMSStore)((0, import_react_sdk106.selectAppData)(APP_DATA.dropdownList));
32726
32710
  const authTokenInAppData = useAuthToken();
32727
32711
  const headerRef = (0, import_react212.useRef)(null);
32728
32712
  const footerRef = (0, import_react212.useRef)(null);
32729
- const isMobileDevice = isAndroid || isIOS || isIPadOS;
32730
- const dropdownListRef = (0, import_react212.useRef)();
32731
32713
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
32732
32714
  const { requestPermission } = (0, import_react_sdk106.useAwayNotifications)();
32733
- const showChat = !!((_a7 = screenProps.elements) == null ? void 0 : _a7.chat);
32715
+ const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
32734
32716
  const autoRoomJoined = (0, import_react212.useRef)(isPreviewScreenEnabled);
32735
32717
  const isMobileHLSStream = useMobileHLSStream();
32736
32718
  const isLandscapeHLSStream = useLandscapeHLSStream();
32737
32719
  const isMwebHLSStream = isMobileHLSStream || isLandscapeHLSStream;
32738
- const toggleControls = () => {
32739
- var _a8;
32740
- if (((_a8 = dropdownListRef.current) == null ? void 0 : _a8.length) === 0 && isMobileDevice && !isMwebHLSStream) {
32741
- setHideControls((value) => !value);
32742
- }
32743
- };
32744
- (0, import_react212.useEffect)(() => {
32745
- let timeout;
32746
- dropdownListRef.current = dropdownList || [];
32747
- if (dropdownListRef.current && dropdownListRef.current.length === 0) {
32748
- clearTimeout(timeout);
32749
- timeout = setTimeout(() => {
32750
- if (dropdownListRef.current && dropdownListRef.current.length === 0) {
32751
- setHideControls(isMobileDevice);
32752
- }
32753
- }, 5e3);
32754
- }
32755
- return () => {
32756
- clearTimeout(timeout);
32757
- };
32758
- }, [dropdownList, hideControls, isMobileDevice]);
32759
32720
  (0, import_react212.useEffect)(() => {
32760
32721
  if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== import_react_sdk106.HMSRoomState.Connecting && !autoRoomJoined.current) {
32761
32722
  hmsActions.join({
@@ -32790,7 +32751,6 @@ var ConferenceScreen = () => {
32790
32751
  if (!isConnectedToRoom && ![import_react_sdk106.HMSRoomState.Reconnecting, import_react_sdk106.HMSRoomState.Disconnected].includes(roomState)) {
32791
32752
  return /* @__PURE__ */ import_react212.default.createElement(FullPageProgress_default, { text: roomState === import_react_sdk106.HMSRoomState.Connecting ? "Joining..." : "" });
32792
32753
  }
32793
- const hideControlsForStreaming = isMwebHLSStream ? true : hideControls;
32794
32754
  return /* @__PURE__ */ import_react212.default.createElement(import_react212.default.Fragment, null, isHLSStarted ? /* @__PURE__ */ import_react212.default.createElement(Box, { css: { position: "fixed", zIndex: 100, w: "100%", h: "100%", left: 0, top: 0 } }, /* @__PURE__ */ import_react212.default.createElement(FullPageProgress_default, { text: "Starting live stream...", css: { opacity: 0.8, bg: "$background_dim" } })) : null, /* @__PURE__ */ import_react212.default.createElement(Flex, { css: { size: "100%", overflow: "hidden" }, direction: "column" }, !(screenProps.hideSections.includes("header") || isMwebHLSStream) && /* @__PURE__ */ import_react212.default.createElement(
32795
32755
  Box,
32796
32756
  {
@@ -32798,7 +32758,7 @@ var ConferenceScreen = () => {
32798
32758
  css: {
32799
32759
  h: "$18",
32800
32760
  transition: "margin 0.3s ease-in-out",
32801
- marginTop: hideControlsForStreaming ? `-${(_b7 = headerRef.current) == null ? void 0 : _b7.clientHeight}px` : "none",
32761
+ marginTop: isMwebHLSStream ? `-${(_b7 = headerRef.current) == null ? void 0 : _b7.clientHeight}px` : "none",
32802
32762
  "@md": {
32803
32763
  h: "$17"
32804
32764
  }
@@ -32822,15 +32782,14 @@ var ConferenceScreen = () => {
32822
32782
  }
32823
32783
  },
32824
32784
  id: "conferencing",
32825
- "data-testid": "conferencing",
32826
- onClick: toggleControls
32785
+ "data-testid": "conferencing"
32827
32786
  },
32828
32787
  screenProps.elements ? /* @__PURE__ */ import_react212.default.createElement(
32829
32788
  VideoStreamingSection,
32830
32789
  {
32831
32790
  screenType: screenProps.screenType,
32832
32791
  elements: screenProps.elements,
32833
- hideControls: hideControlsForStreaming
32792
+ hideControls: isMwebHLSStream
32834
32793
  }
32835
32794
  ) : null
32836
32795
  ), !screenProps.hideSections.includes("footer") && screenProps.elements && !isMwebHLSStream && /* @__PURE__ */ import_react212.default.createElement(
@@ -32842,7 +32801,7 @@ var ConferenceScreen = () => {
32842
32801
  maxHeight: "$24",
32843
32802
  transition: "margin 0.3s ease-in-out",
32844
32803
  bg: "$background_dim",
32845
- marginBottom: hideControlsForStreaming ? `-${(_f = footerRef.current) == null ? void 0 : _f.clientHeight}px` : void 0,
32804
+ marginBottom: isMwebHLSStream ? `-${(_f = footerRef.current) == null ? void 0 : _f.clientHeight}px` : void 0,
32846
32805
  "@md": {
32847
32806
  maxHeight: "unset",
32848
32807
  bg: screenProps.screenType === "hls_live_streaming" ? "transparent" : "$background_dim"
@@ -33009,8 +32968,8 @@ var Init = () => {
33009
32968
  }, [toggleTheme]);
33010
32969
  (0, import_react215.useEffect)(() => {
33011
32970
  function resetHeight() {
33012
- var _a7;
33013
- document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
32971
+ var _a8;
32972
+ document.body.style.height = `${((_a8 = window.visualViewport) == null ? void 0 : _a8.height) || window.innerHeight}px`;
33014
32973
  }
33015
32974
  window.addEventListener("resize", resetHeight);
33016
32975
  resetHeight();
@@ -33199,8 +33158,8 @@ var FeedbackContent = ({
33199
33158
  }
33200
33159
  try {
33201
33160
  const reasons = [...selectedReasons].map((value) => {
33202
- var _a7, _b7;
33203
- return ((_b7 = (_a7 = ratings[indexSelected]) == null ? void 0 : _a7.reasons) == null ? void 0 : _b7[value]) || "";
33161
+ var _a8, _b7;
33162
+ return ((_b7 = (_a8 = ratings[indexSelected]) == null ? void 0 : _a8.reasons) == null ? void 0 : _b7[value]) || "";
33204
33163
  });
33205
33164
  yield hmsActions.submitSessionFeedback(
33206
33165
  {
@@ -33665,12 +33624,12 @@ var MwebLandscapePrompt = () => {
33665
33624
  const isLandscape = (0, import_react_use57.useMedia)(config.media.ls);
33666
33625
  const isLandscapeHLSStream = useLandscapeHLSStream();
33667
33626
  (0, import_react221.useEffect)(() => {
33668
- var _a7;
33627
+ var _a8;
33669
33628
  if (!isMobileUserAgent) {
33670
33629
  setShowMwebLandscapePrompt(false);
33671
33630
  return;
33672
33631
  }
33673
- if (!((_a7 = window.screen) == null ? void 0 : _a7.orientation)) {
33632
+ if (!((_a8 = window.screen) == null ? void 0 : _a8.orientation)) {
33674
33633
  setShowMwebLandscapePrompt(isLandscape && !isLandscapeHLSStream);
33675
33634
  return;
33676
33635
  }
@@ -33754,8 +33713,8 @@ var ChatNotifications = () => {
33754
33713
  const chatState = (0, import_react_sdk111.useHMSStore)((0, import_react_sdk111.selectSessionStore)("chatState" /* CHAT_STATE */));
33755
33714
  const localPeerId = (0, import_react_sdk111.useHMSStore)(import_react_sdk111.selectLocalPeerID);
33756
33715
  (0, import_react223.useEffect)(() => {
33757
- var _a7, _b7;
33758
- if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
33716
+ var _a8, _b7;
33717
+ if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
33759
33718
  return;
33760
33719
  }
33761
33720
  const showToast = Date.now() - chatState.updatedAt < NOTIFICATION_TIME_DIFFERENCE;
@@ -33913,7 +33872,7 @@ var ChatAction = import_react227.default.forwardRef((_, ref) => {
33913
33872
  return /* @__PURE__ */ import_react227.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
33914
33873
  });
33915
33874
  var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
33916
- var _a7, _b7, _c;
33875
+ var _a8, _b7, _c;
33917
33876
  const hmsActions = (0, import_react_sdk115.useHMSActions)();
33918
33877
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
33919
33878
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
@@ -33924,7 +33883,7 @@ var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHan
33924
33883
  on_stage_role,
33925
33884
  off_stage_roles = [],
33926
33885
  skip_preview_for_role_change = false
33927
- } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
33886
+ } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
33928
33887
  const onClickHandler = (0, import_react227.useCallback)(() => __async(void 0, null, function* () {
33929
33888
  if (isSingleHandRaise) {
33930
33889
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
@@ -33951,9 +33910,9 @@ var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHan
33951
33910
  var ToastConfig = {
33952
33911
  PEER_JOINED: {
33953
33912
  single: function(notification) {
33954
- var _a7;
33913
+ var _a8;
33955
33914
  return {
33956
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
33915
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} joined`,
33957
33916
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleAddIcon, null)
33958
33917
  };
33959
33918
  },
@@ -33966,9 +33925,9 @@ var ToastConfig = {
33966
33925
  },
33967
33926
  PEER_LEFT: {
33968
33927
  single: function(notification) {
33969
- var _a7;
33928
+ var _a8;
33970
33929
  return {
33971
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
33930
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} left`,
33972
33931
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleRemoveIcon, null)
33973
33932
  };
33974
33933
  },
@@ -33981,41 +33940,41 @@ var ToastConfig = {
33981
33940
  },
33982
33941
  RAISE_HAND: {
33983
33942
  single: (notification) => {
33984
- var _a7;
33943
+ var _a8;
33985
33944
  return {
33986
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
33945
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
33987
33946
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
33988
33947
  };
33989
33948
  },
33990
33949
  multiple: (notifications) => {
33991
- var _a7;
33950
+ var _a8;
33992
33951
  const count = new Set(notifications.map((notification) => {
33993
- var _a8;
33994
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
33952
+ var _a9;
33953
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
33995
33954
  })).size;
33996
33955
  return {
33997
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33956
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33998
33957
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
33999
33958
  };
34000
33959
  }
34001
33960
  },
34002
33961
  RAISE_HAND_HLS: {
34003
33962
  single: (notification) => {
34004
- var _a7, _b7;
33963
+ var _a8, _b7;
34005
33964
  return {
34006
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
33965
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
34007
33966
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
34008
33967
  action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
34009
33968
  };
34010
33969
  },
34011
33970
  multiple: (notifications) => {
34012
- var _a7;
33971
+ var _a8;
34013
33972
  const count = new Set(notifications.map((notification) => {
34014
- var _a8;
34015
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
33973
+ var _a9;
33974
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
34016
33975
  })).size;
34017
33976
  return {
34018
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33977
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34019
33978
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
34020
33979
  action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
34021
33980
  };
@@ -34023,9 +33982,9 @@ var ToastConfig = {
34023
33982
  },
34024
33983
  NEW_MESSAGE: {
34025
33984
  single: (notification) => {
34026
- var _a7;
33985
+ var _a8;
34027
33986
  return {
34028
- title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
33987
+ title: `New message from ${(_a8 = notification.data) == null ? void 0 : _a8.senderName}`,
34029
33988
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.ChatUnreadIcon, null),
34030
33989
  action: /* @__PURE__ */ import_react227.default.createElement(ChatAction, null)
34031
33990
  };
@@ -34124,7 +34083,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
34124
34083
 
34125
34084
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
34126
34085
  var HandRaisedNotifications = () => {
34127
- var _a7, _b7;
34086
+ var _a8, _b7;
34128
34087
  const notification = (0, import_react_sdk116.useHMSNotifications)(import_react_sdk116.HMSNotificationTypes.HAND_RAISE_CHANGED);
34129
34088
  const roomState = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectRoomState);
34130
34089
  const vanillaStore = (0, import_react_sdk116.useHMSVanillaStore)();
@@ -34132,9 +34091,9 @@ var HandRaisedNotifications = () => {
34132
34091
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
34133
34092
  const amIScreenSharing = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectIsLocalScreenShared);
34134
34093
  const { showNotification } = (0, import_react_sdk116.useAwayNotifications)();
34135
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34094
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34136
34095
  (0, import_react228.useEffect)(() => {
34137
- var _a8;
34096
+ var _a9;
34138
34097
  if (!(notification == null ? void 0 : notification.data)) {
34139
34098
  return;
34140
34099
  }
@@ -34144,7 +34103,7 @@ var HandRaisedNotifications = () => {
34144
34103
  const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk116.selectHasPeerHandRaised)(notification.data.id));
34145
34104
  const peer = vanillaStore.getState((0, import_react_sdk116.selectPeerByID)(notification.data.id));
34146
34105
  if (hasPeerHandRaised) {
34147
- const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a8 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a8.includes(peer.roleName));
34106
+ const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a9 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a9.includes(peer.roleName));
34148
34107
  ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
34149
34108
  console.debug("Metadata updated", notification.data);
34150
34109
  }
@@ -34207,15 +34166,15 @@ init_define_process_env();
34207
34166
  var import_react230 = require("react");
34208
34167
  var import_react_sdk118 = require("@100mslive/react-sdk");
34209
34168
  var MessageNotifications = () => {
34210
- var _a7, _b7;
34211
- const notification = (0, import_react_sdk118.useHMSNotifications)(vr.NEW_MESSAGE);
34212
- const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(jr);
34213
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34169
+ var _a8, _b7;
34170
+ const notification = (0, import_react_sdk118.useHMSNotifications)(Er.NEW_MESSAGE);
34171
+ const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(Yr);
34172
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34214
34173
  const { pipWindow } = usePIPWindow();
34215
34174
  const { showNotification } = (0, import_react_sdk118.useAwayNotifications)();
34216
34175
  (0, import_react230.useEffect)(() => {
34217
- var _a8;
34218
- if (notification && amIScreenSharing && !((_a8 = notification.data) == null ? void 0 : _a8.ignored) && !pipWindow) {
34176
+ var _a9;
34177
+ if (notification && amIScreenSharing && !((_a9 = notification.data) == null ? void 0 : _a9.ignored) && !pipWindow) {
34219
34178
  showNotification(`New message from ${notification.data.senderName}`, {
34220
34179
  body: notification.data.message,
34221
34180
  icon: logoURL
@@ -34403,7 +34362,7 @@ var ReconnectNotifications = () => {
34403
34362
  const notification = (0, import_react_sdk122.useHMSNotifications)(notificationTypes3);
34404
34363
  const prevErrorCode = (0, import_react234.useRef)(0);
34405
34364
  (0, import_react234.useEffect)(() => {
34406
- var _a7, _b7;
34365
+ var _a8, _b7;
34407
34366
  if (!notification) {
34408
34367
  return;
34409
34368
  }
@@ -34413,7 +34372,7 @@ var ReconnectNotifications = () => {
34413
34372
  ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
34414
34373
  );
34415
34374
  } else if (notification.type === import_react_sdk122.HMSNotificationTypes.RECONNECTING) {
34416
- prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
34375
+ prevErrorCode.current = ((_a8 = notification.data) == null ? void 0 : _a8.code) || 0;
34417
34376
  notificationId = ToastManager.replaceToast(
34418
34377
  notificationId,
34419
34378
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
@@ -34431,11 +34390,11 @@ var RoleChangeNotification = () => {
34431
34390
  const notification = (0, import_react_sdk123.useHMSNotifications)(import_react_sdk123.HMSNotificationTypes.ROLE_UPDATED);
34432
34391
  const updateRoomLayoutForRole = useUpdateRoomLayout();
34433
34392
  (0, import_react235.useEffect)(() => {
34434
- var _a7, _b7;
34393
+ var _a8, _b7;
34435
34394
  if (!(notification == null ? void 0 : notification.data)) {
34436
34395
  return;
34437
34396
  }
34438
- if (((_a7 = notification.data) == null ? void 0 : _a7.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34397
+ if (((_a8 = notification.data) == null ? void 0 : _a8.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34439
34398
  ToastManager.addToast({
34440
34399
  title: `You are now a ${notification.data.roleName}`
34441
34400
  });
@@ -34510,7 +34469,7 @@ var notificationTypes5 = [
34510
34469
  var TrackNotifications = () => {
34511
34470
  const notification = (0, import_react_sdk125.useHMSNotifications)(notificationTypes5);
34512
34471
  (0, import_react237.useEffect)(() => {
34513
- var _a7, _b7;
34472
+ var _a8, _b7;
34514
34473
  if (notification) {
34515
34474
  switch (notification.type) {
34516
34475
  case import_react_sdk125.HMSNotificationTypes.TRACK_ADDED:
@@ -34521,7 +34480,7 @@ var TrackNotifications = () => {
34521
34480
  break;
34522
34481
  case import_react_sdk125.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
34523
34482
  {
34524
- const track = (_a7 = notification.data) == null ? void 0 : _a7.track;
34483
+ const track = (_a8 = notification.data) == null ? void 0 : _a8.track;
34525
34484
  if (!notification.data.enabled) {
34526
34485
  ToastManager.addToast({
34527
34486
  title: `Your ${track.source} ${track.type} was muted by
@@ -34696,7 +34655,7 @@ init_define_process_env();
34696
34655
  var import_react242 = __toESM(require("react"));
34697
34656
  var import_react_use60 = require("react-use");
34698
34657
  var PreviewScreen = () => {
34699
- var _a7, _b7, _c;
34658
+ var _a8, _b7, _c;
34700
34659
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
34701
34660
  const skipPreview = !isPreviewScreenEnabled;
34702
34661
  const previewAsRole = (0, import_react_use60.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
@@ -34704,7 +34663,7 @@ var PreviewScreen = () => {
34704
34663
  const initialName = userName || (skipPreview ? "Beam" : "");
34705
34664
  const authToken = useAuthToken();
34706
34665
  const roomLayout = useRoomLayout();
34707
- const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
34666
+ const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
34708
34667
  return /* @__PURE__ */ import_react242.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react242.default.createElement(
34709
34668
  Flex,
34710
34669
  {
@@ -34724,8 +34683,8 @@ var import_react_sdk129 = require("@100mslive/react-sdk");
34724
34683
  // src/Prebuilt/components/Toast/Toast.jsx
34725
34684
  init_define_process_env();
34726
34685
  var import_react243 = __toESM(require("react"));
34727
- var Toast2 = (_a7) => {
34728
- var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
34686
+ var Toast2 = (_a8) => {
34687
+ var _b7 = _a8, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
34729
34688
  return /* @__PURE__ */ import_react243.default.createElement(
34730
34689
  Toast.HMSToast,
34731
34690
  __spreadValues({
@@ -35005,7 +34964,7 @@ var HMSPrebuilt = import_react250.default.forwardRef(
35005
34964
  onLeave,
35006
34965
  onJoin
35007
34966
  }, ref) => {
35008
- var _a7, _b7, _c, _d;
34967
+ var _a8, _b7, _c, _d;
35009
34968
  const reactiveStore = (0, import_react250.useRef)();
35010
34969
  const [hydrated, setHydrated] = import_react250.default.useState(false);
35011
34970
  (0, import_react250.useEffect)(() => {
@@ -35031,8 +34990,8 @@ var HMSPrebuilt = import_react250.default.forwardRef(
35031
34990
  }, [ref]);
35032
34991
  (0, import_react250.useEffect)(() => {
35033
34992
  return () => {
35034
- var _a8;
35035
- (_a8 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a8.hmsActions.leave();
34993
+ var _a9;
34994
+ (_a9 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a9.hmsActions.leave();
35036
34995
  };
35037
34996
  }, []);
35038
34997
  const endpointsObj = endpoints;
@@ -35080,16 +35039,16 @@ var HMSPrebuilt = import_react250.default.forwardRef(
35080
35039
  import_react_sdk134.HMSRoomProvider,
35081
35040
  {
35082
35041
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
35083
- actions: (_a7 = reactiveStore.current) == null ? void 0 : _a7.hmsActions,
35042
+ actions: (_a8 = reactiveStore.current) == null ? void 0 : _a8.hmsActions,
35084
35043
  store: (_b7 = reactiveStore.current) == null ? void 0 : _b7.hmsStore,
35085
35044
  notifications: (_c = reactiveStore.current) == null ? void 0 : _c.hmsNotifications,
35086
35045
  stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
35087
35046
  leaveOnUnload
35088
35047
  },
35089
35048
  /* @__PURE__ */ import_react250.default.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ import_react250.default.createElement(RoomLayoutContext.Consumer, null, (data3) => {
35090
- var _a8;
35049
+ var _a9;
35091
35050
  const layout = data3 == null ? void 0 : data3.layout;
35092
- const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
35051
+ const theme2 = ((_a9 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a9[0]) || {};
35093
35052
  const { typography: typography2 } = layout || {};
35094
35053
  let fontFamily = ["sans-serif"];
35095
35054
  if (typography2 == null ? void 0 : typography2.font_family) {
@@ -35100,10 +35059,10 @@ var HMSPrebuilt = import_react250.default.forwardRef(
35100
35059
  {
35101
35060
  themeType: `${theme2.name}-${Date.now()}`,
35102
35061
  theme: {
35103
- //@ts-ignore: Prebuilt theme to match stiches theme
35062
+ //@ts-ignore: Prebuilt theme to match stitches theme
35104
35063
  colors: theme2.palette,
35105
35064
  fonts: {
35106
- //@ts-ignore: font list to match token types of stiches
35065
+ //@ts-ignore: font list to match token types of stitches
35107
35066
  sans: fontFamily
35108
35067
  }
35109
35068
  }
@@ -35289,7 +35248,7 @@ init_define_process_env();
35289
35248
  var import_react253 = __toESM(require("react"));
35290
35249
  var import_prop_types = __toESM(require_prop_types());
35291
35250
  var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
35292
- var _a7, _b7;
35251
+ var _a8, _b7;
35293
35252
  const [open, setOpen] = (0, import_react253.useState)(false);
35294
35253
  const ref = (0, import_react253.useRef)(null);
35295
35254
  return /* @__PURE__ */ import_react253.default.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ import_react253.default.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ import_react253.default.createElement(
@@ -35309,7 +35268,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
35309
35268
  {
35310
35269
  ref,
35311
35270
  icon,
35312
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
35271
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
35313
35272
  open
35314
35273
  }
35315
35274
  ), /* @__PURE__ */ import_react253.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react253.default.createElement(
@@ -35354,11 +35313,11 @@ DeviceSelector2.propTypes = {
35354
35313
  // src/Diagnostics/AudioTest.tsx
35355
35314
  var SelectContainer = ({ children }) => /* @__PURE__ */ import_react254.default.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
35356
35315
  var MicTest = ({ setError }) => {
35357
- var _a7, _b7;
35316
+ var _a8, _b7;
35358
35317
  const { hmsDiagnostics } = useDiagnostics();
35359
35318
  const devices = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectDevices);
35360
35319
  const [isRecording, setIsRecording] = (0, import_react254.useState)(false);
35361
- const [selectedMic, setSelectedMic] = (0, import_react254.useState)(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
35320
+ const [selectedMic, setSelectedMic] = (0, import_react254.useState)(((_a8 = devices.audioInput[0]) == null ? void 0 : _a8.deviceId) || "default");
35362
35321
  const trackID = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectLocalAudioTrackID);
35363
35322
  const audioLevel = (0, import_react_sdk135.useHMSStore)((0, import_react_sdk135.selectTrackAudioByID)(trackID));
35364
35323
  const { audioOutputDeviceId } = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectLocalMediaSettings);
@@ -35435,7 +35394,7 @@ var MicTest = ({ setError }) => {
35435
35394
  ))));
35436
35395
  };
35437
35396
  var SpeakerTest = () => {
35438
- var _a7;
35397
+ var _a8;
35439
35398
  const actions = (0, import_react_sdk135.useHMSActions)();
35440
35399
  const devices = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectDevices);
35441
35400
  const { audioOutputDeviceId } = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectLocalMediaSettings);
@@ -35447,7 +35406,7 @@ var SpeakerTest = () => {
35447
35406
  {
35448
35407
  title: "Speaker (Output)",
35449
35408
  devices: devices.audioOutput,
35450
- selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
35409
+ selection: audioOutputDeviceId || ((_a8 = devices.audioOutput[0]) == null ? void 0 : _a8.deviceId),
35451
35410
  icon: /* @__PURE__ */ import_react254.default.createElement(import_react_icons113.SpeakerIcon, null),
35452
35411
  onChange: (deviceId) => {
35453
35412
  actions.setAudioOutputDevice(deviceId);
@@ -35571,7 +35530,7 @@ var browserTypeIconInfo = {
35571
35530
  };
35572
35531
  var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ import_react255.default.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ import_react255.default.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ import_react255.default.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ import_react255.default.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ import_react255.default.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ import_react255.default.createElement(Text, null, value)));
35573
35532
  var BrowserTest = () => {
35574
- var _a7, _b7, _c, _d;
35533
+ var _a8, _b7, _c, _d;
35575
35534
  const { hmsDiagnostics, updateStep } = useDiagnostics();
35576
35535
  const [error, setError] = (0, import_react255.useState)();
35577
35536
  (0, import_react255.useEffect)(() => {
@@ -35586,7 +35545,7 @@ var BrowserTest = () => {
35586
35545
  CheckDetails,
35587
35546
  {
35588
35547
  title: "Browser",
35589
- iconURL: import_react_sdk136.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = import_react_sdk136.parsedUserAgent.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
35548
+ iconURL: import_react_sdk136.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a8 = import_react_sdk136.parsedUserAgent.getBrowser().name) == null ? void 0 : _a8.toLowerCase()]) == null ? void 0 : _b7.icon),
35590
35549
  value: `${import_react_sdk136.parsedUserAgent.getBrowser().name} ${import_react_sdk136.parsedUserAgent.getBrowser().version}`
35591
35550
  }
35592
35551
  ), /* @__PURE__ */ import_react255.default.createElement(
@@ -35657,7 +35616,7 @@ var DetailedInfo = ({
35657
35616
  return /* @__PURE__ */ import_react256.default.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ import_react256.default.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ import_react256.default.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "caption" }, value)));
35658
35617
  };
35659
35618
  var MediaServerResult = ({ result }) => {
35660
- var _a7, _b7, _c, _d;
35619
+ var _a8, _b7, _c, _d;
35661
35620
  return /* @__PURE__ */ import_react256.default.createElement(
35662
35621
  ConnectivityTestStepResult,
35663
35622
  {
@@ -35668,7 +35627,7 @@ var MediaServerResult = ({ result }) => {
35668
35627
  DetailedInfo,
35669
35628
  {
35670
35629
  title: "Media Captured",
35671
- value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
35630
+ value: ((_a8 = result == null ? void 0 : result.stats) == null ? void 0 : _a8.audio.bytesSent) ? "Yes" : "No",
35672
35631
  Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? import_react_icons114.CheckCircleIcon : import_react_icons114.CrossCircleIcon
35673
35632
  }
35674
35633
  ), /* @__PURE__ */ import_react256.default.createElement(
@@ -35698,10 +35657,10 @@ var SignallingResult = ({ result }) => {
35698
35657
  ), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: import_react_icons114.LinkIcon })));
35699
35658
  };
35700
35659
  var AudioStats = ({ stats }) => {
35701
- return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
35660
+ return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter} s` })));
35702
35661
  };
35703
35662
  var VideoStats = ({ stats }) => {
35704
- return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
35663
+ return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter} s` })));
35705
35664
  };
35706
35665
  var Footer3 = ({
35707
35666
  error,
@@ -35716,13 +35675,13 @@ var ConnectivityTestReport = ({
35716
35675
  progress,
35717
35676
  startTest
35718
35677
  }) => {
35719
- var _a7, _b7, _c, _d;
35678
+ var _a8, _b7, _c, _d;
35720
35679
  if (error) {
35721
35680
  return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, /* @__PURE__ */ import_react256.default.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ import_react256.default.createElement(import_react_icons114.CrossCircleIcon, null)), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ import_react256.default.createElement(Footer3, { restart: startTest, error }));
35722
35681
  }
35723
35682
  if (result) {
35724
35683
  console.log(result);
35725
- return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, /* @__PURE__ */ import_react256.default.createElement(TestContainer, null, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ import_react256.default.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ import_react256.default.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ import_react256.default.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ import_react256.default.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ import_react256.default.createElement(Footer3, { result, restart: startTest, error }));
35684
+ return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, /* @__PURE__ */ import_react256.default.createElement(TestContainer, null, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ import_react256.default.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ import_react256.default.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ import_react256.default.createElement(AudioStats, { stats: (_b7 = (_a8 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a8.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ import_react256.default.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ import_react256.default.createElement(Footer3, { result, restart: startTest, error }));
35726
35685
  }
35727
35686
  if (progress !== void 0) {
35728
35687
  return /* @__PURE__ */ import_react256.default.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ import_react256.default.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ import_react256.default.createElement(