@100mslive/roomkit-react 0.3.12-alpha.8 → 0.3.13-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
107
107
  var define_process_env_default;
108
108
  var init_define_process_env = __esm({
109
109
  "<define:process.env>"() {
110
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_f23148d2-da97-4e7e-8729-768782d45c1c", GIT_CLONE_PROTECTION_ACTIVE: "false", 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.2-alpha.8", 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.3 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.12-alpha.8", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_f23148d2-da97-4e7e-8729-768782d45c1c", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/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.12-alpha.8", 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.8", 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: "593", 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.10/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240603.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.3/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:17376", 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.12-alpha.8", 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: "true", GITHUB_RUN_ID: "9462359937", 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: "e7d64aa51c443d954396dde339867efe572c0982", 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: "10c18f22c900480d5f4019804340e74e0e8b80e74334f44ddc0f0f2575c479ed", 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--1718095273649-0.6444348913573028:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718095273452-0.27461651391148423:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718095247567-0.05113045918839276:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718095247386-0.7049782734888921:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/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.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_c4093190-a8a6-4c86-babc-5378a04407e6", INVOCATION_ID: "12e11d95729f4888a4a09b2a034e2560", 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: "569", 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_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 61", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "true", 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.12-alpha.8", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.12-alpha.8", 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: "e7d64aa51c443d954396dde339867efe572c0982", 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_f23148d2-da97-4e7e-8729-768782d45c1c", 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", 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_f23148d2-da97-4e7e-8729-768782d45c1c", 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__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_f23148d2-da97-4e7e-8729-768782d45c1c" };
110
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_aee35c30-81b4-4851-a088-db16e1c3ba79", 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.3-alpha.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.3 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.13-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_aee35c30-81b4-4851-a088-db16e1c3ba79", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/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.13-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.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.8", 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: "590", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_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.11/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240609.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.4/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:18217", 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.13-alpha.0", 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: "true", GITHUB_RUN_ID: "9483002577", 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: "82f45fd8c79f9b264094447217d533d395e831fd", 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: "705b325098cbbe92c87cdc7656411dabb49e8deff999eda21b720d0d3feee680", 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--1718197155619-0.15661163645046838:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718197155417-0.9166698138007559:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718197129042-0.5676575760806672:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718197128864-0.7995645223142662:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/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.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_23e2c54f-347e-4416-810e-639cca652813", INVOCATION_ID: "99b29505ad3845ca9a653362d5bb0b16", 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: "570", 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_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 114", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "true", 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.13-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.13-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", GITHUB_SHA: "82f45fd8c79f9b264094447217d533d395e831fd", 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_aee35c30-81b4-4851-a088-db16e1c3ba79", 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", 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_aee35c30-81b4-4851-a088-db16e1c3ba79", 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__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_aee35c30-81b4-4851-a088-db16e1c3ba79" };
111
111
  }
112
112
  });
113
113
 
@@ -11179,11 +11179,11 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
11179
11179
  return "-";
11180
11180
  }
11181
11181
  const k = 1024;
11182
- const dm2 = decimals < 0 ? 0 : decimals;
11182
+ const dm = decimals < 0 ? 0 : decimals;
11183
11183
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
11184
11184
  let i = Math.floor(Math.log(bytes) / Math.log(k));
11185
11185
  i === 0 && i++;
11186
- return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
11186
+ return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`;
11187
11187
  };
11188
11188
 
11189
11189
  // src/Stats/StyledStats.tsx
@@ -12966,7 +12966,7 @@ var AuthToken_default = AuthToken;
12966
12966
 
12967
12967
  // src/Prebuilt/components/ConferenceScreen.tsx
12968
12968
  init_define_process_env();
12969
- import React159, { useEffect as useEffect55, useRef as useRef29, useState as useState67 } from "react";
12969
+ import React159, { useEffect as useEffect55, useRef as useRef29, useState as useState68 } from "react";
12970
12970
  import { v4 as uuid3 } from "uuid";
12971
12971
  import {
12972
12972
  HMSRoomState as HMSRoomState7,
@@ -15997,10 +15997,10 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
15997
15997
  if (bytes === 0)
15998
15998
  return "0 " + unit;
15999
15999
  const k = 1024;
16000
- const dm2 = decimals < 0 ? 0 : decimals;
16000
+ const dm = decimals < 0 ? 0 : decimals;
16001
16001
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
16002
16002
  const i = Math.floor(Math.log(bytes) / Math.log(k));
16003
- return parseFloat((bytes / Math.pow(k, i)).toFixed(dm2)) + " " + sizes[i];
16003
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];
16004
16004
  };
16005
16005
 
16006
16006
  // src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
@@ -16197,6 +16197,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
16197
16197
  yield actions.stopTranscription({
16198
16198
  mode: HMSTranscriptionMode.CAPTION
16199
16199
  });
16200
+ setIsCaptionEnabled(false);
16200
16201
  const id2 = ToastManager.replaceToast(toastId, {
16201
16202
  title: `Disabling Closed Caption for everyone.`,
16202
16203
  variant: "standard",
@@ -16224,6 +16225,8 @@ var CaptionContent = ({ isMobile, onExit }) => {
16224
16225
  icon: /* @__PURE__ */ React50.createElement(AlertTriangleIcon5, { style: { marginRight: "0.5rem" } })
16225
16226
  });
16226
16227
  setToastId(id);
16228
+ } finally {
16229
+ setIsCaptionEnabled(true);
16227
16230
  }
16228
16231
  onExit();
16229
16232
  })
@@ -18848,7 +18851,7 @@ var S = (a2, e) => {
18848
18851
  jr.call(e, t) && Kr(a2, t, e[t]);
18849
18852
  return a2;
18850
18853
  };
18851
- var v = (a2, e) => Na(a2, Oa(e));
18854
+ var M = (a2, e) => Na(a2, Oa(e));
18852
18855
  var er = (a2, e) => {
18853
18856
  var t = {};
18854
18857
  for (var i in a2)
@@ -18860,7 +18863,7 @@ var er = (a2, e) => {
18860
18863
  };
18861
18864
  var Ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18862
18865
  var cr = Ba((Ic, Ja) => {
18863
- Ja.exports = { version: "0.12.12-alpha.8", 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"] };
18866
+ Ja.exports = { version: "0.12.13-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"] };
18864
18867
  });
18865
18868
  var tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(tr || {});
18866
18869
  var Va = ((e) => (e.CHAT = "chat", e))(Va || {});
@@ -18988,7 +18991,7 @@ function Ka() {
18988
18991
  return "CUSTOM";
18989
18992
  }
18990
18993
  var Ve = Ka();
18991
- var M = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
18994
+ var y = { 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 } };
18992
18995
  var f = class a extends Error {
18993
18996
  constructor(t, i, r, s, o, n = false) {
18994
18997
  super(s);
@@ -19020,97 +19023,97 @@ var f = class a extends Error {
19020
19023
  };
19021
19024
  var qa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
19022
19025
  var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
19023
- return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
19026
+ return new f(y.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
19024
19027
  }, WebSocketConnectionLost(a2, e = "") {
19025
- return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
19028
+ return new f(y.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
19026
19029
  }, AbnormalClose(a2, e = "") {
19027
- return new f(M.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
19030
+ return new f(y.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
19028
19031
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
19029
19032
  return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
19030
19033
  }, EndpointUnreachable(a2, e = "") {
19031
- return new f(M.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
19034
+ return new f(y.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
19032
19035
  }, InvalidTokenFormat(a2, e = "") {
19033
- return new f(M.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
19036
+ return new f(y.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
19034
19037
  }, InitConfigNotAvailable(a2, e = "") {
19035
- return new f(M.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
19038
+ return new f(y.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
19036
19039
  } }, TracksErrors: { GenericTrack(a2, e = "") {
19037
- return new f(M.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
19040
+ return new f(y.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
19038
19041
  }, CantAccessCaptureDevice(a2, e, t = "") {
19039
- return new f(M.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
19042
+ return new f(y.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
19040
19043
  }, DeviceNotAvailable(a2, e, t = "") {
19041
- return new f(M.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
19044
+ return new f(y.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
19042
19045
  }, DeviceInUse(a2, e, t = "") {
19043
- return new f(M.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
19046
+ return new f(y.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
19044
19047
  }, DeviceLostMidway(a2, e, t = "") {
19045
- return new f(M.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
19048
+ return new f(y.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
19046
19049
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
19047
- return new f(M.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
19050
+ return new f(y.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
19048
19051
  }, InvalidVideoSettings(a2, e = "") {
19049
- return new f(M.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
19052
+ return new f(y.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
19050
19053
  }, AutoplayBlocked(a2, e = "") {
19051
- return new f(M.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
19054
+ return new f(y.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
19052
19055
  }, CodecChangeNotPermitted(a2, e = "") {
19053
- return new f(M.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
19056
+ return new f(y.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
19054
19057
  }, OverConstrained(a2, e, t = "") {
19055
- return new f(M.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
19058
+ return new f(y.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
19056
19059
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
19057
- return new f(M.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
19060
+ return new f(y.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
19058
19061
  }, SystemDeniedPermission(a2, e, t = "") {
19059
- return new f(M.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
19062
+ return new f(y.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
19060
19063
  }, CurrentTabNotShared() {
19061
- return new f(M.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
19064
+ return new f(y.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
19062
19065
  }, AudioPlaybackError(a2) {
19063
- return new f(M.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
19066
+ return new f(y.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
19064
19067
  }, SelectedDeviceMissing(a2) {
19065
- return new f(M.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
19068
+ return new f(y.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
19066
19069
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
19067
- return new f(M.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
19070
+ return new f(y.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
19068
19071
  }, CreateAnswerFailed(a2, e = "") {
19069
- return new f(M.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
19072
+ return new f(y.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
19070
19073
  }, SetLocalDescriptionFailed(a2, e = "") {
19071
- return new f(M.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
19074
+ return new f(y.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
19072
19075
  }, SetRemoteDescriptionFailed(a2, e = "") {
19073
- return new f(M.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
19076
+ return new f(y.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
19074
19077
  }, ICEFailure(a2, e = "", t = false) {
19075
- return new f(M.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
19078
+ return new f(y.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
19076
19079
  }, ICEDisconnected(a2, e = "") {
19077
- return new f(M.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
19080
+ return new f(y.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
19078
19081
  }, StatsFailed(a2, e = "") {
19079
- return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
19082
+ return new f(y.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
19080
19083
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
19081
19084
  return new f(a2, "ServerErrors", e, t, t, qa.includes(e));
19082
19085
  }, AlreadyJoined(a2, e = "") {
19083
- return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
19086
+ return new f(y.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
19084
19087
  }, CannotJoinPreviewInProgress(a2, e = "") {
19085
- return new f(M.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
19088
+ return new f(y.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
19086
19089
  } }, GenericErrors: { NotConnected(a2, e = "") {
19087
- return new f(M.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
19090
+ return new f(y.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
19088
19091
  }, Signalling(a2, e) {
19089
- return new f(M.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
19092
+ return new f(y.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
19090
19093
  }, Unknown(a2, e) {
19091
- return new f(M.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
19094
+ return new f(y.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
19092
19095
  }, NotReady(a2, e = "") {
19093
- return new f(M.GenericErrors.NOT_READY, "NotReady", a2, e, e);
19096
+ return new f(y.GenericErrors.NOT_READY, "NotReady", a2, e, e);
19094
19097
  }, JsonParsingFailed(a2, e, t = "") {
19095
- return new f(M.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
19098
+ return new f(y.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
19096
19099
  }, TrackMetadataMissing(a2, e = "") {
19097
- return new f(M.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
19100
+ return new f(y.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
19098
19101
  }, RTCTrackMissing(a2, e = "") {
19099
- return new f(M.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
19102
+ return new f(y.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
19100
19103
  }, PeerMetadataMissing(a2, e = "") {
19101
- return new f(M.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
19104
+ return new f(y.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
19102
19105
  }, ValidationFailed(a2, e) {
19103
- return new f(M.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
19106
+ return new f(y.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
19104
19107
  }, InvalidRole(a2, e) {
19105
- return new f(M.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
19108
+ return new f(y.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
19106
19109
  }, PreviewAlreadyInProgress(a2, e = "") {
19107
- return new f(M.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
19110
+ return new f(y.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
19108
19111
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
19109
- return new f(M.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
19112
+ return new f(y.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
19110
19113
  }, MissingMediaDevices() {
19111
- return new f(M.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
19114
+ return new f(y.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
19112
19115
  }, MissingRTCPeerConnection() {
19113
- return new f(M.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
19116
+ return new f(y.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
19114
19117
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
19115
19118
  return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
19116
19119
  }, InitFailed(a2, e = "") {
@@ -19122,9 +19125,9 @@ var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
19122
19125
  }, DeviceNotSupported(a2, e = "") {
19123
19126
  return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
19124
19127
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
19125
- return new f(M.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
19128
+ return new f(y.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
19126
19129
  }, NoEntryPlaying(a2, e) {
19127
- return new f(M.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
19130
+ return new f(y.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
19128
19131
  } } };
19129
19132
  var ar = class {
19130
19133
  constructor() {
@@ -19204,93 +19207,99 @@ function dr(a2) {
19204
19207
  return a2.replace(/ /g, "_");
19205
19208
  }
19206
19209
  var ds = (a2, e = ",") => Object.keys(a2).filter((t) => re(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
19207
- var C = class {
19210
+ var H = class {
19208
19211
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
19209
19212
  this.metadata = { peer: {}, userAgent: ot() };
19210
19213
  this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Qa(), this.device_id = os();
19211
19214
  }
19212
19215
  toSignalParams() {
19213
- return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
19216
+ return { name: this.name, info: M(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
19214
19217
  }
19215
19218
  };
19216
- var P3 = class {
19219
+ var v = class {
19217
19220
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
19218
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
19219
- return new C({ name: o, level: n, properties: l });
19221
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
19222
+ return new H({ name: o, level: n, properties: l });
19220
19223
  }
19221
19224
  static disconnect(e, t) {
19222
19225
  let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
19223
- return new C({ name: i, level: r, properties: s });
19226
+ return new H({ name: i, level: r, properties: s });
19224
19227
  }
19225
19228
  static preview(i) {
19226
19229
  var r = i, { error: e } = r, t = er(r, ["error"]);
19227
19230
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
19228
- return new C({ name: s, level: o, properties: n });
19231
+ return new H({ name: s, level: o, properties: n });
19229
19232
  }
19230
19233
  static join(i) {
19231
19234
  var r = i, { error: e } = r, t = er(r, ["error"]);
19232
- let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
19233
- return new C({ name: s, level: o, properties: n });
19235
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
19236
+ return new H({ name: s, level: o, properties: n });
19234
19237
  }
19235
19238
  static publish({ devices: e, settings: t, error: i }) {
19236
19239
  let r = this.eventNameFor("publish", i === void 0), s = i ? 2 : 1, o = this.getPropertiesWithError({ devices: e, audio: t == null ? void 0 : t.audio, video: t == null ? void 0 : t.video }, i);
19237
- return new C({ name: r, level: s, properties: o });
19240
+ return new H({ name: r, level: s, properties: o });
19238
19241
  }
19239
19242
  static hlsPlayerError(e) {
19240
- return new C({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
19243
+ return new H({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
19241
19244
  }
19242
19245
  static subscribeFail(e) {
19243
19246
  let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
19244
- return new C({ name: t, level: i, properties: r });
19247
+ return new H({ name: t, level: i, properties: r });
19245
19248
  }
19246
19249
  static leave() {
19247
- return new C({ name: "leave", level: 1 });
19250
+ return new H({ name: "leave", level: 1 });
19248
19251
  }
19249
19252
  static autoplayError() {
19250
- return new C({ name: "autoplayError", level: 2 });
19253
+ return new H({ name: "autoplayError", level: 2 });
19251
19254
  }
19252
19255
  static audioPlaybackError(e) {
19253
- return new C({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
19256
+ return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
19254
19257
  }
19255
19258
  static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
19256
19259
  let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, l = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
19257
- return new C({ name: o, level: n, properties: l });
19260
+ return new H({ name: o, level: n, properties: l });
19258
19261
  }
19259
19262
  static performance(e) {
19260
19263
  let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
19261
- return new C({ name: t, level: i, properties: r });
19264
+ return new H({ name: t, level: i, properties: r });
19262
19265
  }
19263
19266
  static rtcStats(e) {
19264
19267
  let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
19265
- return new C({ name: t, level: i, properties: r });
19268
+ return new H({ name: t, level: i, properties: r });
19266
19269
  }
19267
19270
  static rtcStatsFailed(e) {
19268
19271
  let t = "rtc.stats.failed", i = 2;
19269
- return new C({ name: t, level: i, properties: this.getErrorProperties(e) });
19272
+ return new H({ name: t, level: i, properties: this.getErrorProperties(e) });
19270
19273
  }
19271
19274
  static degradationStats(e, t) {
19272
19275
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
19273
19276
  if (!t && e.degradedAt instanceof Date) {
19274
19277
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
19275
- s = v(S({}, s), { duration: n, restoredAt: o });
19278
+ s = M(S({}, s), { duration: n, restoredAt: o });
19276
19279
  }
19277
- return new C({ name: i, level: r, properties: s });
19280
+ return new H({ name: i, level: r, properties: s });
19278
19281
  }
19279
19282
  static audioDetectionFail(e, t) {
19280
19283
  let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
19281
- return new C({ name: s, level: r, properties: i });
19284
+ return new H({ name: s, level: r, properties: i });
19282
19285
  }
19283
19286
  static previewNetworkQuality(e) {
19284
- return new C({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
19287
+ return new H({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
19285
19288
  }
19286
19289
  static publishStats(e) {
19287
- return new C({ name: "publisher.stats", level: 1, properties: e });
19290
+ return new H({ name: "publisher.stats", level: 1, properties: e });
19288
19291
  }
19289
19292
  static subscribeStats(e) {
19290
- return new C({ name: "subscriber.stats", level: 1, properties: e });
19293
+ return new H({ name: "subscriber.stats", level: 1, properties: e });
19291
19294
  }
19292
19295
  static getKrispUsage(e) {
19293
- return new C({ name: "krisp.usage", level: 1, properties: { duration: e } });
19296
+ return new H({ name: "krisp.usage", level: 1, properties: { duration: e } });
19297
+ }
19298
+ static krispStart() {
19299
+ return new H({ name: "krisp.start", level: 1 });
19300
+ }
19301
+ static krispStop() {
19302
+ return new H({ name: "krisp.stop", level: 1 });
19294
19303
  }
19295
19304
  static eventNameFor(e, t) {
19296
19305
  return `${e}.${t ? "success" : "failed"}`;
@@ -19303,7 +19312,7 @@ var P3 = class {
19303
19312
  return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
19304
19313
  }
19305
19314
  };
19306
- P3.KEY_REQUESTED_AT = "requested_at", P3.KEY_RESPONDED_AT = "responded_at";
19315
+ v.KEY_REQUESTED_AT = "requested_at", v.KEY_RESPONDED_AT = "responded_at";
19307
19316
  var lr = class {
19308
19317
  constructor() {
19309
19318
  this.storage = new ne("hms-device-selection");
@@ -19424,8 +19433,8 @@ var Qe = class {
19424
19433
  Qe.makePeerId = () => mo();
19425
19434
  var U = (a2) => a2.room;
19426
19435
  var go = (a2) => a2.errors;
19427
- var bh = createSelector(go, (a2) => a2.length === 0 ? null : a2.at(-1));
19428
- var Hh = createSelector(U, (a2) => a2.id);
19436
+ var Hh = createSelector(go, (a2) => a2.length === 0 ? null : a2.at(-1));
19437
+ var Ch = createSelector(U, (a2) => a2.id);
19429
19438
  var W = (a2) => a2.peers;
19430
19439
  var ni = (a2) => a2.messages.byID;
19431
19440
  var Us = (a2) => a2.messages.allIDs;
@@ -19433,14 +19442,14 @@ var _ = (a2) => a2.tracks;
19433
19442
  var Rr = (a2) => a2.appData;
19434
19443
  var To = (a2) => a2.speakers;
19435
19444
  var He = createSelector([U], (a2) => a2 && a2.isConnected);
19436
- var Dh = createSelector([He, U], (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));
19445
+ var wh = createSelector([He, U], (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));
19437
19446
  var fo = (a2) => a2.hideLocalPeer;
19438
19447
  var ue = createSelector([U, W, fo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
19439
19448
  var vo = createSelector(_, (a2) => Object.values(a2));
19440
19449
  var Y = createSelector(U, W, (a2, e) => e[a2.localPeer]);
19441
19450
  var fe = createSelector(U, (a2) => a2.localPeer);
19442
- var wh = createSelector(Y, (a2) => a2 == null ? void 0 : a2.name);
19443
- var _h = createSelector(Y, (a2) => a2 == null ? void 0 : a2.roleName);
19451
+ var _h = createSelector(Y, (a2) => a2 == null ? void 0 : a2.name);
19452
+ var Nh = createSelector(Y, (a2) => a2 == null ? void 0 : a2.roleName);
19444
19453
  var ie = createSelector(Y, (a2) => a2 == null ? void 0 : a2.audioTrack);
19445
19454
  var J = createSelector(Y, (a2) => a2 == null ? void 0 : a2.videoTrack);
19446
19455
  var Mo = createSelector(Y, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
@@ -19448,8 +19457,8 @@ var Vs = createSelector([ie, J, Mo], (a2, e, t) => {
19448
19457
  let i = t ? [...t] : [];
19449
19458
  return a2 && i.unshift(a2), e && i.unshift(e), i;
19450
19459
  });
19451
- var Nh = createSelector(ue, (a2) => a2.filter((e) => !e.isLocal));
19452
- var Oh = createSelector(W, To, (a2, e) => {
19460
+ var Oh = createSelector(ue, (a2) => a2.filter((e) => !e.isLocal));
19461
+ var xh = createSelector(W, To, (a2, e) => {
19453
19462
  let t = Object.entries(e).sort((i, r) => {
19454
19463
  var n, l;
19455
19464
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -19476,15 +19485,15 @@ var yo = createSelector(W, _, (a2, e) => {
19476
19485
  }
19477
19486
  return t;
19478
19487
  });
19479
- var Uh = createSelector(yo, (a2) => !!a2);
19480
- var Bh = createSelector(W, _, (a2, e) => {
19488
+ var Bh = createSelector(yo, (a2) => !!a2);
19489
+ var Vh = createSelector(W, _, (a2, e) => {
19481
19490
  for (let t in a2) {
19482
19491
  let i = a2[t], { audio: r, video: s } = Ce(e, i);
19483
19492
  if (!s && r)
19484
19493
  return i;
19485
19494
  }
19486
19495
  });
19487
- var Vh = createSelector(W, _, (a2, e) => {
19496
+ var Fh = createSelector(W, _, (a2, e) => {
19488
19497
  let t = [], i = [];
19489
19498
  for (let r in a2) {
19490
19499
  let s = a2[r], { video: o, audio: n } = Ce(e, s);
@@ -19492,23 +19501,23 @@ var Vh = createSelector(W, _, (a2, e) => {
19492
19501
  }
19493
19502
  return t.concat(i);
19494
19503
  });
19495
- var Fh = createSelector(W, _, (a2, e) => {
19504
+ var Gh = createSelector(W, _, (a2, e) => {
19496
19505
  for (let t in e) {
19497
19506
  let i = e[t];
19498
19507
  if (st(i) && rt(i) && i.peerId)
19499
19508
  return a2[i.peerId];
19500
19509
  }
19501
19510
  });
19502
- var Gh = createSelector(W, _, (a2, e) => {
19511
+ var Wh = createSelector(W, _, (a2, e) => {
19503
19512
  for (let t in e) {
19504
19513
  let i = e[t];
19505
19514
  if (qt(i) && i.peerId)
19506
19515
  return a2[i.peerId];
19507
19516
  }
19508
19517
  });
19509
- var Wh = createSelector(vo, (a2) => a2.filter(zr));
19510
- var $h = createSelector(Us, (a2) => a2.length);
19511
- var Kh = createSelector(ni, (a2) => Object.values(a2).filter((e) => !e.read).length);
19518
+ var $h = createSelector(vo, (a2) => a2.filter(zr));
19519
+ var Kh = createSelector(Us, (a2) => a2.length);
19520
+ var qh = createSelector(ni, (a2) => Object.values(a2).filter((e) => !e.read).length);
19512
19521
  var gt = createSelector(Us, ni, (a2, e) => {
19513
19522
  let t = [];
19514
19523
  return a2.forEach((i) => {
@@ -19519,37 +19528,37 @@ var Po = createSelector(gt, (a2) => a2.filter((e) => {
19519
19528
  var t;
19520
19529
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
19521
19530
  }));
19522
- var qh = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
19531
+ var jh = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
19523
19532
  var X = createSelector([U], (a2) => a2 && a2.roomState);
19524
19533
  var Gs = createSelector(X, (a2) => a2 === "Preview");
19525
- var jh = createSelector(U, (a2) => a2.roomState !== "Disconnected");
19526
- var Jh = createSelector(U, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
19534
+ var Jh = createSelector(U, (a2) => a2.roomState !== "Disconnected");
19535
+ var Qh = createSelector(U, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
19527
19536
  var pe = (a2) => a2.roles;
19528
- var Qh = createSelector([pe], (a2) => Object.keys(a2));
19537
+ var zh = createSelector([pe], (a2) => Object.keys(a2));
19529
19538
  var Ye = createSelector([Y, pe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
19530
19539
  var Eo = (a2) => {
19531
19540
  var e;
19532
19541
  return (e = a2.preview) == null ? void 0 : e.asRole;
19533
19542
  };
19534
19543
  var Ws = createSelector([Eo, pe], (a2, e) => a2 ? e[a2] : null);
19535
- var zh = createSelector([Ye], (a2) => {
19544
+ var Yh = createSelector([Ye], (a2) => {
19536
19545
  var e;
19537
19546
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
19538
19547
  });
19539
19548
  var $s = createSelector(Ye, (a2) => a2 == null ? void 0 : a2.permissions);
19540
- var Yh = createSelector(U, (a2) => a2.recording);
19541
- var Xh = createSelector(U, (a2) => a2.rtmp);
19542
- var Zh = createSelector(U, (a2) => a2.hls);
19543
- var em = createSelector(U, (a2) => a2.transcriptions);
19544
- var tm = createSelector(U, (a2) => a2.sessionId);
19545
- var im = createSelector(U, (a2) => a2.startedAt);
19546
- var rm = createSelector(U, (a2) => !!a2.isLargeRoom);
19547
- var sm = createSelector(U, (a2) => !!a2.isEffectsEnabled);
19548
- var am = createSelector(U, (a2) => a2.effectsKey);
19549
+ var Xh = createSelector(U, (a2) => a2.recording);
19550
+ var Zh = createSelector(U, (a2) => a2.rtmp);
19551
+ var em = createSelector(U, (a2) => a2.hls);
19552
+ var tm = createSelector(U, (a2) => a2.transcriptions);
19553
+ var im = createSelector(U, (a2) => a2.sessionId);
19554
+ var rm = createSelector(U, (a2) => a2.startedAt);
19555
+ var sm = createSelector(U, (a2) => !!a2.isLargeRoom);
19556
+ var am = createSelector(U, (a2) => !!a2.isEffectsEnabled);
19557
+ var om = createSelector(U, (a2) => a2.effectsKey);
19549
19558
  var Ks = (a2) => a2.polls;
19550
- var dm = createSelector(ue, (a2) => a2.filter((e) => e.isHandRaised));
19559
+ var lm = createSelector(ue, (a2) => a2.filter((e) => e.isHandRaised));
19551
19560
  var ko = (a2) => a2.whiteboards;
19552
- var lm = createSelector(ko, (a2) => Object.values(a2)[0]);
19561
+ var um = createSelector(ko, (a2) => Object.values(a2)[0]);
19553
19562
  var js = (a2 = "audio") => (e) => e.playlist[a2].list;
19554
19563
  var Cr = (a2 = "audio") => (e) => e.playlist[a2].selection;
19555
19564
  var Js = (a2 = "audio") => (e) => e.playlist[a2].progress;
@@ -19666,23 +19675,23 @@ var Co = createSelector([_, ft], (a2, e) => {
19666
19675
  });
19667
19676
  var Lo = createSelector([Ks, Io], (a2, e) => e ? a2[e] : null);
19668
19677
  var Q = R($);
19669
- var ym = R(createSelector([Rr, Ao], (a2, e) => {
19678
+ var Pm = R(createSelector([Rr, Ao], (a2, e) => {
19670
19679
  if (a2)
19671
19680
  return e ? a2[e] : a2;
19672
19681
  }));
19673
- function Pm(a2) {
19682
+ function Em(a2) {
19674
19683
  return (e) => {
19675
19684
  if (e.sessionStore)
19676
19685
  return a2 ? e.sessionStore[a2] : e.sessionStore;
19677
19686
  };
19678
19687
  }
19679
- var km = R(createSelector($, (a2) => a2 == null ? void 0 : a2.name));
19680
- var Am = R(createSelector($, (a2) => a2 == null ? void 0 : a2.type));
19688
+ var Am = R(createSelector($, (a2) => a2 == null ? void 0 : a2.name));
19689
+ var Im = R(createSelector($, (a2) => a2 == null ? void 0 : a2.type));
19681
19690
  var ci = R(Dr);
19682
19691
  var ra = R(Ro);
19683
- var Im = R(bo);
19684
- var Rm = R(Ho);
19685
- var bm = R(Co);
19692
+ var Rm = R(bo);
19693
+ var bm = R(Ho);
19694
+ var Hm = R(Co);
19686
19695
  var Do = R((a2, e) => {
19687
19696
  let t = $(a2, e);
19688
19697
  if (t && t.videoTrack && t.videoTrack !== "")
@@ -19693,43 +19702,43 @@ var wo = R((a2, e) => {
19693
19702
  if (t && t.audioTrack && t.audioTrack !== "")
19694
19703
  return a2.tracks[t.audioTrack];
19695
19704
  });
19696
- var Cm = R((a2, e) => {
19705
+ var Lm = R((a2, e) => {
19697
19706
  let t = $(a2, e);
19698
19707
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
19699
19708
  });
19700
19709
  var sa = (a2, e) => e ? a2.speakers[e] : null;
19701
- var Lm = R(createSelector(sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19710
+ var Dm = R(createSelector(sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19702
19711
  var _o = (a2, e) => {
19703
19712
  let t = wo(e)(a2);
19704
19713
  return sa(a2, t == null ? void 0 : t.id);
19705
19714
  };
19706
- var Dm = R(createSelector(_o, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19707
- var wm = R((a2, e) => {
19715
+ var wm = R(createSelector(_o, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19716
+ var _m = R((a2, e) => {
19708
19717
  if (e)
19709
19718
  return a2.connectionQualities[e];
19710
19719
  });
19711
- var _m = R((a2, e) => {
19720
+ var Nm = R((a2, e) => {
19712
19721
  let t = $(a2, e);
19713
19722
  if (t) {
19714
19723
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => it(a2.tracks[r]));
19715
19724
  return i ? a2.tracks[i] : void 0;
19716
19725
  }
19717
19726
  });
19718
- var Nm = R(createSelector(_, $, (a2, e) => {
19727
+ var Om = R(createSelector(_, $, (a2, e) => {
19719
19728
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19720
19729
  let r = a2[i];
19721
19730
  return st(r) && rt(r);
19722
19731
  });
19723
19732
  return t ? a2[t] : void 0;
19724
19733
  }));
19725
- var Om = R(createSelector(_, $, (a2, e) => {
19734
+ var xm = R(createSelector(_, $, (a2, e) => {
19726
19735
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19727
19736
  let r = a2[i];
19728
19737
  return st(r) && it(r);
19729
19738
  });
19730
19739
  return t ? a2[t] : void 0;
19731
19740
  }));
19732
- var xm = R(createSelector(_, $, (a2, e) => {
19741
+ var Um = R(createSelector(_, $, (a2, e) => {
19733
19742
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19734
19743
  let r = a2[i];
19735
19744
  return qt(r) && it(r);
@@ -19738,11 +19747,11 @@ var xm = R(createSelector(_, $, (a2, e) => {
19738
19747
  }));
19739
19748
  var aa = R(createSelector(_, $, (a2, e) => Ce(a2, e)));
19740
19749
  var oa = (a2) => createSelector(aa(a2), (e) => e.audio);
19741
- var Bm = R((a2, e) => {
19750
+ var Vm = R((a2, e) => {
19742
19751
  let t = $(a2, e);
19743
19752
  return Ue(a2, t == null ? void 0 : t.audioTrack);
19744
19753
  });
19745
- var Vm = R((a2, e) => {
19754
+ var Fm = R((a2, e) => {
19746
19755
  let t = $(a2, e);
19747
19756
  return Ue(a2, t == null ? void 0 : t.videoTrack);
19748
19757
  });
@@ -19750,11 +19759,11 @@ var na = R((a2, e) => {
19750
19759
  if (e && a2.tracks[e])
19751
19760
  return a2.tracks[e].volume === 0;
19752
19761
  });
19753
- var Fm = R((a2, e) => {
19762
+ var Gm = R((a2, e) => {
19754
19763
  let t = $(a2, e);
19755
19764
  return na(t == null ? void 0 : t.audioTrack)(a2);
19756
19765
  });
19757
- var Gm = R((a2, e) => {
19766
+ var Wm = R((a2, e) => {
19758
19767
  let t = oa(e)(a2);
19759
19768
  return na(t == null ? void 0 : t.id)(a2);
19760
19769
  });
@@ -19768,15 +19777,15 @@ var ca = R((a2, e) => {
19768
19777
  return t.volume;
19769
19778
  }
19770
19779
  });
19771
- var Wm = R((a2, e) => {
19780
+ var $m = R((a2, e) => {
19772
19781
  let t = $(a2, e);
19773
19782
  return ca(t == null ? void 0 : t.audioTrack)(a2);
19774
19783
  });
19775
- var $m = R((a2, e) => {
19784
+ var Km = R((a2, e) => {
19776
19785
  let t = oa(e)(a2);
19777
19786
  return ca(t == null ? void 0 : t.id)(a2);
19778
19787
  });
19779
- var Km = R((a2, e) => {
19788
+ var qm = R((a2, e) => {
19780
19789
  let t = Dr(a2, e);
19781
19790
  if (t) {
19782
19791
  if (t.type !== "video") {
@@ -19806,20 +19815,20 @@ var No = createSelector(gt, (a2) => a2.filter((e) => {
19806
19815
  }));
19807
19816
  var Oo = createSelector([la, ia], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19808
19817
  var xo = createSelector([da, Lr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19809
- var qm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
19810
- var jm = R(da);
19811
- var Jm = R(la);
19812
- var Qm = R(Oo);
19813
- var zm = R(xo);
19818
+ var jm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
19819
+ var Jm = R(da);
19820
+ var Qm = R(la);
19821
+ var zm = R(Oo);
19822
+ var Ym = R(xo);
19814
19823
  var ua = R(Lo);
19815
- var cS = createSelector([W, _], (a2, e) => Object.values(a2).map((i) => {
19824
+ var dS = createSelector([W, _], (a2, e) => Object.values(a2).map((i) => {
19816
19825
  var r;
19817
19826
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
19818
19827
  }));
19819
19828
  var Uo = (a2) => a2.roleChangeRequests[0] || null;
19820
- var dS = createSelector([Uo, W, pe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19821
- var lS = createSelector([Ye], (a2) => at(a2));
19822
- var uS = createSelector([Ws], (a2) => at(a2));
19829
+ var lS = createSelector([Uo, W, pe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19830
+ var uS = createSelector([Ye], (a2) => at(a2));
19831
+ var pS = createSelector([Ws], (a2) => at(a2));
19823
19832
  var Vo = createSelector([J, _], (a2, e) => {
19824
19833
  let t = null;
19825
19834
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
@@ -21723,7 +21732,7 @@ var RoleOptions = ({ roleName, peerList }) => {
21723
21732
 
21724
21733
  // src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
21725
21734
  init_define_process_env();
21726
- import { match as match7, P as P4 } from "ts-pattern";
21735
+ import { match as match7, P as P3 } from "ts-pattern";
21727
21736
  import { selectPermissions as selectPermissions11, useHMSActions as useHMSActions26, useHMSStore as useHMSStore37 } from "@100mslive/react-sdk";
21728
21737
  var useGroupOnStageActions = ({ peers }) => {
21729
21738
  var _a8;
@@ -21740,9 +21749,9 @@ var useGroupOnStageActions = ({ peers }) => {
21740
21749
  const offStageRolePeers = peers.filter(
21741
21750
  (peer) => match7({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
21742
21751
  {
21743
- on_stage_role: P4.when((role) => !!role),
21744
- bring_to_stage_label: P4.when((label) => !!label),
21745
- roleName: P4.when((role) => !!role && off_stage_roles.includes(role))
21752
+ on_stage_role: P3.when((role) => !!role),
21753
+ bring_to_stage_label: P3.when((label) => !!label),
21754
+ roleName: P3.when((role) => !!role && off_stage_roles.includes(role))
21746
21755
  },
21747
21756
  () => true
21748
21757
  ).otherwise(() => false)
@@ -25802,7 +25811,7 @@ var Chat = () => {
25802
25811
  const listRef = useRef24(null);
25803
25812
  const hmsActions = useHMSActions41();
25804
25813
  const vanillaStore = useHMSVanillaStore10();
25805
- const { enabled: isChatEnabled = true } = useHMSStore62(Pm("chatState" /* CHAT_STATE */)) || {};
25814
+ const { enabled: isChatEnabled = true } = useHMSStore62(Em("chatState" /* CHAT_STATE */)) || {};
25806
25815
  const isMobile = useMedia19(config.media.md);
25807
25816
  const isMobileHLSStream = useMobileHLSStream();
25808
25817
  const isLandscapeStream = useLandscapeHLSStream();
@@ -25892,7 +25901,7 @@ var NewMessageIndicator = ({
25892
25901
  scrollToBottom,
25893
25902
  listRef
25894
25903
  }) => {
25895
- const unreadCount = useHMSStore62(Kh);
25904
+ const unreadCount = useHMSStore62(qh);
25896
25905
  if (!unreadCount || !listRef.current) {
25897
25906
  return null;
25898
25907
  }
@@ -27011,12 +27020,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
27011
27020
  const [blurAmount, setBlurAmount] = useState56(VBHandler.getBlurAmount() || 0.5);
27012
27021
  const roomState = useHMSStore70(selectRoomState4);
27013
27022
  const isLargeRoom = useHMSStore70(selectIsLargeRoom3);
27014
- const isEffectsEnabled = useHMSStore70(sm);
27015
- const effectsKey = useHMSStore70(am);
27023
+ const isEffectsEnabled = useHMSStore70(am);
27024
+ const effectsKey = useHMSStore70(om);
27016
27025
  const isMobile = useMedia23(config.media.md);
27017
27026
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
27018
27027
  const isPluginAdded = useHMSStore70(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
27019
- const background = useHMSStore70(ym(APP_DATA.background));
27028
+ const background = useHMSStore70(Pm(APP_DATA.background));
27020
27029
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
27021
27030
  const inPreview = roomState === HMSRoomState4.Preview;
27022
27031
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -27737,7 +27746,7 @@ var RoleChangeRequestModal = () => {
27737
27746
 
27738
27747
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
27739
27748
  init_define_process_env();
27740
- import React155, { Suspense, useEffect as useEffect53 } from "react";
27749
+ import React155, { Suspense, useEffect as useEffect53, useState as useState67 } from "react";
27741
27750
  import { match as match12 } from "ts-pattern";
27742
27751
  import {
27743
27752
  selectIsConnectedToRoom as selectIsConnectedToRoom9,
@@ -29152,6 +29161,9 @@ var SimpleQueue = class {
29152
29161
  }
29153
29162
  enqueue(data3) {
29154
29163
  var _a8;
29164
+ if (!data3.transcript.trim()) {
29165
+ return;
29166
+ }
29155
29167
  if (this.size() === this.capacity && this.storage[this.size() - 1].final) {
29156
29168
  this.dequeue(this.storage[this.size() - 1]);
29157
29169
  }
@@ -29290,7 +29302,10 @@ var TranscriptView = ({ peer_id, data: data3 }) => {
29290
29302
  data3
29291
29303
  );
29292
29304
  };
29293
- var CaptionsViewer = () => {
29305
+ var CaptionsViewer = ({
29306
+ defaultPosition,
29307
+ setDefaultPosition
29308
+ }) => {
29294
29309
  var _a8;
29295
29310
  const { elements, screenType } = useRoomLayoutConferencingScreen();
29296
29311
  const isMobile = useMedia36(config.media.md);
@@ -29327,32 +29342,43 @@ var CaptionsViewer = () => {
29327
29342
  if (dataToShow.length <= 0 || screenType === "hls_live_streaming" || !isCaptionEnabled || !isTranscriptionEnabled) {
29328
29343
  return null;
29329
29344
  }
29330
- return /* @__PURE__ */ React154.createElement(Draggable2, { bounds: "parent", nodeRef, defaultPosition: { x: isMobile ? 0 : -200, y: 0 } }, /* @__PURE__ */ React154.createElement(
29331
- Box,
29345
+ return /* @__PURE__ */ React154.createElement(
29346
+ Draggable2,
29332
29347
  {
29333
- ref: nodeRef,
29334
- css: {
29335
- position: "absolute",
29336
- w: isMobile ? "100%" : "40%",
29337
- bottom: showCaptionAtTop ? "" : "0",
29338
- top: showCaptionAtTop ? "0" : "",
29339
- left: isMobile ? 0 : "50%",
29340
- transform: isMobile ? "" : "translateX(-50%)",
29341
- background: "#000000A3",
29342
- overflow: "clip",
29343
- zIndex: 10,
29344
- height: "fit-content",
29345
- r: "$1",
29346
- p: "$6",
29347
- transition: "bottom 0.3s ease-in-out",
29348
- "&:empty": { display: "none" }
29348
+ bounds: "parent",
29349
+ nodeRef,
29350
+ defaultPosition,
29351
+ onStop: (_2, data3) => {
29352
+ setDefaultPosition({ x: data3.lastX, y: data3.lastY });
29349
29353
  }
29350
29354
  },
29351
- /* @__PURE__ */ React154.createElement(Flex, { direction: "column" }, dataToShow.map((data3, index) => {
29352
- const key = Object.keys(data3)[0];
29353
- return /* @__PURE__ */ React154.createElement(TranscriptView, { key: index, peer_id: key, data: data3[key] });
29354
- }))
29355
- ));
29355
+ /* @__PURE__ */ React154.createElement(
29356
+ Box,
29357
+ {
29358
+ ref: nodeRef,
29359
+ css: {
29360
+ position: "absolute",
29361
+ w: isMobile ? "100%" : "40%",
29362
+ bottom: showCaptionAtTop ? "" : "0",
29363
+ top: showCaptionAtTop ? "0" : "",
29364
+ left: isMobile ? 0 : "50%",
29365
+ transform: isMobile ? "" : "translateX(-50%)",
29366
+ background: "#000000A3",
29367
+ overflow: "clip",
29368
+ zIndex: 10,
29369
+ height: "fit-content",
29370
+ r: "$1",
29371
+ p: "$6",
29372
+ transition: "bottom 0.3s ease-in-out",
29373
+ "&:empty": { display: "none" }
29374
+ }
29375
+ },
29376
+ /* @__PURE__ */ React154.createElement(Flex, { direction: "column" }, dataToShow.map((data3, index) => {
29377
+ const key = Object.keys(data3)[0];
29378
+ return /* @__PURE__ */ React154.createElement(TranscriptView, { key: index, peer_id: key, data: data3[key] });
29379
+ }))
29380
+ )
29381
+ );
29356
29382
  };
29357
29383
 
29358
29384
  // src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
@@ -29370,7 +29396,7 @@ var useCloseScreenshareWhiteboard = () => {
29370
29396
  };
29371
29397
 
29372
29398
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
29373
- var HLSView = React155.lazy(() => import("./HLSView-HM5WEBLW.js"));
29399
+ var HLSView = React155.lazy(() => import("./HLSView-K2ETVPZ6.js"));
29374
29400
  var VideoStreamingSection = ({
29375
29401
  screenType,
29376
29402
  elements,
@@ -29385,6 +29411,7 @@ var VideoStreamingSection = ({
29385
29411
  const pdfAnnotatorActive = usePDFConfig();
29386
29412
  const isMobileHLSStream = useMobileHLSStream();
29387
29413
  const isLandscapeHLSStream = useLandscapeHLSStream();
29414
+ const [captionPosition, setCaptionPosition] = useState67({ x: -200, y: 0 });
29388
29415
  useCloseScreenshareWhiteboard();
29389
29416
  const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
29390
29417
  useEffect53(() => {
@@ -29455,7 +29482,7 @@ var VideoStreamingSection = ({
29455
29482
  var _a9;
29456
29483
  return /* @__PURE__ */ React155.createElement(GridLayout, __spreadValues({}, (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid));
29457
29484
  }),
29458
- /* @__PURE__ */ React155.createElement(CaptionsViewer, null),
29485
+ /* @__PURE__ */ React155.createElement(CaptionsViewer, { setDefaultPosition: setCaptionPosition, defaultPosition: captionPosition }),
29459
29486
  /* @__PURE__ */ React155.createElement(
29460
29487
  Box,
29461
29488
  {
@@ -29724,7 +29751,7 @@ var ConferenceScreen = () => {
29724
29751
  const roomState = useHMSStore87(selectRoomState7);
29725
29752
  const isConnectedToRoom = useHMSStore87(selectIsConnectedToRoom10);
29726
29753
  const hmsActions = useHMSActions49();
29727
- const [hideControls, setHideControls] = useState67(false);
29754
+ const [hideControls, setHideControls] = useState68(false);
29728
29755
  const dropdownList = useHMSStore87(selectAppData12(APP_DATA.dropdownList));
29729
29756
  const authTokenInAppData = useAuthToken();
29730
29757
  const headerRef = useRef29(null);
@@ -30127,7 +30154,7 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
30127
30154
  init_define_process_env();
30128
30155
  import React162, { useContext as useContext4, useEffect as useEffect59 } from "react";
30129
30156
  import { usePreviousDistinct } from "react-use";
30130
- import { match as match13, P as P5 } from "ts-pattern";
30157
+ import { match as match13, P as P4 } from "ts-pattern";
30131
30158
  import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
30132
30159
 
30133
30160
  // src/Prebuilt/components/hooks/useRedirectToLeave.tsx
@@ -30177,7 +30204,7 @@ var useAppStateManager = () => {
30177
30204
  if (!roomLayout) {
30178
30205
  return;
30179
30206
  }
30180
- match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P5.any], () => setActiveState("meeting" /* MEETING */)).with(
30207
+ match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P4.any], () => setActiveState("meeting" /* MEETING */)).with(
30181
30208
  [HMSRoomState8.Disconnecting, HMSRoomState8.Connected],
30182
30209
  [HMSRoomState8.Disconnecting, HMSRoomState8.Connecting],
30183
30210
  [HMSRoomState8.Disconnecting, HMSRoomState8.Reconnecting],
@@ -30191,7 +30218,7 @@ var useAppStateManager = () => {
30191
30218
  VBHandler.reset();
30192
30219
  redirectToLeave(1e3);
30193
30220
  }
30194
- ).with([HMSRoomState8.Disconnected, P5.nullish], () => {
30221
+ ).with([HMSRoomState8.Disconnected, P4.nullish], () => {
30195
30222
  setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
30196
30223
  }).otherwise(() => {
30197
30224
  });
@@ -30245,12 +30272,12 @@ var LeaveScreen = () => {
30245
30272
 
30246
30273
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
30247
30274
  init_define_process_env();
30248
- import React164, { useEffect as useEffect60, useState as useState68 } from "react";
30275
+ import React164, { useEffect as useEffect60, useState as useState69 } from "react";
30249
30276
  import { useMedia as useMedia39 } from "react-use";
30250
- import { match as match14, P as P6 } from "ts-pattern";
30277
+ import { match as match14, P as P5 } from "ts-pattern";
30251
30278
  import { RefreshIcon } from "@100mslive/react-icons";
30252
30279
  var MwebLandscapePrompt = () => {
30253
- const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState68(false);
30280
+ const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState69(false);
30254
30281
  const isLandscape = useMedia39(config.media.ls);
30255
30282
  const isLandscapeHLSStream = useLandscapeHLSStream();
30256
30283
  useEffect60(() => {
@@ -30267,7 +30294,7 @@ var MwebLandscapePrompt = () => {
30267
30294
  const angle = window.screen.orientation.angle;
30268
30295
  const type = window.screen.orientation.type || "";
30269
30296
  setShowMwebLandscapePrompt(
30270
- match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P6.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
30297
+ match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P5.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
30271
30298
  );
30272
30299
  };
30273
30300
  handleRotation();
@@ -30649,12 +30676,12 @@ var HandRaisedNotifications = () => {
30649
30676
 
30650
30677
  // src/Prebuilt/components/Notifications/InitErrorModal.tsx
30651
30678
  init_define_process_env();
30652
- import React168, { useEffect as useEffect63, useState as useState69 } from "react";
30679
+ import React168, { useEffect as useEffect63, useState as useState70 } from "react";
30653
30680
  import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
30654
30681
  var InitErrorModal = () => {
30655
30682
  const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
30656
- const [showModal, setShowModal] = useState69(false);
30657
- const [info, setInfo] = useState69({ title: "Init Error", description: "" });
30683
+ const [showModal, setShowModal] = useState70(false);
30684
+ const [info, setInfo] = useState70({ title: "Init Error", description: "" });
30658
30685
  useEffect63(() => {
30659
30686
  const data3 = notification == null ? void 0 : notification.data;
30660
30687
  if (!data3 || data3.action !== "INIT") {
@@ -30717,7 +30744,7 @@ var PeerNotifications = () => {
30717
30744
 
30718
30745
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
30719
30746
  init_define_process_env();
30720
- import React169, { useEffect as useEffect65, useState as useState70 } from "react";
30747
+ import React169, { useEffect as useEffect65, useState as useState71 } from "react";
30721
30748
  import { useMedia as useMedia40 } from "react-use";
30722
30749
  import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
30723
30750
 
@@ -30730,8 +30757,8 @@ var ios_perm_0_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAACh
30730
30757
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
30731
30758
  function PermissionErrorModal() {
30732
30759
  const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
30733
- const [deviceType, setDeviceType] = useState70("");
30734
- const [isSystemError, setIsSystemError] = useState70(false);
30760
+ const [deviceType, setDeviceType] = useState71("");
30761
+ const [isSystemError, setIsSystemError] = useState71(false);
30735
30762
  const isMobile = useMedia40(config.media.md);
30736
30763
  useEffect65(() => {
30737
30764
  var _a8, _b7, _c, _d, _e;
@@ -30791,7 +30818,7 @@ function PermissionErrorModal() {
30791
30818
 
30792
30819
  // src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
30793
30820
  init_define_process_env();
30794
- import React170, { useEffect as useEffect66, useState as useState71 } from "react";
30821
+ import React170, { useEffect as useEffect66, useState as useState72 } from "react";
30795
30822
  import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
30796
30823
  var notificationTypes2 = [
30797
30824
  HMSNotificationTypes6.RECONNECTED,
@@ -30801,7 +30828,7 @@ var notificationTypes2 = [
30801
30828
  var notificationId = null;
30802
30829
  var ReconnectNotifications = () => {
30803
30830
  const notification = useHMSNotifications6(notificationTypes2);
30804
- const [open, setOpen] = useState71(false);
30831
+ const [open, setOpen] = useState72(false);
30805
30832
  useEffect66(() => {
30806
30833
  var _a8, _b7;
30807
30834
  if (!notification) {
@@ -30841,7 +30868,7 @@ var ReconnectNotifications = () => {
30841
30868
 
30842
30869
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
30843
30870
  init_define_process_env();
30844
- import React171, { useEffect as useEffect67, useState as useState72 } from "react";
30871
+ import React171, { useEffect as useEffect67, useState as useState73 } from "react";
30845
30872
  import {
30846
30873
  HMSNotificationTypes as HMSNotificationTypes7,
30847
30874
  useHMSActions as useHMSActions52,
@@ -30850,7 +30877,7 @@ import {
30850
30877
  import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
30851
30878
  var TrackBulkUnmuteModal = () => {
30852
30879
  const hmsActions = useHMSActions52();
30853
- const [muteNotification, setMuteNotification] = useState72(null);
30880
+ const [muteNotification, setMuteNotification] = useState73(null);
30854
30881
  const notification = useHMSNotifications7([
30855
30882
  HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
30856
30883
  HMSNotificationTypes7.ROOM_ENDED,
@@ -30915,7 +30942,7 @@ var TrackNotifications = () => {
30915
30942
 
30916
30943
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
30917
30944
  init_define_process_env();
30918
- import React172, { useEffect as useEffect69, useState as useState73 } from "react";
30945
+ import React172, { useEffect as useEffect69, useState as useState74 } from "react";
30919
30946
  import {
30920
30947
  HMSNotificationTypes as HMSNotificationTypes9,
30921
30948
  useHMSActions as useHMSActions53,
@@ -30929,7 +30956,7 @@ var TrackUnmuteModal = () => {
30929
30956
  HMSNotificationTypes9.ROOM_ENDED,
30930
30957
  HMSNotificationTypes9.REMOVED_FROM_ROOM
30931
30958
  ]);
30932
- const [muteNotification, setMuteNotification] = useState73(null);
30959
+ const [muteNotification, setMuteNotification] = useState74(null);
30933
30960
  useEffect69(() => {
30934
30961
  switch (notification == null ? void 0 : notification.type) {
30935
30962
  case HMSNotificationTypes9.REMOVED_FROM_ROOM:
@@ -31181,7 +31208,7 @@ var PreviewScreen = () => {
31181
31208
 
31182
31209
  // src/Prebuilt/components/Toast/ToastContainer.jsx
31183
31210
  init_define_process_env();
31184
- import React177, { useEffect as useEffect72, useState as useState74 } from "react";
31211
+ import React177, { useEffect as useEffect72, useState as useState75 } from "react";
31185
31212
  import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
31186
31213
 
31187
31214
  // src/Prebuilt/components/Toast/Toast.jsx
@@ -31206,7 +31233,7 @@ var Toast2 = (_a8) => {
31206
31233
  // src/Prebuilt/components/Toast/ToastContainer.jsx
31207
31234
  var ToastContainer = () => {
31208
31235
  const isConnected = useHMSStore94(selectIsConnectedToRoom11);
31209
- const [toasts, setToast] = useState74([]);
31236
+ const [toasts, setToast] = useState75([]);
31210
31237
  useEffect72(() => {
31211
31238
  ToastManager.addListener(setToast);
31212
31239
  return () => {
@@ -31262,7 +31289,7 @@ var Sheet2 = () => {
31262
31289
 
31263
31290
  // src/Prebuilt/plugins/FlyingEmoji.jsx
31264
31291
  init_define_process_env();
31265
- import React180, { useCallback as useCallback37, useEffect as useEffect73, useMemo as useMemo21, useState as useState75 } from "react";
31292
+ import React180, { useCallback as useCallback37, useEffect as useEffect73, useMemo as useMemo21, useState as useState76 } from "react";
31266
31293
  import { useMedia as useMedia41 } from "react-use";
31267
31294
  import {
31268
31295
  selectIsLargeRoom as selectIsLargeRoom4,
@@ -31300,7 +31327,7 @@ function FlyingEmoji() {
31300
31327
  const localPeerId = useHMSStore96(selectLocalPeerID16);
31301
31328
  const vanillaStore = useHMSVanillaStore17();
31302
31329
  const hmsActions = useHMSActions54();
31303
- const [emojis, setEmojis] = useState75([]);
31330
+ const [emojis, setEmojis] = useState76([]);
31304
31331
  const isMobile = useMedia41(config.media.md);
31305
31332
  const isLargeRoom = useHMSStore96(selectIsLargeRoom4);
31306
31333
  const startingPoints = useMemo21(() => getStartingPoints(isMobile), [isMobile]);
@@ -31795,4 +31822,4 @@ lodash/lodash.js:
31795
31822
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
31796
31823
  *)
31797
31824
  */
31798
- //# sourceMappingURL=chunk-E2EX6WG2.js.map
31825
+ //# sourceMappingURL=chunk-3FTUSPXW.js.map