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

Sign up to get free protection for your applications and to get access to all the features.
@@ -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_c141a2c0-32b5-4eb1-9121-895143e951e6", 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.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c141a2c0-32b5-4eb1-9121-895143e951e6", 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.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.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: "601", 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:20031", 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.0", 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: "8295361424", 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: "23e3bf90410ae16869b67438ac403cba6027db98", 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: "febdcd611bd2e7b71c95773975a838963da6d830e4eb4ca2aaad2680a9697a39", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1710501539063-0.8992863326107012:/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--1710501538840-0.4644413486761725:/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--1710501517171-0.06504511434237248:/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--1710501516997-0.10551021203929101:/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_66b9242f-a1e3-45f9-b76e-814147f38a5f", INVOCATION_ID: "62606dcd62ad4362bca459c2f50d146f", 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: "481", 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 55", 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.0", 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.0", 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: "23e3bf90410ae16869b67438ac403cba6027db98", 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_c141a2c0-32b5-4eb1-9121-895143e951e6", 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_c141a2c0-32b5-4eb1-9121-895143e951e6", 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_c141a2c0-32b5-4eb1-9121-895143e951e6" };
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,
@@ -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) => {
@@ -16287,8 +16287,8 @@ init_define_process_env();
16287
16287
 
16288
16288
  // ../../node_modules/reselect/es/index.js
16289
16289
  init_define_process_env();
16290
- function defaultEqualityCheck(a2, b2) {
16291
- return a2 === b2;
16290
+ function defaultEqualityCheck(a2, b) {
16291
+ return a2 === b;
16292
16292
  }
16293
16293
  function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
16294
16294
  if (prev === null || next === null || prev.length !== next.length) {
@@ -16365,8 +16365,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
16365
16365
  // ../hms-video-store/dist/index.js
16366
16366
  var import_ua_parser_js = __toESM(require_ua_parser());
16367
16367
  var import_lodash3 = __toESM(require_lodash2());
16368
+ import { v4 as qa } from "uuid";
16368
16369
  import { v4 as Wa } from "uuid";
16369
- import { v4 as Ga } from "uuid";
16370
16370
 
16371
16371
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
16372
16372
  init_define_process_env();
@@ -16604,7 +16604,7 @@ function shimGetUserMedia(window2, browserDetails) {
16604
16604
  if (typeof c !== "object" || c.mandatory || c.optional) {
16605
16605
  return c;
16606
16606
  }
16607
- const cc = {};
16607
+ const cc2 = {};
16608
16608
  Object.keys(c).forEach((key) => {
16609
16609
  if (key === "require" || key === "advanced" || key === "mediaSource") {
16610
16610
  return;
@@ -16620,35 +16620,35 @@ function shimGetUserMedia(window2, browserDetails) {
16620
16620
  return name === "deviceId" ? "sourceId" : name;
16621
16621
  };
16622
16622
  if (r.ideal !== void 0) {
16623
- cc.optional = cc.optional || [];
16624
- let oc2 = {};
16623
+ cc2.optional = cc2.optional || [];
16624
+ let oc = {};
16625
16625
  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);
16626
+ oc[oldname_("min", key)] = r.ideal;
16627
+ cc2.optional.push(oc);
16628
+ oc = {};
16629
+ oc[oldname_("max", key)] = r.ideal;
16630
+ cc2.optional.push(oc);
16631
16631
  } else {
16632
- oc2[oldname_("", key)] = r.ideal;
16633
- cc.optional.push(oc2);
16632
+ oc[oldname_("", key)] = r.ideal;
16633
+ cc2.optional.push(oc);
16634
16634
  }
16635
16635
  }
16636
16636
  if (r.exact !== void 0 && typeof r.exact !== "number") {
16637
- cc.mandatory = cc.mandatory || {};
16638
- cc.mandatory[oldname_("", key)] = r.exact;
16637
+ cc2.mandatory = cc2.mandatory || {};
16638
+ cc2.mandatory[oldname_("", key)] = r.exact;
16639
16639
  } else {
16640
16640
  ["min", "max"].forEach((mix) => {
16641
16641
  if (r[mix] !== void 0) {
16642
- cc.mandatory = cc.mandatory || {};
16643
- cc.mandatory[oldname_(mix, key)] = r[mix];
16642
+ cc2.mandatory = cc2.mandatory || {};
16643
+ cc2.mandatory[oldname_(mix, key)] = r[mix];
16644
16644
  }
16645
16645
  });
16646
16646
  }
16647
16647
  });
16648
16648
  if (c.advanced) {
16649
- cc.optional = (cc.optional || []).concat(c.advanced);
16649
+ cc2.optional = (cc2.optional || []).concat(c.advanced);
16650
16650
  }
16651
- return cc;
16651
+ return cc2;
16652
16652
  };
16653
16653
  const shimConstraints_ = function(constraints, func) {
16654
16654
  if (browserDetails.version >= 61) {
@@ -16656,9 +16656,9 @@ function shimGetUserMedia(window2, browserDetails) {
16656
16656
  }
16657
16657
  constraints = JSON.parse(JSON.stringify(constraints));
16658
16658
  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];
16659
+ const remap = function(obj, a2, b) {
16660
+ if (a2 in obj && !(b in obj)) {
16661
+ obj[b] = obj[a2];
16662
16662
  delete obj[a2];
16663
16663
  }
16664
16664
  };
@@ -17400,9 +17400,9 @@ function shimGetUserMedia2(window2, browserDetails) {
17400
17400
  navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
17401
17401
  };
17402
17402
  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];
17403
+ const remap = function(obj, a2, b) {
17404
+ if (a2 in obj && !(b in obj)) {
17405
+ obj[b] = obj[a2];
17406
17406
  delete obj[a2];
17407
17407
  }
17408
17408
  };
@@ -18463,114 +18463,114 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
18463
18463
 
18464
18464
  // ../hms-video-store/dist/index.js
18465
18465
  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;
18466
+ import { v4 as io } from "uuid";
18467
+ import { v4 as oo } from "uuid";
18468
+ import { v4 as uo } from "uuid";
18469
+ import { EventEmitter2 as po } from "eventemitter2";
18470
+ var Dt = __toESM(require_lib());
18471
+ import { EventEmitter2 as Co } from "eventemitter2";
18472
+ import { v4 as wo } from "uuid";
18473
+ import { EventEmitter2 as _o } from "eventemitter2";
18474
+ import No from "eventemitter2";
18475
+ import { v4 as Oo } from "uuid";
18476
+ import { v4 as Bo } from "uuid";
18477
+ var ka = Object.defineProperty;
18478
+ var Pa = Object.defineProperties;
18479
+ var Ea = Object.getOwnPropertyDescriptors;
18480
18480
  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) => {
18481
+ var Wr = Object.prototype.hasOwnProperty;
18482
+ var Kr = Object.prototype.propertyIsEnumerable;
18483
+ var $r = (a2, e, t) => e in a2 ? ka(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
18484
+ var m = (a2, e) => {
18485
18485
  for (var t in e || (e = {}))
18486
- Gr.call(e, t) && Fr(a2, t, e[t]);
18486
+ Wr.call(e, t) && $r(a2, t, e[t]);
18487
18487
  if (Vt)
18488
18488
  for (var t of Vt(e))
18489
- $r.call(e, t) && Fr(a2, t, e[t]);
18489
+ Kr.call(e, t) && $r(a2, t, e[t]);
18490
18490
  return a2;
18491
18491
  };
18492
- var M = (a2, e) => ya(a2, ka(e));
18493
- var Yi = (a2, e) => {
18492
+ var v = (a2, e) => Pa(a2, Ea(e));
18493
+ var Xi = (a2, e) => {
18494
18494
  var t = {};
18495
18495
  for (var i in a2)
18496
- Gr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
18496
+ Wr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
18497
18497
  if (a2 != null && Vt)
18498
18498
  for (var i of Vt(a2))
18499
- e.indexOf(i) < 0 && $r.call(a2, i) && (t[i] = a2[i]);
18499
+ e.indexOf(i) < 0 && Kr.call(a2, i) && (t[i] = a2[i]);
18500
18500
  return t;
18501
18501
  };
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"] };
18502
+ var Ia = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18503
+ var lr = Ia((ed, Ka) => {
18504
+ Ka.exports = { version: "0.12.3-alpha.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
18505
18505
  });
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 || {});
18506
+ 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 || {});
18507
+ var Ra = ((e) => (e.CHAT = "chat", e))(Ra || {});
18508
+ var qr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(qr || {});
18509
+ 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 || {});
18510
+ var jr = ((t) => (t.audio = "audio", t.video = "video", t))(jr || {});
18511
18511
  function He(a2, e) {
18512
18512
  let t, i;
18513
18513
  if (e)
18514
18514
  for (let r of e.auxiliaryTracks) {
18515
18515
  let s = a2[r];
18516
- Ra(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
18516
+ Ha(s) && (i = it(s) ? s : i, t = rt(s) ? s : t);
18517
18517
  }
18518
18518
  return { video: t, audio: i };
18519
18519
  }
18520
- function tt(a2) {
18520
+ function it(a2) {
18521
18521
  return a2 && a2.type === "audio";
18522
18522
  }
18523
- function it(a2) {
18523
+ function rt(a2) {
18524
18524
  return a2 && a2.type === "video";
18525
18525
  }
18526
- function Ra(a2) {
18526
+ function Ha(a2) {
18527
18527
  return a2 && a2.source === "screen";
18528
18528
  }
18529
- function Gt(a2) {
18529
+ function $t(a2) {
18530
18530
  return a2 && a2.source === "audioplaylist";
18531
18531
  }
18532
- function rt(a2) {
18532
+ function st(a2) {
18533
18533
  return a2 && a2.source === "videoplaylist";
18534
18534
  }
18535
- function qr(a2) {
18535
+ function Jr(a2) {
18536
18536
  return a2 ? !!(a2 != null && a2.degraded) : false;
18537
18537
  }
18538
18538
  function Ue(a2, e) {
18539
18539
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
18540
18540
  }
18541
- function st(a2) {
18541
+ function at(a2) {
18542
18542
  var r;
18543
18543
  let e = false, t = false, i = false;
18544
18544
  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
18545
  }
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);
18546
+ var B = (a2) => a2.room;
18547
+ var Ca = (a2) => a2.errors;
18548
+ var Rn = createSelector(Ca, (a2) => a2.length === 0 ? null : a2.at(-1));
18549
+ var Hn = createSelector(B, (a2) => a2.id);
18550
18550
  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);
18551
+ var Wt = (a2) => a2.messages.byID;
18552
+ var zr = (a2) => a2.messages.allIDs;
18553
+ var w = (a2) => a2.tracks;
18554
+ var tr = (a2) => a2.appData;
18555
+ var La = (a2) => a2.speakers;
18556
+ var ye = createSelector([B], (a2) => a2 && a2.isConnected);
18557
+ 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));
18558
+ var Da = (a2) => a2.hideLocalPeer;
18559
+ 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]));
18560
+ var wa = createSelector(w, (a2) => Object.values(a2));
18561
+ var z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
18562
+ var ue = createSelector(B, (a2) => a2.localPeer);
18563
+ var wn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
18564
+ var _n = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
18565
18565
  var Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
18566
18566
  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) => {
18567
+ var _a7 = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
18568
+ var Xr = createSelector([Z, K, _a7], (a2, e, t) => {
18569
18569
  let i = t ? [...t] : [];
18570
18570
  return a2 && i.unshift(a2), e && i.unshift(e), i;
18571
18571
  });
18572
- var wn = createSelector(ae, (a2) => a2.filter((e) => !e.isLocal));
18573
- var _n = createSelector(G, Ha, (a2, e) => {
18572
+ var Nn = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
18573
+ var On = createSelector(G, La, (a2, e) => {
18574
18574
  let t = Object.entries(e).sort((i, r) => {
18575
18575
  var n, l;
18576
18576
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -18583,11 +18583,11 @@ var _n = createSelector(G, Ha, (a2, e) => {
18583
18583
  }
18584
18584
  return null;
18585
18585
  });
18586
- var ir = createSelector(z, D, (a2, e) => {
18586
+ var rr = createSelector(z, w, (a2, e) => {
18587
18587
  let { video: t, audio: i } = He(e, a2);
18588
18588
  return !!(t || i);
18589
18589
  });
18590
- var wa = createSelector(G, D, (a2, e) => {
18590
+ var Na = createSelector(G, w, (a2, e) => {
18591
18591
  let t;
18592
18592
  for (let i in a2) {
18593
18593
  let r = a2[i], { video: s, audio: o } = He(e, r);
@@ -18597,15 +18597,15 @@ var wa = createSelector(G, D, (a2, e) => {
18597
18597
  }
18598
18598
  return t;
18599
18599
  });
18600
- var On = createSelector(wa, (a2) => !!a2);
18601
- var xn = createSelector(G, D, (a2, e) => {
18600
+ var Un = createSelector(Na, (a2) => !!a2);
18601
+ var Bn = createSelector(G, w, (a2, e) => {
18602
18602
  for (let t in a2) {
18603
18603
  let i = a2[t], { audio: r, video: s } = He(e, i);
18604
18604
  if (!s && r)
18605
18605
  return i;
18606
18606
  }
18607
18607
  });
18608
- var Un = createSelector(G, D, (a2, e) => {
18608
+ var Vn = createSelector(G, w, (a2, e) => {
18609
18609
  let t = [], i = [];
18610
18610
  for (let r in a2) {
18611
18611
  let s = a2[r], { video: o, audio: n } = He(e, s);
@@ -18613,80 +18613,80 @@ var Un = createSelector(G, D, (a2, e) => {
18613
18613
  }
18614
18614
  return t.concat(i);
18615
18615
  });
18616
- var Vn = createSelector(G, D, (a2, e) => {
18616
+ var Fn = createSelector(G, w, (a2, e) => {
18617
18617
  for (let t in e) {
18618
18618
  let i = e[t];
18619
- if (rt(i) && it(i) && i.peerId)
18619
+ if (st(i) && rt(i) && i.peerId)
18620
18620
  return a2[i.peerId];
18621
18621
  }
18622
18622
  });
18623
- var Bn = createSelector(G, D, (a2, e) => {
18623
+ var Gn = createSelector(G, w, (a2, e) => {
18624
18624
  for (let t in e) {
18625
18625
  let i = e[t];
18626
- if (Gt(i) && i.peerId)
18626
+ if ($t(i) && i.peerId)
18627
18627
  return a2[i.peerId];
18628
18628
  }
18629
18629
  });
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) => {
18630
+ var $n = createSelector(wa, (a2) => a2.filter(Jr));
18631
+ var Wn = createSelector(zr, (a2) => a2.length);
18632
+ var Kn = createSelector(Wt, (a2) => Object.values(a2).filter((e) => !e.read).length);
18633
+ var ot = createSelector(zr, Wt, (a2, e) => {
18634
18634
  let t = [];
18635
18635
  return a2.forEach((i) => {
18636
18636
  t.push(e[i]);
18637
18637
  }), t;
18638
18638
  });
18639
- var _a7 = createSelector(at, (a2) => a2.filter((e) => {
18639
+ var Oa = createSelector(ot, (a2) => a2.filter((e) => {
18640
18640
  var t;
18641
18641
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
18642
18642
  }));
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) => {
18643
+ var qn = createSelector(Oa, (a2) => a2.filter((e) => !e.read).length);
18644
+ var Y = createSelector([B], (a2) => a2 && a2.roomState);
18645
+ var es = createSelector(Y, (a2) => a2 === "Preview");
18646
+ var jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
18647
+ var ne = (a2) => a2.roles;
18648
+ var Jn = createSelector([ne], (a2) => Object.keys(a2));
18649
+ var Kt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
18650
+ var xa = (a2) => {
18651
18651
  var e;
18652
18652
  return (e = a2.preview) == null ? void 0 : e.asRole;
18653
18653
  };
18654
- var Zr = createSelector([Na, oe], (a2, e) => a2 ? e[a2] : null);
18655
- var jn = createSelector([Wt], (a2) => {
18654
+ var ts = createSelector([xa, ne], (a2, e) => a2 ? e[a2] : null);
18655
+ var Qn = createSelector([Kt], (a2) => {
18656
18656
  var e;
18657
18657
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
18658
18658
  });
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) => {
18659
+ var is = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
18660
+ var zn = createSelector(B, (a2) => a2.recording);
18661
+ var Yn = createSelector(B, (a2) => a2.rtmp);
18662
+ var Xn = createSelector(B, (a2) => a2.hls);
18663
+ var Zn = createSelector(B, (a2) => a2.sessionId);
18664
+ var ec = createSelector(B, (a2) => a2.startedAt);
18665
+ var tc = createSelector(B, (a2) => !!a2.isLargeRoom);
18666
+ var ic = createSelector(B, (a2) => !!a2.isEffectsEnabled);
18667
+ var rc = createSelector(B, (a2) => a2.effectsKey);
18668
+ var rs = (a2) => a2.polls;
18669
+ var nc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
18670
+ var Ua = (a2) => a2.whiteboards;
18671
+ var cc = createSelector(Ua, (a2) => Object.values(a2)[0]);
18672
+ var as = (a2 = "audio") => (e) => e.playlist[a2].list;
18673
+ var sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
18674
+ var os = (a2 = "audio") => (e) => e.playlist[a2].progress;
18675
+ var ns = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
18676
+ var cs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
18677
+ var ds = (a2 = "audio") => (e) => e.playlist[a2].volume;
18678
+ var ls = (a2 = "audio") => createSelector(as(a2), (e) => Object.values(e));
18679
+ var us = (a2 = "audio") => createSelector(as(a2), sr(a2), (e, t) => {
18680
18680
  if (t.id)
18681
18681
  return e[t.id];
18682
18682
  });
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) {
18683
+ var ps = { selection: sr("audio"), progress: os("audio"), currentTime: ns("audio"), playbackRate: cs("audio"), volume: ds("audio"), list: ls("audio"), selectedItem: us("audio") };
18684
+ var hs = { selection: sr("video"), progress: os("video"), currentTime: ns("video"), playbackRate: cs("video"), volume: ds("video"), list: ls("video"), selectedItem: us("video") };
18685
+ function A(a2) {
18686
18686
  return (e) => (t) => a2(t, e);
18687
18687
  }
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";
18688
+ 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 || {});
18689
+ var Ba = typeof window != "undefined" && typeof window.expect != "undefined";
18690
18690
  var d = class {
18691
18691
  static v(e, ...t) {
18692
18692
  this.log(0, e, ...t);
@@ -18752,25 +18752,25 @@ var d = class {
18752
18752
  }
18753
18753
  }
18754
18754
  };
18755
- d.level = xa ? 7 : 0;
18755
+ d.level = Ba ? 7 : 0;
18756
18756
  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;
18757
+ var _ = typeof window != "undefined";
18763
18758
  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) {
18759
+ var Ce = typeof window == "undefined" && !((Ss = pe.getBrowser().name) != null && Ss.toLowerCase().includes("electron"));
18760
+ var Fa = () => !Ce;
18761
+ var gc = Fa();
18762
+ var gs;
18763
+ var Ts;
18764
+ var vs = ((Ts = (gs = pe.getBrowser()) == null ? void 0 : gs.name) == null ? void 0 : Ts.toLowerCase()) === "firefox";
18765
+ function Ga() {
18766
+ if (_ && window) {
18767
18767
  let a2 = window.location.hostname;
18768
18768
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
18769
18769
  }
18770
18770
  return "CUSTOM";
18771
18771
  }
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 } };
18772
+ var Ve = Ga();
18773
+ 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
18774
  var f = class a extends Error {
18775
18775
  constructor(t, i, r, s, o, n = false) {
18776
18776
  super(s);
@@ -18800,99 +18800,99 @@ var f = class a extends Error {
18800
18800
  }`;
18801
18801
  }
18802
18802
  };
18803
- var Fa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
18803
+ var $a = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
18804
18804
  var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18805
- return new f(v.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
18805
+ return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
18806
18806
  }, WebSocketConnectionLost(a2, e = "") {
18807
- return new f(v.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
18807
+ return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
18808
18808
  }, AbnormalClose(a2, e = "") {
18809
- return new f(v.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
18809
+ return new f(M.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
18810
18810
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
18811
18811
  return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
18812
18812
  }, EndpointUnreachable(a2, e = "") {
18813
- return new f(v.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
18813
+ return new f(M.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
18814
18814
  }, InvalidTokenFormat(a2, e = "") {
18815
- return new f(v.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
18815
+ return new f(M.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
18816
18816
  }, InitConfigNotAvailable(a2, e = "") {
18817
- return new f(v.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
18817
+ return new f(M.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
18818
18818
  } }, TracksErrors: { GenericTrack(a2, e = "") {
18819
- return new f(v.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
18819
+ return new f(M.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
18820
18820
  }, 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);
18821
+ return new f(M.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
18822
18822
  }, DeviceNotAvailable(a2, e, t = "") {
18823
- return new f(v.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
18823
+ return new f(M.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
18824
18824
  }, 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);
18825
+ return new f(M.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
18826
18826
  }, DeviceLostMidway(a2, e, t = "") {
18827
- return new f(v.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
18827
+ return new f(M.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
18828
18828
  }, 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);
18829
+ return new f(M.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
18830
18830
  }, InvalidVideoSettings(a2, e = "") {
18831
- return new f(v.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
18831
+ return new f(M.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
18832
18832
  }, 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);
18833
+ return new f(M.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
18834
18834
  }, CodecChangeNotPermitted(a2, e = "") {
18835
- return new f(v.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
18835
+ return new f(M.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
18836
18836
  }, 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);
18837
+ return new f(M.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
18838
18838
  }, 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);
18839
+ return new f(M.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
18840
18840
  }, 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);
18841
+ return new f(M.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
18842
18842
  }, 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");
18843
+ 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
18844
  }, AudioPlaybackError(a2) {
18845
- return new f(v.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
18845
+ return new f(M.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
18846
18846
  }, 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);
18847
+ 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
18848
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
18849
- return new f(v.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
18849
+ return new f(M.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
18850
18850
  }, CreateAnswerFailed(a2, e = "") {
18851
- return new f(v.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
18851
+ return new f(M.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
18852
18852
  }, SetLocalDescriptionFailed(a2, e = "") {
18853
- return new f(v.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
18853
+ return new f(M.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
18854
18854
  }, SetRemoteDescriptionFailed(a2, e = "") {
18855
- return new f(v.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
18855
+ return new f(M.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
18856
18856
  }, ICEFailure(a2, e = "", t = false) {
18857
- return new f(v.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
18857
+ return new f(M.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
18858
18858
  }, ICEDisconnected(a2, e = "") {
18859
- return new f(v.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
18859
+ return new f(M.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
18860
18860
  }, StatsFailed(a2, e = "") {
18861
- return new f(v.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
18861
+ return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
18862
18862
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
18863
- return new f(a2, "ServerErrors", e, t, t, Fa.includes(e));
18863
+ return new f(a2, "ServerErrors", e, t, t, $a.includes(e));
18864
18864
  }, AlreadyJoined(a2, e = "") {
18865
- return new f(v.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
18865
+ return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
18866
18866
  }, 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);
18867
+ return new f(M.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
18868
18868
  } }, GenericErrors: { NotConnected(a2, e = "") {
18869
- return new f(v.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
18869
+ return new f(M.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
18870
18870
  }, Signalling(a2, e) {
18871
- return new f(v.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
18871
+ return new f(M.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
18872
18872
  }, Unknown(a2, e) {
18873
- return new f(v.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
18873
+ return new f(M.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
18874
18874
  }, NotReady(a2, e = "") {
18875
- return new f(v.GenericErrors.NOT_READY, "NotReady", a2, e, e);
18875
+ return new f(M.GenericErrors.NOT_READY, "NotReady", a2, e, e);
18876
18876
  }, JsonParsingFailed(a2, e, t = "") {
18877
- return new f(v.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
18877
+ return new f(M.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
18878
18878
  }, TrackMetadataMissing(a2, e = "") {
18879
- return new f(v.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
18879
+ return new f(M.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
18880
18880
  }, RTCTrackMissing(a2, e = "") {
18881
- return new f(v.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
18881
+ return new f(M.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
18882
18882
  }, PeerMetadataMissing(a2, e = "") {
18883
- return new f(v.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
18883
+ return new f(M.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
18884
18884
  }, ValidationFailed(a2, e) {
18885
- return new f(v.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
18885
+ return new f(M.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
18886
18886
  }, InvalidRole(a2, e) {
18887
- return new f(v.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
18887
+ return new f(M.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
18888
18888
  }, PreviewAlreadyInProgress(a2, e = "") {
18889
- return new f(v.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
18889
+ return new f(M.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
18890
18890
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
18891
- return new f(v.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
18891
+ return new f(M.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
18892
18892
  }, 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);
18893
+ 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
18894
  }, 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);
18895
+ 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
18896
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
18897
18897
  return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
18898
18898
  }, InitFailed(a2, e = "") {
@@ -18904,11 +18904,11 @@ var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18904
18904
  }, DeviceNotSupported(a2, e = "") {
18905
18905
  return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
18906
18906
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
18907
- return new f(v.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
18907
+ return new f(M.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
18908
18908
  }, NoEntryPlaying(a2, e) {
18909
- return new f(v.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
18909
+ return new f(M.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
18910
18910
  } } };
18911
- var or = class {
18911
+ var nr = class {
18912
18912
  constructor() {
18913
18913
  this.valuesMap = /* @__PURE__ */ new Map();
18914
18914
  }
@@ -18933,21 +18933,21 @@ var or = class {
18933
18933
  return this.valuesMap.size;
18934
18934
  }
18935
18935
  };
18936
- var fs = () => {
18936
+ var Ms = () => {
18937
18937
  try {
18938
- w && !localStorage && (window.localStorage = new or());
18938
+ _ && !localStorage && (window.localStorage = new nr());
18939
18939
  } catch (a2) {
18940
18940
  d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied());
18941
18941
  }
18942
18942
  };
18943
- var ne = class {
18943
+ var ce = class {
18944
18944
  constructor(e) {
18945
18945
  this.key = e;
18946
18946
  this.storage = null;
18947
18947
  }
18948
18948
  getStorage() {
18949
18949
  try {
18950
- return w && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
18950
+ return _ && !this.storage && (Ms(), this.storage = window.localStorage), this.storage;
18951
18951
  } catch (e) {
18952
18952
  return d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied()), null;
18953
18953
  }
@@ -18967,125 +18967,165 @@ var ne = class {
18967
18967
  (e = this.getStorage()) == null || e.removeItem(this.key);
18968
18968
  }
18969
18969
  };
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;
18970
+ var ys = () => {
18971
+ let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
18972
+ return t ? a2 = t : (a2 = Wa(), e.set(a2)), a2;
18973
18973
  };
18974
18974
  function ie(a2) {
18975
18975
  return a2 != null;
18976
18976
  }
18977
- var ys = dr().version;
18978
- function ot(a2 = "prod", e) {
18979
- let t = "web", i = Be !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
18977
+ var Ps = lr().version;
18978
+ function nt(a2 = "prod", e) {
18979
+ let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
18980
18980
  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 });
18981
+ 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 });
18982
+ 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;
18983
+ 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
18984
  }
18985
- function lr(a2) {
18985
+ function ur(a2) {
18986
18986
  return a2.replace(/ /g, "_");
18987
18987
  }
18988
- var ks = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
18989
- var I = class {
18988
+ var Es = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
18989
+ var R = class {
18990
18990
  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();
18991
+ this.metadata = { peer: {}, userAgent: nt() };
18992
+ 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
18993
  }
18994
18994
  toSignalParams() {
18995
- return { name: this.name, info: M(S({}, this.properties), { timestamp: this.timestamp, domain: Be }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
18995
+ return { name: this.name, info: v(m({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
18996
18996
  }
18997
18997
  };
18998
+ var pr = class {
18999
+ constructor() {
19000
+ this.pluginUsage = /* @__PURE__ */ new Map();
19001
+ this.pluginLastAddedAt = /* @__PURE__ */ new Map();
19002
+ this.getPluginUsage = (e, t) => {
19003
+ let i = `${t}-${e}`;
19004
+ if (this.pluginUsage.has(i) || this.pluginUsage.set(i, 0), this.pluginLastAddedAt.has(i)) {
19005
+ let r = this.pluginLastAddedAt.get(i) || 0, s = r ? Date.now() - r : 0;
19006
+ this.pluginUsage.set(i, (this.pluginUsage.get(i) || 0) + s), this.pluginLastAddedAt.delete(i);
19007
+ }
19008
+ return this.pluginUsage.get(i);
19009
+ };
19010
+ this.updatePluginUsageData = (e, t) => {
19011
+ if (e.name === "transport.leave") {
19012
+ this.cleanup(t);
19013
+ return;
19014
+ }
19015
+ let i = e.properties.plugin_name, r = `${t}-${i}`;
19016
+ if (e.name === "mediaPlugin.added") {
19017
+ let s = e.properties.added_at;
19018
+ this.pluginLastAddedAt.set(r, s);
19019
+ } else if (e.name === "mediaPlugin.stats") {
19020
+ let s = e.properties.duration;
19021
+ s > 0 && (this.pluginUsage.set(r, (this.pluginUsage.get(r) || 0) + s * 1e3), this.pluginLastAddedAt.delete(r));
19022
+ }
19023
+ };
19024
+ this.cleanup = (e) => {
19025
+ for (let t of this.pluginUsage.keys())
19026
+ e.length && t.includes(e) && (this.pluginUsage.delete(t), this.pluginLastAddedAt.delete(t));
19027
+ };
19028
+ }
19029
+ };
19030
+ var Fe = new pr();
18998
19031
  var y = class {
18999
19032
  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 });
19033
+ 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);
19034
+ return new R({ name: o, level: n, properties: l });
19002
19035
  }
19003
19036
  static disconnect(e, t) {
19004
19037
  let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
19005
- return new I({ name: i, level: r, properties: s });
19038
+ return new R({ name: i, level: r, properties: s });
19006
19039
  }
19007
19040
  static preview(i) {
19008
- var r = i, { error: e } = r, t = Yi(r, ["error"]);
19041
+ var r = i, { error: e } = r, t = Xi(r, ["error"]);
19009
19042
  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 });
19043
+ return new R({ name: s, level: o, properties: n });
19011
19044
  }
19012
19045
  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 });
19046
+ var r = i, { error: e } = r, t = Xi(r, ["error"]);
19047
+ 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);
19048
+ return new R({ name: s, level: o, properties: n });
19016
19049
  }
19017
19050
  static publish({ devices: e, settings: t, error: i }) {
19018
19051
  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 });
19052
+ return new R({ name: r, level: s, properties: o });
19020
19053
  }
19021
19054
  static hlsPlayerError(e) {
19022
- return new I({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
19055
+ return new R({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
19023
19056
  }
19024
19057
  static subscribeFail(e) {
19025
19058
  let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
19026
- return new I({ name: t, level: i, properties: r });
19059
+ return new R({ name: t, level: i, properties: r });
19027
19060
  }
19028
19061
  static leave() {
19029
- return new I({ name: "leave", level: 1 });
19062
+ return new R({ name: "leave", level: 1 });
19030
19063
  }
19031
19064
  static autoplayError() {
19032
- return new I({ name: "autoplayError", level: 2 });
19065
+ return new R({ name: "autoplayError", level: 2 });
19033
19066
  }
19034
19067
  static audioPlaybackError(e) {
19035
- return new I({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
19068
+ return new R({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
19036
19069
  }
19037
19070
  static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
19038
19071
  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 });
19072
+ return new R({ name: o, level: n, properties: l });
19040
19073
  }
19041
19074
  static performance(e) {
19042
19075
  let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
19043
- return new I({ name: t, level: i, properties: r });
19076
+ return new R({ name: t, level: i, properties: r });
19044
19077
  }
19045
19078
  static rtcStats(e) {
19046
19079
  let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
19047
- return new I({ name: t, level: i, properties: r });
19080
+ return new R({ name: t, level: i, properties: r });
19048
19081
  }
19049
19082
  static rtcStatsFailed(e) {
19050
19083
  let t = "rtc.stats.failed", i = 2;
19051
- return new I({ name: t, level: i, properties: this.getErrorProperties(e) });
19084
+ return new R({ name: t, level: i, properties: this.getErrorProperties(e) });
19052
19085
  }
19053
19086
  static degradationStats(e, t) {
19054
19087
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
19055
19088
  if (!t && e.degradedAt instanceof Date) {
19056
19089
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
19057
- s = M(S({}, s), { duration: n, restoredAt: o });
19090
+ s = v(m({}, s), { duration: n, restoredAt: o });
19058
19091
  }
19059
- return new I({ name: i, level: r, properties: s });
19092
+ return new R({ name: i, level: r, properties: s });
19060
19093
  }
19061
19094
  static audioDetectionFail(e, t) {
19062
19095
  let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
19063
- return new I({ name: s, level: r, properties: i });
19096
+ return new R({ name: s, level: r, properties: i });
19064
19097
  }
19065
19098
  static previewNetworkQuality(e) {
19066
- return new I({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
19099
+ return new R({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
19067
19100
  }
19068
19101
  static publishStats(e) {
19069
- return new I({ name: "publisher.stats", level: 1, properties: e });
19102
+ return new R({ name: "publisher.stats", level: 1, properties: e });
19070
19103
  }
19071
19104
  static subscribeStats(e) {
19072
- return new I({ name: "subscriber.stats", level: 1, properties: e });
19105
+ return new R({ name: "subscriber.stats", level: 1, properties: e });
19106
+ }
19107
+ static getKrispUsage(e) {
19108
+ let t = Fe.getPluginUsage("HMSKrispPlugin", e);
19109
+ return new R({ name: "krisp.usage", level: 1, properties: { duration: t } });
19110
+ }
19111
+ static transportLeave() {
19112
+ return new R({ name: "transport.leave", level: 1, properties: {} });
19073
19113
  }
19074
19114
  static eventNameFor(e, t) {
19075
19115
  return `${e}.${t ? "success" : "failed"}`;
19076
19116
  }
19077
19117
  static getPropertiesWithError(e, t) {
19078
19118
  let i = this.getErrorProperties(t);
19079
- return e = S(S({}, i), e), e;
19119
+ return e = m(m({}, i), e), e;
19080
19120
  }
19081
19121
  static getErrorProperties(e) {
19082
19122
  return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
19083
19123
  }
19084
19124
  };
19085
19125
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
19086
- var ur = class {
19126
+ var hr = class {
19087
19127
  constructor() {
19088
- this.storage = new ne("hms-device-selection");
19128
+ this.storage = new ce("hms-device-selection");
19089
19129
  this.remember = false;
19090
19130
  this.TAG = "[HMSDeviceStorage]";
19091
19131
  }
@@ -19117,10 +19157,10 @@ var ur = class {
19117
19157
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
19118
19158
  }
19119
19159
  };
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) {
19160
+ var q = new hr();
19161
+ var mr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(mr || {});
19162
+ var Sr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Sr || {});
19163
+ function Jt(a2, e = 300) {
19124
19164
  let t;
19125
19165
  return function(...i) {
19126
19166
  clearTimeout(t), t = void 0;
@@ -19130,10 +19170,10 @@ function jt(a2, e = 300) {
19130
19170
  }, e);
19131
19171
  };
19132
19172
  }
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 {
19173
+ 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 || {});
19174
+ var Ls = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ls || {});
19175
+ var Ds = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ds || {});
19176
+ var gr = class {
19137
19177
  constructor() {
19138
19178
  this.TAG = "[HMSIntersectionObserverWrapper]";
19139
19179
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -19156,12 +19196,12 @@ var mr = class {
19156
19196
  this.createObserver();
19157
19197
  }
19158
19198
  isSupported() {
19159
- let e = w && typeof window.IntersectionObserver != "undefined";
19199
+ let e = _ && typeof window.IntersectionObserver != "undefined";
19160
19200
  return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
19161
19201
  }
19162
19202
  };
19163
- var _s = new mr();
19164
- var Sr = class {
19203
+ var Os = new gr();
19204
+ var Tr = class {
19165
19205
  constructor() {
19166
19206
  this.TAG = "[HMSResizeObserverWrapper]";
19167
19207
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -19174,7 +19214,7 @@ var Sr = class {
19174
19214
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
19175
19215
  };
19176
19216
  this.createObserver = () => {
19177
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(jt(this.handleResize, 300)));
19217
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(Jt(this.handleResize, 300)));
19178
19218
  };
19179
19219
  this.handleResize = (e) => {
19180
19220
  var t;
@@ -19184,20 +19224,20 @@ var Sr = class {
19184
19224
  this.createObserver();
19185
19225
  }
19186
19226
  isSupported() {
19187
- let e = w && typeof window.ResizeObserver != "undefined";
19227
+ let e = _ && typeof window.ResizeObserver != "undefined";
19188
19228
  return e || d.w(this.TAG, "Resize Observer is not supported"), e;
19189
19229
  }
19190
19230
  };
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 {
19231
+ var xs = new Tr();
19232
+ var fr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(fr || {});
19233
+ var vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(vr || {});
19234
+ var Vs = "https://event.100ms.live/v2/client/report";
19235
+ var Fs = "https://event-nonprod.100ms.live/v2/client/report";
19236
+ var ht = Math.pow(2, 31) - 1;
19237
+ var ze = class {
19198
19238
  };
19199
- Qe.makePeerId = () => co();
19200
- var gt = "HMS-Store:";
19239
+ ze.makePeerId = () => uo();
19240
+ var Tt = "HMS-Store:";
19201
19241
  var k = class {
19202
19242
  static v(e, ...t) {
19203
19243
  this.log(0, e, ...t);
@@ -19227,23 +19267,23 @@ var k = class {
19227
19267
  if (!(this.level.valueOf() > e.valueOf()))
19228
19268
  switch (e) {
19229
19269
  case 0: {
19230
- console.log(gt, ...t);
19270
+ console.log(Tt, ...t);
19231
19271
  break;
19232
19272
  }
19233
19273
  case 1: {
19234
- console.debug(gt, ...t);
19274
+ console.debug(Tt, ...t);
19235
19275
  break;
19236
19276
  }
19237
19277
  case 2: {
19238
- console.info(gt, ...t);
19278
+ console.info(Tt, ...t);
19239
19279
  break;
19240
19280
  }
19241
19281
  case 3: {
19242
- console.warn(gt, ...t);
19282
+ console.warn(Tt, ...t);
19243
19283
  break;
19244
19284
  }
19245
19285
  case 6: {
19246
- console.error(gt, ...t);
19286
+ console.error(Tt, ...t);
19247
19287
  break;
19248
19288
  }
19249
19289
  case 4: {
@@ -19264,132 +19304,132 @@ var k = class {
19264
19304
  }
19265
19305
  };
19266
19306
  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) => {
19307
+ var Hr = (a2, e) => e;
19308
+ var ft = (a2, e) => e;
19309
+ var Js = (a2, e) => e;
19310
+ var ho = (a2, e) => e;
19311
+ var mo = (a2, e) => e;
19312
+ var J = createSelector([G, Hr], (a2, e) => e ? a2[e] : null);
19313
+ var Cr = createSelector([w, ft], (a2, e) => e ? a2[e] : null);
19314
+ var So = createSelector([w, ft], (a2, e) => {
19275
19315
  if (!e)
19276
19316
  return null;
19277
19317
  let t = a2[e];
19278
19318
  return (t == null ? void 0 : t.type) === "video" ? t : null;
19279
19319
  });
19280
- var mo = createSelector([D, Tt], (a2, e) => {
19320
+ var go = createSelector([w, ft], (a2, e) => {
19281
19321
  if (!e)
19282
19322
  return null;
19283
19323
  let t = a2[e];
19284
19324
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
19285
19325
  });
19286
- var So = createSelector([D, Tt], (a2, e) => {
19326
+ var To = createSelector([w, ft], (a2, e) => {
19287
19327
  if (!e)
19288
19328
  return null;
19289
19329
  let t = a2[e];
19290
19330
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
19291
19331
  });
19292
- var go = createSelector([D, Tt], (a2, e) => {
19332
+ var fo = createSelector([w, ft], (a2, e) => {
19293
19333
  if (!e)
19294
19334
  return null;
19295
19335
  let t = a2[e];
19296
19336
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
19297
19337
  });
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) => {
19338
+ var vo = createSelector([rs, mo], (a2, e) => e ? a2[e] : null);
19339
+ var Q = A(J);
19340
+ var om = A(createSelector([tr, ho], (a2, e) => {
19301
19341
  if (a2)
19302
19342
  return e ? a2[e] : a2;
19303
19343
  }));
19304
- function tm(a2) {
19344
+ function nm(a2) {
19305
19345
  return (e) => {
19306
19346
  if (e.sessionStore)
19307
19347
  return a2 ? e.sessionStore[a2] : e.sessionStore;
19308
19348
  };
19309
19349
  }
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) => {
19350
+ var dm = A(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
19351
+ var oi = A(Cr);
19352
+ var Qs = A(So);
19353
+ var lm = A(go);
19354
+ var um = A(To);
19355
+ var pm = A(fo);
19356
+ var Mo = A((a2, e) => {
19317
19357
  let t = J(a2, e);
19318
19358
  if (t && t.videoTrack && t.videoTrack !== "")
19319
19359
  return a2.tracks[t.videoTrack];
19320
19360
  });
19321
- var vo = b((a2, e) => {
19361
+ var yo = A((a2, e) => {
19322
19362
  let t = J(a2, e);
19323
19363
  if (t && t.audioTrack && t.audioTrack !== "")
19324
19364
  return a2.tracks[t.audioTrack];
19325
19365
  });
19326
- var cm = b((a2, e) => {
19366
+ var mm = A((a2, e) => {
19327
19367
  let t = J(a2, e);
19328
19368
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
19329
19369
  });
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) => {
19370
+ var zs = (a2, e) => e ? a2.speakers[e] : null;
19371
+ var Sm = A(createSelector(zs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19372
+ var ko = (a2, e) => {
19373
+ let t = yo(e)(a2);
19374
+ return zs(a2, t == null ? void 0 : t.id);
19375
+ };
19376
+ var gm = A(createSelector(ko, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19377
+ var Tm = A((a2, e) => {
19338
19378
  if (e)
19339
19379
  return a2.connectionQualities[e];
19340
19380
  });
19341
- var pm = b((a2, e) => {
19381
+ var fm = A((a2, e) => {
19342
19382
  let t = J(a2, e);
19343
19383
  if (t) {
19344
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
19384
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => it(a2.tracks[r]));
19345
19385
  return i ? a2.tracks[i] : void 0;
19346
19386
  }
19347
19387
  });
19348
- var hm = b(createSelector(D, J, (a2, e) => {
19388
+ var vm = A(createSelector(w, J, (a2, e) => {
19349
19389
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19350
19390
  let r = a2[i];
19351
- return rt(r) && it(r);
19391
+ return st(r) && rt(r);
19352
19392
  });
19353
19393
  return t ? a2[t] : void 0;
19354
19394
  }));
19355
- var mm = b(createSelector(D, J, (a2, e) => {
19395
+ var Mm = A(createSelector(w, J, (a2, e) => {
19356
19396
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19357
19397
  let r = a2[i];
19358
- return rt(r) && tt(r);
19398
+ return st(r) && it(r);
19359
19399
  });
19360
19400
  return t ? a2[t] : void 0;
19361
19401
  }));
19362
- var Sm = b(createSelector(D, J, (a2, e) => {
19402
+ var ym = A(createSelector(w, J, (a2, e) => {
19363
19403
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19364
19404
  let r = a2[i];
19365
- return Gt(r) && tt(r);
19405
+ return $t(r) && it(r);
19366
19406
  });
19367
19407
  return t ? a2[t] : void 0;
19368
19408
  }));
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) => {
19409
+ var Ys = A(createSelector(w, J, (a2, e) => He(a2, e)));
19410
+ var Xs = (a2) => createSelector(Ys(a2), (e) => e.audio);
19411
+ var Pm = A((a2, e) => {
19372
19412
  let t = J(a2, e);
19373
19413
  return Ue(a2, t == null ? void 0 : t.audioTrack);
19374
19414
  });
19375
- var fm = b((a2, e) => {
19415
+ var Em = A((a2, e) => {
19376
19416
  let t = J(a2, e);
19377
19417
  return Ue(a2, t == null ? void 0 : t.videoTrack);
19378
19418
  });
19379
- var Ys = b((a2, e) => {
19419
+ var Zs = A((a2, e) => {
19380
19420
  if (e && a2.tracks[e])
19381
19421
  return a2.tracks[e].volume === 0;
19382
19422
  });
19383
- var vm = b((a2, e) => {
19423
+ var bm = A((a2, e) => {
19384
19424
  let t = J(a2, e);
19385
- return Ys(t == null ? void 0 : t.audioTrack)(a2);
19425
+ return Zs(t == null ? void 0 : t.audioTrack)(a2);
19386
19426
  });
19387
- var Mm = b((a2, e) => {
19388
- let t = zs(e)(a2);
19389
- return Ys(t == null ? void 0 : t.id)(a2);
19427
+ var Am = A((a2, e) => {
19428
+ let t = Xs(e)(a2);
19429
+ return Zs(t == null ? void 0 : t.id)(a2);
19390
19430
  });
19391
- var Xs = b((a2, e) => {
19392
- let t = Ir(a2, e);
19431
+ var ea = A((a2, e) => {
19432
+ let t = Cr(a2, e);
19393
19433
  if (t) {
19394
19434
  if (t.type !== "audio") {
19395
19435
  k.w("Please pass audio track here");
@@ -19398,16 +19438,16 @@ var Xs = b((a2, e) => {
19398
19438
  return t.volume;
19399
19439
  }
19400
19440
  });
19401
- var ym = b((a2, e) => {
19441
+ var Im = A((a2, e) => {
19402
19442
  let t = J(a2, e);
19403
- return Xs(t == null ? void 0 : t.audioTrack)(a2);
19443
+ return ea(t == null ? void 0 : t.audioTrack)(a2);
19404
19444
  });
19405
- var km = b((a2, e) => {
19406
- let t = zs(e)(a2);
19407
- return Xs(t == null ? void 0 : t.id)(a2);
19445
+ var Rm = A((a2, e) => {
19446
+ let t = Xs(e)(a2);
19447
+ return ea(t == null ? void 0 : t.id)(a2);
19408
19448
  });
19409
- var Em = b((a2, e) => {
19410
- let t = Ir(a2, e);
19449
+ var Hm = A((a2, e) => {
19450
+ let t = Cr(a2, e);
19411
19451
  if (t) {
19412
19452
  if (t.type !== "video") {
19413
19453
  k.w("Please pass video track here");
@@ -19416,52 +19456,52 @@ var Em = b((a2, e) => {
19416
19456
  return t.layer;
19417
19457
  }
19418
19458
  });
19419
- var Zs = createSelector([at, ue, Rr], (a2, e, t) => {
19459
+ var ta = createSelector([ot, ue, Hr], (a2, e, t) => {
19420
19460
  if (t)
19421
19461
  return a2.filter((i) => {
19422
19462
  var r;
19423
19463
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
19424
19464
  });
19425
19465
  });
19426
- var ea = createSelector([at, qs], (a2, e) => {
19466
+ var ia = createSelector([ot, Js], (a2, e) => {
19427
19467
  if (e)
19428
19468
  return a2.filter((t) => {
19429
19469
  var i, r;
19430
19470
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
19431
19471
  });
19432
19472
  });
19433
- var yo = createSelector(at, (a2) => a2.filter((e) => {
19473
+ var Po = createSelector(ot, (a2) => a2.filter((e) => {
19434
19474
  var t;
19435
19475
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
19436
19476
  }));
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) => {
19477
+ var Eo = createSelector([ia, Js], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19478
+ var bo = createSelector([ta, Hr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19479
+ var Cm = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
19480
+ var Lm = A(ta);
19481
+ var Dm = A(ia);
19482
+ var wm = A(Eo);
19483
+ var _m = A(bo);
19484
+ var ra = A(vo);
19485
+ var Km = createSelector([G, w], (a2, e) => Object.values(a2).map((i) => {
19446
19486
  var r;
19447
19487
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
19448
19488
  }));
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) => {
19489
+ var Ao = (a2) => a2.roleChangeRequests[0] || null;
19490
+ 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);
19491
+ var jm = createSelector([Kt], (a2) => at(a2));
19492
+ var Jm = createSelector([ts], (a2) => at(a2));
19493
+ var Ro = createSelector([K, w], (a2, e) => {
19454
19494
  let t = null;
19455
19495
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
19456
19496
  });
19457
- var Ro = createSelector([Z, D], (a2, e) => {
19497
+ var Ho = createSelector([Z, w], (a2, e) => {
19458
19498
  let t = null;
19459
19499
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
19460
19500
  });
19461
- var wr = class {
19501
+ var Nr = class {
19462
19502
  constructor() {
19463
19503
  this.TAG = "[HTTPAnalyticsTransport]";
19464
- this.failedEvents = new ne("client-events");
19504
+ this.failedEvents = new ce("client-events");
19465
19505
  this.isConnected = true;
19466
19506
  this.env = null;
19467
19507
  this.websocketURL = "";
@@ -19477,7 +19517,7 @@ var wr = class {
19477
19517
  this.addEventToStorage(e);
19478
19518
  return;
19479
19519
  }
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;
19520
+ 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
19521
  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
19522
  if (r.status === 401) {
19483
19523
  this.removeFromStorage(e);
@@ -19503,66 +19543,66 @@ var wr = class {
19503
19543
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
19504
19544
  }
19505
19545
  };
19506
- var Te = new wr();
19546
+ var Te = new Nr();
19507
19547
  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) => {
19548
+ 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 || {});
19549
+ var Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
19550
+ var Qo = (a2) => a2.localPeer.id;
19551
+ var zo = (a2) => a2.localPeer.audioTrack;
19552
+ var Yo = (a2) => a2.localPeer.videoTrack;
19553
+ var Xo = (a2, e) => e;
19554
+ var Ma = (a2, e) => e;
19555
+ var Zo = (a2) => a2.remoteTrackStats;
19556
+ var ya = (a2) => a2.peerStats;
19557
+ var Vr = (a2) => a2.localTrackStats;
19558
+ var ve = createSelector([ya, Qo], (a2, e) => a2[e]);
19559
+ var en = createSelector(ve, (a2) => {
19520
19560
  var e;
19521
19561
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
19522
19562
  });
19523
- var Zo = createSelector(ve, (a2) => {
19563
+ var tn = createSelector(ve, (a2) => {
19524
19564
  var e;
19525
19565
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
19526
19566
  });
19527
- var en = createSelector(ve, (a2) => {
19567
+ var rn = createSelector(ve, (a2) => {
19528
19568
  var e;
19529
19569
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
19530
19570
  });
19531
- var tn = createSelector(ve, (a2) => {
19571
+ var sn = createSelector(ve, (a2) => {
19532
19572
  var e;
19533
19573
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
19534
19574
  });
19535
- var rn = createSelector(ve, (a2) => {
19575
+ var an = createSelector(ve, (a2) => {
19536
19576
  var e;
19537
19577
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
19538
19578
  });
19539
- var sn = createSelector(ve, (a2) => {
19579
+ var on = createSelector(ve, (a2) => {
19540
19580
  var e;
19541
19581
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
19542
19582
  });
19543
- var an = createSelector(ve, (a2) => {
19583
+ var nn = createSelector(ve, (a2) => {
19544
19584
  var e;
19545
19585
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
19546
19586
  });
19547
- var on = createSelector(ve, (a2) => {
19587
+ var cn = createSelector(ve, (a2) => {
19548
19588
  var e;
19549
19589
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
19550
19590
  });
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) => {
19591
+ var dn = createSelector([ya, Xo], (a2, e) => e ? a2[e] : void 0);
19592
+ var ln = createSelector([Zo, Ma], (a2, e) => e ? a2[e] : void 0);
19593
+ var Fr = createSelector([Vr, Ma], (a2, e) => e ? a2[e] : void 0);
19594
+ var un = A(dn);
19595
+ var pn = A(ln);
19596
+ var hn = createSelector([Vr, zo], (a2, e) => {
19557
19597
  var t;
19558
19598
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
19559
19599
  });
19560
- var pn = b(createSelector(Vr, (a2) => a2 == null ? void 0 : a2[0]));
19561
- var hn = createSelector([Ur, Qo], (a2, e) => {
19600
+ var mn = A(createSelector(Fr, (a2) => a2 == null ? void 0 : a2[0]));
19601
+ var Sn = createSelector([Vr, Yo], (a2, e) => {
19562
19602
  var t;
19563
19603
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
19564
19604
  });
19565
- var mn = b(createSelector(Vr, (a2) => a2));
19605
+ var gn = A(createSelector(Fr, (a2) => a2));
19566
19606
 
19567
19607
  // src/Prebuilt/components/Header/StreamActions.tsx
19568
19608
  import {
@@ -19832,7 +19872,7 @@ var RecordingStatus = () => {
19832
19872
  };
19833
19873
  var RecordingPauseStatus = () => {
19834
19874
  const recording = useHMSStore25(selectRecordingState);
19835
- if (recording.hls && recording.hls.state === Is.PAUSED) {
19875
+ if (recording.hls && recording.hls.state === Cs.PAUSED) {
19836
19876
  return /* @__PURE__ */ React54.createElement(
19837
19877
  Tooltip,
19838
19878
  {
@@ -21510,7 +21550,7 @@ var RoleAccordion = ({
21510
21550
  },
21511
21551
  /* @__PURE__ */ React73.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
21512
21552
  /* @__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)))));
21553
+ ) : 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
21554
  };
21515
21555
 
21516
21556
  // src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
@@ -22067,7 +22107,7 @@ import {
22067
22107
 
22068
22108
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
22069
22109
  init_define_process_env();
22070
- import React131, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect34, useMemo as useMemo11, useState as useState56 } from "react";
22110
+ import React131, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect34, useMemo as useMemo12, useState as useState56 } from "react";
22071
22111
  import { useMeasure as useMeasure4, useMedia as useMedia24 } from "react-use";
22072
22112
  import {
22073
22113
  HMSRoomState as HMSRoomState5,
@@ -22337,10 +22377,10 @@ var PrevMenu = () => {
22337
22377
  const sortedPolls = useMemo5(
22338
22378
  () => {
22339
22379
  var _a8;
22340
- return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
22380
+ return (_a8 = polls == null ? void 0 : polls.sort((a2, b) => {
22341
22381
  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));
22382
+ return (((_a9 = b.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
22383
+ })) == null ? void 0 : _a8.sort((a2, b) => (b.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
22344
22384
  },
22345
22385
  [polls]
22346
22386
  );
@@ -22380,7 +22420,7 @@ var InteractionCard = ({ id, title, status }) => {
22380
22420
 
22381
22421
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
22382
22422
  init_define_process_env();
22383
- import React91, { useMemo as useMemo6, useState as useState37 } from "react";
22423
+ import React91, { useMemo as useMemo7, useState as useState37 } from "react";
22384
22424
  import { v4 as uuid2 } from "uuid";
22385
22425
  import { selectPollByID, useHMSActions as useHMSActions28, useHMSStore as useHMSStore43, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
22386
22426
  import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
@@ -22476,7 +22516,8 @@ var OptionInputWithDelete = ({
22476
22516
  },
22477
22517
  value: (option == null ? void 0 : option.text) || "",
22478
22518
  key: index,
22479
- onChange: (event) => handleOptionTextChange(index, event.target.value.trimStart())
22519
+ onChange: (event) => handleOptionTextChange(index, event.target.value.trimStart()),
22520
+ maxLength: 250
22480
22521
  }
22481
22522
  ), /* @__PURE__ */ React84.createElement(IconButton_default, { onClick: () => removeOption(index), css: { bg: "transparent", border: "none" } }, /* @__PURE__ */ React84.createElement(TrashIcon2, null)));
22482
22523
  };
@@ -22529,7 +22570,7 @@ var MultipleChoiceOptions = ({
22529
22570
  };
22530
22571
  return /* @__PURE__ */ React87.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
22531
22572
  var _a8;
22532
- return /* @__PURE__ */ React87.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$9" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React87.createElement(
22573
+ return /* @__PURE__ */ React87.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React87.createElement(
22533
22574
  Checkbox.Root,
22534
22575
  {
22535
22576
  id: `${questionIndex}-${option.index}`,
@@ -22537,11 +22578,12 @@ var MultipleChoiceOptions = ({
22537
22578
  checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
22538
22579
  onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
22539
22580
  css: {
22540
- cursor: canRespond ? "pointer" : "not-allowed"
22581
+ cursor: canRespond ? "pointer" : "not-allowed",
22582
+ flexShrink: 0
22541
22583
  }
22542
22584
  },
22543
22585
  /* @__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);
22586
+ ) : 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
22587
  }));
22546
22588
  };
22547
22589
  var MultipleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionTextChange, removeOption }) => {
@@ -22586,7 +22628,7 @@ var SingleChoiceOptions = ({
22586
22628
  localPeerResponse
22587
22629
  }) => {
22588
22630
  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(
22631
+ return /* @__PURE__ */ React88.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React88.createElement(
22590
22632
  RadioGroup.Item,
22591
22633
  {
22592
22634
  css: {
@@ -22596,6 +22638,8 @@ var SingleChoiceOptions = ({
22596
22638
  border: "2px solid",
22597
22639
  borderColor: "$on_surface_high",
22598
22640
  display: "flex",
22641
+ flexShrink: 0,
22642
+ pt: "$1",
22599
22643
  justifyContent: "center",
22600
22644
  alignItems: "center",
22601
22645
  cursor: canRespond ? "pointer" : "not-allowed",
@@ -22882,7 +22926,7 @@ var isValidQuestion = ({
22882
22926
 
22883
22927
  // src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.tsx
22884
22928
  init_define_process_env();
22885
- import React90 from "react";
22929
+ import React90, { useMemo as useMemo6 } from "react";
22886
22930
  import { CheckCircleIcon as CheckCircleIcon3 } from "@100mslive/react-icons";
22887
22931
  var SavedQuestion = ({
22888
22932
  question,
@@ -22891,7 +22935,19 @@ var SavedQuestion = ({
22891
22935
  convertToDraft
22892
22936
  }) => {
22893
22937
  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")));
22938
+ const answerArray = useMemo6(() => {
22939
+ var _a9;
22940
+ const updatedAnswerArray = [];
22941
+ const { option, options } = (_a9 = question == null ? void 0 : question.answer) != null ? _a9 : {};
22942
+ if (option) {
22943
+ updatedAnswerArray.push(option);
22944
+ }
22945
+ if (options) {
22946
+ updatedAnswerArray.push(...options);
22947
+ }
22948
+ return updatedAnswerArray;
22949
+ }, [question == null ? void 0 : question.answer]);
22950
+ 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
22951
  };
22896
22952
 
22897
22953
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
@@ -22911,7 +22967,7 @@ function CreateQuestions() {
22911
22967
  const [questions, setQuestions] = useState37(
22912
22968
  ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
22913
22969
  );
22914
- const isValidPoll = useMemo6(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
22970
+ const isValidPoll = useMemo7(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
22915
22971
  const launchPoll = () => __async(this, null, function* () {
22916
22972
  yield actions.interactivityCenter.startPoll(id);
22917
22973
  yield sendTimedMetadata(id);
@@ -22954,8 +23010,11 @@ function CreateQuestions() {
22954
23010
  yield actions.interactivityCenter.addQuestionsToPoll(id, validQuestions);
22955
23011
  }),
22956
23012
  isQuiz,
22957
- removeQuestion: (questionID) => setQuestions((prev) => {
22958
- return prev.filter((questionFromSet) => questionID !== (questionFromSet == null ? void 0 : questionFromSet.draftID));
23013
+ removeQuestion: (questionID) => __async(this, null, function* () {
23014
+ const updatedQuestions = questions.filter((questionFromSet) => questionID !== (questionFromSet == null ? void 0 : questionFromSet.draftID));
23015
+ setQuestions(updatedQuestions);
23016
+ const validQuestions = updatedQuestions.filter((question2) => isValidQuestion(question2));
23017
+ yield actions.interactivityCenter.addQuestionsToPoll(id, validQuestions);
22959
23018
  }),
22960
23019
  convertToDraft: (questionID) => setQuestions((prev) => {
22961
23020
  const copyOfQuestions = [...prev];
@@ -23260,7 +23319,7 @@ import React97 from "react";
23260
23319
 
23261
23320
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
23262
23321
  init_define_process_env();
23263
- import React96, { useCallback as useCallback22, useMemo as useMemo7, useRef as useRef17, useState as useState40 } from "react";
23322
+ import React96, { useCallback as useCallback22, useMemo as useMemo8, useRef as useRef17, useState as useState40 } from "react";
23264
23323
  import { match as match7 } from "ts-pattern";
23265
23324
  import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions30, useHMSStore as useHMSStore47 } from "@100mslive/react-sdk";
23266
23325
  import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
@@ -23301,7 +23360,7 @@ var QuestionCard2 = ({
23301
23360
  const [multipleOptionAnswer, setMultipleOptionAnswer] = useState40(/* @__PURE__ */ new Set());
23302
23361
  const [showOptions, setShowOptions] = useState40(true);
23303
23362
  const respondedToQuiz = isQuiz && localPeerResponse && !localPeerResponse.skipped;
23304
- const isValidVote = useMemo7(() => {
23363
+ const isValidVote = useMemo8(() => {
23305
23364
  if (type === "single-choice" /* SINGLE_CHOICE */) {
23306
23365
  return singleOptionAnswer !== void 0;
23307
23366
  } else if (type === "multiple-choice" /* MULTIPLE_CHOICE */) {
@@ -23722,7 +23781,7 @@ import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
23722
23781
 
23723
23782
  // src/Prebuilt/components/Chat/ChatBody.tsx
23724
23783
  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";
23784
+ import React108, { Fragment as Fragment10, useCallback as useCallback26, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo9, useRef as useRef18, useState as useState46 } from "react";
23726
23785
  import { useMedia as useMedia13 } from "react-use";
23727
23786
  import AutoSizer from "react-virtualized-auto-sizer";
23728
23787
  import { VariableSizeList } from "react-window";
@@ -23823,7 +23882,7 @@ var usePinnedMessages = () => {
23823
23882
  if (pinnedMessages[indexToRemove]) {
23824
23883
  yield hmsActions.sessionStore.set(
23825
23884
  "pinnedMessages" /* PINNED_MESSAGES */,
23826
- pinnedMessages.filter((_, index) => index !== indexToRemove)
23885
+ pinnedMessages.filter((_2, index) => index !== indexToRemove)
23827
23886
  ).catch((err) => ToastManager.addToast({ title: err.description }));
23828
23887
  }
23829
23888
  }),
@@ -24448,7 +24507,7 @@ var ChatBody = React108.forwardRef(
24448
24507
  ({ scrollToBottom }, listRef) => {
24449
24508
  const messages = useHMSStore54(selectHMSMessages);
24450
24509
  const blacklistedMessageIDs = useHMSStore54(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
24451
- const filteredMessages = useMemo8(() => {
24510
+ const filteredMessages = useMemo9(() => {
24452
24511
  const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
24453
24512
  return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
24454
24513
  }, [blacklistedMessageIDs, messages]);
@@ -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 })];
@@ -25181,7 +25240,7 @@ var StickIndicator = ({ total, index }) => {
25181
25240
  if (total < 2) {
25182
25241
  return null;
25183
25242
  }
25184
- return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_, i) => /* @__PURE__ */ React114.createElement(
25243
+ return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_2, i) => /* @__PURE__ */ React114.createElement(
25185
25244
  Box,
25186
25245
  {
25187
25246
  css: {
@@ -25316,7 +25375,7 @@ var Chat = () => {
25316
25375
  const listRef = useRef21(null);
25317
25376
  const hmsActions = useHMSActions39();
25318
25377
  const vanillaStore = useHMSVanillaStore10();
25319
- const { enabled: isChatEnabled = true } = useHMSStore60(tm("chatState" /* CHAT_STATE */)) || {};
25378
+ const { enabled: isChatEnabled = true } = useHMSStore60(nm("chatState" /* CHAT_STATE */)) || {};
25320
25379
  const isMobile = useMedia18(config.media.md);
25321
25380
  const isMobileHLSStream = useMobileHLSStream();
25322
25381
  const isLandscapeStream = useLandscapeHLSStream();
@@ -25400,7 +25459,7 @@ var NewMessageIndicator = ({
25400
25459
  scrollToBottom,
25401
25460
  listRef
25402
25461
  }) => {
25403
- const unreadCount = useHMSStore60($n);
25462
+ const unreadCount = useHMSStore60(Kn);
25404
25463
  if (!unreadCount || !listRef.current) {
25405
25464
  return null;
25406
25465
  }
@@ -25723,7 +25782,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25723
25782
 
25724
25783
  // src/Prebuilt/components/VideoTile.tsx
25725
25784
  init_define_process_env();
25726
- import React123, { useCallback as useCallback31, useMemo as useMemo10, useState as useState54 } from "react";
25785
+ import React123, { useCallback as useCallback31, useMemo as useMemo11, useState as useState54 } from "react";
25727
25786
  import { useMeasure as useMeasure3 } from "react-use";
25728
25787
  import {
25729
25788
  selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
@@ -26214,7 +26273,7 @@ var Tile = ({
26214
26273
  }, []);
26215
26274
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure3();
26216
26275
  const isTileBigEnoughToShowStats = calculatedHeight >= 180 && calculatedWidth >= 180;
26217
- const [avatarSize, attribBoxSize] = useMemo10(
26276
+ const [avatarSize, attribBoxSize] = useMemo11(
26218
26277
  () => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
26219
26278
  [calculatedWidth, calculatedHeight]
26220
26279
  );
@@ -26480,7 +26539,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26480
26539
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
26481
26540
  const hmsActions = useHMSActions42();
26482
26541
  const localPeer = useHMSStore68(selectLocalPeer6);
26483
- const role = useHMSStore68(Wt);
26542
+ const role = useHMSStore68(Kt);
26484
26543
  const isVideoOn = useHMSStore68(selectIsLocalVideoEnabled5);
26485
26544
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26486
26545
  const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -26488,10 +26547,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26488
26547
  const [blurAmount, setBlurAmount] = useState55(VBHandler.getBlurAmount() || 0.5);
26489
26548
  const roomState = useHMSStore68(selectRoomState4);
26490
26549
  const isLargeRoom = useHMSStore68(selectIsLargeRoom3);
26491
- const isEffectsEnabled = useHMSStore68(ec);
26492
- const effectsKey = useHMSStore68(tc);
26550
+ const isEffectsEnabled = useHMSStore68(ic);
26551
+ const effectsKey = useHMSStore68(rc);
26493
26552
  const isPluginAdded = useHMSStore68(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
26494
- const background = useHMSStore68(em(APP_DATA.background));
26553
+ const background = useHMSStore68(om(APP_DATA.background));
26495
26554
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
26496
26555
  const inPreview = roomState === HMSRoomState4.Preview;
26497
26556
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -26947,7 +27006,7 @@ var PreviewJoin = ({
26947
27006
  speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
26948
27007
  },
26949
27008
  captureNetworkQualityInPreview: true,
26950
- handleError: (_, method) => {
27009
+ handleError: (_2, method) => {
26951
27010
  if (method === "preview") {
26952
27011
  setPreviewError(true);
26953
27012
  }
@@ -27029,7 +27088,7 @@ var PreviewTile = ({ name, error }) => {
27029
27088
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
27030
27089
  const aspectRatio = useLocalTileAspectRatio();
27031
27090
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure4();
27032
- const [avatarSize, attribBoxSize] = useMemo11(
27091
+ const [avatarSize, attribBoxSize] = useMemo12(
27033
27092
  () => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
27034
27093
  [calculatedWidth, calculatedHeight]
27035
27094
  );
@@ -27199,7 +27258,7 @@ import {
27199
27258
 
27200
27259
  // src/Prebuilt/components/VideoLayouts/GridLayout.tsx
27201
27260
  init_define_process_env();
27202
- import React146, { useEffect as useEffect43, useMemo as useMemo16, useState as useState64 } from "react";
27261
+ import React146, { useEffect as useEffect43, useMemo as useMemo17, useState as useState64 } from "react";
27203
27262
  import {
27204
27263
  selectLocalPeerID as selectLocalPeerID14,
27205
27264
  selectLocalPeerRoleName as selectLocalPeerRoleName5,
@@ -27211,7 +27270,7 @@ import {
27211
27270
 
27212
27271
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
27213
27272
  init_define_process_env();
27214
- import React138, { useEffect as useEffect39, useMemo as useMemo13, useState as useState58 } from "react";
27273
+ import React138, { useEffect as useEffect39, useMemo as useMemo14, useState as useState58 } from "react";
27215
27274
  import { useMedia as useMedia28 } from "react-use";
27216
27275
  import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore73 } from "@100mslive/react-sdk";
27217
27276
 
@@ -27367,7 +27426,7 @@ var Pagination = ({
27367
27426
  if (numPages <= 1) {
27368
27427
  return null;
27369
27428
  }
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(
27429
+ 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
27430
  StyledPagination.Dot,
27372
27431
  {
27373
27432
  key: i,
@@ -27423,7 +27482,7 @@ var Grid = React137.forwardRef(
27423
27482
 
27424
27483
  // src/Prebuilt/components/hooks/useTileLayout.tsx
27425
27484
  init_define_process_env();
27426
- import { useEffect as useEffect38, useMemo as useMemo12, useState as useState57 } from "react";
27485
+ import { useEffect as useEffect38, useMemo as useMemo13, useState as useState57 } from "react";
27427
27486
  import { useMeasure as useMeasure5, useMedia as useMedia27 } from "react-use";
27428
27487
  import {
27429
27488
  getPeersWithTiles,
@@ -27434,12 +27493,12 @@ var aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4
27434
27493
  var usePagesWithTiles = ({ peers, maxTileCount }) => {
27435
27494
  const vanillaStore = useHMSVanillaStore11();
27436
27495
  const tracksMap = vanillaStore.getState(selectTracksMap4);
27437
- const peersWithTiles = useMemo12(
27496
+ const peersWithTiles = useMemo13(
27438
27497
  () => getPeersWithTiles(peers, tracksMap, () => false),
27439
27498
  [peers, tracksMap]
27440
27499
  );
27441
27500
  const noOfPages = Math.ceil(peersWithTiles.length / maxTileCount);
27442
- const pagesList = useMemo12(() => {
27501
+ const pagesList = useMemo13(() => {
27443
27502
  let sliceStart = 0;
27444
27503
  let remaining = peersWithTiles.length;
27445
27504
  const list = [];
@@ -27474,7 +27533,7 @@ var useTileLayout = ({
27474
27533
  }
27475
27534
  const maxRows = Math.ceil(noOfTilesInPage / maxCols);
27476
27535
  let index = 0;
27477
- const matrix = new Array(maxRows).fill(null).map((_, i) => {
27536
+ const matrix = new Array(maxRows).fill(null).map((_2, i) => {
27478
27537
  const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
27479
27538
  const rowElements = [];
27480
27539
  for (let j = 0; j < numCols; j++) {
@@ -27537,7 +27596,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
27537
27596
  peers,
27538
27597
  maxTileCount
27539
27598
  });
27540
- const inputPeers = useMemo13(() => {
27599
+ const inputPeers = useMemo14(() => {
27541
27600
  if (pageList.length === 0) {
27542
27601
  return localPeer ? [localPeer] : [];
27543
27602
  }
@@ -27722,10 +27781,10 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
27722
27781
 
27723
27782
  // src/Prebuilt/components/hooks/useRoleProminencePeers.tsx
27724
27783
  init_define_process_env();
27725
- import { useMemo as useMemo14 } from "react";
27784
+ import { useMemo as useMemo15 } from "react";
27726
27785
  var useRoleProminencePeers = (prominentRoles, peers, isInsetEnabled) => {
27727
27786
  const pinnedTrack = usePinnedTrack();
27728
- const [prominentPeers, secondaryPeers] = useMemo14(() => {
27787
+ const [prominentPeers, secondaryPeers] = useMemo15(() => {
27729
27788
  return peers.reduce(
27730
27789
  (acc, peer) => {
27731
27790
  if (pinnedTrack) {
@@ -27809,7 +27868,7 @@ function RoleProminence({
27809
27868
 
27810
27869
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
27811
27870
  init_define_process_env();
27812
- import React145, { useEffect as useEffect42, useMemo as useMemo15, useState as useState63 } from "react";
27871
+ import React145, { useEffect as useEffect42, useMemo as useMemo16, useState as useState63 } from "react";
27813
27872
  import { useMedia as useMedia32 } from "react-use";
27814
27873
  import { selectPeersScreenSharing, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
27815
27874
 
@@ -28071,7 +28130,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
28071
28130
  const activeSharePeer = peersSharing[page];
28072
28131
  const isMobile = useMedia32(config.media.md);
28073
28132
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
28074
- const secondaryPeers = useMemo15(() => {
28133
+ const secondaryPeers = useMemo16(() => {
28075
28134
  if (layoutMode === LayoutMode.SPOTLIGHT) {
28076
28135
  return [];
28077
28136
  }
@@ -28123,7 +28182,7 @@ var PeersSorter = class {
28123
28182
  this.speaker = void 0;
28124
28183
  this.tilesPerPage = tilesPerPage;
28125
28184
  const peerIds = new Set(peers.map((peer) => peer.id));
28126
- this.peers.forEach((_, key) => {
28185
+ this.peers.forEach((_2, key) => {
28127
28186
  if (!peerIds.has(key)) {
28128
28187
  this.peers.delete(key);
28129
28188
  }
@@ -28228,7 +28287,7 @@ var GridLayout = ({
28228
28287
  const isRoleProminence = prominentRoles.length && peers.some(
28229
28288
  (peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
28230
28289
  ) || pinnedTrack;
28231
- const updatedPeers = useMemo16(() => {
28290
+ const updatedPeers = useMemo17(() => {
28232
28291
  if (activeScreensharePeerId) {
28233
28292
  return peers.filter((peer) => peer.id !== activeScreensharePeerId);
28234
28293
  }
@@ -28244,7 +28303,7 @@ var GridLayout = ({
28244
28303
  }, [isInsetEnabled, activeScreensharePeerId, localPeerRole, localPeerID, prominentRoles, peers, pinnedTrack]);
28245
28304
  const vanillaStore = useHMSVanillaStore12();
28246
28305
  const [sortedPeers, setSortedPeers] = useState64(updatedPeers);
28247
- const peersSorter = useMemo16(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
28306
+ const peersSorter = useMemo17(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
28248
28307
  const [pageSize, setPageSize] = useState64(0);
28249
28308
  const [mainPage, setMainPage] = useState64(0);
28250
28309
  const tileLayout = {
@@ -28302,7 +28361,7 @@ var GridLayout = ({
28302
28361
 
28303
28362
  // src/Prebuilt/layouts/EmbedView.jsx
28304
28363
  init_define_process_env();
28305
- import React147, { useEffect as useEffect44, useMemo as useMemo17 } from "react";
28364
+ import React147, { useEffect as useEffect44, useMemo as useMemo18 } from "react";
28306
28365
  import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as useHMSStore79 } from "@100mslive/react-sdk";
28307
28366
  var EmbedView = () => {
28308
28367
  return /* @__PURE__ */ React147.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React147.createElement(EmbedComponent, null));
@@ -28311,7 +28370,7 @@ var EmbedScreenShareView = ({ children }) => {
28311
28370
  const peers = useHMSStore79(selectPeers4);
28312
28371
  const peerPresenting = useHMSStore79(selectPeerScreenSharing2);
28313
28372
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28314
- const smallTilePeers = useMemo17(() => {
28373
+ const smallTilePeers = useMemo18(() => {
28315
28374
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
28316
28375
  return smallTilePeers2;
28317
28376
  }, [peers, peerPresenting]);
@@ -28480,7 +28539,7 @@ var WaitingView = React149.memo(() => {
28480
28539
 
28481
28540
  // src/Prebuilt/layouts/WhiteboardView.tsx
28482
28541
  init_define_process_env();
28483
- import React150, { useEffect as useEffect46, useMemo as useMemo18 } from "react";
28542
+ import React150, { useEffect as useEffect46, useMemo as useMemo19 } from "react";
28484
28543
  import { useMedia as useMedia33 } from "react-use";
28485
28544
  import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as useHMSStore80, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
28486
28545
  var EmbedComponent2 = () => {
@@ -28520,7 +28579,7 @@ var WhiteboardView = () => {
28520
28579
  const peers = useHMSStore80(selectPeers5);
28521
28580
  const whiteboard = useHMSStore80(selectWhiteboard);
28522
28581
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28523
- const smallTilePeers = useMemo18(() => {
28582
+ const smallTilePeers = useMemo19(() => {
28524
28583
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (whiteboard == null ? void 0 : whiteboard.owner));
28525
28584
  return smallTilePeers2;
28526
28585
  }, [peers, whiteboard == null ? void 0 : whiteboard.owner]);
@@ -28555,7 +28614,7 @@ var useCloseScreenshareWhiteboard = () => {
28555
28614
  };
28556
28615
 
28557
28616
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
28558
- var HLSView = React151.lazy(() => import("./HLSView-IN3HFCHT.js"));
28617
+ var HLSView = React151.lazy(() => import("./HLSView-NVF25XHT.js"));
28559
28618
  var VideoStreamingSection = ({
28560
28619
  screenType,
28561
28620
  elements,
@@ -29555,7 +29614,7 @@ import {
29555
29614
  PeopleRemoveIcon as PeopleRemoveIcon4,
29556
29615
  PoorConnectivityIcon as PoorConnectivityIcon2
29557
29616
  } from "@100mslive/react-icons";
29558
- var ChatAction = React163.forwardRef((_, ref) => {
29617
+ var ChatAction = React163.forwardRef((_2, ref) => {
29559
29618
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
29560
29619
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
29561
29620
  if (isChatOpen) {
@@ -30170,7 +30229,7 @@ function Notifications() {
30170
30229
  }, []);
30171
30230
  useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
30172
30231
  useEffect65(() => {
30173
- var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p;
30232
+ var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p;
30174
30233
  if (!notification || isNotificationDisabled) {
30175
30234
  return;
30176
30235
  }
@@ -30211,7 +30270,7 @@ function Notifications() {
30211
30270
  });
30212
30271
  break;
30213
30272
  case HMSNotificationTypes10.ROLE_UPDATED: {
30214
- if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
30273
+ if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
30215
30274
  ToastManager.addToast({
30216
30275
  title: `You are now a ${notification.data.roleName}`
30217
30276
  });
@@ -30397,7 +30456,7 @@ var Sheet2 = () => {
30397
30456
 
30398
30457
  // src/Prebuilt/plugins/FlyingEmoji.jsx
30399
30458
  init_define_process_env();
30400
- import React175, { useCallback as useCallback36, useEffect as useEffect67, useMemo as useMemo19, useState as useState73 } from "react";
30459
+ import React175, { useCallback as useCallback36, useEffect as useEffect67, useMemo as useMemo20, useState as useState73 } from "react";
30401
30460
  import { useMedia as useMedia38 } from "react-use";
30402
30461
  import {
30403
30462
  selectLocalPeerID as selectLocalPeerID17,
@@ -30434,7 +30493,7 @@ function FlyingEmoji() {
30434
30493
  const vanillaStore = useHMSVanillaStore17();
30435
30494
  const [emojis, setEmojis] = useState73([]);
30436
30495
  const isMobile = useMedia38(config.media.md);
30437
- const startingPoints = useMemo19(() => getStartingPoints(isMobile), [isMobile]);
30496
+ const startingPoints = useMemo20(() => getStartingPoints(isMobile), [isMobile]);
30438
30497
  const showFlyingEmoji = useCallback36(
30439
30498
  ({ emojiId, senderId }) => {
30440
30499
  if (!emojiId || !senderId || document.hidden) {
@@ -30927,4 +30986,4 @@ lodash/lodash.js:
30927
30986
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
30928
30987
  *)
30929
30988
  */
30930
- //# sourceMappingURL=chunk-ORCLDJ5D.js.map
30989
+ //# sourceMappingURL=chunk-2V7F62FX.js.map