@100mslive/roomkit-react 0.3.16 → 0.3.17-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
109
109
  var define_process_env_default;
110
110
  var init_define_process_env = __esm({
111
111
  "<define:process.env>"() {
112
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6f397c96-a415-4c65-a8ac-4513df64afe7", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.6", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_6f397c96-a415-4c65-a8ac-4513df64afe7", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.16", 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.9", 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.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "596", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_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.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240714.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.5/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19745", 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__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.16", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10042906559", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "580d445154522296643833e00082e4f2c9f0103b", 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: "b5ebb68b737163142b6a89349dca5c723a54398274fee53471c9ccccb560ad1b", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1721659029637-0.025369034475224428:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1721659029438-0.0827665903380077:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1721659003681-0.732833631475869:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1721659003500-0.1956061330608585:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_2364e786-b6a9-4db1-abfd-bc04da0a846e", INVOCATION_ID: "3b114493058141d19f0ff26c0b2940ff", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "616", 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", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 125", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.16", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.16", 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", GITHUB_SHA: "580d445154522296643833e00082e4f2c9f0103b", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "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_6f397c96-a415-4c65-a8ac-4513df64afe7", 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_6f397c96-a415-4c65-a8ac-4513df64afe7", 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.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_6f397c96-a415-4c65-a8ac-4513df64afe7" };
112
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.7-alpha.1", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.17-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.17-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", 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.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", 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: "589", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", 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.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240721.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.5/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:1839", 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__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.17-alpha.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10143763991", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "4d8b6da71642585295d7dfc3b05c43809f35ea8c", 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: "643ed4a2d79963ce78c8539272c639d33ab5a93b977b148da9d4cd26f3365d28", 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--1722254244580-0.7597921654222386:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722254244381-0.5197699882516091:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722254218535-0.07559875299263608:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722254218346-0.7948146992289666:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_5d9ac9a8-777a-47cd-b693-6136da04d5f6", INVOCATION_ID: "b157570d98a943c18f1a5bbcd1444fa2", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "618", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 6", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.17-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "4d8b6da71642585295d7dfc3b05c43809f35ea8c", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", 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.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f" };
113
113
  }
114
114
  });
115
115
 
@@ -10151,13 +10151,15 @@ var init_AppData = __esm({
10151
10151
  });
10152
10152
  }, [hmsActions]);
10153
10153
  (0, import_react35.useEffect)(() => {
10154
+ var _a8, _b8;
10154
10155
  const uiSettings = preferences || {};
10155
10156
  const updatedSettings = __spreadProps(__spreadValues({}, uiSettings), {
10156
10157
  [UI_SETTINGS.isAudioOnly]: void 0,
10157
- [UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID
10158
+ [UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID,
10159
+ [UI_SETTINGS.maxTileCount]: ((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || 9
10158
10160
  });
10159
10161
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
10160
- }, [preferences, hmsActions]);
10162
+ }, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout]);
10161
10163
  (0, import_react35.useEffect)(() => {
10162
10164
  if (!preferences.subscribedNotifications) {
10163
10165
  return;
@@ -11589,7 +11591,13 @@ var init_AudioVideoToggle = __esm({
11589
11591
  ));
11590
11592
  };
11591
11593
  AudioVideoToggle = ({ hideOptions = false }) => {
11592
- const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk14.useDevices)();
11594
+ const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk14.useDevices)((error) => {
11595
+ ToastManager.addToast({
11596
+ title: error.message,
11597
+ variant: "error",
11598
+ duration: 2e3
11599
+ });
11600
+ });
11593
11601
  const { videoInput, audioInput, audioOutput } = allDevices;
11594
11602
  const localPeer = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectLocalPeer);
11595
11603
  const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = (0, import_react_sdk14.useAVToggle)();
@@ -14211,7 +14219,7 @@ var init_PIPChatOption = __esm({
14211
14219
  if (!showPIPChat) {
14212
14220
  return /* @__PURE__ */ import_react68.default.createElement(import_react68.default.Fragment, null);
14213
14221
  }
14214
- return /* @__PURE__ */ import_react68.default.createElement(Dropdown.Item, { onClick: openChat, "data-testid": "brb_btn" }, /* @__PURE__ */ import_react68.default.createElement(import_react_icons24.ExternalLinkIcon, { height: 18, width: 18, style: { padding: "0 $2" } }), /* @__PURE__ */ import_react68.default.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Pop out Chat"));
14222
+ return /* @__PURE__ */ import_react68.default.createElement(Dropdown.Item, { onClick: openChat, "data-testid": "pip_chat_btn" }, /* @__PURE__ */ import_react68.default.createElement(import_react_icons24.ExternalLinkIcon, { height: 18, width: 18, style: { padding: "0 $2" } }), /* @__PURE__ */ import_react68.default.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Pop out Chat"));
14215
14223
  };
14216
14224
  }
14217
14225
  });
@@ -18135,8 +18143,8 @@ function shimGetUserMedia(window2, browserDetails) {
18135
18143
  navigator2.getUserMedia = getUserMedia_.bind(navigator2);
18136
18144
  if (navigator2.mediaDevices.getUserMedia) {
18137
18145
  const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
18138
- navigator2.mediaDevices.getUserMedia = function(cs) {
18139
- return shimConstraints_(cs, (c) => origGetUserMedia(c).then((stream) => {
18146
+ navigator2.mediaDevices.getUserMedia = function(cs2) {
18147
+ return shimConstraints_(cs2, (c) => origGetUserMedia(c).then((stream) => {
18140
18148
  if (c.audio && !stream.getAudioTracks().length || c.video && !stream.getVideoTracks().length) {
18141
18149
  stream.getTracks().forEach((track) => {
18142
18150
  track.stop();
@@ -21278,13 +21286,13 @@ function pt(a2) {
21278
21286
  function eo(a2) {
21279
21287
  return a2 && a2.source === "screen";
21280
21288
  }
21281
- function ii(a2) {
21289
+ function ri(a2) {
21282
21290
  return a2 && a2.source === "audioplaylist";
21283
21291
  }
21284
21292
  function ht(a2) {
21285
21293
  return a2 && a2.source === "videoplaylist";
21286
21294
  }
21287
- function ns(a2) {
21295
+ function ds(a2) {
21288
21296
  return a2 ? !!(a2 != null && a2.degraded) : false;
21289
21297
  }
21290
21298
  function je(a2, e) {
@@ -21305,17 +21313,17 @@ function so() {
21305
21313
  function oe(a2) {
21306
21314
  return a2 != null;
21307
21315
  }
21308
- function Tt(a2 = "prod", e) {
21316
+ function ft(a2 = "prod", e) {
21309
21317
  let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21310
21318
  if (Ue)
21311
- return Ms({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: vs, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21319
+ return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21312
21320
  let r = ge.getOS(), s = ge.getDevice(), o = ge.getBrowser(), n = yr(`web_${r.name}`), l = r.version || "", u = yr(`${o.name}_${o.version}`), p = u;
21313
- return s.type && (p = `${yr(`${s.vendor}_${s.type}`)}/${u}`), Ms({ os: n, os_version: l, sdk: t, sdk_version: vs, device_model: p, env: i, domain: Qe, 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 });
21321
+ return s.type && (p = `${yr(`${s.vendor}_${s.type}`)}/${u}`), ks({ os: n, os_version: l, sdk: t, sdk_version: ys, device_model: p, env: i, domain: Qe, 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 });
21314
21322
  }
21315
21323
  function yr(a2) {
21316
21324
  return a2.replace(/ /g, "_");
21317
21325
  }
21318
- function ai(a2, e = 300) {
21326
+ function oi(a2, e = 300) {
21319
21327
  let t;
21320
21328
  return function(...i) {
21321
21329
  clearTimeout(t), t = void 0;
@@ -21325,7 +21333,7 @@ function ai(a2, e = 300) {
21325
21333
  }, e);
21326
21334
  };
21327
21335
  }
21328
- function A(a2) {
21336
+ function I(a2) {
21329
21337
  return (e) => (t) => a2(t, e);
21330
21338
  }
21331
21339
  function Bm(a2) {
@@ -21334,7 +21342,7 @@ function Bm(a2) {
21334
21342
  return a2 ? e.sessionStore[a2] : e.sessionStore;
21335
21343
  };
21336
21344
  }
21337
- 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, $t, import_eventemitter24, import_uuid9, import_uuid10, ja, Ja, Qa, Zt, rs, ss, is, m, M, mr, Xa, Mr, Sr, Za, as, gr, os, ds, to, d, ge, O, ls, Ue, ro, ic, us, ps, ms, Ss, Qe, k, f, ao, S, vr, gs, le, Ts, vs, Ms, H, y, kr, Q, Pr, Er, br, Rs, Is, As, Hs, Cs, Rr, Ls, Ir, Ns, Ar, Os, Hr, Cr, Bs, Vs, kt, rt, B, Ho, Kh, qh, K, Ti, Qs, N, Br, Co, _e, Qh, Lo, me, Do, te, ye, zh, Yh, ae, Y, wo, Ys, Xh, Zh, Fr, _o, tm, im, rm, sm, am, om, nm, cm, Rt, No, dm, ie, Zs, lm, um, Se, pm, at, Oo, ea, hm, ta, mm, Sm, gm, Tm, fm, vm, Mm, ym, km, ia, Rm, xo, Im, sa, Gr, aa, oa, na, ca, da, la, ua, pa, It, b, Wr, At, ha, Uo, Bo, q, $r, Vo, Fo, Go, Wo, $o, X, Um, Fm, Gm, fi, ma, Wm, $m, Km, Ko, qo, jm, Sa, Jm, jo, Qm, zm, Ym, Xm, Zm, eS, ga, Ta, iS, rS, fa, sS, aS, va, oS, nS, cS, Ma, ya, Jo, Qo, zo, dS, lS, uS, pS, hS, ka, bS, Yo, RS, IS, AS, Zo, en, sn, Qr, Pe, j, tr, lr, Pn, En, bn, Rn, Ka, In, qa, es, be, An, Hn, Cn, Ln, Dn, wn, _n, Nn, On, xn, ts, Un, Bn, Vn, Fn, Gn, Wn;
21345
+ 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, Kt, import_eventemitter24, import_uuid9, import_uuid10, ja, Ja, Qa, ei, as, os, ss, m, M, Sr, Xa, Mr, gr, Za, ns, Tr, cs, us, to, d, ge, O, ps, Ue, ro, ic, hs, ms, gs, Ts, Qe, k, f, ao, S, vr, fs, le, vs, ys, ks, H, y, kr, Q, Pr, Er, Ar, Rs, As, Is, Hs, Cs, Ir, Ls, Hr, Ns, Cr, Os, Lr, Dr, Bs, Vs, Pt, rt, B, Ho, Kh, qh, K, fi, Qs, N, Fr, Co, _e, Qh, Lo, me, Do, te, ye, zh, Yh, ae, Y, wo, Ys, Xh, Zh, Wr, _o, tm, im, rm, sm, am, om, nm, cm, At, No, dm, ie, Zs, lm, um, Se, pm, at, Oo, ea, hm, ta, mm, Sm, gm, Tm, fm, vm, Mm, ym, km, ia, Rm, xo, Am, sa, $r, aa, oa, na, ca, da, la, ua, pa, It, b, Kr, Ht, ha, Uo, Bo, q, qr, Vo, Fo, Go, Wo, $o, X, Um, Fm, Gm, vi, ma, Wm, $m, Km, Ko, qo, jm, Sa, Jm, jo, Qm, zm, Ym, Xm, Zm, eS, ga, Ta, iS, rS, fa, sS, aS, va, oS, nS, cS, Ma, ya, Jo, Qo, zo, dS, lS, uS, pS, hS, ka, bS, Yo, RS, AS, IS, Zo, en, sn, Yr, Pe, j, ir, ur, Pn, En, bn, Rn, Ka, An, qa, is, be, In, Hn, Cn, Ln, Dn, wn, _n, Nn, On, xn, rs, Un, Bn, Vn, Fn, Gn, Wn;
21338
21346
  var init_dist = __esm({
21339
21347
  "../hms-video-store/dist/index.js"() {
21340
21348
  "use strict";
@@ -21357,7 +21365,7 @@ var init_dist = __esm({
21357
21365
  import_eventemitter22 = require("eventemitter2");
21358
21366
  import_uuid8 = require("uuid");
21359
21367
  import_eventemitter23 = require("eventemitter2");
21360
- $t = __toESM(require_lib());
21368
+ Kt = __toESM(require_lib());
21361
21369
  import_eventemitter24 = __toESM(require("eventemitter2"));
21362
21370
  import_uuid9 = require("uuid");
21363
21371
  import_uuid10 = require("uuid");
@@ -21365,38 +21373,38 @@ var init_dist = __esm({
21365
21373
  ja = Object.defineProperty;
21366
21374
  Ja = Object.defineProperties;
21367
21375
  Qa = Object.getOwnPropertyDescriptors;
21368
- Zt = Object.getOwnPropertySymbols;
21369
- rs = Object.prototype.hasOwnProperty;
21370
- ss = Object.prototype.propertyIsEnumerable;
21371
- is = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21376
+ ei = Object.getOwnPropertySymbols;
21377
+ as = Object.prototype.hasOwnProperty;
21378
+ os = Object.prototype.propertyIsEnumerable;
21379
+ ss = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21372
21380
  m = (a2, e) => {
21373
21381
  for (var t in e || (e = {}))
21374
- rs.call(e, t) && is(a2, t, e[t]);
21375
- if (Zt)
21376
- for (var t of Zt(e))
21377
- ss.call(e, t) && is(a2, t, e[t]);
21382
+ as.call(e, t) && ss(a2, t, e[t]);
21383
+ if (ei)
21384
+ for (var t of ei(e))
21385
+ os.call(e, t) && ss(a2, t, e[t]);
21378
21386
  return a2;
21379
21387
  };
21380
21388
  M = (a2, e) => Ja(a2, Qa(e));
21381
- mr = (a2, e) => {
21389
+ Sr = (a2, e) => {
21382
21390
  var t = {};
21383
21391
  for (var i in a2)
21384
- rs.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21385
- if (a2 != null && Zt)
21386
- for (var i of Zt(a2))
21387
- e.indexOf(i) < 0 && ss.call(a2, i) && (t[i] = a2[i]);
21392
+ as.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21393
+ if (a2 != null && ei)
21394
+ for (var i of ei(a2))
21395
+ e.indexOf(i) < 0 && os.call(a2, i) && (t[i] = a2[i]);
21388
21396
  return t;
21389
21397
  };
21390
21398
  Xa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21391
21399
  Mr = Xa((Fc, no) => {
21392
- no.exports = { version: "0.12.16", 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"] };
21400
+ no.exports = { version: "0.12.17-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21393
21401
  });
21394
- Sr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Sr || {});
21402
+ gr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(gr || {});
21395
21403
  Za = ((e) => (e.CHAT = "chat", e))(Za || {});
21396
- as = ((t) => (t.INFO = "info", t.ERROR = "error", t))(as || {});
21397
- gr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(gr || {});
21398
- os = ((t) => (t.audio = "audio", t.video = "video", t))(os || {});
21399
- ds = ((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))(ds || {});
21404
+ ns = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ns || {});
21405
+ Tr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(Tr || {});
21406
+ cs = ((t) => (t.audio = "audio", t.video = "video", t))(cs || {});
21407
+ 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 || {});
21400
21408
  to = typeof window != "undefined" && typeof window.expect != "undefined";
21401
21409
  d = class {
21402
21410
  static v(e, ...t) {
@@ -21466,11 +21474,11 @@ var init_dist = __esm({
21466
21474
  d.level = to ? 7 : 0;
21467
21475
  ge = new import_ua_parser_js.UAParser();
21468
21476
  O = typeof window != "undefined";
21469
- Ue = typeof window == "undefined" && !((ls = ge.getBrowser().name) != null && ls.toLowerCase().includes("electron"));
21477
+ Ue = typeof window == "undefined" && !((ps = ge.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
21470
21478
  ro = () => !Ue;
21471
21479
  ic = ro();
21472
- ms = ((ps = (us = ge.getBrowser()) == null ? void 0 : us.name) == null ? void 0 : ps.toLowerCase()) === "firefox";
21473
- Ss = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ss || {});
21480
+ gs = ((ms = (hs = ge.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
21481
+ Ts = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ts || {});
21474
21482
  Qe = so();
21475
21483
  k = { 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 } };
21476
21484
  f = class a extends Error {
@@ -21635,7 +21643,7 @@ var init_dist = __esm({
21635
21643
  return this.valuesMap.size;
21636
21644
  }
21637
21645
  };
21638
- gs = () => {
21646
+ fs = () => {
21639
21647
  try {
21640
21648
  O && !localStorage && (window.localStorage = new vr());
21641
21649
  } catch (a2) {
@@ -21649,7 +21657,7 @@ var init_dist = __esm({
21649
21657
  }
21650
21658
  getStorage() {
21651
21659
  try {
21652
- return O && !this.storage && (gs(), this.storage = window.localStorage), this.storage;
21660
+ return O && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
21653
21661
  } catch (e) {
21654
21662
  return d.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21655
21663
  }
@@ -21669,16 +21677,16 @@ var init_dist = __esm({
21669
21677
  (e = this.getStorage()) == null || e.removeItem(this.key);
21670
21678
  }
21671
21679
  };
21672
- Ts = () => {
21680
+ vs = () => {
21673
21681
  let a2, e = new le("hms-analytics-deviceId"), t = e.get();
21674
21682
  return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
21675
21683
  };
21676
- vs = Mr().version;
21677
- Ms = (a2, e = ",") => Object.keys(a2).filter((t) => oe(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21684
+ ys = Mr().version;
21685
+ ks = (a2, e = ",") => Object.keys(a2).filter((t) => oe(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21678
21686
  H = class {
21679
21687
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21680
- this.metadata = { peer: {}, userAgent: Tt() };
21681
- 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 = Ts();
21688
+ this.metadata = { peer: {}, userAgent: ft() };
21689
+ 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();
21682
21690
  }
21683
21691
  toSignalParams() {
21684
21692
  return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
@@ -21694,12 +21702,12 @@ var init_dist = __esm({
21694
21702
  return new H({ name: i, level: r, properties: s });
21695
21703
  }
21696
21704
  static preview(i) {
21697
- var r = i, { error: e } = r, t = mr(r, ["error"]);
21705
+ var r = i, { error: e } = r, t = Sr(r, ["error"]);
21698
21706
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21699
21707
  return new H({ name: s, level: o, properties: n });
21700
21708
  }
21701
21709
  static join(i) {
21702
- var r = i, { error: e } = r, t = mr(r, ["error"]);
21710
+ var r = i, { error: e } = r, t = Sr(r, ["error"]);
21703
21711
  let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
21704
21712
  return new H({ name: s, level: o, properties: n });
21705
21713
  }
@@ -21818,15 +21826,15 @@ var init_dist = __esm({
21818
21826
  Q = new kr();
21819
21827
  Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
21820
21828
  Er = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Er || {});
21821
- br = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(br || {});
21829
+ Ar = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ar || {});
21822
21830
  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 || {});
21823
- Is = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Is || {});
21824
- As = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(As || {});
21831
+ As = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(As || {});
21832
+ Is = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Is || {});
21825
21833
  Hs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Hs || {});
21826
21834
  Cs = ((e) => (e.CAPTION = "caption", e))(Cs || {});
21827
- Rr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Rr || {});
21835
+ Ir = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Ir || {});
21828
21836
  Ls = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ls || {});
21829
- Ir = class {
21837
+ Hr = class {
21830
21838
  constructor() {
21831
21839
  this.TAG = "[HMSIntersectionObserverWrapper]";
21832
21840
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21853,8 +21861,8 @@ var init_dist = __esm({
21853
21861
  return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21854
21862
  }
21855
21863
  };
21856
- Ns = new Ir();
21857
- Ar = class {
21864
+ Ns = new Hr();
21865
+ Cr = class {
21858
21866
  constructor() {
21859
21867
  this.TAG = "[HMSResizeObserverWrapper]";
21860
21868
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21867,7 +21875,7 @@ var init_dist = __esm({
21867
21875
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
21868
21876
  };
21869
21877
  this.createObserver = () => {
21870
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(ai(this.handleResize, 300)));
21878
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(oi(this.handleResize, 300)));
21871
21879
  };
21872
21880
  this.handleResize = (e) => {
21873
21881
  var t;
@@ -21881,12 +21889,12 @@ var init_dist = __esm({
21881
21889
  return e || d.w(this.TAG, "Resize Observer is not supported"), e;
21882
21890
  }
21883
21891
  };
21884
- Os = new Ar();
21885
- Hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Hr || {});
21886
- Cr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Cr || {});
21892
+ Os = new Cr();
21893
+ Lr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Lr || {});
21894
+ Dr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Dr || {});
21887
21895
  Bs = "https://event.100ms.live/v2/client/report";
21888
21896
  Vs = "https://event-nonprod.100ms.live/v2/client/report";
21889
- kt = Math.pow(2, 31) - 1;
21897
+ Pt = Math.pow(2, 31) - 1;
21890
21898
  rt = class {
21891
21899
  };
21892
21900
  rt.makePeerId = () => (0, import_uuid7.v4)();
@@ -21895,10 +21903,10 @@ var init_dist = __esm({
21895
21903
  Kh = createSelector(Ho, (a2) => a2.length === 0 ? null : a2.at(-1));
21896
21904
  qh = createSelector(B, (a2) => a2.id);
21897
21905
  K = (a2) => a2.peers;
21898
- Ti = (a2) => a2.messages.byID;
21906
+ fi = (a2) => a2.messages.byID;
21899
21907
  Qs = (a2) => a2.messages.allIDs;
21900
21908
  N = (a2) => a2.tracks;
21901
- Br = (a2) => a2.appData;
21909
+ Fr = (a2) => a2.appData;
21902
21910
  Co = (a2) => a2.speakers;
21903
21911
  _e = createSelector([B], (a2) => a2 && a2.isConnected);
21904
21912
  Qh = createSelector([_e, 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));
@@ -21930,7 +21938,7 @@ var init_dist = __esm({
21930
21938
  }
21931
21939
  return null;
21932
21940
  });
21933
- Fr = createSelector(te, N, (a2, e) => {
21941
+ Wr = createSelector(te, N, (a2, e) => {
21934
21942
  let { video: t, audio: i } = xe(e, a2);
21935
21943
  return !!(t || i);
21936
21944
  });
@@ -21970,20 +21978,20 @@ var init_dist = __esm({
21970
21978
  am = createSelector(K, N, (a2, e) => {
21971
21979
  for (let t in e) {
21972
21980
  let i = e[t];
21973
- if (ii(i) && i.peerId)
21981
+ if (ri(i) && i.peerId)
21974
21982
  return a2[i.peerId];
21975
21983
  }
21976
21984
  });
21977
- om = createSelector(Do, (a2) => a2.filter(ns));
21985
+ om = createSelector(Do, (a2) => a2.filter(ds));
21978
21986
  nm = createSelector(Qs, (a2) => a2.length);
21979
- cm = createSelector(Ti, (a2) => Object.values(a2).filter((e) => !e.read).length);
21980
- Rt = createSelector(Qs, Ti, (a2, e) => {
21987
+ cm = createSelector(fi, (a2) => Object.values(a2).filter((e) => !e.read).length);
21988
+ At = createSelector(Qs, fi, (a2, e) => {
21981
21989
  let t = [];
21982
21990
  return a2.forEach((i) => {
21983
21991
  t.push(e[i]);
21984
21992
  }), t;
21985
21993
  });
21986
- No = createSelector(Rt, (a2) => a2.filter((e) => {
21994
+ No = createSelector(At, (a2) => a2.filter((e) => {
21987
21995
  var t;
21988
21996
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
21989
21997
  }));
@@ -22017,20 +22025,20 @@ var init_dist = __esm({
22017
22025
  ia = (a2) => a2.polls;
22018
22026
  Rm = createSelector(me, (a2) => a2.filter((e) => e.isHandRaised));
22019
22027
  xo = (a2) => a2.whiteboards;
22020
- Im = createSelector(xo, (a2) => Object.values(a2)[0]);
22028
+ Am = createSelector(xo, (a2) => Object.values(a2)[0]);
22021
22029
  sa = (a2 = "audio") => (e) => e.playlist[a2].list;
22022
- Gr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22030
+ $r = (a2 = "audio") => (e) => e.playlist[a2].selection;
22023
22031
  aa = (a2 = "audio") => (e) => e.playlist[a2].progress;
22024
22032
  oa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22025
22033
  na = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22026
22034
  ca = (a2 = "audio") => (e) => e.playlist[a2].volume;
22027
22035
  da = (a2 = "audio") => createSelector(sa(a2), (e) => Object.values(e));
22028
- la = (a2 = "audio") => createSelector(sa(a2), Gr(a2), (e, t) => {
22036
+ la = (a2 = "audio") => createSelector(sa(a2), $r(a2), (e, t) => {
22029
22037
  if (t.id)
22030
22038
  return e[t.id];
22031
22039
  });
22032
- ua = { selection: Gr("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
22033
- pa = { selection: Gr("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
22040
+ ua = { selection: $r("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
22041
+ pa = { selection: $r("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
22034
22042
  It = "HMS-Store:";
22035
22043
  b = class {
22036
22044
  static v(e, ...t) {
@@ -22098,127 +22106,127 @@ var init_dist = __esm({
22098
22106
  }
22099
22107
  };
22100
22108
  b.level = 0;
22101
- Wr = (a2, e) => e;
22102
- At = (a2, e) => e;
22109
+ Kr = (a2, e) => e;
22110
+ Ht = (a2, e) => e;
22103
22111
  ha = (a2, e) => e;
22104
22112
  Uo = (a2, e) => e;
22105
22113
  Bo = (a2, e) => e;
22106
- q = createSelector([K, Wr], (a2, e) => e ? a2[e] : null);
22107
- $r = createSelector([N, At], (a2, e) => e ? a2[e] : null);
22108
- Vo = createSelector([N, At], (a2, e) => {
22114
+ q = createSelector([K, Kr], (a2, e) => e ? a2[e] : null);
22115
+ qr = createSelector([N, Ht], (a2, e) => e ? a2[e] : null);
22116
+ Vo = createSelector([N, Ht], (a2, e) => {
22109
22117
  if (!e)
22110
22118
  return null;
22111
22119
  let t = a2[e];
22112
22120
  return (t == null ? void 0 : t.type) === "video" ? t : null;
22113
22121
  });
22114
- Fo = createSelector([N, At], (a2, e) => {
22122
+ Fo = createSelector([N, Ht], (a2, e) => {
22115
22123
  if (!e)
22116
22124
  return null;
22117
22125
  let t = a2[e];
22118
22126
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
22119
22127
  });
22120
- Go = createSelector([N, At], (a2, e) => {
22128
+ Go = createSelector([N, Ht], (a2, e) => {
22121
22129
  if (!e)
22122
22130
  return null;
22123
22131
  let t = a2[e];
22124
22132
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22125
22133
  });
22126
- Wo = createSelector([N, At], (a2, e) => {
22134
+ Wo = createSelector([N, Ht], (a2, e) => {
22127
22135
  if (!e)
22128
22136
  return null;
22129
22137
  let t = a2[e];
22130
22138
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22131
22139
  });
22132
22140
  $o = createSelector([ia, Bo], (a2, e) => e ? a2[e] : null);
22133
- X = A(q);
22134
- Um = A(createSelector([Br, Uo], (a2, e) => {
22141
+ X = I(q);
22142
+ Um = I(createSelector([Fr, Uo], (a2, e) => {
22135
22143
  if (a2)
22136
22144
  return e ? a2[e] : a2;
22137
22145
  }));
22138
- Fm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
22139
- Gm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22140
- fi = A($r);
22141
- ma = A(Vo);
22142
- Wm = A(Fo);
22143
- $m = A(Go);
22144
- Km = A(Wo);
22145
- Ko = A((a2, e) => {
22146
+ Fm = I(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
22147
+ Gm = I(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22148
+ vi = I(qr);
22149
+ ma = I(Vo);
22150
+ Wm = I(Fo);
22151
+ $m = I(Go);
22152
+ Km = I(Wo);
22153
+ Ko = I((a2, e) => {
22146
22154
  let t = q(a2, e);
22147
22155
  if (t && t.videoTrack && t.videoTrack !== "")
22148
22156
  return a2.tracks[t.videoTrack];
22149
22157
  });
22150
- qo = A((a2, e) => {
22158
+ qo = I((a2, e) => {
22151
22159
  let t = q(a2, e);
22152
22160
  if (t && t.audioTrack && t.audioTrack !== "")
22153
22161
  return a2.tracks[t.audioTrack];
22154
22162
  });
22155
- jm = A((a2, e) => {
22163
+ jm = I((a2, e) => {
22156
22164
  let t = q(a2, e);
22157
22165
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22158
22166
  });
22159
22167
  Sa = (a2, e) => e ? a2.speakers[e] : null;
22160
- Jm = A(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22168
+ Jm = I(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22161
22169
  jo = (a2, e) => {
22162
22170
  let t = qo(e)(a2);
22163
22171
  return Sa(a2, t == null ? void 0 : t.id);
22164
22172
  };
22165
- Qm = A(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22166
- zm = A((a2, e) => {
22173
+ Qm = I(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22174
+ zm = I((a2, e) => {
22167
22175
  if (e)
22168
22176
  return a2.connectionQualities[e];
22169
22177
  });
22170
- Ym = A((a2, e) => {
22178
+ Ym = I((a2, e) => {
22171
22179
  let t = q(a2, e);
22172
22180
  if (t) {
22173
22181
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ut(a2.tracks[r]));
22174
22182
  return i ? a2.tracks[i] : void 0;
22175
22183
  }
22176
22184
  });
22177
- Xm = A(createSelector(N, q, (a2, e) => {
22185
+ Xm = I(createSelector(N, q, (a2, e) => {
22178
22186
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22179
22187
  let r = a2[i];
22180
22188
  return ht(r) && pt(r);
22181
22189
  });
22182
22190
  return t ? a2[t] : void 0;
22183
22191
  }));
22184
- Zm = A(createSelector(N, q, (a2, e) => {
22192
+ Zm = I(createSelector(N, q, (a2, e) => {
22185
22193
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22186
22194
  let r = a2[i];
22187
22195
  return ht(r) && ut(r);
22188
22196
  });
22189
22197
  return t ? a2[t] : void 0;
22190
22198
  }));
22191
- eS = A(createSelector(N, q, (a2, e) => {
22199
+ eS = I(createSelector(N, q, (a2, e) => {
22192
22200
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22193
22201
  let r = a2[i];
22194
- return ii(r) && ut(r);
22202
+ return ri(r) && ut(r);
22195
22203
  });
22196
22204
  return t ? a2[t] : void 0;
22197
22205
  }));
22198
- ga = A(createSelector(N, q, (a2, e) => xe(a2, e)));
22206
+ ga = I(createSelector(N, q, (a2, e) => xe(a2, e)));
22199
22207
  Ta = (a2) => createSelector(ga(a2), (e) => e.audio);
22200
- iS = A((a2, e) => {
22208
+ iS = I((a2, e) => {
22201
22209
  let t = q(a2, e);
22202
22210
  return je(a2, t == null ? void 0 : t.audioTrack);
22203
22211
  });
22204
- rS = A((a2, e) => {
22212
+ rS = I((a2, e) => {
22205
22213
  let t = q(a2, e);
22206
22214
  return je(a2, t == null ? void 0 : t.videoTrack);
22207
22215
  });
22208
- fa = A((a2, e) => {
22216
+ fa = I((a2, e) => {
22209
22217
  if (e && a2.tracks[e])
22210
22218
  return a2.tracks[e].volume === 0;
22211
22219
  });
22212
- sS = A((a2, e) => {
22220
+ sS = I((a2, e) => {
22213
22221
  let t = q(a2, e);
22214
22222
  return fa(t == null ? void 0 : t.audioTrack)(a2);
22215
22223
  });
22216
- aS = A((a2, e) => {
22224
+ aS = I((a2, e) => {
22217
22225
  let t = Ta(e)(a2);
22218
22226
  return fa(t == null ? void 0 : t.id)(a2);
22219
22227
  });
22220
- va = A((a2, e) => {
22221
- let t = $r(a2, e);
22228
+ va = I((a2, e) => {
22229
+ let t = qr(a2, e);
22222
22230
  if (t) {
22223
22231
  if (t.type !== "audio") {
22224
22232
  b.w("Please pass audio track here");
@@ -22227,16 +22235,16 @@ var init_dist = __esm({
22227
22235
  return t.volume;
22228
22236
  }
22229
22237
  });
22230
- oS = A((a2, e) => {
22238
+ oS = I((a2, e) => {
22231
22239
  let t = q(a2, e);
22232
22240
  return va(t == null ? void 0 : t.audioTrack)(a2);
22233
22241
  });
22234
- nS = A((a2, e) => {
22242
+ nS = I((a2, e) => {
22235
22243
  let t = Ta(e)(a2);
22236
22244
  return va(t == null ? void 0 : t.id)(a2);
22237
22245
  });
22238
- cS = A((a2, e) => {
22239
- let t = $r(a2, e);
22246
+ cS = I((a2, e) => {
22247
+ let t = qr(a2, e);
22240
22248
  if (t) {
22241
22249
  if (t.type !== "video") {
22242
22250
  b.w("Please pass video track here");
@@ -22245,40 +22253,40 @@ var init_dist = __esm({
22245
22253
  return t.layer;
22246
22254
  }
22247
22255
  });
22248
- Ma = createSelector([Rt, ye, Wr], (a2, e, t) => {
22256
+ Ma = createSelector([At, ye, Kr], (a2, e, t) => {
22249
22257
  if (t)
22250
22258
  return a2.filter((i) => {
22251
22259
  var r;
22252
22260
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22253
22261
  });
22254
22262
  });
22255
- ya = createSelector([Rt, ha], (a2, e) => {
22263
+ ya = createSelector([At, ha], (a2, e) => {
22256
22264
  if (e)
22257
22265
  return a2.filter((t) => {
22258
22266
  var i, r;
22259
22267
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22260
22268
  });
22261
22269
  });
22262
- Jo = createSelector(Rt, (a2) => a2.filter((e) => {
22270
+ Jo = createSelector(At, (a2) => a2.filter((e) => {
22263
22271
  var t;
22264
22272
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22265
22273
  }));
22266
22274
  Qo = createSelector([ya, ha], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22267
- zo = createSelector([Ma, Wr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22275
+ zo = createSelector([Ma, Kr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22268
22276
  dS = createSelector(Jo, (a2) => a2.filter((e) => !e.read).length);
22269
- lS = A(Ma);
22270
- uS = A(ya);
22271
- pS = A(Qo);
22272
- hS = A(zo);
22273
- ka = A($o);
22277
+ lS = I(Ma);
22278
+ uS = I(ya);
22279
+ pS = I(Qo);
22280
+ hS = I(zo);
22281
+ ka = I($o);
22274
22282
  bS = createSelector([K, N], (a2, e) => Object.values(a2).map((i) => {
22275
22283
  var r;
22276
22284
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22277
22285
  }));
22278
22286
  Yo = (a2) => a2.roleChangeRequests[0] || null;
22279
22287
  RS = createSelector([Yo, K, Se], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22280
- IS = createSelector([at], (a2) => mt(a2));
22281
- AS = createSelector([ea], (a2) => mt(a2));
22288
+ AS = createSelector([at], (a2) => mt(a2));
22289
+ IS = createSelector([ea], (a2) => mt(a2));
22282
22290
  Zo = createSelector([Y, N], (a2, e) => {
22283
22291
  let t = null;
22284
22292
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
@@ -22288,7 +22296,7 @@ var init_dist = __esm({
22288
22296
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22289
22297
  });
22290
22298
  sn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(sn || {});
22291
- Qr = class {
22299
+ Yr = class {
22292
22300
  constructor() {
22293
22301
  this.TAG = "[HTTPAnalyticsTransport]";
22294
22302
  this.failedEvents = new le("client-events");
@@ -22333,20 +22341,20 @@ var init_dist = __esm({
22333
22341
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22334
22342
  }
22335
22343
  };
22336
- Pe = new Qr();
22344
+ Pe = new Yr();
22337
22345
  j = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(j || {});
22338
- tr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(tr || {});
22339
- lr = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lr || {});
22346
+ ir = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(ir || {});
22347
+ ur = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ur || {});
22340
22348
  Pn = (a2) => a2.localPeer.id;
22341
22349
  En = (a2) => a2.localPeer.audioTrack;
22342
22350
  bn = (a2) => a2.localPeer.videoTrack;
22343
22351
  Rn = (a2, e) => e;
22344
22352
  Ka = (a2, e) => e;
22345
- In = (a2) => a2.remoteTrackStats;
22353
+ An = (a2) => a2.remoteTrackStats;
22346
22354
  qa = (a2) => a2.peerStats;
22347
- es = (a2) => a2.localTrackStats;
22355
+ is = (a2) => a2.localTrackStats;
22348
22356
  be = createSelector([qa, Pn], (a2, e) => a2[e]);
22349
- An = createSelector(be, (a2) => {
22357
+ In = createSelector(be, (a2) => {
22350
22358
  var e;
22351
22359
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22352
22360
  });
@@ -22379,20 +22387,20 @@ var init_dist = __esm({
22379
22387
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22380
22388
  });
22381
22389
  On = createSelector([qa, Rn], (a2, e) => e ? a2[e] : void 0);
22382
- xn = createSelector([In, Ka], (a2, e) => e ? a2[e] : void 0);
22383
- ts = createSelector([es, Ka], (a2, e) => e ? a2[e] : void 0);
22384
- Un = A(On);
22385
- Bn = A(xn);
22386
- Vn = createSelector([es, En], (a2, e) => {
22390
+ xn = createSelector([An, Ka], (a2, e) => e ? a2[e] : void 0);
22391
+ rs = createSelector([is, Ka], (a2, e) => e ? a2[e] : void 0);
22392
+ Un = I(On);
22393
+ Bn = I(xn);
22394
+ Vn = createSelector([is, En], (a2, e) => {
22387
22395
  var t;
22388
22396
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22389
22397
  });
22390
- Fn = A(createSelector(ts, (a2) => a2 == null ? void 0 : a2[0]));
22391
- Gn = createSelector([es, bn], (a2, e) => {
22398
+ Fn = I(createSelector(rs, (a2) => a2 == null ? void 0 : a2[0]));
22399
+ Gn = createSelector([is, bn], (a2, e) => {
22392
22400
  var t;
22393
22401
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22394
22402
  });
22395
- Wn = A(createSelector(ts, (a2) => a2));
22403
+ Wn = I(createSelector(rs, (a2) => a2));
22396
22404
  }
22397
22405
  });
22398
22406
 
@@ -23817,6 +23825,7 @@ var init_ScreenShareToggle = __esm({
23817
23825
  import_react_sdk47 = require("@100mslive/react-sdk");
23818
23826
  import_react_icons42 = require("@100mslive/react-icons");
23819
23827
  init_shareScreenOptions();
23828
+ init_ToastManager();
23820
23829
  init_Layout();
23821
23830
  init_Tooltip2();
23822
23831
  init_ShareMenuIcon();
@@ -23826,7 +23835,17 @@ var init_ScreenShareToggle = __esm({
23826
23835
  ScreenshareToggle = ({ css: css2 = {} }) => {
23827
23836
  const isAllowedToPublish = (0, import_react_sdk47.useHMSStore)(import_react_sdk47.selectIsAllowedToPublish);
23828
23837
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
23829
- const { amIScreenSharing, screenShareVideoTrackId: video, toggleScreenShare } = (0, import_react_sdk47.useScreenShare)();
23838
+ const {
23839
+ amIScreenSharing,
23840
+ screenShareVideoTrackId: video,
23841
+ toggleScreenShare
23842
+ } = (0, import_react_sdk47.useScreenShare)((error) => {
23843
+ ToastManager.addToast({
23844
+ title: error.message,
23845
+ variant: "error",
23846
+ duration: 2e3
23847
+ });
23848
+ });
23830
23849
  const { requestPermission } = (0, import_react_sdk47.useAwayNotifications)();
23831
23850
  const isVideoScreenshare = amIScreenSharing && !!video;
23832
23851
  if (!isAllowedToPublish.screen || !isScreenshareSupported()) {
@@ -29227,29 +29246,6 @@ var init_VBHandler = __esm({
29227
29246
  }
29228
29247
  });
29229
29248
 
29230
- // src/Prebuilt/components/VirtualBackground/constants.ts
29231
- var defaultMedia2;
29232
- var init_constants4 = __esm({
29233
- "src/Prebuilt/components/VirtualBackground/constants.ts"() {
29234
- "use strict";
29235
- init_define_process_env();
29236
- defaultMedia2 = [
29237
- "https://assets.100ms.live/webapp/vb-mini/vb-1.jpg",
29238
- "https://assets.100ms.live/webapp/vb-mini/vb-2.jpg",
29239
- "https://assets.100ms.live/webapp/vb-mini/vb-3.png",
29240
- "https://assets.100ms.live/webapp/vb-mini/vb-4.jpg",
29241
- "https://assets.100ms.live/webapp/vb-mini/vb-5.jpg",
29242
- "https://assets.100ms.live/webapp/vb-mini/vb-6.jpg",
29243
- "https://assets.100ms.live/webapp/vb-mini/vb-7.jpg",
29244
- "https://assets.100ms.live/webapp/vb-mini/vb-8.jpg",
29245
- "https://assets.100ms.live/webapp/vb-mini/vb-9.jpg",
29246
- "https://assets.100ms.live/webapp/vb-mini/vb-10.jpg",
29247
- "https://assets.100ms.live/webapp/vb-mini/vb-11.jpg",
29248
- "https://assets.100ms.live/webapp/vb-mini/vb-12.jpg"
29249
- ];
29250
- }
29251
- });
29252
-
29253
29249
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
29254
29250
  var import_react163, import_react_use30, import_hms_virtual_background3, import_react_sdk82, import_react_icons80, iconDims, VBPicker;
29255
29251
  var init_VBPicker = __esm({
@@ -29270,7 +29266,6 @@ var init_VBPicker = __esm({
29270
29266
  init_useSidepaneResetOnLayoutUpdate();
29271
29267
  init_useUISettings();
29272
29268
  init_constants();
29273
- init_constants4();
29274
29269
  iconDims = { height: "40px", width: "40px" };
29275
29270
  VBPicker = ({ backgroundMedia = [] }) => {
29276
29271
  var _a7;
@@ -29291,7 +29286,7 @@ var init_VBPicker = __esm({
29291
29286
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
29292
29287
  const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
29293
29288
  const background = (0, import_react_sdk82.useHMSStore)(Um(APP_DATA.background));
29294
- const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
29289
+ const mediaList = backgroundMedia.map((media) => media.url || "");
29295
29290
  const inPreview = roomState === import_react_sdk82.HMSRoomState.Preview;
29296
29291
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
29297
29292
  (0, import_react163.useEffect)(() => {
@@ -31218,9 +31213,9 @@ var init_ScreenshareLayout = __esm({
31218
31213
  }
31219
31214
  });
31220
31215
 
31221
- // ../../../../../../../tmp/tmp-2785-c4pij6OKXtXK/190dadffacd1/index.css
31222
- var init_dadffacd1 = __esm({
31223
- "../../../../../../../tmp/tmp-2785-c4pij6OKXtXK/190dadffacd1/index.css"() {
31216
+ // ../../../../../../../tmp/tmp-2795-4BfSpp3BcRJE/190fe5a3cb50/index.css
31217
+ var init_fe5a3cb50 = __esm({
31218
+ "../../../../../../../tmp/tmp-2795-4BfSpp3BcRJE/190fe5a3cb50/index.css"() {
31224
31219
  }
31225
31220
  });
31226
31221
 
@@ -31242,7 +31237,7 @@ var init_WhiteboardLayout = __esm({
31242
31237
  init_ProminenceLayout();
31243
31238
  init_useUISettings();
31244
31239
  init_constants();
31245
- init_dadffacd1();
31240
+ init_fe5a3cb50();
31246
31241
  WhiteboardEmbed = () => {
31247
31242
  const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31248
31243
  const { token, endpoint, zoomToContent } = (0, import_react_sdk94.useWhiteboard)(isMobile);
@@ -36601,7 +36596,7 @@ var require_react_is_production_min = __commonJS({
36601
36596
  }
36602
36597
  }
36603
36598
  }
36604
- function A2(a2) {
36599
+ function A(a2) {
36605
36600
  return z(a2) === m2;
36606
36601
  }
36607
36602
  exports.AsyncMode = l;
@@ -36618,9 +36613,9 @@ var require_react_is_production_min = __commonJS({
36618
36613
  exports.StrictMode = f2;
36619
36614
  exports.Suspense = p;
36620
36615
  exports.isAsyncMode = function(a2) {
36621
- return A2(a2) || z(a2) === l;
36616
+ return A(a2) || z(a2) === l;
36622
36617
  };
36623
- exports.isConcurrentMode = A2;
36618
+ exports.isConcurrentMode = A;
36624
36619
  exports.isContextConsumer = function(a2) {
36625
36620
  return z(a2) === k2;
36626
36621
  };