@100mslive/roomkit-react 0.3.17-alpha.1 → 0.3.17-alpha.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
107
107
  var define_process_env_default;
108
108
  var init_define_process_env = __esm({
109
109
  "<define:process.env>"() {
110
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", 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.7-alpha.1", 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.17-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", 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.17-alpha.1", 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.11", 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.2.8", 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.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", 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: "589", 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", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", 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.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240721.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.5/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", JOURNAL_STREAM: "8:1839", 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.17-alpha.1", 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: "10143763991", 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: "4d8b6da71642585295d7dfc3b05c43809f35ea8c", 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: "643ed4a2d79963ce78c8539272c639d33ab5a93b977b148da9d4cd26f3365d28", 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--1722254244580-0.7597921654222386:/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--1722254244381-0.5197699882516091:/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--1722254218535-0.07559875299263608:/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--1722254218346-0.7948146992289666:/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_5d9ac9a8-777a-47cd-b693-6136da04d5f6", INVOCATION_ID: "b157570d98a943c18f1a5bbcd1444fa2", 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: "618", 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 6", 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/25.2.9519653", 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.17-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", 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: "4d8b6da71642585295d7dfc3b05c43809f35ea8c", 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_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", 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_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", 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/25.2.9519653", 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://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/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/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f" };
110
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_71c81273-4f05-4298-9b43-ec13c17b6cb8", 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.7-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.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.17-alpha.10", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_71c81273-4f05-4298-9b43-ec13c17b6cb8", 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.17-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.11", 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.2.8", 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.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", 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: "596", 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", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", 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.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240730.2.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.5/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", JOURNAL_STREAM: "8:18879", 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.17-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: "10244504077", 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: "881ef62a6dbcdead74b8923522bd497f4cbe865d", 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: "f112af03976b27a2eba9b43762837d7c81ac1b08c3dfe4a09633c675626244dc", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", 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--1722842910937-0.43551810795963686:/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--1722842910738-0.0818460086124595:/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--1722842884606-0.9667718585509777:/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--1722842884426-0.07824407766293295:/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_afa860ec-386e-45b6-b27f-8a6ccd2dcd5c", INVOCATION_ID: "15d0c9002d8744f5bfbe91f80fd39955", 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: "627", 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 261", 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.0.12077973", 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.17-alpha.10", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-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_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: "881ef62a6dbcdead74b8923522bd497f4cbe865d", 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_71c81273-4f05-4298-9b43-ec13c17b6cb8", 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_71c81273-4f05-4298-9b43-ec13c17b6cb8", 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.0.12077973", 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://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/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.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_71c81273-4f05-4298-9b43-ec13c17b6cb8" };
111
111
  }
112
112
  });
113
113
 
@@ -5629,10 +5629,10 @@ var require_ua_parser = __commonJS({
5629
5629
  }
5630
5630
  };
5631
5631
  var rgxMapper = function(ua2, arrays) {
5632
- var i = 0, j2, k2, p, q2, matches, match17;
5632
+ var i = 0, j2, k, p, q2, matches, match17;
5633
5633
  while (i < arrays.length && !matches) {
5634
5634
  var regex = arrays[i], props = arrays[i + 1];
5635
- j2 = k2 = 0;
5635
+ j2 = k = 0;
5636
5636
  while (j2 < regex.length && !matches) {
5637
5637
  if (!regex[j2]) {
5638
5638
  break;
@@ -5640,7 +5640,7 @@ var require_ua_parser = __commonJS({
5640
5640
  matches = regex[j2++].exec(ua2);
5641
5641
  if (!!matches) {
5642
5642
  for (p = 0; p < props.length; p++) {
5643
- match17 = matches[++k2];
5643
+ match17 = matches[++k];
5644
5644
  q2 = props[p];
5645
5645
  if (typeof q2 === OBJ_TYPE && q2.length > 0) {
5646
5646
  if (q2.length === 2) {
@@ -8668,9 +8668,9 @@ var require_parser = __commonJS({
8668
8668
  var validLine = RegExp.prototype.test.bind(/^([a-z])=(.*)/);
8669
8669
  exports.parse = function(sdp2) {
8670
8670
  var session = {}, media = [], location = session;
8671
- sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(l) {
8672
- var type = l[0];
8673
- var content = l.slice(2);
8671
+ sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(l2) {
8672
+ var type = l2[0];
8673
+ var content = l2.slice(2);
8674
8674
  if (type === "m") {
8675
8675
  media.push({ rtp: [], fmtp: [] });
8676
8676
  location = media[media.length - 1];
@@ -8869,13 +8869,13 @@ var require_react_is_production_min = __commonJS({
8869
8869
  init_define_process_env();
8870
8870
  var b2 = "function" === typeof Symbol && Symbol.for;
8871
8871
  var c = b2 ? Symbol.for("react.element") : 60103;
8872
- var d2 = b2 ? Symbol.for("react.portal") : 60106;
8872
+ var d = b2 ? Symbol.for("react.portal") : 60106;
8873
8873
  var e = b2 ? Symbol.for("react.fragment") : 60107;
8874
8874
  var f2 = b2 ? Symbol.for("react.strict_mode") : 60108;
8875
8875
  var g = b2 ? Symbol.for("react.profiler") : 60114;
8876
8876
  var h = b2 ? Symbol.for("react.provider") : 60109;
8877
- var k2 = b2 ? Symbol.for("react.context") : 60110;
8878
- var l = b2 ? Symbol.for("react.async_mode") : 60111;
8877
+ var k = b2 ? Symbol.for("react.context") : 60110;
8878
+ var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
8879
8879
  var m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111;
8880
8880
  var n = b2 ? Symbol.for("react.forward_ref") : 60112;
8881
8881
  var p = b2 ? Symbol.for("react.suspense") : 60113;
@@ -8886,13 +8886,13 @@ var require_react_is_production_min = __commonJS({
8886
8886
  var w = b2 ? Symbol.for("react.fundamental") : 60117;
8887
8887
  var x = b2 ? Symbol.for("react.responder") : 60118;
8888
8888
  var y2 = b2 ? Symbol.for("react.scope") : 60119;
8889
- function z(a2) {
8889
+ function z2(a2) {
8890
8890
  if ("object" === typeof a2 && null !== a2) {
8891
8891
  var u = a2.$$typeof;
8892
8892
  switch (u) {
8893
8893
  case c:
8894
8894
  switch (a2 = a2.type, a2) {
8895
- case l:
8895
+ case l2:
8896
8896
  case m2:
8897
8897
  case e:
8898
8898
  case g:
@@ -8901,7 +8901,7 @@ var require_react_is_production_min = __commonJS({
8901
8901
  return a2;
8902
8902
  default:
8903
8903
  switch (a2 = a2 && a2.$$typeof, a2) {
8904
- case k2:
8904
+ case k:
8905
8905
  case n:
8906
8906
  case t:
8907
8907
  case r:
@@ -8911,68 +8911,68 @@ var require_react_is_production_min = __commonJS({
8911
8911
  return u;
8912
8912
  }
8913
8913
  }
8914
- case d2:
8914
+ case d:
8915
8915
  return u;
8916
8916
  }
8917
8917
  }
8918
8918
  }
8919
- function A(a2) {
8920
- return z(a2) === m2;
8919
+ function A2(a2) {
8920
+ return z2(a2) === m2;
8921
8921
  }
8922
- exports.AsyncMode = l;
8922
+ exports.AsyncMode = l2;
8923
8923
  exports.ConcurrentMode = m2;
8924
- exports.ContextConsumer = k2;
8924
+ exports.ContextConsumer = k;
8925
8925
  exports.ContextProvider = h;
8926
8926
  exports.Element = c;
8927
8927
  exports.ForwardRef = n;
8928
8928
  exports.Fragment = e;
8929
8929
  exports.Lazy = t;
8930
8930
  exports.Memo = r;
8931
- exports.Portal = d2;
8931
+ exports.Portal = d;
8932
8932
  exports.Profiler = g;
8933
8933
  exports.StrictMode = f2;
8934
8934
  exports.Suspense = p;
8935
8935
  exports.isAsyncMode = function(a2) {
8936
- return A(a2) || z(a2) === l;
8936
+ return A2(a2) || z2(a2) === l2;
8937
8937
  };
8938
- exports.isConcurrentMode = A;
8938
+ exports.isConcurrentMode = A2;
8939
8939
  exports.isContextConsumer = function(a2) {
8940
- return z(a2) === k2;
8940
+ return z2(a2) === k;
8941
8941
  };
8942
8942
  exports.isContextProvider = function(a2) {
8943
- return z(a2) === h;
8943
+ return z2(a2) === h;
8944
8944
  };
8945
8945
  exports.isElement = function(a2) {
8946
8946
  return "object" === typeof a2 && null !== a2 && a2.$$typeof === c;
8947
8947
  };
8948
8948
  exports.isForwardRef = function(a2) {
8949
- return z(a2) === n;
8949
+ return z2(a2) === n;
8950
8950
  };
8951
8951
  exports.isFragment = function(a2) {
8952
- return z(a2) === e;
8952
+ return z2(a2) === e;
8953
8953
  };
8954
8954
  exports.isLazy = function(a2) {
8955
- return z(a2) === t;
8955
+ return z2(a2) === t;
8956
8956
  };
8957
8957
  exports.isMemo = function(a2) {
8958
- return z(a2) === r;
8958
+ return z2(a2) === r;
8959
8959
  };
8960
8960
  exports.isPortal = function(a2) {
8961
- return z(a2) === d2;
8961
+ return z2(a2) === d;
8962
8962
  };
8963
8963
  exports.isProfiler = function(a2) {
8964
- return z(a2) === g;
8964
+ return z2(a2) === g;
8965
8965
  };
8966
8966
  exports.isStrictMode = function(a2) {
8967
- return z(a2) === f2;
8967
+ return z2(a2) === f2;
8968
8968
  };
8969
8969
  exports.isSuspense = function(a2) {
8970
- return z(a2) === p;
8970
+ return z2(a2) === p;
8971
8971
  };
8972
8972
  exports.isValidElementType = function(a2) {
8973
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8973
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8974
8974
  };
8975
- exports.typeOf = z;
8975
+ exports.typeOf = z2;
8976
8976
  }
8977
8977
  });
8978
8978
 
@@ -12001,8 +12001,8 @@ function useBorderAudioLevel(audioTrackId) {
12001
12001
  });
12002
12002
  return ref;
12003
12003
  }
12004
- var sigmoid = (z) => {
12005
- return 1 / (1 + Math.exp(-z));
12004
+ var sigmoid = (z2) => {
12005
+ return 1 / (1 + Math.exp(-z2));
12006
12006
  };
12007
12007
 
12008
12008
  // src/AudioLevel/AudioLevel.tsx
@@ -12134,12 +12134,12 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
12134
12134
  if (!bytes) {
12135
12135
  return "-";
12136
12136
  }
12137
- const k2 = 1024;
12137
+ const k = 1024;
12138
12138
  const dm2 = decimals < 0 ? 0 : decimals;
12139
12139
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
12140
- let i = Math.floor(Math.log(bytes) / Math.log(k2));
12140
+ let i = Math.floor(Math.log(bytes) / Math.log(k));
12141
12141
  i === 0 && i++;
12142
- return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(dm2))} ${sizes[i]}`;
12142
+ return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
12143
12143
  };
12144
12144
 
12145
12145
  // src/Stats/StyledStats.tsx
@@ -12924,6 +12924,7 @@ import {
12924
12924
  // src/Prebuilt/components/AppData/AppData.tsx
12925
12925
  init_define_process_env();
12926
12926
  import React23, { useEffect as useEffect5, useMemo as useMemo4, useRef as useRef7 } from "react";
12927
+ import { useMedia } from "react-use";
12927
12928
  import {
12928
12929
  HMSRoomState,
12929
12930
  selectFullAppData,
@@ -13667,6 +13668,22 @@ var useSidepaneReset = () => {
13667
13668
  return resetSidepane;
13668
13669
  };
13669
13670
 
13671
+ // src/Prebuilt/components/MoreSettings/constants.ts
13672
+ init_define_process_env();
13673
+ var trackSourceOptions = [
13674
+ { label: "All Track Sources", value: "" },
13675
+ { label: "regular", value: "regular" },
13676
+ { label: "screen", value: "screen" },
13677
+ { label: "audioplaylist", value: "audioplaylist" },
13678
+ { label: "videoplaylist", value: "videoplaylist" }
13679
+ ];
13680
+ var trackTypeOptions = [
13681
+ { label: "All Track Types", value: "" },
13682
+ { label: "audio", value: "audio" },
13683
+ { label: "video", value: "video" }
13684
+ ];
13685
+ var DEFAULT_TILES_IN_VIEW = { MWEB: 4, DESKTOP: 9 };
13686
+
13670
13687
  // src/Prebuilt/components/AppData/AppData.tsx
13671
13688
  var initialAppData = {
13672
13689
  [APP_DATA.uiSettings]: {
@@ -13721,6 +13738,7 @@ var AppData = React23.memo(() => {
13721
13738
  const { isLocalVideoEnabled } = useAVToggle();
13722
13739
  const sidepaneOpenedRef = useRef7(false);
13723
13740
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
13741
+ const isMobile = useMedia(config.media.md);
13724
13742
  useEffect5(() => {
13725
13743
  var _a8;
13726
13744
  if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
@@ -13751,10 +13769,10 @@ var AppData = React23.memo(() => {
13751
13769
  const updatedSettings = __spreadProps(__spreadValues({}, uiSettings), {
13752
13770
  [UI_SETTINGS.isAudioOnly]: void 0,
13753
13771
  [UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID,
13754
- [UI_SETTINGS.maxTileCount]: ((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || 9
13772
+ [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
13755
13773
  });
13756
13774
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
13757
- }, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout]);
13775
+ }, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout, isMobile]);
13758
13776
  useEffect5(() => {
13759
13777
  if (!preferences.subscribedNotifications) {
13760
13778
  return;
@@ -13951,12 +13969,12 @@ import {
13951
13969
  // src/Prebuilt/components/Footer/Footer.tsx
13952
13970
  init_define_process_env();
13953
13971
  import React86, { useEffect as useEffect25 } from "react";
13954
- import { useMedia as useMedia14 } from "react-use";
13972
+ import { useMedia as useMedia15 } from "react-use";
13955
13973
  import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
13956
13974
 
13957
13975
  // src/Prebuilt/components/AudioVideoToggle.tsx
13958
13976
  init_define_process_env();
13959
- import React33, { Fragment as Fragment3, useEffect as useEffect10, useState as useState10 } from "react";
13977
+ import React33, { Fragment as Fragment3, useCallback as useCallback8, useEffect as useEffect10, useState as useState10 } from "react";
13960
13978
  import { HMSKrispPlugin } from "@100mslive/hms-noise-cancellation";
13961
13979
  import {
13962
13980
  DeviceType as DeviceType2,
@@ -13971,7 +13989,8 @@ import {
13971
13989
  useAVToggle as useAVToggle2,
13972
13990
  useDevices as useDevices2,
13973
13991
  useHMSActions as useHMSActions7,
13974
- useHMSStore as useHMSStore8
13992
+ useHMSStore as useHMSStore8,
13993
+ useHMSVanillaStore as useHMSVanillaStore4
13975
13994
  } from "@100mslive/react-sdk";
13976
13995
  import {
13977
13996
  AudioLevelIcon,
@@ -14209,7 +14228,7 @@ var ActionTile = {
14209
14228
  // src/Prebuilt/components/Settings/SettingsModal.jsx
14210
14229
  init_define_process_env();
14211
14230
  import React32, { useCallback as useCallback7, useEffect as useEffect9, useState as useState9 } from "react";
14212
- import { useMedia as useMedia2 } from "react-use";
14231
+ import { useMedia as useMedia3 } from "react-use";
14213
14232
  import { ChevronLeftIcon, CrossIcon as CrossIcon3, GridFourIcon, NotificationsIcon, SettingsIcon } from "@100mslive/react-icons";
14214
14233
 
14215
14234
  // src/Sheet/index.ts
@@ -14320,7 +14339,7 @@ var Sheet = {
14320
14339
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
14321
14340
  init_define_process_env();
14322
14341
  import React30, { Fragment as Fragment2, useEffect as useEffect8, useRef as useRef9, useState as useState8 } from "react";
14323
- import { useMedia } from "react-use";
14342
+ import { useMedia as useMedia2 } from "react-use";
14324
14343
  import {
14325
14344
  DeviceType,
14326
14345
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled2,
@@ -14417,7 +14436,7 @@ var Settings = ({ setHide }) => {
14417
14436
  const trackSelector = selectVideoTrackByID(videoTrackId);
14418
14437
  const hmsActions = useHMSActions6();
14419
14438
  const track = useHMSStore7(trackSelector);
14420
- const isMobile = useMedia(config.media.md);
14439
+ const isMobile = useMedia2(config.media.md);
14421
14440
  useEffect8(() => {
14422
14441
  if (isMobile) {
14423
14442
  hmsActions.refreshDevices();
@@ -14655,7 +14674,7 @@ var settingsList = [
14655
14674
  ];
14656
14675
  var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ React32.createElement(React32.Fragment, null) }) => {
14657
14676
  const mediaQueryLg = config.media.md;
14658
- const isMobile = useMedia2(mediaQueryLg);
14677
+ const isMobile = useMedia3(mediaQueryLg);
14659
14678
  const [showSetting, setShowSetting] = useState9(
14660
14679
  () => settingsList.reduce((obj, { tabName }) => __spreadProps(__spreadValues({}, obj), { [tabName]: true }), {})
14661
14680
  );
@@ -14946,25 +14965,30 @@ var OptionLabel = ({ children, icon }) => {
14946
14965
  );
14947
14966
  };
14948
14967
  var useNoiseCancellationWithPlugin = () => {
14968
+ var _a7;
14949
14969
  const actions = useHMSActions7();
14950
14970
  const [inProgress, setInProgress] = useState10(false);
14951
14971
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
14952
- const setNoiseCancellationWithPlugin = (enabled) => __async(void 0, null, function* () {
14953
- if (inProgress) {
14954
- return;
14955
- }
14956
- if (!krispPlugin.checkSupport().isSupported) {
14957
- throw Error("Krisp plugin is not supported");
14958
- }
14959
- setInProgress(true);
14960
- if (enabled) {
14961
- yield actions.addPluginToAudioTrack(krispPlugin);
14962
- } else {
14963
- yield actions.removePluginFromAudioTrack(krispPlugin);
14964
- }
14965
- setNoiseCancellationEnabled(enabled);
14966
- setInProgress(false);
14967
- });
14972
+ const isEnabledForRoom = (_a7 = useHMSStore8(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
14973
+ const setNoiseCancellationWithPlugin = useCallback8(
14974
+ (enabled) => __async(void 0, null, function* () {
14975
+ if (!isEnabledForRoom || inProgress) {
14976
+ return;
14977
+ }
14978
+ if (!krispPlugin.checkSupport().isSupported) {
14979
+ throw Error("Krisp plugin is not supported");
14980
+ }
14981
+ setInProgress(true);
14982
+ if (enabled) {
14983
+ yield actions.addPluginToAudioTrack(krispPlugin);
14984
+ } else {
14985
+ yield actions.removePluginFromAudioTrack(krispPlugin);
14986
+ }
14987
+ setNoiseCancellationEnabled(enabled);
14988
+ setInProgress(false);
14989
+ }),
14990
+ [actions, inProgress, isEnabledForRoom, setNoiseCancellationEnabled]
14991
+ );
14968
14992
  return {
14969
14993
  setNoiseCancellationWithPlugin,
14970
14994
  inProgress
@@ -15102,6 +15126,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
15102
15126
  const localPeer = useHMSStore8(selectLocalPeer);
15103
15127
  const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = useAVToggle2();
15104
15128
  const actions = useHMSActions7();
15129
+ const vanillaStore = useHMSVanillaStore4();
15105
15130
  const videoTrackId = useHMSStore8(selectLocalVideoTrackID2);
15106
15131
  const localVideoTrack = useHMSStore8(selectVideoTrackByID2(videoTrackId));
15107
15132
  const roomState = useHMSStore8(selectRoomState2);
@@ -15116,7 +15141,9 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
15116
15141
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
15117
15142
  useEffect10(() => {
15118
15143
  (() => __async(void 0, null, function* () {
15119
- if (isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
15144
+ var _a7;
15145
+ const isEnabledForRoom = (_a7 = vanillaStore.getState(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15146
+ if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
15120
15147
  try {
15121
15148
  yield setNoiseCancellationWithPlugin(true);
15122
15149
  ToastManager.addToast({
@@ -15225,7 +15252,7 @@ var CaptionIcon = () => {
15225
15252
  // src/Prebuilt/components/EmojiReaction.jsx
15226
15253
  init_define_process_env();
15227
15254
  import React36, { useState as useState12 } from "react";
15228
- import { useMedia as useMedia4 } from "react-use";
15255
+ import { useMedia as useMedia5 } from "react-use";
15229
15256
  import data from "@emoji-mart/data/sets/14/apple.json";
15230
15257
  import { init } from "emoji-mart";
15231
15258
  import {
@@ -15283,8 +15310,8 @@ var useDropdownList = ({ name, open }) => {
15283
15310
 
15284
15311
  // src/Prebuilt/common/hooks.ts
15285
15312
  init_define_process_env();
15286
- import { useCallback as useCallback8, useEffect as useEffect12, useMemo as useMemo5, useRef as useRef10, useState as useState11 } from "react";
15287
- import { useMedia as useMedia3 } from "react-use";
15313
+ import { useCallback as useCallback9, useEffect as useEffect12, useMemo as useMemo5, useRef as useRef10, useState as useState11 } from "react";
15314
+ import { useMedia as useMedia4 } from "react-use";
15288
15315
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
15289
15316
  import {
15290
15317
  parsedUserAgent as parsedUserAgent2,
@@ -15301,7 +15328,7 @@ import {
15301
15328
  selectRolesMap,
15302
15329
  useHMSActions as useHMSActions8,
15303
15330
  useHMSStore as useHMSStore10,
15304
- useHMSVanillaStore as useHMSVanillaStore4
15331
+ useHMSVanillaStore as useHMSVanillaStore5
15305
15332
  } from "@100mslive/react-sdk";
15306
15333
  var useFilteredRoles = () => {
15307
15334
  var _a7;
@@ -15333,7 +15360,7 @@ var useParticipants = (params) => {
15333
15360
  const availableRoles = useHMSStore10(selectAvailableRoleNames);
15334
15361
  let participantList = useHMSStore10(isConnected ? selectPeers : selectRemotePeers);
15335
15362
  const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
15336
- const vanillaStore = useHMSVanillaStore4();
15363
+ const vanillaStore = useHMSVanillaStore5();
15337
15364
  if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
15338
15365
  participantList = participantList.filter((peer) => {
15339
15366
  return vanillaStore.getState(selectPeerMetadata(peer.id)).isHandRaised;
@@ -15350,7 +15377,7 @@ var useParticipants = (params) => {
15350
15377
  };
15351
15378
  var useIsLandscape = () => {
15352
15379
  const isMobile = parsedUserAgent2.getDevice().type === "mobile";
15353
- const isLandscape = useMedia3(config.media.ls);
15380
+ const isLandscape = useMedia4(config.media.ls);
15354
15381
  return isMobile && isLandscape;
15355
15382
  };
15356
15383
  var useLandscapeHLSStream = () => {
@@ -15359,12 +15386,12 @@ var useLandscapeHLSStream = () => {
15359
15386
  return isLandscape && screenType === "hls_live_streaming";
15360
15387
  };
15361
15388
  var useMobileHLSStream = () => {
15362
- const isMobile = useMedia3(config.media.md);
15389
+ const isMobile = useMedia4(config.media.md);
15363
15390
  const { screenType } = useRoomLayoutConferencingScreen();
15364
15391
  return isMobile && screenType === "hls_live_streaming";
15365
15392
  };
15366
15393
  var useKeyboardHandler = (isPaused, hlsPlayer) => {
15367
- const handleKeyEvent = useCallback8(
15394
+ const handleKeyEvent = useCallback9(
15368
15395
  (event) => __async(void 0, null, function* () {
15369
15396
  switch (event.key) {
15370
15397
  case " ":
@@ -15396,7 +15423,7 @@ var useRecordingHandler = () => {
15396
15423
  setRecordingState(false);
15397
15424
  }
15398
15425
  }, [recordingStarted, recordingState.browser.error, setRecordingState]);
15399
- const startRecording = useCallback8(
15426
+ const startRecording = useCallback9(
15400
15427
  (resolution = null) => __async(void 0, null, function* () {
15401
15428
  try {
15402
15429
  setRecordingState(true);
@@ -15476,8 +15503,8 @@ var EmojiReaction = ({ showCard = false }) => {
15476
15503
  useDropdownList({ open, name: "EmojiReaction" });
15477
15504
  const roles = useHMSStore11(selectAvailableRoleNames2);
15478
15505
  const localPeerId = useHMSStore11(selectLocalPeerID);
15479
- const isMobile = useMedia4(config.media.md);
15480
- const isLandscape = useMedia4(config.media.ls);
15506
+ const isMobile = useMedia5(config.media.md);
15507
+ const isLandscape = useMedia5(config.media.ls);
15481
15508
  const isMobileHLSStream = useMobileHLSStream();
15482
15509
  const isLandscapeStream = useLandscapeHLSStream();
15483
15510
  const { sendEvent } = useCustomEvent({
@@ -15519,7 +15546,7 @@ var EmojiReaction = ({ showCard = false }) => {
15519
15546
  // src/Prebuilt/components/Leave/LeaveRoom.tsx
15520
15547
  init_define_process_env();
15521
15548
  import React42 from "react";
15522
- import { useMedia as useMedia5 } from "react-use";
15549
+ import { useMedia as useMedia6 } from "react-use";
15523
15550
  import {
15524
15551
  selectHLSState as selectHLSState3,
15525
15552
  selectIsConnectedToRoom as selectIsConnectedToRoom5,
@@ -15874,7 +15901,7 @@ var LeaveRoom = ({
15874
15901
  }) => {
15875
15902
  const isConnected = useHMSStore14(selectIsConnectedToRoom5);
15876
15903
  const permissions = useHMSStore14(selectPermissions4);
15877
- const isMobile = useMedia5(config.media.md);
15904
+ const isMobile = useMedia6(config.media.md);
15878
15905
  const rolesMap = useHMSStore14(selectRolesMap2);
15879
15906
  const streamingPermissionRoles = Object.keys(rolesMap).filter((roleName) => {
15880
15907
  const roleObj = rolesMap[roleName];
@@ -15920,7 +15947,7 @@ var LeaveRoom = ({
15920
15947
  // src/Prebuilt/components/MoreSettings/MoreSettings.tsx
15921
15948
  init_define_process_env();
15922
15949
  import React68 from "react";
15923
- import { useMedia as useMedia12 } from "react-use";
15950
+ import { useMedia as useMedia13 } from "react-use";
15924
15951
 
15925
15952
  // src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx
15926
15953
  init_define_process_env();
@@ -15952,8 +15979,8 @@ import React44 from "react";
15952
15979
 
15953
15980
  // src/Prebuilt/components/PIP/PIPComponent.tsx
15954
15981
  init_define_process_env();
15955
- import React43, { useCallback as useCallback9, useEffect as useEffect13, useState as useState15 } from "react";
15956
- import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions10, useHMSVanillaStore as useHMSVanillaStore5 } from "@100mslive/react-sdk";
15982
+ import React43, { useCallback as useCallback10, useEffect as useEffect13, useState as useState15 } from "react";
15983
+ import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions10, useHMSVanillaStore as useHMSVanillaStore6 } from "@100mslive/react-sdk";
15957
15984
  import { PipIcon } from "@100mslive/react-icons";
15958
15985
 
15959
15986
  // src/Prebuilt/components/PIP/PIPManager.ts
@@ -16425,8 +16452,8 @@ var MediaSession = new SetupMediaSession();
16425
16452
  var PIPComponent = ({ content = null }) => {
16426
16453
  const [isPipOn, setIsPipOn] = useState15(PictureInPicture.isOn());
16427
16454
  const hmsActions = useHMSActions10();
16428
- const store = useHMSVanillaStore5();
16429
- const onPipToggle = useCallback9(() => {
16455
+ const store = useHMSVanillaStore6();
16456
+ const onPipToggle = useCallback10(() => {
16430
16457
  if (!isPipOn) {
16431
16458
  PictureInPicture.start(hmsActions, setIsPipOn).catch((err) => console.error("error in starting pip", err));
16432
16459
  MediaSession.setup(hmsActions, store);
@@ -16440,7 +16467,7 @@ var PIPComponent = ({ content = null }) => {
16440
16467
  return /* @__PURE__ */ React43.createElement(React43.Fragment, null, content ? /* @__PURE__ */ React43.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ React43.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ React43.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ React43.createElement(PipIcon, null))));
16441
16468
  };
16442
16469
  var ActivatedPIP = () => {
16443
- const store = useHMSVanillaStore5();
16470
+ const store = useHMSVanillaStore6();
16444
16471
  const pinnedTrack = usePinnedTrack();
16445
16472
  useEffect13(() => {
16446
16473
  function subscribeToStore() {
@@ -16481,7 +16508,7 @@ var PIP = ({ content = null }) => {
16481
16508
 
16482
16509
  // src/Prebuilt/components/PIP/PIPChat.tsx
16483
16510
  init_define_process_env();
16484
- import React49, { useCallback as useCallback14, useEffect as useEffect16, useMemo as useMemo7, useState as useState19 } from "react";
16511
+ import React49, { useCallback as useCallback15, useEffect as useEffect16, useMemo as useMemo7, useState as useState19 } from "react";
16485
16512
  import {
16486
16513
  selectHMSMessages as selectHMSMessages2,
16487
16514
  selectLocalPeerID as selectLocalPeerID3,
@@ -16528,8 +16555,8 @@ var TextArea = styled("textarea", {
16528
16555
 
16529
16556
  // src/Prebuilt/components/Chat/ChatBody.tsx
16530
16557
  init_define_process_env();
16531
- import React48, { Fragment as Fragment6, useCallback as useCallback13, useEffect as useEffect15, useLayoutEffect, useMemo as useMemo6, useRef as useRef11, useState as useState18 } from "react";
16532
- import { useMedia as useMedia7 } from "react-use";
16558
+ import React48, { Fragment as Fragment6, useCallback as useCallback14, useEffect as useEffect15, useLayoutEffect, useMemo as useMemo6, useRef as useRef11, useState as useState18 } from "react";
16559
+ import { useMedia as useMedia8 } from "react-use";
16533
16560
  import AutoSizer from "react-virtualized-auto-sizer";
16534
16561
  import { VariableSizeList } from "react-window";
16535
16562
  import {
@@ -16542,13 +16569,13 @@ import {
16542
16569
  selectUnreadHMSMessagesCount,
16543
16570
  useHMSActions as useHMSActions14,
16544
16571
  useHMSStore as useHMSStore18,
16545
- useHMSVanillaStore as useHMSVanillaStore7
16572
+ useHMSVanillaStore as useHMSVanillaStore8
16546
16573
  } from "@100mslive/react-sdk";
16547
16574
  import { SolidPinIcon } from "@100mslive/react-icons";
16548
16575
 
16549
16576
  // src/Prebuilt/components/Chat/ChatActions.tsx
16550
16577
  init_define_process_env();
16551
- import React46, { useCallback as useCallback12, useState as useState16 } from "react";
16578
+ import React46, { useCallback as useCallback13, useState as useState16 } from "react";
16552
16579
  import { selectLocalPeerName, selectPermissions as selectPermissions5, useHMSActions as useHMSActions13, useHMSStore as useHMSStore16 } from "@100mslive/react-sdk";
16553
16580
  import {
16554
16581
  CopyIcon as CopyIcon2,
@@ -16576,12 +16603,12 @@ var MwebChatOption = ({
16576
16603
 
16577
16604
  // src/Prebuilt/components/hooks/useChatBlacklist.ts
16578
16605
  init_define_process_env();
16579
- import { useCallback as useCallback10 } from "react";
16606
+ import { useCallback as useCallback11 } from "react";
16580
16607
  import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions11, useHMSStore as useHMSStore15 } from "@100mslive/react-sdk";
16581
16608
  var useChatBlacklist = (sessionStoreKey) => {
16582
16609
  const hmsActions = useHMSActions11();
16583
16610
  const blacklistedIDs = useHMSStore15(selectSessionStore2(sessionStoreKey));
16584
- const blacklistItem = useCallback10(
16611
+ const blacklistItem = useCallback11(
16585
16612
  (blacklistID) => __async(void 0, null, function* () {
16586
16613
  yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
16587
16614
  }),
@@ -16597,17 +16624,17 @@ var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
16597
16624
 
16598
16625
  // src/Prebuilt/components/hooks/usePinnedMessages.ts
16599
16626
  init_define_process_env();
16600
- import { useCallback as useCallback11 } from "react";
16627
+ import { useCallback as useCallback12 } from "react";
16601
16628
  import {
16602
16629
  selectPeerNameByID,
16603
16630
  selectSessionStore as selectSessionStore3,
16604
16631
  useHMSActions as useHMSActions12,
16605
- useHMSVanillaStore as useHMSVanillaStore6
16632
+ useHMSVanillaStore as useHMSVanillaStore7
16606
16633
  } from "@100mslive/react-sdk";
16607
16634
  var usePinnedMessages = () => {
16608
16635
  const hmsActions = useHMSActions12();
16609
- const vanillaStore = useHMSVanillaStore6();
16610
- const setPinnedMessages = useCallback11(
16636
+ const vanillaStore = useHMSVanillaStore7();
16637
+ const setPinnedMessages = useCallback12(
16611
16638
  (message, pinnedBy) => __async(void 0, null, function* () {
16612
16639
  const peerName = vanillaStore.getState(selectPeerNameByID(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
16613
16640
  const newPinnedMessage = { text: "", id: message.id, pinnedBy };
@@ -16623,7 +16650,7 @@ var usePinnedMessages = () => {
16623
16650
  }),
16624
16651
  [hmsActions, vanillaStore]
16625
16652
  );
16626
- const removePinnedMessage = useCallback11(
16653
+ const removePinnedMessage = useCallback12(
16627
16654
  (indexToRemove) => __async(void 0, null, function* () {
16628
16655
  const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
16629
16656
  if (pinnedMessages[indexToRemove]) {
@@ -16635,7 +16662,7 @@ var usePinnedMessages = () => {
16635
16662
  }),
16636
16663
  [hmsActions, vanillaStore]
16637
16664
  );
16638
- const unpinBlacklistedMessages = useCallback11(
16665
+ const unpinBlacklistedMessages = useCallback12(
16639
16666
  (blacklistedMessageIDSet) => __async(void 0, null, function* () {
16640
16667
  const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
16641
16668
  const filteredPinnedMessages = pinnedMessages == null ? void 0 : pinnedMessages.filter(
@@ -16682,14 +16709,14 @@ var ChatActions = ({
16682
16709
  "chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
16683
16710
  );
16684
16711
  const isSenderBlocked = useIsPeerBlacklisted({ peerCustomerUserId: message.senderUserId });
16685
- const updatePinnedMessages = useCallback12(
16712
+ const updatePinnedMessages = useCallback13(
16686
16713
  (messageID = "") => {
16687
16714
  const blacklistedMessageIDSet = /* @__PURE__ */ new Set([...blacklistedMessageIDs || [], messageID]);
16688
16715
  unpinBlacklistedMessages(blacklistedMessageIDSet);
16689
16716
  },
16690
16717
  [blacklistedMessageIDs, unpinBlacklistedMessages]
16691
16718
  );
16692
- const copyMessageContent = useCallback12(() => {
16719
+ const copyMessageContent = useCallback13(() => {
16693
16720
  try {
16694
16721
  navigator == null ? void 0 : navigator.clipboard.writeText(message.message);
16695
16722
  ToastManager.addToast({
@@ -16856,7 +16883,7 @@ var ChatActions = ({
16856
16883
  // src/Prebuilt/components/Chat/EmptyChat.tsx
16857
16884
  init_define_process_env();
16858
16885
  import React47 from "react";
16859
- import { useMedia as useMedia6 } from "react-use";
16886
+ import { useMedia as useMedia7 } from "react-use";
16860
16887
 
16861
16888
  // src/Prebuilt/images/empty-chat.svg
16862
16889
  var empty_chat_default = 'data:image/svg+xml,<svg width="184" height="133" viewBox="0 0 184 133" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path fill-rule="evenodd" clip-rule="evenodd" d="M144.885 91.3998C145.318 91.023 145.861 90.7947 146.433 90.7483L146.446 90.7473L169.355 89.1614C169.702 89.1376 170.049 89.2101 170.358 89.3712C170.662 89.5305 170.918 89.7702 171.096 90.0642C171.098 90.0672 171.1 90.0703 171.102 90.0734L171.104 90.0766C171.281 90.3744 171.373 90.7154 171.369 91.062C171.365 91.4097 171.265 91.7496 171.08 92.044L158.85 111.504C158.539 111.986 158.081 112.356 157.544 112.56C157.007 112.764 156.419 112.791 155.866 112.636C155.313 112.482 154.823 112.155 154.469 111.703C154.115 111.25 153.915 110.697 153.898 110.123C153.898 110.109 153.898 110.094 153.898 110.08L153.996 100.307L145.347 95.7858C145.334 95.779 145.321 95.7721 145.308 95.7649C144.811 95.4785 144.417 95.0404 144.186 94.5146C143.955 93.9888 143.898 93.4029 144.024 92.8425C144.15 92.2821 144.451 91.7765 144.885 91.3998ZM167.441 91.0088L146.603 92.8952C146.49 92.9053 146.383 92.9508 146.298 93.0251C146.211 93.1005 146.151 93.2016 146.125 93.3137C146.1 93.4257 146.112 93.5429 146.158 93.6481C146.202 93.7484 146.276 93.8327 146.369 93.89L155.26 98.296L167.441 91.0088ZM156.32 100.171L168.547 92.8564L157.039 110.339C156.976 110.434 156.886 110.506 156.78 110.547C156.673 110.587 156.555 110.593 156.444 110.562C156.334 110.531 156.236 110.466 156.165 110.375C156.097 110.289 156.058 110.184 156.052 110.075L156.32 100.171Z" fill="%23444954"/>%0A<path d="M83.3248 35.4156C71.7182 47.1017 51.2098 75.5175 62.0292 95.6918C75.5536 120.91 140.453 79.2983 115.364 67.6657C90.2756 56.0331 65.8818 122.018 101.568 120.391C116.398 118.62 131.221 114.699 145.703 105.512" stroke="%23293042" stroke-width="2.25" stroke-dasharray="6 6"/>%0A<rect x="0.00256348" y="0.5" width="173.524" height="58.3398" rx="29.1699" fill="%23272A31"/>%0A<g opacity="0.4">%0A<rect x="24.7526" y="20.9312" width="111" height="4.5" rx="2.25" fill="%23444954"/>%0A</g>%0A<g opacity="0.4">%0A<rect x="38.2526" y="34.4312" width="110.25" height="4.5" rx="2.25" fill="%23444954"/>%0A</g>%0A<path d="M40.3918 71.5547L28.4246 55.0999L52.3589 55.0999L40.3918 71.5547Z" fill="%23272A31"/>%0A</svg>%0A';
@@ -16866,7 +16893,7 @@ var EmptyChat = () => {
16866
16893
  var _a7;
16867
16894
  const { elements } = useRoomLayoutConferencingScreen();
16868
16895
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
16869
- const isMobile = useMedia6(config.media.md);
16896
+ const isMobile = useMedia7(config.media.md);
16870
16897
  const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
16871
16898
  const isMobileHLSStream = useMobileHLSStream();
16872
16899
  const isLandscapeStream = useLandscapeHLSStream();
@@ -17041,7 +17068,7 @@ var ChatMessage = React48.memo(
17041
17068
  var _a7, _b7, _c;
17042
17069
  const { elements } = useRoomLayoutConferencingScreen();
17043
17070
  const rowRef = useRef11(null);
17044
- const isMobile = useMedia7(config.media.md);
17071
+ const isMobile = useMedia8(config.media.md);
17045
17072
  const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
17046
17073
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
17047
17074
  const localPeerId = useHMSStore18(selectLocalPeerID2);
@@ -17222,7 +17249,7 @@ var MessageWrapper = React48.memo(
17222
17249
  );
17223
17250
  var VirtualizedChatMessages = React48.forwardRef(({ messages, scrollToBottom }, listRef) => {
17224
17251
  const hmsActions = useHMSActions14();
17225
- const itemKey2 = useCallback13((index, data3) => {
17252
+ const itemKey2 = useCallback14((index, data3) => {
17226
17253
  return data3[index].id;
17227
17254
  }, []);
17228
17255
  useEffect15(() => {
@@ -17282,7 +17309,7 @@ var ChatBody = React48.forwardRef(
17282
17309
  const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
17283
17310
  return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
17284
17311
  }, [blacklistedMessageIDs, messages]);
17285
- const vanillaStore = useHMSVanillaStore7();
17312
+ const vanillaStore = useHMSVanillaStore8();
17286
17313
  const rerenderOnFirstMount = useRef11(false);
17287
17314
  useEffect15(() => {
17288
17315
  const unsubscribe = vanillaStore.subscribe(() => {
@@ -17330,12 +17357,12 @@ var PinnedBy = ({
17330
17357
 
17331
17358
  // src/Prebuilt/components/PIP/PIPChat.tsx
17332
17359
  var PIPChat = () => {
17333
- var _a7, _b7, _c, _d, _e2, _f, _g, _h, _i, _j;
17360
+ var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j;
17334
17361
  const messages = useHMSStore19(selectHMSMessages2);
17335
17362
  const localPeerID = useHMSStore19(selectLocalPeerID3);
17336
17363
  const count = useHMSStore19(selectUnreadHMSMessagesCount2);
17337
17364
  const [unreadMessageCount, setUnreadMessageCount] = useState19(0);
17338
- const getSenderName = useCallback14(
17365
+ const getSenderName = useCallback15(
17339
17366
  (senderName, senderID) => {
17340
17367
  const slicedName = senderName.length > 10 ? senderName.slice(0, 10) + "..." : senderName;
17341
17368
  return slicedName + (senderID === localPeerID ? " (You)" : "");
@@ -17358,7 +17385,7 @@ var PIPChat = () => {
17358
17385
  const { elements } = useRoomLayoutConferencingScreen();
17359
17386
  const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
17360
17387
  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);
17361
- const getChatStatus = useCallback14(() => {
17388
+ const getChatStatus = useCallback15(() => {
17362
17389
  if (isLocalPeerBlacklisted)
17363
17390
  return "You've been blocked from sending messages";
17364
17391
  if (!isChatEnabled)
@@ -17468,7 +17495,7 @@ var PIPChat = () => {
17468
17495
  borderRadius: "4px",
17469
17496
  padding: "0 2px"
17470
17497
  },
17471
- defaultValue: ((_e2 = elements.chat) == null ? void 0 : _e2.public_chat_enabled) ? "Everyone" : (_g = (_f = elements.chat) == null ? void 0 : _f.roles_whitelist) == null ? void 0 : _g[0]
17498
+ defaultValue: ((_e = elements.chat) == null ? void 0 : _e.public_chat_enabled) ? "Everyone" : (_g = (_f = elements.chat) == null ? void 0 : _f.roles_whitelist) == null ? void 0 : _g[0]
17472
17499
  },
17473
17500
  (_i = (_h = elements.chat) == null ? void 0 : _h.roles_whitelist) == null ? void 0 : _i.map((role) => /* @__PURE__ */ React49.createElement("option", { key: role, value: role }, role)),
17474
17501
  ((_j = elements.chat) == null ? void 0 : _j.public_chat_enabled) ? /* @__PURE__ */ React49.createElement("option", { value: "Everyone" }, "Everyone") : ""
@@ -17557,7 +17584,7 @@ var PIPWindow = ({ pipWindow, children }) => {
17557
17584
  // src/Prebuilt/components/RoleChangeModal.tsx
17558
17585
  init_define_process_env();
17559
17586
  import React51, { useRef as useRef12, useState as useState20 } from "react";
17560
- import { useMedia as useMedia8 } from "react-use";
17587
+ import { useMedia as useMedia9 } from "react-use";
17561
17588
  import { selectAvailableRoleNames as selectAvailableRoleNames3, selectPeerByID, useHMSActions as useHMSActions15, useHMSStore as useHMSStore20 } from "@100mslive/react-sdk";
17562
17589
  import { ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon as ChevronUpIcon3, CrossIcon as CrossIcon8 } from "@100mslive/react-icons";
17563
17590
  var HighlightTerm = ({ value }) => {
@@ -17683,7 +17710,7 @@ var RoleChangeModal = ({
17683
17710
  onOpenChange
17684
17711
  }) => {
17685
17712
  const peer = useHMSStore20(selectPeerByID(peerId));
17686
- const isMobile = useMedia8(config.media.md);
17713
+ const isMobile = useMedia9(config.media.md);
17687
17714
  if (!peer) {
17688
17715
  return null;
17689
17716
  }
@@ -17701,7 +17728,7 @@ import { AlertTriangleIcon as AlertTriangleIcon3 } from "@100mslive/react-icons"
17701
17728
 
17702
17729
  // src/Prebuilt/components/Streaming/ResolutionInput.jsx
17703
17730
  init_define_process_env();
17704
- import React53, { useCallback as useCallback15, useState as useState21 } from "react";
17731
+ import React53, { useCallback as useCallback16, useState as useState21 } from "react";
17705
17732
  import { InfoIcon } from "@100mslive/react-icons";
17706
17733
 
17707
17734
  // src/Prebuilt/primitives/DialogContent.jsx
@@ -17863,7 +17890,7 @@ var DialogInputFile = (_a7) => {
17863
17890
  // src/Prebuilt/components/Streaming/ResolutionInput.jsx
17864
17891
  var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, testId }) => {
17865
17892
  const [resolution, setResolution] = useState21(RTMP_RECORD_DEFAULT_RESOLUTION);
17866
- const resolutionChangeHandler = useCallback15(
17893
+ const resolutionChangeHandler = useCallback16(
17867
17894
  (event) => {
17868
17895
  const { name, value } = event.target;
17869
17896
  let width = name === "resWidth" ? Number(value) : resolution.width;
@@ -18109,7 +18136,7 @@ var useTracksWithLabel = () => {
18109
18136
  return tracksWithLabels;
18110
18137
  };
18111
18138
  var LocalPeerStats = () => {
18112
- var _a7, _b7, _c, _d, _e2, _f, _g, _h, _i;
18139
+ var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
18113
18140
  const stats = useHMSStatsStore3(selectHMSStats3.localPeerStats);
18114
18141
  if (!stats) {
18115
18142
  return null;
@@ -18118,7 +18145,7 @@ var LocalPeerStats = () => {
18118
18145
  StatsRow2,
18119
18146
  {
18120
18147
  label: "Available Outgoing Bitrate",
18121
- value: formatBytes((_e2 = stats.publish) == null ? void 0 : _e2.availableOutgoingBitrate, "b/s")
18148
+ value: formatBytes((_e = stats.publish) == null ? void 0 : _e.availableOutgoingBitrate, "b/s")
18122
18149
  }
18123
18150
  ), /* @__PURE__ */ React55.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((_f = stats.publish) == null ? void 0 : _f.bytesSent) }), /* @__PURE__ */ React55.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes((_g = stats.subscribe) == null ? void 0 : _g.bytesReceived) }), /* @__PURE__ */ React55.createElement(
18124
18151
  StatsRow2,
@@ -18170,7 +18197,7 @@ var StatsRow2 = React55.memo(({ label, value }) => /* @__PURE__ */ React55.creat
18170
18197
 
18171
18198
  // src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
18172
18199
  init_define_process_env();
18173
- import React56, { useCallback as useCallback16, useRef as useRef15, useState as useState24 } from "react";
18200
+ import React56, { useCallback as useCallback17, useRef as useRef15, useState as useState24 } from "react";
18174
18201
  import { useHMSActions as useHMSActions17 } from "@100mslive/react-sdk";
18175
18202
  import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon3 } from "@100mslive/react-icons";
18176
18203
  var BulkRoleChangeModal = ({ onOpenChange }) => {
@@ -18185,7 +18212,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
18185
18212
  const [roleDialog, setRoleDialog] = useState24(false);
18186
18213
  const [errorMessage, setErrorMessage] = useState24("");
18187
18214
  const [isSubmiting, setIsSubmiting] = useState24(false);
18188
- const changeBulkRole = useCallback16(() => __async(void 0, null, function* () {
18215
+ const changeBulkRole = useCallback17(() => __async(void 0, null, function* () {
18189
18216
  if (selectedBulkRole.length > 0 && selectedRole) {
18190
18217
  try {
18191
18218
  setIsSubmiting(true);
@@ -18279,7 +18306,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
18279
18306
  // src/Prebuilt/components/MoreSettings/CaptionModal.tsx
18280
18307
  init_define_process_env();
18281
18308
  import React58 from "react";
18282
- import { useMedia as useMedia9 } from "react-use";
18309
+ import { useMedia as useMedia10 } from "react-use";
18283
18310
 
18284
18311
  // src/Prebuilt/components/MoreSettings/CaptionContent.tsx
18285
18312
  init_define_process_env();
@@ -18405,7 +18432,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
18405
18432
 
18406
18433
  // src/Prebuilt/components/MoreSettings/CaptionModal.tsx
18407
18434
  var CaptionModal = ({ onOpenChange }) => {
18408
- const isMobile = useMedia9(config.media.md);
18435
+ const isMobile = useMedia10(config.media.md);
18409
18436
  const props = {
18410
18437
  isMobile,
18411
18438
  onExit: () => {
@@ -18425,11 +18452,11 @@ import { ExpandIcon } from "@100mslive/react-icons";
18425
18452
 
18426
18453
  // src/Prebuilt/components/hooks/useFullscreen.ts
18427
18454
  init_define_process_env();
18428
- import { useCallback as useCallback17, useEffect as useEffect18, useState as useState25 } from "react";
18455
+ import { useCallback as useCallback18, useEffect as useEffect18, useState as useState25 } from "react";
18429
18456
  import screenfull from "screenfull";
18430
18457
  var useFullscreen = () => {
18431
18458
  const [isFullScreenEnabled, setIsFullScreenEnabled] = useState25(screenfull.isFullscreen);
18432
- const toggle = useCallback17(() => __async(void 0, null, function* () {
18459
+ const toggle = useCallback18(() => __async(void 0, null, function* () {
18433
18460
  if (!screenfull.isEnabled) {
18434
18461
  ToastManager.addToast({ title: "Fullscreen feature not supported" });
18435
18462
  return;
@@ -18486,7 +18513,7 @@ var FullScreenItem = () => {
18486
18513
 
18487
18514
  // src/Prebuilt/components/MoreSettings/MuteAllModal.tsx
18488
18515
  init_define_process_env();
18489
- import React61, { useCallback as useCallback18, useState as useState26 } from "react";
18516
+ import React61, { useCallback as useCallback19, useState as useState26 } from "react";
18490
18517
  import {
18491
18518
  selectAvailableRoleNames as selectAvailableRoleNames4,
18492
18519
  useHMSActions as useHMSActions19,
@@ -18498,23 +18525,6 @@ import { MicOffIcon as MicOffIcon2 } from "@100mslive/react-icons";
18498
18525
  init_define_process_env();
18499
18526
  import React60 from "react";
18500
18527
  import { selectPermissions as selectPermissions7, useHMSStore as useHMSStore24 } from "@100mslive/react-sdk";
18501
-
18502
- // src/Prebuilt/components/MoreSettings/constants.ts
18503
- init_define_process_env();
18504
- var trackSourceOptions = [
18505
- { label: "All Track Sources", value: "" },
18506
- { label: "regular", value: "regular" },
18507
- { label: "screen", value: "screen" },
18508
- { label: "audioplaylist", value: "audioplaylist" },
18509
- { label: "videoplaylist", value: "videoplaylist" }
18510
- ];
18511
- var trackTypeOptions = [
18512
- { label: "All Track Types", value: "" },
18513
- { label: "audio", value: "audio" },
18514
- { label: "video", value: "video" }
18515
- ];
18516
-
18517
- // src/Prebuilt/components/MoreSettings/MuteAllContent.tsx
18518
18528
  var MuteAllContent = (props) => {
18519
18529
  const roles = props.roles || [];
18520
18530
  const permissions = useHMSStore24(selectPermissions7);
@@ -18562,7 +18572,7 @@ var MuteAllModal = ({
18562
18572
  const [trackType, setTrackType] = useState26();
18563
18573
  const [selectedRole, setRole] = useState26();
18564
18574
  const [selectedSource, setSource] = useState26();
18565
- const muteAll = useCallback18(() => __async(void 0, null, function* () {
18575
+ const muteAll = useCallback19(() => __async(void 0, null, function* () {
18566
18576
  yield hmsActions.setRemoteTracksEnabled({
18567
18577
  enabled,
18568
18578
  type: trackType,
@@ -18592,19 +18602,19 @@ var MuteAllModal = ({
18592
18602
 
18593
18603
  // src/Prebuilt/components/hooks/useMetadata.tsx
18594
18604
  init_define_process_env();
18595
- import { useCallback as useCallback19 } from "react";
18605
+ import { useCallback as useCallback20 } from "react";
18596
18606
  import {
18597
18607
  selectHasPeerHandRaised,
18598
18608
  selectLocalPeerID as selectLocalPeerID5,
18599
18609
  selectPeerMetadata as selectPeerMetadata2,
18600
18610
  useHMSActions as useHMSActions20,
18601
18611
  useHMSStore as useHMSStore26,
18602
- useHMSVanillaStore as useHMSVanillaStore8
18612
+ useHMSVanillaStore as useHMSVanillaStore9
18603
18613
  } from "@100mslive/react-sdk";
18604
18614
  var useMyMetadata = () => {
18605
18615
  const hmsActions = useHMSActions20();
18606
18616
  const localPeerId = useHMSStore26(selectLocalPeerID5);
18607
- const vanillaStore = useHMSVanillaStore8();
18617
+ const vanillaStore = useHMSVanillaStore9();
18608
18618
  const metaData = useHMSStore26(selectPeerMetadata2(localPeerId));
18609
18619
  const isHandRaised = useHMSStore26(selectHasPeerHandRaised(localPeerId));
18610
18620
  const update = (updatedFields) => __async(void 0, null, function* () {
@@ -18617,7 +18627,7 @@ var useMyMetadata = () => {
18617
18627
  }
18618
18628
  return false;
18619
18629
  });
18620
- const toggleHandRaise = useCallback19(() => __async(void 0, null, function* () {
18630
+ const toggleHandRaise = useCallback20(() => __async(void 0, null, function* () {
18621
18631
  if (isHandRaised) {
18622
18632
  yield hmsActions.lowerLocalPeerHand();
18623
18633
  yield update({ handRaisedAt: void 0 });
@@ -18626,7 +18636,7 @@ var useMyMetadata = () => {
18626
18636
  yield update({ isBRBOn: false, handRaisedAt: Date.now() });
18627
18637
  }
18628
18638
  }), [isHandRaised]);
18629
- const toggleBRB = useCallback19(() => __async(void 0, null, function* () {
18639
+ const toggleBRB = useCallback20(() => __async(void 0, null, function* () {
18630
18640
  const newValue = !(metaData == null ? void 0 : metaData.isBRBOn);
18631
18641
  yield update({ isBRBOn: newValue });
18632
18642
  if (newValue) {
@@ -18937,8 +18947,8 @@ import {
18937
18947
 
18938
18948
  // src/Prebuilt/components/Header/StreamActions.tsx
18939
18949
  init_define_process_env();
18940
- import React64, { useCallback as useCallback21, useEffect as useEffect20, useRef as useRef16, useState as useState29 } from "react";
18941
- import { useMedia as useMedia10 } from "react-use";
18950
+ import React64, { useCallback as useCallback22, useEffect as useEffect20, useRef as useRef16, useState as useState29 } from "react";
18951
+ import { useMedia as useMedia11 } from "react-use";
18942
18952
 
18943
18953
  // ../hms-video-store/dist/index.js
18944
18954
  init_define_process_env();
@@ -19339,8 +19349,8 @@ function shimGetUserMedia(window2, browserDetails) {
19339
19349
  }
19340
19350
  if (matches) {
19341
19351
  return navigator2.mediaDevices.enumerateDevices().then((devices) => {
19342
- devices = devices.filter((d2) => d2.kind === "videoinput");
19343
- let dev = devices.find((d2) => matches.some((match17) => d2.label.toLowerCase().includes(match17)));
19352
+ devices = devices.filter((d) => d.kind === "videoinput");
19353
+ let dev = devices.find((d) => matches.some((match17) => d.label.toLowerCase().includes(match17)));
19344
19354
  if (!dev && devices.length && matches.includes("back")) {
19345
19355
  dev = devices[devices.length - 1];
19346
19356
  }
@@ -19468,15 +19478,15 @@ function shimOnTrack(window2) {
19468
19478
  window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
19469
19479
  if (!this._ontrackpoly) {
19470
19480
  this._ontrackpoly = (e) => {
19471
- e.stream.addEventListener("addtrack", (te2) => {
19481
+ e.stream.addEventListener("addtrack", (te) => {
19472
19482
  let receiver;
19473
19483
  if (window2.RTCPeerConnection.prototype.getReceivers) {
19474
- receiver = this.getReceivers().find((r) => r.track && r.track.id === te2.track.id);
19484
+ receiver = this.getReceivers().find((r) => r.track && r.track.id === te.track.id);
19475
19485
  } else {
19476
- receiver = { track: te2.track };
19486
+ receiver = { track: te.track };
19477
19487
  }
19478
19488
  const event = new Event("track");
19479
- event.track = te2.track;
19489
+ event.track = te.track;
19480
19490
  event.receiver = receiver;
19481
19491
  event.transceiver = { receiver };
19482
19492
  event.streams = [e.stream];
@@ -21009,7 +21019,7 @@ function shimParameterlessSetLocalDescription(window2, browserDetails) {
21009
21019
  return nativeSetLocalDescription.apply(this, [desc]);
21010
21020
  }
21011
21021
  const func = desc.type === "offer" ? this.createOffer : this.createAnswer;
21012
- return func.apply(this).then((d2) => nativeSetLocalDescription.apply(this, [d2]));
21022
+ return func.apply(this).then((d) => nativeSetLocalDescription.apply(this, [d]));
21013
21023
  };
21014
21024
  }
21015
21025
 
@@ -21123,8 +21133,8 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
21123
21133
  var import_lodash4 = __toESM(require_lodash2());
21124
21134
  import { v4 as vo } from "uuid";
21125
21135
  import { v4 as Po } from "uuid";
21126
- import { v4 as Ao } from "uuid";
21127
- import { EventEmitter2 as Io } from "eventemitter2";
21136
+ import { v4 as Ro } from "uuid";
21137
+ import { EventEmitter2 as Ao } from "eventemitter2";
21128
21138
  var Kt = __toESM(require_lib());
21129
21139
  import { EventEmitter2 as tn } from "eventemitter2";
21130
21140
  import { v4 as nn } from "uuid";
@@ -21135,38 +21145,38 @@ import { v4 as hn } from "uuid";
21135
21145
  var ja = Object.defineProperty;
21136
21146
  var Ja = Object.defineProperties;
21137
21147
  var Qa = Object.getOwnPropertyDescriptors;
21138
- var ei = Object.getOwnPropertySymbols;
21139
- var as = Object.prototype.hasOwnProperty;
21140
- var os = Object.prototype.propertyIsEnumerable;
21141
- var ss = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21148
+ var Zt = Object.getOwnPropertySymbols;
21149
+ var ss = Object.prototype.hasOwnProperty;
21150
+ var as = Object.prototype.propertyIsEnumerable;
21151
+ var rs = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21142
21152
  var m = (a2, e) => {
21143
21153
  for (var t in e || (e = {}))
21144
- as.call(e, t) && ss(a2, t, e[t]);
21145
- if (ei)
21146
- for (var t of ei(e))
21147
- os.call(e, t) && ss(a2, t, e[t]);
21154
+ ss.call(e, t) && rs(a2, t, e[t]);
21155
+ if (Zt)
21156
+ for (var t of Zt(e))
21157
+ as.call(e, t) && rs(a2, t, e[t]);
21148
21158
  return a2;
21149
21159
  };
21150
21160
  var M = (a2, e) => Ja(a2, Qa(e));
21151
- var Sr = (a2, e) => {
21161
+ var mr = (a2, e) => {
21152
21162
  var t = {};
21153
21163
  for (var i in a2)
21154
- as.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21155
- if (a2 != null && ei)
21156
- for (var i of ei(a2))
21157
- e.indexOf(i) < 0 && os.call(a2, i) && (t[i] = a2[i]);
21164
+ ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21165
+ if (a2 != null && Zt)
21166
+ for (var i of Zt(a2))
21167
+ e.indexOf(i) < 0 && as.call(a2, i) && (t[i] = a2[i]);
21158
21168
  return t;
21159
21169
  };
21160
21170
  var Xa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21161
- var Mr = Xa((Fc, no) => {
21162
- no.exports = { version: "0.12.17-alpha.1", 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"] };
21171
+ var vr = Xa((Ac, no) => {
21172
+ no.exports = { version: "0.12.17-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"] };
21163
21173
  });
21164
- var gr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(gr || {});
21174
+ var Sr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Sr || {});
21165
21175
  var Za = ((e) => (e.CHAT = "chat", e))(Za || {});
21166
- var ns = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ns || {});
21167
- var Tr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(Tr || {});
21168
- var cs = ((t) => (t.audio = "audio", t.video = "video", t))(cs || {});
21169
- function xe(a2, e) {
21176
+ var os = ((t) => (t.INFO = "info", t.ERROR = "error", t))(os || {});
21177
+ var gr = ((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))(gr || {});
21178
+ var ns = ((t) => (t.audio = "audio", t.video = "video", t))(ns || {});
21179
+ function Ue(a2, e) {
21170
21180
  let t, i;
21171
21181
  if (e)
21172
21182
  for (let r of e.auxiliaryTracks) {
@@ -21184,16 +21194,16 @@ function pt(a2) {
21184
21194
  function eo(a2) {
21185
21195
  return a2 && a2.source === "screen";
21186
21196
  }
21187
- function ri(a2) {
21197
+ function ii(a2) {
21188
21198
  return a2 && a2.source === "audioplaylist";
21189
21199
  }
21190
21200
  function ht(a2) {
21191
21201
  return a2 && a2.source === "videoplaylist";
21192
21202
  }
21193
- function ds(a2) {
21203
+ function cs(a2) {
21194
21204
  return a2 ? !!(a2 != null && a2.degraded) : false;
21195
21205
  }
21196
- function je(a2, e) {
21206
+ function Je(a2, e) {
21197
21207
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21198
21208
  }
21199
21209
  function mt(a2) {
@@ -21201,9 +21211,9 @@ function mt(a2) {
21201
21211
  let e = false, t = false, i = false;
21202
21212
  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 };
21203
21213
  }
21204
- var us = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(us || {});
21214
+ var ls = ((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))(ls || {});
21205
21215
  var to = typeof window != "undefined" && typeof window.expect != "undefined";
21206
- var d = class {
21216
+ var l = class {
21207
21217
  static v(e, ...t) {
21208
21218
  this.log(0, e, ...t);
21209
21219
  }
@@ -21268,26 +21278,26 @@ var d = class {
21268
21278
  }
21269
21279
  }
21270
21280
  };
21271
- d.level = to ? 7 : 0;
21272
- var ge = new import_ua_parser_js.UAParser();
21273
- var O = typeof window != "undefined";
21274
- var ps;
21275
- var Ue = typeof window == "undefined" && !((ps = ge.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
21276
- var ro = () => !Ue;
21281
+ l.level = to ? 7 : 0;
21282
+ var Te = new import_ua_parser_js.UAParser();
21283
+ var U = typeof window != "undefined";
21284
+ var us;
21285
+ var Be = typeof window == "undefined" && !((us = Te.getBrowser().name) != null && us.toLowerCase().includes("electron"));
21286
+ var ro = () => !Be;
21277
21287
  var ic = ro();
21288
+ var ps;
21278
21289
  var hs;
21279
- var ms;
21280
- var gs = ((ms = (hs = ge.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
21290
+ var gs = ((hs = (ps = Te.getBrowser()) == null ? void 0 : ps.name) == null ? void 0 : hs.toLowerCase()) === "firefox";
21281
21291
  var Ts = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ts || {});
21282
21292
  function so() {
21283
- if (O && window) {
21293
+ if (U && window) {
21284
21294
  let a2 = window.location.hostname;
21285
21295
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21286
21296
  }
21287
21297
  return "CUSTOM";
21288
21298
  }
21289
- var Qe = so();
21290
- var k = { 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 }, 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 } };
21299
+ var ze = so();
21300
+ var P3 = { 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 }, 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 } };
21291
21301
  var f = class a extends Error {
21292
21302
  constructor(t, i, r, s, o, n = false) {
21293
21303
  super(s);
@@ -21319,97 +21329,97 @@ var f = class a extends Error {
21319
21329
  };
21320
21330
  var ao = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21321
21331
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21322
- return new f(k.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21332
+ return new f(P3.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21323
21333
  }, WebSocketConnectionLost(a2, e = "") {
21324
- return new f(k.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21334
+ return new f(P3.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21325
21335
  }, AbnormalClose(a2, e = "") {
21326
- return new f(k.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21336
+ return new f(P3.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21327
21337
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
21328
21338
  return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
21329
21339
  }, EndpointUnreachable(a2, e = "") {
21330
- return new f(k.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21340
+ return new f(P3.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21331
21341
  }, InvalidTokenFormat(a2, e = "") {
21332
- return new f(k.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21342
+ return new f(P3.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21333
21343
  }, InitConfigNotAvailable(a2, e = "") {
21334
- return new f(k.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21344
+ return new f(P3.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21335
21345
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21336
- return new f(k.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21346
+ return new f(P3.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21337
21347
  }, CantAccessCaptureDevice(a2, e, t = "") {
21338
- return new f(k.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21348
+ return new f(P3.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21339
21349
  }, DeviceNotAvailable(a2, e, t = "") {
21340
- return new f(k.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21350
+ return new f(P3.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21341
21351
  }, DeviceInUse(a2, e, t = "") {
21342
- return new f(k.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21352
+ return new f(P3.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21343
21353
  }, DeviceLostMidway(a2, e, t = "") {
21344
- return new f(k.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21354
+ return new f(P3.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21345
21355
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21346
- return new f(k.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21356
+ return new f(P3.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21347
21357
  }, InvalidVideoSettings(a2, e = "") {
21348
- return new f(k.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21358
+ return new f(P3.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21349
21359
  }, AutoplayBlocked(a2, e = "") {
21350
- return new f(k.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21360
+ return new f(P3.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21351
21361
  }, CodecChangeNotPermitted(a2, e = "") {
21352
- return new f(k.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21362
+ return new f(P3.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21353
21363
  }, OverConstrained(a2, e, t = "") {
21354
- return new f(k.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21364
+ return new f(P3.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21355
21365
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21356
- return new f(k.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21366
+ return new f(P3.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21357
21367
  }, SystemDeniedPermission(a2, e, t = "") {
21358
- return new f(k.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21368
+ return new f(P3.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21359
21369
  }, CurrentTabNotShared() {
21360
- return new f(k.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");
21370
+ return new f(P3.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");
21361
21371
  }, AudioPlaybackError(a2) {
21362
- return new f(k.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21372
+ return new f(P3.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21363
21373
  }, SelectedDeviceMissing(a2) {
21364
- return new f(k.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21374
+ return new f(P3.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21365
21375
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21366
- return new f(k.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21376
+ return new f(P3.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21367
21377
  }, CreateAnswerFailed(a2, e = "") {
21368
- return new f(k.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21378
+ return new f(P3.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21369
21379
  }, SetLocalDescriptionFailed(a2, e = "") {
21370
- return new f(k.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21380
+ return new f(P3.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21371
21381
  }, SetRemoteDescriptionFailed(a2, e = "") {
21372
- return new f(k.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21382
+ return new f(P3.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21373
21383
  }, ICEFailure(a2, e = "", t = false) {
21374
- return new f(k.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21384
+ return new f(P3.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21375
21385
  }, ICEDisconnected(a2, e = "") {
21376
- return new f(k.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21386
+ return new f(P3.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21377
21387
  }, StatsFailed(a2, e = "") {
21378
- return new f(k.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21388
+ return new f(P3.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21379
21389
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21380
21390
  return new f(a2, "ServerErrors", e, t, t, ao.includes(e));
21381
21391
  }, AlreadyJoined(a2, e = "") {
21382
- return new f(k.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21392
+ return new f(P3.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21383
21393
  }, CannotJoinPreviewInProgress(a2, e = "") {
21384
- return new f(k.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21394
+ return new f(P3.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21385
21395
  } }, GenericErrors: { NotConnected(a2, e = "") {
21386
- return new f(k.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21396
+ return new f(P3.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21387
21397
  }, Signalling(a2, e) {
21388
- return new f(k.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21398
+ return new f(P3.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21389
21399
  }, Unknown(a2, e) {
21390
- return new f(k.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21400
+ return new f(P3.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21391
21401
  }, NotReady(a2, e = "") {
21392
- return new f(k.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21402
+ return new f(P3.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21393
21403
  }, JsonParsingFailed(a2, e, t = "") {
21394
- return new f(k.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21404
+ return new f(P3.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21395
21405
  }, TrackMetadataMissing(a2, e = "") {
21396
- return new f(k.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21406
+ return new f(P3.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21397
21407
  }, RTCTrackMissing(a2, e = "") {
21398
- return new f(k.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21408
+ return new f(P3.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21399
21409
  }, PeerMetadataMissing(a2, e = "") {
21400
- return new f(k.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21410
+ return new f(P3.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21401
21411
  }, ValidationFailed(a2, e) {
21402
- return new f(k.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21412
+ return new f(P3.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21403
21413
  }, InvalidRole(a2, e) {
21404
- return new f(k.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21414
+ return new f(P3.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21405
21415
  }, PreviewAlreadyInProgress(a2, e = "") {
21406
- return new f(k.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21416
+ return new f(P3.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21407
21417
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
21408
- return new f(k.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21418
+ return new f(P3.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21409
21419
  }, MissingMediaDevices() {
21410
- return new f(k.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21420
+ return new f(P3.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21411
21421
  }, MissingRTCPeerConnection() {
21412
- return new f(k.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21422
+ return new f(P3.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21413
21423
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
21414
21424
  return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
21415
21425
  }, InitFailed(a2, e = "") {
@@ -21421,11 +21431,11 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21421
21431
  }, DeviceNotSupported(a2, e = "") {
21422
21432
  return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
21423
21433
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
21424
- return new f(k.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21434
+ return new f(P3.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21425
21435
  }, NoEntryPlaying(a2, e) {
21426
- return new f(k.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21436
+ return new f(P3.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21427
21437
  } } };
21428
- var vr = class {
21438
+ var fr = class {
21429
21439
  constructor() {
21430
21440
  this.valuesMap = /* @__PURE__ */ new Map();
21431
21441
  }
@@ -21452,21 +21462,21 @@ var vr = class {
21452
21462
  };
21453
21463
  var fs = () => {
21454
21464
  try {
21455
- O && !localStorage && (window.localStorage = new vr());
21465
+ U && !localStorage && (window.localStorage = new fr());
21456
21466
  } catch (a2) {
21457
- d.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21467
+ l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21458
21468
  }
21459
21469
  };
21460
- var le = class {
21470
+ var ue = class {
21461
21471
  constructor(e) {
21462
21472
  this.key = e;
21463
21473
  this.storage = null;
21464
21474
  }
21465
21475
  getStorage() {
21466
21476
  try {
21467
- return O && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
21477
+ return U && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
21468
21478
  } catch (e) {
21469
- return d.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21479
+ return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21470
21480
  }
21471
21481
  }
21472
21482
  get() {
@@ -21485,49 +21495,49 @@ var le = class {
21485
21495
  }
21486
21496
  };
21487
21497
  var vs = () => {
21488
- let a2, e = new le("hms-analytics-deviceId"), t = e.get();
21498
+ let a2, e = new ue("hms-analytics-deviceId"), t = e.get();
21489
21499
  return t ? a2 = t : (a2 = oo(), e.set(a2)), a2;
21490
21500
  };
21491
- function oe(a2) {
21501
+ function ne(a2) {
21492
21502
  return a2 != null;
21493
21503
  }
21494
- var ys = Mr().version;
21495
- function ft(a2 = "prod", e) {
21496
- let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21497
- if (Ue)
21498
- return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21499
- let r = ge.getOS(), s = ge.getDevice(), o = ge.getBrowser(), n = yr(`web_${r.name}`), l = r.version || "", u = yr(`${o.name}_${o.version}`), p = u;
21500
- return s.type && (p = `${yr(`${s.vendor}_${s.type}`)}/${u}`), ks({ os: n, os_version: l, sdk: t, sdk_version: ys, device_model: p, env: i, domain: Qe, 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 });
21504
+ var ys = vr().version;
21505
+ function Tt(a2 = "prod", e) {
21506
+ let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21507
+ if (Be)
21508
+ return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, 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 });
21509
+ let r = Te.getOS(), s = Te.getDevice(), o = Te.getBrowser(), n = Mr(`web_${r.name}`), d = r.version || "", u = Mr(`${o.name}_${o.version}`), p = u;
21510
+ return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`), ks({ os: n, os_version: d, sdk: t, sdk_version: ys, 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 });
21501
21511
  }
21502
- function yr(a2) {
21512
+ function Mr(a2) {
21503
21513
  return a2.replace(/ /g, "_");
21504
21514
  }
21505
- var ks = (a2, e = ",") => Object.keys(a2).filter((t) => oe(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21515
+ var ks = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21506
21516
  var H = class {
21507
21517
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21508
- this.metadata = { peer: {}, userAgent: ft() };
21518
+ this.metadata = { peer: {}, userAgent: Tt() };
21509
21519
  this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = co(), this.device_id = vs();
21510
21520
  }
21511
21521
  toSignalParams() {
21512
- return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21522
+ return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21513
21523
  }
21514
21524
  };
21515
21525
  var y = class {
21516
21526
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
21517
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21518
- return new H({ name: o, level: n, properties: l });
21527
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21528
+ return new H({ name: o, level: n, properties: d });
21519
21529
  }
21520
21530
  static disconnect(e, t) {
21521
21531
  let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
21522
21532
  return new H({ name: i, level: r, properties: s });
21523
21533
  }
21524
21534
  static preview(i) {
21525
- var r = i, { error: e } = r, t = Sr(r, ["error"]);
21535
+ var r = i, { error: e } = r, t = mr(r, ["error"]);
21526
21536
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21527
21537
  return new H({ name: s, level: o, properties: n });
21528
21538
  }
21529
21539
  static join(i) {
21530
- var r = i, { error: e } = r, t = Sr(r, ["error"]);
21540
+ var r = i, { error: e } = r, t = mr(r, ["error"]);
21531
21541
  let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
21532
21542
  return new H({ name: s, level: o, properties: n });
21533
21543
  }
@@ -21552,8 +21562,8 @@ var y = class {
21552
21562
  return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
21553
21563
  }
21554
21564
  static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
21555
- let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, l = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
21556
- return new H({ name: o, level: n, properties: l });
21565
+ let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, d = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
21566
+ return new H({ name: o, level: n, properties: d });
21557
21567
  }
21558
21568
  static performance(e) {
21559
21569
  let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
@@ -21597,6 +21607,9 @@ var y = class {
21597
21607
  static krispStop() {
21598
21608
  return new H({ name: "krisp.stop", level: 1 });
21599
21609
  }
21610
+ static interruption(e, t, i) {
21611
+ return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: m({ type: t }, i) });
21612
+ }
21600
21613
  static eventNameFor(e, t) {
21601
21614
  return `${e}.${t ? "success" : "failed"}`;
21602
21615
  }
@@ -21609,9 +21622,9 @@ var y = class {
21609
21622
  }
21610
21623
  };
21611
21624
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21612
- var kr = class {
21625
+ var yr = class {
21613
21626
  constructor() {
21614
- this.storage = new le("hms-device-selection");
21627
+ this.storage = new ue("hms-device-selection");
21615
21628
  this.remember = false;
21616
21629
  this.TAG = "[HMSDeviceStorage]";
21617
21630
  }
@@ -21626,7 +21639,7 @@ var kr = class {
21626
21639
  return;
21627
21640
  let r = this.devices[e].find((o) => this.isSame({ deviceId: t, groupId: i }, o));
21628
21641
  if (!r) {
21629
- d.w(this.TAG, `Could not find device with deviceId: ${t}, groupId: ${i}`);
21642
+ l.w(this.TAG, `Could not find device with deviceId: ${t}, groupId: ${i}`);
21630
21643
  return;
21631
21644
  }
21632
21645
  let s = this.storage.get() || {};
@@ -21643,10 +21656,10 @@ var kr = class {
21643
21656
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
21644
21657
  }
21645
21658
  };
21646
- var Q = new kr();
21647
- var Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
21648
- var Er = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Er || {});
21649
- function oi(a2, e = 300) {
21659
+ var J = new yr();
21660
+ var kr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(kr || {});
21661
+ var Pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Pr || {});
21662
+ function ai(a2, e = 300) {
21650
21663
  let t;
21651
21664
  return function(...i) {
21652
21665
  clearTimeout(t), t = void 0;
@@ -21656,15 +21669,15 @@ function oi(a2, e = 300) {
21656
21669
  }, e);
21657
21670
  };
21658
21671
  }
21659
- var Ar = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ar || {});
21660
- var Rs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Rs || {});
21661
- var As = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(As || {});
21662
- var Is = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Is || {});
21672
+ var Ir = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ir || {});
21673
+ var Is = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Is || {});
21674
+ var Rs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Rs || {});
21675
+ var As = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(As || {});
21663
21676
  var Hs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Hs || {});
21664
21677
  var Cs = ((e) => (e.CAPTION = "caption", e))(Cs || {});
21665
- var Ir = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Ir || {});
21678
+ var Rr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Rr || {});
21666
21679
  var Ls = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ls || {});
21667
- var Hr = class {
21680
+ var Ar = class {
21668
21681
  constructor() {
21669
21682
  this.TAG = "[HMSIntersectionObserverWrapper]";
21670
21683
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21687,12 +21700,12 @@ var Hr = class {
21687
21700
  this.createObserver();
21688
21701
  }
21689
21702
  isSupported() {
21690
- let e = O && typeof window.IntersectionObserver != "undefined";
21691
- return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21703
+ let e = U && typeof window.IntersectionObserver != "undefined";
21704
+ return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21692
21705
  }
21693
21706
  };
21694
- var Ns = new Hr();
21695
- var Cr = class {
21707
+ var Ns = new Ar();
21708
+ var Hr = class {
21696
21709
  constructor() {
21697
21710
  this.TAG = "[HMSResizeObserverWrapper]";
21698
21711
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21705,7 +21718,7 @@ var Cr = class {
21705
21718
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
21706
21719
  };
21707
21720
  this.createObserver = () => {
21708
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(oi(this.handleResize, 300)));
21721
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(ai(this.handleResize, 300)));
21709
21722
  };
21710
21723
  this.handleResize = (e) => {
21711
21724
  var t;
@@ -21715,51 +21728,51 @@ var Cr = class {
21715
21728
  this.createObserver();
21716
21729
  }
21717
21730
  isSupported() {
21718
- let e = O && typeof window.ResizeObserver != "undefined";
21719
- return e || d.w(this.TAG, "Resize Observer is not supported"), e;
21731
+ let e = U && typeof window.ResizeObserver != "undefined";
21732
+ return e || l.w(this.TAG, "Resize Observer is not supported"), e;
21720
21733
  }
21721
21734
  };
21722
- var Os = new Cr();
21723
- var Lr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Lr || {});
21724
- var Dr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Dr || {});
21735
+ var Os = new Hr();
21736
+ var Cr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Cr || {});
21737
+ var Lr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Lr || {});
21725
21738
  var Bs = "https://event.100ms.live/v2/client/report";
21726
21739
  var Vs = "https://event-nonprod.100ms.live/v2/client/report";
21727
21740
  var Pt = Math.pow(2, 31) - 1;
21728
21741
  var rt = class {
21729
21742
  };
21730
- rt.makePeerId = () => Ao();
21743
+ rt.makePeerId = () => Ro();
21731
21744
  var B = (a2) => a2.room;
21732
21745
  var Ho = (a2) => a2.errors;
21733
21746
  var Kh = createSelector(Ho, (a2) => a2.length === 0 ? null : a2.at(-1));
21734
21747
  var qh = createSelector(B, (a2) => a2.id);
21735
21748
  var K = (a2) => a2.peers;
21736
- var fi = (a2) => a2.messages.byID;
21749
+ var Ti = (a2) => a2.messages.byID;
21737
21750
  var Qs = (a2) => a2.messages.allIDs;
21738
21751
  var N = (a2) => a2.tracks;
21739
- var Fr = (a2) => a2.appData;
21752
+ var Vr = (a2) => a2.appData;
21740
21753
  var Co = (a2) => a2.speakers;
21741
- var _e = createSelector([B], (a2) => a2 && a2.isConnected);
21742
- var Qh = createSelector([_e, B], (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));
21754
+ var Ne = createSelector([B], (a2) => a2 && a2.isConnected);
21755
+ var Qh = createSelector([Ne, B], (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));
21743
21756
  var Lo = (a2) => a2.hideLocalPeer;
21744
- var me = createSelector([B, K, Lo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21757
+ var Se = createSelector([B, K, Lo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21745
21758
  var Do = createSelector(N, (a2) => Object.values(a2));
21746
- var te = createSelector(B, K, (a2, e) => e[a2.localPeer]);
21747
- var ye = createSelector(B, (a2) => a2.localPeer);
21748
- var zh = createSelector(te, (a2) => a2 == null ? void 0 : a2.name);
21749
- var Yh = createSelector(te, (a2) => a2 == null ? void 0 : a2.roleName);
21750
- var ae = createSelector(te, (a2) => a2 == null ? void 0 : a2.audioTrack);
21751
- var Y = createSelector(te, (a2) => a2 == null ? void 0 : a2.videoTrack);
21752
- var wo = createSelector(te, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21753
- var Ys = createSelector([ae, Y, wo], (a2, e, t) => {
21759
+ var ie = createSelector(B, K, (a2, e) => e[a2.localPeer]);
21760
+ var ke = createSelector(B, (a2) => a2.localPeer);
21761
+ var zh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
21762
+ var Yh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
21763
+ var oe = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
21764
+ var z = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
21765
+ var wo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21766
+ var Ys = createSelector([oe, z, wo], (a2, e, t) => {
21754
21767
  let i = t ? [...t] : [];
21755
21768
  return a2 && i.unshift(a2), e && i.unshift(e), i;
21756
21769
  });
21757
- var Xh = createSelector(me, (a2) => a2.filter((e) => !e.isLocal));
21770
+ var Xh = createSelector(Se, (a2) => a2.filter((e) => !e.isLocal));
21758
21771
  var Zh = createSelector(K, Co, (a2, e) => {
21759
21772
  let t = Object.entries(e).sort((i, r) => {
21760
- var n, l;
21773
+ var n, d;
21761
21774
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
21762
- return (((l = r[1]) == null ? void 0 : l.audioLevel) || 0) > s ? 1 : -1;
21775
+ return (((d = r[1]) == null ? void 0 : d.audioLevel) || 0) > s ? 1 : -1;
21763
21776
  });
21764
21777
  if (t.length > 0 && t[0][1].audioLevel && t[0][1].audioLevel > 0) {
21765
21778
  let i = t[0][1].peerID;
@@ -21768,14 +21781,14 @@ var Zh = createSelector(K, Co, (a2, e) => {
21768
21781
  }
21769
21782
  return null;
21770
21783
  });
21771
- var Wr = createSelector(te, N, (a2, e) => {
21772
- let { video: t, audio: i } = xe(e, a2);
21784
+ var Gr = createSelector(ie, N, (a2, e) => {
21785
+ let { video: t, audio: i } = Ue(e, a2);
21773
21786
  return !!(t || i);
21774
21787
  });
21775
21788
  var _o = createSelector(K, N, (a2, e) => {
21776
21789
  let t;
21777
21790
  for (let i in a2) {
21778
- let r = a2[i], { video: s, audio: o } = xe(e, r);
21791
+ let r = a2[i], { video: s, audio: o } = Ue(e, r);
21779
21792
  if (s)
21780
21793
  return r;
21781
21794
  o && !t && (t = r);
@@ -21785,7 +21798,7 @@ var _o = createSelector(K, N, (a2, e) => {
21785
21798
  var tm = createSelector(_o, (a2) => !!a2);
21786
21799
  var im = createSelector(K, N, (a2, e) => {
21787
21800
  for (let t in a2) {
21788
- let i = a2[t], { audio: r, video: s } = xe(e, i);
21801
+ let i = a2[t], { audio: r, video: s } = Ue(e, i);
21789
21802
  if (!s && r)
21790
21803
  return i;
21791
21804
  }
@@ -21793,7 +21806,7 @@ var im = createSelector(K, N, (a2, e) => {
21793
21806
  var rm = createSelector(K, N, (a2, e) => {
21794
21807
  let t = [], i = [];
21795
21808
  for (let r in a2) {
21796
- let s = a2[r], { video: o, audio: n } = xe(e, s);
21809
+ let s = a2[r], { video: o, audio: n } = Ue(e, s);
21797
21810
  o ? t.push(s) : n && i.push(s);
21798
21811
  }
21799
21812
  return t.concat(i);
@@ -21808,36 +21821,36 @@ var sm = createSelector(K, N, (a2, e) => {
21808
21821
  var am = createSelector(K, N, (a2, e) => {
21809
21822
  for (let t in e) {
21810
21823
  let i = e[t];
21811
- if (ri(i) && i.peerId)
21824
+ if (ii(i) && i.peerId)
21812
21825
  return a2[i.peerId];
21813
21826
  }
21814
21827
  });
21815
- var om = createSelector(Do, (a2) => a2.filter(ds));
21828
+ var om = createSelector(Do, (a2) => a2.filter(cs));
21816
21829
  var nm = createSelector(Qs, (a2) => a2.length);
21817
- var cm = createSelector(fi, (a2) => Object.values(a2).filter((e) => !e.read).length);
21818
- var At = createSelector(Qs, fi, (a2, e) => {
21830
+ var cm = createSelector(Ti, (a2) => Object.values(a2).filter((e) => !e.read).length);
21831
+ var Rt = createSelector(Qs, Ti, (a2, e) => {
21819
21832
  let t = [];
21820
21833
  return a2.forEach((i) => {
21821
21834
  t.push(e[i]);
21822
21835
  }), t;
21823
21836
  });
21824
- var No = createSelector(At, (a2) => a2.filter((e) => {
21837
+ var No = createSelector(Rt, (a2) => a2.filter((e) => {
21825
21838
  var t;
21826
21839
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
21827
21840
  }));
21828
21841
  var dm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
21829
- var ie = createSelector([B], (a2) => a2 && a2.roomState);
21830
- var Zs = createSelector(ie, (a2) => a2 === "Preview");
21842
+ var re = createSelector([B], (a2) => a2 && a2.roomState);
21843
+ var Zs = createSelector(re, (a2) => a2 === "Preview");
21831
21844
  var lm = createSelector(B, (a2) => a2.roomState !== "Disconnected");
21832
21845
  var um = createSelector(B, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
21833
- var Se = (a2) => a2.roles;
21834
- var pm = createSelector([Se], (a2) => Object.keys(a2));
21835
- var at = createSelector([te, Se], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
21846
+ var ge = (a2) => a2.roles;
21847
+ var pm = createSelector([ge], (a2) => Object.keys(a2));
21848
+ var at = createSelector([ie, ge], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
21836
21849
  var Oo = (a2) => {
21837
21850
  var e;
21838
21851
  return (e = a2.preview) == null ? void 0 : e.asRole;
21839
21852
  };
21840
- var ea = createSelector([Oo, Se], (a2, e) => a2 ? e[a2] : null);
21853
+ var ea = createSelector([Oo, ge], (a2, e) => a2 ? e[a2] : null);
21841
21854
  var hm = createSelector([at], (a2) => {
21842
21855
  var e;
21843
21856
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
@@ -21853,26 +21866,26 @@ var Mm = createSelector(B, (a2) => !!a2.isLargeRoom);
21853
21866
  var ym = createSelector(B, (a2) => !!a2.isEffectsEnabled);
21854
21867
  var km = createSelector(B, (a2) => a2.effectsKey);
21855
21868
  var ia = (a2) => a2.polls;
21856
- var Rm = createSelector(me, (a2) => a2.filter((e) => e.isHandRaised));
21869
+ var Im = createSelector(Se, (a2) => a2.filter((e) => e.isHandRaised));
21857
21870
  var xo = (a2) => a2.whiteboards;
21858
- var Am = createSelector(xo, (a2) => Object.values(a2)[0]);
21871
+ var Rm = createSelector(xo, (a2) => Object.values(a2)[0]);
21859
21872
  var sa = (a2 = "audio") => (e) => e.playlist[a2].list;
21860
- var $r = (a2 = "audio") => (e) => e.playlist[a2].selection;
21873
+ var Wr = (a2 = "audio") => (e) => e.playlist[a2].selection;
21861
21874
  var aa = (a2 = "audio") => (e) => e.playlist[a2].progress;
21862
21875
  var oa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
21863
21876
  var na = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
21864
21877
  var ca = (a2 = "audio") => (e) => e.playlist[a2].volume;
21865
21878
  var da = (a2 = "audio") => createSelector(sa(a2), (e) => Object.values(e));
21866
- var la = (a2 = "audio") => createSelector(sa(a2), $r(a2), (e, t) => {
21879
+ var la = (a2 = "audio") => createSelector(sa(a2), Wr(a2), (e, t) => {
21867
21880
  if (t.id)
21868
21881
  return e[t.id];
21869
21882
  });
21870
- var ua = { selection: $r("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
21871
- var pa = { selection: $r("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
21872
- function I(a2) {
21883
+ var ua = { selection: Wr("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
21884
+ var pa = { selection: Wr("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
21885
+ function A(a2) {
21873
21886
  return (e) => (t) => a2(t, e);
21874
21887
  }
21875
- var It = "HMS-Store:";
21888
+ var At = "HMS-Store:";
21876
21889
  var b = class {
21877
21890
  static v(e, ...t) {
21878
21891
  this.log(0, e, ...t);
@@ -21902,23 +21915,23 @@ var b = class {
21902
21915
  if (!(this.level.valueOf() > e.valueOf()))
21903
21916
  switch (e) {
21904
21917
  case 0: {
21905
- console.log(It, ...t);
21918
+ console.log(At, ...t);
21906
21919
  break;
21907
21920
  }
21908
21921
  case 1: {
21909
- console.debug(It, ...t);
21922
+ console.debug(At, ...t);
21910
21923
  break;
21911
21924
  }
21912
21925
  case 2: {
21913
- console.info(It, ...t);
21926
+ console.info(At, ...t);
21914
21927
  break;
21915
21928
  }
21916
21929
  case 3: {
21917
- console.warn(It, ...t);
21930
+ console.warn(At, ...t);
21918
21931
  break;
21919
21932
  }
21920
21933
  case 6: {
21921
- console.error(It, ...t);
21934
+ console.error(At, ...t);
21922
21935
  break;
21923
21936
  }
21924
21937
  case 4: {
@@ -21939,13 +21952,13 @@ var b = class {
21939
21952
  }
21940
21953
  };
21941
21954
  b.level = 0;
21942
- var Kr = (a2, e) => e;
21955
+ var $r = (a2, e) => e;
21943
21956
  var Ht = (a2, e) => e;
21944
21957
  var ha = (a2, e) => e;
21945
21958
  var Uo = (a2, e) => e;
21946
21959
  var Bo = (a2, e) => e;
21947
- var q = createSelector([K, Kr], (a2, e) => e ? a2[e] : null);
21948
- var qr = createSelector([N, Ht], (a2, e) => e ? a2[e] : null);
21960
+ var q = createSelector([K, $r], (a2, e) => e ? a2[e] : null);
21961
+ var Kr = createSelector([N, Ht], (a2, e) => e ? a2[e] : null);
21949
21962
  var Vo = createSelector([N, Ht], (a2, e) => {
21950
21963
  if (!e)
21951
21964
  return null;
@@ -21971,8 +21984,8 @@ var Wo = createSelector([N, Ht], (a2, e) => {
21971
21984
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
21972
21985
  });
21973
21986
  var $o = createSelector([ia, Bo], (a2, e) => e ? a2[e] : null);
21974
- var X = I(q);
21975
- var Um = I(createSelector([Fr, Uo], (a2, e) => {
21987
+ var Y = A(q);
21988
+ var Um = A(createSelector([Vr, Uo], (a2, e) => {
21976
21989
  if (a2)
21977
21990
  return e ? a2[e] : a2;
21978
21991
  }));
@@ -21982,90 +21995,90 @@ function Bm(a2) {
21982
21995
  return a2 ? e.sessionStore[a2] : e.sessionStore;
21983
21996
  };
21984
21997
  }
21985
- var Fm = I(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
21986
- var Gm = I(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
21987
- var vi = I(qr);
21988
- var ma = I(Vo);
21989
- var Wm = I(Fo);
21990
- var $m = I(Go);
21991
- var Km = I(Wo);
21992
- var Ko = I((a2, e) => {
21998
+ var Fm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
21999
+ var Gm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22000
+ var fi = A(Kr);
22001
+ var ma = A(Vo);
22002
+ var Wm = A(Fo);
22003
+ var $m = A(Go);
22004
+ var Km = A(Wo);
22005
+ var Ko = A((a2, e) => {
21993
22006
  let t = q(a2, e);
21994
22007
  if (t && t.videoTrack && t.videoTrack !== "")
21995
22008
  return a2.tracks[t.videoTrack];
21996
22009
  });
21997
- var qo = I((a2, e) => {
22010
+ var qo = A((a2, e) => {
21998
22011
  let t = q(a2, e);
21999
22012
  if (t && t.audioTrack && t.audioTrack !== "")
22000
22013
  return a2.tracks[t.audioTrack];
22001
22014
  });
22002
- var jm = I((a2, e) => {
22015
+ var jm = A((a2, e) => {
22003
22016
  let t = q(a2, e);
22004
22017
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22005
22018
  });
22006
22019
  var Sa = (a2, e) => e ? a2.speakers[e] : null;
22007
- var Jm = I(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22020
+ var Jm = A(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22008
22021
  var jo = (a2, e) => {
22009
22022
  let t = qo(e)(a2);
22010
22023
  return Sa(a2, t == null ? void 0 : t.id);
22011
22024
  };
22012
- var Qm = I(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22013
- var zm = I((a2, e) => {
22025
+ var Qm = A(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22026
+ var zm = A((a2, e) => {
22014
22027
  if (e)
22015
22028
  return a2.connectionQualities[e];
22016
22029
  });
22017
- var Ym = I((a2, e) => {
22030
+ var Ym = A((a2, e) => {
22018
22031
  let t = q(a2, e);
22019
22032
  if (t) {
22020
22033
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ut(a2.tracks[r]));
22021
22034
  return i ? a2.tracks[i] : void 0;
22022
22035
  }
22023
22036
  });
22024
- var Xm = I(createSelector(N, q, (a2, e) => {
22037
+ var Xm = A(createSelector(N, q, (a2, e) => {
22025
22038
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22026
22039
  let r = a2[i];
22027
22040
  return ht(r) && pt(r);
22028
22041
  });
22029
22042
  return t ? a2[t] : void 0;
22030
22043
  }));
22031
- var Zm = I(createSelector(N, q, (a2, e) => {
22044
+ var Zm = A(createSelector(N, q, (a2, e) => {
22032
22045
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22033
22046
  let r = a2[i];
22034
22047
  return ht(r) && ut(r);
22035
22048
  });
22036
22049
  return t ? a2[t] : void 0;
22037
22050
  }));
22038
- var eS = I(createSelector(N, q, (a2, e) => {
22051
+ var eS = A(createSelector(N, q, (a2, e) => {
22039
22052
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22040
22053
  let r = a2[i];
22041
- return ri(r) && ut(r);
22054
+ return ii(r) && ut(r);
22042
22055
  });
22043
22056
  return t ? a2[t] : void 0;
22044
22057
  }));
22045
- var ga = I(createSelector(N, q, (a2, e) => xe(a2, e)));
22058
+ var ga = A(createSelector(N, q, (a2, e) => Ue(a2, e)));
22046
22059
  var Ta = (a2) => createSelector(ga(a2), (e) => e.audio);
22047
- var iS = I((a2, e) => {
22060
+ var iS = A((a2, e) => {
22048
22061
  let t = q(a2, e);
22049
- return je(a2, t == null ? void 0 : t.audioTrack);
22062
+ return Je(a2, t == null ? void 0 : t.audioTrack);
22050
22063
  });
22051
- var rS = I((a2, e) => {
22064
+ var rS = A((a2, e) => {
22052
22065
  let t = q(a2, e);
22053
- return je(a2, t == null ? void 0 : t.videoTrack);
22066
+ return Je(a2, t == null ? void 0 : t.videoTrack);
22054
22067
  });
22055
- var fa = I((a2, e) => {
22068
+ var fa = A((a2, e) => {
22056
22069
  if (e && a2.tracks[e])
22057
22070
  return a2.tracks[e].volume === 0;
22058
22071
  });
22059
- var sS = I((a2, e) => {
22072
+ var sS = A((a2, e) => {
22060
22073
  let t = q(a2, e);
22061
22074
  return fa(t == null ? void 0 : t.audioTrack)(a2);
22062
22075
  });
22063
- var aS = I((a2, e) => {
22076
+ var aS = A((a2, e) => {
22064
22077
  let t = Ta(e)(a2);
22065
22078
  return fa(t == null ? void 0 : t.id)(a2);
22066
22079
  });
22067
- var va = I((a2, e) => {
22068
- let t = qr(a2, e);
22080
+ var va = A((a2, e) => {
22081
+ let t = Kr(a2, e);
22069
22082
  if (t) {
22070
22083
  if (t.type !== "audio") {
22071
22084
  b.w("Please pass audio track here");
@@ -22074,16 +22087,16 @@ var va = I((a2, e) => {
22074
22087
  return t.volume;
22075
22088
  }
22076
22089
  });
22077
- var oS = I((a2, e) => {
22090
+ var oS = A((a2, e) => {
22078
22091
  let t = q(a2, e);
22079
22092
  return va(t == null ? void 0 : t.audioTrack)(a2);
22080
22093
  });
22081
- var nS = I((a2, e) => {
22094
+ var nS = A((a2, e) => {
22082
22095
  let t = Ta(e)(a2);
22083
22096
  return va(t == null ? void 0 : t.id)(a2);
22084
22097
  });
22085
- var cS = I((a2, e) => {
22086
- let t = qr(a2, e);
22098
+ var cS = A((a2, e) => {
22099
+ let t = Kr(a2, e);
22087
22100
  if (t) {
22088
22101
  if (t.type !== "video") {
22089
22102
  b.w("Please pass video track here");
@@ -22092,53 +22105,53 @@ var cS = I((a2, e) => {
22092
22105
  return t.layer;
22093
22106
  }
22094
22107
  });
22095
- var Ma = createSelector([At, ye, Kr], (a2, e, t) => {
22108
+ var Ma = createSelector([Rt, ke, $r], (a2, e, t) => {
22096
22109
  if (t)
22097
22110
  return a2.filter((i) => {
22098
22111
  var r;
22099
22112
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22100
22113
  });
22101
22114
  });
22102
- var ya = createSelector([At, ha], (a2, e) => {
22115
+ var ya = createSelector([Rt, ha], (a2, e) => {
22103
22116
  if (e)
22104
22117
  return a2.filter((t) => {
22105
22118
  var i, r;
22106
22119
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22107
22120
  });
22108
22121
  });
22109
- var Jo = createSelector(At, (a2) => a2.filter((e) => {
22122
+ var Jo = createSelector(Rt, (a2) => a2.filter((e) => {
22110
22123
  var t;
22111
22124
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22112
22125
  }));
22113
22126
  var Qo = createSelector([ya, ha], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22114
- var zo = createSelector([Ma, Kr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22127
+ var zo = createSelector([Ma, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22115
22128
  var dS = createSelector(Jo, (a2) => a2.filter((e) => !e.read).length);
22116
- var lS = I(Ma);
22117
- var uS = I(ya);
22118
- var pS = I(Qo);
22119
- var hS = I(zo);
22120
- var ka = I($o);
22129
+ var lS = A(Ma);
22130
+ var uS = A(ya);
22131
+ var pS = A(Qo);
22132
+ var hS = A(zo);
22133
+ var ka = A($o);
22121
22134
  var bS = createSelector([K, N], (a2, e) => Object.values(a2).map((i) => {
22122
22135
  var r;
22123
22136
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22124
22137
  }));
22125
22138
  var Yo = (a2) => a2.roleChangeRequests[0] || null;
22126
- var RS = createSelector([Yo, K, Se], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22127
- var AS = createSelector([at], (a2) => mt(a2));
22128
- var IS = createSelector([ea], (a2) => mt(a2));
22129
- var Zo = createSelector([Y, N], (a2, e) => {
22139
+ var IS = createSelector([Yo, K, ge], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22140
+ var RS = createSelector([at], (a2) => mt(a2));
22141
+ var AS = createSelector([ea], (a2) => mt(a2));
22142
+ var Zo = createSelector([z, N], (a2, e) => {
22130
22143
  let t = null;
22131
22144
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22132
22145
  });
22133
- var en = createSelector([ae, N], (a2, e) => {
22146
+ var en = createSelector([oe, N], (a2, e) => {
22134
22147
  let t = null;
22135
22148
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22136
22149
  });
22137
22150
  var sn = ((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))(sn || {});
22138
- var Yr = class {
22151
+ var zr = class {
22139
22152
  constructor() {
22140
22153
  this.TAG = "[HTTPAnalyticsTransport]";
22141
- this.failedEvents = new le("client-events");
22154
+ this.failedEvents = new ue("client-events");
22142
22155
  this.isConnected = true;
22143
22156
  this.env = null;
22144
22157
  this.websocketURL = "";
@@ -22164,7 +22177,7 @@ var Yr = class {
22164
22177
  throw Error(r.statusText);
22165
22178
  this.removeFromStorage(e);
22166
22179
  }).catch((r) => {
22167
- d.v(this.TAG, "Failed to send event", r, e), this.addEventToStorage(e);
22180
+ l.v(this.TAG, "Failed to send event", r, e), this.addEventToStorage(e);
22168
22181
  });
22169
22182
  }
22170
22183
  flushFailedEvents() {
@@ -22180,66 +22193,66 @@ var Yr = class {
22180
22193
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22181
22194
  }
22182
22195
  };
22183
- var Pe = new Yr();
22196
+ var Ee = new zr();
22184
22197
  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 || {});
22185
- var ir = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(ir || {});
22186
- var ur = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ur || {});
22198
+ var tr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(tr || {});
22199
+ var lr = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lr || {});
22187
22200
  var Pn = (a2) => a2.localPeer.id;
22188
22201
  var En = (a2) => a2.localPeer.audioTrack;
22189
22202
  var bn = (a2) => a2.localPeer.videoTrack;
22190
- var Rn = (a2, e) => e;
22203
+ var In = (a2, e) => e;
22191
22204
  var Ka = (a2, e) => e;
22192
- var An = (a2) => a2.remoteTrackStats;
22205
+ var Rn = (a2) => a2.remoteTrackStats;
22193
22206
  var qa = (a2) => a2.peerStats;
22194
- var is = (a2) => a2.localTrackStats;
22195
- var be = createSelector([qa, Pn], (a2, e) => a2[e]);
22196
- var In = createSelector(be, (a2) => {
22207
+ var ts = (a2) => a2.localTrackStats;
22208
+ var Ie = createSelector([qa, Pn], (a2, e) => a2[e]);
22209
+ var An = createSelector(Ie, (a2) => {
22197
22210
  var e;
22198
22211
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22199
22212
  });
22200
- var Hn = createSelector(be, (a2) => {
22213
+ var Hn = createSelector(Ie, (a2) => {
22201
22214
  var e;
22202
22215
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22203
22216
  });
22204
- var Cn = createSelector(be, (a2) => {
22217
+ var Cn = createSelector(Ie, (a2) => {
22205
22218
  var e;
22206
22219
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22207
22220
  });
22208
- var Ln = createSelector(be, (a2) => {
22221
+ var Ln = createSelector(Ie, (a2) => {
22209
22222
  var e;
22210
22223
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22211
22224
  });
22212
- var Dn = createSelector(be, (a2) => {
22225
+ var Dn = createSelector(Ie, (a2) => {
22213
22226
  var e;
22214
22227
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22215
22228
  });
22216
- var wn = createSelector(be, (a2) => {
22229
+ var wn = createSelector(Ie, (a2) => {
22217
22230
  var e;
22218
22231
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22219
22232
  });
22220
- var _n = createSelector(be, (a2) => {
22233
+ var _n = createSelector(Ie, (a2) => {
22221
22234
  var e;
22222
22235
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22223
22236
  });
22224
- var Nn = createSelector(be, (a2) => {
22237
+ var Nn = createSelector(Ie, (a2) => {
22225
22238
  var e;
22226
22239
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22227
22240
  });
22228
- var On = createSelector([qa, Rn], (a2, e) => e ? a2[e] : void 0);
22229
- var xn = createSelector([An, Ka], (a2, e) => e ? a2[e] : void 0);
22230
- var rs = createSelector([is, Ka], (a2, e) => e ? a2[e] : void 0);
22231
- var Un = I(On);
22232
- var Bn = I(xn);
22233
- var Vn = createSelector([is, En], (a2, e) => {
22241
+ var On = createSelector([qa, In], (a2, e) => e ? a2[e] : void 0);
22242
+ var xn = createSelector([Rn, Ka], (a2, e) => e ? a2[e] : void 0);
22243
+ var is = createSelector([ts, Ka], (a2, e) => e ? a2[e] : void 0);
22244
+ var Un = A(On);
22245
+ var Bn = A(xn);
22246
+ var Vn = createSelector([ts, En], (a2, e) => {
22234
22247
  var t;
22235
22248
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22236
22249
  });
22237
- var Fn = I(createSelector(rs, (a2) => a2 == null ? void 0 : a2[0]));
22238
- var Gn = createSelector([is, bn], (a2, e) => {
22250
+ var Fn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
22251
+ var Gn = createSelector([ts, bn], (a2, e) => {
22239
22252
  var t;
22240
22253
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22241
22254
  });
22242
- var Wn = I(createSelector(rs, (a2) => a2));
22255
+ var Wn = A(createSelector(is, (a2) => a2));
22243
22256
 
22244
22257
  // src/Prebuilt/components/Header/StreamActions.tsx
22245
22258
  import {
@@ -22263,7 +22276,7 @@ import { ChevronDownIcon as ChevronDownIcon4, ChevronUpIcon as ChevronUpIcon4, M
22263
22276
 
22264
22277
  // src/Prebuilt/components/hooks/useScreenshareAudio.js
22265
22278
  init_define_process_env();
22266
- import { useCallback as useCallback20 } from "react";
22279
+ import { useCallback as useCallback21 } from "react";
22267
22280
  import {
22268
22281
  selectPeerSharingAudio,
22269
22282
  selectScreenShareAudioByPeerID,
@@ -22274,7 +22287,7 @@ var useScreenshareAudio = () => {
22274
22287
  const hmsActions = useHMSActions23();
22275
22288
  const peer = useHMSStore28(selectPeerSharingAudio);
22276
22289
  const track = useHMSStore28(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
22277
- const handleMute = useCallback20(() => {
22290
+ const handleMute = useCallback21(() => {
22278
22291
  if (!peer.isLocal) {
22279
22292
  hmsActions.setVolume(!track.volume ? 100 : 0, track.id);
22280
22293
  } else {
@@ -22358,11 +22371,11 @@ var LiveStatus = () => {
22358
22371
  var _a7;
22359
22372
  const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
22360
22373
  const hlsState = useHMSStore30(selectHLSState4);
22361
- const isMobile = useMedia10(config.media.md);
22374
+ const isMobile = useMedia11(config.media.md);
22362
22375
  const intervalRef = useRef16(null);
22363
22376
  const { screenType } = useRoomLayoutConferencingScreen();
22364
22377
  const [liveTime, setLiveTime] = useState29(0);
22365
- const startTimer = useCallback21(() => {
22378
+ const startTimer = useCallback22(() => {
22366
22379
  intervalRef.current = setInterval(() => {
22367
22380
  var _a8;
22368
22381
  const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
@@ -22405,7 +22418,7 @@ var LiveStatus = () => {
22405
22418
  var RecordingStatus = () => {
22406
22419
  const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming6();
22407
22420
  const permissions = useHMSStore30(selectPermissions8);
22408
- const isMobile = useMedia10(config.media.md);
22421
+ const isMobile = useMedia11(config.media.md);
22409
22422
  if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
22410
22423
  // so no need to show this as it duplicates
22411
22424
  [permissions == null ? void 0 : permissions.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
@@ -22438,7 +22451,7 @@ var RecordingStatus = () => {
22438
22451
  };
22439
22452
  var RecordingPauseStatus = () => {
22440
22453
  const recording = useHMSStore30(selectRecordingState2);
22441
- if (recording.hls && recording.hls.state === Rs.PAUSED) {
22454
+ if (recording.hls && recording.hls.state === Is.PAUSED) {
22442
22455
  return /* @__PURE__ */ React64.createElement(
22443
22456
  Tooltip,
22444
22457
  {
@@ -22513,7 +22526,7 @@ var StartRecording2 = () => {
22513
22526
  };
22514
22527
  var StreamActions = () => {
22515
22528
  const isConnected = useHMSStore30(selectIsConnectedToRoom6);
22516
- const isMobile = useMedia10(config.media.md);
22529
+ const isMobile = useMedia11(config.media.md);
22517
22530
  const roomState = useHMSStore30(selectRoomState3);
22518
22531
  return /* @__PURE__ */ React64.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React64.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ React64.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React64.createElement(RecordingPauseStatus, null), /* @__PURE__ */ React64.createElement(RecordingStatus, null), roomState !== HMSRoomState3.Preview ? /* @__PURE__ */ React64.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ React64.createElement(StartRecording2, null) : null);
22519
22532
  };
@@ -22537,7 +22550,7 @@ var StopRecordingInSheet = ({
22537
22550
  // src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
22538
22551
  init_define_process_env();
22539
22552
  import React66, { useState as useState30 } from "react";
22540
- import { useMedia as useMedia11 } from "react-use";
22553
+ import { useMedia as useMedia12 } from "react-use";
22541
22554
  import { selectLocalPeerName as selectLocalPeerName3, useHMSActions as useHMSActions25, useHMSStore as useHMSStore31 } from "@100mslive/react-sdk";
22542
22555
 
22543
22556
  // src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
@@ -22656,7 +22669,7 @@ var ChangeNameModal = ({
22656
22669
  const hmsActions = useHMSActions25();
22657
22670
  const localPeerName = useHMSStore31(selectLocalPeerName3);
22658
22671
  const [currentName, setCurrentName] = useState30(localPeerName);
22659
- const isMobile = useMedia11(config.media.md);
22672
+ const isMobile = useMedia12(config.media.md);
22660
22673
  const changeName = () => __async(void 0, null, function* () {
22661
22674
  const name = (currentName == null ? void 0 : currentName.trim()) || "";
22662
22675
  if (!name || name === localPeerName) {
@@ -22694,8 +22707,8 @@ var ChangeNameModal = ({
22694
22707
 
22695
22708
  // src/Prebuilt/components/AppData/useSheet.ts
22696
22709
  init_define_process_env();
22697
- import { useCallback as useCallback22 } from "react";
22698
- import { selectAppData as selectAppData4, useHMSActions as useHMSActions26, useHMSStore as useHMSStore32, useHMSVanillaStore as useHMSVanillaStore9 } from "@100mslive/react-sdk";
22710
+ import { useCallback as useCallback23 } from "react";
22711
+ import { selectAppData as selectAppData4, useHMSActions as useHMSActions26, useHMSStore as useHMSStore32, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
22699
22712
  var useIsSheetTypeOpen = (sheetType) => {
22700
22713
  if (!sheetType) {
22701
22714
  throw Error("Pass one of the sheet options");
@@ -22704,8 +22717,8 @@ var useIsSheetTypeOpen = (sheetType) => {
22704
22717
  };
22705
22718
  var useSheetToggle = (sheetType) => {
22706
22719
  const hmsActions = useHMSActions26();
22707
- const vanillaStore = useHMSVanillaStore9();
22708
- const toggleSheet = useCallback22(() => {
22720
+ const vanillaStore = useHMSVanillaStore10();
22721
+ const toggleSheet = useCallback23(() => {
22709
22722
  const isOpen = vanillaStore.getState(selectAppData4(APP_DATA.sheet)) === sheetType;
22710
22723
  hmsActions.setAppData(APP_DATA.sheet, !isOpen ? sheetType : "");
22711
22724
  }, [vanillaStore, hmsActions, sheetType]);
@@ -22717,7 +22730,7 @@ init_define_process_env();
22717
22730
  import { useEffect as useEffect21, useState as useState31 } from "react";
22718
22731
  import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore33 } from "@100mslive/react-sdk";
22719
22732
  var useUnreadPollQuizPresent = () => {
22720
- const localPeerID = useHMSStore33(ye);
22733
+ const localPeerID = useHMSStore33(ke);
22721
22734
  const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
22722
22735
  const [unreadPollQuiz, setUnreadPollQuiz] = useState31(false);
22723
22736
  useEffect21(() => {
@@ -22994,7 +23007,7 @@ var MoreSettings = ({
22994
23007
  elements,
22995
23008
  screenType
22996
23009
  }) => {
22997
- const isMobile = useMedia12(config.media.md);
23010
+ const isMobile = useMedia13(config.media.md);
22998
23011
  const isLandscapeHLSStream = useLandscapeHLSStream();
22999
23012
  return isMobile || isLandscapeHLSStream ? /* @__PURE__ */ React68.createElement(MwebOptions, { elements, screenType }) : /* @__PURE__ */ React68.createElement(DesktopOptions, { elements, screenType });
23000
23013
  };
@@ -23585,8 +23598,8 @@ var ChatToggle = ({ onClick }) => {
23585
23598
 
23586
23599
  // src/Prebuilt/components/Footer/ParticipantList.tsx
23587
23600
  init_define_process_env();
23588
- import React83, { Fragment as Fragment10, useCallback as useCallback23, useState as useState37 } from "react";
23589
- import { useDebounce, useMedia as useMedia13 } from "react-use";
23601
+ import React83, { Fragment as Fragment10, useCallback as useCallback24, useState as useState37 } from "react";
23602
+ import { useDebounce, useMedia as useMedia14 } from "react-use";
23590
23603
  import {
23591
23604
  HMSPeerType as HMSPeerType2,
23592
23605
  selectAvailableRoleNames as selectAvailableRoleNames5,
@@ -23912,7 +23925,7 @@ var RoleOptions = ({ roleName, peerList }) => {
23912
23925
 
23913
23926
  // src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
23914
23927
  init_define_process_env();
23915
- import { match as match7, P as P3 } from "ts-pattern";
23928
+ import { match as match7, P as P4 } from "ts-pattern";
23916
23929
  import { selectPermissions as selectPermissions12, useHMSActions as useHMSActions30, useHMSStore as useHMSStore41 } from "@100mslive/react-sdk";
23917
23930
  var useGroupOnStageActions = ({ peers }) => {
23918
23931
  var _a7;
@@ -23929,9 +23942,9 @@ var useGroupOnStageActions = ({ peers }) => {
23929
23942
  const offStageRolePeers = peers.filter(
23930
23943
  (peer) => match7({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
23931
23944
  {
23932
- on_stage_role: P3.when((role) => !!role),
23933
- bring_to_stage_label: P3.when((label) => !!label),
23934
- roleName: P3.when((role) => !!role && off_stage_roles.includes(role))
23945
+ on_stage_role: P4.when((role) => !!role),
23946
+ bring_to_stage_label: P4.when((label) => !!label),
23947
+ roleName: P4.when((role) => !!role && off_stage_roles.includes(role))
23935
23948
  },
23936
23949
  () => true
23937
23950
  ).otherwise(() => false)
@@ -24177,7 +24190,7 @@ var ParticipantList = ({
24177
24190
  });
24178
24191
  }
24179
24192
  useSidepaneResetOnLayoutUpdate("participant_list", SIDE_PANE_OPTIONS.PARTICIPANTS);
24180
- const onSearch = useCallback23((value) => {
24193
+ const onSearch = useCallback24((value) => {
24181
24194
  setFilter((filterValue) => {
24182
24195
  if (!filterValue) {
24183
24196
  filterValue = {};
@@ -24451,7 +24464,7 @@ var ParticipantSearch = ({
24451
24464
  inSidePane = false
24452
24465
  }) => {
24453
24466
  const [value, setValue] = React83.useState("");
24454
- const isMobile = useMedia13(config.media.md);
24467
+ const isMobile = useMedia14(config.media.md);
24455
24468
  useDebounce(
24456
24469
  () => {
24457
24470
  onSearch(value);
@@ -24566,7 +24579,7 @@ var Footer2 = ({
24566
24579
  elements
24567
24580
  }) => {
24568
24581
  var _a7, _b7;
24569
- const isMobile = useMedia14(config.media.md);
24582
+ const isMobile = useMedia15(config.media.md);
24570
24583
  const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
24571
24584
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
24572
24585
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
@@ -24624,7 +24637,7 @@ var Footer2 = ({
24624
24637
 
24625
24638
  // src/Prebuilt/components/Notifications/HLSFailureModal.tsx
24626
24639
  init_define_process_env();
24627
- import React87, { useCallback as useCallback24, useState as useState38 } from "react";
24640
+ import React87, { useCallback as useCallback25, useState as useState38 } from "react";
24628
24641
  import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions32, useHMSStore as useHMSStore47, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
24629
24642
  function HLSFailureModal() {
24630
24643
  const hlsError = useHMSStore47(selectHLSState5).error || false;
@@ -24632,7 +24645,7 @@ function HLSFailureModal() {
24632
24645
  const hmsActions = useHMSActions32();
24633
24646
  const { isRTMPRunning } = useRecordingStreaming8();
24634
24647
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
24635
- const startHLS = useCallback24(() => __async(this, null, function* () {
24648
+ const startHLS = useCallback25(() => __async(this, null, function* () {
24636
24649
  try {
24637
24650
  if (isHLSStarted || isRTMPRunning) {
24638
24651
  return;
@@ -24685,8 +24698,8 @@ import {
24685
24698
 
24686
24699
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
24687
24700
  init_define_process_env();
24688
- import React136, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect40, useMemo as useMemo15, useState as useState58 } from "react";
24689
- import { useMeasure as useMeasure4, useMedia as useMedia26 } from "react-use";
24701
+ import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as useEffect40, useMemo as useMemo15, useState as useState58 } from "react";
24702
+ import { useMeasure as useMeasure4, useMedia as useMedia27 } from "react-use";
24690
24703
  import {
24691
24704
  HMSRoomState as HMSRoomState5,
24692
24705
  selectAppData as selectAppData9,
@@ -24706,7 +24719,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
24706
24719
  // src/Prebuilt/layouts/SidePane.tsx
24707
24720
  init_define_process_env();
24708
24721
  import React132, { useEffect as useEffect39 } from "react";
24709
- import { useMedia as useMedia24 } from "react-use";
24722
+ import { useMedia as useMedia25 } from "react-use";
24710
24723
  import { match as match11 } from "ts-pattern";
24711
24724
  import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore71 } from "@100mslive/react-sdk";
24712
24725
 
@@ -25008,7 +25021,7 @@ import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
25008
25021
 
25009
25022
  // src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
25010
25023
  init_define_process_env();
25011
- import React98, { useCallback as useCallback25, useRef as useRef19, useState as useState40 } from "react";
25024
+ import React98, { useCallback as useCallback26, useRef as useRef19, useState as useState40 } from "react";
25012
25025
  import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
25013
25026
 
25014
25027
  // src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
@@ -25322,13 +25335,13 @@ var QuestionForm = ({
25322
25335
  weight,
25323
25336
  isQuiz
25324
25337
  });
25325
- const handleOptionTextChange = useCallback25(
25338
+ const handleOptionTextChange = useCallback26(
25326
25339
  (index2, text2) => {
25327
25340
  setOptions((options2) => [...options2.slice(0, index2), __spreadProps(__spreadValues({}, options2[index2]), { text: text2 }), ...options2.slice(index2 + 1)]);
25328
25341
  },
25329
25342
  [setOptions]
25330
25343
  );
25331
- const removeOption = useCallback25(
25344
+ const removeOption = useCallback26(
25332
25345
  (index2) => setOptions((options2) => {
25333
25346
  const newOptions = [...options2];
25334
25347
  newOptions.splice(index2, 1);
@@ -25336,7 +25349,7 @@ var QuestionForm = ({
25336
25349
  }),
25337
25350
  [setOptions]
25338
25351
  );
25339
- const selectSingleChoiceAnswer = useCallback25(
25352
+ const selectSingleChoiceAnswer = useCallback26(
25340
25353
  (answerIndex) => {
25341
25354
  if (!isQuiz) {
25342
25355
  return;
@@ -25349,7 +25362,7 @@ var QuestionForm = ({
25349
25362
  },
25350
25363
  [setOptions, isQuiz]
25351
25364
  );
25352
- const selectMultipleChoiceAnswer = useCallback25(
25365
+ const selectMultipleChoiceAnswer = useCallback26(
25353
25366
  (checked, index2) => {
25354
25367
  if (!isQuiz) {
25355
25368
  return;
@@ -25901,7 +25914,7 @@ import React106 from "react";
25901
25914
 
25902
25915
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
25903
25916
  init_define_process_env();
25904
- import React105, { useCallback as useCallback26, useEffect as useEffect28, useMemo as useMemo12, useRef as useRef20, useState as useState44 } from "react";
25917
+ import React105, { useCallback as useCallback27, useEffect as useEffect28, useMemo as useMemo12, useRef as useRef20, useState as useState44 } from "react";
25905
25918
  import { match as match8 } from "ts-pattern";
25906
25919
  import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as useHMSActions36, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
25907
25920
  import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon as CrossCircleIcon2 } from "@100mslive/react-icons";
@@ -25947,7 +25960,7 @@ var QuestionCard2 = ({
25947
25960
  return multipleOptionAnswer.size > 0;
25948
25961
  }
25949
25962
  }, [singleOptionAnswer, multipleOptionAnswer, type]);
25950
- const handleVote = useCallback26(() => __async(void 0, null, function* () {
25963
+ const handleVote = useCallback27(() => __async(void 0, null, function* () {
25951
25964
  if (!isValidVote) {
25952
25965
  return;
25953
25966
  }
@@ -26374,23 +26387,23 @@ var ShowRoomDetailHeader = () => {
26374
26387
  // src/Prebuilt/components/SidePaneTabs.tsx
26375
26388
  init_define_process_env();
26376
26389
  import React124, { useEffect as useEffect37, useState as useState54 } from "react";
26377
- import { useMedia as useMedia20 } from "react-use";
26390
+ import { useMedia as useMedia21 } from "react-use";
26378
26391
  import { match as match10 } from "ts-pattern";
26379
26392
  import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore65 } from "@100mslive/react-sdk";
26380
26393
  import { CrossIcon as CrossIcon23 } from "@100mslive/react-icons";
26381
26394
 
26382
26395
  // src/Prebuilt/components/Chat/Chat.tsx
26383
26396
  init_define_process_env();
26384
- import React121, { useCallback as useCallback30, useRef as useRef24 } from "react";
26385
- import { useMedia as useMedia19 } from "react-use";
26397
+ import React121, { useCallback as useCallback31, useRef as useRef24 } from "react";
26398
+ import { useMedia as useMedia20 } from "react-use";
26386
26399
  import { match as match9 } from "ts-pattern";
26387
- import { selectHMSMessagesCount, useHMSActions as useHMSActions41, useHMSStore as useHMSStore62, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
26400
+ import { selectHMSMessagesCount, useHMSActions as useHMSActions41, useHMSStore as useHMSStore62, useHMSVanillaStore as useHMSVanillaStore11 } from "@100mslive/react-sdk";
26388
26401
  import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
26389
26402
 
26390
26403
  // src/Prebuilt/components/Chat/ChatFooter.tsx
26391
26404
  init_define_process_env();
26392
- import React116, { useCallback as useCallback28, useEffect as useEffect34, useRef as useRef23, useState as useState51 } from "react";
26393
- import { useMedia as useMedia17 } from "react-use";
26405
+ import React116, { useCallback as useCallback29, useEffect as useEffect34, useRef as useRef23, useState as useState51 } from "react";
26406
+ import { useMedia as useMedia18 } from "react-use";
26394
26407
  import data2 from "@emoji-mart/data";
26395
26408
  import Picker from "@emoji-mart/react";
26396
26409
  import { selectLocalPeer as selectLocalPeer5, useHMSActions as useHMSActions39, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
@@ -26399,13 +26412,13 @@ import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon
26399
26412
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
26400
26413
  init_define_process_env();
26401
26414
  import React115, { useState as useState50 } from "react";
26402
- import { useMedia as useMedia16 } from "react-use";
26415
+ import { useMedia as useMedia17 } from "react-use";
26403
26416
  import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon21, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
26404
26417
 
26405
26418
  // src/Prebuilt/components/Chat/ChatSelector.tsx
26406
26419
  init_define_process_env();
26407
26420
  import React114, { useMemo as useMemo13, useState as useState49 } from "react";
26408
- import { useMedia as useMedia15 } from "react-use";
26421
+ import { useMedia as useMedia16 } from "react-use";
26409
26422
  import {
26410
26423
  HMSPeerType as HMSPeerType3,
26411
26424
  selectMessagesUnreadCountByPeerID,
@@ -26425,7 +26438,7 @@ var SelectorItem = ({
26425
26438
  unreadCount,
26426
26439
  icon = void 0
26427
26440
  }) => {
26428
- const isMobile = useMedia15(config.media.md);
26441
+ const isMobile = useMedia16(config.media.md);
26429
26442
  const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
26430
26443
  var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
26431
26444
  return /* @__PURE__ */ React114.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
@@ -26576,7 +26589,7 @@ var ChatSelector = ({ role, peerId }) => {
26576
26589
  var ChatSelectorContainer = () => {
26577
26590
  var _a7, _b7;
26578
26591
  const [open, setOpen] = useState50(false);
26579
- const isMobile = useMedia16(config.media.md);
26592
+ const isMobile = useMedia17(config.media.md);
26580
26593
  const { elements } = useRoomLayoutConferencingScreen();
26581
26594
  const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26582
26595
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
@@ -26693,7 +26706,7 @@ var ChatSelectorContainer = () => {
26693
26706
 
26694
26707
  // src/Prebuilt/components/AppData/useChatState.js
26695
26708
  init_define_process_env();
26696
- import { useCallback as useCallback27 } from "react";
26709
+ import { useCallback as useCallback28 } from "react";
26697
26710
  import { selectAppData as selectAppData7, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
26698
26711
  var useChatDraftMessage = () => {
26699
26712
  const hmsActions = useHMSActions38();
@@ -26701,7 +26714,7 @@ var useChatDraftMessage = () => {
26701
26714
  if (chatDraftMessage === void 0 || chatDraftMessage === null) {
26702
26715
  chatDraftMessage = "";
26703
26716
  }
26704
- const setDraftMessage = useCallback27(
26717
+ const setDraftMessage = useCallback28(
26705
26718
  (message) => {
26706
26719
  hmsActions.setAppData(APP_DATA.chatDraft, message, true);
26707
26720
  },
@@ -26789,11 +26802,11 @@ function EmojiPicker({ onSelect }) {
26789
26802
  )));
26790
26803
  }
26791
26804
  var ChatFooter = ({ onSend, children }) => {
26792
- var _a7, _b7, _c, _d, _e2;
26805
+ var _a7, _b7, _c, _d, _e;
26793
26806
  const hmsActions = useHMSActions39();
26794
26807
  const inputRef = useRef23(null);
26795
26808
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
26796
- const isMobile = useMedia17(config.media.md);
26809
+ const isMobile = useMedia18(config.media.md);
26797
26810
  const { elements, screenType } = useRoomLayoutConferencingScreen();
26798
26811
  const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
26799
26812
  const localPeer = useHMSStore59(selectLocalPeer5);
@@ -26817,7 +26830,7 @@ var ChatFooter = ({ onSend, children }) => {
26817
26830
  }
26818
26831
  }
26819
26832
  }, [defaultSelection, selectedPeer, selectedRole, setRoleSelector, isMobile, isLandscapeHLSStream, elements == null ? void 0 : elements.chat]);
26820
- const resetInputHeight = useCallback28(() => {
26833
+ const resetInputHeight = useCallback29(() => {
26821
26834
  if (inputRef.current) {
26822
26835
  inputRef.current.style.height = `${Math.max(
26823
26836
  32,
@@ -26825,12 +26838,12 @@ var ChatFooter = ({ onSend, children }) => {
26825
26838
  )}px`;
26826
26839
  }
26827
26840
  }, []);
26828
- const updateInputHeight = useCallback28(() => {
26841
+ const updateInputHeight = useCallback29(() => {
26829
26842
  if (inputRef.current) {
26830
26843
  inputRef.current.style.height = `${Math.max(32, Math.min(inputRef.current.scrollHeight, 24 * 4))}px`;
26831
26844
  }
26832
26845
  }, []);
26833
- const sendMessage = useCallback28(() => __async(void 0, null, function* () {
26846
+ const sendMessage = useCallback29(() => __async(void 0, null, function* () {
26834
26847
  var _a8;
26835
26848
  const message = (_a8 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a8.value;
26836
26849
  if (!message || !message.trim().length) {
@@ -26903,7 +26916,7 @@ var ChatFooter = ({ onSend, children }) => {
26903
26916
  },
26904
26917
  /* @__PURE__ */ React116.createElement(PauseCircleIcon2, null),
26905
26918
  /* @__PURE__ */ React116.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
26906
- )))) : null), selection && /* @__PURE__ */ React116.createElement(Flex, { align: ((_e2 = inputRef.current) == null ? void 0 : _e2.scrollHeight) === 32 ? "center" : "end", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ React116.createElement(
26919
+ )))) : null), selection && /* @__PURE__ */ React116.createElement(Flex, { align: ((_e = inputRef.current) == null ? void 0 : _e.scrollHeight) === 32 ? "center" : "end", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ React116.createElement(
26907
26920
  Flex,
26908
26921
  {
26909
26922
  align: "end",
@@ -26998,7 +27011,7 @@ var ChatFooter = ({ onSend, children }) => {
26998
27011
 
26999
27012
  // src/Prebuilt/components/Chat/ChatStates.tsx
27000
27013
  init_define_process_env();
27001
- import React117, { useCallback as useCallback29 } from "react";
27014
+ import React117, { useCallback as useCallback30 } from "react";
27002
27015
  import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as useHMSActions40, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
27003
27016
  var ChatPaused = () => {
27004
27017
  var _a7, _b7;
@@ -27007,7 +27020,7 @@ var ChatPaused = () => {
27007
27020
  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);
27008
27021
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore60(selectSessionStore7("chatState" /* CHAT_STATE */)) || {};
27009
27022
  const localPeer = useHMSStore60(selectLocalPeer6);
27010
- const unPauseChat = useCallback29(
27023
+ const unPauseChat = useCallback30(
27011
27024
  () => __async(void 0, null, function* () {
27012
27025
  return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
27013
27026
  enabled: true,
@@ -27056,7 +27069,7 @@ var ChatBlocked = () => {
27056
27069
  init_define_process_env();
27057
27070
  import React120, { useEffect as useEffect35, useState as useState52 } from "react";
27058
27071
  import { useSwipeable } from "react-swipeable";
27059
- import { useMedia as useMedia18 } from "react-use";
27072
+ import { useMedia as useMedia19 } from "react-use";
27060
27073
  import { selectSessionStore as selectSessionStore8, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
27061
27074
  import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
27062
27075
 
@@ -27117,7 +27130,7 @@ var PinnedMessage = () => {
27117
27130
  const pinnedMessages = useHMSStore61(selectSessionStore8("pinnedMessages" /* PINNED_MESSAGES */));
27118
27131
  const [pinnedMessageIndex, setPinnedMessageIndex] = useState52(0);
27119
27132
  const { removePinnedMessage } = usePinnedMessages();
27120
- const isMobile = useMedia18(config.media.md);
27133
+ const isMobile = useMedia19(config.media.md);
27121
27134
  const { elements } = useRoomLayoutConferencingScreen();
27122
27135
  const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
27123
27136
  const [hideOverflow, setHideOverflow] = useState52(true);
@@ -27232,14 +27245,14 @@ var Chat = () => {
27232
27245
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27233
27246
  const listRef = useRef24(null);
27234
27247
  const hmsActions = useHMSActions41();
27235
- const vanillaStore = useHMSVanillaStore10();
27248
+ const vanillaStore = useHMSVanillaStore11();
27236
27249
  const { enabled: isChatEnabled = true } = useHMSStore62(Bm("chatState" /* CHAT_STATE */)) || {};
27237
- const isMobile = useMedia19(config.media.md);
27250
+ const isMobile = useMedia20(config.media.md);
27238
27251
  const isMobileHLSStream = useMobileHLSStream();
27239
27252
  const isLandscapeStream = useLandscapeHLSStream();
27240
27253
  useSidepaneResetOnLayoutUpdate("chat", SIDE_PANE_OPTIONS.CHAT);
27241
27254
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
27242
- const scrollToBottom = useCallback30(
27255
+ const scrollToBottom = useCallback31(
27243
27256
  (unreadCount = 0) => {
27244
27257
  var _a8;
27245
27258
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
@@ -27533,7 +27546,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
27533
27546
  const showChat = !!(elements == null ? void 0 : elements.chat);
27534
27547
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
27535
27548
  const hideTabs = !(showChat && showParticipants) || hideTab;
27536
- const isMobile = useMedia20(config.media.md);
27549
+ const isMobile = useMedia21(config.media.md);
27537
27550
  const isOverlayChat = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
27538
27551
  const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
27539
27552
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
@@ -27646,7 +27659,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
27646
27659
 
27647
27660
  // src/Prebuilt/components/VideoTile.tsx
27648
27661
  init_define_process_env();
27649
- import React128, { useCallback as useCallback31, useMemo as useMemo14, useState as useState56 } from "react";
27662
+ import React128, { useCallback as useCallback32, useMemo as useMemo14, useState as useState56 } from "react";
27650
27663
  import { useMeasure as useMeasure3 } from "react-use";
27651
27664
  import {
27652
27665
  selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
@@ -27715,7 +27728,7 @@ var TileConnection_default = TileConnection;
27715
27728
  // src/Prebuilt/components/TileMenu/TileMenu.tsx
27716
27729
  init_define_process_env();
27717
27730
  import React127, { useState as useState55 } from "react";
27718
- import { useMedia as useMedia22 } from "react-use";
27731
+ import { useMedia as useMedia23 } from "react-use";
27719
27732
  import {
27720
27733
  selectLocalPeerID as selectLocalPeerID11,
27721
27734
  selectPeerByID as selectPeerByID2,
@@ -27730,7 +27743,7 @@ import { CrossIcon as CrossIcon24, VerticalMenuIcon as VerticalMenuIcon8 } from
27730
27743
  // src/Prebuilt/components/TileMenu/TileMenuContent.tsx
27731
27744
  init_define_process_env();
27732
27745
  import React126, { Fragment as Fragment11 } from "react";
27733
- import { useMedia as useMedia21 } from "react-use";
27746
+ import { useMedia as useMedia22 } from "react-use";
27734
27747
  import {
27735
27748
  selectAvailableRoleNames as selectAvailableRoleNames6,
27736
27749
  selectPermissions as selectPermissions18,
@@ -27924,7 +27937,7 @@ var TileMenuContent = ({
27924
27937
  const { sendEvent } = useCustomEvent2({
27925
27938
  type: REMOTE_STOP_SCREENSHARE_TYPE
27926
27939
  });
27927
- const isMobile = useMedia21(config.media.md);
27940
+ const isMobile = useMedia22(config.media.md);
27928
27941
  if (isLocal) {
27929
27942
  return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */ React126.createElement(React126.Fragment, null, showPinAction && /* @__PURE__ */ React126.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React126.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ React126.createElement(MinimiseInset, null), !userName && /* @__PURE__ */ React126.createElement(
27930
27943
  StyledMenuTile.ItemButton,
@@ -28036,7 +28049,7 @@ var TileMenu = ({
28036
28049
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
28037
28050
  const track = useHMSStore68(selectTrackByID3(videoTrackID));
28038
28051
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
28039
- const isMobile = useMedia22(config.media.md);
28052
+ const isMobile = useMedia23(config.media.md);
28040
28053
  const peer = useHMSStore68(selectPeerByID2(peerID));
28041
28054
  const [showNameChangeModal, setShowNameChangeModal] = useState55(false);
28042
28055
  const [showRoleChangeModal, setShowRoleChangeModal] = useState55(false);
@@ -28162,7 +28175,7 @@ var Tile = ({
28162
28175
  track,
28163
28176
  isLocal
28164
28177
  });
28165
- const onHoverHandler = useCallback31((event) => {
28178
+ const onHoverHandler = useCallback32((event) => {
28166
28179
  setIsMouseHovered(event.type === "mouseenter");
28167
28180
  }, []);
28168
28181
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure3();
@@ -28235,7 +28248,7 @@ var VideoTile_default = VideoTile;
28235
28248
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28236
28249
  init_define_process_env();
28237
28250
  import React131, { useEffect as useEffect38, useState as useState57 } from "react";
28238
- import { useMedia as useMedia23 } from "react-use";
28251
+ import { useMedia as useMedia24 } from "react-use";
28239
28252
  import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
28240
28253
  import {
28241
28254
  HMSRoomState as HMSRoomState4,
@@ -28427,7 +28440,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28427
28440
  const isLargeRoom = useHMSStore70(selectIsLargeRoom3);
28428
28441
  const isEffectsEnabled = useHMSStore70(ym);
28429
28442
  const effectsKey = useHMSStore70(km);
28430
- const isMobile = useMedia23(config.media.md);
28443
+ const isMobile = useMedia24(config.media.md);
28431
28444
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28432
28445
  const isPluginAdded = useHMSStore70(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28433
28446
  const background = useHMSStore70(Um(APP_DATA.background));
@@ -28674,8 +28687,8 @@ var SidePane = ({
28674
28687
  tileProps,
28675
28688
  hideControls = false
28676
28689
  }) => {
28677
- var _a7, _b7, _c, _d, _e2, _f, _g;
28678
- const isMobile = useMedia24(config.media.md);
28690
+ var _a7, _b7, _c, _d, _e, _f, _g;
28691
+ const isMobile = useMedia25(config.media.md);
28679
28692
  const sidepane = useHMSStore71(selectAppData8(APP_DATA.sidePane));
28680
28693
  const activeScreensharePeerId = useHMSStore71(selectAppData8(APP_DATA.activeScreensharePeerId));
28681
28694
  const trackId = (_a7 = useHMSStore71(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a7.id;
@@ -28684,7 +28697,7 @@ var SidePane = ({
28684
28697
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
28685
28698
  const isLandscapeHLSStream = useLandscapeHLSStream();
28686
28699
  const isMobileHLSStream = useMobileHLSStream();
28687
- const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e2 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e2.background_media) || [];
28700
+ const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e.background_media) || [];
28688
28701
  const tileLayout = {
28689
28702
  hideParticipantNameOnTile: tileProps == null ? void 0 : tileProps.hide_participant_name_on_tile,
28690
28703
  roundedVideoTile: tileProps == null ? void 0 : tileProps.rounded_video_tile,
@@ -28798,7 +28811,7 @@ var FullPageProgress_default = FullPageProgress;
28798
28811
  // src/Prebuilt/components/Preview/PreviewForm.tsx
28799
28812
  init_define_process_env();
28800
28813
  import React135 from "react";
28801
- import { useMedia as useMedia25 } from "react-use";
28814
+ import { useMedia as useMedia26 } from "react-use";
28802
28815
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType3 } from "@100mslive/types-prebuilt/elements/join_form";
28803
28816
  import { useRecordingStreaming as useRecordingStreaming10 } from "@100mslive/react-sdk";
28804
28817
  import { GoLiveIcon } from "@100mslive/react-icons";
@@ -28815,7 +28828,7 @@ var PreviewForm = ({
28815
28828
  const formSubmit = (e) => {
28816
28829
  e.preventDefault();
28817
28830
  };
28818
- const isMobile = useMedia25(config.media.md);
28831
+ const isMobile = useMedia26(config.media.md);
28819
28832
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming10();
28820
28833
  const layout = useRoomLayout();
28821
28834
  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) || {};
@@ -28876,7 +28889,7 @@ var getParticipantChipContent = (peerCount = 0) => {
28876
28889
  var useLocalTileAspectRatio = () => {
28877
28890
  const localPeer = useHMSStore72(selectLocalPeer9);
28878
28891
  const videoTrack = useHMSStore72(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
28879
- const isMobile = useMedia26(config.media.md);
28892
+ const isMobile = useMedia27(config.media.md);
28880
28893
  let aspectRatio = 0;
28881
28894
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
28882
28895
  aspectRatio = videoTrack.width / videoTrack.height;
@@ -28921,7 +28934,7 @@ var PreviewJoin = ({
28921
28934
  });
28922
28935
  const { requestPermission } = useAwayNotifications2();
28923
28936
  const roomState = useHMSStore72(selectRoomState5);
28924
- const savePreferenceAndJoin = useCallback32(() => {
28937
+ const savePreferenceAndJoin = useCallback33(() => {
28925
28938
  setPreviewPreference({
28926
28939
  name
28927
28940
  });
@@ -28944,21 +28957,14 @@ var PreviewJoin = ({
28944
28957
  setName(initialName);
28945
28958
  }
28946
28959
  }, [initialName]);
28947
- return roomState === HMSRoomState5.Preview ? /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ React136.createElement(Container4, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ React136.createElement(Box, null), /* @__PURE__ */ React136.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "640px" } }, /* @__PURE__ */ React136.createElement(Logo, null), /* @__PURE__ */ React136.createElement(
28948
- Text,
28949
- {
28950
- variant: "h4",
28951
- css: { wordBreak: "break-word", textAlign: "center", mt: "$14", mb: "$4", "@md": { mt: "$8", mb: "$2" } }
28952
- },
28953
- previewHeader.title
28954
- ), /* @__PURE__ */ React136.createElement(
28960
+ return roomState === HMSRoomState5.Preview ? /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ React136.createElement(Container4, { css: { h: "100%", pt: "$6", "@md": { justifyContent: "space-between", pt: "$10" } } }, toggleVideo ? null : /* @__PURE__ */ React136.createElement(Box, null), /* @__PURE__ */ React136.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "600px", gap: "$8" } }, /* @__PURE__ */ React136.createElement(Logo, null), /* @__PURE__ */ React136.createElement(Text, { variant: "h4", css: { wordBreak: "break-word", textAlign: "center" } }, previewHeader.title), /* @__PURE__ */ React136.createElement(
28955
28961
  Text,
28956
28962
  {
28957
- css: { c: "$on_surface_medium", my: "0", textAlign: "center", maxWidth: "100%", wordWrap: "break-word" },
28963
+ css: { c: "$on_surface_medium", textAlign: "center", maxWidth: "100%", wordWrap: "break-word" },
28958
28964
  variant: "sm"
28959
28965
  },
28960
28966
  previewHeader.sub_title
28961
- ), /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: { mt: "$14", "@md": { mt: "$8", mb: "0" }, gap: "$4" } }, isStreamingOn ? /* @__PURE__ */ React136.createElement(
28967
+ ), /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: { gap: "$4" } }, isStreamingOn ? /* @__PURE__ */ React136.createElement(
28962
28968
  Chip_default,
28963
28969
  {
28964
28970
  content: "LIVE",
@@ -28966,7 +28972,7 @@ var PreviewJoin = ({
28966
28972
  textColor: "#FFF",
28967
28973
  icon: /* @__PURE__ */ React136.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
28968
28974
  }
28969
- ) : null, /* @__PURE__ */ React136.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ React136.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ React136.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 360}px` } }, /* @__PURE__ */ React136.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ React136.createElement(
28975
+ ) : null, /* @__PURE__ */ React136.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ React136.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ React136.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 340}px` } }, /* @__PURE__ */ React136.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ React136.createElement(
28970
28976
  PreviewForm_default,
28971
28977
  {
28972
28978
  name,
@@ -29006,11 +29012,11 @@ var PreviewTile = ({ name, error }) => {
29006
29012
  css: {
29007
29013
  bg: "$surface_default",
29008
29014
  aspectRatio,
29009
- height: "min(360px, 70vh)",
29015
+ height: "min(340px, 70vh)",
29010
29016
  width: "auto",
29011
- maxWidth: "640px",
29017
+ maxWidth: "600px",
29012
29018
  overflow: "clip",
29013
- mt: "$14",
29019
+ mt: "$10",
29014
29020
  "@md": {
29015
29021
  mt: 0,
29016
29022
  width: "min(220px, 70vw)",
@@ -29032,14 +29038,14 @@ var PreviewTile = ({ name, error }) => {
29032
29038
  );
29033
29039
  };
29034
29040
  var PreviewControls = ({ hideSettings, vbEnabled }) => {
29035
- const isMobile = useMedia26(config.media.md);
29041
+ const isMobile = useMedia27(config.media.md);
29036
29042
  return /* @__PURE__ */ React136.createElement(
29037
29043
  Flex,
29038
29044
  {
29039
29045
  justify: hideSettings && isMobile ? "center" : "between",
29040
29046
  css: {
29041
29047
  width: "100%",
29042
- mt: "$8"
29048
+ mt: "$6"
29043
29049
  }
29044
29050
  },
29045
29051
  /* @__PURE__ */ React136.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React136.createElement(AudioVideoToggle, null), vbEnabled ? /* @__PURE__ */ React136.createElement(VBToggle, null) : null),
@@ -29055,7 +29061,7 @@ var PreviewJoin_default = PreviewJoin;
29055
29061
  // src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx
29056
29062
  init_define_process_env();
29057
29063
  import React137 from "react";
29058
- import { useMedia as useMedia27 } from "react-use";
29064
+ import { useMedia as useMedia28 } from "react-use";
29059
29065
  var RequestPrompt = ({
29060
29066
  open = true,
29061
29067
  onOpenChange,
@@ -29065,7 +29071,7 @@ var RequestPrompt = ({
29065
29071
  onAction,
29066
29072
  disableActions = false
29067
29073
  }) => {
29068
- const isMobile = useMedia27(config.media.md);
29074
+ const isMobile = useMedia28(config.media.md);
29069
29075
  if (isMobile) {
29070
29076
  return /* @__PURE__ */ React137.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ React137.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ React137.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ React137.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
29071
29077
  }
@@ -29153,7 +29159,7 @@ var RoleChangeRequestModal = () => {
29153
29159
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
29154
29160
  init_define_process_env();
29155
29161
  import React157, { Suspense, useEffect as useEffect55, useState as useState68 } from "react";
29156
- import { useMedia as useMedia37 } from "react-use";
29162
+ import { useMedia as useMedia38 } from "react-use";
29157
29163
  import { match as match12 } from "ts-pattern";
29158
29164
  import {
29159
29165
  selectIsConnectedToRoom as selectIsConnectedToRoom9,
@@ -29174,13 +29180,13 @@ import {
29174
29180
  selectPeerScreenSharing as selectPeerScreenSharing2,
29175
29181
  selectWhiteboard as selectWhiteboard2,
29176
29182
  useHMSStore as useHMSStore80,
29177
- useHMSVanillaStore as useHMSVanillaStore12
29183
+ useHMSVanillaStore as useHMSVanillaStore13
29178
29184
  } from "@100mslive/react-sdk";
29179
29185
 
29180
29186
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29181
29187
  init_define_process_env();
29182
29188
  import React144, { useEffect as useEffect45, useState as useState60 } from "react";
29183
- import { useMedia as useMedia30 } from "react-use";
29189
+ import { useMedia as useMedia31 } from "react-use";
29184
29190
  import { PeopleAddIcon as PeopleAddIcon2 } from "@100mslive/react-icons";
29185
29191
 
29186
29192
  // src/Prebuilt/layouts/WaitingView.tsx
@@ -29243,7 +29249,7 @@ var WaitingView = React139.memo(
29243
29249
  init_define_process_env();
29244
29250
  import React141, { useEffect as useEffect42, useRef as useRef25 } from "react";
29245
29251
  import Draggable from "react-draggable";
29246
- import { useMedia as useMedia28 } from "react-use";
29252
+ import { useMedia as useMedia29 } from "react-use";
29247
29253
  import {
29248
29254
  selectIsAllowedToPublish as selectIsAllowedToPublish3,
29249
29255
  selectLocalPeer as selectLocalPeer10,
@@ -29287,8 +29293,8 @@ var insetMaxWidthPx = 240;
29287
29293
  var defaultMobileAspectRatio = 9 / 16;
29288
29294
  var desktopAspectRatio = 1 / defaultMobileAspectRatio;
29289
29295
  var InsetTile = ({ peerId }) => {
29290
- const isMobile = useMedia28(config.media.md);
29291
- const isLandscape = useMedia28(config.media.ls);
29296
+ const isMobile = useMedia29(config.media.md);
29297
+ const isLandscape = useMedia29(config.media.ls);
29292
29298
  const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer10;
29293
29299
  const peer = useHMSStore74(selector);
29294
29300
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
@@ -29448,15 +29454,15 @@ var Grid = React143.forwardRef(
29448
29454
  // src/Prebuilt/components/hooks/useTileLayout.tsx
29449
29455
  init_define_process_env();
29450
29456
  import { useEffect as useEffect44, useMemo as useMemo16, useState as useState59 } from "react";
29451
- import { useMeasure as useMeasure5, useMedia as useMedia29 } from "react-use";
29457
+ import { useMeasure as useMeasure5, useMedia as useMedia30 } from "react-use";
29452
29458
  import {
29453
29459
  getPeersWithTiles,
29454
29460
  selectTracksMap as selectTracksMap4,
29455
- useHMSVanillaStore as useHMSVanillaStore11
29461
+ useHMSVanillaStore as useHMSVanillaStore12
29456
29462
  } from "@100mslive/react-sdk";
29457
29463
  var aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
29458
29464
  var usePagesWithTiles = ({ peers, maxTileCount }) => {
29459
- const vanillaStore = useHMSVanillaStore11();
29465
+ const vanillaStore = useHMSVanillaStore12();
29460
29466
  const tracksMap = vanillaStore.getState(selectTracksMap4);
29461
29467
  const peersWithTiles = useMemo16(
29462
29468
  () => getPeersWithTiles(peers, tracksMap, () => false),
@@ -29482,9 +29488,9 @@ var useTileLayout = ({
29482
29488
  maxTileCount,
29483
29489
  edgeToEdge = false
29484
29490
  }) => {
29485
- const vanillaStore = useHMSVanillaStore11();
29491
+ const vanillaStore = useHMSVanillaStore12();
29486
29492
  const [ref, { width, height }] = useMeasure5();
29487
- const isMobile = useMedia29(config.media.lg);
29493
+ const isMobile = useMedia30(config.media.lg);
29488
29494
  const [pagesWithTiles, setPagesWithTiles] = useState59([]);
29489
29495
  useEffect44(() => {
29490
29496
  if (width === 0 || height === 0) {
@@ -29553,7 +29559,7 @@ var useTileLayout = ({
29553
29559
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29554
29560
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
29555
29561
  var _a7;
29556
- const isMobile = useMedia30(config.media.md);
29562
+ const isMobile = useMedia31(config.media.md);
29557
29563
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29558
29564
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
29559
29565
  const pageList = usePagesWithTiles({
@@ -29595,13 +29601,13 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29595
29601
  // src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
29596
29602
  init_define_process_env();
29597
29603
  import React147, { useEffect as useEffect47, useState as useState62 } from "react";
29598
- import { useMedia as useMedia32 } from "react-use";
29604
+ import { useMedia as useMedia33 } from "react-use";
29599
29605
  import { selectLocalPeer as selectLocalPeer11, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
29600
29606
 
29601
29607
  // src/Prebuilt/components/SecondaryTiles.tsx
29602
29608
  init_define_process_env();
29603
29609
  import React146, { useEffect as useEffect46, useRef as useRef26, useState as useState61 } from "react";
29604
- import { useMedia as useMedia31 } from "react-use";
29610
+ import { useMedia as useMedia32 } from "react-use";
29605
29611
  import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore12, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
29606
29612
 
29607
29613
  // src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
@@ -29686,7 +29692,7 @@ var ProminenceLayout = {
29686
29692
  // src/Prebuilt/components/SecondaryTiles.tsx
29687
29693
  var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
29688
29694
  var _a7, _b7;
29689
- const isMobile = useMedia31(config.media.md);
29695
+ const isMobile = useMedia32(config.media.md);
29690
29696
  const maxTileCount = isMobile ? 2 : 4;
29691
29697
  const [page, setPage] = useState61(0);
29692
29698
  const pinnedTrackId = useHMSStore75(selectAppData10(APP_DATA.pinnedTrackId));
@@ -29794,7 +29800,7 @@ function RoleProminence({
29794
29800
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
29795
29801
  const localPeer = useHMSStore76(selectLocalPeer11);
29796
29802
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
29797
- const isMobile = useMedia32(config.media.md);
29803
+ const isMobile = useMedia33(config.media.md);
29798
29804
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29799
29805
  maxTileCount = isMobile ? 4 : maxTileCount;
29800
29806
  const pageList = usePagesWithTiles({
@@ -29836,13 +29842,13 @@ function RoleProminence({
29836
29842
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
29837
29843
  init_define_process_env();
29838
29844
  import React151, { useEffect as useEffect48, useMemo as useMemo18, useState as useState65 } from "react";
29839
- import { useMedia as useMedia34 } from "react-use";
29845
+ import { useMedia as useMedia35 } from "react-use";
29840
29846
  import { selectPeersScreenSharing, useHMSStore as useHMSStore78 } from "@100mslive/react-sdk";
29841
29847
 
29842
29848
  // src/Prebuilt/components/ScreenshareTile.tsx
29843
29849
  init_define_process_env();
29844
29850
  import React150, { useRef as useRef27, useState as useState64 } from "react";
29845
- import { useFullscreen as useFullscreen2, useMedia as useMedia33 } from "react-use";
29851
+ import { useFullscreen as useFullscreen2, useMedia as useMedia34 } from "react-use";
29846
29852
  import screenfull2 from "screenfull";
29847
29853
  import {
29848
29854
  selectLocalPeerID as selectLocalPeerID13,
@@ -29855,12 +29861,12 @@ import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive
29855
29861
 
29856
29862
  // src/Prebuilt/components/LayoutModeSelector.tsx
29857
29863
  init_define_process_env();
29858
- import React148, { useCallback as useCallback33, useState as useState63 } from "react";
29864
+ import React148, { useCallback as useCallback34, useState as useState63 } from "react";
29859
29865
  import { CheckIcon as CheckIcon7, ChevronDownIcon as ChevronDownIcon9, ChevronUpIcon as ChevronUpIcon7 } from "@100mslive/react-icons";
29860
29866
  var LayoutModeSelector = () => {
29861
29867
  const [open, setOpen] = useState63(false);
29862
29868
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
29863
- const updateLayoutMode = useCallback33(
29869
+ const updateLayoutMode = useCallback34(
29864
29870
  (value) => {
29865
29871
  setLayoutMode(value);
29866
29872
  setOpen(false);
@@ -30010,7 +30016,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
30010
30016
  const peer = useHMSStore77(selectPeerByID4(peerId));
30011
30017
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
30012
30018
  const [isMouseHovered, setIsMouseHovered] = useState64(false);
30013
- const isMobile = useMedia33(config.media.md);
30019
+ const isMobile = useMedia34(config.media.md);
30014
30020
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
30015
30021
  const fullscreenRef = useRef27(null);
30016
30022
  const [fullscreen, setFullscreen] = useState64(false);
@@ -30102,7 +30108,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30102
30108
  const [page, setPage] = useState65(0);
30103
30109
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
30104
30110
  const activeSharePeer = peersSharing[page];
30105
- const isMobile = useMedia34(config.media.md);
30111
+ const isMobile = useMedia35(config.media.md);
30106
30112
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
30107
30113
  const secondaryPeers = useMemo18(() => {
30108
30114
  if (layoutMode === LayoutMode.SPOTLIGHT) {
@@ -30147,11 +30153,11 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30147
30153
  // src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
30148
30154
  init_define_process_env();
30149
30155
  import React152, { useEffect as useEffect49, useMemo as useMemo19 } from "react";
30150
- import { useMedia as useMedia35 } from "react-use";
30156
+ import { useMedia as useMedia36 } from "react-use";
30151
30157
  import { Whiteboard } from "@100mslive/hms-whiteboard";
30152
30158
  import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore79, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
30153
30159
  var WhiteboardEmbed = () => {
30154
- const isMobile = useMedia35(config.media.md);
30160
+ const isMobile = useMedia36(config.media.md);
30155
30161
  const { token, endpoint, zoomToContent } = useWhiteboard2(isMobile);
30156
30162
  if (!token) {
30157
30163
  return null;
@@ -30176,7 +30182,7 @@ var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30176
30182
  const whiteboard = useHMSStore79(selectWhiteboard);
30177
30183
  const whiteboardOwner = useHMSStore79(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
30178
30184
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
30179
- const isMobile = useMedia35(config.media.md);
30185
+ const isMobile = useMedia36(config.media.md);
30180
30186
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
30181
30187
  const secondaryPeers = useMemo19(() => {
30182
30188
  if (layoutMode === LayoutMode.SPOTLIGHT) {
@@ -30352,7 +30358,7 @@ var GridLayout = ({
30352
30358
  peers,
30353
30359
  pinnedTrack
30354
30360
  ]);
30355
- const vanillaStore = useHMSVanillaStore12();
30361
+ const vanillaStore = useHMSVanillaStore13();
30356
30362
  const [sortedPeers, setSortedPeers] = useState66(updatedPeers);
30357
30363
  const peersSorter = useMemo20(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
30358
30364
  const [pageSize, setPageSize] = useState66(0);
@@ -30556,7 +30562,7 @@ var PDFView = () => {
30556
30562
  init_define_process_env();
30557
30563
  import React156, { useEffect as useEffect53, useRef as useRef28, useState as useState67 } from "react";
30558
30564
  import Draggable2 from "react-draggable";
30559
- import { useMedia as useMedia36 } from "react-use";
30565
+ import { useMedia as useMedia37 } from "react-use";
30560
30566
  import {
30561
30567
  selectIsTranscriptionEnabled as selectIsTranscriptionEnabled5,
30562
30568
  selectPeerNameByID as selectPeerNameByID6,
@@ -30718,7 +30724,7 @@ var CaptionsViewer = ({
30718
30724
  }) => {
30719
30725
  var _a7;
30720
30726
  const { elements, screenType } = useRoomLayoutConferencingScreen();
30721
- const isMobile = useMedia36(config.media.md);
30727
+ const isMobile = useMedia37(config.media.md);
30722
30728
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
30723
30729
  const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
30724
30730
  const [captionQueue] = useState67(new CaptionMaintainerQueue());
@@ -30806,7 +30812,7 @@ var useCloseScreenshareWhiteboard = () => {
30806
30812
  };
30807
30813
 
30808
30814
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
30809
- var HLSView = React157.lazy(() => import("./HLSView-O4KQ2SQJ.js"));
30815
+ var HLSView = React157.lazy(() => import("./HLSView-NMG7P72A.js"));
30810
30816
  var VideoStreamingSection = ({
30811
30817
  screenType,
30812
30818
  elements,
@@ -30821,7 +30827,7 @@ var VideoStreamingSection = ({
30821
30827
  const pdfAnnotatorActive = usePDFConfig();
30822
30828
  const isMobileHLSStream = useMobileHLSStream();
30823
30829
  const isLandscapeHLSStream = useLandscapeHLSStream();
30824
- const isMobile = useMedia37(config.media.md);
30830
+ const isMobile = useMedia38(config.media.md);
30825
30831
  const [captionPosition, setCaptionPosition] = useState68({ x: isMobile ? 0 : -200, y: 0 });
30826
30832
  useCloseScreenshareWhiteboard();
30827
30833
  const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
@@ -30924,17 +30930,17 @@ init_define_process_env();
30924
30930
  // src/Prebuilt/components/Header/Header.tsx
30925
30931
  init_define_process_env();
30926
30932
  import React160 from "react";
30927
- import { useMedia as useMedia39 } from "react-use";
30933
+ import { useMedia as useMedia40 } from "react-use";
30928
30934
  import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
30929
30935
 
30930
30936
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
30931
30937
  init_define_process_env();
30932
30938
  import React158 from "react";
30933
- import { useMedia as useMedia38 } from "react-use";
30939
+ import { useMedia as useMedia39 } from "react-use";
30934
30940
  import { ChevronRightIcon as ChevronRightIcon5 } from "@100mslive/react-icons";
30935
30941
  var RoomDetailsHeader = () => {
30936
30942
  const { title, description } = useRoomLayoutHeader();
30937
- const isMobile = useMedia38(config.media.md);
30943
+ const isMobile = useMedia39(config.media.md);
30938
30944
  const clipLength = 30;
30939
30945
  const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
30940
30946
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -31117,7 +31123,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React159.createElement(Re
31117
31123
  // src/Prebuilt/components/Header/Header.tsx
31118
31124
  var Header2 = () => {
31119
31125
  const roomState = useHMSStore86(selectRoomState6);
31120
- const isMobile = useMedia39(config.media.md);
31126
+ const isMobile = useMedia40(config.media.md);
31121
31127
  if (roomState !== HMSRoomState6.Connected) {
31122
31128
  return /* @__PURE__ */ React160.createElement(React160.Fragment, null);
31123
31129
  }
@@ -31139,9 +31145,9 @@ var Header2 = () => {
31139
31145
  // src/Prebuilt/components/PreviousRoleInMetadata.tsx
31140
31146
  init_define_process_env();
31141
31147
  import { useEffect as useEffect56 } from "react";
31142
- import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore13 } from "@100mslive/react-sdk";
31148
+ import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore14 } from "@100mslive/react-sdk";
31143
31149
  var PreviousRoleInMetadata = () => {
31144
- const vanillaStore = useHMSVanillaStore13();
31150
+ const vanillaStore = useHMSVanillaStore14();
31145
31151
  const { updateMetaData } = useMyMetadata();
31146
31152
  useEffect56(() => {
31147
31153
  let previousRole = vanillaStore.getState(selectLocalPeerRoleName7);
@@ -31158,7 +31164,7 @@ var PreviousRoleInMetadata = () => {
31158
31164
 
31159
31165
  // src/Prebuilt/components/ConferenceScreen.tsx
31160
31166
  var ConferenceScreen = () => {
31161
- var _a7, _b7, _c, _d, _e2, _f;
31167
+ var _a7, _b7, _c, _d, _e, _f;
31162
31168
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
31163
31169
  const screenProps = useRoomLayoutConferencingScreen();
31164
31170
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -31257,7 +31263,7 @@ var ConferenceScreen = () => {
31257
31263
  flex: "1 1 0",
31258
31264
  minHeight: 0,
31259
31265
  // @ts-ignore
31260
- px: ((_e2 = (_d = (_c = screenProps == null ? void 0 : screenProps.elements) == null ? void 0 : _c.video_tile_layout) == null ? void 0 : _d.grid) == null ? void 0 : _e2.edge_to_edge) ? 0 : "$10",
31266
+ px: ((_e = (_d = (_c = screenProps == null ? void 0 : screenProps.elements) == null ? void 0 : _c.video_tile_layout) == null ? void 0 : _d.grid) == null ? void 0 : _e.edge_to_edge) ? 0 : "$10",
31261
31267
  // TODO: padding to be controlled by section/element
31262
31268
  paddingBottom: "env(safe-area-inset-bottom)",
31263
31269
  "@lg": {
@@ -31472,7 +31478,7 @@ import {
31472
31478
  selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
31473
31479
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled9,
31474
31480
  useHMSActions as useHMSActions50,
31475
- useHMSVanillaStore as useHMSVanillaStore14
31481
+ useHMSVanillaStore as useHMSVanillaStore15
31476
31482
  } from "@100mslive/react-sdk";
31477
31483
  var isEvenListenersAttached = false;
31478
31484
  var _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind;
@@ -31559,7 +31565,7 @@ _keyDownHandler = new WeakMap();
31559
31565
  _bind = new WeakMap();
31560
31566
  _unbind = new WeakMap();
31561
31567
  var KeyboardHandler = () => {
31562
- const store = useHMSVanillaStore14();
31568
+ const store = useHMSVanillaStore15();
31563
31569
  const actions = useHMSActions50();
31564
31570
  useEffect60(() => {
31565
31571
  const keyboardManager = new KeyboardInputManager(store, actions);
@@ -31578,15 +31584,15 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
31578
31584
  init_define_process_env();
31579
31585
  import React164, { useContext as useContext5, useEffect as useEffect61 } from "react";
31580
31586
  import { usePreviousDistinct } from "react-use";
31581
- import { match as match13, P as P4 } from "ts-pattern";
31587
+ import { match as match13, P as P5 } from "ts-pattern";
31582
31588
  import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
31583
31589
 
31584
31590
  // src/Prebuilt/components/hooks/useRedirectToLeave.tsx
31585
31591
  init_define_process_env();
31586
- import { useCallback as useCallback34 } from "react";
31592
+ import { useCallback as useCallback35 } from "react";
31587
31593
  var useRedirectToLeave = () => {
31588
31594
  const { onLeave } = useHMSPrebuiltContext();
31589
- const redirect = useCallback34(
31595
+ const redirect = useCallback35(
31590
31596
  (timeout = 0) => {
31591
31597
  setTimeout(() => {
31592
31598
  PictureInPicture.stop().catch(() => console.error("stopping pip"));
@@ -31630,7 +31636,7 @@ var useAppStateManager = () => {
31630
31636
  if (!roomLayout) {
31631
31637
  return;
31632
31638
  }
31633
- match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P4.any], () => setActiveState("meeting" /* MEETING */)).with(
31639
+ match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P5.any], () => setActiveState("meeting" /* MEETING */)).with(
31634
31640
  [HMSRoomState8.Disconnecting, HMSRoomState8.Connected],
31635
31641
  [HMSRoomState8.Disconnecting, HMSRoomState8.Connecting],
31636
31642
  [HMSRoomState8.Disconnecting, HMSRoomState8.Reconnecting],
@@ -31644,7 +31650,7 @@ var useAppStateManager = () => {
31644
31650
  VBHandler.reset();
31645
31651
  redirectToLeave(1e3);
31646
31652
  }
31647
- ).with([HMSRoomState8.Disconnected, P4.nullish], () => {
31653
+ ).with([HMSRoomState8.Disconnected, P5.nullish], () => {
31648
31654
  setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
31649
31655
  }).otherwise(() => {
31650
31656
  });
@@ -31699,12 +31705,12 @@ var LeaveScreen = () => {
31699
31705
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
31700
31706
  init_define_process_env();
31701
31707
  import React166, { useEffect as useEffect62, useState as useState70 } from "react";
31702
- import { useMedia as useMedia40 } from "react-use";
31703
- import { match as match14, P as P5 } from "ts-pattern";
31708
+ import { useMedia as useMedia41 } from "react-use";
31709
+ import { match as match14, P as P6 } from "ts-pattern";
31704
31710
  import { RefreshIcon } from "@100mslive/react-icons";
31705
31711
  var MwebLandscapePrompt = () => {
31706
31712
  const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState70(false);
31707
- const isLandscape = useMedia40(config.media.ls);
31713
+ const isLandscape = useMedia41(config.media.ls);
31708
31714
  const isLandscapeHLSStream = useLandscapeHLSStream();
31709
31715
  useEffect62(() => {
31710
31716
  var _a7;
@@ -31720,7 +31726,7 @@ var MwebLandscapePrompt = () => {
31720
31726
  const angle = window.screen.orientation.angle;
31721
31727
  const type = window.screen.orientation.type || "";
31722
31728
  setShowMwebLandscapePrompt(
31723
- match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P5.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
31729
+ match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P6.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
31724
31730
  );
31725
31731
  };
31726
31732
  handleRotation();
@@ -31751,7 +31757,7 @@ init_define_process_env();
31751
31757
 
31752
31758
  // src/Prebuilt/components/Notifications/Notifications.tsx
31753
31759
  init_define_process_env();
31754
- import React176, { useCallback as useCallback36, useEffect as useEffect73 } from "react";
31760
+ import React176, { useCallback as useCallback37, useEffect as useEffect73 } from "react";
31755
31761
  import {
31756
31762
  HMSNotificationTypes as HMSNotificationTypes11,
31757
31763
  HMSRoomState as HMSRoomState10,
@@ -31763,7 +31769,7 @@ import {
31763
31769
  useCustomEvent as useCustomEvent4,
31764
31770
  useHMSNotifications as useHMSNotifications11,
31765
31771
  useHMSStore as useHMSStore93,
31766
- useHMSVanillaStore as useHMSVanillaStore16
31772
+ useHMSVanillaStore as useHMSVanillaStore17
31767
31773
  } from "@100mslive/react-sdk";
31768
31774
  import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
31769
31775
 
@@ -31842,7 +31848,7 @@ import {
31842
31848
  useAwayNotifications as useAwayNotifications4,
31843
31849
  useHMSNotifications as useHMSNotifications2,
31844
31850
  useHMSStore as useHMSStore92,
31845
- useHMSVanillaStore as useHMSVanillaStore15
31851
+ useHMSVanillaStore as useHMSVanillaStore16
31846
31852
  } from "@100mslive/react-sdk";
31847
31853
 
31848
31854
  // src/Prebuilt/components/Toast/ToastBatcher.js
@@ -31850,7 +31856,7 @@ init_define_process_env();
31850
31856
 
31851
31857
  // src/Prebuilt/components/Toast/ToastConfig.jsx
31852
31858
  init_define_process_env();
31853
- import React169, { useCallback as useCallback35 } from "react";
31859
+ import React169, { useCallback as useCallback36 } from "react";
31854
31860
  import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions51, useHMSStore as useHMSStore91 } from "@100mslive/react-sdk";
31855
31861
  import {
31856
31862
  ChatUnreadIcon as ChatUnreadIcon2,
@@ -31881,7 +31887,7 @@ var HandRaiseAction = React169.forwardRef(({ id = "", isSingleHandRaise = true }
31881
31887
  off_stage_roles = [],
31882
31888
  skip_preview_for_role_change = false
31883
31889
  } = ((_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) || {};
31884
- const onClickHandler = useCallback35(() => __async(void 0, null, function* () {
31890
+ const onClickHandler = useCallback36(() => __async(void 0, null, function* () {
31885
31891
  if (isSingleHandRaise) {
31886
31892
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
31887
31893
  if (skip_preview_for_role_change) {
@@ -32083,7 +32089,7 @@ var HandRaisedNotifications = () => {
32083
32089
  var _a7, _b7;
32084
32090
  const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
32085
32091
  const roomState = useHMSStore92(selectRoomState9);
32086
- const vanillaStore = useHMSVanillaStore15();
32092
+ const vanillaStore = useHMSVanillaStore16();
32087
32093
  const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
32088
32094
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
32089
32095
  const amIScreenSharing = useHMSStore92(selectIsLocalScreenShared3);
@@ -32198,7 +32204,7 @@ var PeerNotifications = () => {
32198
32204
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
32199
32205
  init_define_process_env();
32200
32206
  import React171, { useEffect as useEffect67, useState as useState72 } from "react";
32201
- import { useMedia as useMedia41 } from "react-use";
32207
+ import { useMedia as useMedia42 } from "react-use";
32202
32208
  import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
32203
32209
 
32204
32210
  // src/Prebuilt/images/android-perm-1.png
@@ -32215,7 +32221,7 @@ function PermissionErrorNotificationModal() {
32215
32221
  var PermissionErrorModal = ({ error }) => {
32216
32222
  const [deviceType, setDeviceType] = useState72("");
32217
32223
  const [isSystemError, setIsSystemError] = useState72(false);
32218
- const isMobile = useMedia41(config.media.md);
32224
+ const isMobile = useMedia42(config.media.md);
32219
32225
  useEffect67(() => {
32220
32226
  if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
32221
32227
  return;
@@ -32503,13 +32509,13 @@ function Notifications() {
32503
32509
  const updateRoomLayoutForRole = useUpdateRoomLayout();
32504
32510
  const isNotificationDisabled = useIsNotificationDisabled();
32505
32511
  const screenProps = useRoomLayoutConferencingScreen();
32506
- const vanillaStore = useHMSVanillaStore16();
32512
+ const vanillaStore = useHMSVanillaStore17();
32507
32513
  const togglePollView = usePollViewToggle();
32508
32514
  const { showNotification } = useAwayNotifications5();
32509
32515
  const amIScreenSharing = useHMSStore93(selectIsLocalScreenShared4);
32510
32516
  const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
32511
32517
  const { pipWindow } = usePIPWindow();
32512
- const handleRoleChangeDenied = useCallback36((request) => {
32518
+ const handleRoleChangeDenied = useCallback37((request) => {
32513
32519
  ToastManager.addToast({
32514
32520
  title: `${request.peerName} denied your request to join the ${request.role.name} role`,
32515
32521
  variant: "error"
@@ -32517,7 +32523,7 @@ function Notifications() {
32517
32523
  }, []);
32518
32524
  useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
32519
32525
  useEffect73(() => {
32520
- var _a8, _b8, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
32526
+ var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
32521
32527
  if (!notification || isNotificationDisabled) {
32522
32528
  return;
32523
32529
  }
@@ -32531,7 +32537,7 @@ function Notifications() {
32531
32537
  ToastManager.addToast({
32532
32538
  title: `Error: ${(_d = notification.data) == null ? void 0 : _d.message}`
32533
32539
  });
32534
- } else if (((_e2 = notification.data) == null ? void 0 : _e2.message) === "role limit reached") {
32540
+ } else if (((_e = notification.data) == null ? void 0 : _e.message) === "role limit reached") {
32535
32541
  ToastManager.addToast({
32536
32542
  title: "The room is currently full, try joining later",
32537
32543
  close: true,
@@ -32638,17 +32644,17 @@ function Notifications() {
32638
32644
 
32639
32645
  // src/Prebuilt/components/PIP/PIPProvider.tsx
32640
32646
  init_define_process_env();
32641
- import React177, { useCallback as useCallback37, useMemo as useMemo22, useState as useState76 } from "react";
32647
+ import React177, { useCallback as useCallback38, useMemo as useMemo22, useState as useState76 } from "react";
32642
32648
  var PIPProvider = ({ children }) => {
32643
32649
  const isSupported = "documentPictureInPicture" in window;
32644
32650
  const [pipWindow, setPipWindow] = useState76(null);
32645
- const closePipWindow = useCallback37(() => {
32651
+ const closePipWindow = useCallback38(() => {
32646
32652
  if (pipWindow != null) {
32647
32653
  pipWindow.close();
32648
32654
  setPipWindow(null);
32649
32655
  }
32650
32656
  }, [pipWindow]);
32651
- const requestPipWindow = useCallback37(
32657
+ const requestPipWindow = useCallback38(
32652
32658
  (width, height) => __async(void 0, null, function* () {
32653
32659
  if (pipWindow != null) {
32654
32660
  return;
@@ -32783,8 +32789,8 @@ var Sheet2 = () => {
32783
32789
 
32784
32790
  // src/Prebuilt/plugins/FlyingEmoji.jsx
32785
32791
  init_define_process_env();
32786
- import React183, { useCallback as useCallback38, useEffect as useEffect75, useMemo as useMemo23, useState as useState78 } from "react";
32787
- import { useMedia as useMedia42 } from "react-use";
32792
+ import React183, { useCallback as useCallback39, useEffect as useEffect75, useMemo as useMemo23, useState as useState78 } from "react";
32793
+ import { useMedia as useMedia43 } from "react-use";
32788
32794
  import {
32789
32795
  selectIsLargeRoom as selectIsLargeRoom4,
32790
32796
  selectLocalPeerID as selectLocalPeerID17,
@@ -32792,7 +32798,7 @@ import {
32792
32798
  useCustomEvent as useCustomEvent5,
32793
32799
  useHMSActions as useHMSActions54,
32794
32800
  useHMSStore as useHMSStore96,
32795
- useHMSVanillaStore as useHMSVanillaStore17
32801
+ useHMSVanillaStore as useHMSVanillaStore18
32796
32802
  } from "@100mslive/react-sdk";
32797
32803
  var emojiCount = 1;
32798
32804
  var flyAndFade = keyframes({
@@ -32819,13 +32825,13 @@ var getStartingPoints = (isMobile) => {
32819
32825
  };
32820
32826
  function FlyingEmoji() {
32821
32827
  const localPeerId = useHMSStore96(selectLocalPeerID17);
32822
- const vanillaStore = useHMSVanillaStore17();
32828
+ const vanillaStore = useHMSVanillaStore18();
32823
32829
  const hmsActions = useHMSActions54();
32824
32830
  const [emojis, setEmojis] = useState78([]);
32825
- const isMobile = useMedia42(config.media.md);
32831
+ const isMobile = useMedia43(config.media.md);
32826
32832
  const isLargeRoom = useHMSStore96(selectIsLargeRoom4);
32827
32833
  const startingPoints = useMemo23(() => getStartingPoints(isMobile), [isMobile]);
32828
- const showFlyingEmoji = useCallback38(
32834
+ const showFlyingEmoji = useCallback39(
32829
32835
  (_0) => __async(this, [_0], function* ({ emojiId, senderId }) {
32830
32836
  if (!emojiId || !senderId || document.hidden) {
32831
32837
  return;
@@ -32920,11 +32926,11 @@ function FlyingEmoji() {
32920
32926
 
32921
32927
  // src/Prebuilt/plugins/RemoteStopScreenshare.jsx
32922
32928
  init_define_process_env();
32923
- import React184, { useCallback as useCallback39 } from "react";
32929
+ import React184, { useCallback as useCallback40 } from "react";
32924
32930
  import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions55 } from "@100mslive/react-sdk";
32925
32931
  function RemoteStopScreenshare() {
32926
32932
  const actions = useHMSActions55();
32927
- const onRemoteStopScreenshare = useCallback39(() => __async(this, null, function* () {
32933
+ const onRemoteStopScreenshare = useCallback40(() => __async(this, null, function* () {
32928
32934
  yield actions.setScreenShareEnabled(false);
32929
32935
  }), [actions]);
32930
32936
  useCustomEvent6({
@@ -32936,7 +32942,7 @@ function RemoteStopScreenshare() {
32936
32942
 
32937
32943
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
32938
32944
  init_define_process_env();
32939
- import { useCallback as useCallback40, useEffect as useEffect76, useRef as useRef30 } from "react";
32945
+ import { useCallback as useCallback41, useEffect as useEffect76, useRef as useRef30 } from "react";
32940
32946
  import {
32941
32947
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
32942
32948
  selectPermissions as selectPermissions20,
@@ -32952,7 +32958,7 @@ var useAutoStartStreaming = () => {
32952
32958
  const isConnected = useHMSStore97(selectIsConnectedToRoom12);
32953
32959
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
32954
32960
  const streamStartedRef = useRef30(false);
32955
- const startHLS = useCallback40(() => __async(void 0, null, function* () {
32961
+ const startHLS = useCallback41(() => __async(void 0, null, function* () {
32956
32962
  try {
32957
32963
  if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
32958
32964
  return;
@@ -33185,7 +33191,7 @@ init_define_process_env();
33185
33191
 
33186
33192
  // src/Diagnostics/Diagnostics.tsx
33187
33193
  init_define_process_env();
33188
- import React193, { useCallback as useCallback42, useRef as useRef33, useState as useState84 } from "react";
33194
+ import React193, { useCallback as useCallback43, useRef as useRef33, useState as useState84 } from "react";
33189
33195
  import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions59 } from "@100mslive/react-sdk";
33190
33196
  import {
33191
33197
  CheckCircleIcon as CheckCircleIcon7,
@@ -33198,7 +33204,7 @@ import {
33198
33204
 
33199
33205
  // src/Diagnostics/AudioTest.tsx
33200
33206
  init_define_process_env();
33201
- import React189, { useCallback as useCallback41, useEffect as useEffect78, useState as useState80 } from "react";
33207
+ import React189, { useCallback as useCallback42, useEffect as useEffect78, useState as useState80 } from "react";
33202
33208
  import {
33203
33209
  selectDevices,
33204
33210
  selectLocalAudioTrackID as selectLocalAudioTrackID2,
@@ -33462,7 +33468,7 @@ var SpeakerTest = () => {
33462
33468
  var AudioTest = () => {
33463
33469
  const { hmsDiagnostics, updateStep } = useDiagnostics();
33464
33470
  const [error, setErrorAlone] = useState80();
33465
- const setError = useCallback41(
33471
+ const setError = useCallback42(
33466
33472
  (err) => {
33467
33473
  updateStep(2 /* AUDIO */, { hasFailed: !!err });
33468
33474
  setErrorAlone(err);
@@ -33968,7 +33974,7 @@ var DiagnosticsProvider = () => {
33968
33974
  const [activeStep, setActiveStep] = useState84(0);
33969
33975
  const [steps, setSteps] = useState84(initialSteps);
33970
33976
  const diagnosticsRef = useRef33(actions.initDiagnostics());
33971
- const updateStep = useCallback42((step, value) => {
33977
+ const updateStep = useCallback43((step, value) => {
33972
33978
  setSteps((prevSteps) => __spreadProps(__spreadValues({}, prevSteps), { [step]: __spreadValues(__spreadValues({}, prevSteps[step]), value) }));
33973
33979
  }, []);
33974
33980
  return /* @__PURE__ */ React193.createElement(
@@ -34121,4 +34127,4 @@ object-assign/index.js:
34121
34127
  @license MIT
34122
34128
  *)
34123
34129
  */
34124
- //# sourceMappingURL=chunk-SCKPBPAN.js.map
34130
+ //# sourceMappingURL=chunk-GCTIXYTC.js.map