@100mslive/roomkit-react 0.3.25-alpha.5 → 0.3.25-alpha.7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -98,7 +98,7 @@ var __async = (__this, __arguments, generator) => {
98
98
  reject(e);
99
99
  }
100
100
  };
101
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
101
+ var step = (x2) => x2.done ? resolve(x2.value) : Promise.resolve(x2.value).then(fulfilled, rejected);
102
102
  step((generator = generator.apply(__this, __arguments)).next());
103
103
  });
104
104
  };
@@ -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_326b40f2-ec54-4cef-8973-9eca29b388fa", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.15-alpha.5", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.5 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.25-alpha.5", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_326b40f2-ec54-4cef-8973-9eca29b388fa", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.25-alpha.5", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", npm_package_dependencies_framer_motion: "^11.11.0", GRADLE_HOME: "/usr/share/gradle-8.11", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "598", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241117.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.9/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.2-alpha.7", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.3/x64", JOURNAL_STREAM: "8:19590", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^19.6.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.25-alpha.5", 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: "12004561163", 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: "0249eaabc39f8911a178a8cb5445cf7887639ab6", 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: "3527ec8265a909898102000935ae6b1f40015f400e7b05765aaabae9beebeb06", 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--1732516418326-0.03857276166104984:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732516418127-0.2276382710152276:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732516392485-0.7287809494490722:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732516392302-0.24955160172709823:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_84423890-109f-4db2-b36c-f7f71fbc8a06", INVOCATION_ID: "3ad0d307de3c465ea4623562242f2a39", 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: "706", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 9", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.25-alpha.5", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:only", npm_package_version: "0.3.25-alpha.5", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "0249eaabc39f8911a178a8cb5445cf7887639ab6", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_326b40f2-ec54-4cef-8973-9eca29b388fa", 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_326b40f2-ec54-4cef-8973-9eca29b388fa", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_326b40f2-ec54-4cef-8973-9eca29b388fa" };
110
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_061a69e7-e55a-447f-b71b-7dabd51a10d9", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.15-alpha.7", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.5 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.25-alpha.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_061a69e7-e55a-447f-b71b-7dabd51a10d9", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.25-alpha.7", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.11.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "599", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241124.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.9/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.3/x64", JOURNAL_STREAM: "8:18297", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^19.6.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.25-alpha.7", 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: "12118755315", 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: "cc05dd77626f653cd93d8ac537efc977224adefc", 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: "7e9748dcd881d7b2f348718ec78e41f8d86005e7fc8f46791cfe5b08788953d6", 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--1733140453631-0.54597107426323:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733140453434-0.4545224632828955:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733140426882-0.43613469842693875:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733140426700-0.8608433028429403:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_c4c18534-e02c-4413-928d-fe7f59c633f2", INVOCATION_ID: "694632f51509457ea1a0c93b0dd371a6", 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: "709", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 7", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.25-alpha.7", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:only", npm_package_version: "0.3.25-alpha.7", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "cc05dd77626f653cd93d8ac537efc977224adefc", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_061a69e7-e55a-447f-b71b-7dabd51a10d9", 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_061a69e7-e55a-447f-b71b-7dabd51a10d9", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_061a69e7-e55a-447f-b71b-7dabd51a10d9" };
111
111
  }
112
112
  });
113
113
 
@@ -5628,7 +5628,7 @@ var require_ua_parser = __commonJS({
5628
5628
  return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
5629
5629
  }
5630
5630
  };
5631
- var rgxMapper = function(ua2, arrays) {
5631
+ var rgxMapper = function(ua, arrays) {
5632
5632
  var i = 0, j, k2, p, q, matches, match18;
5633
5633
  while (i < arrays.length && !matches) {
5634
5634
  var regex = arrays[i], props = arrays[i + 1];
@@ -5637,7 +5637,7 @@ var require_ua_parser = __commonJS({
5637
5637
  if (!regex[j]) {
5638
5638
  break;
5639
5639
  }
5640
- matches = regex[j++].exec(ua2);
5640
+ matches = regex[j++].exec(ua);
5641
5641
  if (!!matches) {
5642
5642
  for (p = 0; p < props.length; p++) {
5643
5643
  match18 = matches[++k2];
@@ -6726,16 +6726,16 @@ var require_ua_parser = __commonJS({
6726
6726
  [NAME, VERSION]
6727
6727
  ]
6728
6728
  };
6729
- var UAParser = function(ua2, extensions) {
6730
- if (typeof ua2 === OBJ_TYPE) {
6731
- extensions = ua2;
6732
- ua2 = undefined2;
6729
+ var UAParser = function(ua, extensions) {
6730
+ if (typeof ua === OBJ_TYPE) {
6731
+ extensions = ua;
6732
+ ua = undefined2;
6733
6733
  }
6734
6734
  if (!(this instanceof UAParser)) {
6735
- return new UAParser(ua2, extensions).getResult();
6735
+ return new UAParser(ua, extensions).getResult();
6736
6736
  }
6737
6737
  var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
6738
- var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6738
+ var _ua = ua || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6739
6739
  var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
6740
6740
  var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
6741
6741
  var _isSelfNav = _navigator && _navigator.userAgent == _ua;
@@ -6801,8 +6801,8 @@ var require_ua_parser = __commonJS({
6801
6801
  this.getUA = function() {
6802
6802
  return _ua;
6803
6803
  };
6804
- this.setUA = function(ua3) {
6805
- _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
6804
+ this.setUA = function(ua2) {
6805
+ _ua = typeof ua2 === STR_TYPE && ua2.length > UA_MAX_LENGTH ? trim(ua2, UA_MAX_LENGTH) : ua2;
6806
6806
  return this;
6807
6807
  };
6808
6808
  this.setUA(_ua);
@@ -6827,18 +6827,18 @@ var require_ua_parser = __commonJS({
6827
6827
  window2.UAParser = UAParser;
6828
6828
  }
6829
6829
  }
6830
- var $2 = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6831
- if ($2 && !$2.ua) {
6830
+ var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6831
+ if ($ && !$.ua) {
6832
6832
  var parser = new UAParser();
6833
- $2.ua = parser.getResult();
6834
- $2.ua.get = function() {
6833
+ $.ua = parser.getResult();
6834
+ $.ua.get = function() {
6835
6835
  return parser.getUA();
6836
6836
  };
6837
- $2.ua.set = function(ua2) {
6838
- parser.setUA(ua2);
6837
+ $.ua.set = function(ua) {
6838
+ parser.setUA(ua);
6839
6839
  var result = parser.getResult();
6840
6840
  for (var prop in result) {
6841
- $2.ua[prop] = result[prop];
6841
+ $.ua[prop] = result[prop];
6842
6842
  }
6843
6843
  };
6844
6844
  }
@@ -8748,13 +8748,13 @@ var require_writer = __commonJS({
8748
8748
  var i = 1;
8749
8749
  var args = arguments;
8750
8750
  var len = args.length;
8751
- return formatStr.replace(formatRegExp, function(x) {
8751
+ return formatStr.replace(formatRegExp, function(x2) {
8752
8752
  if (i >= len) {
8753
- return x;
8753
+ return x2;
8754
8754
  }
8755
8755
  var arg = args[i];
8756
8756
  i += 1;
8757
- switch (x) {
8757
+ switch (x2) {
8758
8758
  case "%%":
8759
8759
  return "%";
8760
8760
  case "%s":
@@ -8884,7 +8884,7 @@ var require_react_is_production_min = __commonJS({
8884
8884
  var t = b2 ? Symbol.for("react.lazy") : 60116;
8885
8885
  var v = b2 ? Symbol.for("react.block") : 60121;
8886
8886
  var w = b2 ? Symbol.for("react.fundamental") : 60117;
8887
- var x = b2 ? Symbol.for("react.responder") : 60118;
8887
+ var x2 = b2 ? Symbol.for("react.responder") : 60118;
8888
8888
  var y2 = b2 ? Symbol.for("react.scope") : 60119;
8889
8889
  function z2(a2) {
8890
8890
  if ("object" === typeof a2 && null !== a2) {
@@ -8970,7 +8970,7 @@ var require_react_is_production_min = __commonJS({
8970
8970
  return z2(a2) === p;
8971
8971
  };
8972
8972
  exports.isValidElementType = function(a2) {
8973
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8973
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x2 || a2.$$typeof === y2 || a2.$$typeof === v);
8974
8974
  };
8975
8975
  exports.typeOf = z2;
8976
8976
  }
@@ -9252,7 +9252,7 @@ var require_checkPropTypes = __commonJS({
9252
9252
  }
9253
9253
  try {
9254
9254
  throw new Error(message);
9255
- } catch (x) {
9255
+ } catch (x2) {
9256
9256
  }
9257
9257
  };
9258
9258
  }
@@ -9321,7 +9321,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9321
9321
  }
9322
9322
  try {
9323
9323
  throw new Error(message);
9324
- } catch (x) {
9324
+ } catch (x2) {
9325
9325
  }
9326
9326
  };
9327
9327
  }
@@ -9359,11 +9359,11 @@ var require_factoryWithTypeCheckers = __commonJS({
9359
9359
  shape: createShapeTypeChecker,
9360
9360
  exact: createStrictShapeTypeChecker
9361
9361
  };
9362
- function is2(x, y2) {
9363
- if (x === y2) {
9364
- return x !== 0 || 1 / x === 1 / y2;
9362
+ function is(x2, y2) {
9363
+ if (x2 === y2) {
9364
+ return x2 !== 0 || 1 / x2 === 1 / y2;
9365
9365
  } else {
9366
- return x !== x && y2 !== y2;
9366
+ return x2 !== x2 && y2 !== y2;
9367
9367
  }
9368
9368
  }
9369
9369
  function PropTypeError(message, data3) {
@@ -9502,7 +9502,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9502
9502
  function validate(props, propName, componentName, location, propFullName) {
9503
9503
  var propValue = props[propName];
9504
9504
  for (var i = 0; i < expectedValues.length; i++) {
9505
- if (is2(propValue, expectedValues[i])) {
9505
+ if (is(propValue, expectedValues[i])) {
9506
9506
  return null;
9507
9507
  }
9508
9508
  }
@@ -10409,8 +10409,8 @@ init_define_process_env();
10409
10409
  // src/Loading/Loading.tsx
10410
10410
  init_define_process_env();
10411
10411
  import React2 from "react";
10412
- var Loading = (_a7) => {
10413
- var _b7 = _a7, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10412
+ var Loading = (_a8) => {
10413
+ var _b7 = _a8, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10414
10414
  return /* @__PURE__ */ React2.createElement("svg", __spreadValues({ width: size, height: size, viewBox: "0 0 50 50", fill: color, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React2.createElement("circle", { cx: "25", cy: "25", r: "20", stroke: color, strokeWidth: "4", strokeDasharray: "70 30", fill: "none" }, /* @__PURE__ */ React2.createElement(
10415
10415
  "animateTransform",
10416
10416
  {
@@ -10587,8 +10587,8 @@ var StyledButton = styled("button", __spreadProps(__spreadValues({}, flexCenter)
10587
10587
  variant: "primary"
10588
10588
  }
10589
10589
  }));
10590
- var Button = React3.forwardRef((_a7, ref) => {
10591
- var _b7 = _a7, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10590
+ var Button = React3.forwardRef((_a8, ref) => {
10591
+ var _b7 = _a8, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10592
10592
  return /* @__PURE__ */ React3.createElement(StyledButton, __spreadProps(__spreadValues({}, buttonProps), { ref }), /* @__PURE__ */ React3.createElement(React3.Fragment, null, loading && /* @__PURE__ */ React3.createElement(
10593
10593
  Flex,
10594
10594
  {
@@ -10816,11 +10816,11 @@ import { PersonIcon } from "@100mslive/react-icons";
10816
10816
  // src/Avatar/getAvatarBg.ts
10817
10817
  init_define_process_env();
10818
10818
  var getInitials = (name) => {
10819
- var _a7, _b7, _c;
10819
+ var _a8, _b7, _c;
10820
10820
  if (!name) {
10821
10821
  return void 0;
10822
10822
  } else {
10823
- return (_c = (_b7 = (_a7 = name.trim().replace(/[^a-zA-Z0-9]/g, "").match(/(^\S\S?|\b\S)?/g)) == null ? void 0 : _a7.join("")) == null ? void 0 : _b7.match(/(^\S|\S$)?/g)) == null ? void 0 : _c.join("").toUpperCase();
10823
+ return (_c = (_b7 = (_a8 = name.trim().replace(/[^a-zA-Z0-9]/g, "").match(/(^\S\S?|\b\S)?/g)) == null ? void 0 : _a8.join("")) == null ? void 0 : _b7.match(/(^\S|\S$)?/g)) == null ? void 0 : _c.join("").toUpperCase();
10824
10824
  }
10825
10825
  };
10826
10826
  var getAvatarBg = (name) => {
@@ -10886,8 +10886,8 @@ var StyledAvatar = styled("div", __spreadProps(__spreadValues({}, flexCenter), {
10886
10886
  shape: "circle"
10887
10887
  }
10888
10888
  }));
10889
- var Avatar = (_a7) => {
10890
- var _b7 = _a7, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10889
+ var Avatar = (_a8) => {
10890
+ var _b7 = _a8, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10891
10891
  const info = getAvatarBg(name);
10892
10892
  let { color } = info;
10893
10893
  if (!name) {
@@ -11189,8 +11189,8 @@ var Arrow = styled("span", {
11189
11189
  alignItems: "center",
11190
11190
  transition: "border .2s ease 0s"
11191
11191
  });
11192
- var DefaultDownIcon = (_a7) => {
11193
- var props = __objRest(_a7, []);
11192
+ var DefaultDownIcon = (_a8) => {
11193
+ var props = __objRest(_a8, []);
11194
11194
  return /* @__PURE__ */ React7.createElement(Arrow, __spreadValues({}, props), /* @__PURE__ */ React7.createElement(ChevronDownIcon, null));
11195
11195
  };
11196
11196
  var Select = {
@@ -11244,16 +11244,16 @@ var Thumb3 = styled(BaseSlider.Thumb, {
11244
11244
  "&:hover": { backgroundColor: "$primary_default" },
11245
11245
  "&:focus": { boxShadow: "none" }
11246
11246
  });
11247
- var Slider = (_a7) => {
11248
- var _b7 = _a7, {
11247
+ var Slider = (_a8) => {
11248
+ var _b7 = _a8, {
11249
11249
  showTooltip = true,
11250
11250
  thumbStyles
11251
11251
  } = _b7, props = __objRest(_b7, [
11252
11252
  "showTooltip",
11253
11253
  "thumbStyles"
11254
11254
  ]);
11255
- var _a8;
11256
- return /* @__PURE__ */ React8.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ React8.createElement(Track2, null, /* @__PURE__ */ React8.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ React8.createElement(Tooltip, { title: String((_a8 = props.value) == null ? void 0 : _a8[0]) }, /* @__PURE__ */ React8.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ React8.createElement(Thumb3, { css: thumbStyles }));
11255
+ var _a9;
11256
+ return /* @__PURE__ */ React8.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ React8.createElement(Track2, null, /* @__PURE__ */ React8.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ React8.createElement(Tooltip, { title: String((_a9 = props.value) == null ? void 0 : _a9[0]) }, /* @__PURE__ */ React8.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ React8.createElement(Thumb3, { css: thumbStyles }));
11257
11257
  };
11258
11258
 
11259
11259
  // src/Modal/index.ts
@@ -11410,8 +11410,8 @@ var PasswordRoot = styled("div", {
11410
11410
  position: "relative",
11411
11411
  display: "flex"
11412
11412
  });
11413
- var PasswordShowIcon = (_a7) => {
11414
- var _b7 = _a7, {
11413
+ var PasswordShowIcon = (_a8) => {
11414
+ var _b7 = _a8, {
11415
11415
  showPassword,
11416
11416
  css: css2
11417
11417
  } = _b7, props = __objRest(_b7, [
@@ -11420,13 +11420,13 @@ var PasswordShowIcon = (_a7) => {
11420
11420
  ]);
11421
11421
  return /* @__PURE__ */ React12.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), showPassword ? /* @__PURE__ */ React12.createElement(EyeOpenIcon, null) : /* @__PURE__ */ React12.createElement(EyeCloseIcon, null));
11422
11422
  };
11423
- var PasswordCopyIcon = (_a7) => {
11424
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11423
+ var PasswordCopyIcon = (_a8) => {
11424
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11425
11425
  return /* @__PURE__ */ React12.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), /* @__PURE__ */ React12.createElement(CopyIcon, null));
11426
11426
  };
11427
11427
  var PasswordIcons = React12.forwardRef(
11428
- (_a7, ref) => {
11429
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11428
+ (_a8, ref) => {
11429
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11430
11430
  return /* @__PURE__ */ React12.createElement(
11431
11431
  Flex,
11432
11432
  __spreadValues({
@@ -11445,8 +11445,8 @@ var PasswordIcons = React12.forwardRef(
11445
11445
  );
11446
11446
  }
11447
11447
  );
11448
- var ReactInput = React12.forwardRef((_a7, ref) => {
11449
- var _b7 = _a7, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11448
+ var ReactInput = React12.forwardRef((_a8, ref) => {
11449
+ var _b7 = _a8, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11450
11450
  return /* @__PURE__ */ React12.createElement(
11451
11451
  Input,
11452
11452
  __spreadProps(__spreadValues({
@@ -11470,21 +11470,9 @@ init_define_process_env();
11470
11470
 
11471
11471
  // src/VideoTile/StyledVideoTile.tsx
11472
11472
  init_define_process_env();
11473
- import { motion } from "framer-motion";
11474
11473
  var Root7 = styled("div", {
11475
11474
  padding: "0.75rem"
11476
11475
  });
11477
- var MotionRoot = motion(Root7);
11478
- MotionRoot.defaultProps = {
11479
- layout: true,
11480
- transition: {
11481
- type: "spring",
11482
- stiffness: 300,
11483
- damping: 30,
11484
- mass: 1,
11485
- duration: 0.15
11486
- }
11487
- };
11488
11476
  var Container = styled("div", {
11489
11477
  width: "100%",
11490
11478
  height: "100%",
@@ -11595,7 +11583,7 @@ var AvatarContainer = styled(Box, __spreadProps(__spreadValues({}, flexCenter),
11595
11583
  }
11596
11584
  }));
11597
11585
  var StyledVideoTile = {
11598
- Root: MotionRoot,
11586
+ Root: Root7,
11599
11587
  Container,
11600
11588
  Overlay: Overlay2,
11601
11589
  Info,
@@ -11897,8 +11885,8 @@ var StyledVideo = styled("video", {
11897
11885
  mirror: false
11898
11886
  }
11899
11887
  });
11900
- var Video = (_a7) => {
11901
- var _b7 = _a7, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11888
+ var Video = (_a8) => {
11889
+ var _b7 = _a8, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11902
11890
  const { videoRef } = useVideo({ trackId, attach });
11903
11891
  return /* @__PURE__ */ React13.createElement(StyledVideo, __spreadValues({ ref: videoRef }, props));
11904
11892
  };
@@ -12236,13 +12224,13 @@ var useQoE = ({ videoTrackID, audioTrackID, isLocal = false }) => {
12236
12224
 
12237
12225
  // src/Stats/Stats.tsx
12238
12226
  function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false }) {
12239
- var _a7, _b7, _c;
12227
+ var _a8, _b7, _c;
12240
12228
  const audioSelector = isLocal ? selectHMSStats2.localAudioTrackStatsByID : selectHMSStats2.trackStatsByID;
12241
12229
  const audioTrackStats = useHMSStatsStore2(audioSelector(audioTrackID));
12242
12230
  const localVideoTrackStats = useHMSStatsStore2(selectHMSStats2.localVideoTrackStatsByID(videoTrackID));
12243
12231
  const remoteVideoTrackStats = useHMSStatsStore2(selectHMSStats2.trackStatsByID(videoTrackID));
12244
12232
  const videoTrackStats = isLocal ? localVideoTrackStats == null ? void 0 : localVideoTrackStats[0] : remoteVideoTrackStats;
12245
- const downlinkScore = (_a7 = useHMSStore(selectConnectionQualityByPeerID(peerID))) == null ? void 0 : _a7.downlinkQuality;
12233
+ const downlinkScore = (_a8 = useHMSStore(selectConnectionQualityByPeerID(peerID))) == null ? void 0 : _a8.downlinkQuality;
12246
12234
  const availableOutgoingBitrate = useHMSStatsStore2(selectHMSStats2.availablePublishBitrate);
12247
12235
  const qoe = useQoE({ videoTrackID, audioTrackID, isLocal });
12248
12236
  if (!(audioTrackStats || videoTrackStats)) {
@@ -12257,7 +12245,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12257
12245
  value: formatBytes(availableOutgoingBitrate, "b/s")
12258
12246
  }
12259
12247
  ), localVideoTrackStats == null ? void 0 : localVideoTrackStats.map((stat) => {
12260
- var _a8, _b8;
12248
+ var _a9, _b8;
12261
12249
  if (!stat) {
12262
12250
  return null;
12263
12251
  }
@@ -12267,7 +12255,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12267
12255
  {
12268
12256
  show: isNotNullishAndNot0(stat.frameWidth),
12269
12257
  label: "Width",
12270
- value: (_a8 = stat.frameWidth) == null ? void 0 : _a8.toString()
12258
+ value: (_a9 = stat.frameWidth) == null ? void 0 : _a9.toString()
12271
12259
  }
12272
12260
  ), /* @__PURE__ */ React15.createElement(
12273
12261
  StatsRow,
@@ -12346,11 +12334,11 @@ var PacketLostAndJitter = ({
12346
12334
  audioTrackStats,
12347
12335
  videoTrackStats
12348
12336
  }) => {
12349
- var _a7, _b7;
12337
+ var _a8, _b7;
12350
12338
  const isLocalPeer = (audioTrackStats == null ? void 0 : audioTrackStats.type.includes("outbound")) || (videoTrackStats == null ? void 0 : videoTrackStats.type.includes("outbound"));
12351
12339
  const audioStats = isLocalPeer ? audioTrackStats == null ? void 0 : audioTrackStats.remote : audioTrackStats;
12352
12340
  const videoStats = isLocalPeer ? videoTrackStats == null ? void 0 : videoTrackStats.remote : videoTrackStats;
12353
- return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ React15.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter), label: "Jitter(V)", value: (_a7 = videoStats == null ? void 0 : videoStats.jitter) == null ? void 0 : _a7.toFixed(4) }), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter), label: "Jitter(A)", value: (_b7 = audioStats == null ? void 0 : audioStats.jitter) == null ? void 0 : _b7.toFixed(4) }));
12341
+ return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ React15.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter), label: "Jitter(V)", value: (_a8 = videoStats == null ? void 0 : videoStats.jitter) == null ? void 0 : _a8.toFixed(4) }), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter), label: "Jitter(A)", value: (_b7 = audioStats == null ? void 0 : audioStats.jitter) == null ? void 0 : _b7.toFixed(4) }));
12354
12342
  };
12355
12343
  var TrackPacketsLostRow = ({
12356
12344
  stats,
@@ -12552,8 +12540,8 @@ var ToastViewport = styled(ToastPrimitives.Viewport, {
12552
12540
  var DefaultClose = ({ css: css2 }) => {
12553
12541
  return /* @__PURE__ */ React16.createElement(ToastClose, { css: css2, asChild: true }, /* @__PURE__ */ React16.createElement(IconButton, null, /* @__PURE__ */ React16.createElement(CrossIcon2, null)));
12554
12542
  };
12555
- var HMSToast = (_a7) => {
12556
- var _b7 = _a7, {
12543
+ var HMSToast = (_a8) => {
12544
+ var _b7 = _a8, {
12557
12545
  title,
12558
12546
  description,
12559
12547
  isClosable = true,
@@ -12638,13 +12626,13 @@ var StyledChevron = styled(ChevronUpIcon, {
12638
12626
  });
12639
12627
  var AccordionRoot = StyledAccordion;
12640
12628
  var AccordionItem = StyledItem;
12641
- var AccordionHeader = React17.forwardRef((_a7, forwardedRef) => {
12642
- var _b7 = _a7, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12629
+ var AccordionHeader = React17.forwardRef((_a8, forwardedRef) => {
12630
+ var _b7 = _a8, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12643
12631
  return /* @__PURE__ */ React17.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ React17.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ React17.createElement(StyledChevron, { "data-testid": chevronID, "aria-hidden": true, css: iconStyles })));
12644
12632
  });
12645
12633
  var AccordionContent = React17.forwardRef(
12646
- (_a7, forwardedRef) => {
12647
- var _b7 = _a7, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12634
+ (_a8, forwardedRef) => {
12635
+ var _b7 = _a8, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12648
12636
  return /* @__PURE__ */ React17.createElement(StyledContent3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), /* @__PURE__ */ React17.createElement(Box, { css: contentStyles }, children));
12649
12637
  }
12650
12638
  );
@@ -12883,8 +12871,8 @@ var LinkComponent = styled("a", {
12883
12871
  }
12884
12872
  }
12885
12873
  });
12886
- var Link = (_a7) => {
12887
- var _b7 = _a7, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12874
+ var Link = (_a8) => {
12875
+ var _b7 = _a8, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12888
12876
  const Icon4 = icon ? icons[icon] : React19.Fragment;
12889
12877
  const renderedIcon = icon ? /* @__PURE__ */ React19.createElement(Flex, { as: "span" }, /* @__PURE__ */ React19.createElement(Icon4, { height: 13.33, width: 13.33 }), " ") : null;
12890
12878
  return /* @__PURE__ */ React19.createElement(LinkComponent, __spreadProps(__spreadValues({}, rest), { color }), iconSide === "left" && renderedIcon, /* @__PURE__ */ React19.createElement(Text, { as: "span", variant: "body2", css: { color: "inherit" } }, children), iconSide === "right" && renderedIcon);
@@ -13061,8 +13049,8 @@ var useAuthToken = () => {
13061
13049
  return useHMSStore2(selectAppData(APP_DATA.authToken));
13062
13050
  };
13063
13051
  var useUrlToEmbed = () => {
13064
- var _a7;
13065
- return (_a7 = useHMSStore2(selectAppData(APP_DATA.embedConfig))) == null ? void 0 : _a7.url;
13052
+ var _a8;
13053
+ return (_a8 = useHMSStore2(selectAppData(APP_DATA.embedConfig))) == null ? void 0 : _a8.url;
13066
13054
  };
13067
13055
  var usePDFConfig = () => {
13068
13056
  return useHMSStore2(selectAppData(APP_DATA.pdfConfig));
@@ -13076,10 +13064,10 @@ var useResetEmbedConfig = () => {
13076
13064
  return () => setEmbedConfig();
13077
13065
  };
13078
13066
  var usePinnedTrack = () => {
13079
- var _a7, _b7;
13067
+ var _a8, _b7;
13080
13068
  const pinnedTrackId = useHMSStore2(selectAppData(APP_DATA.pinnedTrackId));
13081
13069
  const spotlightPeerId = useHMSStore2(selectSessionStore("spotlight" /* SPOTLIGHT */));
13082
- const spotlightVideoTrackId = (_a7 = useHMSStore2(selectVideoTrackByPeerID(spotlightPeerId))) == null ? void 0 : _a7.id;
13070
+ const spotlightVideoTrackId = (_a8 = useHMSStore2(selectVideoTrackByPeerID(spotlightPeerId))) == null ? void 0 : _a8.id;
13083
13071
  const spotlightAudioTrackId = (_b7 = useHMSStore2(selectAudioTrackByPeerID(spotlightPeerId))) == null ? void 0 : _b7.id;
13084
13072
  return useHMSStore2(selectTrackByID(pinnedTrackId || spotlightVideoTrackId || spotlightAudioTrackId));
13085
13073
  };
@@ -13365,18 +13353,18 @@ var useFetchRoomLayout = ({
13365
13353
  const isFetchInProgress = useRef6(false);
13366
13354
  const setOriginalLayout = useCallback5(() => setLayout(originalLayout.current), []);
13367
13355
  const updateRoomLayoutForRole = useCallback5((role) => {
13368
- var _a7;
13356
+ var _a8;
13369
13357
  if (!layoutResp.current) {
13370
13358
  return;
13371
13359
  }
13372
- const [layout2] = (((_a7 = layoutResp.current) == null ? void 0 : _a7.data) || []).filter((layout3) => layout3.role === role);
13360
+ const [layout2] = (((_a8 = layoutResp.current) == null ? void 0 : _a8.data) || []).filter((layout3) => layout3.role === role);
13373
13361
  if (layout2) {
13374
13362
  setLayout(layout2);
13375
13363
  }
13376
13364
  }, []);
13377
13365
  useEffect5(() => {
13378
13366
  (() => __async(void 0, null, function* () {
13379
- var _a7, _b7;
13367
+ var _a8, _b7;
13380
13368
  if (isFetchInProgress.current || !authToken) {
13381
13369
  return;
13382
13370
  }
@@ -13394,7 +13382,7 @@ var useFetchRoomLayout = ({
13394
13382
  data: [defaultLayout]
13395
13383
  };
13396
13384
  }
13397
- let layoutForRole = (_b7 = (_a7 = layoutResp.current) == null ? void 0 : _a7.data) == null ? void 0 : _b7[0];
13385
+ let layoutForRole = (_b7 = (_a8 = layoutResp.current) == null ? void 0 : _a8.data) == null ? void 0 : _b7[0];
13398
13386
  if (!layoutForRole) {
13399
13387
  console.error(
13400
13388
  "[Room Layout API]: Unable to figure out room layout from API response. Resorting to default layout."
@@ -13434,16 +13422,16 @@ var RoomLayoutProvider = ({
13434
13422
  return /* @__PURE__ */ React22.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole, setOriginalLayout } }, children);
13435
13423
  };
13436
13424
  var useRoomLayout = () => {
13437
- var _a7;
13438
- return (_a7 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a7.layout;
13425
+ var _a8;
13426
+ return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
13439
13427
  };
13440
13428
  var useUpdateRoomLayout = () => {
13441
- var _a7;
13442
- return (_a7 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a7.updateRoomLayoutForRole;
13429
+ var _a8;
13430
+ return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
13443
13431
  };
13444
13432
  var useSetOriginalLayout = () => {
13445
- var _a7;
13446
- return (_a7 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a7.setOriginalLayout;
13433
+ var _a8;
13434
+ return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.setOriginalLayout;
13447
13435
  };
13448
13436
 
13449
13437
  // src/Prebuilt/common/utils.js
@@ -13513,11 +13501,11 @@ var isMobileUserAgent = /Mobi|Android|iPhone/i.test(navigator.userAgent);
13513
13501
  var getPeerResponses = (questions, peerid, userid) => {
13514
13502
  return questions.map(
13515
13503
  (question) => {
13516
- var _a7;
13517
- return (_a7 = question.responses) == null ? void 0 : _a7.filter(
13504
+ var _a8;
13505
+ return (_a8 = question.responses) == null ? void 0 : _a8.filter(
13518
13506
  (response) => {
13519
- var _a8, _b7;
13520
- return response && (((_a8 = response.peer) == null ? void 0 : _a8.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13507
+ var _a9, _b7;
13508
+ return response && (((_a9 = response.peer) == null ? void 0 : _a9.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13521
13509
  }
13522
13510
  );
13523
13511
  }
@@ -13538,20 +13526,20 @@ var getIndexToShow = (responses) => {
13538
13526
  function useRoomLayoutScreen({
13539
13527
  screen
13540
13528
  }) {
13541
- var _a7;
13529
+ var _a8;
13542
13530
  const roomLayout = useRoomLayout();
13543
- const screenProps = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7[screen];
13531
+ const screenProps = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8[screen];
13544
13532
  return screenProps;
13545
13533
  }
13546
13534
  function useRoomLayoutPreviewScreen() {
13547
- var _a7;
13535
+ var _a8;
13548
13536
  const screenProps = useRoomLayoutScreen({ screen: "preview" });
13549
13537
  const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
13550
13538
  let elements;
13551
13539
  let screenType;
13552
13540
  if (isPreviewScreenEnabled) {
13553
13541
  screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
13554
- elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13542
+ elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13555
13543
  }
13556
13544
  return {
13557
13545
  isPreviewScreenEnabled,
@@ -13560,10 +13548,10 @@ function useRoomLayoutPreviewScreen() {
13560
13548
  };
13561
13549
  }
13562
13550
  function useRoomLayoutConferencingScreen() {
13563
- var _a7, _b7;
13551
+ var _a8, _b7;
13564
13552
  const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
13565
13553
  const screenType = Object.keys(screenProps)[0];
13566
- const elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13554
+ const elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13567
13555
  const hideSections = ((_b7 = screenProps[screenType]) == null ? void 0 : _b7.hideSections) || [];
13568
13556
  return {
13569
13557
  hideSections,
@@ -13572,25 +13560,25 @@ function useRoomLayoutConferencingScreen() {
13572
13560
  };
13573
13561
  }
13574
13562
  function useRoomLayoutLeaveScreen() {
13575
- var _a7, _b7;
13563
+ var _a8, _b7;
13576
13564
  const screenProps = useRoomLayoutScreen({ screen: "leave" });
13577
13565
  const isLeaveScreenEnabled = !!screenProps;
13578
13566
  return {
13579
13567
  isLeaveScreenEnabled,
13580
- feedback: (_b7 = (_a7 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a7.elements) == null ? void 0 : _b7.feedback
13568
+ feedback: (_b7 = (_a8 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a8.elements) == null ? void 0 : _b7.feedback
13581
13569
  };
13582
13570
  }
13583
13571
  function useRoomLayoutHeader() {
13584
- var _a7, _b7;
13572
+ var _a8, _b7;
13585
13573
  const { elements } = useRoomLayoutConferencingScreen();
13586
13574
  const { isRecordingOn } = useRecordingStreaming();
13587
13575
  const peerCount = useHMSStore4(selectPeerCount);
13588
13576
  const sessionStartedAt = useHMSStore4(selectRoomStartTime);
13589
13577
  const hlsState = useHMSStore4(selectHLSState);
13590
13578
  const details = useMemo3(() => {
13591
- var _a8;
13579
+ var _a9;
13592
13580
  const details2 = [];
13593
- if ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8["startedAt"]) {
13581
+ if ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9["startedAt"]) {
13594
13582
  details2.push(`${getFormattedCount(peerCount)} watching`);
13595
13583
  details2.push(hlsState.variants[0]["startedAt"]);
13596
13584
  } else if (sessionStartedAt) {
@@ -13602,7 +13590,7 @@ function useRoomLayoutHeader() {
13602
13590
  return details2;
13603
13591
  }, [hlsState == null ? void 0 : hlsState.variants, isRecordingOn, peerCount, sessionStartedAt]);
13604
13592
  return {
13605
- title: ((_a7 = elements.header) == null ? void 0 : _a7.title) || "",
13593
+ title: ((_a8 = elements.header) == null ? void 0 : _a8.title) || "",
13606
13594
  description: ((_b7 = elements.header) == null ? void 0 : _b7.description) || "",
13607
13595
  details
13608
13596
  };
@@ -13743,7 +13731,7 @@ var initialAppData = {
13743
13731
  [APP_DATA.noiseCancellation]: false
13744
13732
  };
13745
13733
  var AppData = React23.memo(() => {
13746
- var _a7, _b7, _c, _d;
13734
+ var _a8, _b7, _c, _d;
13747
13735
  const hmsActions = useHMSActions4();
13748
13736
  const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
13749
13737
  const appData = useHMSStore6(selectFullAppData);
@@ -13754,14 +13742,14 @@ var AppData = React23.memo(() => {
13754
13742
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
13755
13743
  const isMobile = useMedia(config.media.md);
13756
13744
  useEffect6(() => {
13757
- var _a8;
13758
- if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
13745
+ var _a9;
13746
+ if ((_a9 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a9.enabled_by_default) {
13759
13747
  setNoiseCancellationEnabled(true);
13760
13748
  }
13761
- }, [(_a7 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a7.enabled_by_default, setNoiseCancellationEnabled]);
13749
+ }, [(_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default, setNoiseCancellationEnabled]);
13762
13750
  const defaultMediaURL = useMemo4(() => {
13763
- var _a8;
13764
- const media = ((_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media) || [];
13751
+ var _a9;
13752
+ const media = ((_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) || [];
13765
13753
  for (let i = 0; i < media.length; i++) {
13766
13754
  if (media[i].default && media[i].url) {
13767
13755
  return media[i].url;
@@ -13786,11 +13774,11 @@ var AppData = React23.memo(() => {
13786
13774
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
13787
13775
  }, [hmsActions, preferences]);
13788
13776
  useEffect6(() => {
13789
- var _a8, _b8;
13777
+ var _a9, _b8;
13790
13778
  hmsActions.setAppData(
13791
13779
  APP_DATA.uiSettings,
13792
13780
  {
13793
- [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
13781
+ [UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
13794
13782
  },
13795
13783
  true
13796
13784
  );
@@ -13915,41 +13903,41 @@ var VBPlugin = class {
13915
13903
  }
13916
13904
  });
13917
13905
  this.getBackground = () => {
13918
- var _a7, _b7;
13906
+ var _a8, _b7;
13919
13907
  if (this.effectsPlugin) {
13920
- return (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getBackground();
13908
+ return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
13921
13909
  } else {
13922
13910
  const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
13923
13911
  return (background == null ? void 0 : background.src) || background;
13924
13912
  }
13925
13913
  };
13926
13914
  this.getBlurAmount = () => {
13927
- var _a7;
13915
+ var _a8;
13928
13916
  if (this.effectsPlugin) {
13929
13917
  return this.effectsPlugin.getBlurAmount();
13930
13918
  } else {
13931
- return ((_a7 = this.hmsPlugin) == null ? void 0 : _a7.getBackground()) === HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13919
+ return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13932
13920
  }
13933
13921
  };
13934
13922
  this.getVBObject = () => {
13935
13923
  return this.effectsPlugin || this.hmsPlugin;
13936
13924
  };
13937
13925
  this.getName = () => {
13938
- var _a7, _b7;
13939
- return this.effectsPlugin ? (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13926
+ var _a8, _b7;
13927
+ return this.effectsPlugin ? (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13940
13928
  };
13941
13929
  this.setBlur = (blurPower) => __async(this, null, function* () {
13942
- var _a7, _b7;
13930
+ var _a8, _b7;
13943
13931
  if (this.effectsPlugin) {
13944
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBlur(blurPower);
13932
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBlur(blurPower);
13945
13933
  } else {
13946
13934
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(HMSVirtualBackgroundTypes.BLUR, HMSVirtualBackgroundTypes.BLUR);
13947
13935
  }
13948
13936
  });
13949
13937
  this.setBackground = (mediaURL) => __async(this, null, function* () {
13950
- var _a7, _b7, _c;
13938
+ var _a8, _b7, _c;
13951
13939
  if (this.effectsPlugin) {
13952
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBackground(mediaURL);
13940
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBackground(mediaURL);
13953
13941
  } else {
13954
13942
  const img = document.createElement("img");
13955
13943
  let retries = 0;
@@ -13972,13 +13960,13 @@ var VBPlugin = class {
13972
13960
  }
13973
13961
  });
13974
13962
  this.getPreset = () => {
13975
- var _a7;
13976
- return ((_a7 = this.effectsPlugin) == null ? void 0 : _a7.getPreset()) || "";
13963
+ var _a8;
13964
+ return ((_a8 = this.effectsPlugin) == null ? void 0 : _a8.getPreset()) || "";
13977
13965
  };
13978
13966
  this.removeEffects = () => __async(this, null, function* () {
13979
- var _a7, _b7;
13967
+ var _a8, _b7;
13980
13968
  if (this.effectsPlugin) {
13981
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.removeEffects();
13969
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.removeEffects();
13982
13970
  } else {
13983
13971
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(HMSVirtualBackgroundTypes.NONE, HMSVirtualBackgroundTypes.NONE);
13984
13972
  }
@@ -13997,11 +13985,11 @@ var VBPlugin = class {
13997
13985
  return false;
13998
13986
  };
13999
13987
  this.isEffectsSupported = () => {
14000
- var _a7, _b7;
13988
+ var _a8, _b7;
14001
13989
  if (!isSafari) {
14002
13990
  return true;
14003
13991
  }
14004
- const browserVersion = ((_b7 = (_a7 = parsedUserAgent2) == null ? void 0 : _a7.getBrowser()) == null ? void 0 : _b7.version) || "16";
13992
+ const browserVersion = ((_b7 = (_a8 = parsedUserAgent2) == null ? void 0 : _a8.getBrowser()) == null ? void 0 : _b7.version) || "16";
14005
13993
  if (browserVersion && parseInt(browserVersion.split(".")[0]) < 17) {
14006
13994
  return false;
14007
13995
  }
@@ -14147,12 +14135,12 @@ var PipManager = class {
14147
14135
  this.tracksToShow = [];
14148
14136
  this.state = "stopped" /* stopped */;
14149
14137
  this.stop = () => __async(this, null, function* () {
14150
- var _a7, _b7;
14138
+ var _a8, _b7;
14151
14139
  if (this.state === "stopped" /* stopped */) {
14152
14140
  return;
14153
14141
  }
14154
14142
  this.state = "stopping" /* stopping */;
14155
- (_a7 = this.pipVideo) == null ? void 0 : _a7.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14143
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14156
14144
  if (this.timeoutRef) {
14157
14145
  workerTimers.clearTimeout(this.timeoutRef);
14158
14146
  this.timeoutRef = 0;
@@ -14213,7 +14201,7 @@ var PipManager = class {
14213
14201
  */
14214
14202
  start(hmsActions, onStateChangeFn) {
14215
14203
  return __async(this, null, function* () {
14216
- var _a7, _b7;
14204
+ var _a8, _b7;
14217
14205
  if (!this.isSupported()) {
14218
14206
  throw new Error("pip is not supported on this browser");
14219
14207
  }
@@ -14226,7 +14214,7 @@ var PipManager = class {
14226
14214
  this.state = "starting" /* starting */;
14227
14215
  try {
14228
14216
  yield this.init(hmsActions, onStateChangeFn);
14229
- (_a7 = this.pipVideo) == null ? void 0 : _a7.addEventListener(LEAVE_EVENT_NAME, this.stop);
14217
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.addEventListener(LEAVE_EVENT_NAME, this.stop);
14230
14218
  this.renderLoop();
14231
14219
  if (!this.isOn()) {
14232
14220
  yield this.requestPIP();
@@ -14403,14 +14391,14 @@ var PipManager = class {
14403
14391
  // eslint-disable-next-line complexity
14404
14392
  detachOldAttachNewTracks(oldTracks, newTracks, tracksMap = null) {
14405
14393
  return __async(this, null, function* () {
14406
- var _a7, _b7;
14394
+ var _a8, _b7;
14407
14395
  const numTracks = Math.max(oldTracks.length, newTracks.length);
14408
14396
  for (let i = 0; i < numTracks; i++) {
14409
14397
  if (oldTracks[i] === newTracks[i]) {
14410
14398
  continue;
14411
14399
  } else if (oldTracks[i]) {
14412
14400
  if (!tracksMap || tracksMap[oldTracks[i]]) {
14413
- yield (_a7 = this.hmsActions) == null ? void 0 : _a7.detachVideo(oldTracks[i], this.videoElements[i]);
14401
+ yield (_a8 = this.hmsActions) == null ? void 0 : _a8.detachVideo(oldTracks[i], this.videoElements[i]);
14414
14402
  }
14415
14403
  if (this.videoElements[i]) {
14416
14404
  this.videoElements[i].srcObject = null;
@@ -14625,10 +14613,10 @@ var convertError = (error) => {
14625
14613
  body: `Endpoint is not reachable. ${error.description}.`
14626
14614
  })).otherwise(
14627
14615
  () => {
14628
- var _a7;
14616
+ var _a8;
14629
14617
  return (
14630
14618
  // @ts-ignore
14631
- match3((_a7 = error.response) == null ? void 0 : _a7.status).with(404, () => ({
14619
+ match3((_a8 = error.response) == null ? void 0 : _a8.status).with(404, () => ({
14632
14620
  title: "Room does not exist",
14633
14621
  body: "We could not find a room corresponding to this link."
14634
14622
  })).with(403, () => ({
@@ -14864,8 +14852,8 @@ var IconButtonWithOptions = ({
14864
14852
  // src/Prebuilt/components/MoreSettings/ActionTile.jsx
14865
14853
  init_define_process_env();
14866
14854
  import React28 from "react";
14867
- var ActionTileRoot = (_a7) => {
14868
- var _b7 = _a7, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14855
+ var ActionTileRoot = (_a8) => {
14856
+ var _b7 = _a8, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14869
14857
  return /* @__PURE__ */ React28.createElement(
14870
14858
  Flex,
14871
14859
  __spreadProps(__spreadValues({}, props), {
@@ -15009,8 +14997,8 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
15009
14997
  }
15010
14998
  });
15011
14999
  var SheetContent = React29.forwardRef(
15012
- (_a7, forwardedRef) => {
15013
- var _b7 = _a7, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
15000
+ (_a8, forwardedRef) => {
15001
+ var _b7 = _a8, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
15014
15002
  return /* @__PURE__ */ React29.createElement(Dialog.Portal, { container }, /* @__PURE__ */ React29.createElement(StyledOverlay, null), /* @__PURE__ */ React29.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
15015
15003
  }
15016
15004
  );
@@ -15120,7 +15108,7 @@ var useDropdownSelection = () => {
15120
15108
 
15121
15109
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
15122
15110
  var Settings = ({ setHide }) => {
15123
- var _a7;
15111
+ var _a8;
15124
15112
  const { allDevices, selectedDeviceIDs, updateDevice } = useDevices();
15125
15113
  const { videoInput, audioInput, audioOutput } = allDevices;
15126
15114
  const videoTrackId = useHMSStore8(selectLocalVideoTrackID);
@@ -15136,7 +15124,7 @@ var Settings = ({ setHide }) => {
15136
15124
  hmsActions.refreshDevices();
15137
15125
  }
15138
15126
  }, [hmsActions, isMobile]);
15139
- const audioOutputFiltered = (_a7 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a7 : [];
15127
+ const audioOutputFiltered = (_a8 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a8 : [];
15140
15128
  if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
15141
15129
  setHide(true);
15142
15130
  }
@@ -15192,7 +15180,7 @@ var Settings = ({ setHide }) => {
15192
15180
  ) : null);
15193
15181
  };
15194
15182
  var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
15195
- var _a7, _b7;
15183
+ var _a8, _b7;
15196
15184
  const [open, setOpen] = useState8(false);
15197
15185
  const selectionBg = useDropdownSelection();
15198
15186
  const ref = useRef10(null);
@@ -15227,7 +15215,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
15227
15215
  {
15228
15216
  ref,
15229
15217
  icon,
15230
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
15218
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
15231
15219
  open
15232
15220
  }
15233
15221
  ), /* @__PURE__ */ React31.createElement(Dropdown.Portal, null, /* @__PURE__ */ React31.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_b7 = ref.current) == null ? void 0 : _b7.clientWidth, zIndex: 1001 } }, devices.map((device) => {
@@ -15262,8 +15250,8 @@ var TestAudio = ({ id }) => {
15262
15250
  }
15263
15251
  },
15264
15252
  onClick: () => {
15265
- var _a7;
15266
- return (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15253
+ var _a8;
15254
+ return (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15267
15255
  },
15268
15256
  disabled: playing
15269
15257
  },
@@ -15382,18 +15370,18 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
15382
15370
  }
15383
15371
  }, [screenType, hideSettingByTabName]);
15384
15372
  const [selection, setSelection] = useState9(() => {
15385
- var _a7;
15386
- return (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15373
+ var _a8;
15374
+ return (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15387
15375
  });
15388
15376
  const resetSelection = useCallback8(() => {
15389
15377
  setSelection("");
15390
15378
  }, []);
15391
15379
  useEffect11(() => {
15392
- var _a7;
15380
+ var _a8;
15393
15381
  if (isMobile) {
15394
15382
  setSelection("");
15395
15383
  } else {
15396
- const firstNotHiddenTabName = (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15384
+ const firstNotHiddenTabName = (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15397
15385
  setSelection(firstNotHiddenTabName);
15398
15386
  }
15399
15387
  }, [isMobile, showSetting]);
@@ -15614,11 +15602,11 @@ var OptionLabel = ({ children, icon }) => {
15614
15602
  );
15615
15603
  };
15616
15604
  var useNoiseCancellationWithPlugin = () => {
15617
- var _a7;
15605
+ var _a8;
15618
15606
  const actions = useHMSActions8();
15619
15607
  const [inProgress, setInProgress] = useState10(false);
15620
15608
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
15621
- const isEnabledForRoom = (_a7 = useHMSStore9(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15609
+ const isEnabledForRoom = (_a8 = useHMSStore9(selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15622
15610
  const setNoiseCancellationWithPlugin = useCallback9(
15623
15611
  (enabled) => __async(void 0, null, function* () {
15624
15612
  if (!isEnabledForRoom || inProgress) {
@@ -15724,11 +15712,11 @@ var AudioOutputLabel = ({ deviceId }) => {
15724
15712
  variant: "xs",
15725
15713
  css: { color: "$primary_bright", "&:hover": { cursor: "pointer" } },
15726
15714
  onClick: () => __async(void 0, null, function* () {
15727
- var _a7;
15715
+ var _a8;
15728
15716
  if (playing) {
15729
15717
  return;
15730
15718
  }
15731
- yield (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15719
+ yield (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15732
15720
  })
15733
15721
  },
15734
15722
  /* @__PURE__ */ React34.createElement(
@@ -15790,8 +15778,8 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
15790
15778
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
15791
15779
  useEffect12(() => {
15792
15780
  (() => __async(void 0, null, function* () {
15793
- var _a7;
15794
- const isEnabledForRoom = (_a7 = vanillaStore.getState(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15781
+ var _a8;
15782
+ const isEnabledForRoom = (_a8 = vanillaStore.getState(selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15795
15783
  if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
15796
15784
  try {
15797
15785
  yield setNoiseCancellationWithPlugin(true);
@@ -15980,15 +15968,15 @@ import {
15980
15968
  useHMSVanillaStore as useHMSVanillaStore5
15981
15969
  } from "@100mslive/react-sdk";
15982
15970
  var useFilteredRoles = () => {
15983
- var _a7;
15971
+ var _a8;
15984
15972
  const { elements } = useRoomLayoutConferencingScreen();
15985
- return ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.roles_whitelist) || [];
15973
+ return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
15986
15974
  };
15987
15975
  var useDefaultChatSelection = () => {
15988
- var _a7;
15976
+ var _a8;
15989
15977
  const { elements } = useRoomLayoutConferencingScreen();
15990
15978
  const roles = useFilteredRoles();
15991
- if ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.public_chat_enabled) {
15979
+ if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
15992
15980
  return CHAT_SELECTOR.EVERYONE;
15993
15981
  }
15994
15982
  if (roles.length > 0) {
@@ -15997,20 +15985,20 @@ var useDefaultChatSelection = () => {
15997
15985
  return "";
15998
15986
  };
15999
15987
  var useShowStreamingUI = () => {
16000
- var _a7, _b7, _c;
15988
+ var _a8, _b7, _c;
16001
15989
  const layout = useRoomLayout();
16002
- const { join_form } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
15990
+ const { join_form } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
16003
15991
  return (join_form == null ? void 0 : join_form.join_btn_type) === JoinForm_JoinBtnType2.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
16004
15992
  };
16005
15993
  var useParticipants = (params) => {
16006
- var _a7;
15994
+ var _a8;
16007
15995
  const isConnected = useHMSStore11(selectIsConnectedToRoom);
16008
15996
  const peerCount = useHMSStore11(selectPeerCount2);
16009
15997
  const availableRoles = useHMSStore11(selectAvailableRoleNames);
16010
15998
  let participantList = useHMSStore11(isConnected ? selectPeers : selectRemotePeers);
16011
15999
  const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
16012
16000
  const vanillaStore = useHMSVanillaStore5();
16013
- if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
16001
+ if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
16014
16002
  participantList = participantList.filter((peer) => {
16015
16003
  return vanillaStore.getState(selectPeerMetadata(peer.id)).isHandRaised;
16016
16004
  });
@@ -16129,9 +16117,9 @@ function useWaitingRoomInfo() {
16129
16117
  const isScreenOnlyPublishParams = screen && !(video || audio);
16130
16118
  const hasSubscribedRolePublishing = useMemo5(() => {
16131
16119
  return peersByRoles.some((peer) => {
16132
- var _a7;
16120
+ var _a8;
16133
16121
  if (peer.roleName && roles[peer.roleName] && !peer.isLocal) {
16134
- return !!((_a7 = roles[peer.roleName].publishParams) == null ? void 0 : _a7.allowed.length);
16122
+ return !!((_a8 = roles[peer.roleName].publishParams) == null ? void 0 : _a8.allowed.length);
16135
16123
  }
16136
16124
  return false;
16137
16125
  });
@@ -16160,14 +16148,14 @@ var EmojiReaction = ({ showCard = false }) => {
16160
16148
  type: EMOJI_REACTION_TYPE
16161
16149
  });
16162
16150
  const sendReaction = (emojiId) => __async(void 0, null, function* () {
16163
- var _a7;
16151
+ var _a8;
16164
16152
  const data3 = {
16165
16153
  type: EMOJI_REACTION_TYPE,
16166
16154
  emojiId,
16167
16155
  senderId: localPeerId
16168
16156
  };
16169
16157
  sendEvent(data3, { roleNames: roles });
16170
- (_a7 = window.showFlyingEmoji) == null ? void 0 : _a7.call(window, { emojiId, senderId: localPeerId });
16158
+ (_a8 = window.showFlyingEmoji) == null ? void 0 : _a8.call(window, { emojiId, senderId: localPeerId });
16171
16159
  });
16172
16160
  if (!isConnected || !elements.emoji_reactions) {
16173
16161
  return null;
@@ -16644,18 +16632,18 @@ var SetupMediaSession = class {
16644
16632
  this.setUpHandlers();
16645
16633
  });
16646
16634
  __publicField(this, "initState", () => {
16647
- var _a7, _b7, _c, _d;
16635
+ var _a8, _b7, _c, _d;
16648
16636
  const isMicActive = this.store.getState(selectIsLocalAudioEnabled);
16649
16637
  const isCamActive = this.store.getState(selectIsLocalVideoEnabled3);
16650
- (_b7 = (_a7 = navigator.mediaSession) == null ? void 0 : _a7.setMicrophoneActive) == null ? void 0 : _b7.call(_a7, isMicActive);
16638
+ (_b7 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b7.call(_a8, isMicActive);
16651
16639
  (_d = (_c = navigator.mediaSession) == null ? void 0 : _c.setCameraActive) == null ? void 0 : _d.call(_c, isCamActive);
16652
16640
  this.store.subscribe((isMicActive2) => {
16653
- var _a8, _b8;
16654
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b8.call(_a8, isMicActive2);
16641
+ var _a9, _b8;
16642
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setMicrophoneActive) == null ? void 0 : _b8.call(_a9, isMicActive2);
16655
16643
  }, selectIsLocalAudioEnabled);
16656
16644
  this.store.subscribe((isCamActive2) => {
16657
- var _a8, _b8;
16658
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setCameraActive) == null ? void 0 : _b8.call(_a8, isCamActive2);
16645
+ var _a9, _b8;
16646
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setCameraActive) == null ? void 0 : _b8.call(_a9, isCamActive2);
16659
16647
  }, selectIsLocalVideoEnabled3);
16660
16648
  });
16661
16649
  __publicField(this, "toggleMic", () => __async(this, null, function* () {
@@ -16934,9 +16922,9 @@ var ChatActions = ({
16934
16922
  openSheet,
16935
16923
  setOpenSheet
16936
16924
  }) => {
16937
- var _a7, _b7;
16925
+ var _a8, _b7;
16938
16926
  const { elements } = useRoomLayoutConferencingScreen();
16939
- const { can_hide_message = false, can_block_user = false } = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) || {};
16927
+ const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
16940
16928
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
16941
16929
  const [open, setOpen] = useState16(false);
16942
16930
  const actions = useHMSActions14();
@@ -17125,7 +17113,7 @@ import React48 from "react";
17125
17113
  import { useMedia as useMedia7 } from "react-use";
17126
17114
  import emptyChat from "./empty-chat.svg";
17127
17115
  var EmptyChat = () => {
17128
- var _a7;
17116
+ var _a8;
17129
17117
  const { elements } = useRoomLayoutConferencingScreen();
17130
17118
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17131
17119
  const isMobile = useMedia7(config.media.md);
@@ -17133,7 +17121,7 @@ var EmptyChat = () => {
17133
17121
  const isMobileHLSStream = useMobileHLSStream();
17134
17122
  const isLandscapeStream = useLandscapeHLSStream();
17135
17123
  const streaming = isMobileHLSStream || isLandscapeStream;
17136
- if (isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming)
17124
+ if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming)
17137
17125
  return /* @__PURE__ */ React48.createElement(React48.Fragment, null);
17138
17126
  return /* @__PURE__ */ React48.createElement(
17139
17127
  Flex,
@@ -17194,12 +17182,12 @@ var CHAT_MESSAGE_LIMIT = 2e3;
17194
17182
  var rowHeights = {};
17195
17183
  var listInstance = null;
17196
17184
  function getRowHeight(index) {
17197
- var _a7;
17198
- return ((_a7 = rowHeights[index]) == null ? void 0 : _a7.size) || 72;
17185
+ var _a8;
17186
+ return ((_a8 = rowHeights[index]) == null ? void 0 : _a8.size) || 72;
17199
17187
  }
17200
17188
  var setRowHeight = (index, id, size) => {
17201
- var _a7, _b7;
17202
- if (((_a7 = rowHeights[index]) == null ? void 0 : _a7.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17189
+ var _a8, _b7;
17190
+ if (((_a8 = rowHeights[index]) == null ? void 0 : _a8.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17203
17191
  return;
17204
17192
  }
17205
17193
  listInstance == null ? void 0 : listInstance.resetAfterIndex(Math.max(index - 1, 0));
@@ -17300,11 +17288,11 @@ var SenderName = styled(Text, {
17300
17288
  });
17301
17289
  var ChatMessage = React49.memo(
17302
17290
  ({ index, style = {}, message }) => {
17303
- var _a7, _b7, _c;
17291
+ var _a8, _b7, _c;
17304
17292
  const { elements } = useRoomLayoutConferencingScreen();
17305
17293
  const rowRef = useRef12(null);
17306
17294
  const isMobile = useMedia8(config.media.md);
17307
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
17295
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
17308
17296
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
17309
17297
  const localPeerId = useHMSStore19(selectLocalPeerID2);
17310
17298
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
@@ -17592,7 +17580,7 @@ var PinnedBy = ({
17592
17580
 
17593
17581
  // src/Prebuilt/components/PIP/PIPChat.tsx
17594
17582
  var PIPChat = () => {
17595
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17583
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17596
17584
  const messages = useHMSStore20(selectHMSMessages2);
17597
17585
  const localPeerID = useHMSStore20(selectLocalPeerID3);
17598
17586
  const count = useHMSStore20(selectUnreadHMSMessagesCount2);
@@ -17618,7 +17606,7 @@ var PIPChat = () => {
17618
17606
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore20(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
17619
17607
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17620
17608
  const { elements } = useRoomLayoutConferencingScreen();
17621
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
17609
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
17622
17610
  const canSendChatMessages = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled) || !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.roles_whitelist) == null ? void 0 : _d.length) || !!((_e = elements == null ? void 0 : elements.chat) == null ? void 0 : _e.private_chat_enabled);
17623
17611
  const getChatStatus = useCallback16(() => {
17624
17612
  if (isLocalPeerBlacklisted)
@@ -17851,11 +17839,11 @@ var RoleChangeContent = ({
17851
17839
  onOpenChange,
17852
17840
  isMobile = false
17853
17841
  }) => {
17854
- var _a7;
17842
+ var _a8;
17855
17843
  const roles = useHMSStore21(selectAvailableRoleNames3).filter(
17856
17844
  (role) => role !== (peer == null ? void 0 : peer.roleName) && role !== "__internal_recorder"
17857
17845
  );
17858
- const [selectedRole, setRole] = useState20(((_a7 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a7[0]) || (peer == null ? void 0 : peer.roleName));
17846
+ const [selectedRole, setRole] = useState20(((_a8 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a8[0]) || (peer == null ? void 0 : peer.roleName));
17859
17847
  const hmsActions = useHMSActions16();
17860
17848
  const [open, setOpen] = useState20(false);
17861
17849
  const triggerRef = useRef13();
@@ -17909,14 +17897,14 @@ var RoleChangeContent = ({
17909
17897
  },
17910
17898
  /* @__PURE__ */ React52.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React52.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ React52.createElement(ChevronUpIcon3, null) : /* @__PURE__ */ React52.createElement(ChevronDownIcon3, null))
17911
17899
  ), /* @__PURE__ */ React52.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { zIndex: 1e3, w: "100%" } }, roles.map((role) => {
17912
- var _a8;
17900
+ var _a9;
17913
17901
  return /* @__PURE__ */ React52.createElement(
17914
17902
  Dropdown.Item,
17915
17903
  {
17916
17904
  "data-testid": role,
17917
17905
  key: role,
17918
17906
  onSelect: () => setRole(role),
17919
- css: { w: `${(_a8 = triggerRef.current) == null ? void 0 : _a8.clientWidth}px` }
17907
+ css: { w: `${(_a9 = triggerRef.current) == null ? void 0 : _a9.clientWidth}px` }
17920
17908
  },
17921
17909
  role
17922
17910
  );
@@ -17978,12 +17966,12 @@ import { InfoIcon } from "@100mslive/react-icons";
17978
17966
  init_define_process_env();
17979
17967
  import React53, { useRef as useRef14 } from "react";
17980
17968
  import { CheckIcon as CheckIcon2, CloudUploadIcon, CrossIcon as CrossIcon9 } from "@100mslive/react-icons";
17981
- var DialogContent = (_a7) => {
17982
- var _b7 = _a7, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17969
+ var DialogContent = (_a8) => {
17970
+ var _b7 = _a8, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17983
17971
  return /* @__PURE__ */ React53.createElement(Dialog.Portal, null, /* @__PURE__ */ React53.createElement(Dialog.Overlay, null), /* @__PURE__ */ React53.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ React53.createElement(Dialog.Title, null, /* @__PURE__ */ React53.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React53.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon4 ? /* @__PURE__ */ React53.createElement(Flex, { css: __spreadValues(__spreadValues({ mr: "$2", color: "$on_primary_high" }, flexCenter), iconCSS) }, /* @__PURE__ */ React53.createElement(Icon4, null)) : null, /* @__PURE__ */ React53.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ React53.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ React53.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ React53.createElement(Box, null, children)));
17984
17972
  };
17985
- var ErrorDialog = (_a7) => {
17986
- var _b7 = _a7, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17973
+ var ErrorDialog = (_a8) => {
17974
+ var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17987
17975
  return /* @__PURE__ */ React53.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React53.createElement(
17988
17976
  DialogContent,
17989
17977
  __spreadValues({
@@ -18027,8 +18015,8 @@ var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" })
18027
18015
  }
18028
18016
  return /* @__PURE__ */ React53.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
18029
18017
  };
18030
- var DialogCol = (_a7) => {
18031
- var _b7 = _a7, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
18018
+ var DialogCol = (_a8) => {
18019
+ var _b7 = _a8, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
18032
18020
  let finalCSS = {
18033
18021
  margin: "$10 0",
18034
18022
  w: "100%"
@@ -18043,24 +18031,24 @@ var DialogCol = (_a7) => {
18043
18031
  }
18044
18032
  return /* @__PURE__ */ React53.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
18045
18033
  };
18046
- var DialogSelect = (_a7) => {
18047
- var _b7 = _a7, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
18034
+ var DialogSelect = (_a8) => {
18035
+ var _b7 = _a8, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
18048
18036
  return /* @__PURE__ */ React53.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ React53.createElement(Label3, null, title), /* @__PURE__ */ React53.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ React53.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ React53.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
18049
18037
  const id = keyField ? option[keyField] : option;
18050
18038
  const label = labelField ? option[labelField] : option;
18051
18039
  return /* @__PURE__ */ React53.createElement("option", { value: id, key: id }, label);
18052
18040
  }))));
18053
18041
  };
18054
- var DialogInputFile = (_a7) => {
18055
- var _b7 = _a7, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
18042
+ var DialogInputFile = (_a8) => {
18043
+ var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
18056
18044
  const inputRef = useRef14();
18057
18045
  return /* @__PURE__ */ React53.createElement(
18058
18046
  DialogCol,
18059
18047
  {
18060
18048
  breakSm: true,
18061
18049
  onClick: () => {
18062
- var _a8;
18063
- return (_a8 = inputRef.current) == null ? void 0 : _a8.click();
18050
+ var _a9;
18051
+ return (_a9 = inputRef.current) == null ? void 0 : _a9.click();
18064
18052
  },
18065
18053
  css: {
18066
18054
  justifyContent: "center",
@@ -18277,7 +18265,7 @@ import {
18277
18265
  useHMSStore as useHMSStore23
18278
18266
  } from "@100mslive/react-sdk";
18279
18267
  var StatsForNerds = ({ open, onOpenChange }) => {
18280
- var _a7, _b7;
18268
+ var _a8, _b7;
18281
18269
  const mediaQueryLg = config.media.md;
18282
18270
  const isMobile = useMedia10(mediaQueryLg);
18283
18271
  const tracksWithLabels = useTracksWithLabel();
@@ -18341,7 +18329,7 @@ var StatsForNerds = ({ open, onOpenChange }) => {
18341
18329
  open: openDropdown,
18342
18330
  ref
18343
18331
  }
18344
- ), /* @__PURE__ */ React56.createElement(Dropdown.Portal, null, /* @__PURE__ */ React56.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18332
+ ), /* @__PURE__ */ React56.createElement(Dropdown.Portal, null, /* @__PURE__ */ React56.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18345
18333
  const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
18346
18334
  return /* @__PURE__ */ React56.createElement(
18347
18335
  Dropdown.Item,
@@ -18424,8 +18412,8 @@ var useTracksWithLabel = () => {
18424
18412
  const localPeerID = useHMSStore23(selectLocalPeerID4);
18425
18413
  const tracksWithLabels = useMemo8(
18426
18414
  () => Object.values(tracksMap).reduce((res, track) => {
18427
- var _a7, _b7;
18428
- const peerName = (_a7 = peersMap[track.peerId]) == null ? void 0 : _a7.name;
18415
+ var _a8, _b7;
18416
+ const peerName = (_a8 = peersMap[track.peerId]) == null ? void 0 : _a8.name;
18429
18417
  const isLocalTrack = track.peerId === localPeerID;
18430
18418
  if (isLocalTrack && ((_b7 = track.layerDefinitions) == null ? void 0 : _b7.length)) {
18431
18419
  res = res.concat(
@@ -18452,12 +18440,12 @@ var useTracksWithLabel = () => {
18452
18440
  return tracksWithLabels;
18453
18441
  };
18454
18442
  var LocalPeerStats = () => {
18455
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
18443
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i;
18456
18444
  const stats = useHMSStatsStore3(selectHMSStats3.localPeerStats);
18457
18445
  if (!stats) {
18458
18446
  return null;
18459
18447
  }
18460
- return /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Packets Lost", value: (_a7 = stats.subscribe) == null ? void 0 : _a7.packetsLost }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(
18448
+ return /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Packets Lost", value: (_a8 = stats.subscribe) == null ? void 0 : _a8.packetsLost }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(
18461
18449
  StatsRow2,
18462
18450
  {
18463
18451
  label: "Available Outgoing Bitrate",
@@ -18472,7 +18460,7 @@ var LocalPeerStats = () => {
18472
18460
  ));
18473
18461
  };
18474
18462
  var TrackStats = ({ trackID, layer, local }) => {
18475
- var _a7;
18463
+ var _a8;
18476
18464
  const selector = match4({ trackID, layer, local }).with(
18477
18465
  {
18478
18466
  layer: P3.when((layer2) => !!layer2)
@@ -18484,7 +18472,7 @@ var TrackStats = ({ trackID, layer, local }) => {
18484
18472
  return null;
18485
18473
  }
18486
18474
  const inbound = stats.type.includes("inbound");
18487
- return /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Jitter", value: (_a7 = stats.jitter) == null ? void 0 : _a7.toFixed(3) }), /* @__PURE__ */ React56.createElement(
18475
+ return /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Jitter", value: (_a8 = stats.jitter) == null ? void 0 : _a8.toFixed(3) }), /* @__PURE__ */ React56.createElement(
18488
18476
  StatsRow2,
18489
18477
  {
18490
18478
  label: inbound ? "Bytes Received" : "Bytes Sent",
@@ -18499,8 +18487,8 @@ var TrackStats = ({ trackID, layer, local }) => {
18499
18487
  ));
18500
18488
  };
18501
18489
  var DebugInfo = ({ details }) => {
18502
- var _a7;
18503
- return /* @__PURE__ */ React56.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ React56.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ React56.createElement(Accordion.Header, null, /* @__PURE__ */ React56.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ React56.createElement(Accordion.Content, null, /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a7 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a7.join(", ") })))));
18490
+ var _a8;
18491
+ return /* @__PURE__ */ React56.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ React56.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ React56.createElement(Accordion.Header, null, /* @__PURE__ */ React56.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ React56.createElement(Accordion.Content, null, /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a8 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a8.join(", ") })))));
18504
18492
  };
18505
18493
  var StatsRow2 = React56.memo(({ label, value, css: css2 }) => /* @__PURE__ */ React56.createElement(Box, { css: __spreadValues({ bg: "$surface_bright", w: "calc(50% - $6)", p: "$8", r: "$3" }, css2) }, /* @__PURE__ */ React56.createElement(
18506
18494
  Text,
@@ -18521,7 +18509,7 @@ import React57, { useCallback as useCallback18, useRef as useRef16, useState as
18521
18509
  import { useHMSActions as useHMSActions19 } from "@100mslive/react-sdk";
18522
18510
  import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon3 } from "@100mslive/react-icons";
18523
18511
  var BulkRoleChangeModal = ({ onOpenChange }) => {
18524
- var _a7, _b7;
18512
+ var _a8, _b7;
18525
18513
  const roles = useFilteredRoles();
18526
18514
  const hmsActions = useHMSActions19();
18527
18515
  const ref = useRef16(null);
@@ -18572,7 +18560,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
18572
18560
  /* @__PURE__ */ React57.createElement(
18573
18561
  Dropdown.Content,
18574
18562
  {
18575
- css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 },
18563
+ css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 },
18576
18564
  onInteractOutside: () => {
18577
18565
  if (bulkRoleDialog) {
18578
18566
  setBulkRoleDialog(false);
@@ -19356,8 +19344,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
19356
19344
  // ../hms-video-store/dist/index.js
19357
19345
  var import_ua_parser_js = __toESM(require_ua_parser());
19358
19346
  var import_lodash3 = __toESM(require_lodash2());
19359
- import { v4 as Mo } from "uuid";
19360
- import { v4 as fo } from "uuid";
19347
+ import { v4 as Po } from "uuid";
19348
+ import { v4 as ko } from "uuid";
19361
19349
 
19362
19350
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
19363
19351
  init_define_process_env();
@@ -19728,8 +19716,8 @@ function shimGetUserMedia(window2, browserDetails) {
19728
19716
  navigator2.getUserMedia = getUserMedia_.bind(navigator2);
19729
19717
  if (navigator2.mediaDevices.getUserMedia) {
19730
19718
  const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
19731
- navigator2.mediaDevices.getUserMedia = function(cs2) {
19732
- return shimConstraints_(cs2, (c2) => origGetUserMedia(c2).then((stream) => {
19719
+ navigator2.mediaDevices.getUserMedia = function(cs) {
19720
+ return shimConstraints_(cs, (c2) => origGetUserMedia(c2).then((stream) => {
19733
19721
  if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
19734
19722
  stream.getTracks().forEach((track) => {
19735
19723
  track.stop();
@@ -21454,43 +21442,43 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
21454
21442
 
21455
21443
  // ../hms-video-store/dist/index.js
21456
21444
  var import_lodash4 = __toESM(require_lodash2());
21457
- import { v4 as Ho } from "uuid";
21458
21445
  import { v4 as wo } from "uuid";
21459
21446
  import { v4 as xo } from "uuid";
21460
- import { EventEmitter2 as Uo } from "eventemitter2";
21461
- var Qt = __toESM(require_lib());
21462
- import { EventEmitter2 as pn } from "eventemitter2";
21463
- import { v4 as Tn } from "uuid";
21464
- import { EventEmitter2 as fn } from "eventemitter2";
21465
- import Mn from "eventemitter2";
21447
+ import { v4 as Fo } from "uuid";
21448
+ import { EventEmitter2 as Go } from "eventemitter2";
21449
+ var Xt = __toESM(require_lib());
21450
+ import { EventEmitter2 as gn } from "eventemitter2";
21466
21451
  import { v4 as yn } from "uuid";
21467
- import { v4 as Pn } from "uuid";
21468
- var so = Object.defineProperty;
21469
- var ao = Object.defineProperties;
21470
- var oo = Object.getOwnPropertyDescriptors;
21471
- var ri = Object.getOwnPropertySymbols;
21472
- var us = Object.prototype.hasOwnProperty;
21473
- var ps = Object.prototype.propertyIsEnumerable;
21474
- var ls = (a2, e, t) => e in a2 ? so(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21452
+ import { EventEmitter2 as kn } from "eventemitter2";
21453
+ import Pn from "eventemitter2";
21454
+ import { v4 as bn } from "uuid";
21455
+ import { v4 as Rn } from "uuid";
21456
+ var co = Object.defineProperty;
21457
+ var lo = Object.defineProperties;
21458
+ var uo = Object.getOwnPropertyDescriptors;
21459
+ var oi = Object.getOwnPropertySymbols;
21460
+ var Ss = Object.prototype.hasOwnProperty;
21461
+ var gs = Object.prototype.propertyIsEnumerable;
21462
+ var ms = (a2, e, t) => e in a2 ? co(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21475
21463
  var h = (a2, e) => {
21476
21464
  for (var t in e || (e = {}))
21477
- us.call(e, t) && ls(a2, t, e[t]);
21478
- if (ri)
21479
- for (var t of ri(e))
21480
- ps.call(e, t) && ls(a2, t, e[t]);
21465
+ Ss.call(e, t) && ms(a2, t, e[t]);
21466
+ if (oi)
21467
+ for (var t of oi(e))
21468
+ gs.call(e, t) && ms(a2, t, e[t]);
21481
21469
  return a2;
21482
21470
  };
21483
- var M = (a2, e) => ao(a2, oo(e));
21484
- var fr = (a2, e) => {
21471
+ var M = (a2, e) => lo(a2, uo(e));
21472
+ var yr = (a2, e) => {
21485
21473
  var t = {};
21486
21474
  for (var i in a2)
21487
- us.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21488
- if (a2 != null && ri)
21489
- for (var i of ri(a2))
21490
- e.indexOf(i) < 0 && ps.call(a2, i) && (t[i] = a2[i]);
21475
+ Ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21476
+ if (a2 != null && oi)
21477
+ for (var i of oi(a2))
21478
+ e.indexOf(i) < 0 && gs.call(a2, i) && (t[i] = a2[i]);
21491
21479
  return t;
21492
21480
  };
21493
- var lo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21481
+ var mo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21494
21482
  var c = (a2, e, t) => new Promise((i, r) => {
21495
21483
  var s = (d) => {
21496
21484
  try {
@@ -21507,51 +21495,51 @@ var c = (a2, e, t) => new Promise((i, r) => {
21507
21495
  }, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
21508
21496
  n((t = t.apply(a2, e)).next());
21509
21497
  });
21510
- var Er = lo(($c, vo) => {
21511
- vo.exports = { version: "0.12.25-alpha.5", 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"] };
21498
+ var Ar = mo((Jc, Eo) => {
21499
+ Eo.exports = { version: "0.12.25-alpha.7", 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"] };
21512
21500
  });
21513
- var vr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(vr || {});
21514
- var uo = ((e) => (e.CHAT = "chat", e))(uo || {});
21515
- var hs = ((t) => (t.INFO = "info", t.ERROR = "error", t))(hs || {});
21516
- var Mr = ((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))(Mr || {});
21517
- var ms = ((t) => (t.audio = "audio", t.video = "video", t))(ms || {});
21518
- function Be(a2, e) {
21501
+ var kr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(kr || {});
21502
+ var So = ((e) => (e.CHAT = "chat", e))(So || {});
21503
+ var Ts = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Ts || {});
21504
+ var Er = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(Er || {});
21505
+ var fs = ((t) => (t.audio = "audio", t.video = "video", t))(fs || {});
21506
+ function Fe(a2, e) {
21519
21507
  let t, i;
21520
21508
  if (e)
21521
21509
  for (let r of e.auxiliaryTracks) {
21522
21510
  let s = a2[r];
21523
- po(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
21511
+ go(s) && (i = gt(s) ? s : i, t = Tt(s) ? s : t);
21524
21512
  }
21525
21513
  return { video: t, audio: i };
21526
21514
  }
21527
- function ht(a2) {
21515
+ function gt(a2) {
21528
21516
  return a2 && a2.type === "audio";
21529
21517
  }
21530
- function mt(a2) {
21518
+ function Tt(a2) {
21531
21519
  return a2 && a2.type === "video";
21532
21520
  }
21533
- function po(a2) {
21521
+ function go(a2) {
21534
21522
  return a2 && a2.source === "screen";
21535
21523
  }
21536
- function oi(a2) {
21524
+ function di(a2) {
21537
21525
  return a2 && a2.source === "audioplaylist";
21538
21526
  }
21539
- function St(a2) {
21527
+ function ft(a2) {
21540
21528
  return a2 && a2.source === "videoplaylist";
21541
21529
  }
21542
- function Ss(a2) {
21530
+ function vs(a2) {
21543
21531
  return a2 ? !!(a2 != null && a2.degraded) : false;
21544
21532
  }
21545
- function Je(a2, e) {
21533
+ function ze(a2, e) {
21546
21534
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21547
21535
  }
21548
- function gt(a2) {
21536
+ function vt(a2) {
21549
21537
  var r;
21550
21538
  let e = false, t = false, i = false;
21551
21539
  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 };
21552
21540
  }
21553
- var Ts = ((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))(Ts || {});
21554
- var ho = typeof window != "undefined" && typeof window.expect != "undefined";
21541
+ var ys = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(ys || {});
21542
+ var To = typeof window != "undefined" && typeof window.expect != "undefined";
21555
21543
  var l = class {
21556
21544
  static v(e, ...t) {
21557
21545
  this.log(0, e, ...t);
@@ -21617,28 +21605,28 @@ var l = class {
21617
21605
  }
21618
21606
  }
21619
21607
  };
21620
- l.level = ho ? 7 : 0;
21621
- var me = new import_ua_parser_js.UAParser();
21622
- var B = typeof window != "undefined";
21623
- var fs;
21624
- var Ve = typeof window == "undefined" && !((fs = me.getBrowser().name) != null && fs.toLowerCase().includes("electron"));
21625
- var So = () => !Ve;
21626
- var hc = So();
21627
- var vs;
21628
- var Ms;
21629
- var bs = (Ms = (vs = me.getBrowser()) == null ? void 0 : vs.name) == null ? void 0 : Ms.toLowerCase().includes("safari");
21630
- var ys;
21608
+ l.level = To ? 7 : 0;
21609
+ var ge = new import_ua_parser_js.UAParser();
21610
+ var x = typeof window != "undefined";
21631
21611
  var ks;
21632
- var As = ((ks = (ys = me.getBrowser()) == null ? void 0 : ys.name) == null ? void 0 : ks.toLowerCase()) === "firefox";
21633
- var Is = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Is || {});
21634
- function go() {
21635
- if (B && window) {
21612
+ var Ge = typeof window == "undefined" && !((ks = ge.getBrowser().name) != null && ks.toLowerCase().includes("electron"));
21613
+ var vo = () => !Ge;
21614
+ var Tc = vo();
21615
+ var Es;
21616
+ var Ps;
21617
+ var Hs = (Ps = (Es = ge.getBrowser()) == null ? void 0 : Es.name) == null ? void 0 : Ps.toLowerCase().includes("safari");
21618
+ var bs;
21619
+ var As;
21620
+ var Cs = ((As = (bs = ge.getBrowser()) == null ? void 0 : bs.name) == null ? void 0 : As.toLowerCase()) === "firefox";
21621
+ var Ls = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ls || {});
21622
+ function Mo() {
21623
+ if (x && window) {
21636
21624
  let a2 = window.location.hostname;
21637
21625
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21638
21626
  }
21639
21627
  return "CUSTOM";
21640
21628
  }
21641
- var ze = go();
21629
+ var Xe = Mo();
21642
21630
  var P4 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014, NO_DATA: 3015 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
21643
21631
  var k = class a extends Error {
21644
21632
  constructor(t, i, r, s, o, n = false) {
@@ -21669,7 +21657,7 @@ var k = class a extends Error {
21669
21657
  }`;
21670
21658
  }
21671
21659
  };
21672
- var $ = class extends k {
21660
+ var W = class extends k {
21673
21661
  constructor(t, i, r, s, o, n) {
21674
21662
  super(t, i, r, s, o, false);
21675
21663
  this.code = t;
@@ -21695,8 +21683,8 @@ var $ = class extends k {
21695
21683
  }`;
21696
21684
  }
21697
21685
  };
21698
- var Rs = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Rs || {});
21699
- var To = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21686
+ var Ds = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Ds || {});
21687
+ var yo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21700
21688
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21701
21689
  return new k(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21702
21690
  }, WebSocketConnectionLost(a2, e = "") {
@@ -21712,37 +21700,37 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21712
21700
  }, InitConfigNotAvailable(a2, e = "") {
21713
21701
  return new k(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21714
21702
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21715
- return new $(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21703
+ return new W(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21716
21704
  }, CantAccessCaptureDevice(a2, e, t = "") {
21717
- return new $(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21705
+ return new W(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21718
21706
  }, DeviceNotAvailable(a2, e, t = "") {
21719
- return new $(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21707
+ return new W(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21720
21708
  }, DeviceInUse(a2, e, t = "") {
21721
- return new $(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21709
+ return new W(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21722
21710
  }, DeviceLostMidway(a2, e, t = "") {
21723
- return new $(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21711
+ return new W(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21724
21712
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21725
- return new $(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21713
+ return new W(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21726
21714
  }, InvalidVideoSettings(a2, e = "") {
21727
- return new $(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21715
+ return new W(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21728
21716
  }, AutoplayBlocked(a2, e = "") {
21729
- return new $(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21717
+ return new W(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21730
21718
  }, CodecChangeNotPermitted(a2, e = "") {
21731
- return new $(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21719
+ return new W(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21732
21720
  }, OverConstrained(a2, e, t = "") {
21733
- return new $(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21721
+ return new W(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21734
21722
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21735
- return new $(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21723
+ return new W(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21736
21724
  }, SystemDeniedPermission(a2, e, t = "") {
21737
- return new $(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21725
+ return new W(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21738
21726
  }, CurrentTabNotShared() {
21739
- return new $(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed", "screen");
21727
+ return new W(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed", "screen");
21740
21728
  }, AudioPlaybackError(a2) {
21741
- return new $(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21729
+ return new W(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21742
21730
  }, SelectedDeviceMissing(a2) {
21743
- return new $(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21731
+ return new W(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21744
21732
  }, NoDataInTrack(a2) {
21745
- return new $(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21733
+ return new W(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21746
21734
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21747
21735
  return new k(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21748
21736
  }, CreateAnswerFailed(a2, e = "") {
@@ -21758,7 +21746,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21758
21746
  }, StatsFailed(a2, e = "") {
21759
21747
  return new k(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21760
21748
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21761
- return new k(a2, "ServerErrors", e, t, t, To.includes(e));
21749
+ return new k(a2, "ServerErrors", e, t, t, yo.includes(e));
21762
21750
  }, AlreadyJoined(a2, e = "") {
21763
21751
  return new k(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21764
21752
  }, CannotJoinPreviewInProgress(a2, e = "") {
@@ -21806,7 +21794,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21806
21794
  }, NoEntryPlaying(a2, e) {
21807
21795
  return new k(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21808
21796
  } } };
21809
- var kr = class {
21797
+ var br = class {
21810
21798
  constructor() {
21811
21799
  this.valuesMap = /* @__PURE__ */ new Map();
21812
21800
  }
@@ -21831,21 +21819,21 @@ var kr = class {
21831
21819
  return this.valuesMap.size;
21832
21820
  }
21833
21821
  };
21834
- var Hs = () => {
21822
+ var ws = () => {
21835
21823
  try {
21836
- B && !localStorage && (window.localStorage = new kr());
21824
+ x && !localStorage && (window.localStorage = new br());
21837
21825
  } catch (a2) {
21838
21826
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21839
21827
  }
21840
21828
  };
21841
- var Se = class {
21829
+ var Te = class {
21842
21830
  constructor(e) {
21843
21831
  this.key = e;
21844
21832
  this.storage = null;
21845
21833
  }
21846
21834
  getStorage() {
21847
21835
  try {
21848
- return B && !this.storage && (Hs(), this.storage = window.localStorage), this.storage;
21836
+ return x && !this.storage && (ws(), this.storage = window.localStorage), this.storage;
21849
21837
  } catch (e) {
21850
21838
  return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21851
21839
  }
@@ -21865,32 +21853,32 @@ var Se = class {
21865
21853
  (e = this.getStorage()) == null || e.removeItem(this.key);
21866
21854
  }
21867
21855
  };
21868
- var ni = () => {
21869
- let a2, e = new Se("hms-analytics-deviceId"), t = e.get();
21870
- return t ? a2 = t : (a2 = fo(), e.set(a2)), a2;
21856
+ var li = () => {
21857
+ let a2, e = new Te("hms-analytics-deviceId"), t = e.get();
21858
+ return t ? a2 = t : (a2 = ko(), e.set(a2)), a2;
21871
21859
  };
21872
- function le(a2) {
21860
+ function pe(a2) {
21873
21861
  return a2 != null;
21874
21862
  }
21875
- var Ds = Er().version;
21876
- function Mt(a2 = "prod", e) {
21877
- let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21878
- if (Ve)
21879
- return ws({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ds, 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 });
21880
- let r = me.getOS(), s = me.getDevice(), o = me.getBrowser(), n = Pr(`web_${r.name}`), d = r.version || "", u = Pr(`${o.name}_${o.version}`), p = u;
21881
- return s.type && (p = `${Pr(`${s.vendor}_${s.type}`)}/${u}`), ws({ os: n, os_version: d, sdk: t, sdk_version: Ds, 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 });
21863
+ var Os = Ar().version;
21864
+ function Et(a2 = "prod", e) {
21865
+ let t = "web", i = Xe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21866
+ if (Ge)
21867
+ return xs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Os, env: i, domain: Xe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21868
+ let r = ge.getOS(), s = ge.getDevice(), o = ge.getBrowser(), n = Ir(`web_${r.name}`), d = r.version || "", u = Ir(`${o.name}_${o.version}`), p = u;
21869
+ return s.type && (p = `${Ir(`${s.vendor}_${s.type}`)}/${u}`), xs({ os: n, os_version: d, sdk: t, sdk_version: Os, device_model: p, env: i, domain: Xe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21882
21870
  }
21883
- function Pr(a2) {
21871
+ function Ir(a2) {
21884
21872
  return a2.replace(/ /g, "_");
21885
21873
  }
21886
- var ws = (a2, e = ",") => Object.keys(a2).filter((t) => le(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21874
+ var xs = (a2, e = ",") => Object.keys(a2).filter((t) => pe(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21887
21875
  var C = class {
21888
21876
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21889
- this.metadata = { peer: {}, userAgent: Mt() };
21890
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Mo(), this.device_id = ni();
21877
+ this.metadata = { peer: {}, userAgent: Et() };
21878
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Po(), this.device_id = li();
21891
21879
  }
21892
21880
  toSignalParams() {
21893
- return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21881
+ return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: Xe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21894
21882
  }
21895
21883
  };
21896
21884
  var y = class {
@@ -21903,12 +21891,12 @@ var y = class {
21903
21891
  return new C({ name: i, level: r, properties: s });
21904
21892
  }
21905
21893
  static preview(i) {
21906
- var r = i, { error: e } = r, t = fr(r, ["error"]);
21894
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21907
21895
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21908
21896
  return new C({ name: s, level: o, properties: n });
21909
21897
  }
21910
21898
  static join(i) {
21911
- var r = i, { error: e } = r, t = fr(r, ["error"]);
21899
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21912
21900
  let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(h({}, t), { is_preview_called: !!t.is_preview_called }), e);
21913
21901
  return new C({ name: s, level: o, properties: n });
21914
21902
  }
@@ -21996,9 +21984,9 @@ var y = class {
21996
21984
  }
21997
21985
  };
21998
21986
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21999
- var br = class {
21987
+ var Rr = class {
22000
21988
  constructor() {
22001
- this.storage = new Se("hms-device-selection");
21989
+ this.storage = new Te("hms-device-selection");
22002
21990
  this.remember = false;
22003
21991
  this.TAG = "[HMSDeviceStorage]";
22004
21992
  }
@@ -22030,19 +22018,19 @@ var br = class {
22030
22018
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
22031
22019
  }
22032
22020
  };
22033
- var X = new br();
22034
- var Ar = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Ar || {});
22035
- var Ir = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ir || {});
22036
- var Rr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Rr || {});
22037
- var _s = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(_s || {});
22038
- var Ns = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ns || {});
22039
- var Os = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Os || {});
22040
- var xs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(xs || {});
22041
- var Us = ((e) => (e.CAPTION = "caption", e))(Us || {});
22042
- var Hr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Hr || {});
22043
- var Bs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Bs || {});
22044
- var Dr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Dr || {});
22045
- function li(a2, e = 300) {
22021
+ var Y = new Rr();
22022
+ var Hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Hr || {});
22023
+ var Cr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Cr || {});
22024
+ var Lr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Lr || {});
22025
+ var Us = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Us || {});
22026
+ var Bs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Bs || {});
22027
+ var Vs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Vs || {});
22028
+ var Fs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Fs || {});
22029
+ var Gs = ((e) => (e.CAPTION = "caption", e))(Gs || {});
22030
+ var Dr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Dr || {});
22031
+ var Ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ws || {});
22032
+ var Nr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Nr || {});
22033
+ function hi(a2, e = 300) {
22046
22034
  let t;
22047
22035
  return function(...i) {
22048
22036
  clearTimeout(t), t = void 0;
@@ -22052,7 +22040,7 @@ function li(a2, e = 300) {
22052
22040
  }, e);
22053
22041
  };
22054
22042
  }
22055
- var _r = class {
22043
+ var xr = class {
22056
22044
  constructor() {
22057
22045
  this.TAG = "[HMSIntersectionObserverWrapper]";
22058
22046
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -22075,12 +22063,12 @@ var _r = class {
22075
22063
  this.createObserver();
22076
22064
  }
22077
22065
  isSupported() {
22078
- let e = B && typeof window.IntersectionObserver != "undefined";
22066
+ let e = x && typeof window.IntersectionObserver != "undefined";
22079
22067
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
22080
22068
  }
22081
22069
  };
22082
- var qs = new _r();
22083
- var Nr = class {
22070
+ var zs = new xr();
22071
+ var Ur = class {
22084
22072
  constructor() {
22085
22073
  this.TAG = "[HMSResizeObserverWrapper]";
22086
22074
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -22093,7 +22081,7 @@ var Nr = class {
22093
22081
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
22094
22082
  };
22095
22083
  this.createObserver = () => {
22096
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(li(this.handleResize, 300)));
22084
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(hi(this.handleResize, 300)));
22097
22085
  };
22098
22086
  this.handleResize = (e) => {
22099
22087
  var t;
@@ -22103,47 +22091,47 @@ var Nr = class {
22103
22091
  this.createObserver();
22104
22092
  }
22105
22093
  isSupported() {
22106
- let e = B && typeof window.ResizeObserver != "undefined";
22094
+ let e = x && typeof window.ResizeObserver != "undefined";
22107
22095
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
22108
22096
  }
22109
22097
  };
22110
- var js = new Nr();
22111
- var Or = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Or || {});
22112
- var xr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(xr || {});
22113
- var zs = "https://event.100ms.live/v2/client/report";
22114
- var Ys = "https://event-nonprod.100ms.live/v2/client/report";
22115
- var At = Math.pow(2, 31) - 1;
22116
- var st = class {
22117
- };
22118
- st.makePeerId = () => xo();
22119
- var F = (a2) => a2.room;
22120
- var Bo = (a2) => a2.errors;
22121
- var mm = createSelector(Bo, (a2) => a2.length === 0 ? null : a2.at(-1));
22122
- var Sm = createSelector(F, (a2) => a2.id);
22123
- var z = (a2) => a2.peers;
22124
- var ki = (a2) => a2.messages.byID;
22125
- var oa = (a2) => a2.messages.allIDs;
22126
- var O = (a2) => a2.tracks;
22127
- var qr = (a2) => a2.appData;
22128
- var Vo = (a2) => a2.speakers;
22129
- var xe = createSelector([F], (a2) => a2 && a2.isConnected);
22130
- var fm = createSelector([xe, F], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
22131
- var Fo = (a2) => a2.hideLocalPeer;
22132
- var ve = createSelector([F, z, Fo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
22133
- var Go = createSelector(O, (a2) => Object.values(a2));
22134
- var re = createSelector(F, z, (a2, e) => e[a2.localPeer]);
22135
- var Pe = createSelector(F, (a2) => a2.localPeer);
22136
- var vm = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
22137
- var Mm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
22138
- var ce = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
22139
- var Z = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
22140
- var Wo = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
22141
- var ca = createSelector([ce, Z, Wo], (a2, e, t) => {
22098
+ var Ys = new Ur();
22099
+ var Br = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Br || {});
22100
+ var Vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Vr || {});
22101
+ var ea = "https://event.100ms.live/v2/client/report";
22102
+ var ta = "https://event-nonprod.100ms.live/v2/client/report";
22103
+ var Ht = Math.pow(2, 31) - 1;
22104
+ var ot = class {
22105
+ };
22106
+ ot.makePeerId = () => Fo();
22107
+ var V = (a2) => a2.room;
22108
+ var Wo = (a2) => a2.errors;
22109
+ var fm = createSelector(Wo, (a2) => a2.length === 0 ? null : a2.at(-1));
22110
+ var vm = createSelector(V, (a2) => a2.id);
22111
+ var Q = (a2) => a2.peers;
22112
+ var bi = (a2) => a2.messages.byID;
22113
+ var la = (a2) => a2.messages.allIDs;
22114
+ var N = (a2) => a2.tracks;
22115
+ var Qr = (a2) => a2.appData;
22116
+ var $o = (a2) => a2.speakers;
22117
+ var Be = createSelector([V], (a2) => a2 && a2.isConnected);
22118
+ var km = createSelector([Be, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
22119
+ var Ko = (a2) => a2.hideLocalPeer;
22120
+ var ye = createSelector([V, Q, Ko], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
22121
+ var qo = createSelector(N, (a2) => Object.values(a2));
22122
+ var re = createSelector(V, Q, (a2, e) => e[a2.localPeer]);
22123
+ var Ae = createSelector(V, (a2) => a2.localPeer);
22124
+ var Em = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
22125
+ var Pm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
22126
+ var de = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
22127
+ var X = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
22128
+ var jo = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
22129
+ var pa = createSelector([de, X, jo], (a2, e, t) => {
22142
22130
  let i = t ? [...t] : [];
22143
22131
  return a2 && i.unshift(a2), e && i.unshift(e), i;
22144
22132
  });
22145
- var ym = createSelector(ve, (a2) => a2.filter((e) => !e.isLocal));
22146
- var km = createSelector(z, Vo, (a2, e) => {
22133
+ var bm = createSelector(ye, (a2) => a2.filter((e) => !e.isLocal));
22134
+ var Am = createSelector(Q, $o, (a2, e) => {
22147
22135
  let t = Object.entries(e).sort((i, r) => {
22148
22136
  var n, d;
22149
22137
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -22156,112 +22144,112 @@ var km = createSelector(z, Vo, (a2, e) => {
22156
22144
  }
22157
22145
  return null;
22158
22146
  });
22159
- var Jr = createSelector(re, O, (a2, e) => {
22160
- let { video: t, audio: i } = Be(e, a2);
22147
+ var Yr = createSelector(re, N, (a2, e) => {
22148
+ let { video: t, audio: i } = Fe(e, a2);
22161
22149
  return !!(t || i);
22162
22150
  });
22163
- var $o = createSelector(z, O, (a2, e) => {
22151
+ var Jo = createSelector(Q, N, (a2, e) => {
22164
22152
  let t;
22165
22153
  for (let i in a2) {
22166
- let r = a2[i], { video: s, audio: o } = Be(e, r);
22154
+ let r = a2[i], { video: s, audio: o } = Fe(e, r);
22167
22155
  if (s)
22168
22156
  return r;
22169
22157
  o && !t && (t = r);
22170
22158
  }
22171
22159
  return t;
22172
22160
  });
22173
- var Pm = createSelector($o, (a2) => !!a2);
22174
- var bm = createSelector(z, O, (a2, e) => {
22161
+ var Rm = createSelector(Jo, (a2) => !!a2);
22162
+ var Hm = createSelector(Q, N, (a2, e) => {
22175
22163
  for (let t in a2) {
22176
- let i = a2[t], { audio: r, video: s } = Be(e, i);
22164
+ let i = a2[t], { audio: r, video: s } = Fe(e, i);
22177
22165
  if (!s && r)
22178
22166
  return i;
22179
22167
  }
22180
22168
  });
22181
- var Am = createSelector(z, O, (a2, e) => {
22169
+ var Cm = createSelector(Q, N, (a2, e) => {
22182
22170
  let t = [], i = [];
22183
22171
  for (let r in a2) {
22184
- let s = a2[r], { video: o, audio: n } = Be(e, s);
22172
+ let s = a2[r], { video: o, audio: n } = Fe(e, s);
22185
22173
  o ? t.push(s) : n && i.push(s);
22186
22174
  }
22187
22175
  return t.concat(i);
22188
22176
  });
22189
- var Im = createSelector(z, O, (a2, e) => {
22177
+ var Lm = createSelector(Q, N, (a2, e) => {
22190
22178
  for (let t in e) {
22191
22179
  let i = e[t];
22192
- if (St(i) && mt(i) && i.peerId)
22180
+ if (ft(i) && Tt(i) && i.peerId)
22193
22181
  return a2[i.peerId];
22194
22182
  }
22195
22183
  });
22196
- var Rm = createSelector(z, O, (a2, e) => {
22184
+ var Dm = createSelector(Q, N, (a2, e) => {
22197
22185
  for (let t in e) {
22198
22186
  let i = e[t];
22199
- if (oi(i) && i.peerId)
22187
+ if (di(i) && i.peerId)
22200
22188
  return a2[i.peerId];
22201
22189
  }
22202
22190
  });
22203
- var Hm = createSelector(Go, (a2) => a2.filter(Ss));
22204
- var Cm = createSelector(oa, (a2) => a2.length);
22205
- var Lm = createSelector(ki, (a2) => Object.values(a2).filter((e) => !e.read).length);
22206
- var Ct = createSelector(oa, ki, (a2, e) => {
22191
+ var wm = createSelector(qo, (a2) => a2.filter(vs));
22192
+ var _m = createSelector(la, (a2) => a2.length);
22193
+ var Nm = createSelector(bi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22194
+ var wt = createSelector(la, bi, (a2, e) => {
22207
22195
  let t = [];
22208
22196
  return a2.forEach((i) => {
22209
22197
  t.push(e[i]);
22210
22198
  }), t;
22211
22199
  });
22212
- var Ko = createSelector(Ct, (a2) => a2.filter((e) => {
22200
+ var Qo = createSelector(wt, (a2) => a2.filter((e) => {
22213
22201
  var t;
22214
22202
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
22215
22203
  }));
22216
- var Dm = createSelector(Ko, (a2) => a2.filter((e) => !e.read).length);
22217
- var se = createSelector([F], (a2) => a2 && a2.roomState);
22218
- var la = createSelector(se, (a2) => a2 === "Preview");
22219
- var wm = createSelector(F, (a2) => a2.roomState !== "Disconnected");
22220
- var _m = createSelector(F, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22221
- var Me = (a2) => a2.roles;
22222
- var Nm = createSelector([Me], (a2) => Object.keys(a2));
22223
- var ot = createSelector([re, Me], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22224
- var qo = (a2) => {
22204
+ var Om = createSelector(Qo, (a2) => a2.filter((e) => !e.read).length);
22205
+ var se = createSelector([V], (a2) => a2 && a2.roomState);
22206
+ var ma = createSelector(se, (a2) => a2 === "Preview");
22207
+ var xm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
22208
+ var Um = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22209
+ var ke = (a2) => a2.roles;
22210
+ var Bm = createSelector([ke], (a2) => Object.keys(a2));
22211
+ var ct = createSelector([re, ke], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22212
+ var zo = (a2) => {
22225
22213
  var e;
22226
22214
  return (e = a2.preview) == null ? void 0 : e.asRole;
22227
22215
  };
22228
- var ua = createSelector([qo, Me], (a2, e) => a2 ? e[a2] : null);
22229
- var Om = createSelector([ot], (a2) => {
22216
+ var Sa = createSelector([zo, ke], (a2, e) => a2 ? e[a2] : null);
22217
+ var Vm = createSelector([ct], (a2) => {
22230
22218
  var e;
22231
22219
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
22232
22220
  });
22233
- var pa = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
22234
- var xm = createSelector(F, (a2) => a2.recording);
22235
- var Um = createSelector(F, (a2) => a2.rtmp);
22236
- var Bm = createSelector(F, (a2) => a2.hls);
22237
- var Vm = createSelector(F, (a2) => a2.transcriptions);
22238
- var Fm = createSelector(F, (a2) => a2.sessionId);
22239
- var Gm = createSelector(F, (a2) => a2.startedAt);
22240
- var Wm = createSelector(F, (a2) => !!a2.isLargeRoom);
22241
- var $m = createSelector(F, (a2) => !!a2.isEffectsEnabled);
22242
- var Km = createSelector(F, (a2) => !!a2.isVBEnabled);
22243
- var qm = createSelector(F, (a2) => a2.effectsKey);
22244
- var ha = (a2) => a2.polls;
22245
- var zm = createSelector(ve, (a2) => a2.filter((e) => e.isHandRaised));
22246
- var jo = (a2) => a2.whiteboards;
22247
- var Ym = createSelector(jo, (a2) => Object.values(a2)[0]);
22248
- var Sa = (a2 = "audio") => (e) => e.playlist[a2].list;
22249
- var Qr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22250
- var ga = (a2 = "audio") => (e) => e.playlist[a2].progress;
22251
- var Ta = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22252
- var fa = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22253
- var va = (a2 = "audio") => (e) => e.playlist[a2].volume;
22254
- var Ma = (a2 = "audio") => createSelector(Sa(a2), (e) => Object.values(e));
22255
- var ya = (a2 = "audio") => createSelector(Sa(a2), Qr(a2), (e, t) => {
22221
+ var ga = createSelector(ct, (a2) => a2 == null ? void 0 : a2.permissions);
22222
+ var Fm = createSelector(V, (a2) => a2.recording);
22223
+ var Gm = createSelector(V, (a2) => a2.rtmp);
22224
+ var Wm = createSelector(V, (a2) => a2.hls);
22225
+ var $m = createSelector(V, (a2) => a2.transcriptions);
22226
+ var Km = createSelector(V, (a2) => a2.sessionId);
22227
+ var qm = createSelector(V, (a2) => a2.startedAt);
22228
+ var jm = createSelector(V, (a2) => !!a2.isLargeRoom);
22229
+ var Jm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
22230
+ var Qm = createSelector(V, (a2) => !!a2.isVBEnabled);
22231
+ var zm = createSelector(V, (a2) => a2.effectsKey);
22232
+ var Ta = (a2) => a2.polls;
22233
+ var eS = createSelector(ye, (a2) => a2.filter((e) => e.isHandRaised));
22234
+ var Yo = (a2) => a2.whiteboards;
22235
+ var tS = createSelector(Yo, (a2) => Object.values(a2)[0]);
22236
+ var va = (a2 = "audio") => (e) => e.playlist[a2].list;
22237
+ var Xr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22238
+ var Ma = (a2 = "audio") => (e) => e.playlist[a2].progress;
22239
+ var ya = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22240
+ var ka = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22241
+ var Ea = (a2 = "audio") => (e) => e.playlist[a2].volume;
22242
+ var Pa = (a2 = "audio") => createSelector(va(a2), (e) => Object.values(e));
22243
+ var ba = (a2 = "audio") => createSelector(va(a2), Xr(a2), (e, t) => {
22256
22244
  if (t.id)
22257
22245
  return e[t.id];
22258
22246
  });
22259
- var ka = { selection: Qr("audio"), progress: ga("audio"), currentTime: Ta("audio"), playbackRate: fa("audio"), volume: va("audio"), list: Ma("audio"), selectedItem: ya("audio") };
22260
- var Ea = { selection: Qr("video"), progress: ga("video"), currentTime: Ta("video"), playbackRate: fa("video"), volume: va("video"), list: Ma("video"), selectedItem: ya("video") };
22247
+ var Aa = { selection: Xr("audio"), progress: Ma("audio"), currentTime: ya("audio"), playbackRate: ka("audio"), volume: Ea("audio"), list: Pa("audio"), selectedItem: ba("audio") };
22248
+ var Ia = { selection: Xr("video"), progress: Ma("video"), currentTime: ya("video"), playbackRate: ka("video"), volume: Ea("video"), list: Pa("video"), selectedItem: ba("video") };
22261
22249
  function H(a2) {
22262
22250
  return (e) => (t) => a2(t, e);
22263
22251
  }
22264
- var Lt = "HMS-Store:";
22252
+ var _t = "HMS-Store:";
22265
22253
  var b = class {
22266
22254
  static v(e, ...t) {
22267
22255
  this.log(0, e, ...t);
@@ -22291,23 +22279,23 @@ var b = class {
22291
22279
  if (!(this.level.valueOf() > e.valueOf()))
22292
22280
  switch (e) {
22293
22281
  case 0: {
22294
- console.log(Lt, ...t);
22282
+ console.log(_t, ...t);
22295
22283
  break;
22296
22284
  }
22297
22285
  case 1: {
22298
- console.debug(Lt, ...t);
22286
+ console.debug(_t, ...t);
22299
22287
  break;
22300
22288
  }
22301
22289
  case 2: {
22302
- console.info(Lt, ...t);
22290
+ console.info(_t, ...t);
22303
22291
  break;
22304
22292
  }
22305
22293
  case 3: {
22306
- console.warn(Lt, ...t);
22294
+ console.warn(_t, ...t);
22307
22295
  break;
22308
22296
  }
22309
22297
  case 6: {
22310
- console.error(Lt, ...t);
22298
+ console.error(_t, ...t);
22311
22299
  break;
22312
22300
  }
22313
22301
  case 4: {
@@ -22328,133 +22316,133 @@ var b = class {
22328
22316
  }
22329
22317
  };
22330
22318
  b.level = 0;
22331
- var zr = (a2, e) => e;
22332
- var Dt = (a2, e) => e;
22333
- var Pa = (a2, e) => e;
22334
- var Jo = (a2, e) => e;
22335
- var Qo = (a2, e) => e;
22336
- var Y = createSelector([z, zr], (a2, e) => e ? a2[e] : null);
22337
- var Yr = createSelector([O, Dt], (a2, e) => e ? a2[e] : null);
22338
- var zo = createSelector([O, Dt], (a2, e) => {
22319
+ var Zr = (a2, e) => e;
22320
+ var Nt = (a2, e) => e;
22321
+ var Ra = (a2, e) => e;
22322
+ var Xo = (a2, e) => e;
22323
+ var Zo = (a2, e) => e;
22324
+ var z = createSelector([Q, Zr], (a2, e) => e ? a2[e] : null);
22325
+ var es = createSelector([N, Nt], (a2, e) => e ? a2[e] : null);
22326
+ var en = createSelector([N, Nt], (a2, e) => {
22339
22327
  if (!e)
22340
22328
  return null;
22341
22329
  let t = a2[e];
22342
22330
  return (t == null ? void 0 : t.type) === "video" ? t : null;
22343
22331
  });
22344
- var Yo = createSelector([O, Dt], (a2, e) => {
22332
+ var tn = createSelector([N, Nt], (a2, e) => {
22345
22333
  if (!e)
22346
22334
  return null;
22347
22335
  let t = a2[e];
22348
22336
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
22349
22337
  });
22350
- var Xo = createSelector([O, Dt], (a2, e) => {
22338
+ var rn = createSelector([N, Nt], (a2, e) => {
22351
22339
  if (!e)
22352
22340
  return null;
22353
22341
  let t = a2[e];
22354
22342
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22355
22343
  });
22356
- var Zo = createSelector([O, Dt], (a2, e) => {
22344
+ var sn = createSelector([N, Nt], (a2, e) => {
22357
22345
  if (!e)
22358
22346
  return null;
22359
22347
  let t = a2[e];
22360
22348
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22361
22349
  });
22362
- var en = createSelector([ha, Qo], (a2, e) => e ? a2[e] : null);
22363
- var ee = H(Y);
22364
- var cS = H(createSelector([qr, Jo], (a2, e) => {
22350
+ var an = createSelector([Ta, Zo], (a2, e) => e ? a2[e] : null);
22351
+ var Z = H(z);
22352
+ var pS = H(createSelector([Qr, Xo], (a2, e) => {
22365
22353
  if (a2)
22366
22354
  return e ? a2[e] : a2;
22367
22355
  }));
22368
- function dS(a2) {
22356
+ function hS(a2) {
22369
22357
  return (e) => {
22370
22358
  if (e.sessionStore)
22371
22359
  return a2 ? e.sessionStore[a2] : e.sessionStore;
22372
22360
  };
22373
22361
  }
22374
- var uS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.name));
22375
- var pS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.type));
22376
- var Ei = H(Yr);
22377
- var ba = H(zo);
22378
- var hS = H(Yo);
22379
- var mS = H(Xo);
22380
- var SS = H(Zo);
22381
- var tn = H((a2, e) => {
22382
- let t = Y(a2, e);
22362
+ var SS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.name));
22363
+ var gS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.type));
22364
+ var Ai = H(es);
22365
+ var Ha = H(en);
22366
+ var TS = H(tn);
22367
+ var fS = H(rn);
22368
+ var vS = H(sn);
22369
+ var on = H((a2, e) => {
22370
+ let t = z(a2, e);
22383
22371
  if (t && t.videoTrack && t.videoTrack !== "")
22384
22372
  return a2.tracks[t.videoTrack];
22385
22373
  });
22386
- var rn = H((a2, e) => {
22387
- let t = Y(a2, e);
22374
+ var nn = H((a2, e) => {
22375
+ let t = z(a2, e);
22388
22376
  if (t && t.audioTrack && t.audioTrack !== "")
22389
22377
  return a2.tracks[t.audioTrack];
22390
22378
  });
22391
- var TS = H((a2, e) => {
22392
- let t = Y(a2, e);
22379
+ var yS = H((a2, e) => {
22380
+ let t = z(a2, e);
22393
22381
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22394
22382
  });
22395
- var Aa = (a2, e) => e ? a2.speakers[e] : null;
22396
- var fS = H(createSelector(Aa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22397
- var sn = (a2, e) => {
22398
- let t = rn(e)(a2);
22399
- return Aa(a2, t == null ? void 0 : t.id);
22400
- };
22401
- var vS = H(createSelector(sn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22402
- var MS = H((a2, e) => {
22383
+ var Ca = (a2, e) => e ? a2.speakers[e] : null;
22384
+ var kS = H(createSelector(Ca, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22385
+ var cn = (a2, e) => {
22386
+ let t = nn(e)(a2);
22387
+ return Ca(a2, t == null ? void 0 : t.id);
22388
+ };
22389
+ var ES = H(createSelector(cn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22390
+ var PS = H((a2, e) => {
22403
22391
  if (e)
22404
22392
  return a2.connectionQualities[e];
22405
22393
  });
22406
- var yS = H((a2, e) => {
22407
- let t = Y(a2, e);
22394
+ var bS = H((a2, e) => {
22395
+ let t = z(a2, e);
22408
22396
  if (t) {
22409
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
22397
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => gt(a2.tracks[r]));
22410
22398
  return i ? a2.tracks[i] : void 0;
22411
22399
  }
22412
22400
  });
22413
- var kS = H(createSelector(O, Y, (a2, e) => {
22401
+ var AS = H(createSelector(N, z, (a2, e) => {
22414
22402
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22415
22403
  let r = a2[i];
22416
- return St(r) && mt(r);
22404
+ return ft(r) && Tt(r);
22417
22405
  });
22418
22406
  return t ? a2[t] : void 0;
22419
22407
  }));
22420
- var ES = H(createSelector(O, Y, (a2, e) => {
22408
+ var IS = H(createSelector(N, z, (a2, e) => {
22421
22409
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22422
22410
  let r = a2[i];
22423
- return St(r) && ht(r);
22411
+ return ft(r) && gt(r);
22424
22412
  });
22425
22413
  return t ? a2[t] : void 0;
22426
22414
  }));
22427
- var PS = H(createSelector(O, Y, (a2, e) => {
22415
+ var RS = H(createSelector(N, z, (a2, e) => {
22428
22416
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22429
22417
  let r = a2[i];
22430
- return oi(r) && ht(r);
22418
+ return di(r) && gt(r);
22431
22419
  });
22432
22420
  return t ? a2[t] : void 0;
22433
22421
  }));
22434
- var Ia = H(createSelector(O, Y, (a2, e) => Be(a2, e)));
22435
- var Ra = (a2) => createSelector(Ia(a2), (e) => e.audio);
22436
- var AS = H((a2, e) => {
22437
- let t = Y(a2, e);
22438
- return Je(a2, t == null ? void 0 : t.audioTrack);
22422
+ var La = H(createSelector(N, z, (a2, e) => Fe(a2, e)));
22423
+ var Da = (a2) => createSelector(La(a2), (e) => e.audio);
22424
+ var CS = H((a2, e) => {
22425
+ let t = z(a2, e);
22426
+ return ze(a2, t == null ? void 0 : t.audioTrack);
22439
22427
  });
22440
- var IS = H((a2, e) => {
22441
- let t = Y(a2, e);
22442
- return Je(a2, t == null ? void 0 : t.videoTrack);
22428
+ var LS = H((a2, e) => {
22429
+ let t = z(a2, e);
22430
+ return ze(a2, t == null ? void 0 : t.videoTrack);
22443
22431
  });
22444
- var Ha = H((a2, e) => {
22432
+ var wa = H((a2, e) => {
22445
22433
  if (e && a2.tracks[e])
22446
22434
  return a2.tracks[e].volume === 0;
22447
22435
  });
22448
- var RS = H((a2, e) => {
22449
- let t = Y(a2, e);
22450
- return Ha(t == null ? void 0 : t.audioTrack)(a2);
22436
+ var DS = H((a2, e) => {
22437
+ let t = z(a2, e);
22438
+ return wa(t == null ? void 0 : t.audioTrack)(a2);
22451
22439
  });
22452
- var HS = H((a2, e) => {
22453
- let t = Ra(e)(a2);
22454
- return Ha(t == null ? void 0 : t.id)(a2);
22440
+ var wS = H((a2, e) => {
22441
+ let t = Da(e)(a2);
22442
+ return wa(t == null ? void 0 : t.id)(a2);
22455
22443
  });
22456
- var Ca = H((a2, e) => {
22457
- let t = Yr(a2, e);
22444
+ var _a7 = H((a2, e) => {
22445
+ let t = es(a2, e);
22458
22446
  if (t) {
22459
22447
  if (t.type !== "audio") {
22460
22448
  b.w("Please pass audio track here");
@@ -22463,16 +22451,16 @@ var Ca = H((a2, e) => {
22463
22451
  return t.volume;
22464
22452
  }
22465
22453
  });
22466
- var CS = H((a2, e) => {
22467
- let t = Y(a2, e);
22468
- return Ca(t == null ? void 0 : t.audioTrack)(a2);
22454
+ var _S = H((a2, e) => {
22455
+ let t = z(a2, e);
22456
+ return _a7(t == null ? void 0 : t.audioTrack)(a2);
22469
22457
  });
22470
- var LS = H((a2, e) => {
22471
- let t = Ra(e)(a2);
22472
- return Ca(t == null ? void 0 : t.id)(a2);
22458
+ var NS = H((a2, e) => {
22459
+ let t = Da(e)(a2);
22460
+ return _a7(t == null ? void 0 : t.id)(a2);
22473
22461
  });
22474
- var DS = H((a2, e) => {
22475
- let t = Yr(a2, e);
22462
+ var OS = H((a2, e) => {
22463
+ let t = es(a2, e);
22476
22464
  if (t) {
22477
22465
  if (t.type !== "video") {
22478
22466
  b.w("Please pass video track here");
@@ -22481,53 +22469,53 @@ var DS = H((a2, e) => {
22481
22469
  return t.layer;
22482
22470
  }
22483
22471
  });
22484
- var La = createSelector([Ct, Pe, zr], (a2, e, t) => {
22472
+ var Na = createSelector([wt, Ae, Zr], (a2, e, t) => {
22485
22473
  if (t)
22486
22474
  return a2.filter((i) => {
22487
22475
  var r;
22488
22476
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22489
22477
  });
22490
22478
  });
22491
- var Da = createSelector([Ct, Pa], (a2, e) => {
22479
+ var Oa = createSelector([wt, Ra], (a2, e) => {
22492
22480
  if (e)
22493
22481
  return a2.filter((t) => {
22494
22482
  var i, r;
22495
22483
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22496
22484
  });
22497
22485
  });
22498
- var an = createSelector(Ct, (a2) => a2.filter((e) => {
22486
+ var dn = createSelector(wt, (a2) => a2.filter((e) => {
22499
22487
  var t;
22500
22488
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22501
22489
  }));
22502
- var on = createSelector([Da, Pa], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22503
- var nn = createSelector([La, zr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22504
- var wS = createSelector(an, (a2) => a2.filter((e) => !e.read).length);
22505
- var _S = H(La);
22506
- var NS = H(Da);
22507
- var OS = H(on);
22508
- var xS = H(nn);
22509
- var wa = H(en);
22510
- var QS = createSelector([z, O], (a2, e) => Object.values(a2).map((i) => {
22490
+ var ln = createSelector([Oa, Ra], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22491
+ var un = createSelector([Na, Zr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22492
+ var xS = createSelector(dn, (a2) => a2.filter((e) => !e.read).length);
22493
+ var US = H(Na);
22494
+ var BS = H(Oa);
22495
+ var VS = H(ln);
22496
+ var FS = H(un);
22497
+ var xa = H(an);
22498
+ var ZS = createSelector([Q, N], (a2, e) => Object.values(a2).map((i) => {
22511
22499
  var r;
22512
22500
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22513
22501
  }));
22514
- var cn = (a2) => a2.roleChangeRequests[0] || null;
22515
- var zS = createSelector([cn, z, Me], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22516
- var YS = createSelector([ot], (a2) => gt(a2));
22517
- var XS = createSelector([ua], (a2) => gt(a2));
22518
- var ln = createSelector([Z, O], (a2, e) => {
22502
+ var pn = (a2) => a2.roleChangeRequests[0] || null;
22503
+ var eg = createSelector([pn, Q, ke], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22504
+ var tg = createSelector([ct], (a2) => vt(a2));
22505
+ var ig = createSelector([Sa], (a2) => vt(a2));
22506
+ var mn = createSelector([X, N], (a2, e) => {
22519
22507
  let t = null;
22520
22508
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22521
22509
  });
22522
- var un = createSelector([ce, O], (a2, e) => {
22510
+ var Sn = createSelector([de, N], (a2, e) => {
22523
22511
  let t = null;
22524
22512
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22525
22513
  });
22526
- var mn = ((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))(mn || {});
22527
- var is = class {
22514
+ var fn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(fn || {});
22515
+ var as = class {
22528
22516
  constructor() {
22529
22517
  this.TAG = "[HTTPAnalyticsTransport]";
22530
- this.failedEvents = new Se("client-events");
22518
+ this.failedEvents = new Te("client-events");
22531
22519
  this.isConnected = true;
22532
22520
  this.env = null;
22533
22521
  this.websocketURL = "";
@@ -22543,7 +22531,7 @@ var is = class {
22543
22531
  this.addEventToStorage(e);
22544
22532
  return;
22545
22533
  }
22546
- let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? zs : Ys;
22534
+ let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? ea : ta;
22547
22535
  fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
22548
22536
  if (r.status === 401) {
22549
22537
  this.removeFromStorage(e);
@@ -22569,8 +22557,8 @@ var is = class {
22569
22557
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22570
22558
  }
22571
22559
  };
22572
- var Ae = new is();
22573
- var Gt = class {
22560
+ var Re = new as();
22561
+ var Kt = class {
22574
22562
  static handleError(e) {
22575
22563
  if (e.status === 404)
22576
22564
  throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
@@ -22596,67 +22584,67 @@ var Gt = class {
22596
22584
  });
22597
22585
  }
22598
22586
  };
22599
- Gt.TAG = "[FeedbackService]";
22600
- var rs = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(rs || {});
22601
- var Q = ((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))(Q || {});
22602
- var or = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(or || {});
22603
- var ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
22604
- var _n = (a2) => a2.localPeer.id;
22605
- var Nn = (a2) => a2.localPeer.audioTrack;
22606
- var On = (a2) => a2.localPeer.videoTrack;
22607
- var xn = (a2, e) => e;
22608
- var io = (a2, e) => e;
22609
- var Un = (a2) => a2.remoteTrackStats;
22610
- var ro = (a2) => a2.peerStats;
22611
- var ns = (a2) => a2.localTrackStats;
22612
- var Re = createSelector([ro, _n], (a2, e) => a2[e]);
22613
- var Bn = createSelector(Re, (a2) => {
22587
+ Kt.TAG = "[FeedbackService]";
22588
+ var os = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(os || {});
22589
+ 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 || {});
22590
+ var dr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(dr || {});
22591
+ var ht = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ht || {});
22592
+ var Un = (a2) => a2.localPeer.id;
22593
+ var Bn = (a2) => a2.localPeer.audioTrack;
22594
+ var Vn = (a2) => a2.localPeer.videoTrack;
22595
+ var Fn = (a2, e) => e;
22596
+ var oo = (a2, e) => e;
22597
+ var Gn = (a2) => a2.remoteTrackStats;
22598
+ var no = (a2) => a2.peerStats;
22599
+ var ls = (a2) => a2.localTrackStats;
22600
+ var Ce = createSelector([no, Un], (a2, e) => a2[e]);
22601
+ var Wn = createSelector(Ce, (a2) => {
22614
22602
  var e;
22615
22603
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22616
22604
  });
22617
- var Vn = createSelector(Re, (a2) => {
22605
+ var $n = createSelector(Ce, (a2) => {
22618
22606
  var e;
22619
22607
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22620
22608
  });
22621
- var Fn = createSelector(Re, (a2) => {
22609
+ var Kn = createSelector(Ce, (a2) => {
22622
22610
  var e;
22623
22611
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22624
22612
  });
22625
- var Gn = createSelector(Re, (a2) => {
22613
+ var qn = createSelector(Ce, (a2) => {
22626
22614
  var e;
22627
22615
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22628
22616
  });
22629
- var Wn = createSelector(Re, (a2) => {
22617
+ var jn = createSelector(Ce, (a2) => {
22630
22618
  var e;
22631
22619
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22632
22620
  });
22633
- var $n = createSelector(Re, (a2) => {
22621
+ var Jn = createSelector(Ce, (a2) => {
22634
22622
  var e;
22635
22623
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22636
22624
  });
22637
- var Kn = createSelector(Re, (a2) => {
22625
+ var Qn = createSelector(Ce, (a2) => {
22638
22626
  var e;
22639
22627
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22640
22628
  });
22641
- var qn = createSelector(Re, (a2) => {
22629
+ var zn = createSelector(Ce, (a2) => {
22642
22630
  var e;
22643
22631
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22644
22632
  });
22645
- var jn = createSelector([ro, xn], (a2, e) => e ? a2[e] : void 0);
22646
- var Jn = createSelector([Un, io], (a2, e) => e ? a2[e] : void 0);
22647
- var cs = createSelector([ns, io], (a2, e) => e ? a2[e] : void 0);
22648
- var Qn = H(jn);
22649
- var zn = H(Jn);
22650
- var Yn = createSelector([ns, Nn], (a2, e) => {
22633
+ var Yn = createSelector([no, Fn], (a2, e) => e ? a2[e] : void 0);
22634
+ var Xn = createSelector([Gn, oo], (a2, e) => e ? a2[e] : void 0);
22635
+ var us = createSelector([ls, oo], (a2, e) => e ? a2[e] : void 0);
22636
+ var Zn = H(Yn);
22637
+ var ec = H(Xn);
22638
+ var tc = createSelector([ls, Bn], (a2, e) => {
22651
22639
  var t;
22652
22640
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22653
22641
  });
22654
- var Xn = H(createSelector(cs, (a2) => a2 == null ? void 0 : a2[0]));
22655
- var Zn = createSelector([ns, On], (a2, e) => {
22642
+ var ic = H(createSelector(us, (a2) => a2 == null ? void 0 : a2[0]));
22643
+ var rc = createSelector([ls, Vn], (a2, e) => {
22656
22644
  var t;
22657
22645
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22658
22646
  });
22659
- var ec = H(createSelector(cs, (a2) => a2));
22647
+ var sc = H(createSelector(us, (a2) => a2));
22660
22648
 
22661
22649
  // src/Prebuilt/components/Header/StreamActions.tsx
22662
22650
  import {
@@ -22692,7 +22680,7 @@ var getRecordingText = ({
22692
22680
  return title.join(delimiter);
22693
22681
  };
22694
22682
  var LiveStatus = () => {
22695
- var _a7;
22683
+ var _a8;
22696
22684
  const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
22697
22685
  const hlsState = useHMSStore29(selectHLSState4);
22698
22686
  const isMobile = useMedia12(config.media.md);
@@ -22701,8 +22689,8 @@ var LiveStatus = () => {
22701
22689
  const [liveTime, setLiveTime] = useState28(0);
22702
22690
  const startTimer = useCallback22(() => {
22703
22691
  intervalRef.current = setInterval(() => {
22704
- var _a8;
22705
- const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22692
+ var _a9;
22693
+ const timeStamp = (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22706
22694
  if ((hlsState == null ? void 0 : hlsState.running) && timeStamp) {
22707
22695
  setLiveTime(Date.now() - timeStamp.getTime());
22708
22696
  }
@@ -22736,7 +22724,7 @@ var LiveStatus = () => {
22736
22724
  }
22737
22725
  },
22738
22726
  /* @__PURE__ */ React64.createElement(Box, { css: { w: "$4", h: "$4", r: "$round", bg: "$alert_error_default", mr: "$2" } }),
22739
- /* @__PURE__ */ React64.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ React64.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ React64.createElement(Text, { variant: "caption" }, ((_a7 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a7.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22727
+ /* @__PURE__ */ React64.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ React64.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ React64.createElement(Text, { variant: "caption" }, ((_a8 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a8.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22740
22728
  );
22741
22729
  };
22742
22730
  var RecordingStatus = () => {
@@ -22775,7 +22763,7 @@ var RecordingStatus = () => {
22775
22763
  };
22776
22764
  var RecordingPauseStatus = () => {
22777
22765
  const recording = useHMSStore29(selectRecordingState2);
22778
- if (recording.hls && recording.hls.state === _s.PAUSED) {
22766
+ if (recording.hls && recording.hls.state === Us.PAUSED) {
22779
22767
  return /* @__PURE__ */ React64.createElement(
22780
22768
  Tooltip,
22781
22769
  {
@@ -22894,8 +22882,8 @@ var ChangeNameContent = ({
22894
22882
  useEffect23(() => {
22895
22883
  if (isMobile) {
22896
22884
  setTimeout(() => {
22897
- var _a7;
22898
- (_a7 = inputRef.current) == null ? void 0 : _a7.focus();
22885
+ var _a8;
22886
+ (_a8 = inputRef.current) == null ? void 0 : _a8.focus();
22899
22887
  }, 200);
22900
22888
  }
22901
22889
  }, [isMobile]);
@@ -23064,7 +23052,7 @@ init_define_process_env();
23064
23052
  import { useEffect as useEffect24, useState as useState30 } from "react";
23065
23053
  import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
23066
23054
  var useUnreadPollQuizPresent = () => {
23067
- const localPeerID = useHMSStore32(Pe);
23055
+ const localPeerID = useHMSStore32(Ae);
23068
23056
  const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
23069
23057
  const [unreadPollQuiz, setUnreadPollQuiz] = useState30(false);
23070
23058
  useEffect24(() => {
@@ -23900,9 +23888,9 @@ var VBToggle = () => {
23900
23888
  const hmsActions = useHMSActions29();
23901
23889
  const { toggleVideo } = useAVToggle3();
23902
23890
  useEffect25(() => {
23903
- var _a7;
23891
+ var _a8;
23904
23892
  if (!toggleVideo) {
23905
- (_a7 = VBHandler) == null ? void 0 : _a7.reset();
23893
+ (_a8 = VBHandler) == null ? void 0 : _a8.reset();
23906
23894
  hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes3.NONE);
23907
23895
  }
23908
23896
  }, [hmsActions, toggleVideo]);
@@ -24041,8 +24029,8 @@ var ConnectionIndicator = ({
24041
24029
  isTile = false,
24042
24030
  hideBg = false
24043
24031
  }) => {
24044
- var _a7;
24045
- const downlinkQuality = (_a7 = useHMSStore37(selectConnectionQualityByPeerID2(peerId))) == null ? void 0 : _a7.downlinkQuality;
24032
+ var _a8;
24033
+ const downlinkQuality = (_a8 = useHMSStore37(selectConnectionQualityByPeerID2(peerId))) == null ? void 0 : _a8.downlinkQuality;
24046
24034
  const peerType = useHMSStore37(selectPeerTypeByID(peerId));
24047
24035
  const { theme: theme2 } = useTheme();
24048
24036
  const defaultColor = theme2.colors.on_surface_low;
@@ -24107,8 +24095,8 @@ import React80 from "react";
24107
24095
  import { selectLocalPeerID as selectLocalPeerID7, selectPermissions as selectPermissions10, useHMSActions as useHMSActions30, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
24108
24096
  import { PeopleRemoveIcon as PeopleRemoveIcon3 } from "@100mslive/react-icons";
24109
24097
  var RemoveParticipant = ({ peerId }) => {
24110
- var _a7;
24111
- const canRemoveOthers = (_a7 = useHMSStore38(selectPermissions10)) == null ? void 0 : _a7.removeOthers;
24098
+ var _a8;
24099
+ const canRemoveOthers = (_a8 = useHMSStore38(selectPermissions10)) == null ? void 0 : _a8.removeOthers;
24112
24100
  const localPeerId = useHMSStore38(selectLocalPeerID7);
24113
24101
  const actions = useHMSActions30();
24114
24102
  if (peerId === localPeerId || !canRemoveOthers) {
@@ -24219,11 +24207,11 @@ var RoleOptions = ({ roleName, peerList }) => {
24219
24207
  let isVideoOnForSomePeers = false;
24220
24208
  let isAudioOnForSomePeers = false;
24221
24209
  peerList.forEach((peer) => {
24222
- var _a7, _b7;
24210
+ var _a8, _b7;
24223
24211
  if (peer.isLocal) {
24224
24212
  return;
24225
24213
  }
24226
- const isAudioOn = !!peer.audioTrack && ((_a7 = tracks[peer.audioTrack]) == null ? void 0 : _a7.enabled);
24214
+ const isAudioOn = !!peer.audioTrack && ((_a8 = tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
24227
24215
  const isVideoOn = !!peer.videoTrack && ((_b7 = tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
24228
24216
  isAudioOnForSomePeers = isAudioOnForSomePeers || isAudioOn;
24229
24217
  isVideoOnForSomePeers = isVideoOnForSomePeers || isVideoOn;
@@ -24289,7 +24277,7 @@ init_define_process_env();
24289
24277
  import { match as match8, P as P5 } from "ts-pattern";
24290
24278
  import { selectPermissions as selectPermissions12, useHMSActions as useHMSActions32, useHMSStore as useHMSStore40 } from "@100mslive/react-sdk";
24291
24279
  var useGroupOnStageActions = ({ peers }) => {
24292
- var _a7;
24280
+ var _a8;
24293
24281
  const hmsActions = useHMSActions32();
24294
24282
  const { elements } = useRoomLayoutConferencingScreen();
24295
24283
  const {
@@ -24299,7 +24287,7 @@ var useGroupOnStageActions = ({ peers }) => {
24299
24287
  off_stage_roles = [],
24300
24288
  skip_preview_for_role_change = false
24301
24289
  } = elements.on_stage_exp || {};
24302
- const canChangeRole = (_a7 = useHMSStore40(selectPermissions12)) == null ? void 0 : _a7.changeRole;
24290
+ const canChangeRole = (_a8 = useHMSStore40(selectPermissions12)) == null ? void 0 : _a8.changeRole;
24303
24291
  const offStageRolePeers = peers.filter(
24304
24292
  (peer) => match8({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
24305
24293
  {
@@ -24338,8 +24326,8 @@ var useGroupOnStageActions = ({ peers }) => {
24338
24326
  var ROW_HEIGHT = 50;
24339
24327
  var ITER_TIMER = 5e3;
24340
24328
  function itemKey(index, data3) {
24341
- var _a7;
24342
- return (_a7 = data3.peerList[index]) == null ? void 0 : _a7.id;
24329
+ var _a8;
24330
+ return (_a8 = data3.peerList[index]) == null ? void 0 : _a8.id;
24343
24331
  }
24344
24332
  var VirtualizedParticipantItem = React82.memo(
24345
24333
  ({ index, data: data3, style }) => {
@@ -24484,7 +24472,7 @@ init_define_process_env();
24484
24472
  import { useState as useState35 } from "react";
24485
24473
  import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions13, useHMSActions as useHMSActions33, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
24486
24474
  var usePeerOnStageActions = ({ peerId, role }) => {
24487
- var _a7, _b7;
24475
+ var _a8, _b7;
24488
24476
  const hmsActions = useHMSActions33();
24489
24477
  const { elements } = useRoomLayoutConferencingScreen();
24490
24478
  const {
@@ -24495,7 +24483,7 @@ var usePeerOnStageActions = ({ peerId, role }) => {
24495
24483
  skip_preview_for_role_change = false
24496
24484
  } = elements.on_stage_exp || {};
24497
24485
  const isInStage = role === on_stage_role;
24498
- const canChangeRole = (_a7 = useHMSStore43(selectPermissions13)) == null ? void 0 : _a7.changeRole;
24486
+ const canChangeRole = (_a8 = useHMSStore43(selectPermissions13)) == null ? void 0 : _a8.changeRole;
24499
24487
  const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
24500
24488
  const prevRole = (_b7 = useHMSStore43(selectPeerMetadata3(peerId))) == null ? void 0 : _b7.prevRole;
24501
24489
  const [open, setOpen] = useState35(false);
@@ -24726,9 +24714,9 @@ var ParticipantActions = React83.memo(
24726
24714
  role,
24727
24715
  isHandRaisedAccordion
24728
24716
  }) => {
24729
- var _a7, _b7;
24717
+ var _a8, _b7;
24730
24718
  const isHandRaised = useHMSStore44(selectHasPeerHandRaised2(peerId));
24731
- const canChangeRole = (_a7 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a7.changeRole;
24719
+ const canChangeRole = (_a8 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a8.changeRole;
24732
24720
  const canRemoveOthers = (_b7 = useHMSStore44(selectPermissions14)) == null ? void 0 : _b7.removeOthers;
24733
24721
  const { elements } = useRoomLayoutConferencingScreen();
24734
24722
  const { on_stage_exp } = elements || {};
@@ -24783,7 +24771,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
24783
24771
  return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ React83.createElement(CrossIcon15, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ React83.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ React83.createElement(AddIcon2, { height: 18, width: 18 })));
24784
24772
  };
24785
24773
  var ParticipantMoreActions = ({ peerId, role }) => {
24786
- var _a7;
24774
+ var _a8;
24787
24775
  const {
24788
24776
  open,
24789
24777
  setOpen,
@@ -24793,7 +24781,7 @@ var ParticipantMoreActions = ({ peerId, role }) => {
24793
24781
  isInStage,
24794
24782
  shouldShowStageRoleChange
24795
24783
  } = usePeerOnStageActions({ peerId, role });
24796
- const canChangeRole = !!((_a7 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a7.changeRole);
24784
+ const canChangeRole = !!((_a8 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a8.changeRole);
24797
24785
  const [openRoleChangeModal, setOpenRoleChangeModal] = useState36(false);
24798
24786
  const roles = useHMSStore44(selectAvailableRoleNames5);
24799
24787
  return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ React83.createElement(
@@ -24946,9 +24934,9 @@ var Footer2 = ({
24946
24934
  screenType,
24947
24935
  elements
24948
24936
  }) => {
24949
- var _a7, _b7;
24937
+ var _a8, _b7;
24950
24938
  const isMobile = useMedia16(config.media.md);
24951
- const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
24939
+ const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
24952
24940
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
24953
24941
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
24954
24942
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
@@ -25339,11 +25327,11 @@ var PrevMenu = () => {
25339
25327
  const polls = useHMSStore48(selectPolls2);
25340
25328
  const sortedPolls = useMemo9(
25341
25329
  () => {
25342
- var _a7;
25343
- return (_a7 = polls == null ? void 0 : polls.sort((a2, b2) => {
25344
- var _a8, _b7, _c, _d;
25345
- return (((_b7 = (_a8 = b2 == null ? void 0 : b2.createdAt) == null ? void 0 : _a8.getTime) == null ? void 0 : _b7.call(_a8)) || 0) - (((_d = (_c = a2 == null ? void 0 : a2.createdAt) == null ? void 0 : _c.getTime) == null ? void 0 : _d.call(_c)) || 0);
25346
- })) == null ? void 0 : _a7.sort((a2, b2) => ((b2 == null ? void 0 : b2.state) === "started" ? 1 : 0) - ((a2 == null ? void 0 : a2.state) === "started" ? 1 : 0));
25330
+ var _a8;
25331
+ return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
25332
+ var _a9, _b7, _c, _d;
25333
+ return (((_b7 = (_a9 = b2 == null ? void 0 : b2.createdAt) == null ? void 0 : _a9.getTime) == null ? void 0 : _b7.call(_a9)) || 0) - (((_d = (_c = a2 == null ? void 0 : a2.createdAt) == null ? void 0 : _c.getTime) == null ? void 0 : _d.call(_c)) || 0);
25334
+ })) == null ? void 0 : _a8.sort((a2, b2) => ((b2 == null ? void 0 : b2.state) === "started" ? 1 : 0) - ((a2 == null ? void 0 : a2.state) === "started" ? 1 : 0));
25347
25335
  },
25348
25336
  [polls]
25349
25337
  );
@@ -25532,13 +25520,13 @@ var MultipleChoiceOptions = ({
25532
25520
  setSelectedOptions(newSelected);
25533
25521
  };
25534
25522
  return /* @__PURE__ */ React96.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
25535
- var _a7;
25523
+ var _a8;
25536
25524
  return /* @__PURE__ */ React96.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React96.createElement(
25537
25525
  Checkbox.Root,
25538
25526
  {
25539
25527
  id: `${questionIndex}-${option.index}`,
25540
25528
  disabled: !canRespond,
25541
- checked: (_a7 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a7.includes(option.index),
25529
+ checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
25542
25530
  onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
25543
25531
  css: {
25544
25532
  cursor: canRespond ? "pointer" : "not-allowed",
@@ -25683,7 +25671,7 @@ var QuestionForm = ({
25683
25671
  removeQuestion,
25684
25672
  isQuiz
25685
25673
  }) => {
25686
- var _a7;
25674
+ var _a8;
25687
25675
  const ref = useRef21(null);
25688
25676
  const selectionBg = useDropdownSelection();
25689
25677
  const [openDelete, setOpenDelete] = useState40(false);
@@ -25755,7 +25743,7 @@ var QuestionForm = ({
25755
25743
  },
25756
25744
  open
25757
25745
  }
25758
- ), /* @__PURE__ */ React98.createElement(Dropdown.Portal, null, /* @__PURE__ */ React98.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, Object.keys(QUESTION_TYPE_TITLE).map((value) => {
25746
+ ), /* @__PURE__ */ React98.createElement(Dropdown.Portal, null, /* @__PURE__ */ React98.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, Object.keys(QUESTION_TYPE_TITLE).map((value) => {
25759
25747
  return /* @__PURE__ */ React98.createElement(
25760
25748
  Dropdown.Item,
25761
25749
  {
@@ -25897,11 +25885,11 @@ var SavedQuestion = ({
25897
25885
  length,
25898
25886
  convertToDraft
25899
25887
  }) => {
25900
- var _a7;
25888
+ var _a8;
25901
25889
  const answerArray = useMemo10(() => {
25902
- var _a8;
25890
+ var _a9;
25903
25891
  const updatedAnswerArray = [];
25904
- const { option, options } = (_a8 = question == null ? void 0 : question.answer) != null ? _a8 : {};
25892
+ const { option, options } = (_a9 = question == null ? void 0 : question.answer) != null ? _a9 : {};
25905
25893
  if (option) {
25906
25894
  updatedAnswerArray.push(option);
25907
25895
  }
@@ -25910,7 +25898,7 @@ var SavedQuestion = ({
25910
25898
  }
25911
25899
  return updatedAnswerArray;
25912
25900
  }, [question == null ? void 0 : question.answer]);
25913
- return /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a7 = question.options) == null ? void 0 : _a7.map((option, index2) => /* @__PURE__ */ React99.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ React99.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ React99.createElement(CheckCircleIcon3, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ React99.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ React99.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ React99.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25901
+ return /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a8 = question.options) == null ? void 0 : _a8.map((option, index2) => /* @__PURE__ */ React99.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ React99.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ React99.createElement(CheckCircleIcon3, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ React99.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ React99.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ React99.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25914
25902
  };
25915
25903
 
25916
25904
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
@@ -25921,14 +25909,14 @@ var getEditableFormat = (questions) => {
25921
25909
  return editableQuestions;
25922
25910
  };
25923
25911
  function CreateQuestions() {
25924
- var _a7, _b7, _c, _d;
25912
+ var _a8, _b7, _c, _d;
25925
25913
  const actions = useHMSActions36();
25926
25914
  const { isHLSRunning } = useRecordingStreaming9();
25927
25915
  const togglePollView = usePollViewToggle();
25928
25916
  const { pollInView: id, setPollView } = usePollViewState();
25929
25917
  const interaction = useHMSStore49(selectPollByID(id));
25930
25918
  const [questions, setQuestions] = useState41(
25931
- ((_a7 = interaction.questions) == null ? void 0 : _a7.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
25919
+ ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
25932
25920
  );
25933
25921
  const isValidPoll = useMemo11(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
25934
25922
  const launchPoll = () => __async(this, null, function* () {
@@ -26128,13 +26116,13 @@ var useQuizSummary = (quizID) => {
26128
26116
  const [calculations, setCalculations] = useState42({ maxPossibleScore: 0, totalResponses: 0 });
26129
26117
  useEffect31(() => {
26130
26118
  const fetchLeaderboardData = () => __async(void 0, null, function* () {
26131
- var _a7;
26119
+ var _a8;
26132
26120
  if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
26133
26121
  const leaderboardData = yield hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 50);
26134
- const { maxPossibleScore, totalResponses } = ((_a7 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a7.reduce((accumulator, question) => {
26135
- var _a8;
26122
+ const { maxPossibleScore, totalResponses } = ((_a8 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a8.reduce((accumulator, question) => {
26123
+ var _a9;
26136
26124
  accumulator.maxPossibleScore += question.weight || 0;
26137
- accumulator.totalResponses += ((_a8 = question == null ? void 0 : question.responses) == null ? void 0 : _a8.length) || 0;
26125
+ accumulator.totalResponses += ((_a9 = question == null ? void 0 : question.responses) == null ? void 0 : _a9.length) || 0;
26138
26126
  return accumulator;
26139
26127
  }, calculations)) || calculations;
26140
26128
  setQuizLeaderboard(leaderboardData);
@@ -26160,8 +26148,8 @@ var PeerParticipationSummary = ({ quiz }) => {
26160
26148
  }
26161
26149
  const isLocalPeerQuizCreator = localPeerId === quiz.startedBy;
26162
26150
  const peerEntry = quizLeaderboard == null ? void 0 : quizLeaderboard.entries.find((entry) => {
26163
- var _a7;
26164
- return ((_a7 = entry.peer) == null ? void 0 : _a7.peerid) === localPeerId;
26151
+ var _a8;
26152
+ return ((_a8 = entry.peer) == null ? void 0 : _a8.peerid) === localPeerId;
26165
26153
  });
26166
26154
  const boxes = isLocalPeerQuizCreator ? [
26167
26155
  {
@@ -26193,7 +26181,7 @@ var PeerParticipationSummary = ({ quiz }) => {
26193
26181
 
26194
26182
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
26195
26183
  var LeaderboardSummary = ({ pollID }) => {
26196
- var _a7, _b7;
26184
+ var _a8, _b7;
26197
26185
  const quiz = useHMSStore52(selectPollByID3(pollID));
26198
26186
  const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
26199
26187
  const [viewAllEntries, setViewAllEntries] = useState43(false);
@@ -26201,7 +26189,7 @@ var LeaderboardSummary = ({ pollID }) => {
26201
26189
  const toggleSidepane = useSidepaneToggle();
26202
26190
  if (!quiz || !quizLeaderboard)
26203
26191
  return /* @__PURE__ */ React104.createElement(Flex, { align: "center", justify: "center", css: { size: "100%" } }, /* @__PURE__ */ React104.createElement(Loading, null));
26204
- const questionCount = ((_a7 = quiz.questions) == null ? void 0 : _a7.length) || 0;
26192
+ const questionCount = ((_a8 = quiz.questions) == null ? void 0 : _a8.length) || 0;
26205
26193
  return /* @__PURE__ */ React104.createElement(Container3, { rounded: true }, /* @__PURE__ */ React104.createElement(Flex, { direction: "column", css: { size: "100%", p: "$8" } }, /* @__PURE__ */ React104.createElement(Flex, { justify: "between", align: "center", css: { pb: "$6", borderBottom: "1px solid $border_bright", mb: "$8" } }, /* @__PURE__ */ React104.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React104.createElement(
26206
26194
  Flex,
26207
26195
  {
@@ -26458,14 +26446,14 @@ var StandardView = ({
26458
26446
  localPeerResponses,
26459
26447
  updateSavedResponses
26460
26448
  }) => {
26461
- var _a7;
26449
+ var _a8;
26462
26450
  if (!(poll == null ? void 0 : poll.questions)) {
26463
26451
  return null;
26464
26452
  }
26465
26453
  const isQuiz = poll.type === "quiz";
26466
26454
  const isStopped = poll.state === "stopped";
26467
- return /* @__PURE__ */ React106.createElement(React106.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ React106.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a7 = poll.questions) == null ? void 0 : _a7.map((question, index) => {
26468
- var _a8;
26455
+ return /* @__PURE__ */ React106.createElement(React106.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ React106.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a8 = poll.questions) == null ? void 0 : _a8.map((question, index) => {
26456
+ var _a9;
26469
26457
  return /* @__PURE__ */ React106.createElement(
26470
26458
  QuestionCard2,
26471
26459
  {
@@ -26478,7 +26466,7 @@ var StandardView = ({
26478
26466
  text: question.text,
26479
26467
  type: question.type,
26480
26468
  result: question.result,
26481
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26469
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26482
26470
  options: question.options,
26483
26471
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26484
26472
  answer: question.answer,
@@ -26497,9 +26485,9 @@ var TimedView = ({
26497
26485
  localPeerResponses,
26498
26486
  updateSavedResponses
26499
26487
  }) => {
26500
- var _a7, _b7, _c;
26488
+ var _a8, _b7, _c;
26501
26489
  const [currentIndex, setCurrentIndex] = useState45(getIndexToShow(localPeerResponses));
26502
- const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
26490
+ const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
26503
26491
  const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
26504
26492
  useEffect33(() => {
26505
26493
  setCurrentIndex(getIndexToShow(localPeerResponses));
@@ -26508,7 +26496,7 @@ var TimedView = ({
26508
26496
  return null;
26509
26497
  }
26510
26498
  return /* @__PURE__ */ React107.createElement(React107.Fragment, null, poll.questions.map((question) => {
26511
- var _a8;
26499
+ var _a9;
26512
26500
  return attemptedAll || (activeQuestion == null ? void 0 : activeQuestion.index) === question.index ? /* @__PURE__ */ React107.createElement(
26513
26501
  QuestionCard2,
26514
26502
  {
@@ -26521,7 +26509,7 @@ var TimedView = ({
26521
26509
  text: question.text,
26522
26510
  type: question.type,
26523
26511
  result: question == null ? void 0 : question.result,
26524
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26512
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26525
26513
  options: question.options,
26526
26514
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26527
26515
  answer: question.answer,
@@ -26565,9 +26553,9 @@ var Voting = ({ id, toggleVoting }) => {
26565
26553
  localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
26566
26554
  if (response) {
26567
26555
  setSavedResponses((prev) => {
26568
- var _a7, _b7, _c;
26556
+ var _a8, _b7, _c;
26569
26557
  const prevCopy = __spreadValues({}, prev);
26570
- prevCopy[(_a7 = response[0]) == null ? void 0 : _a7.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c = response[0]) == null ? void 0 : _c.options };
26558
+ prevCopy[(_a8 = response[0]) == null ? void 0 : _a8.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c = response[0]) == null ? void 0 : _c.options };
26571
26559
  return prevCopy;
26572
26560
  });
26573
26561
  }
@@ -26682,9 +26670,9 @@ var LogoImg = styled("img", {
26682
26670
  }
26683
26671
  });
26684
26672
  var Logo = () => {
26685
- var _a7;
26673
+ var _a8;
26686
26674
  const roomLayout = useRoomLayout();
26687
- const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
26675
+ const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
26688
26676
  const [hideImage, setHideImage] = useState47(false);
26689
26677
  useEffect35(() => {
26690
26678
  if (hideImage) {
@@ -26808,8 +26796,8 @@ var SelectorItem = ({
26808
26796
  icon = void 0
26809
26797
  }) => {
26810
26798
  const isMobile = useMedia17(config.media.md);
26811
- const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
26812
- var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
26799
+ const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
26800
+ var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
26813
26801
  return /* @__PURE__ */ React114.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
26814
26802
  };
26815
26803
  return /* @__PURE__ */ React114.createElement(
@@ -26936,11 +26924,11 @@ var VirtualizedSelectItemList = ({
26936
26924
  return /* @__PURE__ */ React114.createElement(Dropdown.Group, { css: { overflowY: "auto", maxHeight: "$64", bg: "$surface_default" } }, listItems.map((item, index) => /* @__PURE__ */ React114.createElement(Box, { key: index }, item)));
26937
26925
  };
26938
26926
  var ChatSelector = ({ role, peerId }) => {
26939
- var _a7, _b7;
26927
+ var _a8, _b7;
26940
26928
  const { elements } = useRoomLayoutConferencingScreen();
26941
26929
  const peers = useHMSStore56(selectRemotePeers2);
26942
26930
  const [search, setSearch] = useState49("");
26943
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26931
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26944
26932
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26945
26933
  return /* @__PURE__ */ React114.createElement(React114.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ React114.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ React114.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ React114.createElement(
26946
26934
  VirtualizedSelectItemList,
@@ -26956,11 +26944,11 @@ var ChatSelector = ({ role, peerId }) => {
26956
26944
 
26957
26945
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
26958
26946
  var ChatSelectorContainer = () => {
26959
- var _a7, _b7;
26947
+ var _a8, _b7;
26960
26948
  const [open, setOpen] = useState50(false);
26961
26949
  const isMobile = useMedia18(config.media.md);
26962
26950
  const { elements } = useRoomLayoutConferencingScreen();
26963
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26951
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26964
26952
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26965
26953
  const roles = useFilteredRoles();
26966
26954
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -27100,8 +27088,8 @@ var useEmojiPickerStyles = (showing) => {
27100
27088
  useEffect37(() => {
27101
27089
  if (showing) {
27102
27090
  setTimeout(() => {
27103
- var _a7, _b7;
27104
- const root = (_b7 = (_a7 = ref.current) == null ? void 0 : _a7.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
27091
+ var _a8, _b7;
27092
+ const root = (_b7 = (_a8 = ref.current) == null ? void 0 : _a8.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
27105
27093
  const style = document.createElement("style");
27106
27094
  style.textContent = `
27107
27095
  #root {
@@ -27171,13 +27159,13 @@ function EmojiPicker({ onSelect }) {
27171
27159
  )));
27172
27160
  }
27173
27161
  var ChatFooter = ({ onSend, children }) => {
27174
- var _a7, _b7, _c, _d, _e;
27162
+ var _a8, _b7, _c, _d, _e;
27175
27163
  const hmsActions = useHMSActions41();
27176
27164
  const inputRef = useRef25(null);
27177
27165
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
27178
27166
  const isMobile = useMedia19(config.media.md);
27179
27167
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27180
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
27168
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
27181
27169
  const localPeer = useHMSStore58(selectLocalPeer5);
27182
27170
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
27183
27171
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
@@ -27190,11 +27178,11 @@ var ChatFooter = ({ onSend, children }) => {
27190
27178
  const [messageLengthExceeded, setMessageLengthExceeded] = useState51(false);
27191
27179
  const isLandscapeHLSStream = useLandscapeHLSStream();
27192
27180
  useEffect38(() => {
27193
- var _a8, _b8;
27181
+ var _a9, _b8;
27194
27182
  if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
27195
27183
  setRoleSelector(defaultSelection);
27196
27184
  } else {
27197
- if (!(isMobile || isLandscapeHLSStream) && !((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.disable_autofocus)) {
27185
+ if (!(isMobile || isLandscapeHLSStream) && !((_a9 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a9.disable_autofocus)) {
27198
27186
  (_b8 = inputRef.current) == null ? void 0 : _b8.focus();
27199
27187
  }
27200
27188
  }
@@ -27213,8 +27201,8 @@ var ChatFooter = ({ onSend, children }) => {
27213
27201
  }
27214
27202
  }, []);
27215
27203
  const sendMessage = useCallback29(() => __async(void 0, null, function* () {
27216
- var _a8;
27217
- const message = (_a8 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a8.value;
27204
+ var _a9;
27205
+ const message = (_a9 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a9.value;
27218
27206
  if (!message || !message.trim().length) {
27219
27207
  return;
27220
27208
  }
@@ -27383,10 +27371,10 @@ init_define_process_env();
27383
27371
  import React117, { useCallback as useCallback30 } from "react";
27384
27372
  import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as useHMSActions42, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
27385
27373
  var ChatPaused = () => {
27386
- var _a7, _b7;
27374
+ var _a8, _b7;
27387
27375
  const hmsActions = useHMSActions42();
27388
27376
  const { elements } = useRoomLayoutConferencingScreen();
27389
- 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);
27377
+ const can_disable_chat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27390
27378
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore59(selectSessionStore7("chatState" /* CHAT_STATE */)) || {};
27391
27379
  const localPeer = useHMSStore59(selectLocalPeer6);
27392
27380
  const unPauseChat = useCallback30(
@@ -27495,13 +27483,13 @@ var StickIndicator = ({ total, index }) => {
27495
27483
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
27496
27484
  var PINNED_MESSAGE_LENGTH = 75;
27497
27485
  var PinnedMessage = () => {
27498
- var _a7, _b7, _c, _d;
27486
+ var _a8, _b7, _c, _d;
27499
27487
  const pinnedMessages = useHMSStore60(selectSessionStore8("pinnedMessages" /* PINNED_MESSAGES */));
27500
27488
  const [pinnedMessageIndex, setPinnedMessageIndex] = useState52(0);
27501
27489
  const { removePinnedMessage } = usePinnedMessages();
27502
27490
  const isMobile = useMedia20(config.media.md);
27503
27491
  const { elements } = useRoomLayoutConferencingScreen();
27504
- const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
27492
+ const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
27505
27493
  const [hideOverflow, setHideOverflow] = useState52(true);
27506
27494
  const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
27507
27495
  const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
@@ -27610,12 +27598,12 @@ var PinnedMessage = () => {
27610
27598
 
27611
27599
  // src/Prebuilt/components/Chat/Chat.tsx
27612
27600
  var Chat = () => {
27613
- var _a7, _b7;
27601
+ var _a8, _b7;
27614
27602
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27615
27603
  const listRef = useRef26(null);
27616
27604
  const hmsActions = useHMSActions43();
27617
27605
  const vanillaStore = useHMSVanillaStore11();
27618
- const { enabled: isChatEnabled = true } = useHMSStore61(dS("chatState" /* CHAT_STATE */)) || {};
27606
+ const { enabled: isChatEnabled = true } = useHMSStore61(hS("chatState" /* CHAT_STATE */)) || {};
27619
27607
  const isMobile = useMedia21(config.media.md);
27620
27608
  const isMobileHLSStream = useMobileHLSStream();
27621
27609
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27623,13 +27611,13 @@ var Chat = () => {
27623
27611
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
27624
27612
  const scrollToBottom = useCallback31(
27625
27613
  (unreadCount = 0) => {
27626
- var _a8;
27614
+ var _a9;
27627
27615
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
27628
27616
  const messagesCount = vanillaStore.getState(selectHMSMessagesCount);
27629
- (_a8 = listRef.current) == null ? void 0 : _a8.scrollToItem(messagesCount, "end");
27617
+ (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27630
27618
  requestAnimationFrame(() => {
27631
- var _a9;
27632
- (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27619
+ var _a10;
27620
+ (_a10 = listRef.current) == null ? void 0 : _a10.scrollToItem(messagesCount, "end");
27633
27621
  });
27634
27622
  hmsActions.setMessageRead(true);
27635
27623
  }
@@ -27647,7 +27635,7 @@ var Chat = () => {
27647
27635
  gap: "$4"
27648
27636
  }
27649
27637
  },
27650
- isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming ? null : /* @__PURE__ */ React121.createElement(PinnedMessage, null),
27638
+ isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming ? null : /* @__PURE__ */ React121.createElement(PinnedMessage, null),
27651
27639
  /* @__PURE__ */ React121.createElement(ChatBody, { ref: listRef, scrollToBottom }),
27652
27640
  /* @__PURE__ */ React121.createElement(Flex, { align: "center", css: { w: "100%", gap: "$2" } }, /* @__PURE__ */ React121.createElement(ChatPaused, null), /* @__PURE__ */ React121.createElement(ChatBlocked, null), streaming && (!isChatEnabled || isLocalPeerBlacklisted) && /* @__PURE__ */ React121.createElement(React121.Fragment, null, /* @__PURE__ */ React121.createElement(RaiseHand, { css: { bg: "$surface_default" } }), /* @__PURE__ */ React121.createElement(MoreSettings, { elements, screenType }))),
27653
27641
  isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && !streaming ? /* @__PURE__ */ React121.createElement(PinnedMessage, null) : null,
@@ -27705,7 +27693,7 @@ var NewMessageIndicator = ({
27705
27693
  scrollToBottom,
27706
27694
  listRef
27707
27695
  }) => {
27708
- const unreadCount = useHMSStore61(Lm);
27696
+ const unreadCount = useHMSStore61(Nm);
27709
27697
  if (!unreadCount || !listRef.current) {
27710
27698
  return null;
27711
27699
  }
@@ -27796,8 +27784,8 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
27796
27784
  const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
27797
27785
  const [search, setSearch] = useState53("");
27798
27786
  const filteredPeers = peers.filter((p) => {
27799
- var _a7;
27800
- return (_a7 = p.name) == null ? void 0 : _a7.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27787
+ var _a8;
27788
+ return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27801
27789
  });
27802
27790
  const isConnected = useHMSStore62(selectIsConnectedToRoom8);
27803
27791
  const [ref, { width }] = useMeasure2();
@@ -27836,11 +27824,11 @@ import React123 from "react";
27836
27824
  import { selectLocalPeer as selectLocalPeer7, selectSessionStore as selectSessionStore9, useHMSActions as useHMSActions44, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
27837
27825
  import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
27838
27826
  var ChatSettings = () => {
27839
- var _a7, _b7;
27827
+ var _a8, _b7;
27840
27828
  const hmsActions = useHMSActions44();
27841
27829
  const localPeer = useHMSStore63(selectLocalPeer7);
27842
27830
  const { elements } = useRoomLayoutConferencingScreen();
27843
- const canPauseChat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27831
+ const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27844
27832
  const { enabled: isChatEnabled = true } = useHMSStore63(selectSessionStore9("chatState" /* CHAT_STATE */)) || {};
27845
27833
  const showPause = canPauseChat && isChatEnabled;
27846
27834
  if (!showPause) {
@@ -27903,7 +27891,7 @@ var ParticipantCount2 = ({ count }) => {
27903
27891
  return count < 1e3 ? /* @__PURE__ */ React124.createElement("span", null, "(", count, ")") : /* @__PURE__ */ React124.createElement(Tooltip, { title: count }, /* @__PURE__ */ React124.createElement("span", null, "(", getFormattedCount(count), ")"));
27904
27892
  };
27905
27893
  var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = false }) => {
27906
- var _a7, _b7;
27894
+ var _a8, _b7;
27907
27895
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
27908
27896
  const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
27909
27897
  const resetSidePane = useSidepaneReset();
@@ -27911,7 +27899,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
27911
27899
  const [activeRole, setActiveRole] = useState54("");
27912
27900
  const peerCount = useHMSStore64(selectPeerCount5);
27913
27901
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27914
- const chat_title = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.chat_title) || "Chat";
27902
+ const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
27915
27903
  const showChat = !!(elements == null ? void 0 : elements.chat);
27916
27904
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
27917
27905
  const hideTabs = !(showChat && showParticipants) || hideTab;
@@ -28237,11 +28225,11 @@ var MinimiseInset = () => {
28237
28225
  return /* @__PURE__ */ React126.createElement(React126.Fragment, null, /* @__PURE__ */ React126.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: spacingCSS, onClick: () => setMinimised(!minimised) }, /* @__PURE__ */ React126.createElement(ShrinkIcon, { height: 20, width: 20 }), /* @__PURE__ */ React126.createElement("span", null, minimised ? "Show" : "Minimise", " your video")));
28238
28226
  };
28239
28227
  var SimulcastLayers = ({ trackId }) => {
28240
- var _a7;
28228
+ var _a8;
28241
28229
  const track = useHMSStore66(selectTrackByID2(trackId));
28242
28230
  const actions = useHMSActions45();
28243
28231
  const bg2 = useDropdownSelection();
28244
- if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
28232
+ if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
28245
28233
  return null;
28246
28234
  }
28247
28235
  const currentLayer = track.layerDefinitions.find((layer) => layer.layer === track.layer);
@@ -28438,7 +28426,7 @@ var TileMenu = ({
28438
28426
  canMinimise,
28439
28427
  enableSpotlightingPeer = true
28440
28428
  }) => {
28441
- var _a7, _b7;
28429
+ var _a8, _b7;
28442
28430
  const [open, setOpen] = useState55(false);
28443
28431
  const { theme: theme2 } = useTheme();
28444
28432
  const localPeerID = useHMSStore67(selectLocalPeerID10);
@@ -28446,7 +28434,7 @@ var TileMenu = ({
28446
28434
  const { removeOthers } = useHMSStore67(selectPermissions19) || {};
28447
28435
  const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
28448
28436
  const showSpotlight = enableSpotlightingPeer;
28449
- const isPrimaryVideoTrack = ((_a7 = useHMSStore67(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
28437
+ const isPrimaryVideoTrack = ((_a8 = useHMSStore67(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
28450
28438
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
28451
28439
  const track = useHMSStore67(selectTrackByID3(videoTrackID));
28452
28440
  const audioTrack = useHMSStore67(selectTrackByID3(audioTrackID));
@@ -28714,11 +28702,11 @@ var VBCollection = ({
28714
28702
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28715
28703
  var iconDims = { height: "40px", width: "40px" };
28716
28704
  var VBPicker = ({ backgroundMedia = [] }) => {
28717
- var _a7, _b7;
28705
+ var _a8, _b7;
28718
28706
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28719
28707
  const hmsActions = useHMSActions46();
28720
28708
  const localPeer = useHMSStore69(selectLocalPeer8);
28721
- const role = useHMSStore69(ot);
28709
+ const role = useHMSStore69(ct);
28722
28710
  const isVideoOn = useHMSStore69(selectIsLocalVideoEnabled6);
28723
28711
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28724
28712
  const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -28727,12 +28715,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28727
28715
  const roomState = useHMSStore69(selectRoomState5);
28728
28716
  const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
28729
28717
  const isEffectsSupported = VBHandler.isEffectsSupported();
28730
- const isEffectsEnabled = useHMSStore69($m);
28731
- const effectsKey = useHMSStore69(qm);
28718
+ const isEffectsEnabled = useHMSStore69(Jm);
28719
+ const effectsKey = useHMSStore69(zm);
28732
28720
  const isMobile = useMedia25(config.media.md);
28733
28721
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28734
- const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28735
- const background = useHMSStore69(cS(APP_DATA.background));
28722
+ const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
28723
+ const background = useHMSStore69(pS(APP_DATA.background));
28736
28724
  const mediaList = backgroundMedia.map((media) => media.url || "");
28737
28725
  const pluginLoadingRef = useRef27(false);
28738
28726
  const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
@@ -28856,8 +28844,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28856
28844
  icon: /* @__PURE__ */ React131.createElement(BlurPersonHighIcon, { style: iconDims }),
28857
28845
  value: HMSVirtualBackgroundTypes5.BLUR,
28858
28846
  onClick: () => __async(void 0, null, function* () {
28859
- var _a8;
28860
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
28847
+ var _a9;
28848
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
28861
28849
  hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes5.BLUR);
28862
28850
  }),
28863
28851
  supported: isBlurSupported
@@ -28888,8 +28876,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28888
28876
  mediaURL,
28889
28877
  value: mediaURL,
28890
28878
  onClick: () => __async(void 0, null, function* () {
28891
- var _a8;
28892
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBackground(mediaURL);
28879
+ var _a9;
28880
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBackground(mediaURL);
28893
28881
  hmsActions.setAppData(APP_DATA.background, mediaURL);
28894
28882
  if (isMobile) {
28895
28883
  toggleVB();
@@ -29003,11 +28991,11 @@ var SidePane = ({
29003
28991
  tileProps,
29004
28992
  hideControls = false
29005
28993
  }) => {
29006
- var _a7, _b7, _c, _d, _e, _f, _g;
28994
+ var _a8, _b7, _c, _d, _e, _f, _g;
29007
28995
  const isMobile = useMedia26(config.media.md);
29008
28996
  const sidepane = useHMSStore70(selectAppData8(APP_DATA.sidePane));
29009
28997
  const activeScreensharePeerId = useHMSStore70(selectAppData8(APP_DATA.activeScreensharePeerId));
29010
- const trackId = (_a7 = useHMSStore70(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a7.id;
28998
+ const trackId = (_a8 = useHMSStore70(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
29011
28999
  const { elements } = useRoomLayoutConferencingScreen();
29012
29000
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
29013
29001
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
@@ -29140,14 +29128,14 @@ var PreviewForm = ({
29140
29128
  cannotPublishVideo = false,
29141
29129
  cannotPublishAudio = false
29142
29130
  }) => {
29143
- var _a7, _b7, _c;
29131
+ var _a8, _b7, _c;
29144
29132
  const formSubmit = (e) => {
29145
29133
  e.preventDefault();
29146
29134
  };
29147
29135
  const isMobile = useMedia27(config.media.md);
29148
29136
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming10();
29149
29137
  const layout = useRoomLayout();
29150
- 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) || {};
29138
+ const { join_form: joinForm = {} } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
29151
29139
  const showGoLive = (joinForm == null ? void 0 : joinForm.join_btn_type) === JoinForm_JoinBtnType3.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE && !isHLSRunning && !isRTMPRunning && !isHLSRecordingOn && !isBrowserRecordingOn;
29152
29140
  return /* @__PURE__ */ React135.createElement(
29153
29141
  Form,
@@ -29453,10 +29441,10 @@ var RoleChangeRequestModal = () => {
29453
29441
  {
29454
29442
  title: "You're invited to join the stage",
29455
29443
  onOpenChange: (value) => __async(void 0, null, function* () {
29456
- var _a7;
29444
+ var _a8;
29457
29445
  if (!value) {
29458
29446
  hmsActions.rejectChangeRole(roleChangeRequest);
29459
- sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a7 = roleChangeRequest.requestedBy) == null ? void 0 : _a7.id });
29447
+ sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a8 = roleChangeRequest.requestedBy) == null ? void 0 : _a8.id });
29460
29448
  yield hmsActions.cancelMidCallPreview();
29461
29449
  yield hmsActions.lowerLocalPeerHand();
29462
29450
  }
@@ -29730,11 +29718,10 @@ var Pagination = ({
29730
29718
  // src/Prebuilt/components/VideoLayouts/Grid.tsx
29731
29719
  init_define_process_env();
29732
29720
  import React143 from "react";
29733
- import { AnimatePresence } from "framer-motion";
29734
29721
  var Grid = React143.forwardRef(
29735
29722
  ({ tiles, edgeToEdge }, ref) => {
29736
29723
  const videoTileProps = useVideoTileContext();
29737
- return /* @__PURE__ */ React143.createElement(AnimatePresence, null, /* @__PURE__ */ React143.createElement(
29724
+ return /* @__PURE__ */ React143.createElement(
29738
29725
  Box,
29739
29726
  {
29740
29727
  ref,
@@ -29751,11 +29738,11 @@ var Grid = React143.forwardRef(
29751
29738
  }
29752
29739
  },
29753
29740
  tiles == null ? void 0 : tiles.map((tile) => {
29754
- var _a7, _b7, _c, _d;
29741
+ var _a8, _b7, _c, _d;
29755
29742
  return /* @__PURE__ */ React143.createElement(
29756
29743
  VideoTile_default,
29757
29744
  __spreadValues({
29758
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29745
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29759
29746
  width: tile.width,
29760
29747
  height: tile.height,
29761
29748
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
@@ -29765,7 +29752,7 @@ var Grid = React143.forwardRef(
29765
29752
  }, videoTileProps)
29766
29753
  );
29767
29754
  })
29768
- ));
29755
+ );
29769
29756
  }
29770
29757
  );
29771
29758
 
@@ -29876,7 +29863,7 @@ var useTileLayout = ({
29876
29863
 
29877
29864
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29878
29865
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
29879
- var _a7;
29866
+ var _a8;
29880
29867
  const isMobile = useMedia32(config.media.md);
29881
29868
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29882
29869
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
@@ -29890,7 +29877,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29890
29877
  edgeToEdge
29891
29878
  });
29892
29879
  const [page, setPage] = useState60(0);
29893
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
29880
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
29894
29881
  useEffect49(() => {
29895
29882
  if (pageSize > 0) {
29896
29883
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -29980,11 +29967,11 @@ var SecondarySection = ({
29980
29967
  })
29981
29968
  },
29982
29969
  tiles.map((tile) => {
29983
- var _a7, _b7, _c, _d;
29970
+ var _a8, _b7, _c, _d;
29984
29971
  return /* @__PURE__ */ React145.createElement(
29985
29972
  VideoTile_default,
29986
29973
  __spreadValues({
29987
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29974
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29988
29975
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
29989
29976
  trackId: (_d = tile.track) == null ? void 0 : _d.id,
29990
29977
  rootCSS: __spreadProps(__spreadValues({
@@ -30009,14 +29996,14 @@ var ProminenceLayout = {
30009
29996
 
30010
29997
  // src/Prebuilt/components/SecondaryTiles.tsx
30011
29998
  var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
30012
- var _a7, _b7;
29999
+ var _a8, _b7;
30013
30000
  const isMobile = useMedia33(config.media.md);
30014
30001
  const maxTileCount = isMobile ? 2 : 4;
30015
30002
  const [page, setPage] = useState61(0);
30016
30003
  const pinnedTrackId = useHMSStore74(selectAppData10(APP_DATA.pinnedTrackId));
30017
30004
  const spotlightPeerId = useHMSStore74(selectSessionStore12("spotlight" /* SPOTLIGHT */));
30018
30005
  const activeScreensharePeerId = useHMSStore74(selectAppData10(APP_DATA.activeScreensharePeerId));
30019
- const pinnedPeer = (_a7 = useHMSStore74(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a7.peerId;
30006
+ const pinnedPeer = (_a8 = useHMSStore74(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a8.peerId;
30020
30007
  const pageChangedAfterPinning = useRef29(false);
30021
30008
  const pagesWithTiles = usePagesWithTiles({
30022
30009
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
@@ -30039,8 +30026,8 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
30039
30026
  });
30040
30027
  const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
30041
30028
  useEffect50(() => {
30042
- var _a8;
30043
- if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
30029
+ var _a9;
30030
+ if (peers.length > 0 && !((_a9 = pagesWithTiles[page]) == null ? void 0 : _a9.length)) {
30044
30031
  setPage(Math.max(0, page - 1));
30045
30032
  }
30046
30033
  }, [peers, page, pagesWithTiles]);
@@ -30114,7 +30101,7 @@ function RoleProminence({
30114
30101
  onPageSize,
30115
30102
  edgeToEdge
30116
30103
  }) {
30117
- var _a7;
30104
+ var _a8;
30118
30105
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
30119
30106
  const localPeer = useHMSStore75(selectLocalPeer11);
30120
30107
  const isMobile = useMedia34(config.media.md);
@@ -30129,7 +30116,7 @@ function RoleProminence({
30129
30116
  maxTileCount
30130
30117
  });
30131
30118
  const [page, setPage] = useState62(0);
30132
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
30119
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
30133
30120
  useEffect51(() => {
30134
30121
  if (pageSize > 0) {
30135
30122
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -30412,7 +30399,7 @@ var ScreenshareTile_default = ScreenshareTile;
30412
30399
 
30413
30400
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
30414
30401
  var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30415
- var _a7;
30402
+ var _a8;
30416
30403
  const peersSharing = useHMSStore77(selectPeersScreenSharing);
30417
30404
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30418
30405
  const [page, setPage] = useState65(0);
@@ -30448,7 +30435,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30448
30435
  setActiveScreenSharePeer("");
30449
30436
  };
30450
30437
  }, [activeSharePeer == null ? void 0 : activeSharePeer.id, setActiveScreenSharePeer]);
30451
- return /* @__PURE__ */ React151.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ React151.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React151.createElement(ScreenshareTile_default, { peerId: (_a7 = peersSharing[page]) == null ? void 0 : _a7.id }), !edgeToEdge && /* @__PURE__ */ React151.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ React151.createElement(
30438
+ return /* @__PURE__ */ React151.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ React151.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React151.createElement(ScreenshareTile_default, { peerId: (_a8 = peersSharing[page]) == null ? void 0 : _a8.id }), !edgeToEdge && /* @__PURE__ */ React151.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ React151.createElement(
30452
30439
  SecondaryTiles,
30453
30440
  {
30454
30441
  peers: secondaryPeers,
@@ -30559,10 +30546,10 @@ var PeersSorter = class {
30559
30546
  this.listeners.add(cb);
30560
30547
  };
30561
30548
  this.stop = () => {
30562
- var _a7;
30549
+ var _a8;
30563
30550
  this.updateListeners();
30564
30551
  this.listeners.clear();
30565
- (_a7 = this.storeUnsubscribe) == null ? void 0 : _a7.call(this);
30552
+ (_a8 = this.storeUnsubscribe) == null ? void 0 : _a8.call(this);
30566
30553
  this.storeUnsubscribe = void 0;
30567
30554
  this.speaker = void 0;
30568
30555
  };
@@ -30582,8 +30569,8 @@ var PeersSorter = class {
30582
30569
  this.updateListeners();
30583
30570
  };
30584
30571
  this.onDominantSpeakerChange = (speaker) => {
30585
- var _a7;
30586
- if (!speaker || speaker.id === ((_a7 = this.speaker) == null ? void 0 : _a7.id)) {
30572
+ var _a8;
30573
+ if (!speaker || speaker.id === ((_a8 = this.speaker) == null ? void 0 : _a8.id)) {
30587
30574
  return;
30588
30575
  }
30589
30576
  if (!this.peers.has(speaker.id)) {
@@ -30835,7 +30822,7 @@ init_define_process_env();
30835
30822
  import React155, { memo } from "react";
30836
30823
  import { CrossIcon as CrossIcon27 } from "@100mslive/react-icons";
30837
30824
  function HlsStatsOverlay({ hlsStatsState, onClose }) {
30838
- var _a7, _b7, _c;
30825
+ var _a8, _b7, _c;
30839
30826
  return /* @__PURE__ */ React155.createElement(
30840
30827
  Flex,
30841
30828
  {
@@ -30861,7 +30848,7 @@ function HlsStatsOverlay({ hlsStatsState, onClose }) {
30861
30848
  },
30862
30849
  "Stream url"
30863
30850
  ))),
30864
- /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a7.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
30851
+ /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a8 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a8.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
30865
30852
  /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Buffer duration" }, (_c = hlsStatsState == null ? void 0 : hlsStatsState.bufferedDuration) == null ? void 0 : _c.toFixed(2), " "),
30866
30853
  /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Connection speed" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bandwidthEstimate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
30867
30854
  /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Bitrate" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bitrate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
@@ -30939,8 +30926,8 @@ var RightControls = styled(Flex, {
30939
30926
  // src/Prebuilt/components/HMSVideo/HMSVideo.jsx
30940
30927
  init_define_process_env();
30941
30928
  import React156, { forwardRef, useEffect as useEffect56, useState as useState67 } from "react";
30942
- var HMSVideo = forwardRef((_a7, videoRef) => {
30943
- var _b7 = _a7, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30929
+ var HMSVideo = forwardRef((_a8, videoRef) => {
30930
+ var _b7 = _a8, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30944
30931
  const [width, setWidth] = useState67("auto");
30945
30932
  useEffect56(() => {
30946
30933
  const updatingVideoWidth = () => {
@@ -31235,7 +31222,7 @@ var VideoProgress = ({
31235
31222
  const [bufferProgress, setBufferProgress] = useState68(0);
31236
31223
  const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
31237
31224
  const setProgress = useCallback35(() => {
31238
- var _a7;
31225
+ var _a8;
31239
31226
  if (!videoEl) {
31240
31227
  return;
31241
31228
  }
@@ -31243,7 +31230,7 @@ var VideoProgress = ({
31243
31230
  const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
31244
31231
  let bufferProgress2 = 0;
31245
31232
  if (videoEl.buffered.length > 0) {
31246
- bufferProgress2 = Math.floor(getPercentage((_a7 = videoEl.buffered) == null ? void 0 : _a7.end(0), duration));
31233
+ bufferProgress2 = Math.floor(getPercentage((_a8 = videoEl.buffered) == null ? void 0 : _a8.end(0), duration));
31247
31234
  }
31248
31235
  if (!isNaN(videoProgress2)) {
31249
31236
  setVideoProgress(videoProgress2);
@@ -31269,13 +31256,13 @@ var VideoProgress = ({
31269
31256
  };
31270
31257
  }, [setProgress, timeupdateHandler, videoEl]);
31271
31258
  const onProgress = (progress) => {
31272
- var _a7;
31259
+ var _a8;
31273
31260
  const progress1 = Math.floor(getPercentage(progress[0], 100));
31274
31261
  const videoEl2 = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
31275
31262
  if (!videoEl2) {
31276
31263
  return;
31277
31264
  }
31278
- const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a7 = videoEl2.seekable) == null ? void 0 : _a7.end(0)) || 0;
31265
+ const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a8 = videoEl2.seekable) == null ? void 0 : _a8.end(0)) || 0;
31279
31266
  const currentTime = progress1 * duration / 100;
31280
31267
  hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(currentTime);
31281
31268
  setProgress();
@@ -31373,9 +31360,9 @@ init_define_process_env();
31373
31360
  import React163, { useState as useState70 } from "react";
31374
31361
  import { VolumeOneIcon as VolumeOneIcon2, VolumeTwoIcon, VolumeZeroIcon } from "@100mslive/react-icons";
31375
31362
  var VolumeControl = () => {
31376
- var _a7;
31363
+ var _a8;
31377
31364
  const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
31378
- const [volume, setVolume] = useState70((_a7 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a7 : 100);
31365
+ const [volume, setVolume] = useState70((_a8 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a8 : 100);
31379
31366
  const [showSlider, setShowSlider] = useState70(false);
31380
31367
  return /* @__PURE__ */ React163.createElement(
31381
31368
  Flex,
@@ -31826,7 +31813,7 @@ var ToggleChat = ({ isFullScreen = false }) => {
31826
31813
  return null;
31827
31814
  };
31828
31815
  var HLSView = () => {
31829
- var _a7, _b7, _c, _d, _e, _f, _g;
31816
+ var _a8, _b7, _c, _d, _e, _f, _g;
31830
31817
  const videoRef = useRef31(null);
31831
31818
  const hlsViewRef = useRef31();
31832
31819
  const { elements } = useRoomLayoutConferencingScreen();
@@ -31837,7 +31824,7 @@ var HLSView = () => {
31837
31824
  const { themeType } = useTheme();
31838
31825
  const [streamEnded, setStreamEnded] = useState71(false);
31839
31826
  let [hlsStatsState, setHlsStatsState] = useState71(null);
31840
- const hlsUrl = (_a7 = hlsState.variants[0]) == null ? void 0 : _a7.url;
31827
+ const hlsUrl = (_a8 = hlsState.variants[0]) == null ? void 0 : _a8.url;
31841
31828
  const [availableLayers, setAvailableLayers] = useState71([]);
31842
31829
  const [isVideoLive, setIsVideoLive] = useState71(true);
31843
31830
  const [isCaptionEnabled, setIsCaptionEnabled] = useState71(true);
@@ -31906,9 +31893,9 @@ var HLSView = () => {
31906
31893
  }, [hlsUrl]);
31907
31894
  const handleQuality = useCallback37(
31908
31895
  (quality) => {
31909
- var _a8;
31896
+ var _a9;
31910
31897
  if (hlsPlayer) {
31911
- setIsUserSelectedAuto(((_a8 = quality.height) == null ? void 0 : _a8.toString().toLowerCase()) === "auto");
31898
+ setIsUserSelectedAuto(((_a9 = quality.height) == null ? void 0 : _a9.toString().toLowerCase()) === "auto");
31912
31899
  hlsPlayer == null ? void 0 : hlsPlayer.setLayer(quality);
31913
31900
  }
31914
31901
  },
@@ -31924,9 +31911,9 @@ var HLSView = () => {
31924
31911
  const layerUpdatedHandler = ({ layer }) => {
31925
31912
  setCurrentSelectedQuality(layer);
31926
31913
  };
31927
- const metadataLoadedHandler = (_a8) => {
31928
- var _b8 = _a8, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31929
- var _a9;
31914
+ const metadataLoadedHandler = (_a9) => {
31915
+ var _b8 = _a9, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31916
+ var _a10;
31930
31917
  const parsePayload = (str) => {
31931
31918
  try {
31932
31919
  return JSON.parse(str);
@@ -31971,7 +31958,7 @@ var HLSView = () => {
31971
31958
  }
31972
31959
  switch (parsedPayload.type) {
31973
31960
  case EMOJI_REACTION_TYPE:
31974
- (_a9 = window.showFlyingEmoji) == null ? void 0 : _a9.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31961
+ (_a10 = window.showFlyingEmoji) == null ? void 0 : _a10.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31975
31962
  break;
31976
31963
  default: {
31977
31964
  const toast = {
@@ -32072,7 +32059,7 @@ var HLSView = () => {
32072
32059
  }, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
32073
32060
  const onSeekTo = useCallback37(
32074
32061
  (seek) => {
32075
- var _a8;
32062
+ var _a9;
32076
32063
  match13({ isLandscape, isMobile, seek }).with({ seek: -10, isMobile: false, isLandscape: false }, () => {
32077
32064
  setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekBackward: true }));
32078
32065
  setTimeout(() => {
@@ -32088,14 +32075,14 @@ var HLSView = () => {
32088
32075
  }));
32089
32076
  }, 1e3);
32090
32077
  }).otherwise(() => null);
32091
- hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a8 = videoRef.current) == null ? void 0 : _a8.currentTime) + seek);
32078
+ hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
32092
32079
  },
32093
32080
  [hoverControlsVisible, isLandscape, isMobile]
32094
32081
  );
32095
32082
  const onDoubleClickHandler = useCallback37(
32096
32083
  (event) => {
32097
- var _a8;
32098
- if (!(isMobile || isLandscape) || ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) !== HLSPlaylistType.DVR) {
32084
+ var _a9;
32085
+ if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== HLSPlaylistType.DVR) {
32099
32086
  return;
32100
32087
  }
32101
32088
  const sidePercentage = event.screenX * 100 / event.target.clientWidth;
@@ -32120,8 +32107,8 @@ var HLSView = () => {
32120
32107
  [hlsState == null ? void 0 : hlsState.variants, hoverControlsVisible, isLandscape, isMobile, onSeekTo]
32121
32108
  );
32122
32109
  const onClickHandler = useCallback37(() => __async(void 0, null, function* () {
32123
- var _a8;
32124
- match13({ isMobile, isLandscape, playlist_type: (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type }).with({ playlist_type: HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
32110
+ var _a9;
32111
+ match13({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type: HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
32125
32112
  if (isPaused) {
32126
32113
  yield hlsPlayer == null ? void 0 : hlsPlayer.play();
32127
32114
  } else {
@@ -32218,8 +32205,8 @@ var HLSView = () => {
32218
32205
  outline: "none"
32219
32206
  },
32220
32207
  onKeyDown: (event) => __async(void 0, null, function* () {
32221
- var _a8;
32222
- if (((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) === HLSPlaylistType.DVR) {
32208
+ var _a9;
32209
+ if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === HLSPlaylistType.DVR) {
32223
32210
  yield keyHandler(event);
32224
32211
  }
32225
32212
  }),
@@ -32491,7 +32478,7 @@ var SimpleQueue = class {
32491
32478
  this.storage = [];
32492
32479
  }
32493
32480
  enqueue(data3) {
32494
- var _a7;
32481
+ var _a8;
32495
32482
  if (!data3.transcript.trim()) {
32496
32483
  return;
32497
32484
  }
@@ -32503,7 +32490,7 @@ var SimpleQueue = class {
32503
32490
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32504
32491
  return;
32505
32492
  }
32506
- if (this.size() > 0 && ((_a7 = this.storage[this.size() - 1]) == null ? void 0 : _a7.final) === true) {
32493
+ if (this.size() > 0 && ((_a8 = this.storage[this.size() - 1]) == null ? void 0 : _a8.final) === true) {
32507
32494
  this.storage.push(data3);
32508
32495
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32509
32496
  return;
@@ -32637,11 +32624,11 @@ var CaptionsViewer = ({
32637
32624
  defaultPosition,
32638
32625
  setDefaultPosition
32639
32626
  }) => {
32640
- var _a7;
32627
+ var _a8;
32641
32628
  const { elements, screenType } = useRoomLayoutConferencingScreen();
32642
32629
  const isMobile = useMedia42(config.media.md);
32643
32630
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
32644
- const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
32631
+ const showCaptionAtTop = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && isChatOpen && isMobile;
32645
32632
  const [captionQueue] = useState72(new CaptionMaintainerQueue());
32646
32633
  const [currentData, setCurrentData] = useState72([]);
32647
32634
  const isCaptionEnabled = useIsCaptionEnabled();
@@ -32649,11 +32636,11 @@ var CaptionsViewer = ({
32649
32636
  const nodeRef = useRef32(null);
32650
32637
  useEffect61(() => {
32651
32638
  const timeInterval = setInterval(() => {
32652
- var _a8;
32639
+ var _a9;
32653
32640
  if (!captionQueue) {
32654
32641
  return;
32655
32642
  }
32656
- const data3 = (_a8 = captionQueue.captionData) == null ? void 0 : _a8.findPeerData();
32643
+ const data3 = (_a9 = captionQueue.captionData) == null ? void 0 : _a9.findPeerData();
32657
32644
  setCurrentData(data3);
32658
32645
  }, 1e3);
32659
32646
  return () => clearInterval(timeInterval);
@@ -32732,7 +32719,7 @@ var VideoStreamingSection = ({
32732
32719
  elements,
32733
32720
  hideControls = false
32734
32721
  }) => {
32735
- var _a7;
32722
+ var _a8;
32736
32723
  const localPeerRoleName = useHMSStore84(selectLocalPeerRoleName6);
32737
32724
  const isConnected = useHMSStore84(selectIsConnectedToRoom9);
32738
32725
  const isSharingScreen = useHMSStore84(selectIsLocalScreenShared2);
@@ -32810,8 +32797,8 @@ var VideoStreamingSection = ({
32810
32797
  ({ urlToIframe: urlToIframe2 }) => !!urlToIframe2,
32811
32798
  () => /* @__PURE__ */ React172.createElement(EmbedView, null)
32812
32799
  ).otherwise(() => {
32813
- var _a8;
32814
- return /* @__PURE__ */ React172.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
32800
+ var _a9;
32801
+ return /* @__PURE__ */ React172.createElement(GridLayout, __spreadValues({}, (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid));
32815
32802
  }),
32816
32803
  /* @__PURE__ */ React172.createElement(CaptionsViewer, { setDefaultPosition: setCaptionPosition, defaultPosition: captionPosition }),
32817
32804
  /* @__PURE__ */ React172.createElement(
@@ -32830,7 +32817,7 @@ var VideoStreamingSection = ({
32830
32817
  SidePane_default,
32831
32818
  {
32832
32819
  screenType,
32833
- tileProps: (_a7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a7.grid,
32820
+ tileProps: (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid,
32834
32821
  hideControls
32835
32822
  }
32836
32823
  )
@@ -33081,7 +33068,7 @@ var PreviousRoleInMetadata = () => {
33081
33068
 
33082
33069
  // src/Prebuilt/components/ConferenceScreen.tsx
33083
33070
  var ConferenceScreen = () => {
33084
- var _a7, _b7, _c, _d, _e, _f;
33071
+ var _a8, _b7, _c, _d, _e, _f;
33085
33072
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
33086
33073
  const screenProps = useRoomLayoutConferencingScreen();
33087
33074
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -33093,7 +33080,7 @@ var ConferenceScreen = () => {
33093
33080
  const footerRef = useRef33(null);
33094
33081
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
33095
33082
  const { requestPermission } = useAwayNotifications3();
33096
- const showChat = !!((_a7 = screenProps.elements) == null ? void 0 : _a7.chat);
33083
+ const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
33097
33084
  const autoRoomJoined = useRef33(isPreviewScreenEnabled);
33098
33085
  const isMobileHLSStream = useMobileHLSStream();
33099
33086
  const isLandscapeHLSStream = useLandscapeHLSStream();
@@ -33349,8 +33336,8 @@ var Init = () => {
33349
33336
  }, [toggleTheme]);
33350
33337
  useEffect67(() => {
33351
33338
  function resetHeight() {
33352
- var _a7;
33353
- document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
33339
+ var _a8;
33340
+ document.body.style.height = `${((_a8 = window.visualViewport) == null ? void 0 : _a8.height) || window.innerHeight}px`;
33354
33341
  }
33355
33342
  window.addEventListener("resize", resetHeight);
33356
33343
  resetHeight();
@@ -33545,8 +33532,8 @@ var FeedbackContent = ({
33545
33532
  }
33546
33533
  try {
33547
33534
  const reasons = [...selectedReasons].map((value) => {
33548
- var _a7, _b7;
33549
- return ((_b7 = (_a7 = ratings[indexSelected]) == null ? void 0 : _a7.reasons) == null ? void 0 : _b7[value]) || "";
33535
+ var _a8, _b7;
33536
+ return ((_b7 = (_a8 = ratings[indexSelected]) == null ? void 0 : _a8.reasons) == null ? void 0 : _b7[value]) || "";
33550
33537
  });
33551
33538
  yield hmsActions.submitSessionFeedback(
33552
33539
  {
@@ -34011,12 +33998,12 @@ var MwebLandscapePrompt = () => {
34011
33998
  const isLandscape = useMedia49(config.media.ls);
34012
33999
  const isLandscapeHLSStream = useLandscapeHLSStream();
34013
34000
  useEffect69(() => {
34014
- var _a7;
34001
+ var _a8;
34015
34002
  if (!isMobileUserAgent) {
34016
34003
  setShowMwebLandscapePrompt(false);
34017
34004
  return;
34018
34005
  }
34019
- if (!((_a7 = window.screen) == null ? void 0 : _a7.orientation)) {
34006
+ if (!((_a8 = window.screen) == null ? void 0 : _a8.orientation)) {
34020
34007
  setShowMwebLandscapePrompt(isLandscape && !isLandscapeHLSStream);
34021
34008
  return;
34022
34009
  }
@@ -34100,8 +34087,8 @@ var ChatNotifications = () => {
34100
34087
  const chatState = useHMSStore89(selectSessionStore13("chatState" /* CHAT_STATE */));
34101
34088
  const localPeerId = useHMSStore89(selectLocalPeerID14);
34102
34089
  useEffect70(() => {
34103
- var _a7, _b7;
34104
- if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
34090
+ var _a8, _b7;
34091
+ if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
34105
34092
  return;
34106
34093
  }
34107
34094
  const showToast = Date.now() - chatState.updatedAt < NOTIFICATION_TIME_DIFFERENCE;
@@ -34282,7 +34269,7 @@ var ChatAction = React188.forwardRef((_, ref) => {
34282
34269
  return /* @__PURE__ */ React188.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
34283
34270
  });
34284
34271
  var HandRaiseAction = React188.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
34285
- var _a7, _b7, _c;
34272
+ var _a8, _b7, _c;
34286
34273
  const hmsActions = useHMSActions55();
34287
34274
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
34288
34275
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
@@ -34293,7 +34280,7 @@ var HandRaiseAction = React188.forwardRef(({ id = "", isSingleHandRaise = true }
34293
34280
  on_stage_role,
34294
34281
  off_stage_roles = [],
34295
34282
  skip_preview_for_role_change = false
34296
- } = ((_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) || {};
34283
+ } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
34297
34284
  const onClickHandler = useCallback38(() => __async(void 0, null, function* () {
34298
34285
  if (isSingleHandRaise) {
34299
34286
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
@@ -34320,9 +34307,9 @@ var HandRaiseAction = React188.forwardRef(({ id = "", isSingleHandRaise = true }
34320
34307
  var ToastConfig = {
34321
34308
  PEER_JOINED: {
34322
34309
  single: function(notification) {
34323
- var _a7;
34310
+ var _a8;
34324
34311
  return {
34325
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
34312
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} joined`,
34326
34313
  icon: /* @__PURE__ */ React188.createElement(PeopleAddIcon4, null)
34327
34314
  };
34328
34315
  },
@@ -34335,9 +34322,9 @@ var ToastConfig = {
34335
34322
  },
34336
34323
  PEER_LEFT: {
34337
34324
  single: function(notification) {
34338
- var _a7;
34325
+ var _a8;
34339
34326
  return {
34340
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
34327
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} left`,
34341
34328
  icon: /* @__PURE__ */ React188.createElement(PeopleRemoveIcon4, null)
34342
34329
  };
34343
34330
  },
@@ -34350,41 +34337,41 @@ var ToastConfig = {
34350
34337
  },
34351
34338
  RAISE_HAND: {
34352
34339
  single: (notification) => {
34353
- var _a7;
34340
+ var _a8;
34354
34341
  return {
34355
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
34342
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
34356
34343
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null)
34357
34344
  };
34358
34345
  },
34359
34346
  multiple: (notifications) => {
34360
- var _a7;
34347
+ var _a8;
34361
34348
  const count = new Set(notifications.map((notification) => {
34362
- var _a8;
34363
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
34349
+ var _a9;
34350
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
34364
34351
  })).size;
34365
34352
  return {
34366
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34353
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34367
34354
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null)
34368
34355
  };
34369
34356
  }
34370
34357
  },
34371
34358
  RAISE_HAND_HLS: {
34372
34359
  single: (notification) => {
34373
- var _a7, _b7;
34360
+ var _a8, _b7;
34374
34361
  return {
34375
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
34362
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
34376
34363
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null),
34377
34364
  action: /* @__PURE__ */ React188.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
34378
34365
  };
34379
34366
  },
34380
34367
  multiple: (notifications) => {
34381
- var _a7;
34368
+ var _a8;
34382
34369
  const count = new Set(notifications.map((notification) => {
34383
- var _a8;
34384
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
34370
+ var _a9;
34371
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
34385
34372
  })).size;
34386
34373
  return {
34387
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34374
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34388
34375
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null),
34389
34376
  action: /* @__PURE__ */ React188.createElement(HandRaiseAction, { isSingleHandRaise: false })
34390
34377
  };
@@ -34392,9 +34379,9 @@ var ToastConfig = {
34392
34379
  },
34393
34380
  NEW_MESSAGE: {
34394
34381
  single: (notification) => {
34395
- var _a7;
34382
+ var _a8;
34396
34383
  return {
34397
- title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
34384
+ title: `New message from ${(_a8 = notification.data) == null ? void 0 : _a8.senderName}`,
34398
34385
  icon: /* @__PURE__ */ React188.createElement(ChatUnreadIcon2, null),
34399
34386
  action: /* @__PURE__ */ React188.createElement(ChatAction, null)
34400
34387
  };
@@ -34493,7 +34480,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
34493
34480
 
34494
34481
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
34495
34482
  var HandRaisedNotifications = () => {
34496
- var _a7, _b7;
34483
+ var _a8, _b7;
34497
34484
  const notification = useHMSNotifications6(HMSNotificationTypes6.HAND_RAISE_CHANGED);
34498
34485
  const roomState = useHMSStore91(selectRoomState9);
34499
34486
  const vanillaStore = useHMSVanillaStore17();
@@ -34501,9 +34488,9 @@ var HandRaisedNotifications = () => {
34501
34488
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
34502
34489
  const amIScreenSharing = useHMSStore91(selectIsLocalScreenShared3);
34503
34490
  const { showNotification } = useAwayNotifications4();
34504
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34491
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34505
34492
  useEffect74(() => {
34506
- var _a8;
34493
+ var _a9;
34507
34494
  if (!(notification == null ? void 0 : notification.data)) {
34508
34495
  return;
34509
34496
  }
@@ -34513,7 +34500,7 @@ var HandRaisedNotifications = () => {
34513
34500
  const hasPeerHandRaised = vanillaStore.getState(selectHasPeerHandRaised4(notification.data.id));
34514
34501
  const peer = vanillaStore.getState(selectPeerByID6(notification.data.id));
34515
34502
  if (hasPeerHandRaised) {
34516
- const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a8 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a8.includes(peer.roleName));
34503
+ const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a9 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a9.includes(peer.roleName));
34517
34504
  ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
34518
34505
  console.debug("Metadata updated", notification.data);
34519
34506
  }
@@ -34576,15 +34563,15 @@ init_define_process_env();
34576
34563
  import { useEffect as useEffect76 } from "react";
34577
34564
  import { useAwayNotifications as useAwayNotifications5, useHMSNotifications as useHMSNotifications8, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
34578
34565
  var MessageNotifications = () => {
34579
- var _a7, _b7;
34580
- const notification = useHMSNotifications8(Mr.NEW_MESSAGE);
34581
- const amIScreenSharing = useHMSStore92(Jr);
34582
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34566
+ var _a8, _b7;
34567
+ const notification = useHMSNotifications8(Er.NEW_MESSAGE);
34568
+ const amIScreenSharing = useHMSStore92(Yr);
34569
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34583
34570
  const { pipWindow } = usePIPWindow();
34584
34571
  const { showNotification } = useAwayNotifications5();
34585
34572
  useEffect76(() => {
34586
- var _a8;
34587
- if (notification && amIScreenSharing && !((_a8 = notification.data) == null ? void 0 : _a8.ignored) && !pipWindow) {
34573
+ var _a9;
34574
+ if (notification && amIScreenSharing && !((_a9 = notification.data) == null ? void 0 : _a9.ignored) && !pipWindow) {
34588
34575
  showNotification(`New message from ${notification.data.senderName}`, {
34589
34576
  body: notification.data.message,
34590
34577
  icon: logoURL
@@ -34783,7 +34770,7 @@ var ReconnectNotifications = () => {
34783
34770
  const notification = useHMSNotifications12(notificationTypes3);
34784
34771
  const prevErrorCode = useRef34(0);
34785
34772
  useEffect80(() => {
34786
- var _a7, _b7;
34773
+ var _a8, _b7;
34787
34774
  if (!notification) {
34788
34775
  return;
34789
34776
  }
@@ -34793,7 +34780,7 @@ var ReconnectNotifications = () => {
34793
34780
  ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
34794
34781
  );
34795
34782
  } else if (notification.type === HMSNotificationTypes11.RECONNECTING) {
34796
- prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
34783
+ prevErrorCode.current = ((_a8 = notification.data) == null ? void 0 : _a8.code) || 0;
34797
34784
  notificationId = ToastManager.replaceToast(
34798
34785
  notificationId,
34799
34786
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
@@ -34811,11 +34798,11 @@ var RoleChangeNotification = () => {
34811
34798
  const notification = useHMSNotifications13(HMSNotificationTypes12.ROLE_UPDATED);
34812
34799
  const updateRoomLayoutForRole = useUpdateRoomLayout();
34813
34800
  useEffect81(() => {
34814
- var _a7, _b7;
34801
+ var _a8, _b7;
34815
34802
  if (!(notification == null ? void 0 : notification.data)) {
34816
34803
  return;
34817
34804
  }
34818
- if (((_a7 = notification.data) == null ? void 0 : _a7.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34805
+ if (((_a8 = notification.data) == null ? void 0 : _a8.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34819
34806
  ToastManager.addToast({
34820
34807
  title: `You are now a ${notification.data.roleName}`
34821
34808
  });
@@ -34894,7 +34881,7 @@ var notificationTypes5 = [
34894
34881
  var TrackNotifications = () => {
34895
34882
  const notification = useHMSNotifications15(notificationTypes5);
34896
34883
  useEffect83(() => {
34897
- var _a7, _b7;
34884
+ var _a8, _b7;
34898
34885
  if (notification) {
34899
34886
  switch (notification.type) {
34900
34887
  case HMSNotificationTypes14.TRACK_ADDED:
@@ -34905,7 +34892,7 @@ var TrackNotifications = () => {
34905
34892
  break;
34906
34893
  case HMSNotificationTypes14.CHANGE_TRACK_STATE_REQUEST:
34907
34894
  {
34908
- const track = (_a7 = notification.data) == null ? void 0 : _a7.track;
34895
+ const track = (_a8 = notification.data) == null ? void 0 : _a8.track;
34909
34896
  if (!notification.data.enabled) {
34910
34897
  ToastManager.addToast({
34911
34898
  title: `Your ${track.source} ${track.type} was muted by
@@ -35084,7 +35071,7 @@ init_define_process_env();
35084
35071
  import React197 from "react";
35085
35072
  import { useSearchParam } from "react-use";
35086
35073
  var PreviewScreen = () => {
35087
- var _a7, _b7, _c;
35074
+ var _a8, _b7, _c;
35088
35075
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
35089
35076
  const skipPreview = !isPreviewScreenEnabled;
35090
35077
  const previewAsRole = useSearchParam(QUERY_PARAM_PREVIEW_AS_ROLE);
@@ -35092,7 +35079,7 @@ var PreviewScreen = () => {
35092
35079
  const initialName = userName || (skipPreview ? "Beam" : "");
35093
35080
  const authToken = useAuthToken();
35094
35081
  const roomLayout = useRoomLayout();
35095
- const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
35082
+ const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
35096
35083
  return /* @__PURE__ */ React197.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React197.createElement(
35097
35084
  Flex,
35098
35085
  {
@@ -35112,8 +35099,8 @@ import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as us
35112
35099
  // src/Prebuilt/components/Toast/Toast.jsx
35113
35100
  init_define_process_env();
35114
35101
  import React198 from "react";
35115
- var Toast2 = (_a7) => {
35116
- var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
35102
+ var Toast2 = (_a8) => {
35103
+ var _b7 = _a8, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
35117
35104
  return /* @__PURE__ */ React198.createElement(
35118
35105
  Toast.HMSToast,
35119
35106
  __spreadValues({
@@ -35407,7 +35394,7 @@ var HMSPrebuilt = React204.forwardRef(
35407
35394
  onLeave,
35408
35395
  onJoin
35409
35396
  }, ref) => {
35410
- var _a7, _b7, _c, _d;
35397
+ var _a8, _b7, _c, _d;
35411
35398
  const reactiveStore = useRef36();
35412
35399
  const [hydrated, setHydrated] = React204.useState(false);
35413
35400
  useEffect89(() => {
@@ -35433,8 +35420,8 @@ var HMSPrebuilt = React204.forwardRef(
35433
35420
  }, [ref]);
35434
35421
  useEffect89(() => {
35435
35422
  return () => {
35436
- var _a8;
35437
- (_a8 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a8.hmsActions.leave();
35423
+ var _a9;
35424
+ (_a9 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a9.hmsActions.leave();
35438
35425
  };
35439
35426
  }, []);
35440
35427
  const endpointsObj = endpoints;
@@ -35482,16 +35469,16 @@ var HMSPrebuilt = React204.forwardRef(
35482
35469
  HMSRoomProvider,
35483
35470
  {
35484
35471
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
35485
- actions: (_a7 = reactiveStore.current) == null ? void 0 : _a7.hmsActions,
35472
+ actions: (_a8 = reactiveStore.current) == null ? void 0 : _a8.hmsActions,
35486
35473
  store: (_b7 = reactiveStore.current) == null ? void 0 : _b7.hmsStore,
35487
35474
  notifications: (_c = reactiveStore.current) == null ? void 0 : _c.hmsNotifications,
35488
35475
  stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
35489
35476
  leaveOnUnload
35490
35477
  },
35491
35478
  /* @__PURE__ */ React204.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React204.createElement(RoomLayoutContext.Consumer, null, (data3) => {
35492
- var _a8;
35479
+ var _a9;
35493
35480
  const layout = data3 == null ? void 0 : data3.layout;
35494
- const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
35481
+ const theme2 = ((_a9 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a9[0]) || {};
35495
35482
  const { typography: typography2 } = layout || {};
35496
35483
  let fontFamily = ["sans-serif"];
35497
35484
  if (typography2 == null ? void 0 : typography2.font_family) {
@@ -35705,7 +35692,7 @@ init_define_process_env();
35705
35692
  var import_prop_types = __toESM(require_prop_types());
35706
35693
  import React207, { useRef as useRef37, useState as useState86 } from "react";
35707
35694
  var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
35708
- var _a7, _b7;
35695
+ var _a8, _b7;
35709
35696
  const [open, setOpen] = useState86(false);
35710
35697
  const ref = useRef37(null);
35711
35698
  return /* @__PURE__ */ React207.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React207.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React207.createElement(
@@ -35725,7 +35712,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
35725
35712
  {
35726
35713
  ref,
35727
35714
  icon,
35728
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
35715
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
35729
35716
  open
35730
35717
  }
35731
35718
  ), /* @__PURE__ */ React207.createElement(Dropdown.Portal, null, /* @__PURE__ */ React207.createElement(
@@ -35770,11 +35757,11 @@ DeviceSelector2.propTypes = {
35770
35757
  // src/Diagnostics/AudioTest.tsx
35771
35758
  var SelectContainer = ({ children }) => /* @__PURE__ */ React208.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
35772
35759
  var MicTest = ({ setError }) => {
35773
- var _a7, _b7;
35760
+ var _a8, _b7;
35774
35761
  const { hmsDiagnostics } = useDiagnostics();
35775
35762
  const devices = useHMSStore100(selectDevices);
35776
35763
  const [isRecording, setIsRecording] = useState87(false);
35777
- const [selectedMic, setSelectedMic] = useState87(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
35764
+ const [selectedMic, setSelectedMic] = useState87(((_a8 = devices.audioInput[0]) == null ? void 0 : _a8.deviceId) || "default");
35778
35765
  const trackID = useHMSStore100(selectLocalAudioTrackID2);
35779
35766
  const audioLevel = useHMSStore100(selectTrackAudioByID2(trackID));
35780
35767
  const { audioOutputDeviceId } = useHMSStore100(selectLocalMediaSettings);
@@ -35851,7 +35838,7 @@ var MicTest = ({ setError }) => {
35851
35838
  ))));
35852
35839
  };
35853
35840
  var SpeakerTest = () => {
35854
- var _a7;
35841
+ var _a8;
35855
35842
  const actions = useHMSActions62();
35856
35843
  const devices = useHMSStore100(selectDevices);
35857
35844
  const { audioOutputDeviceId } = useHMSStore100(selectLocalMediaSettings);
@@ -35863,7 +35850,7 @@ var SpeakerTest = () => {
35863
35850
  {
35864
35851
  title: "Speaker (Output)",
35865
35852
  devices: devices.audioOutput,
35866
- selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
35853
+ selection: audioOutputDeviceId || ((_a8 = devices.audioOutput[0]) == null ? void 0 : _a8.deviceId),
35867
35854
  icon: /* @__PURE__ */ React208.createElement(SpeakerIcon5, null),
35868
35855
  onChange: (deviceId) => {
35869
35856
  actions.setAudioOutputDevice(deviceId);
@@ -35987,7 +35974,7 @@ var browserTypeIconInfo = {
35987
35974
  };
35988
35975
  var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ React209.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ React209.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ React209.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ React209.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ React209.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ React209.createElement(Text, null, value)));
35989
35976
  var BrowserTest = () => {
35990
- var _a7, _b7, _c, _d;
35977
+ var _a8, _b7, _c, _d;
35991
35978
  const { hmsDiagnostics, updateStep } = useDiagnostics();
35992
35979
  const [error, setError] = useState88();
35993
35980
  useEffect91(() => {
@@ -36002,7 +35989,7 @@ var BrowserTest = () => {
36002
35989
  CheckDetails,
36003
35990
  {
36004
35991
  title: "Browser",
36005
- iconURL: parsedUserAgent4.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = parsedUserAgent4.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
35992
+ iconURL: parsedUserAgent4.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a8 = parsedUserAgent4.getBrowser().name) == null ? void 0 : _a8.toLowerCase()]) == null ? void 0 : _b7.icon),
36006
35993
  value: `${parsedUserAgent4.getBrowser().name} ${parsedUserAgent4.getBrowser().version}`
36007
35994
  }
36008
35995
  ), /* @__PURE__ */ React209.createElement(
@@ -36073,7 +36060,7 @@ var DetailedInfo = ({
36073
36060
  return /* @__PURE__ */ React210.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ React210.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ React210.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ React210.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ React210.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ React210.createElement(Text, { variant: "caption" }, value)));
36074
36061
  };
36075
36062
  var MediaServerResult = ({ result }) => {
36076
- var _a7, _b7, _c, _d;
36063
+ var _a8, _b7, _c, _d;
36077
36064
  return /* @__PURE__ */ React210.createElement(
36078
36065
  ConnectivityTestStepResult,
36079
36066
  {
@@ -36084,7 +36071,7 @@ var MediaServerResult = ({ result }) => {
36084
36071
  DetailedInfo,
36085
36072
  {
36086
36073
  title: "Media Captured",
36087
- value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
36074
+ value: ((_a8 = result == null ? void 0 : result.stats) == null ? void 0 : _a8.audio.bytesSent) ? "Yes" : "No",
36088
36075
  Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
36089
36076
  }
36090
36077
  ), /* @__PURE__ */ React210.createElement(
@@ -36114,10 +36101,10 @@ var SignallingResult = ({ result }) => {
36114
36101
  ), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
36115
36102
  };
36116
36103
  var AudioStats = ({ stats }) => {
36117
- return /* @__PURE__ */ React210.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React210.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
36104
+ return /* @__PURE__ */ React210.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React210.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter} s` })));
36118
36105
  };
36119
36106
  var VideoStats = ({ stats }) => {
36120
- return /* @__PURE__ */ React210.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React210.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
36107
+ return /* @__PURE__ */ React210.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React210.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter} s` })));
36121
36108
  };
36122
36109
  var Footer3 = ({
36123
36110
  error,
@@ -36132,13 +36119,13 @@ var ConnectivityTestReport = ({
36132
36119
  progress,
36133
36120
  startTest
36134
36121
  }) => {
36135
- var _a7, _b7, _c, _d;
36122
+ var _a8, _b7, _c, _d;
36136
36123
  if (error) {
36137
36124
  return /* @__PURE__ */ React210.createElement(React210.Fragment, null, /* @__PURE__ */ React210.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React210.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ React210.createElement(CrossCircleIcon4, null)), /* @__PURE__ */ React210.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ React210.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ React210.createElement(Footer3, { restart: startTest, error }));
36138
36125
  }
36139
36126
  if (result) {
36140
36127
  console.log(result);
36141
- return /* @__PURE__ */ React210.createElement(React210.Fragment, null, /* @__PURE__ */ React210.createElement(TestContainer, null, /* @__PURE__ */ React210.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React210.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React210.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React210.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React210.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React210.createElement(Footer3, { result, restart: startTest, error }));
36128
+ return /* @__PURE__ */ React210.createElement(React210.Fragment, null, /* @__PURE__ */ React210.createElement(TestContainer, null, /* @__PURE__ */ React210.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React210.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React210.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React210.createElement(AudioStats, { stats: (_b7 = (_a8 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a8.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React210.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React210.createElement(Footer3, { result, restart: startTest, error }));
36142
36129
  }
36143
36130
  if (progress !== void 0) {
36144
36131
  return /* @__PURE__ */ React210.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React210.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ React210.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ React210.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ React210.createElement(