@100mslive/roomkit-react 0.3.2 → 0.3.3-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/Accordion/Accordion.d.ts +1 -0
  2. package/dist/Accordion/index.d.ts +1 -0
  3. package/dist/{HLSView-IN3HFCHT.js → HLSView-GDOF4655.js} +2 -2
  4. package/dist/Prebuilt/components/RaiseHand.d.ts +1 -1
  5. package/dist/Prebuilt/components/hooks/useMetadata.d.ts +8 -0
  6. package/dist/{chunk-ORCLDJ5D.js → chunk-ZDW56PPL.js} +563 -508
  7. package/dist/chunk-ZDW56PPL.js.map +7 -0
  8. package/dist/index.cjs.js +965 -907
  9. package/dist/index.cjs.js.map +4 -4
  10. package/dist/index.js +1 -1
  11. package/dist/meta.cjs.json +69 -74
  12. package/dist/meta.esbuild.json +75 -80
  13. package/package.json +7 -7
  14. package/src/Accordion/Accordion.tsx +4 -4
  15. package/src/Prebuilt/common/utils.js +1 -1
  16. package/src/Prebuilt/components/Chat/ChatBody.tsx +10 -0
  17. package/src/Prebuilt/components/Chat/ChatFooter.tsx +2 -4
  18. package/src/Prebuilt/components/ConferenceScreen.tsx +1 -4
  19. package/src/Prebuilt/components/Footer/Footer.tsx +1 -4
  20. package/src/Prebuilt/components/Footer/RoleAccordion.tsx +2 -1
  21. package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +0 -1
  22. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +1 -5
  23. package/src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx +6 -6
  24. package/src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.tsx +14 -2
  25. package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +3 -2
  26. package/src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx +1 -0
  27. package/src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx +3 -1
  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/Stats/Stats.tsx +1 -1
  33. package/dist/chunk-ORCLDJ5D.js.map +0 -7
  34. /package/dist/{HLSView-IN3HFCHT.js.map → HLSView-GDOF4655.js.map} +0 -0
@@ -9,18 +9,18 @@ var __getProtoOf = Object.getPrototypeOf;
9
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
10
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
11
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
- var __spreadValues = (a2, b2) => {
13
- for (var prop in b2 || (b2 = {}))
14
- if (__hasOwnProp.call(b2, prop))
15
- __defNormalProp(a2, prop, b2[prop]);
12
+ var __spreadValues = (a2, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a2, prop, b[prop]);
16
16
  if (__getOwnPropSymbols)
17
- for (var prop of __getOwnPropSymbols(b2)) {
18
- if (__propIsEnum.call(b2, prop))
19
- __defNormalProp(a2, prop, b2[prop]);
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a2, prop, b[prop]);
20
20
  }
21
21
  return a2;
22
22
  };
23
- var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
23
+ var __spreadProps = (a2, b) => __defProps(a2, __getOwnPropDescs(b));
24
24
  var __objRest = (source, exclude) => {
25
25
  var target = {};
26
26
  for (var prop in source)
@@ -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_42de3bf0-e8d8-4da9-b19f-bc5be5d32f9b", 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.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_42de3bf0-e8d8-4da9-b19f-bc5be5d32f9b", 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.2", 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.6", 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: "598", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_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: "20240310.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.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.0-alpha.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:19697", 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.2", 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: "8292593569", 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: "8aafe5f7eea1ac66fb48451a5948cdfd4cf2cc1a", 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: "73bd302948a98fdfcac6cd74d43a5a3ba3a657aa286cf8642e19cdae00e489e2", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", 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--1710486780579-0.6756256193132808:/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--1710486780382-0.3377916912472101:/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--1710486758252-0.09805976846387043:/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--1710486758071-0.9423805720583429:/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_0c26744d-9056-4838-8f2a-9539586a16a6", INVOCATION_ID: "dce2a787edb34ef9af868fe0e65835f5", 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: "480", 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 289", 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.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.2", 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: "8aafe5f7eea1ac66fb48451a5948cdfd4cf2cc1a", 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_42de3bf0-e8d8-4da9-b19f-bc5be5d32f9b", 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_42de3bf0-e8d8-4da9-b19f-bc5be5d32f9b", 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_42de3bf0-e8d8-4da9-b19f-bc5be5d32f9b" };
109
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b2dfce6c-1460-4d7f-9260-6a3b0805fa80", 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.3-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_b2dfce6c-1460-4d7f-9260-6a3b0805fa80", 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.3-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.6", 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: "590", 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: "20240310.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.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.0-alpha.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:19554", 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.3-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: "8338903597", 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: "8e27b80c474e3487828a60fce4aa1f444aa14577", 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: "2b4eb6b136e5c67e12006fe982ceadc0ea33b23198cb8487892ca00ba4e2cd5c", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1710832096589-0.6370797788370992:/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--1710832096394-0.31759327289111483:/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--1710832073832-0.31470723189659267:/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--1710832073647-0.23318157752573399:/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_bc8accc0-5dd2-44bf-aebb-4cc97b5738e1", INVOCATION_ID: "59e00abec76b4888b0bce75a92bf4b9a", 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: "482", 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 264", 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.3-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.3-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: "8e27b80c474e3487828a60fce4aa1f444aa14577", 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_b2dfce6c-1460-4d7f-9260-6a3b0805fa80", 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_b2dfce6c-1460-4d7f-9260-6a3b0805fa80", 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_b2dfce6c-1460-4d7f-9260-6a3b0805fa80" };
110
110
  }
111
111
  });
112
112
 
@@ -801,7 +801,7 @@ var require_lodash = __commonJS({
801
801
  return string.match(reUnicodeWord) || [];
802
802
  }
803
803
  var runInContext = function runInContext2(context) {
804
- context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
804
+ context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
805
805
  var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
806
806
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
807
807
  var coreJsData = context["__core-js_shared__"];
@@ -4148,7 +4148,7 @@ var require_lodash = __commonJS({
4148
4148
  function eq(value, other) {
4149
4149
  return value === other || value !== value && other !== other;
4150
4150
  }
4151
- var gt2 = createRelationalOperation(baseGt);
4151
+ var gt = createRelationalOperation(baseGt);
4152
4152
  var gte = createRelationalOperation(function(value, other) {
4153
4153
  return value >= other;
4154
4154
  });
@@ -5287,7 +5287,7 @@ var require_lodash = __commonJS({
5287
5287
  lodash.forOwn = forOwn;
5288
5288
  lodash.forOwnRight = forOwnRight;
5289
5289
  lodash.get = get;
5290
- lodash.gt = gt2;
5290
+ lodash.gt = gt;
5291
5291
  lodash.gte = gte;
5292
5292
  lodash.has = has;
5293
5293
  lodash.hasIn = hasIn;
@@ -5575,17 +5575,17 @@ var require_lodash = __commonJS({
5575
5575
  }
5576
5576
  return lodash;
5577
5577
  };
5578
- var _ = runInContext();
5578
+ var _2 = runInContext();
5579
5579
  if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
5580
- root._ = _;
5580
+ root._ = _2;
5581
5581
  define(function() {
5582
- return _;
5582
+ return _2;
5583
5583
  });
5584
5584
  } else if (freeModule) {
5585
- (freeModule.exports = _)._ = _;
5586
- freeExports._ = _;
5585
+ (freeModule.exports = _2)._ = _2;
5586
+ freeExports._ = _2;
5587
5587
  } else {
5588
- root._ = _;
5588
+ root._ = _2;
5589
5589
  }
5590
5590
  }).call(exports);
5591
5591
  }
@@ -7670,12 +7670,12 @@ var require_sdp = __commonJS({
7670
7670
  return parsed;
7671
7671
  };
7672
7672
  SDPUtils2.writeRtpMap = function(codec) {
7673
- let pt2 = codec.payloadType;
7673
+ let pt = codec.payloadType;
7674
7674
  if (codec.preferredPayloadType !== void 0) {
7675
- pt2 = codec.preferredPayloadType;
7675
+ pt = codec.preferredPayloadType;
7676
7676
  }
7677
7677
  const channels = codec.channels || codec.numChannels || 1;
7678
- return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7678
+ return "a=rtpmap:" + pt + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7679
7679
  };
7680
7680
  SDPUtils2.parseExtmap = function(line) {
7681
7681
  const parts = line.substring(9).split(" ");
@@ -7701,9 +7701,9 @@ var require_sdp = __commonJS({
7701
7701
  };
7702
7702
  SDPUtils2.writeFmtp = function(codec) {
7703
7703
  let line = "";
7704
- let pt2 = codec.payloadType;
7704
+ let pt = codec.payloadType;
7705
7705
  if (codec.preferredPayloadType !== void 0) {
7706
- pt2 = codec.preferredPayloadType;
7706
+ pt = codec.preferredPayloadType;
7707
7707
  }
7708
7708
  if (codec.parameters && Object.keys(codec.parameters).length) {
7709
7709
  const params = [];
@@ -7714,7 +7714,7 @@ var require_sdp = __commonJS({
7714
7714
  params.push(param);
7715
7715
  }
7716
7716
  });
7717
- line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
7717
+ line += "a=fmtp:" + pt + " " + params.join(";") + "\r\n";
7718
7718
  }
7719
7719
  return line;
7720
7720
  };
@@ -7727,13 +7727,13 @@ var require_sdp = __commonJS({
7727
7727
  };
7728
7728
  SDPUtils2.writeRtcpFb = function(codec) {
7729
7729
  let lines = "";
7730
- let pt2 = codec.payloadType;
7730
+ let pt = codec.payloadType;
7731
7731
  if (codec.preferredPayloadType !== void 0) {
7732
- pt2 = codec.preferredPayloadType;
7732
+ pt = codec.preferredPayloadType;
7733
7733
  }
7734
7734
  if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
7735
7735
  codec.rtcpFeedback.forEach((fb) => {
7736
- lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7736
+ lines += "a=rtcp-fb:" + pt + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7737
7737
  });
7738
7738
  }
7739
7739
  return lines;
@@ -7861,21 +7861,21 @@ var require_sdp = __commonJS({
7861
7861
  const mline = lines[0].split(" ");
7862
7862
  description.profile = mline[2];
7863
7863
  for (let i = 3; i < mline.length; i++) {
7864
- const pt2 = mline[i];
7864
+ const pt = mline[i];
7865
7865
  const rtpmapline = SDPUtils2.matchPrefix(
7866
7866
  mediaSection,
7867
- "a=rtpmap:" + pt2 + " "
7867
+ "a=rtpmap:" + pt + " "
7868
7868
  )[0];
7869
7869
  if (rtpmapline) {
7870
7870
  const codec = SDPUtils2.parseRtpMap(rtpmapline);
7871
7871
  const fmtps = SDPUtils2.matchPrefix(
7872
7872
  mediaSection,
7873
- "a=fmtp:" + pt2 + " "
7873
+ "a=fmtp:" + pt + " "
7874
7874
  );
7875
7875
  codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
7876
7876
  codec.rtcpFeedback = SDPUtils2.matchPrefix(
7877
7877
  mediaSection,
7878
- "a=rtcp-fb:" + pt2 + " "
7878
+ "a=rtcp-fb:" + pt + " "
7879
7879
  ).map(SDPUtils2.parseRtcpFb);
7880
7880
  description.codecs.push(codec);
7881
7881
  switch (codec.name.toUpperCase()) {
@@ -11056,7 +11056,7 @@ import { selectTrackAudioByID, useHMSVanillaStore } from "@100mslive/react-sdk";
11056
11056
  var audio_level_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABABAMAAAAHc7SNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAtUExURQAAAP///////////////////////////////////////////////////////6FIq5sAAAAOdFJOUwA/QJqbnJ2euLnc3d7+2IFKrQAAAa9JREFUaN7dmcFRxDAMRXNgW4AbV24ZSkgrlAAFUAqlpITtgT0QnB22BnY3iWXHSlYz5H/NoJNO8bP8JTlyVW1k923/MveYdnc623PuUe3jsux37tEDcN24eFR7HJb9TD2qvQ/LfqUexR7a41Xx7bDsMfWo2j+NlnpU7TsBiOKdAOqoeCcAUTwFYFK8pn0GgFLttWVxAEq1pwJo1Z4KoFV7KoBW7YEAT0uK729pfxuAZcX/3Fr2TwAx05cVDwWIu11RPBQg7lZ0XlR7JIDsdkXxCIDp5GXf2v0GBxBP3pTfAIB48qb83h7AWtlhANbKDgOwVnYYgLWywwCsn/u/AO5HMIqwcwOovdNwLESNG8BQioNfKa52YwBsakC04/MF9C1Rw4HdjhU1SCyKqOCvZCGLhXgMgKgGiUWRI9hr+aSG+bU8sP4LyliIxwW4xOI1j8pKZlB/Tjt794ANpKzdAzOgaOzdAzKiCVpmkACWM4MEIFVCyQzfQWXnPao9eA+rG+dxfXB8L1jNB4pN+bCfd4re59Gqoz9alflQ+zzb7ZROwTWlUziEIO8UZCs7hc1+AbiVW6XSE8knAAAAAElFTkSuQmCC";
11057
11057
 
11058
11058
  // src/AudioLevel/AudioLevel.tsx
11059
- var positionValues = new Array(101).fill(0).reduce((acc, _, index) => {
11059
+ var positionValues = new Array(101).fill(0).reduce((acc, _2, index) => {
11060
11060
  acc[index] = Math.round(index / 100 * 4) / 4;
11061
11061
  return acc;
11062
11062
  }, {});
@@ -11318,7 +11318,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
11318
11318
  label: "Bitrate(A)",
11319
11319
  value: formatBytes(audioTrackStats == null ? void 0 : audioTrackStats.bitrate, "b/s")
11320
11320
  }
11321
- ), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(downlinkScore), label: "Downlink", value: downlinkScore }), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(videoTrackStats == null ? void 0 : videoTrackStats.codec), label: "Codec(V)", value: videoTrackStats == null ? void 0 : videoTrackStats.codec }), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(audioTrackStats == null ? void 0 : audioTrackStats.codec), label: "Codec(A)", value: audioTrackStats == null ? void 0 : audioTrackStats.codec }), /* @__PURE__ */ React15.createElement(PacketLostAndJitter, { audioTrackStats, videoTrackStats }))));
11321
+ ), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(downlinkScore), label: "CQS", value: downlinkScore }), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(videoTrackStats == null ? void 0 : videoTrackStats.codec), label: "Codec(V)", value: videoTrackStats == null ? void 0 : videoTrackStats.codec }), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(audioTrackStats == null ? void 0 : audioTrackStats.codec), label: "Codec(A)", value: audioTrackStats == null ? void 0 : audioTrackStats.codec }), /* @__PURE__ */ React15.createElement(PacketLostAndJitter, { audioTrackStats, videoTrackStats }))));
11322
11322
  }
11323
11323
  var PacketLostAndJitter = ({
11324
11324
  audioTrackStats,
@@ -11617,8 +11617,8 @@ var StyledChevron = styled(ChevronUpIcon, {
11617
11617
  var AccordionRoot = StyledAccordion;
11618
11618
  var AccordionItem = StyledItem;
11619
11619
  var AccordionHeader = React17.forwardRef((_a8, forwardedRef) => {
11620
- var _b7 = _a8, { children, iconStyles, css: css2 } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css"]);
11621
- return /* @__PURE__ */ React17.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ React17.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ React17.createElement(StyledChevron, { "aria-hidden": true, css: iconStyles })));
11620
+ var _b7 = _a8, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
11621
+ return /* @__PURE__ */ React17.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ React17.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ React17.createElement(StyledChevron, { "data-testid": chevronID, "aria-hidden": true, css: iconStyles })));
11622
11622
  });
11623
11623
  var AccordionContent = React17.forwardRef(
11624
11624
  (_a8, forwardedRef) => {
@@ -12423,12 +12423,12 @@ var formatTime = (timeInSeconds) => {
12423
12423
  const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
12424
12424
  return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
12425
12425
  };
12426
- var compareArrays = (a2, b2) => {
12427
- if (a2.length !== b2.length)
12426
+ var compareArrays = (a2, b) => {
12427
+ if (a2.length !== b.length)
12428
12428
  return false;
12429
12429
  else {
12430
12430
  for (var i = 0; i < a2.length; i++) {
12431
- if (a2[i] !== b2[i]) {
12431
+ if (a2[i] !== b[i]) {
12432
12432
  return false;
12433
12433
  }
12434
12434
  }
@@ -12442,7 +12442,7 @@ var checkCorrectAnswer = (answer, localPeerResponse, type) => {
12442
12442
  return (answer == null ? void 0 : answer.options) && (localPeerResponse == null ? void 0 : localPeerResponse.options) && compareArrays(answer == null ? void 0 : answer.options, localPeerResponse == null ? void 0 : localPeerResponse.options);
12443
12443
  }
12444
12444
  };
12445
- var isValidTextInput = (text, minLength = 1, maxLength = 100) => {
12445
+ var isValidTextInput = (text, minLength = 1, maxLength = 1024) => {
12446
12446
  return text && text.length >= minLength && text.length <= maxLength;
12447
12447
  };
12448
12448
  var calculateAvatarAndAttribBoxSize = (calculatedWidth, calculatedHeight) => {
@@ -12897,7 +12897,6 @@ import {
12897
12897
  selectAppData as selectAppData9,
12898
12898
  selectIsConnectedToRoom as selectIsConnectedToRoom10,
12899
12899
  selectRoomState as selectRoomState7,
12900
- useAVToggle as useAVToggle7,
12901
12900
  useHMSActions as useHMSActions47,
12902
12901
  useHMSStore as useHMSStore84
12903
12902
  } from "@100mslive/react-sdk";
@@ -12907,7 +12906,6 @@ init_define_process_env();
12907
12906
  import React77, { useEffect as useEffect20 } from "react";
12908
12907
  import { useMedia as useMedia11 } from "react-use";
12909
12908
  import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
12910
- import { useAVToggle as useAVToggle4 } from "@100mslive/react-sdk";
12911
12909
 
12912
12910
  // src/Prebuilt/components/AudioVideoToggle.tsx
12913
12911
  init_define_process_env();
@@ -16079,7 +16077,7 @@ var MuteAllModal = ({
16079
16077
  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))));
16080
16078
  };
16081
16079
 
16082
- // src/Prebuilt/components/hooks/useMetadata.jsx
16080
+ // src/Prebuilt/components/hooks/useMetadata.tsx
16083
16081
  init_define_process_env();
16084
16082
  import { useCallback as useCallback14 } from "react";
16085
16083
  import {
@@ -16104,6 +16102,7 @@ var useMyMetadata = () => {
16104
16102
  } catch (error) {
16105
16103
  console.error("failed to update metadata ", updatedFields);
16106
16104
  }
16105
+ return false;
16107
16106
  });
16108
16107
  const toggleHandRaise = useCallback14(() => __async(void 0, null, function* () {
16109
16108
  if (isHandRaised) {
@@ -16120,19 +16119,13 @@ var useMyMetadata = () => {
16120
16119
  yield hmsActions.lowerLocalPeerHand();
16121
16120
  }
16122
16121
  }), [metaData == null ? void 0 : metaData.isBRBOn]);
16123
- const setPrevRole = (role) => __async(void 0, null, function* () {
16124
- yield update({
16125
- prevRole: role
16126
- });
16127
- });
16128
16122
  return {
16129
16123
  isHandRaised,
16130
16124
  isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
16131
16125
  metaData,
16132
16126
  updateMetaData: update,
16133
16127
  toggleHandRaise,
16134
- toggleBRB,
16135
- setPrevRole
16128
+ toggleBRB
16136
16129
  };
16137
16130
  };
16138
16131
 
@@ -16257,7 +16250,6 @@ import {
16257
16250
  selectIsConnectedToRoom as selectIsConnectedToRoom7,
16258
16251
  selectPeerCount as selectPeerCount3,
16259
16252
  selectPermissions as selectPermissions8,
16260
- useAVToggle as useAVToggle3,
16261
16253
  useHMSActions as useHMSActions21,
16262
16254
  useHMSStore as useHMSStore29,
16263
16255
  useRecordingStreaming as useRecordingStreaming7
@@ -16287,8 +16279,8 @@ init_define_process_env();
16287
16279
 
16288
16280
  // ../../node_modules/reselect/es/index.js
16289
16281
  init_define_process_env();
16290
- function defaultEqualityCheck(a2, b2) {
16291
- return a2 === b2;
16282
+ function defaultEqualityCheck(a2, b) {
16283
+ return a2 === b;
16292
16284
  }
16293
16285
  function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
16294
16286
  if (prev === null || next === null || prev.length !== next.length) {
@@ -16365,8 +16357,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
16365
16357
  // ../hms-video-store/dist/index.js
16366
16358
  var import_ua_parser_js = __toESM(require_ua_parser());
16367
16359
  var import_lodash3 = __toESM(require_lodash2());
16360
+ import { v4 as qa } from "uuid";
16368
16361
  import { v4 as Wa } from "uuid";
16369
- import { v4 as Ga } from "uuid";
16370
16362
 
16371
16363
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
16372
16364
  init_define_process_env();
@@ -16604,7 +16596,7 @@ function shimGetUserMedia(window2, browserDetails) {
16604
16596
  if (typeof c !== "object" || c.mandatory || c.optional) {
16605
16597
  return c;
16606
16598
  }
16607
- const cc = {};
16599
+ const cc2 = {};
16608
16600
  Object.keys(c).forEach((key) => {
16609
16601
  if (key === "require" || key === "advanced" || key === "mediaSource") {
16610
16602
  return;
@@ -16620,35 +16612,35 @@ function shimGetUserMedia(window2, browserDetails) {
16620
16612
  return name === "deviceId" ? "sourceId" : name;
16621
16613
  };
16622
16614
  if (r.ideal !== void 0) {
16623
- cc.optional = cc.optional || [];
16624
- let oc2 = {};
16615
+ cc2.optional = cc2.optional || [];
16616
+ let oc = {};
16625
16617
  if (typeof r.ideal === "number") {
16626
- oc2[oldname_("min", key)] = r.ideal;
16627
- cc.optional.push(oc2);
16628
- oc2 = {};
16629
- oc2[oldname_("max", key)] = r.ideal;
16630
- cc.optional.push(oc2);
16618
+ oc[oldname_("min", key)] = r.ideal;
16619
+ cc2.optional.push(oc);
16620
+ oc = {};
16621
+ oc[oldname_("max", key)] = r.ideal;
16622
+ cc2.optional.push(oc);
16631
16623
  } else {
16632
- oc2[oldname_("", key)] = r.ideal;
16633
- cc.optional.push(oc2);
16624
+ oc[oldname_("", key)] = r.ideal;
16625
+ cc2.optional.push(oc);
16634
16626
  }
16635
16627
  }
16636
16628
  if (r.exact !== void 0 && typeof r.exact !== "number") {
16637
- cc.mandatory = cc.mandatory || {};
16638
- cc.mandatory[oldname_("", key)] = r.exact;
16629
+ cc2.mandatory = cc2.mandatory || {};
16630
+ cc2.mandatory[oldname_("", key)] = r.exact;
16639
16631
  } else {
16640
16632
  ["min", "max"].forEach((mix) => {
16641
16633
  if (r[mix] !== void 0) {
16642
- cc.mandatory = cc.mandatory || {};
16643
- cc.mandatory[oldname_(mix, key)] = r[mix];
16634
+ cc2.mandatory = cc2.mandatory || {};
16635
+ cc2.mandatory[oldname_(mix, key)] = r[mix];
16644
16636
  }
16645
16637
  });
16646
16638
  }
16647
16639
  });
16648
16640
  if (c.advanced) {
16649
- cc.optional = (cc.optional || []).concat(c.advanced);
16641
+ cc2.optional = (cc2.optional || []).concat(c.advanced);
16650
16642
  }
16651
- return cc;
16643
+ return cc2;
16652
16644
  };
16653
16645
  const shimConstraints_ = function(constraints, func) {
16654
16646
  if (browserDetails.version >= 61) {
@@ -16656,9 +16648,9 @@ function shimGetUserMedia(window2, browserDetails) {
16656
16648
  }
16657
16649
  constraints = JSON.parse(JSON.stringify(constraints));
16658
16650
  if (constraints && typeof constraints.audio === "object") {
16659
- const remap = function(obj, a2, b2) {
16660
- if (a2 in obj && !(b2 in obj)) {
16661
- obj[b2] = obj[a2];
16651
+ const remap = function(obj, a2, b) {
16652
+ if (a2 in obj && !(b in obj)) {
16653
+ obj[b] = obj[a2];
16662
16654
  delete obj[a2];
16663
16655
  }
16664
16656
  };
@@ -17400,9 +17392,9 @@ function shimGetUserMedia2(window2, browserDetails) {
17400
17392
  navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
17401
17393
  };
17402
17394
  if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
17403
- const remap = function(obj, a2, b2) {
17404
- if (a2 in obj && !(b2 in obj)) {
17405
- obj[b2] = obj[a2];
17395
+ const remap = function(obj, a2, b) {
17396
+ if (a2 in obj && !(b in obj)) {
17397
+ obj[b] = obj[a2];
17406
17398
  delete obj[a2];
17407
17399
  }
17408
17400
  };
@@ -18463,114 +18455,114 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
18463
18455
 
18464
18456
  // ../hms-video-store/dist/index.js
18465
18457
  var import_lodash4 = __toESM(require_lodash2());
18466
- import { v4 as eo } from "uuid";
18467
- import { v4 as so } from "uuid";
18468
- import { v4 as co } from "uuid";
18469
- import { EventEmitter2 as lo } from "eventemitter2";
18470
- var Lt = __toESM(require_lib());
18471
- import { EventEmitter2 as Io } from "eventemitter2";
18472
- import { v4 as Lo } from "uuid";
18473
- import { EventEmitter2 as Do } from "eventemitter2";
18474
- import wo from "eventemitter2";
18475
- import { v4 as _o } from "uuid";
18476
- import { v4 as xo } from "uuid";
18477
- var Ma = Object.defineProperty;
18478
- var ya = Object.defineProperties;
18479
- var ka = Object.getOwnPropertyDescriptors;
18458
+ import { v4 as io } from "uuid";
18459
+ import { v4 as oo } from "uuid";
18460
+ import { v4 as uo } from "uuid";
18461
+ import { EventEmitter2 as po } from "eventemitter2";
18462
+ var Dt = __toESM(require_lib());
18463
+ import { EventEmitter2 as Co } from "eventemitter2";
18464
+ import { v4 as wo } from "uuid";
18465
+ import { EventEmitter2 as _o } from "eventemitter2";
18466
+ import No from "eventemitter2";
18467
+ import { v4 as Oo } from "uuid";
18468
+ import { v4 as Bo } from "uuid";
18469
+ var ka = Object.defineProperty;
18470
+ var Pa = Object.defineProperties;
18471
+ var Ea = Object.getOwnPropertyDescriptors;
18480
18472
  var Vt = Object.getOwnPropertySymbols;
18481
- var Gr = Object.prototype.hasOwnProperty;
18482
- var $r = Object.prototype.propertyIsEnumerable;
18483
- var Fr = (a2, e, t) => e in a2 ? Ma(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
18484
- var S = (a2, e) => {
18473
+ var Wr = Object.prototype.hasOwnProperty;
18474
+ var Kr = Object.prototype.propertyIsEnumerable;
18475
+ var $r = (a2, e, t) => e in a2 ? ka(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
18476
+ var m = (a2, e) => {
18485
18477
  for (var t in e || (e = {}))
18486
- Gr.call(e, t) && Fr(a2, t, e[t]);
18478
+ Wr.call(e, t) && $r(a2, t, e[t]);
18487
18479
  if (Vt)
18488
18480
  for (var t of Vt(e))
18489
- $r.call(e, t) && Fr(a2, t, e[t]);
18481
+ Kr.call(e, t) && $r(a2, t, e[t]);
18490
18482
  return a2;
18491
18483
  };
18492
- var M = (a2, e) => ya(a2, ka(e));
18493
- var Yi = (a2, e) => {
18484
+ var v = (a2, e) => Pa(a2, Ea(e));
18485
+ var Xi = (a2, e) => {
18494
18486
  var t = {};
18495
18487
  for (var i in a2)
18496
- Gr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
18488
+ Wr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
18497
18489
  if (a2 != null && Vt)
18498
18490
  for (var i of Vt(a2))
18499
- e.indexOf(i) < 0 && $r.call(a2, i) && (t[i] = a2[i]);
18491
+ e.indexOf(i) < 0 && Kr.call(a2, i) && (t[i] = a2[i]);
18500
18492
  return t;
18501
18493
  };
18502
- var ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18503
- var dr = ba((Xc, $a) => {
18504
- $a.exports = { version: "0.12.2", 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"] };
18494
+ var Ia = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18495
+ var lr = Ia((ed, Ka) => {
18496
+ Ka.exports = { version: "0.12.3-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"] };
18505
18497
  });
18506
- var Xi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Xi || {});
18507
- var Aa = ((e) => (e.CHAT = "chat", e))(Aa || {});
18508
- var Wr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Wr || {});
18509
- var Zi = ((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))(Zi || {});
18510
- var Kr = ((t) => (t.audio = "audio", t.video = "video", t))(Kr || {});
18498
+ 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 || {});
18499
+ var Ra = ((e) => (e.CHAT = "chat", e))(Ra || {});
18500
+ var qr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(qr || {});
18501
+ 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 || {});
18502
+ var jr = ((t) => (t.audio = "audio", t.video = "video", t))(jr || {});
18511
18503
  function He(a2, e) {
18512
18504
  let t, i;
18513
18505
  if (e)
18514
18506
  for (let r of e.auxiliaryTracks) {
18515
18507
  let s = a2[r];
18516
- Ra(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
18508
+ Ha(s) && (i = it(s) ? s : i, t = rt(s) ? s : t);
18517
18509
  }
18518
18510
  return { video: t, audio: i };
18519
18511
  }
18520
- function tt(a2) {
18512
+ function it(a2) {
18521
18513
  return a2 && a2.type === "audio";
18522
18514
  }
18523
- function it(a2) {
18515
+ function rt(a2) {
18524
18516
  return a2 && a2.type === "video";
18525
18517
  }
18526
- function Ra(a2) {
18518
+ function Ha(a2) {
18527
18519
  return a2 && a2.source === "screen";
18528
18520
  }
18529
- function Gt(a2) {
18521
+ function $t(a2) {
18530
18522
  return a2 && a2.source === "audioplaylist";
18531
18523
  }
18532
- function rt(a2) {
18524
+ function st(a2) {
18533
18525
  return a2 && a2.source === "videoplaylist";
18534
18526
  }
18535
- function qr(a2) {
18527
+ function Jr(a2) {
18536
18528
  return a2 ? !!(a2 != null && a2.degraded) : false;
18537
18529
  }
18538
18530
  function Ue(a2, e) {
18539
18531
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
18540
18532
  }
18541
- function st(a2) {
18533
+ function at(a2) {
18542
18534
  var r;
18543
18535
  let e = false, t = false, i = false;
18544
18536
  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 };
18545
18537
  }
18546
- var V = (a2) => a2.room;
18547
- var Ia = (a2) => a2.errors;
18548
- var An = createSelector(Ia, (a2) => a2.length === 0 ? null : a2.at(-1));
18549
- var Rn = createSelector(V, (a2) => a2.id);
18538
+ var B = (a2) => a2.room;
18539
+ var Ca = (a2) => a2.errors;
18540
+ var Rn = createSelector(Ca, (a2) => a2.length === 0 ? null : a2.at(-1));
18541
+ var Hn = createSelector(B, (a2) => a2.id);
18550
18542
  var G = (a2) => a2.peers;
18551
- var $t = (a2) => a2.messages.byID;
18552
- var Jr = (a2) => a2.messages.allIDs;
18553
- var D = (a2) => a2.tracks;
18554
- var er = (a2) => a2.appData;
18555
- var Ha = (a2) => a2.speakers;
18556
- var ye = createSelector([V], (a2) => a2 && a2.isConnected);
18557
- var Cn = createSelector([ye, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
18558
- var Ca = (a2) => a2.hideLocalPeer;
18559
- var ae = createSelector([V, G, Ca], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
18560
- var La = createSelector(D, (a2) => Object.values(a2));
18561
- var z = createSelector(V, G, (a2, e) => e[a2.localPeer]);
18562
- var ue = createSelector(V, (a2) => a2.localPeer);
18563
- var Ln = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
18564
- var Dn = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
18543
+ var Wt = (a2) => a2.messages.byID;
18544
+ var zr = (a2) => a2.messages.allIDs;
18545
+ var w = (a2) => a2.tracks;
18546
+ var tr = (a2) => a2.appData;
18547
+ var La = (a2) => a2.speakers;
18548
+ var ye = createSelector([B], (a2) => a2 && a2.isConnected);
18549
+ 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));
18550
+ var Da = (a2) => a2.hideLocalPeer;
18551
+ 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]));
18552
+ var wa = createSelector(w, (a2) => Object.values(a2));
18553
+ var z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
18554
+ var ue = createSelector(B, (a2) => a2.localPeer);
18555
+ var wn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
18556
+ var _n = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
18565
18557
  var Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
18566
18558
  var K = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
18567
- var Da = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
18568
- var zr = createSelector([Z, K, Da], (a2, e, t) => {
18559
+ var _a7 = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
18560
+ var Xr = createSelector([Z, K, _a7], (a2, e, t) => {
18569
18561
  let i = t ? [...t] : [];
18570
18562
  return a2 && i.unshift(a2), e && i.unshift(e), i;
18571
18563
  });
18572
- var wn = createSelector(ae, (a2) => a2.filter((e) => !e.isLocal));
18573
- var _n = createSelector(G, Ha, (a2, e) => {
18564
+ var Nn = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
18565
+ var On = createSelector(G, La, (a2, e) => {
18574
18566
  let t = Object.entries(e).sort((i, r) => {
18575
18567
  var n, l;
18576
18568
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -18583,11 +18575,11 @@ var _n = createSelector(G, Ha, (a2, e) => {
18583
18575
  }
18584
18576
  return null;
18585
18577
  });
18586
- var ir = createSelector(z, D, (a2, e) => {
18578
+ var rr = createSelector(z, w, (a2, e) => {
18587
18579
  let { video: t, audio: i } = He(e, a2);
18588
18580
  return !!(t || i);
18589
18581
  });
18590
- var wa = createSelector(G, D, (a2, e) => {
18582
+ var Na = createSelector(G, w, (a2, e) => {
18591
18583
  let t;
18592
18584
  for (let i in a2) {
18593
18585
  let r = a2[i], { video: s, audio: o } = He(e, r);
@@ -18597,15 +18589,15 @@ var wa = createSelector(G, D, (a2, e) => {
18597
18589
  }
18598
18590
  return t;
18599
18591
  });
18600
- var On = createSelector(wa, (a2) => !!a2);
18601
- var xn = createSelector(G, D, (a2, e) => {
18592
+ var Un = createSelector(Na, (a2) => !!a2);
18593
+ var Bn = createSelector(G, w, (a2, e) => {
18602
18594
  for (let t in a2) {
18603
18595
  let i = a2[t], { audio: r, video: s } = He(e, i);
18604
18596
  if (!s && r)
18605
18597
  return i;
18606
18598
  }
18607
18599
  });
18608
- var Un = createSelector(G, D, (a2, e) => {
18600
+ var Vn = createSelector(G, w, (a2, e) => {
18609
18601
  let t = [], i = [];
18610
18602
  for (let r in a2) {
18611
18603
  let s = a2[r], { video: o, audio: n } = He(e, s);
@@ -18613,80 +18605,80 @@ var Un = createSelector(G, D, (a2, e) => {
18613
18605
  }
18614
18606
  return t.concat(i);
18615
18607
  });
18616
- var Vn = createSelector(G, D, (a2, e) => {
18608
+ var Fn = createSelector(G, w, (a2, e) => {
18617
18609
  for (let t in e) {
18618
18610
  let i = e[t];
18619
- if (rt(i) && it(i) && i.peerId)
18611
+ if (st(i) && rt(i) && i.peerId)
18620
18612
  return a2[i.peerId];
18621
18613
  }
18622
18614
  });
18623
- var Bn = createSelector(G, D, (a2, e) => {
18615
+ var Gn = createSelector(G, w, (a2, e) => {
18624
18616
  for (let t in e) {
18625
18617
  let i = e[t];
18626
- if (Gt(i) && i.peerId)
18618
+ if ($t(i) && i.peerId)
18627
18619
  return a2[i.peerId];
18628
18620
  }
18629
18621
  });
18630
- var Fn = createSelector(La, (a2) => a2.filter(qr));
18631
- var Gn = createSelector(Jr, (a2) => a2.length);
18632
- var $n = createSelector($t, (a2) => Object.values(a2).filter((e) => !e.read).length);
18633
- var at = createSelector(Jr, $t, (a2, e) => {
18622
+ var $n = createSelector(wa, (a2) => a2.filter(Jr));
18623
+ var Wn = createSelector(zr, (a2) => a2.length);
18624
+ var Kn = createSelector(Wt, (a2) => Object.values(a2).filter((e) => !e.read).length);
18625
+ var ot = createSelector(zr, Wt, (a2, e) => {
18634
18626
  let t = [];
18635
18627
  return a2.forEach((i) => {
18636
18628
  t.push(e[i]);
18637
18629
  }), t;
18638
18630
  });
18639
- var _a7 = createSelector(at, (a2) => a2.filter((e) => {
18631
+ var Oa = createSelector(ot, (a2) => a2.filter((e) => {
18640
18632
  var t;
18641
18633
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
18642
18634
  }));
18643
- var Wn = createSelector(_a7, (a2) => a2.filter((e) => !e.read).length);
18644
- var Y = createSelector([V], (a2) => a2 && a2.roomState);
18645
- var Xr = createSelector(Y, (a2) => a2 === "Preview");
18646
- var Kn = createSelector(V, (a2) => a2.roomState !== "Disconnected");
18647
- var oe = (a2) => a2.roles;
18648
- var qn = createSelector([oe], (a2) => Object.keys(a2));
18649
- var Wt = createSelector([z, oe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
18650
- var Na = (a2) => {
18635
+ var qn = createSelector(Oa, (a2) => a2.filter((e) => !e.read).length);
18636
+ var Y = createSelector([B], (a2) => a2 && a2.roomState);
18637
+ var es = createSelector(Y, (a2) => a2 === "Preview");
18638
+ var jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
18639
+ var ne = (a2) => a2.roles;
18640
+ var Jn = createSelector([ne], (a2) => Object.keys(a2));
18641
+ var Kt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
18642
+ var xa = (a2) => {
18651
18643
  var e;
18652
18644
  return (e = a2.preview) == null ? void 0 : e.asRole;
18653
18645
  };
18654
- var Zr = createSelector([Na, oe], (a2, e) => a2 ? e[a2] : null);
18655
- var jn = createSelector([Wt], (a2) => {
18646
+ var ts = createSelector([xa, ne], (a2, e) => a2 ? e[a2] : null);
18647
+ var Qn = createSelector([Kt], (a2) => {
18656
18648
  var e;
18657
18649
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
18658
18650
  });
18659
- var es = createSelector(Wt, (a2) => a2 == null ? void 0 : a2.permissions);
18660
- var Jn = createSelector(V, (a2) => a2.recording);
18661
- var Qn = createSelector(V, (a2) => a2.rtmp);
18662
- var zn = createSelector(V, (a2) => a2.hls);
18663
- var Yn = createSelector(V, (a2) => a2.sessionId);
18664
- var Xn = createSelector(V, (a2) => a2.startedAt);
18665
- var Zn = createSelector(V, (a2) => !!a2.isLargeRoom);
18666
- var ec = createSelector(V, (a2) => !!a2.isEffectsEnabled);
18667
- var tc = createSelector(V, (a2) => a2.effectsKey);
18668
- var ts = (a2) => a2.polls;
18669
- var ac = createSelector(ae, (a2) => a2.filter((e) => e.isHandRaised));
18670
- var Oa = (a2) => a2.whiteboards;
18671
- var oc = createSelector(Oa, (a2) => Object.values(a2)[0]);
18672
- var rs = (a2 = "audio") => (e) => e.playlist[a2].list;
18673
- var rr = (a2 = "audio") => (e) => e.playlist[a2].selection;
18674
- var ss = (a2 = "audio") => (e) => e.playlist[a2].progress;
18675
- var as = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
18676
- var os = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
18677
- var ns = (a2 = "audio") => (e) => e.playlist[a2].volume;
18678
- var cs = (a2 = "audio") => createSelector(rs(a2), (e) => Object.values(e));
18679
- var ds = (a2 = "audio") => createSelector(rs(a2), rr(a2), (e, t) => {
18651
+ var is = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
18652
+ var zn = createSelector(B, (a2) => a2.recording);
18653
+ var Yn = createSelector(B, (a2) => a2.rtmp);
18654
+ var Xn = createSelector(B, (a2) => a2.hls);
18655
+ var Zn = createSelector(B, (a2) => a2.sessionId);
18656
+ var ec = createSelector(B, (a2) => a2.startedAt);
18657
+ var tc = createSelector(B, (a2) => !!a2.isLargeRoom);
18658
+ var ic = createSelector(B, (a2) => !!a2.isEffectsEnabled);
18659
+ var rc = createSelector(B, (a2) => a2.effectsKey);
18660
+ var rs = (a2) => a2.polls;
18661
+ var nc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
18662
+ var Ua = (a2) => a2.whiteboards;
18663
+ var cc = createSelector(Ua, (a2) => Object.values(a2)[0]);
18664
+ var as = (a2 = "audio") => (e) => e.playlist[a2].list;
18665
+ var sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
18666
+ var os = (a2 = "audio") => (e) => e.playlist[a2].progress;
18667
+ var ns = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
18668
+ var cs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
18669
+ var ds = (a2 = "audio") => (e) => e.playlist[a2].volume;
18670
+ var ls = (a2 = "audio") => createSelector(as(a2), (e) => Object.values(e));
18671
+ var us = (a2 = "audio") => createSelector(as(a2), sr(a2), (e, t) => {
18680
18672
  if (t.id)
18681
18673
  return e[t.id];
18682
18674
  });
18683
- var ls = { selection: rr("audio"), progress: ss("audio"), currentTime: as("audio"), playbackRate: os("audio"), volume: ns("audio"), list: cs("audio"), selectedItem: ds("audio") };
18684
- var us = { selection: rr("video"), progress: ss("video"), currentTime: as("video"), playbackRate: os("video"), volume: ns("video"), list: cs("video"), selectedItem: ds("video") };
18685
- function b(a2) {
18675
+ var ps = { selection: sr("audio"), progress: os("audio"), currentTime: ns("audio"), playbackRate: cs("audio"), volume: ds("audio"), list: ls("audio"), selectedItem: us("audio") };
18676
+ var hs = { selection: sr("video"), progress: os("video"), currentTime: ns("video"), playbackRate: cs("video"), volume: ds("video"), list: ls("video"), selectedItem: us("video") };
18677
+ function A(a2) {
18686
18678
  return (e) => (t) => a2(t, e);
18687
18679
  }
18688
- var ps = ((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))(ps || {});
18689
- var xa = typeof window != "undefined" && typeof window.expect != "undefined";
18680
+ 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 || {});
18681
+ var Ba = typeof window != "undefined" && typeof window.expect != "undefined";
18690
18682
  var d = class {
18691
18683
  static v(e, ...t) {
18692
18684
  this.log(0, e, ...t);
@@ -18752,25 +18744,25 @@ var d = class {
18752
18744
  }
18753
18745
  }
18754
18746
  };
18755
- d.level = xa ? 7 : 0;
18747
+ d.level = Ba ? 7 : 0;
18756
18748
  var pe = new import_ua_parser_js.UAParser();
18757
- var w = typeof window != "undefined";
18758
- var hs;
18759
- var Ce = typeof window == "undefined" && !((hs = pe.getBrowser().name) != null && hs.toLowerCase().includes("electron"));
18760
- var Va = () => !Ce;
18761
- var mc = Va();
18762
- var ms;
18749
+ var _ = typeof window != "undefined";
18763
18750
  var Ss;
18764
- var Ts = ((Ss = (ms = pe.getBrowser()) == null ? void 0 : ms.name) == null ? void 0 : Ss.toLowerCase()) === "firefox";
18765
- function Ba() {
18766
- if (w && window) {
18751
+ var Ce = typeof window == "undefined" && !((Ss = pe.getBrowser().name) != null && Ss.toLowerCase().includes("electron"));
18752
+ var Fa = () => !Ce;
18753
+ var gc = Fa();
18754
+ var gs;
18755
+ var Ts;
18756
+ var vs = ((Ts = (gs = pe.getBrowser()) == null ? void 0 : gs.name) == null ? void 0 : Ts.toLowerCase()) === "firefox";
18757
+ function Ga() {
18758
+ if (_ && window) {
18767
18759
  let a2 = window.location.hostname;
18768
18760
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
18769
18761
  }
18770
18762
  return "CUSTOM";
18771
18763
  }
18772
- var Be = Ba();
18773
- var v = { 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 } };
18764
+ var Ve = Ga();
18765
+ 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 } };
18774
18766
  var f = class a extends Error {
18775
18767
  constructor(t, i, r, s, o, n = false) {
18776
18768
  super(s);
@@ -18800,99 +18792,99 @@ var f = class a extends Error {
18800
18792
  }`;
18801
18793
  }
18802
18794
  };
18803
- var Fa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
18795
+ var $a = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
18804
18796
  var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18805
- return new f(v.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
18797
+ return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
18806
18798
  }, WebSocketConnectionLost(a2, e = "") {
18807
- return new f(v.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
18799
+ return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
18808
18800
  }, AbnormalClose(a2, e = "") {
18809
- return new f(v.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
18801
+ return new f(M.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
18810
18802
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
18811
18803
  return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
18812
18804
  }, EndpointUnreachable(a2, e = "") {
18813
- return new f(v.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
18805
+ return new f(M.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
18814
18806
  }, InvalidTokenFormat(a2, e = "") {
18815
- return new f(v.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
18807
+ return new f(M.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
18816
18808
  }, InitConfigNotAvailable(a2, e = "") {
18817
- return new f(v.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
18809
+ return new f(M.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
18818
18810
  } }, TracksErrors: { GenericTrack(a2, e = "") {
18819
- return new f(v.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
18811
+ return new f(M.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
18820
18812
  }, CantAccessCaptureDevice(a2, e, t = "") {
18821
- return new f(v.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
18813
+ return new f(M.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
18822
18814
  }, DeviceNotAvailable(a2, e, t = "") {
18823
- return new f(v.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
18815
+ return new f(M.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
18824
18816
  }, DeviceInUse(a2, e, t = "") {
18825
- return new f(v.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
18817
+ return new f(M.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
18826
18818
  }, DeviceLostMidway(a2, e, t = "") {
18827
- return new f(v.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
18819
+ return new f(M.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
18828
18820
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
18829
- return new f(v.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
18821
+ return new f(M.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
18830
18822
  }, InvalidVideoSettings(a2, e = "") {
18831
- return new f(v.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
18823
+ return new f(M.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
18832
18824
  }, AutoplayBlocked(a2, e = "") {
18833
- return new f(v.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
18825
+ return new f(M.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
18834
18826
  }, CodecChangeNotPermitted(a2, e = "") {
18835
- return new f(v.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
18827
+ return new f(M.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
18836
18828
  }, OverConstrained(a2, e, t = "") {
18837
- return new f(v.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
18829
+ return new f(M.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
18838
18830
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
18839
- return new f(v.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
18831
+ return new f(M.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
18840
18832
  }, SystemDeniedPermission(a2, e, t = "") {
18841
- return new f(v.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
18833
+ return new f(M.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
18842
18834
  }, CurrentTabNotShared() {
18843
- return new f(v.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
18835
+ return new f(M.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
18844
18836
  }, AudioPlaybackError(a2) {
18845
- return new f(v.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
18837
+ return new f(M.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
18846
18838
  }, SelectedDeviceMissing(a2) {
18847
- return new f(v.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
18839
+ return new f(M.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
18848
18840
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
18849
- return new f(v.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
18841
+ return new f(M.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
18850
18842
  }, CreateAnswerFailed(a2, e = "") {
18851
- return new f(v.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
18843
+ return new f(M.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
18852
18844
  }, SetLocalDescriptionFailed(a2, e = "") {
18853
- return new f(v.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
18845
+ return new f(M.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
18854
18846
  }, SetRemoteDescriptionFailed(a2, e = "") {
18855
- return new f(v.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
18847
+ return new f(M.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
18856
18848
  }, ICEFailure(a2, e = "", t = false) {
18857
- return new f(v.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
18849
+ return new f(M.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
18858
18850
  }, ICEDisconnected(a2, e = "") {
18859
- return new f(v.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
18851
+ return new f(M.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
18860
18852
  }, StatsFailed(a2, e = "") {
18861
- return new f(v.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
18853
+ return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
18862
18854
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
18863
- return new f(a2, "ServerErrors", e, t, t, Fa.includes(e));
18855
+ return new f(a2, "ServerErrors", e, t, t, $a.includes(e));
18864
18856
  }, AlreadyJoined(a2, e = "") {
18865
- return new f(v.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
18857
+ return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
18866
18858
  }, CannotJoinPreviewInProgress(a2, e = "") {
18867
- return new f(v.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
18859
+ return new f(M.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
18868
18860
  } }, GenericErrors: { NotConnected(a2, e = "") {
18869
- return new f(v.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
18861
+ return new f(M.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
18870
18862
  }, Signalling(a2, e) {
18871
- return new f(v.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
18863
+ return new f(M.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
18872
18864
  }, Unknown(a2, e) {
18873
- return new f(v.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
18865
+ return new f(M.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
18874
18866
  }, NotReady(a2, e = "") {
18875
- return new f(v.GenericErrors.NOT_READY, "NotReady", a2, e, e);
18867
+ return new f(M.GenericErrors.NOT_READY, "NotReady", a2, e, e);
18876
18868
  }, JsonParsingFailed(a2, e, t = "") {
18877
- return new f(v.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
18869
+ return new f(M.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
18878
18870
  }, TrackMetadataMissing(a2, e = "") {
18879
- return new f(v.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
18871
+ return new f(M.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
18880
18872
  }, RTCTrackMissing(a2, e = "") {
18881
- return new f(v.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
18873
+ return new f(M.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
18882
18874
  }, PeerMetadataMissing(a2, e = "") {
18883
- return new f(v.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
18875
+ return new f(M.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
18884
18876
  }, ValidationFailed(a2, e) {
18885
- return new f(v.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
18877
+ return new f(M.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
18886
18878
  }, InvalidRole(a2, e) {
18887
- return new f(v.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
18879
+ return new f(M.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
18888
18880
  }, PreviewAlreadyInProgress(a2, e = "") {
18889
- return new f(v.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
18881
+ return new f(M.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
18890
18882
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
18891
- return new f(v.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
18883
+ return new f(M.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
18892
18884
  }, MissingMediaDevices() {
18893
- return new f(v.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
18885
+ return new f(M.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
18894
18886
  }, MissingRTCPeerConnection() {
18895
- return new f(v.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
18887
+ return new f(M.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
18896
18888
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
18897
18889
  return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
18898
18890
  }, InitFailed(a2, e = "") {
@@ -18904,11 +18896,11 @@ var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18904
18896
  }, DeviceNotSupported(a2, e = "") {
18905
18897
  return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
18906
18898
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
18907
- return new f(v.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
18899
+ return new f(M.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
18908
18900
  }, NoEntryPlaying(a2, e) {
18909
- return new f(v.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
18901
+ return new f(M.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
18910
18902
  } } };
18911
- var or = class {
18903
+ var nr = class {
18912
18904
  constructor() {
18913
18905
  this.valuesMap = /* @__PURE__ */ new Map();
18914
18906
  }
@@ -18933,21 +18925,21 @@ var or = class {
18933
18925
  return this.valuesMap.size;
18934
18926
  }
18935
18927
  };
18936
- var fs = () => {
18928
+ var Ms = () => {
18937
18929
  try {
18938
- w && !localStorage && (window.localStorage = new or());
18930
+ _ && !localStorage && (window.localStorage = new nr());
18939
18931
  } catch (a2) {
18940
18932
  d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied());
18941
18933
  }
18942
18934
  };
18943
- var ne = class {
18935
+ var ce = class {
18944
18936
  constructor(e) {
18945
18937
  this.key = e;
18946
18938
  this.storage = null;
18947
18939
  }
18948
18940
  getStorage() {
18949
18941
  try {
18950
- return w && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
18942
+ return _ && !this.storage && (Ms(), this.storage = window.localStorage), this.storage;
18951
18943
  } catch (e) {
18952
18944
  return d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied()), null;
18953
18945
  }
@@ -18967,125 +18959,165 @@ var ne = class {
18967
18959
  (e = this.getStorage()) == null || e.removeItem(this.key);
18968
18960
  }
18969
18961
  };
18970
- var vs = () => {
18971
- let a2, e = new ne("hms-analytics-deviceId"), t = e.get();
18972
- return t ? a2 = t : (a2 = Ga(), e.set(a2)), a2;
18962
+ var ys = () => {
18963
+ let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
18964
+ return t ? a2 = t : (a2 = Wa(), e.set(a2)), a2;
18973
18965
  };
18974
18966
  function ie(a2) {
18975
18967
  return a2 != null;
18976
18968
  }
18977
- var ys = dr().version;
18978
- function ot(a2 = "prod", e) {
18979
- let t = "web", i = Be !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
18969
+ var Ps = lr().version;
18970
+ function nt(a2 = "prod", e) {
18971
+ let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
18980
18972
  if (Ce)
18981
- return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain: Be, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
18982
- let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = lr(`web_${r.name}`), l = r.version || "", u = lr(`${o.name}_${o.version}`), p = u;
18983
- return s.type && (p = `${lr(`${s.vendor}_${s.type}`)}/${u}`), ks({ os: n, os_version: l, sdk: t, sdk_version: ys, device_model: p, env: i, domain: Be, 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 });
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 });
18974
+ 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 });
18984
18976
  }
18985
- function lr(a2) {
18977
+ function ur(a2) {
18986
18978
  return a2.replace(/ /g, "_");
18987
18979
  }
18988
- var ks = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
18989
- var I = class {
18980
+ var Es = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
18981
+ var R = class {
18990
18982
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
18991
- this.metadata = { peer: {}, userAgent: ot() };
18992
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Wa(), this.device_id = vs();
18983
+ this.metadata = { peer: {}, userAgent: nt() };
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();
18993
18985
  }
18994
18986
  toSignalParams() {
18995
- return { name: this.name, info: M(S({}, this.properties), { timestamp: this.timestamp, domain: Be }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
18987
+ return { name: this.name, info: v(m({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
18996
18988
  }
18997
18989
  };
18990
+ var pr = class {
18991
+ constructor() {
18992
+ this.pluginUsage = /* @__PURE__ */ new Map();
18993
+ this.pluginLastAddedAt = /* @__PURE__ */ new Map();
18994
+ this.getPluginUsage = (e, t) => {
18995
+ let i = `${t}-${e}`;
18996
+ if (this.pluginUsage.has(i) || this.pluginUsage.set(i, 0), this.pluginLastAddedAt.has(i)) {
18997
+ let r = this.pluginLastAddedAt.get(i) || 0, s = r ? Date.now() - r : 0;
18998
+ this.pluginUsage.set(i, (this.pluginUsage.get(i) || 0) + s), this.pluginLastAddedAt.delete(i);
18999
+ }
19000
+ return this.pluginUsage.get(i);
19001
+ };
19002
+ this.updatePluginUsageData = (e, t) => {
19003
+ if (e.name === "transport.leave") {
19004
+ this.cleanup(t);
19005
+ return;
19006
+ }
19007
+ let i = e.properties.plugin_name, r = `${t}-${i}`;
19008
+ if (e.name === "mediaPlugin.added") {
19009
+ let s = e.properties.added_at;
19010
+ this.pluginLastAddedAt.set(r, s);
19011
+ } else if (e.name === "mediaPlugin.stats") {
19012
+ let s = e.properties.duration;
19013
+ s > 0 && (this.pluginUsage.set(r, (this.pluginUsage.get(r) || 0) + s * 1e3), this.pluginLastAddedAt.delete(r));
19014
+ }
19015
+ };
19016
+ this.cleanup = (e) => {
19017
+ for (let t of this.pluginUsage.keys())
19018
+ e.length && t.includes(e) && (this.pluginUsage.delete(t), this.pluginLastAddedAt.delete(t));
19019
+ };
19020
+ }
19021
+ };
19022
+ var Fe = new pr();
18998
19023
  var y = class {
18999
19024
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
19000
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(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);
19001
- return new I({ name: o, level: n, properties: l });
19025
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
19026
+ return new R({ name: o, level: n, properties: l });
19002
19027
  }
19003
19028
  static disconnect(e, t) {
19004
19029
  let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
19005
- return new I({ name: i, level: r, properties: s });
19030
+ return new R({ name: i, level: r, properties: s });
19006
19031
  }
19007
19032
  static preview(i) {
19008
- var r = i, { error: e } = r, t = Yi(r, ["error"]);
19033
+ var r = i, { error: e } = r, t = Xi(r, ["error"]);
19009
19034
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
19010
- return new I({ name: s, level: o, properties: n });
19035
+ return new R({ name: s, level: o, properties: n });
19011
19036
  }
19012
19037
  static join(i) {
19013
- var r = i, { error: e } = r, t = Yi(r, ["error"]);
19014
- let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
19015
- return new I({ name: s, level: o, properties: n });
19038
+ var r = i, { error: e } = r, t = Xi(r, ["error"]);
19039
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
19040
+ return new R({ name: s, level: o, properties: n });
19016
19041
  }
19017
19042
  static publish({ devices: e, settings: t, error: i }) {
19018
19043
  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);
19019
- return new I({ name: r, level: s, properties: o });
19044
+ return new R({ name: r, level: s, properties: o });
19020
19045
  }
19021
19046
  static hlsPlayerError(e) {
19022
- return new I({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
19047
+ return new R({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
19023
19048
  }
19024
19049
  static subscribeFail(e) {
19025
19050
  let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
19026
- return new I({ name: t, level: i, properties: r });
19051
+ return new R({ name: t, level: i, properties: r });
19027
19052
  }
19028
19053
  static leave() {
19029
- return new I({ name: "leave", level: 1 });
19054
+ return new R({ name: "leave", level: 1 });
19030
19055
  }
19031
19056
  static autoplayError() {
19032
- return new I({ name: "autoplayError", level: 2 });
19057
+ return new R({ name: "autoplayError", level: 2 });
19033
19058
  }
19034
19059
  static audioPlaybackError(e) {
19035
- return new I({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
19060
+ return new R({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
19036
19061
  }
19037
19062
  static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
19038
19063
  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);
19039
- return new I({ name: o, level: n, properties: l });
19064
+ return new R({ name: o, level: n, properties: l });
19040
19065
  }
19041
19066
  static performance(e) {
19042
19067
  let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
19043
- return new I({ name: t, level: i, properties: r });
19068
+ return new R({ name: t, level: i, properties: r });
19044
19069
  }
19045
19070
  static rtcStats(e) {
19046
19071
  let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
19047
- return new I({ name: t, level: i, properties: r });
19072
+ return new R({ name: t, level: i, properties: r });
19048
19073
  }
19049
19074
  static rtcStatsFailed(e) {
19050
19075
  let t = "rtc.stats.failed", i = 2;
19051
- return new I({ name: t, level: i, properties: this.getErrorProperties(e) });
19076
+ return new R({ name: t, level: i, properties: this.getErrorProperties(e) });
19052
19077
  }
19053
19078
  static degradationStats(e, t) {
19054
19079
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
19055
19080
  if (!t && e.degradedAt instanceof Date) {
19056
19081
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
19057
- s = M(S({}, s), { duration: n, restoredAt: o });
19082
+ s = v(m({}, s), { duration: n, restoredAt: o });
19058
19083
  }
19059
- return new I({ name: i, level: r, properties: s });
19084
+ return new R({ name: i, level: r, properties: s });
19060
19085
  }
19061
19086
  static audioDetectionFail(e, t) {
19062
19087
  let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
19063
- return new I({ name: s, level: r, properties: i });
19088
+ return new R({ name: s, level: r, properties: i });
19064
19089
  }
19065
19090
  static previewNetworkQuality(e) {
19066
- return new I({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
19091
+ return new R({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
19067
19092
  }
19068
19093
  static publishStats(e) {
19069
- return new I({ name: "publisher.stats", level: 1, properties: e });
19094
+ return new R({ name: "publisher.stats", level: 1, properties: e });
19070
19095
  }
19071
19096
  static subscribeStats(e) {
19072
- return new I({ name: "subscriber.stats", level: 1, properties: e });
19097
+ return new R({ name: "subscriber.stats", level: 1, properties: e });
19098
+ }
19099
+ static getKrispUsage(e) {
19100
+ let t = Fe.getPluginUsage("HMSKrispPlugin", e);
19101
+ return new R({ name: "krisp.usage", level: 1, properties: { duration: t } });
19102
+ }
19103
+ static transportLeave() {
19104
+ return new R({ name: "transport.leave", level: 1, properties: {} });
19073
19105
  }
19074
19106
  static eventNameFor(e, t) {
19075
19107
  return `${e}.${t ? "success" : "failed"}`;
19076
19108
  }
19077
19109
  static getPropertiesWithError(e, t) {
19078
19110
  let i = this.getErrorProperties(t);
19079
- return e = S(S({}, i), e), e;
19111
+ return e = m(m({}, i), e), e;
19080
19112
  }
19081
19113
  static getErrorProperties(e) {
19082
19114
  return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
19083
19115
  }
19084
19116
  };
19085
19117
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
19086
- var ur = class {
19118
+ var hr = class {
19087
19119
  constructor() {
19088
- this.storage = new ne("hms-device-selection");
19120
+ this.storage = new ce("hms-device-selection");
19089
19121
  this.remember = false;
19090
19122
  this.TAG = "[HMSDeviceStorage]";
19091
19123
  }
@@ -19117,10 +19149,10 @@ var ur = class {
19117
19149
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
19118
19150
  }
19119
19151
  };
19120
- var q = new ur();
19121
- var pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(pr || {});
19122
- var hr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(hr || {});
19123
- function jt(a2, e = 300) {
19152
+ var q = new hr();
19153
+ var mr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(mr || {});
19154
+ var Sr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Sr || {});
19155
+ function Jt(a2, e = 300) {
19124
19156
  let t;
19125
19157
  return function(...i) {
19126
19158
  clearTimeout(t), t = void 0;
@@ -19130,10 +19162,10 @@ function jt(a2, e = 300) {
19130
19162
  }, e);
19131
19163
  };
19132
19164
  }
19133
- var Is = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Is || {});
19134
- var Hs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Hs || {});
19135
- var Cs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Cs || {});
19136
- var mr = class {
19165
+ 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 || {});
19166
+ var Ls = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ls || {});
19167
+ var Ds = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ds || {});
19168
+ var gr = class {
19137
19169
  constructor() {
19138
19170
  this.TAG = "[HMSIntersectionObserverWrapper]";
19139
19171
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -19156,12 +19188,12 @@ var mr = class {
19156
19188
  this.createObserver();
19157
19189
  }
19158
19190
  isSupported() {
19159
- let e = w && typeof window.IntersectionObserver != "undefined";
19191
+ let e = _ && typeof window.IntersectionObserver != "undefined";
19160
19192
  return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
19161
19193
  }
19162
19194
  };
19163
- var _s = new mr();
19164
- var Sr = class {
19195
+ var Os = new gr();
19196
+ var Tr = class {
19165
19197
  constructor() {
19166
19198
  this.TAG = "[HMSResizeObserverWrapper]";
19167
19199
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -19174,7 +19206,7 @@ var Sr = class {
19174
19206
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
19175
19207
  };
19176
19208
  this.createObserver = () => {
19177
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(jt(this.handleResize, 300)));
19209
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(Jt(this.handleResize, 300)));
19178
19210
  };
19179
19211
  this.handleResize = (e) => {
19180
19212
  var t;
@@ -19184,20 +19216,20 @@ var Sr = class {
19184
19216
  this.createObserver();
19185
19217
  }
19186
19218
  isSupported() {
19187
- let e = w && typeof window.ResizeObserver != "undefined";
19219
+ let e = _ && typeof window.ResizeObserver != "undefined";
19188
19220
  return e || d.w(this.TAG, "Resize Observer is not supported"), e;
19189
19221
  }
19190
19222
  };
19191
- var Ns = new Sr();
19192
- var gr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(gr || {});
19193
- var Tr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Tr || {});
19194
- var Us = "https://event.100ms.live/v2/client/report";
19195
- var Vs = "https://event-nonprod.100ms.live/v2/client/report";
19196
- var pt = Math.pow(2, 31) - 1;
19197
- var Qe = class {
19223
+ var xs = new Tr();
19224
+ var fr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(fr || {});
19225
+ var vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(vr || {});
19226
+ var Vs = "https://event.100ms.live/v2/client/report";
19227
+ var Fs = "https://event-nonprod.100ms.live/v2/client/report";
19228
+ var ht = Math.pow(2, 31) - 1;
19229
+ var ze = class {
19198
19230
  };
19199
- Qe.makePeerId = () => co();
19200
- var gt = "HMS-Store:";
19231
+ ze.makePeerId = () => uo();
19232
+ var Tt = "HMS-Store:";
19201
19233
  var k = class {
19202
19234
  static v(e, ...t) {
19203
19235
  this.log(0, e, ...t);
@@ -19227,23 +19259,23 @@ var k = class {
19227
19259
  if (!(this.level.valueOf() > e.valueOf()))
19228
19260
  switch (e) {
19229
19261
  case 0: {
19230
- console.log(gt, ...t);
19262
+ console.log(Tt, ...t);
19231
19263
  break;
19232
19264
  }
19233
19265
  case 1: {
19234
- console.debug(gt, ...t);
19266
+ console.debug(Tt, ...t);
19235
19267
  break;
19236
19268
  }
19237
19269
  case 2: {
19238
- console.info(gt, ...t);
19270
+ console.info(Tt, ...t);
19239
19271
  break;
19240
19272
  }
19241
19273
  case 3: {
19242
- console.warn(gt, ...t);
19274
+ console.warn(Tt, ...t);
19243
19275
  break;
19244
19276
  }
19245
19277
  case 6: {
19246
- console.error(gt, ...t);
19278
+ console.error(Tt, ...t);
19247
19279
  break;
19248
19280
  }
19249
19281
  case 4: {
@@ -19264,132 +19296,132 @@ var k = class {
19264
19296
  }
19265
19297
  };
19266
19298
  k.level = 0;
19267
- var Rr = (a2, e) => e;
19268
- var Tt = (a2, e) => e;
19269
- var qs = (a2, e) => e;
19270
- var uo = (a2, e) => e;
19271
- var po = (a2, e) => e;
19272
- var J = createSelector([G, Rr], (a2, e) => e ? a2[e] : null);
19273
- var Ir = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
19274
- var ho = createSelector([D, Tt], (a2, e) => {
19299
+ var Hr = (a2, e) => e;
19300
+ var ft = (a2, e) => e;
19301
+ var Js = (a2, e) => e;
19302
+ var ho = (a2, e) => e;
19303
+ var mo = (a2, e) => e;
19304
+ var J = createSelector([G, Hr], (a2, e) => e ? a2[e] : null);
19305
+ var Cr = createSelector([w, ft], (a2, e) => e ? a2[e] : null);
19306
+ var So = createSelector([w, ft], (a2, e) => {
19275
19307
  if (!e)
19276
19308
  return null;
19277
19309
  let t = a2[e];
19278
19310
  return (t == null ? void 0 : t.type) === "video" ? t : null;
19279
19311
  });
19280
- var mo = createSelector([D, Tt], (a2, e) => {
19312
+ var go = createSelector([w, ft], (a2, e) => {
19281
19313
  if (!e)
19282
19314
  return null;
19283
19315
  let t = a2[e];
19284
19316
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
19285
19317
  });
19286
- var So = createSelector([D, Tt], (a2, e) => {
19318
+ var To = createSelector([w, ft], (a2, e) => {
19287
19319
  if (!e)
19288
19320
  return null;
19289
19321
  let t = a2[e];
19290
19322
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
19291
19323
  });
19292
- var go = createSelector([D, Tt], (a2, e) => {
19324
+ var fo = createSelector([w, ft], (a2, e) => {
19293
19325
  if (!e)
19294
19326
  return null;
19295
19327
  let t = a2[e];
19296
19328
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
19297
19329
  });
19298
- var To = createSelector([ts, po], (a2, e) => e ? a2[e] : null);
19299
- var Q = b(J);
19300
- var em = b(createSelector([er, uo], (a2, e) => {
19330
+ var vo = createSelector([rs, mo], (a2, e) => e ? a2[e] : null);
19331
+ var Q = A(J);
19332
+ var om = A(createSelector([tr, ho], (a2, e) => {
19301
19333
  if (a2)
19302
19334
  return e ? a2[e] : a2;
19303
19335
  }));
19304
- function tm(a2) {
19336
+ function nm(a2) {
19305
19337
  return (e) => {
19306
19338
  if (e.sessionStore)
19307
19339
  return a2 ? e.sessionStore[a2] : e.sessionStore;
19308
19340
  };
19309
19341
  }
19310
- var rm = b(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
19311
- var ai = b(Ir);
19312
- var js = b(ho);
19313
- var sm = b(mo);
19314
- var am = b(So);
19315
- var om = b(go);
19316
- var fo = b((a2, e) => {
19342
+ var dm = A(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
19343
+ var oi = A(Cr);
19344
+ var Qs = A(So);
19345
+ var lm = A(go);
19346
+ var um = A(To);
19347
+ var pm = A(fo);
19348
+ var Mo = A((a2, e) => {
19317
19349
  let t = J(a2, e);
19318
19350
  if (t && t.videoTrack && t.videoTrack !== "")
19319
19351
  return a2.tracks[t.videoTrack];
19320
19352
  });
19321
- var vo = b((a2, e) => {
19353
+ var yo = A((a2, e) => {
19322
19354
  let t = J(a2, e);
19323
19355
  if (t && t.audioTrack && t.audioTrack !== "")
19324
19356
  return a2.tracks[t.audioTrack];
19325
19357
  });
19326
- var cm = b((a2, e) => {
19358
+ var mm = A((a2, e) => {
19327
19359
  let t = J(a2, e);
19328
19360
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
19329
19361
  });
19330
- var Js = (a2, e) => e ? a2.speakers[e] : null;
19331
- var dm = b(createSelector(Js, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19332
- var Mo = (a2, e) => {
19333
- let t = vo(e)(a2);
19334
- return Js(a2, t == null ? void 0 : t.id);
19335
- };
19336
- var lm = b(createSelector(Mo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19337
- var um = b((a2, e) => {
19362
+ var zs = (a2, e) => e ? a2.speakers[e] : null;
19363
+ var Sm = A(createSelector(zs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19364
+ var ko = (a2, e) => {
19365
+ let t = yo(e)(a2);
19366
+ return zs(a2, t == null ? void 0 : t.id);
19367
+ };
19368
+ var gm = A(createSelector(ko, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19369
+ var Tm = A((a2, e) => {
19338
19370
  if (e)
19339
19371
  return a2.connectionQualities[e];
19340
19372
  });
19341
- var pm = b((a2, e) => {
19373
+ var fm = A((a2, e) => {
19342
19374
  let t = J(a2, e);
19343
19375
  if (t) {
19344
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
19376
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => it(a2.tracks[r]));
19345
19377
  return i ? a2.tracks[i] : void 0;
19346
19378
  }
19347
19379
  });
19348
- var hm = b(createSelector(D, J, (a2, e) => {
19380
+ var vm = A(createSelector(w, J, (a2, e) => {
19349
19381
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19350
19382
  let r = a2[i];
19351
- return rt(r) && it(r);
19383
+ return st(r) && rt(r);
19352
19384
  });
19353
19385
  return t ? a2[t] : void 0;
19354
19386
  }));
19355
- var mm = b(createSelector(D, J, (a2, e) => {
19387
+ var Mm = A(createSelector(w, J, (a2, e) => {
19356
19388
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19357
19389
  let r = a2[i];
19358
- return rt(r) && tt(r);
19390
+ return st(r) && it(r);
19359
19391
  });
19360
19392
  return t ? a2[t] : void 0;
19361
19393
  }));
19362
- var Sm = b(createSelector(D, J, (a2, e) => {
19394
+ var ym = A(createSelector(w, J, (a2, e) => {
19363
19395
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19364
19396
  let r = a2[i];
19365
- return Gt(r) && tt(r);
19397
+ return $t(r) && it(r);
19366
19398
  });
19367
19399
  return t ? a2[t] : void 0;
19368
19400
  }));
19369
- var Qs = b(createSelector(D, J, (a2, e) => He(a2, e)));
19370
- var zs = (a2) => createSelector(Qs(a2), (e) => e.audio);
19371
- var Tm = b((a2, e) => {
19401
+ var Ys = A(createSelector(w, J, (a2, e) => He(a2, e)));
19402
+ var Xs = (a2) => createSelector(Ys(a2), (e) => e.audio);
19403
+ var Pm = A((a2, e) => {
19372
19404
  let t = J(a2, e);
19373
19405
  return Ue(a2, t == null ? void 0 : t.audioTrack);
19374
19406
  });
19375
- var fm = b((a2, e) => {
19407
+ var Em = A((a2, e) => {
19376
19408
  let t = J(a2, e);
19377
19409
  return Ue(a2, t == null ? void 0 : t.videoTrack);
19378
19410
  });
19379
- var Ys = b((a2, e) => {
19411
+ var Zs = A((a2, e) => {
19380
19412
  if (e && a2.tracks[e])
19381
19413
  return a2.tracks[e].volume === 0;
19382
19414
  });
19383
- var vm = b((a2, e) => {
19415
+ var bm = A((a2, e) => {
19384
19416
  let t = J(a2, e);
19385
- return Ys(t == null ? void 0 : t.audioTrack)(a2);
19417
+ return Zs(t == null ? void 0 : t.audioTrack)(a2);
19386
19418
  });
19387
- var Mm = b((a2, e) => {
19388
- let t = zs(e)(a2);
19389
- return Ys(t == null ? void 0 : t.id)(a2);
19419
+ var Am = A((a2, e) => {
19420
+ let t = Xs(e)(a2);
19421
+ return Zs(t == null ? void 0 : t.id)(a2);
19390
19422
  });
19391
- var Xs = b((a2, e) => {
19392
- let t = Ir(a2, e);
19423
+ var ea = A((a2, e) => {
19424
+ let t = Cr(a2, e);
19393
19425
  if (t) {
19394
19426
  if (t.type !== "audio") {
19395
19427
  k.w("Please pass audio track here");
@@ -19398,16 +19430,16 @@ var Xs = b((a2, e) => {
19398
19430
  return t.volume;
19399
19431
  }
19400
19432
  });
19401
- var ym = b((a2, e) => {
19433
+ var Im = A((a2, e) => {
19402
19434
  let t = J(a2, e);
19403
- return Xs(t == null ? void 0 : t.audioTrack)(a2);
19435
+ return ea(t == null ? void 0 : t.audioTrack)(a2);
19404
19436
  });
19405
- var km = b((a2, e) => {
19406
- let t = zs(e)(a2);
19407
- return Xs(t == null ? void 0 : t.id)(a2);
19437
+ var Rm = A((a2, e) => {
19438
+ let t = Xs(e)(a2);
19439
+ return ea(t == null ? void 0 : t.id)(a2);
19408
19440
  });
19409
- var Em = b((a2, e) => {
19410
- let t = Ir(a2, e);
19441
+ var Hm = A((a2, e) => {
19442
+ let t = Cr(a2, e);
19411
19443
  if (t) {
19412
19444
  if (t.type !== "video") {
19413
19445
  k.w("Please pass video track here");
@@ -19416,52 +19448,52 @@ var Em = b((a2, e) => {
19416
19448
  return t.layer;
19417
19449
  }
19418
19450
  });
19419
- var Zs = createSelector([at, ue, Rr], (a2, e, t) => {
19451
+ var ta = createSelector([ot, ue, Hr], (a2, e, t) => {
19420
19452
  if (t)
19421
19453
  return a2.filter((i) => {
19422
19454
  var r;
19423
19455
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
19424
19456
  });
19425
19457
  });
19426
- var ea = createSelector([at, qs], (a2, e) => {
19458
+ var ia = createSelector([ot, Js], (a2, e) => {
19427
19459
  if (e)
19428
19460
  return a2.filter((t) => {
19429
19461
  var i, r;
19430
19462
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
19431
19463
  });
19432
19464
  });
19433
- var yo = createSelector(at, (a2) => a2.filter((e) => {
19465
+ var Po = createSelector(ot, (a2) => a2.filter((e) => {
19434
19466
  var t;
19435
19467
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
19436
19468
  }));
19437
- var ko = createSelector([ea, qs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19438
- var Eo = createSelector([Zs, Rr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19439
- var Pm = createSelector(yo, (a2) => a2.filter((e) => !e.read).length);
19440
- var bm = b(Zs);
19441
- var Am = b(ea);
19442
- var Rm = b(ko);
19443
- var Im = b(Eo);
19444
- var ta = b(To);
19445
- var Vm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
19469
+ var Eo = createSelector([ia, Js], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19470
+ var bo = createSelector([ta, Hr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19471
+ var Cm = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
19472
+ var Lm = A(ta);
19473
+ var Dm = A(ia);
19474
+ var wm = A(Eo);
19475
+ var _m = A(bo);
19476
+ var ra = A(vo);
19477
+ var Km = createSelector([G, w], (a2, e) => Object.values(a2).map((i) => {
19446
19478
  var r;
19447
19479
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
19448
19480
  }));
19449
- var Po = (a2) => a2.roleChangeRequests[0] || null;
19450
- var Bm = createSelector([Po, G, oe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19451
- var Fm = createSelector([Wt], (a2) => st(a2));
19452
- var Gm = createSelector([Zr], (a2) => st(a2));
19453
- var Ao = createSelector([K, D], (a2, e) => {
19481
+ var Ao = (a2) => a2.roleChangeRequests[0] || null;
19482
+ var qm = createSelector([Ao, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19483
+ var jm = createSelector([Kt], (a2) => at(a2));
19484
+ var Jm = createSelector([ts], (a2) => at(a2));
19485
+ var Ro = createSelector([K, w], (a2, e) => {
19454
19486
  let t = null;
19455
19487
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
19456
19488
  });
19457
- var Ro = createSelector([Z, D], (a2, e) => {
19489
+ var Ho = createSelector([Z, w], (a2, e) => {
19458
19490
  let t = null;
19459
19491
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
19460
19492
  });
19461
- var wr = class {
19493
+ var Nr = class {
19462
19494
  constructor() {
19463
19495
  this.TAG = "[HTTPAnalyticsTransport]";
19464
- this.failedEvents = new ne("client-events");
19496
+ this.failedEvents = new ce("client-events");
19465
19497
  this.isConnected = true;
19466
19498
  this.env = null;
19467
19499
  this.websocketURL = "";
@@ -19477,7 +19509,7 @@ var wr = class {
19477
19509
  this.addEventToStorage(e);
19478
19510
  return;
19479
19511
  }
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" ? Us : Vs;
19512
+ 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;
19481
19513
  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) => {
19482
19514
  if (r.status === 401) {
19483
19515
  this.removeFromStorage(e);
@@ -19503,66 +19535,66 @@ var wr = class {
19503
19535
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
19504
19536
  }
19505
19537
  };
19506
- var Te = new wr();
19538
+ var Te = new Nr();
19507
19539
  var $ = ((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))($ || {});
19508
- var Ui = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Ui || {});
19509
- var ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ji || {});
19510
- var jo = (a2) => a2.localPeer.id;
19511
- var Jo = (a2) => a2.localPeer.audioTrack;
19512
- var Qo = (a2) => a2.localPeer.videoTrack;
19513
- var zo = (a2, e) => e;
19514
- var fa = (a2, e) => e;
19515
- var Yo = (a2) => a2.remoteTrackStats;
19516
- var va = (a2) => a2.peerStats;
19517
- var Ur = (a2) => a2.localTrackStats;
19518
- var ve = createSelector([va, jo], (a2, e) => a2[e]);
19519
- var Xo = createSelector(ve, (a2) => {
19540
+ 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 || {});
19541
+ var Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
19542
+ var Qo = (a2) => a2.localPeer.id;
19543
+ var zo = (a2) => a2.localPeer.audioTrack;
19544
+ var Yo = (a2) => a2.localPeer.videoTrack;
19545
+ var Xo = (a2, e) => e;
19546
+ var Ma = (a2, e) => e;
19547
+ var Zo = (a2) => a2.remoteTrackStats;
19548
+ var ya = (a2) => a2.peerStats;
19549
+ var Vr = (a2) => a2.localTrackStats;
19550
+ var ve = createSelector([ya, Qo], (a2, e) => a2[e]);
19551
+ var en = createSelector(ve, (a2) => {
19520
19552
  var e;
19521
19553
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
19522
19554
  });
19523
- var Zo = createSelector(ve, (a2) => {
19555
+ var tn = createSelector(ve, (a2) => {
19524
19556
  var e;
19525
19557
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
19526
19558
  });
19527
- var en = createSelector(ve, (a2) => {
19559
+ var rn = createSelector(ve, (a2) => {
19528
19560
  var e;
19529
19561
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
19530
19562
  });
19531
- var tn = createSelector(ve, (a2) => {
19563
+ var sn = createSelector(ve, (a2) => {
19532
19564
  var e;
19533
19565
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
19534
19566
  });
19535
- var rn = createSelector(ve, (a2) => {
19567
+ var an = createSelector(ve, (a2) => {
19536
19568
  var e;
19537
19569
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
19538
19570
  });
19539
- var sn = createSelector(ve, (a2) => {
19571
+ var on = createSelector(ve, (a2) => {
19540
19572
  var e;
19541
19573
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
19542
19574
  });
19543
- var an = createSelector(ve, (a2) => {
19575
+ var nn = createSelector(ve, (a2) => {
19544
19576
  var e;
19545
19577
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
19546
19578
  });
19547
- var on = createSelector(ve, (a2) => {
19579
+ var cn = createSelector(ve, (a2) => {
19548
19580
  var e;
19549
19581
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
19550
19582
  });
19551
- var nn = createSelector([va, zo], (a2, e) => e ? a2[e] : void 0);
19552
- var cn = createSelector([Yo, fa], (a2, e) => e ? a2[e] : void 0);
19553
- var Vr = createSelector([Ur, fa], (a2, e) => e ? a2[e] : void 0);
19554
- var dn = b(nn);
19555
- var ln = b(cn);
19556
- var un = createSelector([Ur, Jo], (a2, e) => {
19583
+ var dn = createSelector([ya, Xo], (a2, e) => e ? a2[e] : void 0);
19584
+ var ln = createSelector([Zo, Ma], (a2, e) => e ? a2[e] : void 0);
19585
+ var Fr = createSelector([Vr, Ma], (a2, e) => e ? a2[e] : void 0);
19586
+ var un = A(dn);
19587
+ var pn = A(ln);
19588
+ var hn = createSelector([Vr, zo], (a2, e) => {
19557
19589
  var t;
19558
19590
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
19559
19591
  });
19560
- var pn = b(createSelector(Vr, (a2) => a2 == null ? void 0 : a2[0]));
19561
- var hn = createSelector([Ur, Qo], (a2, e) => {
19592
+ var mn = A(createSelector(Fr, (a2) => a2 == null ? void 0 : a2[0]));
19593
+ var Sn = createSelector([Vr, Yo], (a2, e) => {
19562
19594
  var t;
19563
19595
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
19564
19596
  });
19565
- var mn = b(createSelector(Vr, (a2) => a2));
19597
+ var gn = A(createSelector(Fr, (a2) => a2));
19566
19598
 
19567
19599
  // src/Prebuilt/components/Header/StreamActions.tsx
19568
19600
  import {
@@ -19832,7 +19864,7 @@ var RecordingStatus = () => {
19832
19864
  };
19833
19865
  var RecordingPauseStatus = () => {
19834
19866
  const recording = useHMSStore25(selectRecordingState);
19835
- if (recording.hls && recording.hls.state === Is.PAUSED) {
19867
+ if (recording.hls && recording.hls.state === Cs.PAUSED) {
19836
19868
  return /* @__PURE__ */ React54.createElement(
19837
19869
  Tooltip,
19838
19870
  {
@@ -20232,8 +20264,6 @@ var MwebOptions = ({
20232
20264
  const peerCount = useHMSStore29(selectPeerCount3);
20233
20265
  const emojiCardRef = useRef14(null);
20234
20266
  const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
20235
- const { toggleAudio, toggleVideo } = useAVToggle3();
20236
- const noAVPermissions = !(toggleAudio || toggleVideo);
20237
20267
  const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
20238
20268
  const { title, description } = useRoomLayoutHeader();
20239
20269
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -20295,7 +20325,7 @@ var MwebOptions = ({
20295
20325
  /* @__PURE__ */ React58.createElement(PeopleIcon, null),
20296
20326
  /* @__PURE__ */ React58.createElement(ActionTile.Title, null, "Participants")
20297
20327
  ),
20298
- !noAVPermissions ? /* @__PURE__ */ React58.createElement(
20328
+ elements.hand_raise ? /* @__PURE__ */ React58.createElement(
20299
20329
  ActionTile.Root,
20300
20330
  {
20301
20331
  active: isHandRaised,
@@ -20469,6 +20499,10 @@ import React60 from "react";
20469
20499
  import { HandIcon as HandIcon3, HandRaiseSlashedIcon as HandRaiseSlashedIcon2 } from "@100mslive/react-icons";
20470
20500
  var RaiseHand = ({ css: css2 }) => {
20471
20501
  const { isHandRaised, toggleHandRaise } = useMyMetadata();
20502
+ const { elements } = useRoomLayoutConferencingScreen();
20503
+ if (!elements.hand_raise) {
20504
+ return null;
20505
+ }
20472
20506
  return /* @__PURE__ */ React60.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ React60.createElement(
20473
20507
  IconButton_default,
20474
20508
  {
@@ -21458,6 +21492,7 @@ var RoleAccordion = ({
21458
21492
  return /* @__PURE__ */ React73.createElement(Accordion.Item, { value: roleName, css: { "&:hover .role_actions": { visibility: "visible" }, mb: "$8" }, ref }, /* @__PURE__ */ React73.createElement(
21459
21493
  Accordion.Header,
21460
21494
  {
21495
+ chevronID: `role_accordion_btn_${roleName}`,
21461
21496
  iconStyles: { c: "$on_surface_high" },
21462
21497
  css: {
21463
21498
  textTransform: "capitalize",
@@ -21510,7 +21545,7 @@ var RoleAccordion = ({
21510
21545
  },
21511
21546
  /* @__PURE__ */ React73.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
21512
21547
  /* @__PURE__ */ React73.createElement(ChevronRightIcon, null)
21513
- ) : null, isHandRaisedAccordion && /* @__PURE__ */ React73.createElement(React73.Fragment, null, /* @__PURE__ */ React73.createElement(HorizontalDivider, null), /* @__PURE__ */ React73.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ React73.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React73.createElement(CrossIcon11, null), " Lower All Hands"), canBringToStage && /* @__PURE__ */ React73.createElement(Button, { onClick: bringAllToStage, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React73.createElement(AddIcon, null), " ", bring_to_stage_label)))));
21548
+ ) : null, isHandRaisedAccordion && /* @__PURE__ */ React73.createElement(React73.Fragment, null, /* @__PURE__ */ React73.createElement(HorizontalDivider, null), /* @__PURE__ */ React73.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ React73.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React73.createElement(CrossIcon11, null), " Lower all hands"), canBringToStage && /* @__PURE__ */ React73.createElement(Button, { onClick: bringAllToStage, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React73.createElement(AddIcon, null), " ", bring_to_stage_label)))));
21514
21549
  };
21515
21550
 
21516
21551
  // src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
@@ -21949,8 +21984,6 @@ var Footer2 = ({
21949
21984
  const isMobile = useMedia11(config.media.md);
21950
21985
  const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
21951
21986
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
21952
- const { toggleAudio, toggleVideo } = useAVToggle4();
21953
- const noAVPermissions = !(toggleAudio || toggleVideo);
21954
21987
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
21955
21988
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
21956
21989
  const { showPolls } = useShowPolls();
@@ -21998,7 +22031,7 @@ var Footer2 = ({
21998
22031
  }
21999
22032
  }
22000
22033
  },
22001
- 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 }))
22034
+ 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 }))
22002
22035
  ),
22003
22036
  /* @__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 }))
22004
22037
  );
@@ -22067,7 +22100,7 @@ import {
22067
22100
 
22068
22101
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
22069
22102
  init_define_process_env();
22070
- import React131, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect34, useMemo as useMemo11, useState as useState56 } from "react";
22103
+ import React131, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect34, useMemo as useMemo12, useState as useState56 } from "react";
22071
22104
  import { useMeasure as useMeasure4, useMedia as useMedia24 } from "react-use";
22072
22105
  import {
22073
22106
  HMSRoomState as HMSRoomState5,
@@ -22075,7 +22108,7 @@ import {
22075
22108
  selectLocalPeer as selectLocalPeer7,
22076
22109
  selectRoomState as selectRoomState5,
22077
22110
  selectVideoTrackByID as selectVideoTrackByID5,
22078
- useAVToggle as useAVToggle6,
22111
+ useAVToggle as useAVToggle3,
22079
22112
  useHMSStore as useHMSStore70,
22080
22113
  useParticipants as useParticipants2,
22081
22114
  usePreviewJoin,
@@ -22337,10 +22370,10 @@ var PrevMenu = () => {
22337
22370
  const sortedPolls = useMemo5(
22338
22371
  () => {
22339
22372
  var _a8;
22340
- return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
22373
+ return (_a8 = polls == null ? void 0 : polls.sort((a2, b) => {
22341
22374
  var _a9, _b7;
22342
- return (((_a9 = b2.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
22343
- })) == null ? void 0 : _a8.sort((a2, b2) => (b2.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
22375
+ return (((_a9 = b.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
22376
+ })) == null ? void 0 : _a8.sort((a2, b) => (b.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
22344
22377
  },
22345
22378
  [polls]
22346
22379
  );
@@ -22380,7 +22413,7 @@ var InteractionCard = ({ id, title, status }) => {
22380
22413
 
22381
22414
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
22382
22415
  init_define_process_env();
22383
- import React91, { useMemo as useMemo6, useState as useState37 } from "react";
22416
+ import React91, { useMemo as useMemo7, useState as useState37 } from "react";
22384
22417
  import { v4 as uuid2 } from "uuid";
22385
22418
  import { selectPollByID, useHMSActions as useHMSActions28, useHMSStore as useHMSStore43, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
22386
22419
  import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
@@ -22476,7 +22509,8 @@ var OptionInputWithDelete = ({
22476
22509
  },
22477
22510
  value: (option == null ? void 0 : option.text) || "",
22478
22511
  key: index,
22479
- onChange: (event) => handleOptionTextChange(index, event.target.value.trimStart())
22512
+ onChange: (event) => handleOptionTextChange(index, event.target.value.trimStart()),
22513
+ maxLength: 250
22480
22514
  }
22481
22515
  ), /* @__PURE__ */ React84.createElement(IconButton_default, { onClick: () => removeOption(index), css: { bg: "transparent", border: "none" } }, /* @__PURE__ */ React84.createElement(TrashIcon2, null)));
22482
22516
  };
@@ -22529,7 +22563,7 @@ var MultipleChoiceOptions = ({
22529
22563
  };
22530
22564
  return /* @__PURE__ */ React87.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
22531
22565
  var _a8;
22532
- return /* @__PURE__ */ React87.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$9" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React87.createElement(
22566
+ return /* @__PURE__ */ React87.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React87.createElement(
22533
22567
  Checkbox.Root,
22534
22568
  {
22535
22569
  id: `${questionIndex}-${option.index}`,
@@ -22537,11 +22571,12 @@ var MultipleChoiceOptions = ({
22537
22571
  checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
22538
22572
  onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
22539
22573
  css: {
22540
- cursor: canRespond ? "pointer" : "not-allowed"
22574
+ cursor: canRespond ? "pointer" : "not-allowed",
22575
+ flexShrink: 0
22541
22576
  }
22542
22577
  },
22543
22578
  /* @__PURE__ */ React87.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React87.createElement(CheckIcon6, { width: 16, height: 16 }))
22544
- ) : null, isStopped && (correctOptionIndexes == null ? void 0 : correctOptionIndexes.includes(option.index)) ? /* @__PURE__ */ React87.createElement(Flex, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React87.createElement(CheckCircleIcon, { height: 20, width: 20 })) : null, /* @__PURE__ */ React87.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ React87.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React87.createElement(Text, { css: { display: "flex", flexGrow: "1" } }, /* @__PURE__ */ React87.createElement(Label3, { htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ React87.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ React87.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.options.includes(option.index)) ? /* @__PURE__ */ React87.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
22579
+ ) : null, isStopped && (correctOptionIndexes == null ? void 0 : correctOptionIndexes.includes(option.index)) ? /* @__PURE__ */ React87.createElement(Flex, { align: "center", css: { color: "$on_surface_high" } }, /* @__PURE__ */ React87.createElement(CheckCircleIcon, { height: 20, width: 20 })) : null, /* @__PURE__ */ React87.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ React87.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React87.createElement(Text, { css: { display: "flex", flexGrow: "1" } }, /* @__PURE__ */ React87.createElement(Label3, { htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ React87.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ React87.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.options.includes(option.index)) ? /* @__PURE__ */ React87.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
22545
22580
  }));
22546
22581
  };
22547
22582
  var MultipleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionTextChange, removeOption }) => {
@@ -22586,7 +22621,7 @@ var SingleChoiceOptions = ({
22586
22621
  localPeerResponse
22587
22622
  }) => {
22588
22623
  return /* @__PURE__ */ React88.createElement(RadioGroup.Root, { value: localPeerResponse == null ? void 0 : localPeerResponse.option, onValueChange: (value) => setAnswer(value) }, /* @__PURE__ */ React88.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
22589
- return /* @__PURE__ */ React88.createElement(Flex, { align: "start", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React88.createElement(
22624
+ return /* @__PURE__ */ React88.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React88.createElement(
22590
22625
  RadioGroup.Item,
22591
22626
  {
22592
22627
  css: {
@@ -22596,6 +22631,8 @@ var SingleChoiceOptions = ({
22596
22631
  border: "2px solid",
22597
22632
  borderColor: "$on_surface_high",
22598
22633
  display: "flex",
22634
+ flexShrink: 0,
22635
+ pt: "$1",
22599
22636
  justifyContent: "center",
22600
22637
  alignItems: "center",
22601
22638
  cursor: canRespond ? "pointer" : "not-allowed",
@@ -22882,7 +22919,7 @@ var isValidQuestion = ({
22882
22919
 
22883
22920
  // src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.tsx
22884
22921
  init_define_process_env();
22885
- import React90 from "react";
22922
+ import React90, { useMemo as useMemo6 } from "react";
22886
22923
  import { CheckCircleIcon as CheckCircleIcon3 } from "@100mslive/react-icons";
22887
22924
  var SavedQuestion = ({
22888
22925
  question,
@@ -22891,7 +22928,19 @@ var SavedQuestion = ({
22891
22928
  convertToDraft
22892
22929
  }) => {
22893
22930
  var _a8;
22894
- return /* @__PURE__ */ React90.createElement(React90.Fragment, null, /* @__PURE__ */ React90.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ React90.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a8 = question.options) == null ? void 0 : _a8.map((option, index2) => /* @__PURE__ */ React90.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ React90.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), option.isCorrectAnswer && /* @__PURE__ */ React90.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ React90.createElement(CheckCircleIcon3, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ React90.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ React90.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ React90.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
22931
+ const answerArray = useMemo6(() => {
22932
+ var _a9;
22933
+ const updatedAnswerArray = [];
22934
+ const { option, options } = (_a9 = question == null ? void 0 : question.answer) != null ? _a9 : {};
22935
+ if (option) {
22936
+ updatedAnswerArray.push(option);
22937
+ }
22938
+ if (options) {
22939
+ updatedAnswerArray.push(...options);
22940
+ }
22941
+ return updatedAnswerArray;
22942
+ }, [question == null ? void 0 : question.answer]);
22943
+ return /* @__PURE__ */ React90.createElement(React90.Fragment, null, /* @__PURE__ */ React90.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ React90.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a8 = question.options) == null ? void 0 : _a8.map((option, index2) => /* @__PURE__ */ React90.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ React90.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ React90.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ React90.createElement(CheckCircleIcon3, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ React90.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ React90.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ React90.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
22895
22944
  };
22896
22945
 
22897
22946
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
@@ -22911,7 +22960,7 @@ function CreateQuestions() {
22911
22960
  const [questions, setQuestions] = useState37(
22912
22961
  ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
22913
22962
  );
22914
- const isValidPoll = useMemo6(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
22963
+ const isValidPoll = useMemo7(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
22915
22964
  const launchPoll = () => __async(this, null, function* () {
22916
22965
  yield actions.interactivityCenter.startPoll(id);
22917
22966
  yield sendTimedMetadata(id);
@@ -22954,8 +23003,11 @@ function CreateQuestions() {
22954
23003
  yield actions.interactivityCenter.addQuestionsToPoll(id, validQuestions);
22955
23004
  }),
22956
23005
  isQuiz,
22957
- removeQuestion: (questionID) => setQuestions((prev) => {
22958
- return prev.filter((questionFromSet) => questionID !== (questionFromSet == null ? void 0 : questionFromSet.draftID));
23006
+ removeQuestion: (questionID) => __async(this, null, function* () {
23007
+ const updatedQuestions = questions.filter((questionFromSet) => questionID !== (questionFromSet == null ? void 0 : questionFromSet.draftID));
23008
+ setQuestions(updatedQuestions);
23009
+ const validQuestions = updatedQuestions.filter((question2) => isValidQuestion(question2));
23010
+ yield actions.interactivityCenter.addQuestionsToPoll(id, validQuestions);
22959
23011
  }),
22960
23012
  convertToDraft: (questionID) => setQuestions((prev) => {
22961
23013
  const copyOfQuestions = [...prev];
@@ -23260,7 +23312,7 @@ import React97 from "react";
23260
23312
 
23261
23313
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
23262
23314
  init_define_process_env();
23263
- import React96, { useCallback as useCallback22, useMemo as useMemo7, useRef as useRef17, useState as useState40 } from "react";
23315
+ import React96, { useCallback as useCallback22, useMemo as useMemo8, useRef as useRef17, useState as useState40 } from "react";
23264
23316
  import { match as match7 } from "ts-pattern";
23265
23317
  import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions30, useHMSStore as useHMSStore47 } from "@100mslive/react-sdk";
23266
23318
  import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
@@ -23301,7 +23353,7 @@ var QuestionCard2 = ({
23301
23353
  const [multipleOptionAnswer, setMultipleOptionAnswer] = useState40(/* @__PURE__ */ new Set());
23302
23354
  const [showOptions, setShowOptions] = useState40(true);
23303
23355
  const respondedToQuiz = isQuiz && localPeerResponse && !localPeerResponse.skipped;
23304
- const isValidVote = useMemo7(() => {
23356
+ const isValidVote = useMemo8(() => {
23305
23357
  if (type === "single-choice" /* SINGLE_CHOICE */) {
23306
23358
  return singleOptionAnswer !== void 0;
23307
23359
  } else if (type === "multiple-choice" /* MULTIPLE_CHOICE */) {
@@ -23722,7 +23774,7 @@ import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
23722
23774
 
23723
23775
  // src/Prebuilt/components/Chat/ChatBody.tsx
23724
23776
  init_define_process_env();
23725
- import React108, { Fragment as Fragment10, useCallback as useCallback26, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo8, useRef as useRef18, useState as useState46 } from "react";
23777
+ import React108, { Fragment as Fragment10, useCallback as useCallback26, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo9, useRef as useRef18, useState as useState46 } from "react";
23726
23778
  import { useMedia as useMedia13 } from "react-use";
23727
23779
  import AutoSizer from "react-virtualized-auto-sizer";
23728
23780
  import { VariableSizeList } from "react-window";
@@ -23823,7 +23875,7 @@ var usePinnedMessages = () => {
23823
23875
  if (pinnedMessages[indexToRemove]) {
23824
23876
  yield hmsActions.sessionStore.set(
23825
23877
  "pinnedMessages" /* PINNED_MESSAGES */,
23826
- pinnedMessages.filter((_, index) => index !== indexToRemove)
23878
+ pinnedMessages.filter((_2, index) => index !== indexToRemove)
23827
23879
  ).catch((err) => ToastManager.addToast({ title: err.description }));
23828
23880
  }
23829
23881
  }),
@@ -24448,11 +24500,12 @@ var ChatBody = React108.forwardRef(
24448
24500
  ({ scrollToBottom }, listRef) => {
24449
24501
  const messages = useHMSStore54(selectHMSMessages);
24450
24502
  const blacklistedMessageIDs = useHMSStore54(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
24451
- const filteredMessages = useMemo8(() => {
24503
+ const filteredMessages = useMemo9(() => {
24452
24504
  const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
24453
24505
  return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
24454
24506
  }, [blacklistedMessageIDs, messages]);
24455
24507
  const vanillaStore = useHMSVanillaStore9();
24508
+ const rerenderOnFirstMount = useRef18(false);
24456
24509
  useEffect26(() => {
24457
24510
  const unsubscribe = vanillaStore.subscribe(() => {
24458
24511
  if (!listRef.current) {
@@ -24465,6 +24518,12 @@ var ChatBody = React108.forwardRef(
24465
24518
  }, selectUnreadHMSMessagesCount2);
24466
24519
  return unsubscribe;
24467
24520
  }, [vanillaStore, listRef, scrollToBottom]);
24521
+ useEffect26(() => {
24522
+ if (filteredMessages.length > 0 && (listRef == null ? void 0 : listRef.current) && !rerenderOnFirstMount.current) {
24523
+ rerenderOnFirstMount.current = true;
24524
+ listRef.current.resetAfterIndex(0);
24525
+ }
24526
+ }, [listRef, filteredMessages]);
24468
24527
  return filteredMessages.length === 0 ? /* @__PURE__ */ React108.createElement(EmptyChat, null) : /* @__PURE__ */ React108.createElement(VirtualizedChatMessages, { messages: filteredMessages, ref: listRef, scrollToBottom });
24469
24528
  }
24470
24529
  );
@@ -24497,7 +24556,7 @@ import React111, { useCallback as useCallback28, useEffect as useEffect28, useRe
24497
24556
  import { useMedia as useMedia16 } from "react-use";
24498
24557
  import data2 from "@emoji-mart/data";
24499
24558
  import Picker from "@emoji-mart/react";
24500
- import { selectLocalPeer as selectLocalPeer3, useAVToggle as useAVToggle5, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
24559
+ import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
24501
24560
  import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
24502
24561
 
24503
24562
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
@@ -24508,7 +24567,7 @@ import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, C
24508
24567
 
24509
24568
  // src/Prebuilt/components/Chat/ChatSelector.tsx
24510
24569
  init_define_process_env();
24511
- import React109, { useMemo as useMemo9, useState as useState47 } from "react";
24570
+ import React109, { useMemo as useMemo10, useState as useState47 } from "react";
24512
24571
  import { useMedia as useMedia14 } from "react-use";
24513
24572
  import {
24514
24573
  selectMessagesUnreadCountByPeerID,
@@ -24624,14 +24683,14 @@ var VirtualizedSelectItemList = ({
24624
24683
  isPublicChatEnabled
24625
24684
  }) => {
24626
24685
  const roles = useFilteredRoles();
24627
- const filteredPeers = useMemo9(
24686
+ const filteredPeers = useMemo10(
24628
24687
  () => peers.filter(
24629
24688
  // search should be empty or search phrase should be included in name
24630
24689
  (peer) => !searchValue || peer.name.toLowerCase().includes(searchValue.toLowerCase())
24631
24690
  ),
24632
24691
  [peers, searchValue]
24633
24692
  );
24634
- const listItems = useMemo9(() => {
24693
+ const listItems = useMemo10(() => {
24635
24694
  let selectItems = [];
24636
24695
  if (isPublicChatEnabled && !searchValue) {
24637
24696
  selectItems = [/* @__PURE__ */ React109.createElement(Everyone, { active: !selectedRole && !selectedPeerId })];
@@ -24907,8 +24966,6 @@ var ChatFooter = ({ onSend, children }) => {
24907
24966
  const defaultSelection = useDefaultChatSelection();
24908
24967
  const selection = selectedPeer.name || selectedRole || defaultSelection;
24909
24968
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
24910
- const { toggleAudio, toggleVideo } = useAVToggle5();
24911
- const noAVPermissions = !(toggleAudio || toggleVideo);
24912
24969
  const isMwebHLSStream = useMobileHLSStream();
24913
24970
  const isLandscapeHLSStream = useLandscapeHLSStream();
24914
24971
  useEffect28(() => {
@@ -25074,7 +25131,7 @@ var ChatFooter = ({ onSend, children }) => {
25074
25131
  },
25075
25132
  gap: "2"
25076
25133
  },
25077
- noAVPermissions ? /* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }) : null,
25134
+ /* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }),
25078
25135
  /* @__PURE__ */ React111.createElement(MoreSettings, { elements, screenType })
25079
25136
  ))));
25080
25137
  };
@@ -25181,7 +25238,7 @@ var StickIndicator = ({ total, index }) => {
25181
25238
  if (total < 2) {
25182
25239
  return null;
25183
25240
  }
25184
- return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_, i) => /* @__PURE__ */ React114.createElement(
25241
+ return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_2, i) => /* @__PURE__ */ React114.createElement(
25185
25242
  Box,
25186
25243
  {
25187
25244
  css: {
@@ -25316,7 +25373,7 @@ var Chat = () => {
25316
25373
  const listRef = useRef21(null);
25317
25374
  const hmsActions = useHMSActions39();
25318
25375
  const vanillaStore = useHMSVanillaStore10();
25319
- const { enabled: isChatEnabled = true } = useHMSStore60(tm("chatState" /* CHAT_STATE */)) || {};
25376
+ const { enabled: isChatEnabled = true } = useHMSStore60(nm("chatState" /* CHAT_STATE */)) || {};
25320
25377
  const isMobile = useMedia18(config.media.md);
25321
25378
  const isMobileHLSStream = useMobileHLSStream();
25322
25379
  const isLandscapeStream = useLandscapeHLSStream();
@@ -25400,7 +25457,7 @@ var NewMessageIndicator = ({
25400
25457
  scrollToBottom,
25401
25458
  listRef
25402
25459
  }) => {
25403
- const unreadCount = useHMSStore60($n);
25460
+ const unreadCount = useHMSStore60(Kn);
25404
25461
  if (!unreadCount || !listRef.current) {
25405
25462
  return null;
25406
25463
  }
@@ -25723,7 +25780,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25723
25780
 
25724
25781
  // src/Prebuilt/components/VideoTile.tsx
25725
25782
  init_define_process_env();
25726
- import React123, { useCallback as useCallback31, useMemo as useMemo10, useState as useState54 } from "react";
25783
+ import React123, { useCallback as useCallback31, useMemo as useMemo11, useState as useState54 } from "react";
25727
25784
  import { useMeasure as useMeasure3 } from "react-use";
25728
25785
  import {
25729
25786
  selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
@@ -26214,7 +26271,7 @@ var Tile = ({
26214
26271
  }, []);
26215
26272
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure3();
26216
26273
  const isTileBigEnoughToShowStats = calculatedHeight >= 180 && calculatedWidth >= 180;
26217
- const [avatarSize, attribBoxSize] = useMemo10(
26274
+ const [avatarSize, attribBoxSize] = useMemo11(
26218
26275
  () => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
26219
26276
  [calculatedWidth, calculatedHeight]
26220
26277
  );
@@ -26480,7 +26537,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26480
26537
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
26481
26538
  const hmsActions = useHMSActions42();
26482
26539
  const localPeer = useHMSStore68(selectLocalPeer6);
26483
- const role = useHMSStore68(Wt);
26540
+ const role = useHMSStore68(Kt);
26484
26541
  const isVideoOn = useHMSStore68(selectIsLocalVideoEnabled5);
26485
26542
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26486
26543
  const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -26488,10 +26545,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26488
26545
  const [blurAmount, setBlurAmount] = useState55(VBHandler.getBlurAmount() || 0.5);
26489
26546
  const roomState = useHMSStore68(selectRoomState4);
26490
26547
  const isLargeRoom = useHMSStore68(selectIsLargeRoom3);
26491
- const isEffectsEnabled = useHMSStore68(ec);
26492
- const effectsKey = useHMSStore68(tc);
26548
+ const isEffectsEnabled = useHMSStore68(ic);
26549
+ const effectsKey = useHMSStore68(rc);
26493
26550
  const isPluginAdded = useHMSStore68(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
26494
- const background = useHMSStore68(em(APP_DATA.background));
26551
+ const background = useHMSStore68(om(APP_DATA.background));
26495
26552
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
26496
26553
  const inPreview = roomState === HMSRoomState4.Preview;
26497
26554
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -26933,7 +26990,7 @@ var PreviewJoin = ({
26933
26990
  const { isStreamingOn } = useRecordingStreaming11();
26934
26991
  const authToken = useAuthToken();
26935
26992
  const [name, setName] = useState56(initialName || previewPreference.name);
26936
- const { toggleAudio, toggleVideo } = useAVToggle6();
26993
+ const { toggleAudio, toggleVideo } = useAVToggle3();
26937
26994
  const [previewError, setPreviewError] = useState56(false);
26938
26995
  const { endpoints } = useHMSPrebuiltContext();
26939
26996
  const { peerCount } = useParticipants2();
@@ -26947,7 +27004,7 @@ var PreviewJoin = ({
26947
27004
  speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
26948
27005
  },
26949
27006
  captureNetworkQualityInPreview: true,
26950
- handleError: (_, method) => {
27007
+ handleError: (_2, method) => {
26951
27008
  if (method === "preview") {
26952
27009
  setPreviewError(true);
26953
27010
  }
@@ -27021,7 +27078,7 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
27021
27078
  }));
27022
27079
  var PreviewTile = ({ name, error }) => {
27023
27080
  const localPeer = useHMSStore70(selectLocalPeer7);
27024
- const { isLocalAudioEnabled, toggleAudio } = useAVToggle6();
27081
+ const { isLocalAudioEnabled, toggleAudio } = useAVToggle3();
27025
27082
  const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
27026
27083
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
27027
27084
  const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -27029,7 +27086,7 @@ var PreviewTile = ({ name, error }) => {
27029
27086
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
27030
27087
  const aspectRatio = useLocalTileAspectRatio();
27031
27088
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure4();
27032
- const [avatarSize, attribBoxSize] = useMemo11(
27089
+ const [avatarSize, attribBoxSize] = useMemo12(
27033
27090
  () => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
27034
27091
  [calculatedWidth, calculatedHeight]
27035
27092
  );
@@ -27199,7 +27256,7 @@ import {
27199
27256
 
27200
27257
  // src/Prebuilt/components/VideoLayouts/GridLayout.tsx
27201
27258
  init_define_process_env();
27202
- import React146, { useEffect as useEffect43, useMemo as useMemo16, useState as useState64 } from "react";
27259
+ import React146, { useEffect as useEffect43, useMemo as useMemo17, useState as useState64 } from "react";
27203
27260
  import {
27204
27261
  selectLocalPeerID as selectLocalPeerID14,
27205
27262
  selectLocalPeerRoleName as selectLocalPeerRoleName5,
@@ -27211,7 +27268,7 @@ import {
27211
27268
 
27212
27269
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
27213
27270
  init_define_process_env();
27214
- import React138, { useEffect as useEffect39, useMemo as useMemo13, useState as useState58 } from "react";
27271
+ import React138, { useEffect as useEffect39, useMemo as useMemo14, useState as useState58 } from "react";
27215
27272
  import { useMedia as useMedia28 } from "react-use";
27216
27273
  import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore73 } from "@100mslive/react-sdk";
27217
27274
 
@@ -27367,7 +27424,7 @@ var Pagination = ({
27367
27424
  if (numPages <= 1) {
27368
27425
  return null;
27369
27426
  }
27370
- return /* @__PURE__ */ React136.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React136.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React136.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React136.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_, i) => /* @__PURE__ */ React136.createElement(
27427
+ return /* @__PURE__ */ React136.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React136.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React136.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React136.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_2, i) => /* @__PURE__ */ React136.createElement(
27371
27428
  StyledPagination.Dot,
27372
27429
  {
27373
27430
  key: i,
@@ -27423,7 +27480,7 @@ var Grid = React137.forwardRef(
27423
27480
 
27424
27481
  // src/Prebuilt/components/hooks/useTileLayout.tsx
27425
27482
  init_define_process_env();
27426
- import { useEffect as useEffect38, useMemo as useMemo12, useState as useState57 } from "react";
27483
+ import { useEffect as useEffect38, useMemo as useMemo13, useState as useState57 } from "react";
27427
27484
  import { useMeasure as useMeasure5, useMedia as useMedia27 } from "react-use";
27428
27485
  import {
27429
27486
  getPeersWithTiles,
@@ -27434,12 +27491,12 @@ var aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4
27434
27491
  var usePagesWithTiles = ({ peers, maxTileCount }) => {
27435
27492
  const vanillaStore = useHMSVanillaStore11();
27436
27493
  const tracksMap = vanillaStore.getState(selectTracksMap4);
27437
- const peersWithTiles = useMemo12(
27494
+ const peersWithTiles = useMemo13(
27438
27495
  () => getPeersWithTiles(peers, tracksMap, () => false),
27439
27496
  [peers, tracksMap]
27440
27497
  );
27441
27498
  const noOfPages = Math.ceil(peersWithTiles.length / maxTileCount);
27442
- const pagesList = useMemo12(() => {
27499
+ const pagesList = useMemo13(() => {
27443
27500
  let sliceStart = 0;
27444
27501
  let remaining = peersWithTiles.length;
27445
27502
  const list = [];
@@ -27474,7 +27531,7 @@ var useTileLayout = ({
27474
27531
  }
27475
27532
  const maxRows = Math.ceil(noOfTilesInPage / maxCols);
27476
27533
  let index = 0;
27477
- const matrix = new Array(maxRows).fill(null).map((_, i) => {
27534
+ const matrix = new Array(maxRows).fill(null).map((_2, i) => {
27478
27535
  const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
27479
27536
  const rowElements = [];
27480
27537
  for (let j = 0; j < numCols; j++) {
@@ -27537,7 +27594,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
27537
27594
  peers,
27538
27595
  maxTileCount
27539
27596
  });
27540
- const inputPeers = useMemo13(() => {
27597
+ const inputPeers = useMemo14(() => {
27541
27598
  if (pageList.length === 0) {
27542
27599
  return localPeer ? [localPeer] : [];
27543
27600
  }
@@ -27722,10 +27779,10 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
27722
27779
 
27723
27780
  // src/Prebuilt/components/hooks/useRoleProminencePeers.tsx
27724
27781
  init_define_process_env();
27725
- import { useMemo as useMemo14 } from "react";
27782
+ import { useMemo as useMemo15 } from "react";
27726
27783
  var useRoleProminencePeers = (prominentRoles, peers, isInsetEnabled) => {
27727
27784
  const pinnedTrack = usePinnedTrack();
27728
- const [prominentPeers, secondaryPeers] = useMemo14(() => {
27785
+ const [prominentPeers, secondaryPeers] = useMemo15(() => {
27729
27786
  return peers.reduce(
27730
27787
  (acc, peer) => {
27731
27788
  if (pinnedTrack) {
@@ -27809,7 +27866,7 @@ function RoleProminence({
27809
27866
 
27810
27867
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
27811
27868
  init_define_process_env();
27812
- import React145, { useEffect as useEffect42, useMemo as useMemo15, useState as useState63 } from "react";
27869
+ import React145, { useEffect as useEffect42, useMemo as useMemo16, useState as useState63 } from "react";
27813
27870
  import { useMedia as useMedia32 } from "react-use";
27814
27871
  import { selectPeersScreenSharing, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
27815
27872
 
@@ -28071,7 +28128,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
28071
28128
  const activeSharePeer = peersSharing[page];
28072
28129
  const isMobile = useMedia32(config.media.md);
28073
28130
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
28074
- const secondaryPeers = useMemo15(() => {
28131
+ const secondaryPeers = useMemo16(() => {
28075
28132
  if (layoutMode === LayoutMode.SPOTLIGHT) {
28076
28133
  return [];
28077
28134
  }
@@ -28123,7 +28180,7 @@ var PeersSorter = class {
28123
28180
  this.speaker = void 0;
28124
28181
  this.tilesPerPage = tilesPerPage;
28125
28182
  const peerIds = new Set(peers.map((peer) => peer.id));
28126
- this.peers.forEach((_, key) => {
28183
+ this.peers.forEach((_2, key) => {
28127
28184
  if (!peerIds.has(key)) {
28128
28185
  this.peers.delete(key);
28129
28186
  }
@@ -28228,7 +28285,7 @@ var GridLayout = ({
28228
28285
  const isRoleProminence = prominentRoles.length && peers.some(
28229
28286
  (peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
28230
28287
  ) || pinnedTrack;
28231
- const updatedPeers = useMemo16(() => {
28288
+ const updatedPeers = useMemo17(() => {
28232
28289
  if (activeScreensharePeerId) {
28233
28290
  return peers.filter((peer) => peer.id !== activeScreensharePeerId);
28234
28291
  }
@@ -28244,7 +28301,7 @@ var GridLayout = ({
28244
28301
  }, [isInsetEnabled, activeScreensharePeerId, localPeerRole, localPeerID, prominentRoles, peers, pinnedTrack]);
28245
28302
  const vanillaStore = useHMSVanillaStore12();
28246
28303
  const [sortedPeers, setSortedPeers] = useState64(updatedPeers);
28247
- const peersSorter = useMemo16(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
28304
+ const peersSorter = useMemo17(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
28248
28305
  const [pageSize, setPageSize] = useState64(0);
28249
28306
  const [mainPage, setMainPage] = useState64(0);
28250
28307
  const tileLayout = {
@@ -28302,7 +28359,7 @@ var GridLayout = ({
28302
28359
 
28303
28360
  // src/Prebuilt/layouts/EmbedView.jsx
28304
28361
  init_define_process_env();
28305
- import React147, { useEffect as useEffect44, useMemo as useMemo17 } from "react";
28362
+ import React147, { useEffect as useEffect44, useMemo as useMemo18 } from "react";
28306
28363
  import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as useHMSStore79 } from "@100mslive/react-sdk";
28307
28364
  var EmbedView = () => {
28308
28365
  return /* @__PURE__ */ React147.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React147.createElement(EmbedComponent, null));
@@ -28311,7 +28368,7 @@ var EmbedScreenShareView = ({ children }) => {
28311
28368
  const peers = useHMSStore79(selectPeers4);
28312
28369
  const peerPresenting = useHMSStore79(selectPeerScreenSharing2);
28313
28370
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28314
- const smallTilePeers = useMemo17(() => {
28371
+ const smallTilePeers = useMemo18(() => {
28315
28372
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
28316
28373
  return smallTilePeers2;
28317
28374
  }, [peers, peerPresenting]);
@@ -28480,7 +28537,7 @@ var WaitingView = React149.memo(() => {
28480
28537
 
28481
28538
  // src/Prebuilt/layouts/WhiteboardView.tsx
28482
28539
  init_define_process_env();
28483
- import React150, { useEffect as useEffect46, useMemo as useMemo18 } from "react";
28540
+ import React150, { useEffect as useEffect46, useMemo as useMemo19 } from "react";
28484
28541
  import { useMedia as useMedia33 } from "react-use";
28485
28542
  import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as useHMSStore80, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
28486
28543
  var EmbedComponent2 = () => {
@@ -28520,7 +28577,7 @@ var WhiteboardView = () => {
28520
28577
  const peers = useHMSStore80(selectPeers5);
28521
28578
  const whiteboard = useHMSStore80(selectWhiteboard);
28522
28579
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28523
- const smallTilePeers = useMemo18(() => {
28580
+ const smallTilePeers = useMemo19(() => {
28524
28581
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (whiteboard == null ? void 0 : whiteboard.owner));
28525
28582
  return smallTilePeers2;
28526
28583
  }, [peers, whiteboard == null ? void 0 : whiteboard.owner]);
@@ -28555,7 +28612,7 @@ var useCloseScreenshareWhiteboard = () => {
28555
28612
  };
28556
28613
 
28557
28614
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
28558
- var HLSView = React151.lazy(() => import("./HLSView-IN3HFCHT.js"));
28615
+ var HLSView = React151.lazy(() => import("./HLSView-GDOF4655.js"));
28559
28616
  var VideoStreamingSection = ({
28560
28617
  screenType,
28561
28618
  elements,
@@ -28891,8 +28948,6 @@ var ConferenceScreen = () => {
28891
28948
  const isMobileDevice = isAndroid || isIOS || isIPadOS;
28892
28949
  const dropdownListRef = useRef25();
28893
28950
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
28894
- const { toggleAudio, toggleVideo } = useAVToggle7();
28895
- const noAVPermissions = !(toggleAudio || toggleVideo);
28896
28951
  const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
28897
28952
  const autoRoomJoined = useRef25(isPreviewScreenEnabled);
28898
28953
  const isMobileHLSStream = useMobileHLSStream();
@@ -29016,7 +29071,7 @@ var ConferenceScreen = () => {
29016
29071
  justify: "end",
29017
29072
  gap: "2"
29018
29073
  },
29019
- noAVPermissions ? /* @__PURE__ */ React155.createElement(RaiseHand, null) : null,
29074
+ /* @__PURE__ */ React155.createElement(RaiseHand, null),
29020
29075
  /* @__PURE__ */ React155.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
29021
29076
  /* @__PURE__ */ React155.createElement(
29022
29077
  Box,
@@ -29555,7 +29610,7 @@ import {
29555
29610
  PeopleRemoveIcon as PeopleRemoveIcon4,
29556
29611
  PoorConnectivityIcon as PoorConnectivityIcon2
29557
29612
  } from "@100mslive/react-icons";
29558
- var ChatAction = React163.forwardRef((_, ref) => {
29613
+ var ChatAction = React163.forwardRef((_2, ref) => {
29559
29614
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
29560
29615
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
29561
29616
  if (isChatOpen) {
@@ -30170,7 +30225,7 @@ function Notifications() {
30170
30225
  }, []);
30171
30226
  useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
30172
30227
  useEffect65(() => {
30173
- var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p;
30228
+ var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p;
30174
30229
  if (!notification || isNotificationDisabled) {
30175
30230
  return;
30176
30231
  }
@@ -30211,7 +30266,7 @@ function Notifications() {
30211
30266
  });
30212
30267
  break;
30213
30268
  case HMSNotificationTypes10.ROLE_UPDATED: {
30214
- if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
30269
+ if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
30215
30270
  ToastManager.addToast({
30216
30271
  title: `You are now a ${notification.data.roleName}`
30217
30272
  });
@@ -30397,7 +30452,7 @@ var Sheet2 = () => {
30397
30452
 
30398
30453
  // src/Prebuilt/plugins/FlyingEmoji.jsx
30399
30454
  init_define_process_env();
30400
- import React175, { useCallback as useCallback36, useEffect as useEffect67, useMemo as useMemo19, useState as useState73 } from "react";
30455
+ import React175, { useCallback as useCallback36, useEffect as useEffect67, useMemo as useMemo20, useState as useState73 } from "react";
30401
30456
  import { useMedia as useMedia38 } from "react-use";
30402
30457
  import {
30403
30458
  selectLocalPeerID as selectLocalPeerID17,
@@ -30434,7 +30489,7 @@ function FlyingEmoji() {
30434
30489
  const vanillaStore = useHMSVanillaStore17();
30435
30490
  const [emojis, setEmojis] = useState73([]);
30436
30491
  const isMobile = useMedia38(config.media.md);
30437
- const startingPoints = useMemo19(() => getStartingPoints(isMobile), [isMobile]);
30492
+ const startingPoints = useMemo20(() => getStartingPoints(isMobile), [isMobile]);
30438
30493
  const showFlyingEmoji = useCallback36(
30439
30494
  ({ emojiId, senderId }) => {
30440
30495
  if (!emojiId || !senderId || document.hidden) {
@@ -30927,4 +30982,4 @@ lodash/lodash.js:
30927
30982
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
30928
30983
  *)
30929
30984
  */
30930
- //# sourceMappingURL=chunk-ORCLDJ5D.js.map
30985
+ //# sourceMappingURL=chunk-ZDW56PPL.js.map