@100mslive/roomkit-react 0.2.8-alpha.0 → 0.2.8-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
108
108
  var define_process_env_default;
109
109
  var init_define_process_env = __esm({
110
110
  "<define:process.env>"() {
111
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_24dcdf95-58ce-42bd-8106-372091da51d6", 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.21 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.9.8-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_24dcdf95-58ce-42bd-8106-372091da51d6", 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.12.8-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: "595", 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.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240218.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.0/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:19317", 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.2.8-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: "8049573559", 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_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: "9eade912c3121837ed2b09ef0047bfbdb6f7cdf2", 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: "cfef66f67f9c72976bccd67b4c9311aaa942f13d441174c054c9117d513a40fe", 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--1708953751238-0.271551730031129:/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--1708953751042-0.034731111596302044:/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--1708953728172-0.622987475170591:/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--1708953727993-0.5386297543083511:/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_42149012-d290-4591-bd14-5a80e5f45413", INVOCATION_ID: "b278f1c25e2444e6a3c875a6df492d26", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", 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: "449", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", 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 496", 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.9.8-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.8-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: "9eade912c3121837ed2b09ef0047bfbdb6f7cdf2", 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: "KaustubhKumar05", 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_24dcdf95-58ce-42bd-8106-372091da51d6", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", 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_24dcdf95-58ce-42bd-8106-372091da51d6", 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_24dcdf95-58ce-42bd-8106-372091da51d6" };
111
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_64ac3c86-40ab-403e-a017-c093022d1c76", 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.21 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.9.8-alpha.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_64ac3c86-40ab-403e-a017-c093022d1c76", 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.12.8-alpha.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.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240218.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.0/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:19747", 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.2.8-alpha.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: "8062926487", 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_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: "ae7569036b49c02d22414e5de343119c48b4aa91", 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: "44d2be283b30c251d7dc48c091d54f17d411a2dda6d785c30b12ad136dd5d665", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1709028414028-0.350708274654735:/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--1709028413823-0.9448069636011944:/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--1709028390890-0.9859671975610973:/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--1709028390704-0.5515660108396596:/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_2aa6a4dd-5a3c-4a91-bbba-30a25166da92", INVOCATION_ID: "e9a624d34aff4ec080a253260e936bfd", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", 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: "451", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", 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 117", 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.9.8-alpha.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.8-alpha.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: "ae7569036b49c02d22414e5de343119c48b4aa91", 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: "KaustubhKumar05", 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_64ac3c86-40ab-403e-a017-c093022d1c76", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", 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_64ac3c86-40ab-403e-a017-c093022d1c76", 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_64ac3c86-40ab-403e-a017-c093022d1c76" };
112
112
  }
113
113
  });
114
114
 
@@ -11209,11 +11209,12 @@ var init_AudioVideoToggle = __esm({
11209
11209
  {
11210
11210
  key: option.label,
11211
11211
  css: {
11212
- backgroundColor: selectedDeviceId === option.deviceId ? "$surface_bright" : "$surface_dim",
11212
+ backgroundColor: "$surface_dim",
11213
11213
  p: "$4 $8",
11214
11214
  h: "$15",
11215
11215
  fontSize: "$xs",
11216
- justifyContent: "space-between"
11216
+ justifyContent: "space-between",
11217
+ color: selectedDeviceId === option.deviceId ? "$primary_bright" : ""
11217
11218
  },
11218
11219
  onClick: () => {
11219
11220
  onClick(option.deviceId);
@@ -16319,20 +16320,20 @@ function shimOnTrack(window2) {
16319
16320
  }
16320
16321
  function shimGetSendersWithDtmf(window2) {
16321
16322
  if (typeof window2 === "object" && window2.RTCPeerConnection && !("getSenders" in window2.RTCPeerConnection.prototype) && "createDTMFSender" in window2.RTCPeerConnection.prototype) {
16322
- const shimSenderWithDtmf = function(pc2, track) {
16323
+ const shimSenderWithDtmf = function(pc, track) {
16323
16324
  return {
16324
16325
  track,
16325
16326
  get dtmf() {
16326
16327
  if (this._dtmf === void 0) {
16327
16328
  if (track.kind === "audio") {
16328
- this._dtmf = pc2.createDTMFSender(track);
16329
+ this._dtmf = pc.createDTMFSender(track);
16329
16330
  } else {
16330
16331
  this._dtmf = null;
16331
16332
  }
16332
16333
  }
16333
16334
  return this._dtmf;
16334
16335
  },
16335
- _pc: pc2
16336
+ _pc: pc
16336
16337
  };
16337
16338
  };
16338
16339
  if (!window2.RTCPeerConnection.prototype.getSenders) {
@@ -16687,11 +16688,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
16687
16688
  }
16688
16689
  return this.getSenders().find((s) => s.track === track);
16689
16690
  };
16690
- function replaceInternalStreamId(pc2, description) {
16691
+ function replaceInternalStreamId(pc, description) {
16691
16692
  let sdp2 = description.sdp;
16692
- Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
16693
- const externalStream = pc2._reverseStreams[internalId];
16694
- const internalStream = pc2._streams[externalStream.id];
16693
+ Object.keys(pc._reverseStreams || []).forEach((internalId) => {
16694
+ const externalStream = pc._reverseStreams[internalId];
16695
+ const internalStream = pc._streams[externalStream.id];
16695
16696
  sdp2 = sdp2.replace(
16696
16697
  new RegExp(internalStream.id, "g"),
16697
16698
  externalStream.id
@@ -16702,11 +16703,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
16702
16703
  sdp: sdp2
16703
16704
  });
16704
16705
  }
16705
- function replaceExternalStreamId(pc2, description) {
16706
+ function replaceExternalStreamId(pc, description) {
16706
16707
  let sdp2 = description.sdp;
16707
- Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
16708
- const externalStream = pc2._reverseStreams[internalId];
16709
- const internalStream = pc2._streams[externalStream.id];
16708
+ Object.keys(pc._reverseStreams || []).forEach((internalId) => {
16709
+ const externalStream = pc._reverseStreams[internalId];
16710
+ const internalStream = pc._streams[externalStream.id];
16710
16711
  sdp2 = sdp2.replace(
16711
16712
  new RegExp(externalStream.id, "g"),
16712
16713
  internalStream.id
@@ -16820,9 +16821,9 @@ function shimPeerConnection(window2, browserDetails) {
16820
16821
  }
16821
16822
  function fixNegotiationNeeded(window2, browserDetails) {
16822
16823
  wrapPeerConnectionEvent(window2, "negotiationneeded", (e) => {
16823
- const pc2 = e.target;
16824
- if (browserDetails.version < 72 || pc2.getConfiguration && pc2.getConfiguration().sdpSemantics === "plan-b") {
16825
- if (pc2.signalingState !== "stable") {
16824
+ const pc = e.target;
16825
+ if (browserDetails.version < 72 || pc.getConfiguration && pc.getConfiguration().sdpSemantics === "plan-b") {
16826
+ if (pc.signalingState !== "stable") {
16826
16827
  return;
16827
16828
  }
16828
16829
  }
@@ -17294,24 +17295,24 @@ function shimRemoteStreamsAPI(window2) {
17294
17295
  });
17295
17296
  const origSetRemoteDescription = window2.RTCPeerConnection.prototype.setRemoteDescription;
17296
17297
  window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
17297
- const pc2 = this;
17298
+ const pc = this;
17298
17299
  if (!this._onaddstreampoly) {
17299
17300
  this.addEventListener("track", this._onaddstreampoly = function(e) {
17300
17301
  e.streams.forEach((stream) => {
17301
- if (!pc2._remoteStreams) {
17302
- pc2._remoteStreams = [];
17302
+ if (!pc._remoteStreams) {
17303
+ pc._remoteStreams = [];
17303
17304
  }
17304
- if (pc2._remoteStreams.indexOf(stream) >= 0) {
17305
+ if (pc._remoteStreams.indexOf(stream) >= 0) {
17305
17306
  return;
17306
17307
  }
17307
- pc2._remoteStreams.push(stream);
17308
+ pc._remoteStreams.push(stream);
17308
17309
  const event = new Event("addstream");
17309
17310
  event.stream = stream;
17310
- pc2.dispatchEvent(event);
17311
+ pc.dispatchEvent(event);
17311
17312
  });
17312
17313
  });
17313
17314
  }
17314
- return origSetRemoteDescription.apply(pc2, arguments);
17315
+ return origSetRemoteDescription.apply(pc, arguments);
17315
17316
  };
17316
17317
  }
17317
17318
  }
@@ -17625,12 +17626,12 @@ var require_sdp = __commonJS({
17625
17626
  return parsed;
17626
17627
  };
17627
17628
  SDPUtils2.writeRtpMap = function(codec) {
17628
- let pt = codec.payloadType;
17629
+ let pt2 = codec.payloadType;
17629
17630
  if (codec.preferredPayloadType !== void 0) {
17630
- pt = codec.preferredPayloadType;
17631
+ pt2 = codec.preferredPayloadType;
17631
17632
  }
17632
17633
  const channels = codec.channels || codec.numChannels || 1;
17633
- return "a=rtpmap:" + pt + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
17634
+ return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
17634
17635
  };
17635
17636
  SDPUtils2.parseExtmap = function(line) {
17636
17637
  const parts = line.substring(9).split(" ");
@@ -17656,9 +17657,9 @@ var require_sdp = __commonJS({
17656
17657
  };
17657
17658
  SDPUtils2.writeFmtp = function(codec) {
17658
17659
  let line = "";
17659
- let pt = codec.payloadType;
17660
+ let pt2 = codec.payloadType;
17660
17661
  if (codec.preferredPayloadType !== void 0) {
17661
- pt = codec.preferredPayloadType;
17662
+ pt2 = codec.preferredPayloadType;
17662
17663
  }
17663
17664
  if (codec.parameters && Object.keys(codec.parameters).length) {
17664
17665
  const params = [];
@@ -17669,7 +17670,7 @@ var require_sdp = __commonJS({
17669
17670
  params.push(param);
17670
17671
  }
17671
17672
  });
17672
- line += "a=fmtp:" + pt + " " + params.join(";") + "\r\n";
17673
+ line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
17673
17674
  }
17674
17675
  return line;
17675
17676
  };
@@ -17682,13 +17683,13 @@ var require_sdp = __commonJS({
17682
17683
  };
17683
17684
  SDPUtils2.writeRtcpFb = function(codec) {
17684
17685
  let lines = "";
17685
- let pt = codec.payloadType;
17686
+ let pt2 = codec.payloadType;
17686
17687
  if (codec.preferredPayloadType !== void 0) {
17687
- pt = codec.preferredPayloadType;
17688
+ pt2 = codec.preferredPayloadType;
17688
17689
  }
17689
17690
  if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
17690
17691
  codec.rtcpFeedback.forEach((fb) => {
17691
- lines += "a=rtcp-fb:" + pt + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
17692
+ lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
17692
17693
  });
17693
17694
  }
17694
17695
  return lines;
@@ -17816,21 +17817,21 @@ var require_sdp = __commonJS({
17816
17817
  const mline = lines[0].split(" ");
17817
17818
  description.profile = mline[2];
17818
17819
  for (let i = 3; i < mline.length; i++) {
17819
- const pt = mline[i];
17820
+ const pt2 = mline[i];
17820
17821
  const rtpmapline = SDPUtils2.matchPrefix(
17821
17822
  mediaSection,
17822
- "a=rtpmap:" + pt + " "
17823
+ "a=rtpmap:" + pt2 + " "
17823
17824
  )[0];
17824
17825
  if (rtpmapline) {
17825
17826
  const codec = SDPUtils2.parseRtpMap(rtpmapline);
17826
17827
  const fmtps = SDPUtils2.matchPrefix(
17827
17828
  mediaSection,
17828
- "a=fmtp:" + pt + " "
17829
+ "a=fmtp:" + pt2 + " "
17829
17830
  );
17830
17831
  codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
17831
17832
  codec.rtcpFeedback = SDPUtils2.matchPrefix(
17832
17833
  mediaSection,
17833
- "a=rtcp-fb:" + pt + " "
17834
+ "a=rtcp-fb:" + pt2 + " "
17834
17835
  ).map(SDPUtils2.parseRtcpFb);
17835
17836
  description.codecs.push(codec);
17836
17837
  switch (codec.name.toUpperCase()) {
@@ -18295,13 +18296,13 @@ function shimSendThrowTypeError(window2) {
18295
18296
  if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
18296
18297
  return;
18297
18298
  }
18298
- function wrapDcSend(dc, pc2) {
18299
+ function wrapDcSend(dc, pc) {
18299
18300
  const origDataChannelSend = dc.send;
18300
18301
  dc.send = function send() {
18301
18302
  const data3 = arguments[0];
18302
18303
  const length = data3.length || data3.size || data3.byteLength;
18303
- if (dc.readyState === "open" && pc2.sctp && length > pc2.sctp.maxMessageSize) {
18304
- throw new TypeError("Message too large (can send a maximum of " + pc2.sctp.maxMessageSize + " bytes)");
18304
+ if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
18305
+ throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
18305
18306
  }
18306
18307
  return origDataChannelSend.apply(dc, arguments);
18307
18308
  };
@@ -18359,11 +18360,11 @@ function shimConnectionState(window2) {
18359
18360
  proto[method] = function() {
18360
18361
  if (!this._connectionstatechangepoly) {
18361
18362
  this._connectionstatechangepoly = (e) => {
18362
- const pc2 = e.target;
18363
- if (pc2._lastConnectionState !== pc2.connectionState) {
18364
- pc2._lastConnectionState = pc2.connectionState;
18363
+ const pc = e.target;
18364
+ if (pc._lastConnectionState !== pc.connectionState) {
18365
+ pc._lastConnectionState = pc.connectionState;
18365
18366
  const newEvent = new Event("connectionstatechange", e);
18366
- pc2.dispatchEvent(newEvent);
18367
+ pc.dispatchEvent(newEvent);
18367
18368
  }
18368
18369
  return e;
18369
18370
  };
@@ -19300,7 +19301,7 @@ function He(a2, e) {
19300
19301
  if (e)
19301
19302
  for (let r of e.auxiliaryTracks) {
19302
19303
  let s = a2[r];
19303
- ba(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
19304
+ Aa(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
19304
19305
  }
19305
19306
  return { video: t, audio: i };
19306
19307
  }
@@ -19310,16 +19311,16 @@ function tt(a2) {
19310
19311
  function it(a2) {
19311
19312
  return a2 && a2.type === "video";
19312
19313
  }
19313
- function ba(a2) {
19314
+ function Aa(a2) {
19314
19315
  return a2 && a2.source === "screen";
19315
19316
  }
19316
- function Ft(a2) {
19317
+ function Gt(a2) {
19317
19318
  return a2 && a2.source === "audioplaylist";
19318
19319
  }
19319
19320
  function rt(a2) {
19320
19321
  return a2 && a2.source === "videoplaylist";
19321
19322
  }
19322
- function Kr(a2) {
19323
+ function qr(a2) {
19323
19324
  return a2 ? !!(a2 != null && a2.degraded) : false;
19324
19325
  }
19325
19326
  function Ue(a2, e) {
@@ -19333,8 +19334,8 @@ function st(a2) {
19333
19334
  function b(a2) {
19334
19335
  return (e) => (t) => a2(t, e);
19335
19336
  }
19336
- function Ua() {
19337
- if (D && window) {
19337
+ function Ba() {
19338
+ if (w && window) {
19338
19339
  let a2 = window.location.hostname;
19339
19340
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
19340
19341
  }
@@ -19344,16 +19345,16 @@ function ie(a2) {
19344
19345
  return a2 != null;
19345
19346
  }
19346
19347
  function ot(a2 = "prod", e) {
19347
- let t = "web", i = Be !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
19348
+ let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
19348
19349
  if (Ce)
19349
- return ys({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ms, 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 });
19350
- let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = cr(`web_${r.name}`), l = r.version || "", u = cr(`${o.name}_${o.version}`), p = u;
19351
- return s.type && (p = `${cr(`${s.vendor}_${s.type}`)}/${u}`), ys({ os: n, os_version: l, sdk: t, sdk_version: Ms, 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 });
19350
+ return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, 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 });
19351
+ 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;
19352
+ 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: 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 });
19352
19353
  }
19353
- function cr(a2) {
19354
+ function lr(a2) {
19354
19355
  return a2.replace(/ /g, "_");
19355
19356
  }
19356
- function qt(a2, e = 300) {
19357
+ function jt(a2, e = 300) {
19357
19358
  let t;
19358
19359
  return function(...i) {
19359
19360
  clearTimeout(t), t = void 0;
@@ -19363,13 +19364,13 @@ function qt(a2, e = 300) {
19363
19364
  }, e);
19364
19365
  };
19365
19366
  }
19366
- function Zh(a2) {
19367
+ function em(a2) {
19367
19368
  return (e) => {
19368
19369
  if (e.sessionStore)
19369
19370
  return a2 ? e.sessionStore[a2] : e.sessionStore;
19370
19371
  };
19371
19372
  }
19372
- var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Ct, import_eventemitter24, import_uuid9, import_uuid10, fa, va, Ma, Ut, Fr, Gr, Br, S, k, Qi, Pa, nr, zi, Ea, $r, Yi, Wr, V, Aa, En, bn, G, Gt, jr, w, Xi, Ia, ye, Rn, Ra, ae, Ha, z, ue, Hn, Cn, Z, K, Ca, Qr, Ln, wn, er, La, _n, Nn, On, xn, Un, Vn, Bn, Fn, at, wa, Gn, Y, Yr, $n, oe, Wn, $t, Da, Xr, Kn, Zr, qn, jn, Jn, Qn, zn, Yn, Xn, Zn, es, rc, _a7, sc, is, tr, rs, ss, as, os, ns, cs, ds, ls, us, Na, d, pe, D, ps, Ce, xa, pc, hs, ms, gs, Be, v, f, Va, h, sr, Ts, ne, fs, Ms, ys, R, M, dr, q, lr, ur, Is, Rs, pr, ws, hr, Ds, mr, Sr, Os, xs, Qe, St, y, br, gt, Ws, co, lo, J, Ar, uo, po, ho, mo, So, Q, Xh, tm, si, Ks, im, rm, sm, go, To, om, qs, nm, fo, cm, dm, lm, um, pm, hm, js, Js, Sm, gm, Qs, Tm, fm, zs, vm, Mm, ym, Ys, Xs, vo, Mo, yo, km, Pm, Em, bm, Am, Zs, xm, ko, Um, Vm, Bm, Eo, bo, Lr, Te, $, xi, Ki, Ko, qo, jo, Jo, ga, Qo, Ta, xr, ve, zo, Yo, Xo, Zo, en, tn, rn, sn, an, on, Ur, nn, cn, dn, ln, un, pn;
19373
+ var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Lt, import_eventemitter24, import_uuid9, import_uuid10, va, Ma, ya, Bt, Gr, $r, Fr, S, y, Yi, Ea, dr, Xi, ba, Wr, Zi, Kr, B, Ia, bn, An, G, $t, Jr, D, er, Ra, ye, Hn, Ha, ae, Ca, z, ue, Cn, Ln, Z, K, La, zr, Dn, wn, ir, Da, Nn, On, xn, Un, Bn, Vn, Fn, Gn, at, wa, $n, Y, Xr, Wn, oe, Kn, Wt, _a7, Zr, qn, es, jn, Jn, Qn, zn, Yn, Xn, Zn, ec, ts, sc, Na, ac, rs, rr, ss, as, os, ns, cs, ds, ls, us, ps, Oa, d, pe, w, hs, Ce, Ua, hc, ms, Ss, Ts, Ve, v, f, Va, h, or, fs, ne, vs, ys, ks, R, M, ur, q, pr, hr, Rs, Hs, mr, ws, Sr, _s, gr, Tr, xs, Us, pt, Qe, gt, k, Ir, Tt, Ks, lo, uo, J, Rr, po, ho, mo, So, go, Q, Zh, im, ai, qs, rm, sm, am, To, fo, nm, js, cm, vo, dm, lm, um, pm, hm, mm, Js, Qs, gm, Tm, zs, fm, vm, Ys, Mm, ym, km, Xs, Zs, Mo, yo, ko, Pm, Em, bm, Am, Im, ea, Um, Po, Bm, Vm, Fm, bo, Ao, wr, Te, $, Ui, ji, qo, jo, Jo, Qo, Ta, zo, fa, Ur, ve, Yo, Xo, Zo, en, tn, rn, sn, an, on, nn, Br, cn, dn, ln, un, pn, hn;
19373
19374
  var init_dist = __esm({
19374
19375
  "../hms-video-store/dist/index.js"() {
19375
19376
  "use strict";
@@ -19392,73 +19393,73 @@ var init_dist = __esm({
19392
19393
  import_eventemitter22 = require("eventemitter2");
19393
19394
  import_uuid8 = require("uuid");
19394
19395
  import_eventemitter23 = require("eventemitter2");
19395
- Ct = __toESM(require_lib());
19396
+ Lt = __toESM(require_lib());
19396
19397
  import_eventemitter24 = __toESM(require("eventemitter2"));
19397
19398
  import_uuid9 = require("uuid");
19398
19399
  import_uuid10 = require("uuid");
19399
19400
  init_es();
19400
- fa = Object.defineProperty;
19401
- va = Object.defineProperties;
19402
- Ma = Object.getOwnPropertyDescriptors;
19403
- Ut = Object.getOwnPropertySymbols;
19404
- Fr = Object.prototype.hasOwnProperty;
19405
- Gr = Object.prototype.propertyIsEnumerable;
19406
- Br = (a2, e, t) => e in a2 ? fa(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
19401
+ va = Object.defineProperty;
19402
+ Ma = Object.defineProperties;
19403
+ ya = Object.getOwnPropertyDescriptors;
19404
+ Bt = Object.getOwnPropertySymbols;
19405
+ Gr = Object.prototype.hasOwnProperty;
19406
+ $r = Object.prototype.propertyIsEnumerable;
19407
+ Fr = (a2, e, t) => e in a2 ? va(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
19407
19408
  S = (a2, e) => {
19408
19409
  for (var t in e || (e = {}))
19409
- Fr.call(e, t) && Br(a2, t, e[t]);
19410
- if (Ut)
19411
- for (var t of Ut(e))
19412
- Gr.call(e, t) && Br(a2, t, e[t]);
19410
+ Gr.call(e, t) && Fr(a2, t, e[t]);
19411
+ if (Bt)
19412
+ for (var t of Bt(e))
19413
+ $r.call(e, t) && Fr(a2, t, e[t]);
19413
19414
  return a2;
19414
19415
  };
19415
- k = (a2, e) => va(a2, Ma(e));
19416
- Qi = (a2, e) => {
19416
+ y = (a2, e) => Ma(a2, ya(e));
19417
+ Yi = (a2, e) => {
19417
19418
  var t = {};
19418
19419
  for (var i in a2)
19419
- Fr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
19420
- if (a2 != null && Ut)
19421
- for (var i of Ut(a2))
19422
- e.indexOf(i) < 0 && Gr.call(a2, i) && (t[i] = a2[i]);
19420
+ Gr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
19421
+ if (a2 != null && Bt)
19422
+ for (var i of Bt(a2))
19423
+ e.indexOf(i) < 0 && $r.call(a2, i) && (t[i] = a2[i]);
19423
19424
  return t;
19424
19425
  };
19425
- Pa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
19426
- nr = Pa((zc, Fa) => {
19427
- Fa.exports = { version: "0.11.8-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"] };
19426
+ Ea = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
19427
+ dr = Ea((Yc, Ga) => {
19428
+ Ga.exports = { version: "0.11.8-alpha.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"] };
19428
19429
  });
19429
- 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 || {});
19430
- Ea = ((e) => (e.CHAT = "chat", e))(Ea || {});
19431
- $r = ((t) => (t.INFO = "info", t.ERROR = "error", t))($r || {});
19432
- Yi = ((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))(Yi || {});
19433
- Wr = ((t) => (t.audio = "audio", t.video = "video", t))(Wr || {});
19434
- V = (a2) => a2.room;
19435
- Aa = (a2) => a2.errors;
19436
- En = createSelector(Aa, (a2) => a2.length === 0 ? null : a2.at(-1));
19437
- bn = createSelector(V, (a2) => a2.id);
19430
+ 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 || {});
19431
+ ba = ((e) => (e.CHAT = "chat", e))(ba || {});
19432
+ Wr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Wr || {});
19433
+ 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 || {});
19434
+ Kr = ((t) => (t.audio = "audio", t.video = "video", t))(Kr || {});
19435
+ B = (a2) => a2.room;
19436
+ Ia = (a2) => a2.errors;
19437
+ bn = createSelector(Ia, (a2) => a2.length === 0 ? null : a2.at(-1));
19438
+ An = createSelector(B, (a2) => a2.id);
19438
19439
  G = (a2) => a2.peers;
19439
- Gt = (a2) => a2.messages.byID;
19440
- jr = (a2) => a2.messages.allIDs;
19441
- w = (a2) => a2.tracks;
19442
- Xi = (a2) => a2.appData;
19443
- Ia = (a2) => a2.speakers;
19444
- ye = createSelector([V], (a2) => a2 && a2.isConnected);
19445
- Rn = 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));
19446
- Ra = (a2) => a2.hideLocalPeer;
19447
- ae = createSelector([V, G, Ra], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
19448
- Ha = createSelector(w, (a2) => Object.values(a2));
19449
- z = createSelector(V, G, (a2, e) => e[a2.localPeer]);
19450
- ue = createSelector(V, (a2) => a2.localPeer);
19451
- Hn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
19452
- Cn = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
19440
+ $t = (a2) => a2.messages.byID;
19441
+ Jr = (a2) => a2.messages.allIDs;
19442
+ D = (a2) => a2.tracks;
19443
+ er = (a2) => a2.appData;
19444
+ Ra = (a2) => a2.speakers;
19445
+ ye = createSelector([B], (a2) => a2 && a2.isConnected);
19446
+ Hn = 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));
19447
+ Ha = (a2) => a2.hideLocalPeer;
19448
+ ae = createSelector([B, G, Ha], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
19449
+ Ca = createSelector(D, (a2) => Object.values(a2));
19450
+ z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
19451
+ ue = createSelector(B, (a2) => a2.localPeer);
19452
+ Cn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
19453
+ Ln = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
19453
19454
  Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
19454
19455
  K = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
19455
- Ca = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
19456
- Qr = createSelector([Z, K, Ca], (a2, e, t) => {
19456
+ La = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
19457
+ zr = createSelector([Z, K, La], (a2, e, t) => {
19457
19458
  let i = t ? [...t] : [];
19458
19459
  return a2 && i.unshift(a2), e && i.unshift(e), i;
19459
19460
  });
19460
- Ln = createSelector(ae, (a2) => a2.filter((e) => !e.isLocal));
19461
- wn = createSelector(G, Ia, (a2, e) => {
19461
+ Dn = createSelector(ae, (a2) => a2.filter((e) => !e.isLocal));
19462
+ wn = createSelector(G, Ra, (a2, e) => {
19462
19463
  let t = Object.entries(e).sort((i, r) => {
19463
19464
  var n, l;
19464
19465
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -19471,11 +19472,11 @@ var init_dist = __esm({
19471
19472
  }
19472
19473
  return null;
19473
19474
  });
19474
- er = createSelector(z, w, (a2, e) => {
19475
+ ir = createSelector(z, D, (a2, e) => {
19475
19476
  let { video: t, audio: i } = He(e, a2);
19476
19477
  return !!(t || i);
19477
19478
  });
19478
- La = createSelector(G, w, (a2, e) => {
19479
+ Da = createSelector(G, D, (a2, e) => {
19479
19480
  let t;
19480
19481
  for (let i in a2) {
19481
19482
  let r = a2[i], { video: s, audio: o } = He(e, r);
@@ -19485,15 +19486,15 @@ var init_dist = __esm({
19485
19486
  }
19486
19487
  return t;
19487
19488
  });
19488
- _n = createSelector(La, (a2) => !!a2);
19489
- Nn = createSelector(G, w, (a2, e) => {
19489
+ Nn = createSelector(Da, (a2) => !!a2);
19490
+ On = createSelector(G, D, (a2, e) => {
19490
19491
  for (let t in a2) {
19491
19492
  let i = a2[t], { audio: r, video: s } = He(e, i);
19492
19493
  if (!s && r)
19493
19494
  return i;
19494
19495
  }
19495
19496
  });
19496
- On = createSelector(G, w, (a2, e) => {
19497
+ xn = createSelector(G, D, (a2, e) => {
19497
19498
  let t = [], i = [];
19498
19499
  for (let r in a2) {
19499
19500
  let s = a2[r], { video: o, audio: n } = He(e, s);
@@ -19501,24 +19502,24 @@ var init_dist = __esm({
19501
19502
  }
19502
19503
  return t.concat(i);
19503
19504
  });
19504
- xn = createSelector(G, w, (a2, e) => {
19505
+ Un = createSelector(G, D, (a2, e) => {
19505
19506
  for (let t in e) {
19506
19507
  let i = e[t];
19507
19508
  if (rt(i) && it(i) && i.peerId)
19508
19509
  return a2[i.peerId];
19509
19510
  }
19510
19511
  });
19511
- Un = createSelector(G, w, (a2, e) => {
19512
+ Bn = createSelector(G, D, (a2, e) => {
19512
19513
  for (let t in e) {
19513
19514
  let i = e[t];
19514
- if (Ft(i) && i.peerId)
19515
+ if (Gt(i) && i.peerId)
19515
19516
  return a2[i.peerId];
19516
19517
  }
19517
19518
  });
19518
- Vn = createSelector(Ha, (a2) => a2.filter(Kr));
19519
- Bn = createSelector(jr, (a2) => a2.length);
19520
- Fn = createSelector(Gt, (a2) => Object.values(a2).filter((e) => !e.read).length);
19521
- at = createSelector(jr, Gt, (a2, e) => {
19519
+ Vn = createSelector(Ca, (a2) => a2.filter(qr));
19520
+ Fn = createSelector(Jr, (a2) => a2.length);
19521
+ Gn = createSelector($t, (a2) => Object.values(a2).filter((e) => !e.read).length);
19522
+ at = createSelector(Jr, $t, (a2, e) => {
19522
19523
  let t = [];
19523
19524
  return a2.forEach((i) => {
19524
19525
  t.push(e[i]);
@@ -19528,50 +19529,50 @@ var init_dist = __esm({
19528
19529
  var t;
19529
19530
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
19530
19531
  }));
19531
- Gn = createSelector(wa, (a2) => a2.filter((e) => !e.read).length);
19532
- Y = createSelector([V], (a2) => a2 && a2.roomState);
19533
- Yr = createSelector(Y, (a2) => a2 === "Preview");
19534
- $n = createSelector(V, (a2) => a2.roomState !== "Disconnected");
19532
+ $n = createSelector(wa, (a2) => a2.filter((e) => !e.read).length);
19533
+ Y = createSelector([B], (a2) => a2 && a2.roomState);
19534
+ Xr = createSelector(Y, (a2) => a2 === "Preview");
19535
+ Wn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
19535
19536
  oe = (a2) => a2.roles;
19536
- Wn = createSelector([oe], (a2) => Object.keys(a2));
19537
- $t = createSelector([z, oe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
19538
- Da = (a2) => {
19537
+ Kn = createSelector([oe], (a2) => Object.keys(a2));
19538
+ Wt = createSelector([z, oe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
19539
+ _a7 = (a2) => {
19539
19540
  var e;
19540
19541
  return (e = a2.preview) == null ? void 0 : e.asRole;
19541
19542
  };
19542
- Xr = createSelector([Da, oe], (a2, e) => a2 ? e[a2] : null);
19543
- Kn = createSelector([$t], (a2) => {
19543
+ Zr = createSelector([_a7, oe], (a2, e) => a2 ? e[a2] : null);
19544
+ qn = createSelector([Wt], (a2) => {
19544
19545
  var e;
19545
19546
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
19546
19547
  });
19547
- Zr = createSelector($t, (a2) => a2 == null ? void 0 : a2.permissions);
19548
- qn = createSelector(V, (a2) => a2.recording);
19549
- jn = createSelector(V, (a2) => a2.rtmp);
19550
- Jn = createSelector(V, (a2) => a2.hls);
19551
- Qn = createSelector(V, (a2) => a2.sessionId);
19552
- zn = createSelector(V, (a2) => a2.startedAt);
19553
- Yn = createSelector(V, (a2) => !!a2.isLargeRoom);
19554
- Xn = createSelector(V, (a2) => !!a2.isEffectsEnabled);
19555
- Zn = createSelector(V, (a2) => a2.effectsKey);
19556
- es = (a2) => a2.polls;
19557
- rc = createSelector(ae, (a2) => a2.filter((e) => e.isHandRaised));
19558
- _a7 = (a2) => a2.whiteboards;
19559
- sc = createSelector(_a7, (a2) => Object.values(a2)[0]);
19560
- is = (a2 = "audio") => (e) => e.playlist[a2].list;
19561
- tr = (a2 = "audio") => (e) => e.playlist[a2].selection;
19562
- rs = (a2 = "audio") => (e) => e.playlist[a2].progress;
19563
- ss = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
19564
- as = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
19565
- os = (a2 = "audio") => (e) => e.playlist[a2].volume;
19566
- ns = (a2 = "audio") => createSelector(is(a2), (e) => Object.values(e));
19567
- cs = (a2 = "audio") => createSelector(is(a2), tr(a2), (e, t) => {
19548
+ es = createSelector(Wt, (a2) => a2 == null ? void 0 : a2.permissions);
19549
+ jn = createSelector(B, (a2) => a2.recording);
19550
+ Jn = createSelector(B, (a2) => a2.rtmp);
19551
+ Qn = createSelector(B, (a2) => a2.hls);
19552
+ zn = createSelector(B, (a2) => a2.sessionId);
19553
+ Yn = createSelector(B, (a2) => a2.startedAt);
19554
+ Xn = createSelector(B, (a2) => !!a2.isLargeRoom);
19555
+ Zn = createSelector(B, (a2) => !!a2.isEffectsEnabled);
19556
+ ec = createSelector(B, (a2) => a2.effectsKey);
19557
+ ts = (a2) => a2.polls;
19558
+ sc = createSelector(ae, (a2) => a2.filter((e) => e.isHandRaised));
19559
+ Na = (a2) => a2.whiteboards;
19560
+ ac = createSelector(Na, (a2) => Object.values(a2)[0]);
19561
+ rs = (a2 = "audio") => (e) => e.playlist[a2].list;
19562
+ rr = (a2 = "audio") => (e) => e.playlist[a2].selection;
19563
+ ss = (a2 = "audio") => (e) => e.playlist[a2].progress;
19564
+ as = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
19565
+ os = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
19566
+ ns = (a2 = "audio") => (e) => e.playlist[a2].volume;
19567
+ cs = (a2 = "audio") => createSelector(rs(a2), (e) => Object.values(e));
19568
+ ds = (a2 = "audio") => createSelector(rs(a2), rr(a2), (e, t) => {
19568
19569
  if (t.id)
19569
19570
  return e[t.id];
19570
19571
  });
19571
- ds = { selection: tr("audio"), progress: rs("audio"), currentTime: ss("audio"), playbackRate: as("audio"), volume: os("audio"), list: ns("audio"), selectedItem: cs("audio") };
19572
- ls = { selection: tr("video"), progress: rs("video"), currentTime: ss("video"), playbackRate: as("video"), volume: os("video"), list: ns("video"), selectedItem: cs("video") };
19573
- us = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(us || {});
19574
- Na = typeof window != "undefined" && typeof window.expect != "undefined";
19572
+ ls = { selection: rr("audio"), progress: ss("audio"), currentTime: as("audio"), playbackRate: os("audio"), volume: ns("audio"), list: cs("audio"), selectedItem: ds("audio") };
19573
+ us = { selection: rr("video"), progress: ss("video"), currentTime: as("video"), playbackRate: os("video"), volume: ns("video"), list: cs("video"), selectedItem: ds("video") };
19574
+ 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 || {});
19575
+ Oa = typeof window != "undefined" && typeof window.expect != "undefined";
19575
19576
  d = class {
19576
19577
  static v(e, ...t) {
19577
19578
  this.log(0, e, ...t);
@@ -19637,14 +19638,14 @@ var init_dist = __esm({
19637
19638
  }
19638
19639
  }
19639
19640
  };
19640
- d.level = Na ? 7 : 0;
19641
+ d.level = Oa ? 7 : 0;
19641
19642
  pe = new import_ua_parser_js.UAParser();
19642
- D = typeof window != "undefined";
19643
- Ce = typeof window == "undefined" && !((ps = pe.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
19644
- xa = () => !Ce;
19645
- pc = xa();
19646
- gs = ((ms = (hs = pe.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
19647
- Be = Ua();
19643
+ w = typeof window != "undefined";
19644
+ Ce = typeof window == "undefined" && !((hs = pe.getBrowser().name) != null && hs.toLowerCase().includes("electron"));
19645
+ Ua = () => !Ce;
19646
+ hc = Ua();
19647
+ Ts = ((Ss = (ms = pe.getBrowser()) == null ? void 0 : ms.name) == null ? void 0 : Ss.toLowerCase()) === "firefox";
19648
+ Ve = Ba();
19648
19649
  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 } };
19649
19650
  f = class a extends Error {
19650
19651
  constructor(t, i, r, s, o, n = false) {
@@ -19783,7 +19784,7 @@ var init_dist = __esm({
19783
19784
  }, NoEntryPlaying(a2, e) {
19784
19785
  return new f(v.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
19785
19786
  } } };
19786
- sr = class {
19787
+ or = class {
19787
19788
  constructor() {
19788
19789
  this.valuesMap = /* @__PURE__ */ new Map();
19789
19790
  }
@@ -19808,9 +19809,9 @@ var init_dist = __esm({
19808
19809
  return this.valuesMap.size;
19809
19810
  }
19810
19811
  };
19811
- Ts = () => {
19812
+ fs = () => {
19812
19813
  try {
19813
- D && !localStorage && (window.localStorage = new sr());
19814
+ w && !localStorage && (window.localStorage = new or());
19814
19815
  } catch (a2) {
19815
19816
  d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied());
19816
19817
  }
@@ -19822,7 +19823,7 @@ var init_dist = __esm({
19822
19823
  }
19823
19824
  getStorage() {
19824
19825
  try {
19825
- return D && !this.storage && (Ts(), this.storage = window.localStorage), this.storage;
19826
+ return w && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
19826
19827
  } catch (e) {
19827
19828
  return d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied()), null;
19828
19829
  }
@@ -19842,24 +19843,24 @@ var init_dist = __esm({
19842
19843
  (e = this.getStorage()) == null || e.removeItem(this.key);
19843
19844
  }
19844
19845
  };
19845
- fs = () => {
19846
+ vs = () => {
19846
19847
  let a2, e = new ne("hms-analytics-deviceId"), t = e.get();
19847
19848
  return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
19848
19849
  };
19849
- Ms = nr().version;
19850
- ys = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
19850
+ ys = dr().version;
19851
+ ks = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
19851
19852
  R = class {
19852
19853
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
19853
19854
  this.metadata = { peer: {}, userAgent: ot() };
19854
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = fs();
19855
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = vs();
19855
19856
  }
19856
19857
  toSignalParams() {
19857
- return { name: this.name, info: k(S({}, this.properties), { timestamp: this.timestamp, domain: Be }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
19858
+ return { name: this.name, info: y(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
19858
19859
  }
19859
19860
  };
19860
19861
  M = class {
19861
19862
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
19862
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(k(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);
19863
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(y(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);
19863
19864
  return new R({ name: o, level: n, properties: l });
19864
19865
  }
19865
19866
  static disconnect(e, t) {
@@ -19867,13 +19868,13 @@ var init_dist = __esm({
19867
19868
  return new R({ name: i, level: r, properties: s });
19868
19869
  }
19869
19870
  static preview(i) {
19870
- var r = i, { error: e } = r, t = Qi(r, ["error"]);
19871
+ var r = i, { error: e } = r, t = Yi(r, ["error"]);
19871
19872
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
19872
19873
  return new R({ name: s, level: o, properties: n });
19873
19874
  }
19874
19875
  static join(i) {
19875
- var r = i, { error: e } = r, t = Qi(r, ["error"]);
19876
- let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(k(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
19876
+ var r = i, { error: e } = r, t = Yi(r, ["error"]);
19877
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(y(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
19877
19878
  return new R({ name: s, level: o, properties: n });
19878
19879
  }
19879
19880
  static publish({ devices: e, settings: t, error: i }) {
@@ -19916,7 +19917,7 @@ var init_dist = __esm({
19916
19917
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
19917
19918
  if (!t && e.degradedAt instanceof Date) {
19918
19919
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
19919
- s = k(S({}, s), { duration: n, restoredAt: o });
19920
+ s = y(S({}, s), { duration: n, restoredAt: o });
19920
19921
  }
19921
19922
  return new R({ name: i, level: r, properties: s });
19922
19923
  }
@@ -19945,7 +19946,7 @@ var init_dist = __esm({
19945
19946
  }
19946
19947
  };
19947
19948
  M.KEY_REQUESTED_AT = "requested_at", M.KEY_RESPONDED_AT = "responded_at";
19948
- dr = class {
19949
+ ur = class {
19949
19950
  constructor() {
19950
19951
  this.storage = new ne("hms-device-selection");
19951
19952
  this.remember = false;
@@ -19979,12 +19980,12 @@ var init_dist = __esm({
19979
19980
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
19980
19981
  }
19981
19982
  };
19982
- q = new dr();
19983
- lr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(lr || {});
19984
- ur = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(ur || {});
19985
- 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 || {});
19986
- Rs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Rs || {});
19987
- pr = class {
19983
+ q = new ur();
19984
+ pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(pr || {});
19985
+ hr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(hr || {});
19986
+ Rs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Rs || {});
19987
+ Hs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Hs || {});
19988
+ mr = class {
19988
19989
  constructor() {
19989
19990
  this.TAG = "[HMSIntersectionObserverWrapper]";
19990
19991
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -20007,12 +20008,12 @@ var init_dist = __esm({
20007
20008
  this.createObserver();
20008
20009
  }
20009
20010
  isSupported() {
20010
- let e = D && typeof window.IntersectionObserver != "undefined";
20011
+ let e = w && typeof window.IntersectionObserver != "undefined";
20011
20012
  return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
20012
20013
  }
20013
20014
  };
20014
- ws = new pr();
20015
- hr = class {
20015
+ ws = new mr();
20016
+ Sr = class {
20016
20017
  constructor() {
20017
20018
  this.TAG = "[HMSResizeObserverWrapper]";
20018
20019
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -20025,7 +20026,7 @@ var init_dist = __esm({
20025
20026
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
20026
20027
  };
20027
20028
  this.createObserver = () => {
20028
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(qt(this.handleResize, 300)));
20029
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(jt(this.handleResize, 300)));
20029
20030
  };
20030
20031
  this.handleResize = (e) => {
20031
20032
  var t;
@@ -20035,20 +20036,21 @@ var init_dist = __esm({
20035
20036
  this.createObserver();
20036
20037
  }
20037
20038
  isSupported() {
20038
- let e = D && typeof window.ResizeObserver != "undefined";
20039
+ let e = w && typeof window.ResizeObserver != "undefined";
20039
20040
  return e || d.w(this.TAG, "Resize Observer is not supported"), e;
20040
20041
  }
20041
20042
  };
20042
- Ds = new hr();
20043
- mr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(mr || {});
20044
- Sr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Sr || {});
20045
- Os = "https://event.100ms.live/v2/client/report";
20046
- xs = "https://event-nonprod.100ms.live/v2/client/report";
20043
+ _s = new Sr();
20044
+ gr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(gr || {});
20045
+ Tr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Tr || {});
20046
+ xs = "https://event.100ms.live/v2/client/report";
20047
+ Us = "https://event-nonprod.100ms.live/v2/client/report";
20048
+ pt = Math.pow(2, 31) - 1;
20047
20049
  Qe = class {
20048
20050
  };
20049
20051
  Qe.makePeerId = () => (0, import_uuid7.v4)();
20050
- St = "HMS-Store:";
20051
- y = class {
20052
+ gt = "HMS-Store:";
20053
+ k = class {
20052
20054
  static v(e, ...t) {
20053
20055
  this.log(0, e, ...t);
20054
20056
  }
@@ -20077,23 +20079,23 @@ var init_dist = __esm({
20077
20079
  if (!(this.level.valueOf() > e.valueOf()))
20078
20080
  switch (e) {
20079
20081
  case 0: {
20080
- console.log(St, ...t);
20082
+ console.log(gt, ...t);
20081
20083
  break;
20082
20084
  }
20083
20085
  case 1: {
20084
- console.debug(St, ...t);
20086
+ console.debug(gt, ...t);
20085
20087
  break;
20086
20088
  }
20087
20089
  case 2: {
20088
- console.info(St, ...t);
20090
+ console.info(gt, ...t);
20089
20091
  break;
20090
20092
  }
20091
20093
  case 3: {
20092
- console.warn(St, ...t);
20094
+ console.warn(gt, ...t);
20093
20095
  break;
20094
20096
  }
20095
20097
  case 6: {
20096
- console.error(St, ...t);
20098
+ console.error(gt, ...t);
20097
20099
  break;
20098
20100
  }
20099
20101
  case 4: {
@@ -20113,196 +20115,196 @@ var init_dist = __esm({
20113
20115
  }
20114
20116
  }
20115
20117
  };
20116
- y.level = 0;
20117
- br = (a2, e) => e;
20118
- gt = (a2, e) => e;
20119
- Ws = (a2, e) => e;
20120
- co = (a2, e) => e;
20118
+ k.level = 0;
20119
+ Ir = (a2, e) => e;
20120
+ Tt = (a2, e) => e;
20121
+ Ks = (a2, e) => e;
20121
20122
  lo = (a2, e) => e;
20122
- J = createSelector([G, br], (a2, e) => e ? a2[e] : null);
20123
- Ar = createSelector([w, gt], (a2, e) => e ? a2[e] : null);
20124
- uo = createSelector([w, gt], (a2, e) => {
20123
+ uo = (a2, e) => e;
20124
+ J = createSelector([G, Ir], (a2, e) => e ? a2[e] : null);
20125
+ Rr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
20126
+ po = createSelector([D, Tt], (a2, e) => {
20125
20127
  if (!e)
20126
20128
  return null;
20127
20129
  let t = a2[e];
20128
20130
  return (t == null ? void 0 : t.type) === "video" ? t : null;
20129
20131
  });
20130
- po = createSelector([w, gt], (a2, e) => {
20132
+ ho = createSelector([D, Tt], (a2, e) => {
20131
20133
  if (!e)
20132
20134
  return null;
20133
20135
  let t = a2[e];
20134
20136
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
20135
20137
  });
20136
- ho = createSelector([w, gt], (a2, e) => {
20138
+ mo = createSelector([D, Tt], (a2, e) => {
20137
20139
  if (!e)
20138
20140
  return null;
20139
20141
  let t = a2[e];
20140
20142
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
20141
20143
  });
20142
- mo = createSelector([w, gt], (a2, e) => {
20144
+ So = createSelector([D, Tt], (a2, e) => {
20143
20145
  if (!e)
20144
20146
  return null;
20145
20147
  let t = a2[e];
20146
20148
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
20147
20149
  });
20148
- So = createSelector([es, lo], (a2, e) => e ? a2[e] : null);
20150
+ go = createSelector([ts, uo], (a2, e) => e ? a2[e] : null);
20149
20151
  Q = b(J);
20150
- Xh = b(createSelector([Xi, co], (a2, e) => {
20152
+ Zh = b(createSelector([er, lo], (a2, e) => {
20151
20153
  if (a2)
20152
20154
  return e ? a2[e] : a2;
20153
20155
  }));
20154
- tm = b(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
20155
- si = b(Ar);
20156
- Ks = b(uo);
20157
- im = b(po);
20156
+ im = b(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
20157
+ ai = b(Rr);
20158
+ qs = b(po);
20158
20159
  rm = b(ho);
20159
20160
  sm = b(mo);
20160
- go = b((a2, e) => {
20161
+ am = b(So);
20162
+ To = b((a2, e) => {
20161
20163
  let t = J(a2, e);
20162
20164
  if (t && t.videoTrack && t.videoTrack !== "")
20163
20165
  return a2.tracks[t.videoTrack];
20164
20166
  });
20165
- To = b((a2, e) => {
20167
+ fo = b((a2, e) => {
20166
20168
  let t = J(a2, e);
20167
20169
  if (t && t.audioTrack && t.audioTrack !== "")
20168
20170
  return a2.tracks[t.audioTrack];
20169
20171
  });
20170
- om = b((a2, e) => {
20172
+ nm = b((a2, e) => {
20171
20173
  let t = J(a2, e);
20172
20174
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
20173
20175
  });
20174
- qs = (a2, e) => e ? a2.speakers[e] : null;
20175
- nm = b(createSelector(qs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
20176
- fo = (a2, e) => {
20177
- let t = To(e)(a2);
20178
- return qs(a2, t == null ? void 0 : t.id);
20179
- };
20180
- cm = b(createSelector(fo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
20181
- dm = b((a2, e) => {
20176
+ js = (a2, e) => e ? a2.speakers[e] : null;
20177
+ cm = b(createSelector(js, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
20178
+ vo = (a2, e) => {
20179
+ let t = fo(e)(a2);
20180
+ return js(a2, t == null ? void 0 : t.id);
20181
+ };
20182
+ dm = b(createSelector(vo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
20183
+ lm = b((a2, e) => {
20182
20184
  if (e)
20183
20185
  return a2.connectionQualities[e];
20184
20186
  });
20185
- lm = b((a2, e) => {
20187
+ um = b((a2, e) => {
20186
20188
  let t = J(a2, e);
20187
20189
  if (t) {
20188
20190
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
20189
20191
  return i ? a2.tracks[i] : void 0;
20190
20192
  }
20191
20193
  });
20192
- um = b(createSelector(w, J, (a2, e) => {
20194
+ pm = b(createSelector(D, J, (a2, e) => {
20193
20195
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
20194
20196
  let r = a2[i];
20195
20197
  return rt(r) && it(r);
20196
20198
  });
20197
20199
  return t ? a2[t] : void 0;
20198
20200
  }));
20199
- pm = b(createSelector(w, J, (a2, e) => {
20201
+ hm = b(createSelector(D, J, (a2, e) => {
20200
20202
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
20201
20203
  let r = a2[i];
20202
20204
  return rt(r) && tt(r);
20203
20205
  });
20204
20206
  return t ? a2[t] : void 0;
20205
20207
  }));
20206
- hm = b(createSelector(w, J, (a2, e) => {
20208
+ mm = b(createSelector(D, J, (a2, e) => {
20207
20209
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
20208
20210
  let r = a2[i];
20209
- return Ft(r) && tt(r);
20211
+ return Gt(r) && tt(r);
20210
20212
  });
20211
20213
  return t ? a2[t] : void 0;
20212
20214
  }));
20213
- js = b(createSelector(w, J, (a2, e) => He(a2, e)));
20214
- Js = (a2) => createSelector(js(a2), (e) => e.audio);
20215
- Sm = b((a2, e) => {
20215
+ Js = b(createSelector(D, J, (a2, e) => He(a2, e)));
20216
+ Qs = (a2) => createSelector(Js(a2), (e) => e.audio);
20217
+ gm = b((a2, e) => {
20216
20218
  let t = J(a2, e);
20217
20219
  return Ue(a2, t == null ? void 0 : t.audioTrack);
20218
20220
  });
20219
- gm = b((a2, e) => {
20221
+ Tm = b((a2, e) => {
20220
20222
  let t = J(a2, e);
20221
20223
  return Ue(a2, t == null ? void 0 : t.videoTrack);
20222
20224
  });
20223
- Qs = b((a2, e) => {
20225
+ zs = b((a2, e) => {
20224
20226
  if (e && a2.tracks[e])
20225
20227
  return a2.tracks[e].volume === 0;
20226
20228
  });
20227
- Tm = b((a2, e) => {
20229
+ fm = b((a2, e) => {
20228
20230
  let t = J(a2, e);
20229
- return Qs(t == null ? void 0 : t.audioTrack)(a2);
20231
+ return zs(t == null ? void 0 : t.audioTrack)(a2);
20230
20232
  });
20231
- fm = b((a2, e) => {
20232
- let t = Js(e)(a2);
20233
- return Qs(t == null ? void 0 : t.id)(a2);
20233
+ vm = b((a2, e) => {
20234
+ let t = Qs(e)(a2);
20235
+ return zs(t == null ? void 0 : t.id)(a2);
20234
20236
  });
20235
- zs = b((a2, e) => {
20236
- let t = Ar(a2, e);
20237
+ Ys = b((a2, e) => {
20238
+ let t = Rr(a2, e);
20237
20239
  if (t) {
20238
20240
  if (t.type !== "audio") {
20239
- y.w("Please pass audio track here");
20241
+ k.w("Please pass audio track here");
20240
20242
  return;
20241
20243
  }
20242
20244
  return t.volume;
20243
20245
  }
20244
20246
  });
20245
- vm = b((a2, e) => {
20246
- let t = J(a2, e);
20247
- return zs(t == null ? void 0 : t.audioTrack)(a2);
20248
- });
20249
20247
  Mm = b((a2, e) => {
20250
- let t = Js(e)(a2);
20251
- return zs(t == null ? void 0 : t.id)(a2);
20248
+ let t = J(a2, e);
20249
+ return Ys(t == null ? void 0 : t.audioTrack)(a2);
20252
20250
  });
20253
20251
  ym = b((a2, e) => {
20254
- let t = Ar(a2, e);
20252
+ let t = Qs(e)(a2);
20253
+ return Ys(t == null ? void 0 : t.id)(a2);
20254
+ });
20255
+ km = b((a2, e) => {
20256
+ let t = Rr(a2, e);
20255
20257
  if (t) {
20256
20258
  if (t.type !== "video") {
20257
- y.w("Please pass video track here");
20259
+ k.w("Please pass video track here");
20258
20260
  return;
20259
20261
  }
20260
20262
  return t.layer;
20261
20263
  }
20262
20264
  });
20263
- Ys = createSelector([at, ue, br], (a2, e, t) => {
20265
+ Xs = createSelector([at, ue, Ir], (a2, e, t) => {
20264
20266
  if (t)
20265
20267
  return a2.filter((i) => {
20266
20268
  var r;
20267
20269
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
20268
20270
  });
20269
20271
  });
20270
- Xs = createSelector([at, Ws], (a2, e) => {
20272
+ Zs = createSelector([at, Ks], (a2, e) => {
20271
20273
  if (e)
20272
20274
  return a2.filter((t) => {
20273
20275
  var i, r;
20274
20276
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
20275
20277
  });
20276
20278
  });
20277
- vo = createSelector(at, (a2) => a2.filter((e) => {
20279
+ Mo = createSelector(at, (a2) => a2.filter((e) => {
20278
20280
  var t;
20279
20281
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
20280
20282
  }));
20281
- Mo = createSelector([Xs, Ws], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20282
- yo = createSelector([Ys, br], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20283
- km = createSelector(vo, (a2) => a2.filter((e) => !e.read).length);
20284
- Pm = b(Ys);
20283
+ yo = createSelector([Zs, Ks], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20284
+ ko = createSelector([Xs, Ir], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20285
+ Pm = createSelector(Mo, (a2) => a2.filter((e) => !e.read).length);
20285
20286
  Em = b(Xs);
20286
- bm = b(Mo);
20287
+ bm = b(Zs);
20287
20288
  Am = b(yo);
20288
- Zs = b(So);
20289
- xm = createSelector([G, w], (a2, e) => Object.values(a2).map((i) => {
20289
+ Im = b(ko);
20290
+ ea = b(go);
20291
+ Um = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
20290
20292
  var r;
20291
20293
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
20292
20294
  }));
20293
- ko = (a2) => a2.roleChangeRequests[0] || null;
20294
- Um = createSelector([ko, G, oe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
20295
- Vm = createSelector([$t], (a2) => st(a2));
20296
- Bm = createSelector([Xr], (a2) => st(a2));
20297
- Eo = createSelector([K, w], (a2, e) => {
20295
+ Po = (a2) => a2.roleChangeRequests[0] || null;
20296
+ 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);
20297
+ Vm = createSelector([Wt], (a2) => st(a2));
20298
+ Fm = createSelector([Zr], (a2) => st(a2));
20299
+ bo = createSelector([K, D], (a2, e) => {
20298
20300
  let t = null;
20299
20301
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
20300
20302
  });
20301
- bo = createSelector([Z, w], (a2, e) => {
20303
+ Ao = createSelector([Z, D], (a2, e) => {
20302
20304
  let t = null;
20303
20305
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
20304
20306
  });
20305
- Lr = class {
20307
+ wr = class {
20306
20308
  constructor() {
20307
20309
  this.TAG = "[HTTPAnalyticsTransport]";
20308
20310
  this.failedEvents = new ne("client-events");
@@ -20321,7 +20323,7 @@ var init_dist = __esm({
20321
20323
  this.addEventToStorage(e);
20322
20324
  return;
20323
20325
  }
20324
- 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" ? Os : xs;
20326
+ 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" ? xs : Us;
20325
20327
  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) => {
20326
20328
  if (r.status === 401) {
20327
20329
  this.removeFromStorage(e);
@@ -20347,66 +20349,66 @@ var init_dist = __esm({
20347
20349
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
20348
20350
  }
20349
20351
  };
20350
- Te = new Lr();
20352
+ Te = new wr();
20351
20353
  $ = ((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))($ || {});
20352
- xi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(xi || {});
20353
- Ki = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ki || {});
20354
- Ko = (a2) => a2.localPeer.id;
20355
- qo = (a2) => a2.localPeer.audioTrack;
20356
- jo = (a2) => a2.localPeer.videoTrack;
20357
- Jo = (a2, e) => e;
20358
- ga = (a2, e) => e;
20359
- Qo = (a2) => a2.remoteTrackStats;
20360
- Ta = (a2) => a2.peerStats;
20361
- xr = (a2) => a2.localTrackStats;
20362
- ve = createSelector([Ta, Ko], (a2, e) => a2[e]);
20363
- zo = createSelector(ve, (a2) => {
20354
+ 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 || {});
20355
+ ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ji || {});
20356
+ qo = (a2) => a2.localPeer.id;
20357
+ jo = (a2) => a2.localPeer.audioTrack;
20358
+ Jo = (a2) => a2.localPeer.videoTrack;
20359
+ Qo = (a2, e) => e;
20360
+ Ta = (a2, e) => e;
20361
+ zo = (a2) => a2.remoteTrackStats;
20362
+ fa = (a2) => a2.peerStats;
20363
+ Ur = (a2) => a2.localTrackStats;
20364
+ ve = createSelector([fa, qo], (a2, e) => a2[e]);
20365
+ Yo = createSelector(ve, (a2) => {
20364
20366
  var e;
20365
20367
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
20366
20368
  });
20367
- Yo = createSelector(ve, (a2) => {
20369
+ Xo = createSelector(ve, (a2) => {
20368
20370
  var e;
20369
20371
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
20370
20372
  });
20371
- Xo = createSelector(ve, (a2) => {
20373
+ Zo = createSelector(ve, (a2) => {
20372
20374
  var e;
20373
20375
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
20374
20376
  });
20375
- Zo = createSelector(ve, (a2) => {
20377
+ en = createSelector(ve, (a2) => {
20376
20378
  var e;
20377
20379
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
20378
20380
  });
20379
- en = createSelector(ve, (a2) => {
20381
+ tn = createSelector(ve, (a2) => {
20380
20382
  var e;
20381
20383
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
20382
20384
  });
20383
- tn = createSelector(ve, (a2) => {
20385
+ rn = createSelector(ve, (a2) => {
20384
20386
  var e;
20385
20387
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
20386
20388
  });
20387
- rn = createSelector(ve, (a2) => {
20389
+ sn = createSelector(ve, (a2) => {
20388
20390
  var e;
20389
20391
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
20390
20392
  });
20391
- sn = createSelector(ve, (a2) => {
20393
+ an = createSelector(ve, (a2) => {
20392
20394
  var e;
20393
20395
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
20394
20396
  });
20395
- an = createSelector([Ta, Jo], (a2, e) => e ? a2[e] : void 0);
20396
- on = createSelector([Qo, ga], (a2, e) => e ? a2[e] : void 0);
20397
- Ur = createSelector([xr, ga], (a2, e) => e ? a2[e] : void 0);
20398
- nn = b(an);
20397
+ on = createSelector([fa, Qo], (a2, e) => e ? a2[e] : void 0);
20398
+ nn = createSelector([zo, Ta], (a2, e) => e ? a2[e] : void 0);
20399
+ Br = createSelector([Ur, Ta], (a2, e) => e ? a2[e] : void 0);
20399
20400
  cn = b(on);
20400
- dn = createSelector([xr, qo], (a2, e) => {
20401
+ dn = b(nn);
20402
+ ln = createSelector([Ur, jo], (a2, e) => {
20401
20403
  var t;
20402
20404
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
20403
20405
  });
20404
- ln = b(createSelector(Ur, (a2) => a2 == null ? void 0 : a2[0]));
20405
- un = createSelector([xr, jo], (a2, e) => {
20406
+ un = b(createSelector(Br, (a2) => a2 == null ? void 0 : a2[0]));
20407
+ pn = createSelector([Ur, Jo], (a2, e) => {
20406
20408
  var t;
20407
20409
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
20408
20410
  });
20409
- pn = b(createSelector(Ur, (a2) => a2));
20411
+ hn = b(createSelector(Br, (a2) => a2));
20410
20412
  }
20411
20413
  });
20412
20414
 
@@ -20685,7 +20687,7 @@ var init_StreamActions = __esm({
20685
20687
  };
20686
20688
  RecordingPauseStatus = () => {
20687
20689
  const recording = (0, import_react_sdk32.useHMSStore)(import_react_sdk32.selectRecordingState);
20688
- if (recording.hls && recording.hls.state === Is.PAUSED) {
20690
+ if (recording.hls && recording.hls.state === Rs.PAUSED) {
20689
20691
  return /* @__PURE__ */ import_react72.default.createElement(
20690
20692
  Tooltip,
20691
20693
  {
@@ -22269,7 +22271,7 @@ var init_RoleOptions = __esm({
22269
22271
  console.error(e);
22270
22272
  }
22271
22273
  });
22272
- return /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, ((_a8 = role.publishParams.allowed) == null ? void 0 : _a8.includes("audio")) && /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, allPeersHaveAudioOn && (permissions == null ? void 0 : permissions.mute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", false) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.MicOffIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Audio")) : null, !allPeersHaveAudioOn && (permissions == null ? void 0 : permissions.unmute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", true) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.MicOnIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Unmute Audio")) : null), ((_b7 = role.publishParams.allowed) == null ? void 0 : _b7.includes("audio")) && /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, allPeersHaveVideoOn && (permissions == null ? void 0 : permissions.mute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", false) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.VideoOffIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Video")) : null, !allPeersHaveVideoOn && (permissions == null ? void 0 : permissions.unmute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", true) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.VideoOnIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Unmute Video")) : null));
22274
+ return /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, ((_a8 = role.publishParams.allowed) == null ? void 0 : _a8.includes("audio")) && /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, allPeersHaveAudioOn && (permissions == null ? void 0 : permissions.mute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", false) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.MicOffIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Audio for All")) : null, !allPeersHaveAudioOn && (permissions == null ? void 0 : permissions.unmute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", true) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.MicOnIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Unmute Audio for All")) : null), ((_b7 = role.publishParams.allowed) == null ? void 0 : _b7.includes("audio")) && /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, allPeersHaveVideoOn && (permissions == null ? void 0 : permissions.mute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", false) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.VideoOffIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Video for All")) : null, !allPeersHaveVideoOn && (permissions == null ? void 0 : permissions.unmute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", true) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.VideoOnIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Unmute Video for All")) : null));
22273
22275
  };
22274
22276
  RoleOptions = ({ roleName, peerList }) => {
22275
22277
  const [openOptions, setOpenOptions] = (0, import_react92.useState)(false);
@@ -26548,7 +26550,7 @@ var init_Chat = __esm({
26548
26550
  const listRef = (0, import_react142.useRef)(null);
26549
26551
  const hmsActions = (0, import_react_sdk68.useHMSActions)();
26550
26552
  const vanillaStore = (0, import_react_sdk68.useHMSVanillaStore)();
26551
- const { enabled: isChatEnabled = true } = (0, import_react_sdk68.useHMSStore)(Zh("chatState" /* CHAT_STATE */)) || {};
26553
+ const { enabled: isChatEnabled = true } = (0, import_react_sdk68.useHMSStore)(em("chatState" /* CHAT_STATE */)) || {};
26552
26554
  const isMobile = (0, import_react_use21.useMedia)(config.media.md);
26553
26555
  const scrollToBottom = (0, import_react142.useCallback)(
26554
26556
  (unreadCount = 0) => {
@@ -26587,7 +26589,7 @@ var init_Chat = __esm({
26587
26589
  scrollToBottom,
26588
26590
  listRef
26589
26591
  }) => {
26590
- const unreadCount = (0, import_react_sdk68.useHMSStore)(Fn);
26592
+ const unreadCount = (0, import_react_sdk68.useHMSStore)(Gn);
26591
26593
  if (!unreadCount || !listRef.current) {
26592
26594
  return null;
26593
26595
  }
@@ -27766,7 +27768,7 @@ var init_VBPicker = __esm({
27766
27768
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
27767
27769
  const hmsActions = (0, import_react_sdk76.useHMSActions)();
27768
27770
  const localPeer = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeer);
27769
- const role = (0, import_react_sdk76.useHMSStore)($t);
27771
+ const role = (0, import_react_sdk76.useHMSStore)(Wt);
27770
27772
  const isVideoOn = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectIsLocalVideoEnabled);
27771
27773
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
27772
27774
  const trackSelector = (0, import_react_sdk76.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -27774,10 +27776,10 @@ var init_VBPicker = __esm({
27774
27776
  const [blurAmount, setBlurAmount] = (0, import_react152.useState)(VBHandler.getBlurAmount() || 0.5);
27775
27777
  const roomState = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectRoomState);
27776
27778
  const isLargeRoom = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectIsLargeRoom);
27777
- const isEffectsEnabled = (0, import_react_sdk76.useHMSStore)(Xn);
27778
- const effectsKey = (0, import_react_sdk76.useHMSStore)(Zn);
27779
+ const isEffectsEnabled = (0, import_react_sdk76.useHMSStore)(Zn);
27780
+ const effectsKey = (0, import_react_sdk76.useHMSStore)(ec);
27779
27781
  const isPluginAdded = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
27780
- const background = (0, import_react_sdk76.useHMSStore)(Xh(APP_DATA.background));
27782
+ const background = (0, import_react_sdk76.useHMSStore)(Zh(APP_DATA.background));
27781
27783
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
27782
27784
  const inPreview = roomState === import_react_sdk76.HMSRoomState.Preview;
27783
27785
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -29149,7 +29151,7 @@ var init_useRoleProminencePeers = __esm({
29149
29151
  }
29150
29152
  return acc;
29151
29153
  }
29152
- if (peer.isLocal && isInsetEnabled) {
29154
+ if (peer.isLocal && isInsetEnabled && !(prominentRoles == null ? void 0 : prominentRoles.includes(peer.roleName || ""))) {
29153
29155
  return acc;
29154
29156
  }
29155
29157
  if (prominentRoles == null ? void 0 : prominentRoles.includes(peer.roleName || "")) {
@@ -29219,7 +29221,7 @@ function RoleProminence({
29219
29221
  edgeToEdge,
29220
29222
  hasSidebar: layoutMode === LayoutMode.SIDEBAR
29221
29223
  }
29222
- ), isInsetEnabled && localPeer && !prominentPeers.includes(localPeer) && /* @__PURE__ */ import_react170.default.createElement(InsetTile, null));
29224
+ ), isInsetEnabled && localPeer && prominentPeers.length > 0 && !prominentPeers.includes(localPeer) && /* @__PURE__ */ import_react170.default.createElement(InsetTile, null));
29223
29225
  }
29224
29226
  var import_react170, import_react_use35, import_react_sdk86;
29225
29227
  var init_RoleProminence = __esm({
@@ -32894,7 +32896,7 @@ function Notifications() {
32894
32896
  }, []);
32895
32897
  (0, import_react_sdk116.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
32896
32898
  (0, import_react217.useEffect)(() => {
32897
- var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o, _p;
32899
+ var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
32898
32900
  if (!notification || isNotificationDisabled) {
32899
32901
  return;
32900
32902
  }
@@ -32935,7 +32937,7 @@ function Notifications() {
32935
32937
  });
32936
32938
  break;
32937
32939
  case import_react_sdk116.HMSNotificationTypes.ROLE_UPDATED: {
32938
- if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
32940
+ if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n = notification.data) == null ? void 0 : _n.roleName)) {
32939
32941
  ToastManager.addToast({
32940
32942
  title: `You are now a ${notification.data.roleName}`
32941
32943
  });