@100mslive/roomkit-react 0.3.4 → 0.3.5-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/{HLSView-6NEUUQBX.js → HLSView-YAR57OPP.js} +5 -3
  2. package/dist/{HLSView-6NEUUQBX.js.map → HLSView-YAR57OPP.js.map} +2 -2
  3. package/dist/Prebuilt/components/RaiseHand.d.ts +1 -1
  4. package/dist/Prebuilt/components/hooks/useMetadata.d.ts +8 -0
  5. package/dist/{chunk-JF6QG5V5.js → chunk-MXPCXPZQ.js} +484 -456
  6. package/dist/chunk-MXPCXPZQ.js.map +7 -0
  7. package/dist/fixtures/peers.d.ts +1 -1
  8. package/dist/index.cjs.js +920 -896
  9. package/dist/index.cjs.js.map +4 -4
  10. package/dist/index.js +1 -1
  11. package/dist/meta.cjs.json +97 -72
  12. package/dist/meta.esbuild.json +105 -80
  13. package/package.json +7 -7
  14. package/src/Avatar/Avatar.tsx +3 -3
  15. package/src/Avatar/getAvatarBg.ts +11 -7
  16. package/src/Prebuilt/App.tsx +5 -6
  17. package/src/Prebuilt/AppStateContext.tsx +27 -14
  18. package/src/Prebuilt/components/AuthToken.jsx +27 -26
  19. package/src/Prebuilt/components/Chat/ChatFooter.tsx +2 -4
  20. package/src/Prebuilt/components/Chat/ChatSelector.tsx +4 -1
  21. package/src/Prebuilt/components/ConferenceScreen.tsx +1 -4
  22. package/src/Prebuilt/components/Connection/ConnectionIndicator.tsx +3 -2
  23. package/src/Prebuilt/components/Connection/TileConnection.tsx +14 -2
  24. package/src/Prebuilt/components/Footer/Footer.tsx +1 -4
  25. package/src/Prebuilt/components/Footer/ParticipantList.tsx +14 -0
  26. package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +1 -2
  27. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +1 -5
  28. package/src/Prebuilt/components/PreviousRoleInMetadata.tsx +0 -1
  29. package/src/Prebuilt/components/RaiseHand.tsx +7 -1
  30. package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +0 -1
  31. package/src/Prebuilt/components/hooks/{useMetadata.jsx → useMetadata.tsx} +2 -8
  32. package/src/Prebuilt/layouts/HLSView.jsx +4 -1
  33. package/src/Prebuilt/layouts/VideoStreamingSection.tsx +22 -15
  34. package/src/Stats/Stats.tsx +12 -2
  35. package/src/fixtures/peers.ts +2 -1
  36. package/dist/chunk-JF6QG5V5.js.map +0 -7
@@ -43,13 +43,13 @@ var __export = (target, all) => {
43
43
  for (var name in all)
44
44
  __defProp(target, name, { get: all[name], enumerable: true });
45
45
  };
46
- var __copyProps = (to, from, except, desc) => {
46
+ var __copyProps = (to2, from, except, desc) => {
47
47
  if (from && typeof from === "object" || typeof from === "function") {
48
48
  for (let key of __getOwnPropNames(from))
49
- if (!__hasOwnProp.call(to, key) && key !== except)
50
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
49
+ if (!__hasOwnProp.call(to2, key) && key !== except)
50
+ __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
51
51
  }
52
- return to;
52
+ return to2;
53
53
  };
54
54
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
55
55
  // If the importer is in node compatibility mode or this is not an ESM
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
106
106
  var define_process_env_default;
107
107
  var init_define_process_env = __esm({
108
108
  "<define:process.env>"() {
109
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_9c29dcb4-e4cc-4e3c-8b54-ad39147e5f93", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", 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", 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.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", 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.4", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_9c29dcb4-e4cc-4e3c-8b54-ad39147e5f93", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.4", 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.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "596", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240324.2.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.1/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:20585", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", 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.4", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8434472780", 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: "7c3e871297668d3dc11759d88a888027967715ac", 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: "5881a7e607be0fbd1fcf5a1777f57e03b6166ac21f68a6bbace5c9151a4cdf5a", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", 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--1711449065758-0.44201724501907647:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711449065565-0.7655674373809525:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711449043575-0.6635057017834785:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711449043398-0.7109108534118918:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/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.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_275be91c-7c85-4eae-b508-4ae09c4a1490", INVOCATION_ID: "d86ebf1fa70142b291f9a4e48bfa4e02", 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: "495", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", 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_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 201", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", 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_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.4", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.4", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "7c3e871297668d3dc11759d88a888027967715ac", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "raviteja83", 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_9c29dcb4-e4cc-4e3c-8b54-ad39147e5f93", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", 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_9c29dcb4-e4cc-4e3c-8b54-ad39147e5f93", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/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__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_9c29dcb4-e4cc-4e3c-8b54-ad39147e5f93" };
109
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c6d530da-d1a0-4899-8dbe-766d2b6acbf7", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", 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", 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.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", 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.5-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c6d530da-d1a0-4899-8dbe-766d2b6acbf7", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.5-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", 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: "602", 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_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240324.2.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.1/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:18117", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", 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.5-alpha.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8453051036", 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: "cbc32d4a832f2752887e91de078493454a49d69f", 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: "eca2f4fdb179150b60d1cb30adb878e368a445c7c3754f56b108b090082caba8", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1711548252093-0.372965946857686:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711548251897-0.10565373959466906:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711548229899-0.4821411975263181:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711548229715-0.8563068177002997:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/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.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_b9a6bd77-cd5d-4ec1-b0f8-b74d4f651358", INVOCATION_ID: "9235b5de3f714a56bf0d82ad60799896", 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: "497", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", 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_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 500", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", 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_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.5-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.5-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "cbc32d4a832f2752887e91de078493454a49d69f", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_c6d530da-d1a0-4899-8dbe-766d2b6acbf7", 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_c6d530da-d1a0-4899-8dbe-766d2b6acbf7", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.169+2/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__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_c6d530da-d1a0-4899-8dbe-766d2b6acbf7" };
110
110
  }
111
111
  });
112
112
 
@@ -2928,8 +2928,8 @@ var require_lodash = __commonJS({
2928
2928
  return { "start": start, "end": end };
2929
2929
  }
2930
2930
  function getWrapDetails(source) {
2931
- var match13 = source.match(reWrapDetails);
2932
- return match13 ? match13[1].split(reSplitDetails) : [];
2931
+ var match16 = source.match(reWrapDetails);
2932
+ return match16 ? match16[1].split(reSplitDetails) : [];
2933
2933
  }
2934
2934
  function hasPath(object, path, hasFunc) {
2935
2935
  path = castPath(path, object);
@@ -3197,8 +3197,8 @@ var require_lodash = __commonJS({
3197
3197
  if (string.charCodeAt(0) === 46) {
3198
3198
  result2.push("");
3199
3199
  }
3200
- string.replace(rePropName, function(match13, number, quote, subString) {
3201
- result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match13);
3200
+ string.replace(rePropName, function(match16, number, quote, subString) {
3201
+ result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match16);
3202
3202
  });
3203
3203
  return result2;
3204
3204
  });
@@ -4764,7 +4764,7 @@ var require_lodash = __commonJS({
4764
4764
  "g"
4765
4765
  );
4766
4766
  var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
4767
- string.replace(reDelimiters, function(match13, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
4767
+ string.replace(reDelimiters, function(match16, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
4768
4768
  interpolateValue || (interpolateValue = esTemplateValue);
4769
4769
  source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
4770
4770
  if (escapeValue) {
@@ -4778,8 +4778,8 @@ var require_lodash = __commonJS({
4778
4778
  if (interpolateValue) {
4779
4779
  source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
4780
4780
  }
4781
- index = offset + match13.length;
4782
- return match13;
4781
+ index = offset + match16.length;
4782
+ return match16;
4783
4783
  });
4784
4784
  source += "';\n";
4785
4785
  var variable = hasOwnProperty.call(options, "variable") && options.variable;
@@ -4867,13 +4867,13 @@ var require_lodash = __commonJS({
4867
4867
  }
4868
4868
  if (isRegExp(separator)) {
4869
4869
  if (string.slice(end).search(separator)) {
4870
- var match13, substring = result2;
4870
+ var match16, substring = result2;
4871
4871
  if (!separator.global) {
4872
4872
  separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g");
4873
4873
  }
4874
4874
  separator.lastIndex = 0;
4875
- while (match13 = separator.exec(substring)) {
4876
- var newEnd = match13.index;
4875
+ while (match16 = separator.exec(substring)) {
4876
+ var newEnd = match16.index;
4877
4877
  }
4878
4878
  result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
4879
4879
  }
@@ -5628,37 +5628,37 @@ var require_ua_parser = __commonJS({
5628
5628
  }
5629
5629
  };
5630
5630
  var rgxMapper = function(ua, arrays) {
5631
- var i = 0, j, k2, p, q2, matches, match13;
5631
+ var i = 0, j2, k2, p, q2, matches, match16;
5632
5632
  while (i < arrays.length && !matches) {
5633
5633
  var regex = arrays[i], props = arrays[i + 1];
5634
- j = k2 = 0;
5635
- while (j < regex.length && !matches) {
5636
- if (!regex[j]) {
5634
+ j2 = k2 = 0;
5635
+ while (j2 < regex.length && !matches) {
5636
+ if (!regex[j2]) {
5637
5637
  break;
5638
5638
  }
5639
- matches = regex[j++].exec(ua);
5639
+ matches = regex[j2++].exec(ua);
5640
5640
  if (!!matches) {
5641
5641
  for (p = 0; p < props.length; p++) {
5642
- match13 = matches[++k2];
5642
+ match16 = matches[++k2];
5643
5643
  q2 = props[p];
5644
5644
  if (typeof q2 === OBJ_TYPE && q2.length > 0) {
5645
5645
  if (q2.length === 2) {
5646
5646
  if (typeof q2[1] == FUNC_TYPE) {
5647
- this[q2[0]] = q2[1].call(this, match13);
5647
+ this[q2[0]] = q2[1].call(this, match16);
5648
5648
  } else {
5649
5649
  this[q2[0]] = q2[1];
5650
5650
  }
5651
5651
  } else if (q2.length === 3) {
5652
5652
  if (typeof q2[1] === FUNC_TYPE && !(q2[1].exec && q2[1].test)) {
5653
- this[q2[0]] = match13 ? q2[1].call(this, match13, q2[2]) : undefined2;
5653
+ this[q2[0]] = match16 ? q2[1].call(this, match16, q2[2]) : undefined2;
5654
5654
  } else {
5655
- this[q2[0]] = match13 ? match13.replace(q2[1], q2[2]) : undefined2;
5655
+ this[q2[0]] = match16 ? match16.replace(q2[1], q2[2]) : undefined2;
5656
5656
  }
5657
5657
  } else if (q2.length === 4) {
5658
- this[q2[0]] = match13 ? q2[3].call(this, match13.replace(q2[1], q2[2])) : undefined2;
5658
+ this[q2[0]] = match16 ? q2[3].call(this, match16.replace(q2[1], q2[2])) : undefined2;
5659
5659
  }
5660
5660
  } else {
5661
- this[q2] = match13 ? match13 : undefined2;
5661
+ this[q2] = match16 ? match16 : undefined2;
5662
5662
  }
5663
5663
  }
5664
5664
  }
@@ -5668,8 +5668,8 @@ var require_ua_parser = __commonJS({
5668
5668
  }, strMapper = function(str, map) {
5669
5669
  for (var i in map) {
5670
5670
  if (typeof map[i] === OBJ_TYPE && map[i].length > 0) {
5671
- for (var j = 0; j < map[i].length; j++) {
5672
- if (has(map[i][j], str)) {
5671
+ for (var j2 = 0; j2 < map[i].length; j2++) {
5672
+ if (has(map[i][j2], str)) {
5673
5673
  return i === UNKNOWN ? undefined2 : i;
5674
5674
  }
5675
5675
  }
@@ -6826,18 +6826,18 @@ var require_ua_parser = __commonJS({
6826
6826
  window2.UAParser = UAParser;
6827
6827
  }
6828
6828
  }
6829
- var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6830
- if ($ && !$.ua) {
6829
+ var $2 = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6830
+ if ($2 && !$2.ua) {
6831
6831
  var parser = new UAParser();
6832
- $.ua = parser.getResult();
6833
- $.ua.get = function() {
6832
+ $2.ua = parser.getResult();
6833
+ $2.ua.get = function() {
6834
6834
  return parser.getUA();
6835
6835
  };
6836
- $.ua.set = function(ua) {
6836
+ $2.ua.set = function(ua) {
6837
6837
  parser.setUA(ua);
6838
6838
  var result = parser.getResult();
6839
6839
  for (var prop in result) {
6840
- $.ua[prop] = result[prop];
6840
+ $2.ua[prop] = result[prop];
6841
6841
  }
6842
6842
  };
6843
6843
  }
@@ -7693,8 +7693,8 @@ var require_sdp = __commonJS({
7693
7693
  const parsed = {};
7694
7694
  let kv;
7695
7695
  const parts = line.substring(line.indexOf(" ") + 1).split(";");
7696
- for (let j = 0; j < parts.length; j++) {
7697
- kv = parts[j].trim().split("=");
7696
+ for (let j2 = 0; j2 < parts.length; j2++) {
7697
+ kv = parts[j2].trim().split("=");
7698
7698
  parsed[kv[0].trim()] = kv[1];
7699
7699
  }
7700
7700
  return parsed;
@@ -8636,13 +8636,13 @@ var require_parser = __commonJS({
8636
8636
  var toIntIfInt = function(v2) {
8637
8637
  return String(Number(v2)) === v2 ? Number(v2) : v2;
8638
8638
  };
8639
- var attachProperties = function(match13, location, names, rawName) {
8639
+ var attachProperties = function(match16, location, names, rawName) {
8640
8640
  if (rawName && !names) {
8641
- location[rawName] = toIntIfInt(match13[1]);
8641
+ location[rawName] = toIntIfInt(match16[1]);
8642
8642
  } else {
8643
8643
  for (var i = 0; i < names.length; i += 1) {
8644
- if (match13[i + 1] != null) {
8645
- location[names[i]] = toIntIfInt(match13[i + 1]);
8644
+ if (match16[i + 1] != null) {
8645
+ location[names[i]] = toIntIfInt(match16[i + 1]);
8646
8646
  }
8647
8647
  }
8648
8648
  }
@@ -8674,8 +8674,8 @@ var require_parser = __commonJS({
8674
8674
  media.push({ rtp: [], fmtp: [] });
8675
8675
  location = media[media.length - 1];
8676
8676
  }
8677
- for (var j = 0; j < (grammar[type] || []).length; j += 1) {
8678
- var obj = grammar[type][j];
8677
+ for (var j2 = 0; j2 < (grammar[type] || []).length; j2 += 1) {
8678
+ var obj = grammar[type][j2];
8679
8679
  if (obj.reg.test(content)) {
8680
8680
  return parseReg(obj, location, content);
8681
8681
  }
@@ -9860,7 +9860,7 @@ var getInitials = (name) => {
9860
9860
  if (!name) {
9861
9861
  return void 0;
9862
9862
  } else {
9863
- return (_c = (_b7 = (_a8 = name.trim().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();
9863
+ 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();
9864
9864
  }
9865
9865
  };
9866
9866
  var getAvatarBg = (name) => {
@@ -9928,12 +9928,12 @@ var StyledAvatar = styled("div", __spreadProps(__spreadValues({}, flexCenter), {
9928
9928
  }));
9929
9929
  var Avatar = (_a8) => {
9930
9930
  var _b7 = _a8, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
9931
- const { initials } = getAvatarBg(name);
9932
- let { color } = getAvatarBg(name);
9931
+ const info = getAvatarBg(name);
9932
+ let { color } = info;
9933
9933
  if (!name) {
9934
9934
  color = "#7E47EB";
9935
9935
  }
9936
- return /* @__PURE__ */ React4.createElement(StyledAvatar, __spreadValues({ css: __spreadValues({ bg: color }, css2) }, props), initials || /* @__PURE__ */ React4.createElement(PersonIcon, { height: 40, width: 40 }));
9936
+ return /* @__PURE__ */ React4.createElement(StyledAvatar, __spreadValues({ css: __spreadValues({ bg: color }, css2) }, props), info.initials || /* @__PURE__ */ React4.createElement(PersonIcon, { height: 40, width: 40 }));
9937
9937
  };
9938
9938
 
9939
9939
  // src/Divider/index.ts
@@ -11172,11 +11172,11 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
11172
11172
  return "-";
11173
11173
  }
11174
11174
  const k2 = 1024;
11175
- const dm2 = decimals < 0 ? 0 : decimals;
11175
+ const dm = decimals < 0 ? 0 : decimals;
11176
11176
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
11177
11177
  let i = Math.floor(Math.log(bytes) / Math.log(k2));
11178
11178
  i === 0 && i++;
11179
- return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(dm2))} ${sizes[i]}`;
11179
+ return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(dm))} ${sizes[i]}`;
11180
11180
  };
11181
11181
 
11182
11182
  // src/Stats/StyledStats.tsx
@@ -11249,7 +11249,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
11249
11249
  return null;
11250
11250
  }
11251
11251
  const layer = stat.rid ? simulcastMapping[stat.rid] : "";
11252
- return /* @__PURE__ */ React15.createElement(Fragment, null, layer && /* @__PURE__ */ React15.createElement(StatsRow, { label: layer.toUpperCase(), value: "" }), /* @__PURE__ */ React15.createElement(
11252
+ return /* @__PURE__ */ React15.createElement(Fragment, { key: `${stat.id}${stat.rid}` }, layer && /* @__PURE__ */ React15.createElement(StatsRow, { label: layer.toUpperCase(), value: "" }), /* @__PURE__ */ React15.createElement(
11253
11253
  StatsRow,
11254
11254
  {
11255
11255
  show: isNotNullishAndNot0(stat.frameWidth),
@@ -11299,6 +11299,20 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
11299
11299
  label: "FPS",
11300
11300
  value: `${videoTrackStats == null ? void 0 : videoTrackStats.framesPerSecond} ${isNotNullishAndNot0(videoTrackStats == null ? void 0 : videoTrackStats.framesDropped) ? `(${videoTrackStats == null ? void 0 : videoTrackStats.framesDropped} dropped)` : ""}`
11301
11301
  }
11302
+ ), /* @__PURE__ */ React15.createElement(
11303
+ StatsRow,
11304
+ {
11305
+ show: isNotNullish(videoTrackStats == null ? void 0 : videoTrackStats.totalPausesDuration),
11306
+ label: "Pauses Duration",
11307
+ value: videoTrackStats == null ? void 0 : videoTrackStats.totalPausesDuration
11308
+ }
11309
+ ), /* @__PURE__ */ React15.createElement(
11310
+ StatsRow,
11311
+ {
11312
+ show: isNotNullish(videoTrackStats == null ? void 0 : videoTrackStats.totalFreezesDuration),
11313
+ label: "Freezes Duration",
11314
+ value: videoTrackStats == null ? void 0 : videoTrackStats.totalFreezesDuration
11315
+ }
11302
11316
  ), /* @__PURE__ */ React15.createElement(
11303
11317
  StatsRow,
11304
11318
  {
@@ -11345,7 +11359,7 @@ var RawStatsRow = ({
11345
11359
  tooltip = "",
11346
11360
  show = true
11347
11361
  }) => {
11348
- const statsLabel = /* @__PURE__ */ React15.createElement(Stats.Label, { css: { fontWeight: !value ? "$semiBold" : "$regular" } }, label);
11362
+ const statsLabel = /* @__PURE__ */ React15.createElement(Stats.Label, null, label);
11349
11363
  return /* @__PURE__ */ React15.createElement(React15.Fragment, null, show ? /* @__PURE__ */ React15.createElement(Stats.Row, null, tooltip ? /* @__PURE__ */ React15.createElement(Tooltip, { side: "top", title: tooltip }, statsLabel) : statsLabel, value === "" ? /* @__PURE__ */ React15.createElement(Stats.Value, null) : /* @__PURE__ */ React15.createElement(Stats.Value, null, value)) : null);
11350
11364
  };
11351
11365
  var StatsRow = React15.memo(RawStatsRow);
@@ -11897,6 +11911,7 @@ var Collapsible = {
11897
11911
  // src/Prebuilt/App.tsx
11898
11912
  init_define_process_env();
11899
11913
  import React177, { useEffect as useEffect69, useRef as useRef27 } from "react";
11914
+ import { match as match15 } from "ts-pattern";
11900
11915
  import {
11901
11916
  HMSReactiveStore,
11902
11917
  HMSRoomProvider,
@@ -12764,6 +12779,7 @@ var ResetStreamingStart = () => {
12764
12779
  init_define_process_env();
12765
12780
  import React25, { useEffect as useEffect6, useState as useState6 } from "react";
12766
12781
  import { useSessionStorage } from "react-use";
12782
+ import { match as match2 } from "ts-pattern";
12767
12783
  import { v4 as uuid } from "uuid";
12768
12784
  import { useHMSActions as useHMSActions5 } from "@100mslive/react-sdk";
12769
12785
 
@@ -12848,38 +12864,33 @@ var convertError = (error) => {
12848
12864
  "If you think this is a mistake on our side, please reach out to us over Discord:",
12849
12865
  "https://discord.com/invite/kGdmszyzq2"
12850
12866
  );
12851
- if (error.action === "GET_TOKEN" && error.code === 403) {
12852
- return {
12853
- title: "Psst! This room is currently inactive.",
12854
- body: "Please feel free to join another open room for more conversations. Thanks for stopping by!"
12855
- };
12856
- } else if (error.action === "GET_TOKEN" && error.code === 404) {
12857
- return {
12858
- title: "Room code does not exist",
12859
- body: "We could not find a room code corresponding to this link."
12860
- };
12861
- } else if (error.action === "GET_TOKEN" && error.code === 2003) {
12862
- return {
12863
- title: "Endpoint is not reachable",
12864
- body: `Endpoint is not reachable. ${error.description}.`
12865
- };
12866
- } else if (error.response && error.response.status === 404) {
12867
- return {
12868
- title: "Room does not exist",
12869
- body: "We could not find a room corresponding to this link."
12870
- };
12871
- } else if (error.response && error.response.status === 403) {
12872
- return {
12873
- title: "Accessing room using this link format is disabled",
12874
- body: "You can re-enable this from the developer section in Dashboard."
12875
- };
12876
- } else {
12877
- console.error("Token API Error", error);
12878
- return {
12879
- title: "Error fetching token",
12880
- body: "An error occurred while fetching the app token. Please look into logs for more details."
12881
- };
12882
- }
12867
+ return match2([error.action, error.code]).with(["GET_TOKEN", 403], () => ({
12868
+ title: "Psst! This room is currently inactive.",
12869
+ body: "Please feel free to join another open room for more conversations. Thanks for stopping by!"
12870
+ })).with(["GET_TOKEN", 404], () => ({
12871
+ title: "Room code does not exist",
12872
+ body: "We could not find a room code corresponding to this link."
12873
+ })).with(["GET_TOKEN", 2003], () => ({
12874
+ title: "Endpoint is not reachable",
12875
+ body: `Endpoint is not reachable. ${error.description}.`
12876
+ })).otherwise(
12877
+ () => {
12878
+ var _a8;
12879
+ return match2((_a8 = error.response) == null ? void 0 : _a8.status).with(404, () => ({
12880
+ title: "Room does not exist",
12881
+ body: "We could not find a room corresponding to this link."
12882
+ })).with(403, () => ({
12883
+ title: "Accessing room using this link format is disabled",
12884
+ body: "You can re-enable this from the developer section in Dashboard."
12885
+ })).otherwise(() => {
12886
+ console.error("Token API Error", error);
12887
+ return {
12888
+ title: "Error fetching token",
12889
+ body: "An error occurred while fetching the app token. Please look into logs for more details."
12890
+ };
12891
+ });
12892
+ }
12893
+ );
12883
12894
  };
12884
12895
  var AuthToken_default = AuthToken;
12885
12896
 
@@ -12892,7 +12903,6 @@ import {
12892
12903
  selectAppData as selectAppData9,
12893
12904
  selectIsConnectedToRoom as selectIsConnectedToRoom10,
12894
12905
  selectRoomState as selectRoomState7,
12895
- useAVToggle as useAVToggle7,
12896
12906
  useHMSActions as useHMSActions47,
12897
12907
  useHMSStore as useHMSStore84
12898
12908
  } from "@100mslive/react-sdk";
@@ -12902,7 +12912,6 @@ init_define_process_env();
12902
12912
  import React77, { useEffect as useEffect20 } from "react";
12903
12913
  import { useMedia as useMedia11 } from "react-use";
12904
12914
  import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
12905
- import { useAVToggle as useAVToggle4 } from "@100mslive/react-sdk";
12906
12915
 
12907
12916
  // src/Prebuilt/components/AudioVideoToggle.tsx
12908
12917
  init_define_process_env();
@@ -14626,7 +14635,7 @@ import { useMedia as useMedia9 } from "react-use";
14626
14635
  init_define_process_env();
14627
14636
  import React52, { Fragment as Fragment6, useState as useState23 } from "react";
14628
14637
  import { HMSHLSPlayer } from "@100mslive/hls-player";
14629
- import { match as match3 } from "ts-pattern";
14638
+ import { match as match4 } from "ts-pattern";
14630
14639
  import { selectAppData as selectAppData3, selectLocalPeerID as selectLocalPeerID4, useHMSActions as useHMSActions15, useHMSStore as useHMSStore21 } from "@100mslive/react-sdk";
14631
14640
  import { BrbIcon, CheckIcon as CheckIcon5, HamburgerMenuIcon, InfoIcon as InfoIcon2, PipIcon as PipIcon2, SettingsIcon as SettingsIcon3 } from "@100mslive/react-icons";
14632
14641
 
@@ -15606,7 +15615,7 @@ var StartRecording_default = StartRecording;
15606
15615
  // src/Prebuilt/components/StatsForNerds.jsx
15607
15616
  init_define_process_env();
15608
15617
  import React47, { useEffect as useEffect14, useMemo as useMemo4, useRef as useRef11, useState as useState19 } from "react";
15609
- import { match as match2, P as P2 } from "ts-pattern";
15618
+ import { match as match3, P as P2 } from "ts-pattern";
15610
15619
  import {
15611
15620
  selectHMSStats as selectHMSStats2,
15612
15621
  selectLocalPeerID as selectLocalPeerID2,
@@ -15741,7 +15750,7 @@ var LocalPeerStats = () => {
15741
15750
  };
15742
15751
  var TrackStats = ({ trackID, layer, local }) => {
15743
15752
  var _a8;
15744
- const selector = match2({ trackID, layer, local }).with(
15753
+ const selector = match3({ trackID, layer, local }).with(
15745
15754
  {
15746
15755
  layer: P2.when((layer2) => !!layer2)
15747
15756
  },
@@ -15784,10 +15793,10 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
15784
15793
  if (bytes === 0)
15785
15794
  return "0 " + unit;
15786
15795
  const k2 = 1024;
15787
- const dm2 = decimals < 0 ? 0 : decimals;
15796
+ const dm = decimals < 0 ? 0 : decimals;
15788
15797
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
15789
15798
  const i = Math.floor(Math.log(bytes) / Math.log(k2));
15790
- return parseFloat((bytes / Math.pow(k2, i)).toFixed(dm2)) + " " + sizes[i];
15799
+ return parseFloat((bytes / Math.pow(k2, i)).toFixed(dm)) + " " + sizes[i];
15791
15800
  };
15792
15801
 
15793
15802
  // src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
@@ -16070,7 +16079,7 @@ var MuteAllModal = ({
16070
16079
  return /* @__PURE__ */ React51.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React51.createElement(DialogContent, { title: "Mute/Unmute Remote Tracks", Icon: MicOffIcon2 }, /* @__PURE__ */ React51.createElement(MuteAllContent, __spreadValues({}, props))));
16071
16080
  };
16072
16081
 
16073
- // src/Prebuilt/components/hooks/useMetadata.jsx
16082
+ // src/Prebuilt/components/hooks/useMetadata.tsx
16074
16083
  init_define_process_env();
16075
16084
  import { useCallback as useCallback14 } from "react";
16076
16085
  import {
@@ -16095,6 +16104,7 @@ var useMyMetadata = () => {
16095
16104
  } catch (error) {
16096
16105
  console.error("failed to update metadata ", updatedFields);
16097
16106
  }
16107
+ return false;
16098
16108
  });
16099
16109
  const toggleHandRaise = useCallback14(() => __async(void 0, null, function* () {
16100
16110
  if (isHandRaised) {
@@ -16111,19 +16121,13 @@ var useMyMetadata = () => {
16111
16121
  yield hmsActions.lowerLocalPeerHand();
16112
16122
  }
16113
16123
  }), [metaData == null ? void 0 : metaData.isBRBOn]);
16114
- const setPrevRole = (role) => __async(void 0, null, function* () {
16115
- yield update({
16116
- prevRole: role
16117
- });
16118
- });
16119
16124
  return {
16120
16125
  isHandRaised,
16121
16126
  isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
16122
16127
  metaData,
16123
16128
  updateMetaData: update,
16124
16129
  toggleHandRaise,
16125
- toggleBRB,
16126
- setPrevRole
16130
+ toggleBRB
16127
16131
  };
16128
16132
  };
16129
16133
 
@@ -16186,7 +16190,7 @@ var DesktopOptions = ({
16186
16190
  }
16187
16191
  },
16188
16192
  isBRBEnabled && screenType !== "hls_live_streaming" ? /* @__PURE__ */ React52.createElement(Dropdown.Item, { onClick: toggleBRB, "data-testid": "brb_btn" }, /* @__PURE__ */ React52.createElement(BrbIcon, null), /* @__PURE__ */ React52.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Be Right Back"), /* @__PURE__ */ React52.createElement(Flex, { justify: "end", css: { color: "$on_surface_high", flexGrow: "1" } }, isBRBOn ? /* @__PURE__ */ React52.createElement(CheckIcon5, null) : null)) : null,
16189
- screenType !== "hls_live_streaming" ? /* @__PURE__ */ React52.createElement(Dropdown.Item, null, /* @__PURE__ */ React52.createElement(
16193
+ screenType !== "hls_live_streaming" ? /* @__PURE__ */ React52.createElement(Dropdown.Item, { css: { "&:empty": { display: "none" } } }, /* @__PURE__ */ React52.createElement(
16190
16194
  PIP,
16191
16195
  {
16192
16196
  content: /* @__PURE__ */ React52.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React52.createElement(PipIcon2, null), /* @__PURE__ */ React52.createElement(Text, { variant: "sm", css: { ml: "$4" } }, isPipOn ? "Disable" : "Enable", " Picture-in-Picture"))
@@ -16195,7 +16199,7 @@ var DesktopOptions = ({
16195
16199
  /* @__PURE__ */ React52.createElement(FullScreenItem, null),
16196
16200
  /* @__PURE__ */ React52.createElement(Dropdown.ItemSeparator, { css: { mx: 0 } }),
16197
16201
  /* @__PURE__ */ React52.createElement(Dropdown.Item, { onClick: () => updateState(MODALS.DEVICE_SETTINGS, true), "data-testid": "device_settings_btn" }, /* @__PURE__ */ React52.createElement(SettingsIcon3, null), /* @__PURE__ */ React52.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Settings")),
16198
- match3({ screenType, isSupported: HMSHLSPlayer.isSupported() }).with({ screenType: "hls_live_streaming", isSupported: false }, () => null).with({ screenType: "hls_live_streaming", isSupported: true }, () => {
16202
+ match4({ screenType, isSupported: HMSHLSPlayer.isSupported() }).with({ screenType: "hls_live_streaming", isSupported: false }, () => null).with({ screenType: "hls_live_streaming", isSupported: true }, () => {
16199
16203
  return /* @__PURE__ */ React52.createElement(
16200
16204
  Dropdown.Item,
16201
16205
  {
@@ -16243,12 +16247,11 @@ var DesktopOptions = ({
16243
16247
  init_define_process_env();
16244
16248
  import React58, { useRef as useRef14, useState as useState28 } from "react";
16245
16249
  import { useClickAway } from "react-use";
16246
- import { match as match4 } from "ts-pattern";
16250
+ import { match as match5 } from "ts-pattern";
16247
16251
  import {
16248
16252
  selectIsConnectedToRoom as selectIsConnectedToRoom7,
16249
16253
  selectPeerCount as selectPeerCount3,
16250
16254
  selectPermissions as selectPermissions8,
16251
- useAVToggle as useAVToggle3,
16252
16255
  useHMSActions as useHMSActions21,
16253
16256
  useHMSStore as useHMSStore29,
16254
16257
  useRecordingStreaming as useRecordingStreaming7
@@ -16356,8 +16359,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
16356
16359
  // ../hms-video-store/dist/index.js
16357
16360
  var import_ua_parser_js = __toESM(require_ua_parser());
16358
16361
  var import_lodash3 = __toESM(require_lodash2());
16359
- import { v4 as qa } from "uuid";
16360
- import { v4 as $a } from "uuid";
16362
+ import { v4 as ja } from "uuid";
16363
+ import { v4 as Ka } from "uuid";
16361
16364
 
16362
16365
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
16363
16366
  init_define_process_env();
@@ -16370,8 +16373,8 @@ init_define_process_env();
16370
16373
  var logDisabled_ = true;
16371
16374
  var deprecationWarnings_ = true;
16372
16375
  function extractVersion(uastring, expr, pos) {
16373
- const match13 = uastring.match(expr);
16374
- return match13 && match13.length >= pos && parseInt(match13[pos], 10);
16376
+ const match16 = uastring.match(expr);
16377
+ return match16 && match16.length >= pos && parseInt(match16[pos], 10);
16375
16378
  }
16376
16379
  function wrapPeerConnectionEvent(window2, eventNameToWrap, wrapper) {
16377
16380
  if (!window2.RTCPeerConnection) {
@@ -16673,7 +16676,7 @@ function shimGetUserMedia(window2, browserDetails) {
16673
16676
  if (matches) {
16674
16677
  return navigator2.mediaDevices.enumerateDevices().then((devices) => {
16675
16678
  devices = devices.filter((d2) => d2.kind === "videoinput");
16676
- let dev = devices.find((d2) => matches.some((match13) => d2.label.toLowerCase().includes(match13)));
16679
+ let dev = devices.find((d2) => matches.some((match16) => d2.label.toLowerCase().includes(match16)));
16677
16680
  if (!dev && devices.length && matches.includes("back")) {
16678
16681
  dev = devices[devices.length - 1];
16679
16682
  }
@@ -18100,11 +18103,11 @@ function shimMaxMessageSize(window2, browserDetails) {
18100
18103
  });
18101
18104
  };
18102
18105
  const getRemoteFirefoxVersion = function(description) {
18103
- const match13 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
18104
- if (match13 === null || match13.length < 2) {
18106
+ const match16 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
18107
+ if (match16 === null || match16.length < 2) {
18105
18108
  return -1;
18106
18109
  }
18107
- const version = parseInt(match13[1], 10);
18110
+ const version = parseInt(match16[1], 10);
18108
18111
  return version !== version ? -1 : version;
18109
18112
  };
18110
18113
  const getCanSendMaxMessageSize = function(remoteIsFirefox) {
@@ -18129,12 +18132,12 @@ function shimMaxMessageSize(window2, browserDetails) {
18129
18132
  if (browserDetails.browser === "firefox" && browserDetails.version === 57) {
18130
18133
  maxMessageSize = 65535;
18131
18134
  }
18132
- const match13 = import_sdp.default.matchPrefix(
18135
+ const match16 = import_sdp.default.matchPrefix(
18133
18136
  description.sdp,
18134
18137
  "a=max-message-size:"
18135
18138
  );
18136
- if (match13.length > 0) {
18137
- maxMessageSize = parseInt(match13[0].substring(19), 10);
18139
+ if (match16.length > 0) {
18140
+ maxMessageSize = parseInt(match16[0].substring(19), 10);
18138
18141
  } else if (browserDetails.browser === "firefox" && remoteIsFirefox !== -1) {
18139
18142
  maxMessageSize = 2147483637;
18140
18143
  }
@@ -18182,15 +18185,15 @@ function shimSendThrowTypeError(window2) {
18182
18185
  if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
18183
18186
  return;
18184
18187
  }
18185
- function wrapDcSend(dc, pc) {
18186
- const origDataChannelSend = dc.send;
18187
- dc.send = function send() {
18188
+ function wrapDcSend(dc2, pc) {
18189
+ const origDataChannelSend = dc2.send;
18190
+ dc2.send = function send() {
18188
18191
  const data3 = arguments[0];
18189
18192
  const length = data3.length || data3.size || data3.byteLength;
18190
- if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
18193
+ if (dc2.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
18191
18194
  throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
18192
18195
  }
18193
- return origDataChannelSend.apply(dc, arguments);
18196
+ return origDataChannelSend.apply(dc2, arguments);
18194
18197
  };
18195
18198
  }
18196
18199
  const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
@@ -18454,57 +18457,57 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
18454
18457
 
18455
18458
  // ../hms-video-store/dist/index.js
18456
18459
  var import_lodash4 = __toESM(require_lodash2());
18457
- import { v4 as io } from "uuid";
18458
- import { v4 as oo } from "uuid";
18459
- import { v4 as uo } from "uuid";
18460
- import { EventEmitter2 as po } from "eventemitter2";
18460
+ import { v4 as ro } from "uuid";
18461
+ import { v4 as no } from "uuid";
18462
+ import { v4 as po } from "uuid";
18463
+ import { EventEmitter2 as ho } from "eventemitter2";
18461
18464
  var wt = __toESM(require_lib());
18462
- import { EventEmitter2 as Co } from "eventemitter2";
18463
- import { v4 as Do } from "uuid";
18464
- import { EventEmitter2 as _o } from "eventemitter2";
18465
- import No from "eventemitter2";
18466
- import { v4 as Oo } from "uuid";
18467
- import { v4 as Bo } from "uuid";
18468
- var ka = Object.defineProperty;
18469
- var Pa = Object.defineProperties;
18470
- var Ea = Object.getOwnPropertyDescriptors;
18465
+ import { EventEmitter2 as Lo } from "eventemitter2";
18466
+ import { v4 as _o } from "uuid";
18467
+ import { EventEmitter2 as No } from "eventemitter2";
18468
+ import Oo from "eventemitter2";
18469
+ import { v4 as xo } from "uuid";
18470
+ import { v4 as Vo } from "uuid";
18471
+ var Pa = Object.defineProperty;
18472
+ var Ea = Object.defineProperties;
18473
+ var Aa = Object.getOwnPropertyDescriptors;
18471
18474
  var Vt = Object.getOwnPropertySymbols;
18472
18475
  var Wr = Object.prototype.hasOwnProperty;
18473
- var $r = Object.prototype.propertyIsEnumerable;
18474
- var Gr = (a2, e, t) => e in a2 ? ka(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
18476
+ var Kr = Object.prototype.propertyIsEnumerable;
18477
+ var $r = (a2, e, t) => e in a2 ? Pa(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
18475
18478
  var S = (a2, e) => {
18476
18479
  for (var t in e || (e = {}))
18477
- Wr.call(e, t) && Gr(a2, t, e[t]);
18480
+ Wr.call(e, t) && $r(a2, t, e[t]);
18478
18481
  if (Vt)
18479
18482
  for (var t of Vt(e))
18480
- $r.call(e, t) && Gr(a2, t, e[t]);
18483
+ Kr.call(e, t) && $r(a2, t, e[t]);
18481
18484
  return a2;
18482
18485
  };
18483
- var v = (a2, e) => Pa(a2, Ea(e));
18486
+ var v = (a2, e) => Ea(a2, Aa(e));
18484
18487
  var Xi = (a2, e) => {
18485
18488
  var t = {};
18486
18489
  for (var i in a2)
18487
18490
  Wr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
18488
18491
  if (a2 != null && Vt)
18489
18492
  for (var i of Vt(a2))
18490
- e.indexOf(i) < 0 && $r.call(a2, i) && (t[i] = a2[i]);
18493
+ e.indexOf(i) < 0 && Kr.call(a2, i) && (t[i] = a2[i]);
18491
18494
  return t;
18492
18495
  };
18493
18496
  var Ia = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18494
- var lr = Ia((td, Ka) => {
18495
- Ka.exports = { version: "0.12.4", 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"] };
18497
+ var lr = Ia((id, qa) => {
18498
+ qa.exports = { version: "0.12.5-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
18496
18499
  });
18497
18500
  var Zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Zi || {});
18498
- var Ra = ((e) => (e.CHAT = "chat", e))(Ra || {});
18499
- var Kr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Kr || {});
18501
+ var Ha = ((e) => (e.CHAT = "chat", e))(Ha || {});
18502
+ var qr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(qr || {});
18500
18503
  var er = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.POLLS_LIST = "POLLS_LIST", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(er || {});
18501
- var qr = ((t) => (t.audio = "audio", t.video = "video", t))(qr || {});
18504
+ var jr = ((t) => (t.audio = "audio", t.video = "video", t))(jr || {});
18502
18505
  function He(a2, e) {
18503
18506
  let t, i;
18504
18507
  if (e)
18505
18508
  for (let r of e.auxiliaryTracks) {
18506
18509
  let s = a2[r];
18507
- Ha(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
18510
+ Ca(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
18508
18511
  }
18509
18512
  return { video: t, audio: i };
18510
18513
  }
@@ -18514,16 +18517,16 @@ function tt(a2) {
18514
18517
  function it(a2) {
18515
18518
  return a2 && a2.type === "video";
18516
18519
  }
18517
- function Ha(a2) {
18520
+ function Ca(a2) {
18518
18521
  return a2 && a2.source === "screen";
18519
18522
  }
18520
- function Wt(a2) {
18523
+ function $t(a2) {
18521
18524
  return a2 && a2.source === "audioplaylist";
18522
18525
  }
18523
18526
  function rt(a2) {
18524
18527
  return a2 && a2.source === "videoplaylist";
18525
18528
  }
18526
- function jr(a2) {
18529
+ function Jr(a2) {
18527
18530
  return a2 ? !!(a2 != null && a2.degraded) : false;
18528
18531
  }
18529
18532
  function Ue(a2, e) {
@@ -18535,33 +18538,33 @@ function st(a2) {
18535
18538
  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 };
18536
18539
  }
18537
18540
  var B = (a2) => a2.room;
18538
- var Ca = (a2) => a2.errors;
18539
- var Rn = createSelector(Ca, (a2) => a2.length === 0 ? null : a2.at(-1));
18540
- var Hn = createSelector(B, (a2) => a2.id);
18541
+ var La = (a2) => a2.errors;
18542
+ var Hn = createSelector(La, (a2) => a2.length === 0 ? null : a2.at(-1));
18543
+ var Cn = createSelector(B, (a2) => a2.id);
18541
18544
  var G = (a2) => a2.peers;
18542
- var $t = (a2) => a2.messages.byID;
18543
- var Qr = (a2) => a2.messages.allIDs;
18545
+ var Wt = (a2) => a2.messages.byID;
18546
+ var zr = (a2) => a2.messages.allIDs;
18544
18547
  var D = (a2) => a2.tracks;
18545
18548
  var tr = (a2) => a2.appData;
18546
- var La = (a2) => a2.speakers;
18549
+ var wa = (a2) => a2.speakers;
18547
18550
  var ye = createSelector([B], (a2) => a2 && a2.isConnected);
18548
- var wn = createSelector([ye, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
18549
- var wa = (a2) => a2.hideLocalPeer;
18550
- var oe = createSelector([B, G, wa], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
18551
- var Da = createSelector(D, (a2) => Object.values(a2));
18551
+ var Dn = createSelector([ye, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
18552
+ var Da = (a2) => a2.hideLocalPeer;
18553
+ var oe = createSelector([B, G, Da], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
18554
+ var _a7 = createSelector(D, (a2) => Object.values(a2));
18552
18555
  var z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
18553
18556
  var ue = createSelector(B, (a2) => a2.localPeer);
18554
- var Dn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
18555
- var _n = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
18557
+ var _n = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
18558
+ var Nn = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
18556
18559
  var Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
18557
- var K = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
18558
- var _a7 = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
18559
- var Yr = createSelector([Z, K, _a7], (a2, e, t) => {
18560
+ var q = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
18561
+ var Na = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
18562
+ var Xr = createSelector([Z, q, Na], (a2, e, t) => {
18560
18563
  let i = t ? [...t] : [];
18561
18564
  return a2 && i.unshift(a2), e && i.unshift(e), i;
18562
18565
  });
18563
- var Nn = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
18564
- var On = createSelector(G, La, (a2, e) => {
18566
+ var On = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
18567
+ var xn = createSelector(G, wa, (a2, e) => {
18565
18568
  let t = Object.entries(e).sort((i, r) => {
18566
18569
  var n, l;
18567
18570
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -18578,7 +18581,7 @@ var rr = createSelector(z, D, (a2, e) => {
18578
18581
  let { video: t, audio: i } = He(e, a2);
18579
18582
  return !!(t || i);
18580
18583
  });
18581
- var Na = createSelector(G, D, (a2, e) => {
18584
+ var Oa = createSelector(G, D, (a2, e) => {
18582
18585
  let t;
18583
18586
  for (let i in a2) {
18584
18587
  let r = a2[i], { video: s, audio: o } = He(e, r);
@@ -18588,15 +18591,15 @@ var Na = createSelector(G, D, (a2, e) => {
18588
18591
  }
18589
18592
  return t;
18590
18593
  });
18591
- var Un = createSelector(Na, (a2) => !!a2);
18592
- var Bn = createSelector(G, D, (a2, e) => {
18594
+ var Bn = createSelector(Oa, (a2) => !!a2);
18595
+ var Vn = createSelector(G, D, (a2, e) => {
18593
18596
  for (let t in a2) {
18594
18597
  let i = a2[t], { audio: r, video: s } = He(e, i);
18595
18598
  if (!s && r)
18596
18599
  return i;
18597
18600
  }
18598
18601
  });
18599
- var Vn = createSelector(G, D, (a2, e) => {
18602
+ var Fn = createSelector(G, D, (a2, e) => {
18600
18603
  let t = [], i = [];
18601
18604
  for (let r in a2) {
18602
18605
  let s = a2[r], { video: o, audio: n } = He(e, s);
@@ -18604,80 +18607,80 @@ var Vn = createSelector(G, D, (a2, e) => {
18604
18607
  }
18605
18608
  return t.concat(i);
18606
18609
  });
18607
- var Fn = createSelector(G, D, (a2, e) => {
18610
+ var Gn = createSelector(G, D, (a2, e) => {
18608
18611
  for (let t in e) {
18609
18612
  let i = e[t];
18610
18613
  if (rt(i) && it(i) && i.peerId)
18611
18614
  return a2[i.peerId];
18612
18615
  }
18613
18616
  });
18614
- var Gn = createSelector(G, D, (a2, e) => {
18617
+ var $n = createSelector(G, D, (a2, e) => {
18615
18618
  for (let t in e) {
18616
18619
  let i = e[t];
18617
- if (Wt(i) && i.peerId)
18620
+ if ($t(i) && i.peerId)
18618
18621
  return a2[i.peerId];
18619
18622
  }
18620
18623
  });
18621
- var Wn = createSelector(Da, (a2) => a2.filter(jr));
18622
- var $n = createSelector(Qr, (a2) => a2.length);
18623
- var Kn = createSelector($t, (a2) => Object.values(a2).filter((e) => !e.read).length);
18624
- var at = createSelector(Qr, $t, (a2, e) => {
18624
+ var Wn = createSelector(_a7, (a2) => a2.filter(Jr));
18625
+ var Kn = createSelector(zr, (a2) => a2.length);
18626
+ var qn = createSelector(Wt, (a2) => Object.values(a2).filter((e) => !e.read).length);
18627
+ var at = createSelector(zr, Wt, (a2, e) => {
18625
18628
  let t = [];
18626
18629
  return a2.forEach((i) => {
18627
18630
  t.push(e[i]);
18628
18631
  }), t;
18629
18632
  });
18630
- var Oa = createSelector(at, (a2) => a2.filter((e) => {
18633
+ var xa = createSelector(at, (a2) => a2.filter((e) => {
18631
18634
  var t;
18632
18635
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
18633
18636
  }));
18634
- var qn = createSelector(Oa, (a2) => a2.filter((e) => !e.read).length);
18637
+ var jn = createSelector(xa, (a2) => a2.filter((e) => !e.read).length);
18635
18638
  var Y = createSelector([B], (a2) => a2 && a2.roomState);
18636
- var Zr = createSelector(Y, (a2) => a2 === "Preview");
18637
- var jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
18639
+ var es = createSelector(Y, (a2) => a2 === "Preview");
18640
+ var Jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
18638
18641
  var ne = (a2) => a2.roles;
18639
- var Jn = createSelector([ne], (a2) => Object.keys(a2));
18642
+ var Qn = createSelector([ne], (a2) => Object.keys(a2));
18640
18643
  var Kt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
18641
- var xa = (a2) => {
18644
+ var Ua = (a2) => {
18642
18645
  var e;
18643
18646
  return (e = a2.preview) == null ? void 0 : e.asRole;
18644
18647
  };
18645
- var es = createSelector([xa, ne], (a2, e) => a2 ? e[a2] : null);
18646
- var Qn = createSelector([Kt], (a2) => {
18648
+ var ts = createSelector([Ua, ne], (a2, e) => a2 ? e[a2] : null);
18649
+ var zn = createSelector([Kt], (a2) => {
18647
18650
  var e;
18648
18651
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
18649
18652
  });
18650
- var ts = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
18651
- var zn = createSelector(B, (a2) => a2.recording);
18652
- var Yn = createSelector(B, (a2) => a2.rtmp);
18653
- var Xn = createSelector(B, (a2) => a2.hls);
18654
- var Zn = createSelector(B, (a2) => a2.sessionId);
18655
- var ec = createSelector(B, (a2) => a2.startedAt);
18656
- var tc = createSelector(B, (a2) => !!a2.isLargeRoom);
18657
- var ic = createSelector(B, (a2) => !!a2.isEffectsEnabled);
18658
- var rc = createSelector(B, (a2) => a2.effectsKey);
18659
- var is = (a2) => a2.polls;
18660
- var nc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
18661
- var Ua = (a2) => a2.whiteboards;
18662
- var cc = createSelector(Ua, (a2) => Object.values(a2)[0]);
18663
- var ss = (a2 = "audio") => (e) => e.playlist[a2].list;
18653
+ var is = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
18654
+ var Yn = createSelector(B, (a2) => a2.recording);
18655
+ var Xn = createSelector(B, (a2) => a2.rtmp);
18656
+ var Zn = createSelector(B, (a2) => a2.hls);
18657
+ var ec = createSelector(B, (a2) => a2.sessionId);
18658
+ var tc = createSelector(B, (a2) => a2.startedAt);
18659
+ var ic = createSelector(B, (a2) => !!a2.isLargeRoom);
18660
+ var rc = createSelector(B, (a2) => !!a2.isEffectsEnabled);
18661
+ var sc = createSelector(B, (a2) => a2.effectsKey);
18662
+ var rs = (a2) => a2.polls;
18663
+ var cc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
18664
+ var Ba = (a2) => a2.whiteboards;
18665
+ var dc = createSelector(Ba, (a2) => Object.values(a2)[0]);
18666
+ var as = (a2 = "audio") => (e) => e.playlist[a2].list;
18664
18667
  var sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
18665
- var as = (a2 = "audio") => (e) => e.playlist[a2].progress;
18666
- var os = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
18667
- var ns = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
18668
- var cs = (a2 = "audio") => (e) => e.playlist[a2].volume;
18669
- var ds = (a2 = "audio") => createSelector(ss(a2), (e) => Object.values(e));
18670
- var ls = (a2 = "audio") => createSelector(ss(a2), sr(a2), (e, t) => {
18668
+ var os = (a2 = "audio") => (e) => e.playlist[a2].progress;
18669
+ var ns = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
18670
+ var cs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
18671
+ var ds = (a2 = "audio") => (e) => e.playlist[a2].volume;
18672
+ var ls = (a2 = "audio") => createSelector(as(a2), (e) => Object.values(e));
18673
+ var us = (a2 = "audio") => createSelector(as(a2), sr(a2), (e, t) => {
18671
18674
  if (t.id)
18672
18675
  return e[t.id];
18673
18676
  });
18674
- var us = { selection: sr("audio"), progress: as("audio"), currentTime: os("audio"), playbackRate: ns("audio"), volume: cs("audio"), list: ds("audio"), selectedItem: ls("audio") };
18675
- var ps = { selection: sr("video"), progress: as("video"), currentTime: os("video"), playbackRate: ns("video"), volume: cs("video"), list: ds("video"), selectedItem: ls("video") };
18676
- function I(a2) {
18677
+ var ps = { selection: sr("audio"), progress: os("audio"), currentTime: ns("audio"), playbackRate: cs("audio"), volume: ds("audio"), list: ls("audio"), selectedItem: us("audio") };
18678
+ var hs = { selection: sr("video"), progress: os("video"), currentTime: ns("video"), playbackRate: cs("video"), volume: ds("video"), list: ls("video"), selectedItem: us("video") };
18679
+ function R(a2) {
18677
18680
  return (e) => (t) => a2(t, e);
18678
18681
  }
18679
- var hs = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(hs || {});
18680
- var Ba = typeof window != "undefined" && typeof window.expect != "undefined";
18682
+ var ms = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(ms || {});
18683
+ var Va = typeof window != "undefined" && typeof window.expect != "undefined";
18681
18684
  var d = class {
18682
18685
  static v(e, ...t) {
18683
18686
  this.log(0, e, ...t);
@@ -18743,25 +18746,25 @@ var d = class {
18743
18746
  }
18744
18747
  }
18745
18748
  };
18746
- d.level = Ba ? 7 : 0;
18749
+ d.level = Va ? 7 : 0;
18747
18750
  var pe = new import_ua_parser_js.UAParser();
18748
18751
  var _ = typeof window != "undefined";
18749
- var ms;
18750
- var Ce = typeof window == "undefined" && !((ms = pe.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
18751
- var Fa = () => !Ce;
18752
- var gc = Fa();
18753
18752
  var Ss;
18753
+ var Ce = typeof window == "undefined" && !((Ss = pe.getBrowser().name) != null && Ss.toLowerCase().includes("electron"));
18754
+ var Ga = () => !Ce;
18755
+ var Tc = Ga();
18754
18756
  var gs;
18755
- var fs = ((gs = (Ss = pe.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase()) === "firefox";
18756
- var vs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(vs || {});
18757
- function Ga() {
18757
+ var Ts;
18758
+ var vs = ((Ts = (gs = pe.getBrowser()) == null ? void 0 : gs.name) == null ? void 0 : Ts.toLowerCase()) === "firefox";
18759
+ var Ms = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ms || {});
18760
+ function $a() {
18758
18761
  if (_ && window) {
18759
18762
  let a2 = window.location.hostname;
18760
18763
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
18761
18764
  }
18762
18765
  return "CUSTOM";
18763
18766
  }
18764
- var Ve = Ga();
18767
+ var Ve = $a();
18765
18768
  var M = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
18766
18769
  var f = class a extends Error {
18767
18770
  constructor(t, i, r, s, o, n = false) {
@@ -18925,7 +18928,7 @@ var nr = class {
18925
18928
  return this.valuesMap.size;
18926
18929
  }
18927
18930
  };
18928
- var Ms = () => {
18931
+ var ys = () => {
18929
18932
  try {
18930
18933
  _ && !localStorage && (window.localStorage = new nr());
18931
18934
  } catch (a2) {
@@ -18939,7 +18942,7 @@ var ce = class {
18939
18942
  }
18940
18943
  getStorage() {
18941
18944
  try {
18942
- return _ && !this.storage && (Ms(), this.storage = window.localStorage), this.storage;
18945
+ return _ && !this.storage && (ys(), this.storage = window.localStorage), this.storage;
18943
18946
  } catch (e) {
18944
18947
  return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
18945
18948
  }
@@ -18959,29 +18962,29 @@ var ce = class {
18959
18962
  (e = this.getStorage()) == null || e.removeItem(this.key);
18960
18963
  }
18961
18964
  };
18962
- var ys = () => {
18965
+ var ks = () => {
18963
18966
  let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
18964
- return t ? a2 = t : (a2 = $a(), e.set(a2)), a2;
18967
+ return t ? a2 = t : (a2 = Ka(), e.set(a2)), a2;
18965
18968
  };
18966
18969
  function ie(a2) {
18967
18970
  return a2 != null;
18968
18971
  }
18969
- var Ps = lr().version;
18972
+ var Es = lr().version;
18970
18973
  function ot(a2 = "prod", e) {
18971
18974
  let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
18972
18975
  if (Ce)
18973
- return Es({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ps, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
18976
+ return As({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Es, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
18974
18977
  let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = ur(`web_${r.name}`), l = r.version || "", u = ur(`${o.name}_${o.version}`), p = u;
18975
- return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`), Es({ os: n, os_version: l, sdk: t, sdk_version: Ps, device_model: p, env: i, domain: Ve, 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 });
18978
+ return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`), As({ os: n, os_version: l, sdk: t, sdk_version: Es, device_model: p, env: i, domain: Ve, 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 });
18976
18979
  }
18977
18980
  function ur(a2) {
18978
18981
  return a2.replace(/ /g, "_");
18979
18982
  }
18980
- var Es = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
18981
- var R = class {
18983
+ var As = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
18984
+ var I = class {
18982
18985
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
18983
18986
  this.metadata = { peer: {}, userAgent: ot() };
18984
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = qa(), this.device_id = ys();
18987
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = ja(), this.device_id = ks();
18985
18988
  }
18986
18989
  toSignalParams() {
18987
18990
  return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
@@ -18990,57 +18993,57 @@ var R = class {
18990
18993
  var y = class {
18991
18994
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
18992
18995
  let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
18993
- return new R({ name: o, level: n, properties: l });
18996
+ return new I({ name: o, level: n, properties: l });
18994
18997
  }
18995
18998
  static disconnect(e, t) {
18996
18999
  let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
18997
- return new R({ name: i, level: r, properties: s });
19000
+ return new I({ name: i, level: r, properties: s });
18998
19001
  }
18999
19002
  static preview(i) {
19000
19003
  var r = i, { error: e } = r, t = Xi(r, ["error"]);
19001
19004
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
19002
- return new R({ name: s, level: o, properties: n });
19005
+ return new I({ name: s, level: o, properties: n });
19003
19006
  }
19004
19007
  static join(i) {
19005
19008
  var r = i, { error: e } = r, t = Xi(r, ["error"]);
19006
19009
  let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
19007
- return new R({ name: s, level: o, properties: n });
19010
+ return new I({ name: s, level: o, properties: n });
19008
19011
  }
19009
19012
  static publish({ devices: e, settings: t, error: i }) {
19010
19013
  let r = this.eventNameFor("publish", i === void 0), s = i ? 2 : 1, o = this.getPropertiesWithError({ devices: e, audio: t == null ? void 0 : t.audio, video: t == null ? void 0 : t.video }, i);
19011
- return new R({ name: r, level: s, properties: o });
19014
+ return new I({ name: r, level: s, properties: o });
19012
19015
  }
19013
19016
  static hlsPlayerError(e) {
19014
- return new R({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
19017
+ return new I({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
19015
19018
  }
19016
19019
  static subscribeFail(e) {
19017
19020
  let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
19018
- return new R({ name: t, level: i, properties: r });
19021
+ return new I({ name: t, level: i, properties: r });
19019
19022
  }
19020
19023
  static leave() {
19021
- return new R({ name: "leave", level: 1 });
19024
+ return new I({ name: "leave", level: 1 });
19022
19025
  }
19023
19026
  static autoplayError() {
19024
- return new R({ name: "autoplayError", level: 2 });
19027
+ return new I({ name: "autoplayError", level: 2 });
19025
19028
  }
19026
19029
  static audioPlaybackError(e) {
19027
- return new R({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
19030
+ return new I({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
19028
19031
  }
19029
19032
  static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
19030
19033
  let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, l = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
19031
- return new R({ name: o, level: n, properties: l });
19034
+ return new I({ name: o, level: n, properties: l });
19032
19035
  }
19033
19036
  static performance(e) {
19034
19037
  let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
19035
- return new R({ name: t, level: i, properties: r });
19038
+ return new I({ name: t, level: i, properties: r });
19036
19039
  }
19037
19040
  static rtcStats(e) {
19038
19041
  let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
19039
- return new R({ name: t, level: i, properties: r });
19042
+ return new I({ name: t, level: i, properties: r });
19040
19043
  }
19041
19044
  static rtcStatsFailed(e) {
19042
19045
  let t = "rtc.stats.failed", i = 2;
19043
- return new R({ name: t, level: i, properties: this.getErrorProperties(e) });
19046
+ return new I({ name: t, level: i, properties: this.getErrorProperties(e) });
19044
19047
  }
19045
19048
  static degradationStats(e, t) {
19046
19049
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
@@ -19048,23 +19051,23 @@ var y = class {
19048
19051
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
19049
19052
  s = v(S({}, s), { duration: n, restoredAt: o });
19050
19053
  }
19051
- return new R({ name: i, level: r, properties: s });
19054
+ return new I({ name: i, level: r, properties: s });
19052
19055
  }
19053
19056
  static audioDetectionFail(e, t) {
19054
19057
  let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
19055
- return new R({ name: s, level: r, properties: i });
19058
+ return new I({ name: s, level: r, properties: i });
19056
19059
  }
19057
19060
  static previewNetworkQuality(e) {
19058
- return new R({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
19061
+ return new I({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
19059
19062
  }
19060
19063
  static publishStats(e) {
19061
- return new R({ name: "publisher.stats", level: 1, properties: e });
19064
+ return new I({ name: "publisher.stats", level: 1, properties: e });
19062
19065
  }
19063
19066
  static subscribeStats(e) {
19064
- return new R({ name: "subscriber.stats", level: 1, properties: e });
19067
+ return new I({ name: "subscriber.stats", level: 1, properties: e });
19065
19068
  }
19066
19069
  static getKrispUsage(e) {
19067
- return new R({ name: "krisp.usage", level: 1, properties: { duration: e } });
19070
+ return new I({ name: "krisp.usage", level: 1, properties: { duration: e } });
19068
19071
  }
19069
19072
  static eventNameFor(e, t) {
19070
19073
  return `${e}.${t ? "success" : "failed"}`;
@@ -19112,7 +19115,7 @@ var pr = class {
19112
19115
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
19113
19116
  }
19114
19117
  };
19115
- var q = new pr();
19118
+ var j = new pr();
19116
19119
  var hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(hr || {});
19117
19120
  var mr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(mr || {});
19118
19121
  function Jt(a2, e = 300) {
@@ -19125,10 +19128,11 @@ function Jt(a2, e = 300) {
19125
19128
  }, e);
19126
19129
  };
19127
19130
  }
19128
- var Cs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Cs || {});
19129
- var Ls = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ls || {});
19130
- var ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(ws || {});
19131
- var Sr = class {
19131
+ var Sr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Sr || {});
19132
+ var Ls = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Ls || {});
19133
+ var ws = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(ws || {});
19134
+ var Ds = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ds || {});
19135
+ var gr = class {
19132
19136
  constructor() {
19133
19137
  this.TAG = "[HMSIntersectionObserverWrapper]";
19134
19138
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -19155,8 +19159,8 @@ var Sr = class {
19155
19159
  return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
19156
19160
  }
19157
19161
  };
19158
- var Os = new Sr();
19159
- var gr = class {
19162
+ var xs = new gr();
19163
+ var Tr = class {
19160
19164
  constructor() {
19161
19165
  this.TAG = "[HMSResizeObserverWrapper]";
19162
19166
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -19183,15 +19187,15 @@ var gr = class {
19183
19187
  return e || d.w(this.TAG, "Resize Observer is not supported"), e;
19184
19188
  }
19185
19189
  };
19186
- var xs = new gr();
19187
- var Tr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Tr || {});
19188
- var fr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(fr || {});
19189
- var Vs = "https://event.100ms.live/v2/client/report";
19190
- var Fs = "https://event-nonprod.100ms.live/v2/client/report";
19190
+ var Us = new Tr();
19191
+ var fr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(fr || {});
19192
+ var vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(vr || {});
19193
+ var Fs = "https://event.100ms.live/v2/client/report";
19194
+ var Gs = "https://event-nonprod.100ms.live/v2/client/report";
19191
19195
  var pt = Math.pow(2, 31) - 1;
19192
19196
  var Qe = class {
19193
19197
  };
19194
- Qe.makePeerId = () => uo();
19198
+ Qe.makePeerId = () => po();
19195
19199
  var gt = "HMS-Store:";
19196
19200
  var k = class {
19197
19201
  static v(e, ...t) {
@@ -19259,132 +19263,133 @@ var k = class {
19259
19263
  }
19260
19264
  };
19261
19265
  k.level = 0;
19262
- var Rr = (a2, e) => e;
19266
+ var Hr = (a2, e) => e;
19263
19267
  var Tt = (a2, e) => e;
19264
- var Js = (a2, e) => e;
19265
- var ho = (a2, e) => e;
19268
+ var Qs = (a2, e) => e;
19266
19269
  var mo = (a2, e) => e;
19267
- var J = createSelector([G, Rr], (a2, e) => e ? a2[e] : null);
19268
- var Hr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
19269
- var So = createSelector([D, Tt], (a2, e) => {
19270
+ var So = (a2, e) => e;
19271
+ var $ = createSelector([G, Hr], (a2, e) => e ? a2[e] : null);
19272
+ var Cr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
19273
+ var go = createSelector([D, Tt], (a2, e) => {
19270
19274
  if (!e)
19271
19275
  return null;
19272
19276
  let t = a2[e];
19273
19277
  return (t == null ? void 0 : t.type) === "video" ? t : null;
19274
19278
  });
19275
- var go = createSelector([D, Tt], (a2, e) => {
19279
+ var To = createSelector([D, Tt], (a2, e) => {
19276
19280
  if (!e)
19277
19281
  return null;
19278
19282
  let t = a2[e];
19279
19283
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
19280
19284
  });
19281
- var To = createSelector([D, Tt], (a2, e) => {
19285
+ var fo = createSelector([D, Tt], (a2, e) => {
19282
19286
  if (!e)
19283
19287
  return null;
19284
19288
  let t = a2[e];
19285
19289
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
19286
19290
  });
19287
- var fo = createSelector([D, Tt], (a2, e) => {
19291
+ var vo = createSelector([D, Tt], (a2, e) => {
19288
19292
  if (!e)
19289
19293
  return null;
19290
19294
  let t = a2[e];
19291
19295
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
19292
19296
  });
19293
- var vo = createSelector([is, mo], (a2, e) => e ? a2[e] : null);
19294
- var Q = I(J);
19295
- var rm = I(createSelector([tr, ho], (a2, e) => {
19297
+ var Mo = createSelector([rs, So], (a2, e) => e ? a2[e] : null);
19298
+ var Q = R($);
19299
+ var nm = R(createSelector([tr, mo], (a2, e) => {
19296
19300
  if (a2)
19297
19301
  return e ? a2[e] : a2;
19298
19302
  }));
19299
- function sm(a2) {
19303
+ function cm(a2) {
19300
19304
  return (e) => {
19301
19305
  if (e.sessionStore)
19302
19306
  return a2 ? e.sessionStore[a2] : e.sessionStore;
19303
19307
  };
19304
19308
  }
19305
- var om = I(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
19306
- var oi = I(Hr);
19307
- var Qs = I(So);
19308
- var nm = I(go);
19309
- var cm = I(To);
19310
- var dm = I(fo);
19311
- var Mo = I((a2, e) => {
19312
- let t = J(a2, e);
19309
+ var lm = R(createSelector($, (a2) => a2 == null ? void 0 : a2.name));
19310
+ var um = R(createSelector($, (a2) => a2 == null ? void 0 : a2.type));
19311
+ var oi = R(Cr);
19312
+ var zs = R(go);
19313
+ var pm = R(To);
19314
+ var hm = R(fo);
19315
+ var mm = R(vo);
19316
+ var yo = R((a2, e) => {
19317
+ let t = $(a2, e);
19313
19318
  if (t && t.videoTrack && t.videoTrack !== "")
19314
19319
  return a2.tracks[t.videoTrack];
19315
19320
  });
19316
- var yo = I((a2, e) => {
19317
- let t = J(a2, e);
19321
+ var ko = R((a2, e) => {
19322
+ let t = $(a2, e);
19318
19323
  if (t && t.audioTrack && t.audioTrack !== "")
19319
19324
  return a2.tracks[t.audioTrack];
19320
19325
  });
19321
- var um = I((a2, e) => {
19322
- let t = J(a2, e);
19326
+ var gm = R((a2, e) => {
19327
+ let t = $(a2, e);
19323
19328
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
19324
19329
  });
19325
- var zs = (a2, e) => e ? a2.speakers[e] : null;
19326
- var pm = I(createSelector(zs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19327
- var ko = (a2, e) => {
19328
- let t = yo(e)(a2);
19329
- return zs(a2, t == null ? void 0 : t.id);
19330
- };
19331
- var hm = I(createSelector(ko, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19332
- var mm = I((a2, e) => {
19330
+ var Ys = (a2, e) => e ? a2.speakers[e] : null;
19331
+ var Tm = R(createSelector(Ys, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19332
+ var Po = (a2, e) => {
19333
+ let t = ko(e)(a2);
19334
+ return Ys(a2, t == null ? void 0 : t.id);
19335
+ };
19336
+ var fm = R(createSelector(Po, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19337
+ var vm = R((a2, e) => {
19333
19338
  if (e)
19334
19339
  return a2.connectionQualities[e];
19335
19340
  });
19336
- var Sm = I((a2, e) => {
19337
- let t = J(a2, e);
19341
+ var Mm = R((a2, e) => {
19342
+ let t = $(a2, e);
19338
19343
  if (t) {
19339
19344
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
19340
19345
  return i ? a2.tracks[i] : void 0;
19341
19346
  }
19342
19347
  });
19343
- var gm = I(createSelector(D, J, (a2, e) => {
19348
+ var ym = R(createSelector(D, $, (a2, e) => {
19344
19349
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19345
19350
  let r = a2[i];
19346
19351
  return rt(r) && it(r);
19347
19352
  });
19348
19353
  return t ? a2[t] : void 0;
19349
19354
  }));
19350
- var Tm = I(createSelector(D, J, (a2, e) => {
19355
+ var km = R(createSelector(D, $, (a2, e) => {
19351
19356
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19352
19357
  let r = a2[i];
19353
19358
  return rt(r) && tt(r);
19354
19359
  });
19355
19360
  return t ? a2[t] : void 0;
19356
19361
  }));
19357
- var fm = I(createSelector(D, J, (a2, e) => {
19362
+ var Pm = R(createSelector(D, $, (a2, e) => {
19358
19363
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19359
19364
  let r = a2[i];
19360
- return Wt(r) && tt(r);
19365
+ return $t(r) && tt(r);
19361
19366
  });
19362
19367
  return t ? a2[t] : void 0;
19363
19368
  }));
19364
- var Ys = I(createSelector(D, J, (a2, e) => He(a2, e)));
19365
- var Xs = (a2) => createSelector(Ys(a2), (e) => e.audio);
19366
- var Mm = I((a2, e) => {
19367
- let t = J(a2, e);
19369
+ var Xs = R(createSelector(D, $, (a2, e) => He(a2, e)));
19370
+ var Zs = (a2) => createSelector(Xs(a2), (e) => e.audio);
19371
+ var Am = R((a2, e) => {
19372
+ let t = $(a2, e);
19368
19373
  return Ue(a2, t == null ? void 0 : t.audioTrack);
19369
19374
  });
19370
- var ym = I((a2, e) => {
19371
- let t = J(a2, e);
19375
+ var bm = R((a2, e) => {
19376
+ let t = $(a2, e);
19372
19377
  return Ue(a2, t == null ? void 0 : t.videoTrack);
19373
19378
  });
19374
- var Zs = I((a2, e) => {
19379
+ var ea = R((a2, e) => {
19375
19380
  if (e && a2.tracks[e])
19376
19381
  return a2.tracks[e].volume === 0;
19377
19382
  });
19378
- var km = I((a2, e) => {
19379
- let t = J(a2, e);
19380
- return Zs(t == null ? void 0 : t.audioTrack)(a2);
19383
+ var Rm = R((a2, e) => {
19384
+ let t = $(a2, e);
19385
+ return ea(t == null ? void 0 : t.audioTrack)(a2);
19381
19386
  });
19382
- var Pm = I((a2, e) => {
19383
- let t = Xs(e)(a2);
19384
- return Zs(t == null ? void 0 : t.id)(a2);
19387
+ var Im = R((a2, e) => {
19388
+ let t = Zs(e)(a2);
19389
+ return ea(t == null ? void 0 : t.id)(a2);
19385
19390
  });
19386
- var ea = I((a2, e) => {
19387
- let t = Hr(a2, e);
19391
+ var ta = R((a2, e) => {
19392
+ let t = Cr(a2, e);
19388
19393
  if (t) {
19389
19394
  if (t.type !== "audio") {
19390
19395
  k.w("Please pass audio track here");
@@ -19393,16 +19398,16 @@ var ea = I((a2, e) => {
19393
19398
  return t.volume;
19394
19399
  }
19395
19400
  });
19396
- var Em = I((a2, e) => {
19397
- let t = J(a2, e);
19398
- return ea(t == null ? void 0 : t.audioTrack)(a2);
19401
+ var Hm = R((a2, e) => {
19402
+ let t = $(a2, e);
19403
+ return ta(t == null ? void 0 : t.audioTrack)(a2);
19399
19404
  });
19400
- var bm = I((a2, e) => {
19401
- let t = Xs(e)(a2);
19402
- return ea(t == null ? void 0 : t.id)(a2);
19405
+ var Cm = R((a2, e) => {
19406
+ let t = Zs(e)(a2);
19407
+ return ta(t == null ? void 0 : t.id)(a2);
19403
19408
  });
19404
- var Am = I((a2, e) => {
19405
- let t = Hr(a2, e);
19409
+ var Lm = R((a2, e) => {
19410
+ let t = Cr(a2, e);
19406
19411
  if (t) {
19407
19412
  if (t.type !== "video") {
19408
19413
  k.w("Please pass video track here");
@@ -19411,49 +19416,49 @@ var Am = I((a2, e) => {
19411
19416
  return t.layer;
19412
19417
  }
19413
19418
  });
19414
- var ta = createSelector([at, ue, Rr], (a2, e, t) => {
19419
+ var ia = createSelector([at, ue, Hr], (a2, e, t) => {
19415
19420
  if (t)
19416
19421
  return a2.filter((i) => {
19417
19422
  var r;
19418
19423
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
19419
19424
  });
19420
19425
  });
19421
- var ia = createSelector([at, Js], (a2, e) => {
19426
+ var ra = createSelector([at, Qs], (a2, e) => {
19422
19427
  if (e)
19423
19428
  return a2.filter((t) => {
19424
19429
  var i, r;
19425
19430
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
19426
19431
  });
19427
19432
  });
19428
- var Po = createSelector(at, (a2) => a2.filter((e) => {
19433
+ var Eo = createSelector(at, (a2) => a2.filter((e) => {
19429
19434
  var t;
19430
19435
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
19431
19436
  }));
19432
- var Eo = createSelector([ia, Js], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19433
- var bo = createSelector([ta, Rr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19434
- var Im = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
19435
- var Rm = I(ta);
19436
- var Hm = I(ia);
19437
- var Cm = I(Eo);
19438
- var Lm = I(bo);
19439
- var ra = I(vo);
19440
- var Gm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
19437
+ var Ao = createSelector([ra, Qs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19438
+ var bo = createSelector([ia, Hr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19439
+ var wm = createSelector(Eo, (a2) => a2.filter((e) => !e.read).length);
19440
+ var Dm = R(ia);
19441
+ var _m = R(ra);
19442
+ var Nm = R(Ao);
19443
+ var Om = R(bo);
19444
+ var sa = R(Mo);
19445
+ var jm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
19441
19446
  var r;
19442
19447
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
19443
19448
  }));
19444
- var Ao = (a2) => a2.roleChangeRequests[0] || null;
19445
- var Wm = createSelector([Ao, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19446
- var $m = createSelector([Kt], (a2) => st(a2));
19447
- var Km = createSelector([es], (a2) => st(a2));
19448
- var Ro = createSelector([K, D], (a2, e) => {
19449
+ var Ro = (a2) => a2.roleChangeRequests[0] || null;
19450
+ var Jm = createSelector([Ro, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19451
+ var Qm = createSelector([Kt], (a2) => st(a2));
19452
+ var zm = createSelector([ts], (a2) => st(a2));
19453
+ var Ho = createSelector([q, D], (a2, e) => {
19449
19454
  let t = null;
19450
19455
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
19451
19456
  });
19452
- var Ho = createSelector([Z, D], (a2, e) => {
19457
+ var Co = createSelector([Z, D], (a2, e) => {
19453
19458
  let t = null;
19454
19459
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
19455
19460
  });
19456
- var _r = class {
19461
+ var Nr = class {
19457
19462
  constructor() {
19458
19463
  this.TAG = "[HTTPAnalyticsTransport]";
19459
19464
  this.failedEvents = new ce("client-events");
@@ -19472,7 +19477,7 @@ var _r = class {
19472
19477
  this.addEventToStorage(e);
19473
19478
  return;
19474
19479
  }
19475
- 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" ? Vs : Fs;
19480
+ 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" ? Fs : Gs;
19476
19481
  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) => {
19477
19482
  if (r.status === 401) {
19478
19483
  this.removeFromStorage(e);
@@ -19498,66 +19503,66 @@ var _r = class {
19498
19503
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
19499
19504
  }
19500
19505
  };
19501
- var Te = new _r();
19506
+ var Te = new Nr();
19502
19507
  var W = ((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))(W || {});
19503
19508
  var Bi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Bi || {});
19504
19509
  var Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
19505
- var Qo = (a2) => a2.localPeer.id;
19506
- var zo = (a2) => a2.localPeer.audioTrack;
19507
- var Yo = (a2) => a2.localPeer.videoTrack;
19508
- var Xo = (a2, e) => e;
19509
- var Ma = (a2, e) => e;
19510
- var Zo = (a2) => a2.remoteTrackStats;
19511
- var ya = (a2) => a2.peerStats;
19512
- var Br = (a2) => a2.localTrackStats;
19513
- var ve = createSelector([ya, Qo], (a2, e) => a2[e]);
19514
- var en = createSelector(ve, (a2) => {
19510
+ var zo = (a2) => a2.localPeer.id;
19511
+ var Yo = (a2) => a2.localPeer.audioTrack;
19512
+ var Xo = (a2) => a2.localPeer.videoTrack;
19513
+ var Zo = (a2, e) => e;
19514
+ var ya = (a2, e) => e;
19515
+ var en = (a2) => a2.remoteTrackStats;
19516
+ var ka = (a2) => a2.peerStats;
19517
+ var Vr = (a2) => a2.localTrackStats;
19518
+ var ve = createSelector([ka, zo], (a2, e) => a2[e]);
19519
+ var tn = createSelector(ve, (a2) => {
19515
19520
  var e;
19516
19521
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
19517
19522
  });
19518
- var tn = createSelector(ve, (a2) => {
19523
+ var rn = createSelector(ve, (a2) => {
19519
19524
  var e;
19520
19525
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
19521
19526
  });
19522
- var rn = createSelector(ve, (a2) => {
19527
+ var sn = createSelector(ve, (a2) => {
19523
19528
  var e;
19524
19529
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
19525
19530
  });
19526
- var sn = createSelector(ve, (a2) => {
19531
+ var an = createSelector(ve, (a2) => {
19527
19532
  var e;
19528
19533
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
19529
19534
  });
19530
- var an = createSelector(ve, (a2) => {
19535
+ var on = createSelector(ve, (a2) => {
19531
19536
  var e;
19532
19537
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
19533
19538
  });
19534
- var on = createSelector(ve, (a2) => {
19539
+ var nn = createSelector(ve, (a2) => {
19535
19540
  var e;
19536
19541
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
19537
19542
  });
19538
- var nn = createSelector(ve, (a2) => {
19543
+ var cn = createSelector(ve, (a2) => {
19539
19544
  var e;
19540
19545
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
19541
19546
  });
19542
- var cn = createSelector(ve, (a2) => {
19547
+ var dn = createSelector(ve, (a2) => {
19543
19548
  var e;
19544
19549
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
19545
19550
  });
19546
- var dn = createSelector([ya, Xo], (a2, e) => e ? a2[e] : void 0);
19547
- var ln = createSelector([Zo, Ma], (a2, e) => e ? a2[e] : void 0);
19548
- var Vr = createSelector([Br, Ma], (a2, e) => e ? a2[e] : void 0);
19549
- var un = I(dn);
19550
- var pn = I(ln);
19551
- var hn = createSelector([Br, zo], (a2, e) => {
19551
+ var ln = createSelector([ka, Zo], (a2, e) => e ? a2[e] : void 0);
19552
+ var un = createSelector([en, ya], (a2, e) => e ? a2[e] : void 0);
19553
+ var Fr = createSelector([Vr, ya], (a2, e) => e ? a2[e] : void 0);
19554
+ var pn = R(ln);
19555
+ var hn = R(un);
19556
+ var mn = createSelector([Vr, Yo], (a2, e) => {
19552
19557
  var t;
19553
19558
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
19554
19559
  });
19555
- var mn = I(createSelector(Vr, (a2) => a2 == null ? void 0 : a2[0]));
19556
- var Sn = createSelector([Br, Yo], (a2, e) => {
19560
+ var Sn = R(createSelector(Fr, (a2) => a2 == null ? void 0 : a2[0]));
19561
+ var gn = createSelector([Vr, Xo], (a2, e) => {
19557
19562
  var t;
19558
19563
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
19559
19564
  });
19560
- var gn = I(createSelector(Vr, (a2) => a2));
19565
+ var Tn = R(createSelector(Fr, (a2) => a2));
19561
19566
 
19562
19567
  // src/Prebuilt/components/Header/StreamActions.tsx
19563
19568
  import {
@@ -19827,7 +19832,7 @@ var RecordingStatus = () => {
19827
19832
  };
19828
19833
  var RecordingPauseStatus = () => {
19829
19834
  const recording = useHMSStore25(selectRecordingState);
19830
- if (recording.hls && recording.hls.state === Cs.PAUSED) {
19835
+ if (recording.hls && recording.hls.state === Ls.PAUSED) {
19831
19836
  return /* @__PURE__ */ React54.createElement(
19832
19837
  Tooltip,
19833
19838
  {
@@ -20227,8 +20232,6 @@ var MwebOptions = ({
20227
20232
  const peerCount = useHMSStore29(selectPeerCount3);
20228
20233
  const emojiCardRef = useRef14(null);
20229
20234
  const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
20230
- const { toggleAudio, toggleVideo } = useAVToggle3();
20231
- const noAVPermissions = !(toggleAudio || toggleVideo);
20232
20235
  const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
20233
20236
  const { title, description } = useRoomLayoutHeader();
20234
20237
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -20290,7 +20293,7 @@ var MwebOptions = ({
20290
20293
  /* @__PURE__ */ React58.createElement(PeopleIcon, null),
20291
20294
  /* @__PURE__ */ React58.createElement(ActionTile.Title, null, "Participants")
20292
20295
  ),
20293
- !noAVPermissions ? /* @__PURE__ */ React58.createElement(
20296
+ elements.hand_raise ? /* @__PURE__ */ React58.createElement(
20294
20297
  ActionTile.Root,
20295
20298
  {
20296
20299
  active: isHandRaised,
@@ -20389,7 +20392,7 @@ var MwebOptions = ({
20389
20392
  })
20390
20393
  },
20391
20394
  isRecordingLoading ? /* @__PURE__ */ React58.createElement(Loading, null) : /* @__PURE__ */ React58.createElement(RecordIcon2, null),
20392
- /* @__PURE__ */ React58.createElement(ActionTile.Title, null, match4({ isBrowserRecordingOn, isRecordingLoading }).with({ isBrowserRecordingOn: true, isRecordingLoading: false }, () => "Recording On").with({ isRecordingLoading: true }, () => "Starting Recording").with({ isRecordingLoading: false }, () => "Start Recording").otherwise(() => null))
20395
+ /* @__PURE__ */ React58.createElement(ActionTile.Title, null, match5({ isBrowserRecordingOn, isRecordingLoading }).with({ isBrowserRecordingOn: true, isRecordingLoading: false }, () => "Recording On").with({ isRecordingLoading: true }, () => "Starting Recording").with({ isRecordingLoading: false }, () => "Start Recording").otherwise(() => null))
20393
20396
  ) : null,
20394
20397
  title || description ? /* @__PURE__ */ React58.createElement(
20395
20398
  ActionTile.Root,
@@ -20464,6 +20467,10 @@ import React60 from "react";
20464
20467
  import { HandIcon as HandIcon3, HandRaiseSlashedIcon as HandRaiseSlashedIcon2 } from "@100mslive/react-icons";
20465
20468
  var RaiseHand = ({ css: css2 }) => {
20466
20469
  const { isHandRaised, toggleHandRaise } = useMyMetadata();
20470
+ const { elements } = useRoomLayoutConferencingScreen();
20471
+ if (!elements.hand_raise) {
20472
+ return null;
20473
+ }
20467
20474
  return /* @__PURE__ */ React60.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ React60.createElement(
20468
20475
  IconButton_default,
20469
20476
  {
@@ -21024,6 +21031,7 @@ init_define_process_env();
21024
21031
  import React74, { Fragment as Fragment9, useCallback as useCallback19, useState as useState33 } from "react";
21025
21032
  import { useDebounce, useMedia as useMedia10 } from "react-use";
21026
21033
  import {
21034
+ HMSPeerType as HMSPeerType2,
21027
21035
  selectHandRaisedPeers,
21028
21036
  selectHasPeerHandRaised as selectHasPeerHandRaised2,
21029
21037
  selectIsLargeRoom as selectIsLargeRoom2,
@@ -21035,6 +21043,7 @@ import {
21035
21043
  } from "@100mslive/react-sdk";
21036
21044
  import {
21037
21045
  AddIcon as AddIcon2,
21046
+ CallIcon,
21038
21047
  ChangeRoleIcon as ChangeRoleIcon2,
21039
21048
  CrossIcon as CrossIcon12,
21040
21049
  HandIcon as HandIcon4,
@@ -21047,7 +21056,7 @@ import {
21047
21056
  // src/Prebuilt/components/Connection/ConnectionIndicator.tsx
21048
21057
  init_define_process_env();
21049
21058
  import React70 from "react";
21050
- import { selectConnectionQualityByPeerID as selectConnectionQualityByPeerID2, useHMSStore as useHMSStore33 } from "@100mslive/react-sdk";
21059
+ import { HMSPeerType, selectConnectionQualityByPeerID as selectConnectionQualityByPeerID2, selectPeerTypeByID, useHMSStore as useHMSStore33 } from "@100mslive/react-sdk";
21051
21060
  import { PoorConnectivityIcon } from "@100mslive/react-icons";
21052
21061
 
21053
21062
  // src/Prebuilt/components/Connection/connectionQualityUtils.js
@@ -21101,9 +21110,10 @@ var ConnectionIndicator = ({
21101
21110
  }) => {
21102
21111
  var _a8;
21103
21112
  const downlinkQuality = (_a8 = useHMSStore33(selectConnectionQualityByPeerID2(peerId))) == null ? void 0 : _a8.downlinkQuality;
21113
+ const peerType = useHMSStore33(selectPeerTypeByID(peerId));
21104
21114
  const { theme: theme2 } = useTheme();
21105
21115
  const defaultColor = theme2.colors.on_surface_low;
21106
- if (downlinkQuality === -1 || downlinkQuality === void 0) {
21116
+ if (downlinkQuality === -1 || downlinkQuality === void 0 || peerType === HMSPeerType.SIP) {
21107
21117
  return null;
21108
21118
  }
21109
21119
  if (downlinkQuality === 0) {
@@ -21200,7 +21210,7 @@ import { AddIcon, ChevronRightIcon, CrossIcon as CrossIcon11 } from "@100mslive/
21200
21210
  // src/Prebuilt/components/Footer/RoleOptions.tsx
21201
21211
  init_define_process_env();
21202
21212
  import React72, { useState as useState31 } from "react";
21203
- import { match as match5 } from "ts-pattern";
21213
+ import { match as match6 } from "ts-pattern";
21204
21214
  import {
21205
21215
  selectPermissions as selectPermissions10,
21206
21216
  selectRoleByRoleName,
@@ -21322,11 +21332,11 @@ var RoleOptions = ({ roleName, peerList }) => {
21322
21332
  },
21323
21333
  /* @__PURE__ */ React72.createElement(PersonRectangleIcon2, null),
21324
21334
  /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Remove all from Stage")
21325
- ) : null, match5({ canPublishAudio, isAudioOnForSomePeers, canMute: permissions == null ? void 0 : permissions.mute, canUnmute: permissions == null ? void 0 : permissions.unmute }).with({ canPublishAudio: true, isAudioOnForSomePeers: true, canMute: true }, () => {
21335
+ ) : null, match6({ canPublishAudio, isAudioOnForSomePeers, canMute: permissions == null ? void 0 : permissions.mute, canUnmute: permissions == null ? void 0 : permissions.unmute }).with({ canPublishAudio: true, isAudioOnForSomePeers: true, canMute: true }, () => {
21326
21336
  return /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", false) }, /* @__PURE__ */ React72.createElement(MicOffIcon3, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Audio for All"));
21327
21337
  }).with({ canPublishAudio: true, isAudioOnForSomePeers: false, canUnmute: true }, () => {
21328
21338
  return /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", true) }, /* @__PURE__ */ React72.createElement(MicOnIcon3, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Request to Unmute Audio for All"));
21329
- }).otherwise(() => null), match5({ canPublishVideo, isVideoOnForSomePeers, canMute: permissions == null ? void 0 : permissions.mute, canUnmute: permissions == null ? void 0 : permissions.unmute }).with({ canPublishVideo: true, isVideoOnForSomePeers: true, canMute: true }, () => {
21339
+ }).otherwise(() => null), match6({ canPublishVideo, isVideoOnForSomePeers, canMute: permissions == null ? void 0 : permissions.mute, canUnmute: permissions == null ? void 0 : permissions.unmute }).with({ canPublishVideo: true, isVideoOnForSomePeers: true, canMute: true }, () => {
21330
21340
  return /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", false) }, /* @__PURE__ */ React72.createElement(VideoOffIcon2, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Video for All"));
21331
21341
  }).with({ canPublishVideo: true, isVideoOnForSomePeers: false, canUnmute: true }, () => {
21332
21342
  return /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", true) }, /* @__PURE__ */ React72.createElement(VideoOnIcon3, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Request to Unmute Video for All"));
@@ -21343,7 +21353,7 @@ var RoleOptions = ({ roleName, peerList }) => {
21343
21353
 
21344
21354
  // src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
21345
21355
  init_define_process_env();
21346
- import { match as match6, P as P3 } from "ts-pattern";
21356
+ import { match as match7, P as P3 } from "ts-pattern";
21347
21357
  import { selectPermissions as selectPermissions11, useHMSActions as useHMSActions24, useHMSStore as useHMSStore36 } from "@100mslive/react-sdk";
21348
21358
  var useGroupOnStageActions = ({ peers }) => {
21349
21359
  var _a8;
@@ -21358,7 +21368,7 @@ var useGroupOnStageActions = ({ peers }) => {
21358
21368
  } = elements.on_stage_exp || {};
21359
21369
  const canChangeRole = (_a8 = useHMSStore36(selectPermissions11)) == null ? void 0 : _a8.changeRole;
21360
21370
  const offStageRolePeers = peers.filter(
21361
- (peer) => match6({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
21371
+ (peer) => match7({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
21362
21372
  {
21363
21373
  on_stage_role: P3.when((role) => !!role),
21364
21374
  bring_to_stage_label: P3.when((label) => !!label),
@@ -21690,6 +21700,7 @@ var Participant = ({
21690
21700
  ParticipantActions,
21691
21701
  {
21692
21702
  peerId: peer.id,
21703
+ peerType: peer.type,
21693
21704
  isLocal: peer.id === localPeerId,
21694
21705
  role: peer.roleName,
21695
21706
  isHandRaisedAccordion
@@ -21751,6 +21762,7 @@ var VirtualizedParticipants = ({
21751
21762
  var ParticipantActions = React74.memo(
21752
21763
  ({
21753
21764
  peerId,
21765
+ peerType,
21754
21766
  role,
21755
21767
  isLocal,
21756
21768
  isHandRaisedAccordion
@@ -21772,7 +21784,15 @@ var ParticipantActions = React74.memo(
21772
21784
  gap: "$8"
21773
21785
  }
21774
21786
  },
21775
- isHandRaisedAccordion ? /* @__PURE__ */ React74.createElement(HandRaisedAccordionParticipantActions, { peerId, role }) : /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(ConnectionIndicator, { peerId }), isHandRaised && /* @__PURE__ */ React74.createElement(
21787
+ isHandRaisedAccordion ? /* @__PURE__ */ React74.createElement(HandRaisedAccordionParticipantActions, { peerId, role }) : /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(ConnectionIndicator, { peerId }), peerType === HMSPeerType2.SIP && /* @__PURE__ */ React74.createElement(
21788
+ Flex,
21789
+ {
21790
+ align: "center",
21791
+ justify: "center",
21792
+ css: { p: "$1", c: "$on_surface_high", bg: "$surface_bright", borderRadius: "$round" }
21793
+ },
21794
+ /* @__PURE__ */ React74.createElement(CallIcon, { width: 19, height: 19 })
21795
+ ), isHandRaised && /* @__PURE__ */ React74.createElement(
21776
21796
  Flex,
21777
21797
  {
21778
21798
  align: "center",
@@ -21961,8 +21981,6 @@ var Footer2 = ({
21961
21981
  const isMobile = useMedia11(config.media.md);
21962
21982
  const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
21963
21983
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
21964
- const { toggleAudio, toggleVideo } = useAVToggle4();
21965
- const noAVPermissions = !(toggleAudio || toggleVideo);
21966
21984
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
21967
21985
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
21968
21986
  const { showPolls } = useShowPolls();
@@ -22010,7 +22028,7 @@ var Footer2 = ({
22010
22028
  }
22011
22029
  }
22012
22030
  },
22013
- isMobile ? /* @__PURE__ */ React77.createElement(React77.Fragment, null, noAVPermissions ? /* @__PURE__ */ React77.createElement(RaiseHand, null) : null, (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(ScreenshareToggle, null), /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ React77.createElement(EmojiReaction, null), /* @__PURE__ */ React77.createElement(LeaveRoom, { screenType }))
22031
+ isMobile ? /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(ScreenshareToggle, null), /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ React77.createElement(EmojiReaction, null), /* @__PURE__ */ React77.createElement(LeaveRoom, { screenType }))
22014
22032
  ),
22015
22033
  /* @__PURE__ */ React77.createElement(Footer.Right, null, /* @__PURE__ */ React77.createElement(WhiteboardToggle, null), showPolls && /* @__PURE__ */ React77.createElement(PollsToggle, null), !isMobile && (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), (elements == null ? void 0 : elements.participant_list) && /* @__PURE__ */ React77.createElement(ParticipantCount, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType }))
22016
22034
  );
@@ -22087,7 +22105,7 @@ import {
22087
22105
  selectLocalPeer as selectLocalPeer7,
22088
22106
  selectRoomState as selectRoomState5,
22089
22107
  selectVideoTrackByID as selectVideoTrackByID5,
22090
- useAVToggle as useAVToggle6,
22108
+ useAVToggle as useAVToggle3,
22091
22109
  useHMSStore as useHMSStore70,
22092
22110
  useParticipants as useParticipants2,
22093
22111
  usePreviewJoin,
@@ -22099,7 +22117,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
22099
22117
  init_define_process_env();
22100
22118
  import React127, { useEffect as useEffect33 } from "react";
22101
22119
  import { useMedia as useMedia22 } from "react-use";
22102
- import { match as match10 } from "ts-pattern";
22120
+ import { match as match11 } from "ts-pattern";
22103
22121
  import { selectAppData as selectAppData6, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore69 } from "@100mslive/react-sdk";
22104
22122
 
22105
22123
  // src/Prebuilt/components/Polls/Polls.tsx
@@ -23292,7 +23310,7 @@ import React97 from "react";
23292
23310
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
23293
23311
  init_define_process_env();
23294
23312
  import React96, { useCallback as useCallback22, useMemo as useMemo8, useRef as useRef17, useState as useState40 } from "react";
23295
- import { match as match7 } from "ts-pattern";
23313
+ import { match as match8 } from "ts-pattern";
23296
23314
  import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions30, useHMSStore as useHMSStore47 } from "@100mslive/react-sdk";
23297
23315
  import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
23298
23316
  var QuestionCard2 = ({
@@ -23369,7 +23387,7 @@ var QuestionCard2 = ({
23369
23387
  {
23370
23388
  variant: "caption",
23371
23389
  css: {
23372
- color: match7({ respondedToQuiz, isLive, isCorrectAnswer }).when(
23390
+ color: match8({ respondedToQuiz, isLive, isCorrectAnswer }).when(
23373
23391
  ({ respondedToQuiz: respondedToQuiz2, isLive: isLive2 }) => respondedToQuiz2 && !isLive2,
23374
23392
  ({ isCorrectAnswer: isCorrectAnswer2 }) => isCorrectAnswer2 ? "$alert_success" : "$alert_error_default"
23375
23393
  ).otherwise(() => "$on_surface_low"),
@@ -23379,7 +23397,7 @@ var QuestionCard2 = ({
23379
23397
  gap: "$4"
23380
23398
  }
23381
23399
  },
23382
- match7({ respondedToQuiz, pollEnded, isCorrectAnswer }).when(
23400
+ match8({ respondedToQuiz, pollEnded, isCorrectAnswer }).when(
23383
23401
  ({ respondedToQuiz: respondedToQuiz2, pollEnded: pollEnded2 }) => respondedToQuiz2 && pollEnded2,
23384
23402
  ({ isCorrectAnswer: isCorrectAnswer2 }) => {
23385
23403
  return isCorrectAnswer2 ? /* @__PURE__ */ React96.createElement(CheckCircleIcon5, { height: 16, width: 16 }) : /* @__PURE__ */ React96.createElement(CrossCircleIcon, { height: 16, width: 16 });
@@ -23739,7 +23757,7 @@ var ShowRoomDetailHeader = () => {
23739
23757
  init_define_process_env();
23740
23758
  import React119, { useEffect as useEffect31, useState as useState52 } from "react";
23741
23759
  import { useMedia as useMedia19 } from "react-use";
23742
- import { match as match9 } from "ts-pattern";
23760
+ import { match as match10 } from "ts-pattern";
23743
23761
  import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
23744
23762
  import { CrossIcon as CrossIcon21 } from "@100mslive/react-icons";
23745
23763
 
@@ -23747,7 +23765,7 @@ import { CrossIcon as CrossIcon21 } from "@100mslive/react-icons";
23747
23765
  init_define_process_env();
23748
23766
  import React116, { useCallback as useCallback30, useRef as useRef21 } from "react";
23749
23767
  import { useMedia as useMedia18 } from "react-use";
23750
- import { match as match8 } from "ts-pattern";
23768
+ import { match as match9 } from "ts-pattern";
23751
23769
  import { selectHMSMessagesCount, useHMSActions as useHMSActions39, useHMSStore as useHMSStore60, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
23752
23770
  import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
23753
23771
 
@@ -24129,13 +24147,13 @@ var usePinnedBy = (messageId) => {
24129
24147
  const pinnedMessages = useHMSStore53(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
24130
24148
  const [pinnedBy, setPinnedBy] = useState45("");
24131
24149
  useEffect25(() => {
24132
- let match13 = "";
24150
+ let match16 = "";
24133
24151
  pinnedMessages == null ? void 0 : pinnedMessages.forEach((pinnedMessage) => {
24134
24152
  if (pinnedMessage.id === messageId) {
24135
- match13 = pinnedMessage.pinnedBy;
24153
+ match16 = pinnedMessage.pinnedBy;
24136
24154
  }
24137
24155
  });
24138
- setPinnedBy(match13);
24156
+ setPinnedBy(match16);
24139
24157
  }, [messageId, pinnedMessages]);
24140
24158
  return pinnedBy;
24141
24159
  };
@@ -24535,7 +24553,7 @@ import React111, { useCallback as useCallback28, useEffect as useEffect28, useRe
24535
24553
  import { useMedia as useMedia16 } from "react-use";
24536
24554
  import data2 from "@emoji-mart/data";
24537
24555
  import Picker from "@emoji-mart/react";
24538
- import { selectLocalPeer as selectLocalPeer3, useAVToggle as useAVToggle5, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
24556
+ import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
24539
24557
  import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
24540
24558
 
24541
24559
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
@@ -24549,6 +24567,7 @@ init_define_process_env();
24549
24567
  import React109, { useMemo as useMemo10, useState as useState47 } from "react";
24550
24568
  import { useMedia as useMedia14 } from "react-use";
24551
24569
  import {
24570
+ HMSPeerType as HMSPeerType3,
24552
24571
  selectMessagesUnreadCountByPeerID,
24553
24572
  selectMessagesUnreadCountByRole,
24554
24573
  selectRemotePeers as selectRemotePeers2,
@@ -24665,7 +24684,7 @@ var VirtualizedSelectItemList = ({
24665
24684
  const filteredPeers = useMemo10(
24666
24685
  () => peers.filter(
24667
24686
  // search should be empty or search phrase should be included in name
24668
- (peer) => !searchValue || peer.name.toLowerCase().includes(searchValue.toLowerCase())
24687
+ (peer) => (!searchValue || peer.name.toLowerCase().includes(searchValue.toLowerCase())) && peer.type !== HMSPeerType3.SIP
24669
24688
  ),
24670
24689
  [peers, searchValue]
24671
24690
  );
@@ -24945,8 +24964,6 @@ var ChatFooter = ({ onSend, children }) => {
24945
24964
  const defaultSelection = useDefaultChatSelection();
24946
24965
  const selection = selectedPeer.name || selectedRole || defaultSelection;
24947
24966
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
24948
- const { toggleAudio, toggleVideo } = useAVToggle5();
24949
- const noAVPermissions = !(toggleAudio || toggleVideo);
24950
24967
  const isMwebHLSStream = useMobileHLSStream();
24951
24968
  const isLandscapeHLSStream = useLandscapeHLSStream();
24952
24969
  useEffect28(() => {
@@ -25112,7 +25129,7 @@ var ChatFooter = ({ onSend, children }) => {
25112
25129
  },
25113
25130
  gap: "2"
25114
25131
  },
25115
- noAVPermissions ? /* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }) : null,
25132
+ /* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }),
25116
25133
  /* @__PURE__ */ React111.createElement(MoreSettings, { elements, screenType })
25117
25134
  ))));
25118
25135
  };
@@ -25354,7 +25371,7 @@ var Chat = () => {
25354
25371
  const listRef = useRef21(null);
25355
25372
  const hmsActions = useHMSActions39();
25356
25373
  const vanillaStore = useHMSVanillaStore10();
25357
- const { enabled: isChatEnabled = true } = useHMSStore60(sm("chatState" /* CHAT_STATE */)) || {};
25374
+ const { enabled: isChatEnabled = true } = useHMSStore60(cm("chatState" /* CHAT_STATE */)) || {};
25358
25375
  const isMobile = useMedia18(config.media.md);
25359
25376
  const isMobileHLSStream = useMobileHLSStream();
25360
25377
  const isLandscapeStream = useLandscapeHLSStream();
@@ -25398,7 +25415,7 @@ var Chat = () => {
25398
25415
  {
25399
25416
  css: __spreadValues({
25400
25417
  position: "absolute"
25401
- }, match8({ isLandscapeStream, isMobileHLSStream, isChatEnabled }).with(
25418
+ }, match9({ isLandscapeStream, isMobileHLSStream, isChatEnabled }).with(
25402
25419
  {
25403
25420
  isLandscapeStream: true,
25404
25421
  isChatEnabled: true
@@ -25438,7 +25455,7 @@ var NewMessageIndicator = ({
25438
25455
  scrollToBottom,
25439
25456
  listRef
25440
25457
  }) => {
25441
- const unreadCount = useHMSStore60(Kn);
25458
+ const unreadCount = useHMSStore60(qn);
25442
25459
  if (!unreadCount || !listRef.current) {
25443
25460
  return null;
25444
25461
  }
@@ -25654,7 +25671,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25654
25671
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
25655
25672
  const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
25656
25673
  useEffect31(() => {
25657
- match9({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
25674
+ match10({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
25658
25675
  setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
25659
25676
  }).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
25660
25677
  setActiveTab(SIDE_PANE_OPTIONS.CHAT);
@@ -25690,7 +25707,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25690
25707
  transition: "margin 0.3s ease-in-out"
25691
25708
  }
25692
25709
  },
25693
- match9({ isOverlayChat, isChatOpen, showChat, hideTabs }).with({ isOverlayChat: true, isChatOpen: true, showChat: true }, () => /* @__PURE__ */ React119.createElement(Chat, null)).with({ hideTabs: true }, () => {
25710
+ match10({ isOverlayChat, isChatOpen, showChat, hideTabs }).with({ isOverlayChat: true, isChatOpen: true, showChat: true }, () => /* @__PURE__ */ React119.createElement(Chat, null)).with({ hideTabs: true }, () => {
25694
25711
  return /* @__PURE__ */ React119.createElement(React119.Fragment, null, /* @__PURE__ */ React119.createElement(Flex, { justify: "between", css: { w: "100%", "&:empty": { display: "none" } } }, /* @__PURE__ */ React119.createElement(
25695
25712
  Text,
25696
25713
  {
@@ -25779,8 +25796,14 @@ import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@
25779
25796
  // src/Prebuilt/components/Connection/TileConnection.tsx
25780
25797
  init_define_process_env();
25781
25798
  import React120 from "react";
25782
- import { selectScreenShareByPeerID, selectSessionStore as selectSessionStore9, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
25783
- import { PinIcon as PinIcon3, ShareScreenIcon as ShareScreenIcon3, SpotlightIcon } from "@100mslive/react-icons";
25799
+ import {
25800
+ HMSPeerType as HMSPeerType4,
25801
+ selectPeerTypeByID as selectPeerTypeByID2,
25802
+ selectScreenShareByPeerID,
25803
+ selectSessionStore as selectSessionStore9,
25804
+ useHMSStore as useHMSStore64
25805
+ } from "@100mslive/react-sdk";
25806
+ import { CallIcon as CallIcon2, PinIcon as PinIcon3, ShareScreenIcon as ShareScreenIcon3, SpotlightIcon } from "@100mslive/react-icons";
25784
25807
  var TileConnection = ({
25785
25808
  name,
25786
25809
  peerId,
@@ -25790,7 +25813,8 @@ var TileConnection = ({
25790
25813
  }) => {
25791
25814
  const spotlighted = useHMSStore64(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
25792
25815
  const isPeerScreenSharing = !!useHMSStore64(selectScreenShareByPeerID(peerId));
25793
- return /* @__PURE__ */ React120.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React120.createElement(React120.Fragment, null, name ? /* @__PURE__ */ React120.createElement(Flex, { align: "center" }, isPeerScreenSharing && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(ShareScreenIcon3, { width: "15", height: "15" })), pinned && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(PinIcon3, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ React120.createElement(
25816
+ const peerType = useHMSStore64(selectPeerTypeByID2(peerId));
25817
+ return /* @__PURE__ */ React120.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React120.createElement(React120.Fragment, null, name ? /* @__PURE__ */ React120.createElement(Flex, { align: "center" }, peerType === HMSPeerType4.SIP && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(CallIcon2, { width: "15", height: "15" })), isPeerScreenSharing && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(ShareScreenIcon3, { width: "15", height: "15" })), pinned && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(PinIcon3, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ React120.createElement(
25794
25818
  Text,
25795
25819
  {
25796
25820
  css: __spreadValues({
@@ -26526,10 +26550,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26526
26550
  const [blurAmount, setBlurAmount] = useState55(VBHandler.getBlurAmount() || 0.5);
26527
26551
  const roomState = useHMSStore68(selectRoomState4);
26528
26552
  const isLargeRoom = useHMSStore68(selectIsLargeRoom3);
26529
- const isEffectsEnabled = useHMSStore68(ic);
26530
- const effectsKey = useHMSStore68(rc);
26553
+ const isEffectsEnabled = useHMSStore68(rc);
26554
+ const effectsKey = useHMSStore68(sc);
26531
26555
  const isPluginAdded = useHMSStore68(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
26532
- const background = useHMSStore68(rm(APP_DATA.background));
26556
+ const background = useHMSStore68(nm(APP_DATA.background));
26533
26557
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
26534
26558
  const inPreview = roomState === HMSRoomState4.Preview;
26535
26559
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -26785,7 +26809,7 @@ var SidePane = ({
26785
26809
  overlayChat: !!((_g = elements == null ? void 0 : elements.chat) == null ? void 0 : _g.is_overlay),
26786
26810
  roomDescription: isMobile && sidepane === SIDE_PANE_OPTIONS.ROOM_DETAILS
26787
26811
  };
26788
- const SidepaneComponent = match10(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ React127.createElement(
26812
+ const SidepaneComponent = match11(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ React127.createElement(
26789
26813
  Wrapper3,
26790
26814
  __spreadValues({
26791
26815
  css: {
@@ -26808,7 +26832,7 @@ var SidePane = ({
26808
26832
  direction: "column",
26809
26833
  justify: "center",
26810
26834
  css: {
26811
- w: match10({ isMobileHLSStream, isLandscapeHLSStream }).with({ isLandscapeHLSStream: true }, () => "340px").with({ isMobileHLSStream: true }, () => "100%").otherwise(() => "$100"),
26835
+ w: match11({ isMobileHLSStream, isLandscapeHLSStream }).with({ isLandscapeHLSStream: true }, () => "340px").with({ isMobileHLSStream: true }, () => "100%").otherwise(() => "$100"),
26812
26836
  h: "100%",
26813
26837
  flexShrink: 0,
26814
26838
  gap: "$4",
@@ -26971,7 +26995,7 @@ var PreviewJoin = ({
26971
26995
  const { isStreamingOn } = useRecordingStreaming11();
26972
26996
  const authToken = useAuthToken();
26973
26997
  const [name, setName] = useState56(initialName || previewPreference.name);
26974
- const { toggleAudio, toggleVideo } = useAVToggle6();
26998
+ const { toggleAudio, toggleVideo } = useAVToggle3();
26975
26999
  const [previewError, setPreviewError] = useState56(false);
26976
27000
  const { endpoints } = useHMSPrebuiltContext();
26977
27001
  const { peerCount } = useParticipants2();
@@ -27059,7 +27083,7 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
27059
27083
  }));
27060
27084
  var PreviewTile = ({ name, error }) => {
27061
27085
  const localPeer = useHMSStore70(selectLocalPeer7);
27062
- const { isLocalAudioEnabled, toggleAudio } = useAVToggle6();
27086
+ const { isLocalAudioEnabled, toggleAudio } = useAVToggle3();
27063
27087
  const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
27064
27088
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
27065
27089
  const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -27225,7 +27249,7 @@ var RoleChangeRequestModal = () => {
27225
27249
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
27226
27250
  init_define_process_env();
27227
27251
  import React151, { Suspense, useEffect as useEffect48 } from "react";
27228
- import { match as match11 } from "ts-pattern";
27252
+ import { match as match12 } from "ts-pattern";
27229
27253
  import { selectIsConnectedToRoom as selectIsConnectedToRoom9, selectLocalPeerRoleName as selectLocalPeerRoleName6, useHMSActions as useHMSActions45, useHMSStore as useHMSStore81 } from "@100mslive/react-sdk";
27230
27254
 
27231
27255
  // src/Prebuilt/components/VideoLayouts/GridLayout.tsx
@@ -27509,7 +27533,7 @@ var useTileLayout = ({
27509
27533
  const matrix = new Array(maxRows).fill(null).map((_2, i) => {
27510
27534
  const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
27511
27535
  const rowElements = [];
27512
- for (let j = 0; j < numCols; j++) {
27536
+ for (let j2 = 0; j2 < numCols; j2++) {
27513
27537
  if (index < page.length) {
27514
27538
  rowElements.push(page[index++]);
27515
27539
  }
@@ -28638,13 +28662,13 @@ var useCloseScreenshareWhiteboard = () => {
28638
28662
  };
28639
28663
 
28640
28664
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
28641
- var HLSView = React151.lazy(() => import("./HLSView-6NEUUQBX.js"));
28665
+ var HLSView = React151.lazy(() => import("./HLSView-YAR57OPP.js"));
28642
28666
  var VideoStreamingSection = ({
28643
28667
  screenType,
28644
28668
  elements,
28645
28669
  hideControls = false
28646
28670
  }) => {
28647
- var _a8, _b7;
28671
+ var _a8;
28648
28672
  const localPeerRole = useHMSStore81(selectLocalPeerRoleName6);
28649
28673
  const isConnected = useHMSStore81(selectIsConnectedToRoom9);
28650
28674
  const hmsActions = useHMSActions45();
@@ -28669,18 +28693,6 @@ var VideoStreamingSection = ({
28669
28693
  if (!localPeerRole) {
28670
28694
  return null;
28671
28695
  }
28672
- let ViewComponent;
28673
- if (screenType === "hls_live_streaming") {
28674
- ViewComponent = /* @__PURE__ */ React151.createElement(HLSView, null);
28675
- } else if (localPeerRole === waitingViewerRole) {
28676
- ViewComponent = /* @__PURE__ */ React151.createElement(WaitingView, null);
28677
- } else if (pdfAnnotatorActive) {
28678
- ViewComponent = /* @__PURE__ */ React151.createElement(PDFView, null);
28679
- } else if (urlToIframe) {
28680
- ViewComponent = /* @__PURE__ */ React151.createElement(EmbedView, null);
28681
- } else {
28682
- ViewComponent = /* @__PURE__ */ React151.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
28683
- }
28684
28696
  return /* @__PURE__ */ React151.createElement(Suspense, { fallback: /* @__PURE__ */ React151.createElement(FullPageProgress_default, null) }, /* @__PURE__ */ React151.createElement(
28685
28697
  Flex,
28686
28698
  {
@@ -28689,14 +28701,28 @@ var VideoStreamingSection = ({
28689
28701
  position: "relative",
28690
28702
  gap: isMobileHLSStream || isLandscapeHLSStream ? "0" : "$4"
28691
28703
  },
28692
- direction: match11({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "row").with({ isMobileHLSStream: true }, () => "column").otherwise(() => "row")
28704
+ direction: match12({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "row").with({ isMobileHLSStream: true }, () => "column").otherwise(() => "row")
28693
28705
  },
28694
- ViewComponent,
28706
+ match12({ screenType, localPeerRole, pdfAnnotatorActive, urlToIframe }).with(
28707
+ {
28708
+ screenType: "hls_live_streaming"
28709
+ },
28710
+ () => /* @__PURE__ */ React151.createElement(HLSView, null)
28711
+ ).when(
28712
+ ({ localPeerRole: localPeerRole2 }) => localPeerRole2 === waitingViewerRole,
28713
+ () => /* @__PURE__ */ React151.createElement(WaitingView, null)
28714
+ ).with({ pdfAnnotatorActive: true }, () => /* @__PURE__ */ React151.createElement(PDFView, null)).when(
28715
+ ({ urlToIframe: urlToIframe2 }) => !!urlToIframe2,
28716
+ () => /* @__PURE__ */ React151.createElement(EmbedView, null)
28717
+ ).otherwise(() => {
28718
+ var _a9;
28719
+ return /* @__PURE__ */ React151.createElement(GridLayout, __spreadValues({}, (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid));
28720
+ }),
28695
28721
  /* @__PURE__ */ React151.createElement(
28696
28722
  Box,
28697
28723
  {
28698
28724
  css: {
28699
- flex: match11({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "1 1 0").with({ isMobileHLSStream: true }, () => "2 1 0").otherwise(() => void 0),
28725
+ flex: match12({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "1 1 0").with({ isMobileHLSStream: true }, () => "2 1 0").otherwise(() => void 0),
28700
28726
  position: "relative",
28701
28727
  height: !isMobileHLSStream ? "100%" : void 0,
28702
28728
  maxHeight: "100%",
@@ -28708,7 +28734,7 @@ var VideoStreamingSection = ({
28708
28734
  SidePane_default,
28709
28735
  {
28710
28736
  screenType,
28711
- tileProps: (_b7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _b7.grid,
28737
+ tileProps: (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid,
28712
28738
  hideControls
28713
28739
  }
28714
28740
  )
@@ -28968,8 +28994,6 @@ var ConferenceScreen = () => {
28968
28994
  const isMobileDevice = isAndroid || isIOS || isIPadOS;
28969
28995
  const dropdownListRef = useRef25();
28970
28996
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
28971
- const { toggleAudio, toggleVideo } = useAVToggle7();
28972
- const noAVPermissions = !(toggleAudio || toggleVideo);
28973
28997
  const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
28974
28998
  const autoRoomJoined = useRef25(isPreviewScreenEnabled);
28975
28999
  const isMobileHLSStream = useMobileHLSStream();
@@ -29093,7 +29117,7 @@ var ConferenceScreen = () => {
29093
29117
  justify: "end",
29094
29118
  gap: "2"
29095
29119
  },
29096
- noAVPermissions ? /* @__PURE__ */ React155.createElement(RaiseHand, null) : null,
29120
+ /* @__PURE__ */ React155.createElement(RaiseHand, null),
29097
29121
  /* @__PURE__ */ React155.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
29098
29122
  /* @__PURE__ */ React155.createElement(
29099
29123
  Box,
@@ -29365,6 +29389,7 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
29365
29389
  init_define_process_env();
29366
29390
  import React158, { useContext as useContext4, useEffect as useEffect54 } from "react";
29367
29391
  import { usePreviousDistinct } from "react-use";
29392
+ import { match as match13, P as P4 } from "ts-pattern";
29368
29393
  import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
29369
29394
 
29370
29395
  // src/Prebuilt/components/hooks/useRedirectToLeave.tsx
@@ -29414,16 +29439,24 @@ var useAppStateManager = () => {
29414
29439
  if (!roomLayout) {
29415
29440
  return;
29416
29441
  }
29417
- if (roomState === HMSRoomState8.Connected) {
29418
- setActiveState("meeting" /* MEETING */);
29419
- } else if (prevRoomState && [HMSRoomState8.Reconnecting, HMSRoomState8.Connected, HMSRoomState8.Connecting].includes(prevRoomState) && [HMSRoomState8.Disconnecting, HMSRoomState8.Disconnected].includes(roomState)) {
29420
- const goTo = isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */;
29421
- setActiveState(isLeaveScreenEnabled ? "leave" /* LEAVE */ : goTo);
29422
- VBHandler.reset();
29423
- redirectToLeave(1e3);
29424
- } else if (!prevRoomState && roomState === HMSRoomState8.Disconnected) {
29442
+ match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P4.any], () => setActiveState("meeting" /* MEETING */)).with(
29443
+ [HMSRoomState8.Disconnecting, HMSRoomState8.Connected],
29444
+ [HMSRoomState8.Disconnecting, HMSRoomState8.Connecting],
29445
+ [HMSRoomState8.Disconnecting, HMSRoomState8.Reconnecting],
29446
+ [HMSRoomState8.Disconnected, HMSRoomState8.Connected],
29447
+ [HMSRoomState8.Disconnected, HMSRoomState8.Connecting],
29448
+ [HMSRoomState8.Disconnected, HMSRoomState8.Reconnecting],
29449
+ () => {
29450
+ setActiveState(
29451
+ match13({ isLeaveScreenEnabled, isPreviewScreenEnabled }).with({ isLeaveScreenEnabled: true }, () => "leave" /* LEAVE */).with({ isPreviewScreenEnabled: true }, () => "preview" /* PREVIEW */).otherwise(() => "meeting" /* MEETING */)
29452
+ );
29453
+ VBHandler.reset();
29454
+ redirectToLeave(1e3);
29455
+ }
29456
+ ).with([HMSRoomState8.Disconnected, P4.nullish], () => {
29425
29457
  setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
29426
- }
29458
+ }).otherwise(() => {
29459
+ });
29427
29460
  }, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave]);
29428
29461
  return { activeState, rejoin };
29429
29462
  };
@@ -29476,7 +29509,7 @@ var LeaveScreen = () => {
29476
29509
  init_define_process_env();
29477
29510
  import React160, { useEffect as useEffect55, useState as useState66 } from "react";
29478
29511
  import { useMedia as useMedia36 } from "react-use";
29479
- import { match as match12, P as P4 } from "ts-pattern";
29512
+ import { match as match14, P as P5 } from "ts-pattern";
29480
29513
  import { RefreshIcon } from "@100mslive/react-icons";
29481
29514
  var MwebLandscapePrompt = () => {
29482
29515
  const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState66(false);
@@ -29496,7 +29529,7 @@ var MwebLandscapePrompt = () => {
29496
29529
  const angle = window.screen.orientation.angle;
29497
29530
  const type = window.screen.orientation.type || "";
29498
29531
  setShowMwebLandscapePrompt(
29499
- match12({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P4.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
29532
+ match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P5.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
29500
29533
  );
29501
29534
  };
29502
29535
  handleRotation();
@@ -30247,7 +30280,7 @@ function Notifications() {
30247
30280
  }, []);
30248
30281
  useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
30249
30282
  useEffect65(() => {
30250
- var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p;
30283
+ var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p;
30251
30284
  if (!notification || isNotificationDisabled) {
30252
30285
  return;
30253
30286
  }
@@ -30288,7 +30321,7 @@ function Notifications() {
30288
30321
  });
30289
30322
  break;
30290
30323
  case HMSNotificationTypes10.ROLE_UPDATED: {
30291
- if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
30324
+ if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
30292
30325
  ToastManager.addToast({
30293
30326
  title: `You are now a ${notification.data.roleName}`
30294
30327
  });
@@ -30820,12 +30853,7 @@ var AppStates = ({ activeState }) => {
30820
30853
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
30821
30854
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
30822
30855
  useAutoStartStreaming();
30823
- if (activeState === "preview" /* PREVIEW */ && isPreviewScreenEnabled) {
30824
- return /* @__PURE__ */ React177.createElement(PreviewScreen, null);
30825
- } else if (activeState === "leave" /* LEAVE */ && isLeaveScreenEnabled) {
30826
- return /* @__PURE__ */ React177.createElement(LeaveScreen, null);
30827
- }
30828
- return /* @__PURE__ */ React177.createElement(ConferenceScreen, null);
30856
+ return match15({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React177.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React177.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React177.createElement(ConferenceScreen, null));
30829
30857
  };
30830
30858
  var BackSwipe = () => {
30831
30859
  const isConnectedToRoom = useHMSStore95(selectIsConnectedToRoom13);
@@ -31005,4 +31033,4 @@ lodash/lodash.js:
31005
31033
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
31006
31034
  *)
31007
31035
  */
31008
- //# sourceMappingURL=chunk-JF6QG5V5.js.map
31036
+ //# sourceMappingURL=chunk-MXPCXPZQ.js.map