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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -34,8 +34,8 @@ var __objRest = (source, exclude) => {
34
34
  }
35
35
  return target;
36
36
  };
37
- var __esm = (fn, res) => function __init() {
38
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
37
+ var __esm = (fn2, res) => function __init() {
38
+ return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
39
39
  };
40
40
  var __commonJS = (cb, mod) => function __require() {
41
41
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
@@ -44,13 +44,13 @@ var __export = (target, all) => {
44
44
  for (var name in all)
45
45
  __defProp(target, name, { get: all[name], enumerable: true });
46
46
  };
47
- var __copyProps = (to2, from, except, desc) => {
47
+ var __copyProps = (to, from, except, desc) => {
48
48
  if (from && typeof from === "object" || typeof from === "function") {
49
49
  for (let key of __getOwnPropNames(from))
50
- if (!__hasOwnProp.call(to2, key) && key !== except)
51
- __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
50
+ if (!__hasOwnProp.call(to, key) && key !== except)
51
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
52
52
  }
53
- return to2;
53
+ return to;
54
54
  };
55
55
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
56
56
  // If the importer is in node compatibility mode or this is not an ESM
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
108
108
  var define_process_env_default;
109
109
  var init_define_process_env = __esm({
110
110
  "<define:process.env>"() {
111
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_3f179e2a-0273-4c12-bf04-005bfb6de68d", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.5-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_3f179e2a-0273-4c12-bf04-005bfb6de68d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.5-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.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "594", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240317.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.1/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.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:20579", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.5-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8449690854", 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: "ff505981427628881b2c9c601640319966773bd2", 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: "e545733b15e3a9253d5a1cef5d29dfab496fa3910419720fe8147e093fcd3411", 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--1711532751910-0.7164482395491947:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711532751719-0.8203476954468907:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711532729873-0.6297403571471112:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711532729699-0.7760332225690942:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_526005c1-0b3d-4b30-880f-ebba4158c2e9", INVOCATION_ID: "9fe2f550138e49b5a525b996b2abb0dc", 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: "496", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 3", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.5-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.5-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "ff505981427628881b2c9c601640319966773bd2", 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_3f179e2a-0273-4c12-bf04-005bfb6de68d", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3f179e2a-0273-4c12-bf04-005bfb6de68d", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_3f179e2a-0273-4c12-bf04-005bfb6de68d" };
111
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_0b07f365-139a-421d-9c7c-4ccf938658c1", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.5-alpha.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_0b07f365-139a-421d-9c7c-4ccf938658c1", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.5-alpha.2", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "605", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240324.2.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.1/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.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:17368", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.5-alpha.2", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8520178349", 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: "2612f221c9a7a7705261bf50d57fbca61aee6386", 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: "ffc65f578b854015c24ed4b809c28f37ef116b2cb05dc112117078c5f71b5c7a", 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--1712048637876-0.3799319346227026:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1712048637680-0.818091046210133:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1712048615292-0.14259610769725772:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1712048615112-0.4129072975441872:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_19615d3c-7043-465b-8a56-86a8382c3c29", INVOCATION_ID: "d3a76b33e4ae403cb6c003016dec63d3", 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: "498", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 367", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.5-alpha.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.5-alpha.2", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "2612f221c9a7a7705261bf50d57fbca61aee6386", 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_0b07f365-139a-421d-9c7c-4ccf938658c1", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_0b07f365-139a-421d-9c7c-4ccf938658c1", 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.169+2/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_0b07f365-139a-421d-9c7c-4ccf938658c1" };
112
112
  }
113
113
  });
114
114
 
@@ -6236,8 +6236,8 @@ var require_lodash = __commonJS({
6236
6236
  function createBind(func, bitmask, thisArg) {
6237
6237
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
6238
6238
  function wrapper() {
6239
- var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
6240
- return fn.apply(isBind ? thisArg : this, arguments);
6239
+ var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
6240
+ return fn2.apply(isBind ? thisArg : this, arguments);
6241
6241
  }
6242
6242
  return wrapper;
6243
6243
  }
@@ -6303,8 +6303,8 @@ var require_lodash = __commonJS({
6303
6303
  arity - length
6304
6304
  );
6305
6305
  }
6306
- var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
6307
- return apply(fn, this, args);
6306
+ var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
6307
+ return apply(fn2, this, args);
6308
6308
  }
6309
6309
  return wrapper;
6310
6310
  }
@@ -6392,7 +6392,7 @@ var require_lodash = __commonJS({
6392
6392
  arity - length
6393
6393
  );
6394
6394
  }
6395
- var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func;
6395
+ var thisBinding = isBind ? thisArg : this, fn2 = isBindKey ? thisBinding[func] : func;
6396
6396
  length = args.length;
6397
6397
  if (argPos) {
6398
6398
  args = reorder(args, argPos);
@@ -6403,9 +6403,9 @@ var require_lodash = __commonJS({
6403
6403
  args.length = ary2;
6404
6404
  }
6405
6405
  if (this && this !== root && this instanceof wrapper) {
6406
- fn = Ctor || createCtor(fn);
6406
+ fn2 = Ctor || createCtor(fn2);
6407
6407
  }
6408
- return fn.apply(thisBinding, args);
6408
+ return fn2.apply(thisBinding, args);
6409
6409
  }
6410
6410
  return wrapper;
6411
6411
  }
@@ -6462,14 +6462,14 @@ var require_lodash = __commonJS({
6462
6462
  function createPartial(func, bitmask, thisArg, partials) {
6463
6463
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
6464
6464
  function wrapper() {
6465
- var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func;
6465
+ var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
6466
6466
  while (++leftIndex < leftLength) {
6467
6467
  args[leftIndex] = partials[leftIndex];
6468
6468
  }
6469
6469
  while (argsLength--) {
6470
6470
  args[leftIndex++] = arguments[++argsIndex];
6471
6471
  }
6472
- return apply(fn, isBind ? thisArg : this, args);
6472
+ return apply(fn2, isBind ? thisArg : this, args);
6473
6473
  }
6474
6474
  return wrapper;
6475
6475
  }
@@ -10045,6 +10045,17 @@ var init_AppData = __esm({
10045
10045
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
10046
10046
  const isMobile = (0, import_react_use2.useMedia)(config.media.md);
10047
10047
  const { isLocalVideoEnabled } = (0, import_react_sdk10.useAVToggle)();
10048
+ const sidepaneOpenedRef = (0, import_react34.useRef)(false);
10049
+ const defaultMediaURL = (0, import_react34.useMemo)(() => {
10050
+ var _a9;
10051
+ const media = ((_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) || [];
10052
+ for (let i = 0; i < media.length; i++) {
10053
+ if (media[i].default && media[i].url) {
10054
+ return media[i].url;
10055
+ }
10056
+ }
10057
+ return "";
10058
+ }, [(_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media]);
10048
10059
  (0, import_react34.useEffect)(() => {
10049
10060
  hmsActions.initAppData(__spreadValues(__spreadValues({}, initialAppData), appData));
10050
10061
  hmsActions.setFrameworkInfo({
@@ -10068,20 +10079,12 @@ var init_AppData = __esm({
10068
10079
  hmsActions.setAppData(APP_DATA.subscribedNotifications, preferences.subscribedNotifications, true);
10069
10080
  }, [preferences.subscribedNotifications, hmsActions]);
10070
10081
  (0, import_react34.useEffect)(() => {
10071
- var _a9, _b7;
10072
- let defaultMediaURL;
10073
- (_b7 = (_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) == null ? void 0 : _b7.forEach((media) => {
10074
- if (media.default && media.url) {
10075
- defaultMediaURL = media.url;
10076
- }
10077
- });
10078
- if (defaultMediaURL) {
10082
+ if (defaultMediaURL && !sidepaneOpenedRef.current && !isMobile && isLocalVideoEnabled) {
10079
10083
  hmsActions.setAppData(APP_DATA.background, defaultMediaURL);
10080
- if (isLocalVideoEnabled && !isMobile) {
10081
- toggleVB();
10082
- }
10084
+ sidepaneOpenedRef.current = true;
10085
+ toggleVB();
10083
10086
  }
10084
- }, [hmsActions, (_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media, toggleVB, isLocalVideoEnabled, isMobile]);
10087
+ }, [hmsActions, toggleVB, isLocalVideoEnabled, isMobile, defaultMediaURL]);
10085
10088
  return /* @__PURE__ */ import_react34.default.createElement(ResetStreamingStart, null);
10086
10089
  });
10087
10090
  ResetStreamingStart = () => {
@@ -16173,7 +16176,7 @@ function shimGetUserMedia(window2, browserDetails) {
16173
16176
  if (typeof c !== "object" || c.mandatory || c.optional) {
16174
16177
  return c;
16175
16178
  }
16176
- const cc2 = {};
16179
+ const cc = {};
16177
16180
  Object.keys(c).forEach((key) => {
16178
16181
  if (key === "require" || key === "advanced" || key === "mediaSource") {
16179
16182
  return;
@@ -16189,35 +16192,35 @@ function shimGetUserMedia(window2, browserDetails) {
16189
16192
  return name === "deviceId" ? "sourceId" : name;
16190
16193
  };
16191
16194
  if (r.ideal !== void 0) {
16192
- cc2.optional = cc2.optional || [];
16193
- let oc = {};
16195
+ cc.optional = cc.optional || [];
16196
+ let oc2 = {};
16194
16197
  if (typeof r.ideal === "number") {
16195
- oc[oldname_("min", key)] = r.ideal;
16196
- cc2.optional.push(oc);
16197
- oc = {};
16198
- oc[oldname_("max", key)] = r.ideal;
16199
- cc2.optional.push(oc);
16198
+ oc2[oldname_("min", key)] = r.ideal;
16199
+ cc.optional.push(oc2);
16200
+ oc2 = {};
16201
+ oc2[oldname_("max", key)] = r.ideal;
16202
+ cc.optional.push(oc2);
16200
16203
  } else {
16201
- oc[oldname_("", key)] = r.ideal;
16202
- cc2.optional.push(oc);
16204
+ oc2[oldname_("", key)] = r.ideal;
16205
+ cc.optional.push(oc2);
16203
16206
  }
16204
16207
  }
16205
16208
  if (r.exact !== void 0 && typeof r.exact !== "number") {
16206
- cc2.mandatory = cc2.mandatory || {};
16207
- cc2.mandatory[oldname_("", key)] = r.exact;
16209
+ cc.mandatory = cc.mandatory || {};
16210
+ cc.mandatory[oldname_("", key)] = r.exact;
16208
16211
  } else {
16209
16212
  ["min", "max"].forEach((mix) => {
16210
16213
  if (r[mix] !== void 0) {
16211
- cc2.mandatory = cc2.mandatory || {};
16212
- cc2.mandatory[oldname_(mix, key)] = r[mix];
16214
+ cc.mandatory = cc.mandatory || {};
16215
+ cc.mandatory[oldname_(mix, key)] = r[mix];
16213
16216
  }
16214
16217
  });
16215
16218
  }
16216
16219
  });
16217
16220
  if (c.advanced) {
16218
- cc2.optional = (cc2.optional || []).concat(c.advanced);
16221
+ cc.optional = (cc.optional || []).concat(c.advanced);
16219
16222
  }
16220
- return cc2;
16223
+ return cc;
16221
16224
  };
16222
16225
  const shimConstraints_ = function(constraints, func) {
16223
16226
  if (browserDetails.version >= 61) {
@@ -16455,20 +16458,20 @@ function shimOnTrack(window2) {
16455
16458
  }
16456
16459
  function shimGetSendersWithDtmf(window2) {
16457
16460
  if (typeof window2 === "object" && window2.RTCPeerConnection && !("getSenders" in window2.RTCPeerConnection.prototype) && "createDTMFSender" in window2.RTCPeerConnection.prototype) {
16458
- const shimSenderWithDtmf = function(pc, track) {
16461
+ const shimSenderWithDtmf = function(pc2, track) {
16459
16462
  return {
16460
16463
  track,
16461
16464
  get dtmf() {
16462
16465
  if (this._dtmf === void 0) {
16463
16466
  if (track.kind === "audio") {
16464
- this._dtmf = pc.createDTMFSender(track);
16467
+ this._dtmf = pc2.createDTMFSender(track);
16465
16468
  } else {
16466
16469
  this._dtmf = null;
16467
16470
  }
16468
16471
  }
16469
16472
  return this._dtmf;
16470
16473
  },
16471
- _pc: pc
16474
+ _pc: pc2
16472
16475
  };
16473
16476
  };
16474
16477
  if (!window2.RTCPeerConnection.prototype.getSenders) {
@@ -16823,11 +16826,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
16823
16826
  }
16824
16827
  return this.getSenders().find((s) => s.track === track);
16825
16828
  };
16826
- function replaceInternalStreamId(pc, description) {
16829
+ function replaceInternalStreamId(pc2, description) {
16827
16830
  let sdp2 = description.sdp;
16828
- Object.keys(pc._reverseStreams || []).forEach((internalId) => {
16829
- const externalStream = pc._reverseStreams[internalId];
16830
- const internalStream = pc._streams[externalStream.id];
16831
+ Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
16832
+ const externalStream = pc2._reverseStreams[internalId];
16833
+ const internalStream = pc2._streams[externalStream.id];
16831
16834
  sdp2 = sdp2.replace(
16832
16835
  new RegExp(internalStream.id, "g"),
16833
16836
  externalStream.id
@@ -16838,11 +16841,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
16838
16841
  sdp: sdp2
16839
16842
  });
16840
16843
  }
16841
- function replaceExternalStreamId(pc, description) {
16844
+ function replaceExternalStreamId(pc2, description) {
16842
16845
  let sdp2 = description.sdp;
16843
- Object.keys(pc._reverseStreams || []).forEach((internalId) => {
16844
- const externalStream = pc._reverseStreams[internalId];
16845
- const internalStream = pc._streams[externalStream.id];
16846
+ Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
16847
+ const externalStream = pc2._reverseStreams[internalId];
16848
+ const internalStream = pc2._streams[externalStream.id];
16846
16849
  sdp2 = sdp2.replace(
16847
16850
  new RegExp(externalStream.id, "g"),
16848
16851
  internalStream.id
@@ -16956,9 +16959,9 @@ function shimPeerConnection(window2, browserDetails) {
16956
16959
  }
16957
16960
  function fixNegotiationNeeded(window2, browserDetails) {
16958
16961
  wrapPeerConnectionEvent(window2, "negotiationneeded", (e) => {
16959
- const pc = e.target;
16960
- if (browserDetails.version < 72 || pc.getConfiguration && pc.getConfiguration().sdpSemantics === "plan-b") {
16961
- if (pc.signalingState !== "stable") {
16962
+ const pc2 = e.target;
16963
+ if (browserDetails.version < 72 || pc2.getConfiguration && pc2.getConfiguration().sdpSemantics === "plan-b") {
16964
+ if (pc2.signalingState !== "stable") {
16962
16965
  return;
16963
16966
  }
16964
16967
  }
@@ -17430,24 +17433,24 @@ function shimRemoteStreamsAPI(window2) {
17430
17433
  });
17431
17434
  const origSetRemoteDescription = window2.RTCPeerConnection.prototype.setRemoteDescription;
17432
17435
  window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
17433
- const pc = this;
17436
+ const pc2 = this;
17434
17437
  if (!this._onaddstreampoly) {
17435
17438
  this.addEventListener("track", this._onaddstreampoly = function(e) {
17436
17439
  e.streams.forEach((stream) => {
17437
- if (!pc._remoteStreams) {
17438
- pc._remoteStreams = [];
17440
+ if (!pc2._remoteStreams) {
17441
+ pc2._remoteStreams = [];
17439
17442
  }
17440
- if (pc._remoteStreams.indexOf(stream) >= 0) {
17443
+ if (pc2._remoteStreams.indexOf(stream) >= 0) {
17441
17444
  return;
17442
17445
  }
17443
- pc._remoteStreams.push(stream);
17446
+ pc2._remoteStreams.push(stream);
17444
17447
  const event = new Event("addstream");
17445
17448
  event.stream = stream;
17446
- pc.dispatchEvent(event);
17449
+ pc2.dispatchEvent(event);
17447
17450
  });
17448
17451
  });
17449
17452
  }
17450
- return origSetRemoteDescription.apply(pc, arguments);
17453
+ return origSetRemoteDescription.apply(pc2, arguments);
17451
17454
  };
17452
17455
  }
17453
17456
  }
@@ -18431,15 +18434,15 @@ function shimSendThrowTypeError(window2) {
18431
18434
  if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
18432
18435
  return;
18433
18436
  }
18434
- function wrapDcSend(dc2, pc) {
18435
- const origDataChannelSend = dc2.send;
18436
- dc2.send = function send() {
18437
+ function wrapDcSend(dc, pc2) {
18438
+ const origDataChannelSend = dc.send;
18439
+ dc.send = function send() {
18437
18440
  const data3 = arguments[0];
18438
18441
  const length = data3.length || data3.size || data3.byteLength;
18439
- if (dc2.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
18440
- throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
18442
+ if (dc.readyState === "open" && pc2.sctp && length > pc2.sctp.maxMessageSize) {
18443
+ throw new TypeError("Message too large (can send a maximum of " + pc2.sctp.maxMessageSize + " bytes)");
18441
18444
  }
18442
- return origDataChannelSend.apply(dc2, arguments);
18445
+ return origDataChannelSend.apply(dc, arguments);
18443
18446
  };
18444
18447
  }
18445
18448
  const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
@@ -18495,11 +18498,11 @@ function shimConnectionState(window2) {
18495
18498
  proto[method] = function() {
18496
18499
  if (!this._connectionstatechangepoly) {
18497
18500
  this._connectionstatechangepoly = (e) => {
18498
- const pc = e.target;
18499
- if (pc._lastConnectionState !== pc.connectionState) {
18500
- pc._lastConnectionState = pc.connectionState;
18501
+ const pc2 = e.target;
18502
+ if (pc2._lastConnectionState !== pc2.connectionState) {
18503
+ pc2._lastConnectionState = pc2.connectionState;
18501
18504
  const newEvent = new Event("connectionstatechange", e);
18502
- pc.dispatchEvent(newEvent);
18505
+ pc2.dispatchEvent(newEvent);
18503
18506
  }
18504
18507
  return e;
18505
18508
  };
@@ -19436,7 +19439,7 @@ function He(a2, e) {
19436
19439
  if (e)
19437
19440
  for (let r of e.auxiliaryTracks) {
19438
19441
  let s = a2[r];
19439
- Ca(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
19442
+ Da(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
19440
19443
  }
19441
19444
  return { video: t, audio: i };
19442
19445
  }
@@ -19446,16 +19449,16 @@ function tt(a2) {
19446
19449
  function it(a2) {
19447
19450
  return a2 && a2.type === "video";
19448
19451
  }
19449
- function Ca(a2) {
19452
+ function Da(a2) {
19450
19453
  return a2 && a2.source === "screen";
19451
19454
  }
19452
- function $t(a2) {
19455
+ function Wt(a2) {
19453
19456
  return a2 && a2.source === "audioplaylist";
19454
19457
  }
19455
19458
  function rt(a2) {
19456
19459
  return a2 && a2.source === "videoplaylist";
19457
19460
  }
19458
- function Jr(a2) {
19461
+ function Qr(a2) {
19459
19462
  return a2 ? !!(a2 != null && a2.degraded) : false;
19460
19463
  }
19461
19464
  function Ue(a2, e) {
@@ -19469,7 +19472,7 @@ function st(a2) {
19469
19472
  function R(a2) {
19470
19473
  return (e) => (t) => a2(t, e);
19471
19474
  }
19472
- function $a() {
19475
+ function qa() {
19473
19476
  if (_ && window) {
19474
19477
  let a2 = window.location.hostname;
19475
19478
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
@@ -19482,11 +19485,11 @@ function ie(a2) {
19482
19485
  function ot(a2 = "prod", e) {
19483
19486
  let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
19484
19487
  if (Ce)
19485
- return bs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Es, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
19486
- let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = ur(`web_${r.name}`), l = r.version || "", u = ur(`${o.name}_${o.version}`), p = u;
19487
- return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`), bs({ os: n, os_version: l, sdk: t, sdk_version: Es, device_model: p, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
19488
+ return bs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: As, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
19489
+ let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = pr(`web_${r.name}`), l = r.version || "", u = pr(`${o.name}_${o.version}`), p = u;
19490
+ return s.type && (p = `${pr(`${s.vendor}_${s.type}`)}/${u}`), bs({ os: n, os_version: l, sdk: t, sdk_version: As, device_model: p, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
19488
19491
  }
19489
- function ur(a2) {
19492
+ function pr(a2) {
19490
19493
  return a2.replace(/ /g, "_");
19491
19494
  }
19492
19495
  function Jt(a2, e = 300) {
@@ -19499,13 +19502,13 @@ function Jt(a2, e = 300) {
19499
19502
  }, e);
19500
19503
  };
19501
19504
  }
19502
- function cm(a2) {
19505
+ function um(a2) {
19503
19506
  return (e) => {
19504
19507
  if (e.sessionStore)
19505
19508
  return a2 ? e.sessionStore[a2] : e.sessionStore;
19506
19509
  };
19507
19510
  }
19508
- var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, wt, import_eventemitter24, import_uuid9, import_uuid10, Pa, Ea, ba, Vt, Wr, Kr, $r, S, v, Xi, Ia, lr, Zi, Ha, qr, er, jr, B, La, Hn, Cn, G, Wt, zr, D, tr, wa, ye, Dn, Da, oe, _a7, z, ue, _n, Nn, Z, q, Na, Xr, On, xn, rr, Oa, Bn, Vn, Fn, Gn, $n, Wn, Kn, qn, at, xa, jn, Y, es, Jn, ne, Qn, Kt, Ua, ts, zn, is, Yn, Xn, Zn, ec, tc, ic, rc, sc, rs, cc, Ba, dc, as, sr, os, ns, cs, ds, ls, us, ps, hs, ms, Va, d, pe, _, Ss, Ce, Ga, Tc, gs, Ts, vs, Ms, Ve, M, f, Wa, m, nr, ys, ce, ks, Es, bs, I, y, pr, j, hr, mr, Sr, Ls, ws, Ds, gr, xs, Tr, Us, fr, vr, Fs, Gs, pt, Qe, gt, k, Hr, Tt, Qs, mo, So, $, Cr, go, To, fo, vo, Mo, Q, nm, lm, um, oi, zs, pm, hm, mm, yo, ko, gm, Ys, Tm, Po, fm, vm, Mm, ym, km, Pm, Xs, Zs, bm, Am, ea, Rm, Im, ta, Hm, Cm, Lm, ia, ra, Eo, bo, Ao, wm, Dm, _m, Nm, Om, sa, jm, Ro, Jm, Qm, zm, Ho, Co, Nr, Te, W, Bi, Ji, zo, Yo, Xo, Zo, ya, en, ka, Vr, ve, tn, rn, sn, an, on, nn, cn, dn, ln, un, Fr, pn, hn, mn, Sn, gn, Tn;
19511
+ var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, wt, import_eventemitter24, import_uuid9, import_uuid10, ba, Ra, Ia, Vt, Kr, qr, $r, S, v, Zi, La, ur, er, wa, jr, tr, Jr, B, _a7, wn, Dn, G, $t, Yr, D, ir, Na, ye, On, Oa, oe, xa, z, ue, xn, Un, Z, q, Ua, Zr, Bn, Vn, sr, Ba, Gn, Wn, $n, Kn, qn, jn, Jn, Qn, at, Va, zn, Y, ts, Yn, ne, Xn, Kt, Fa, is, Zn, rs, ec, tc, ic, rc, sc, ac, oc, nc, ss, uc, Ga, pc, os, ar, ns, cs, ds, ls, us, ps, hs, ms, Ss, Wa, d, pe, _, gs, Ce, Ka, Mc, Ts, fs, Ms, ys, Ve, M, f, ja, m, cr, ks, ce, Ps, As, bs, I, y, hr, j, mr, Sr, gr, ws, Ds, _s, Tr, Us, fr, Bs, vr, Mr, Gs, Ws, pt, Qe, gt, k, Cr, Tt, Xs, To, fo, W, Lr, vo, Mo, yo, ko, Po, Q, lm, hm, mm, oi, Zs, Sm, gm, Tm, Eo, Ao, vm, ea, Mm, bo, ym, km, Pm, Em, Am, bm, ta, ia, Im, Hm, ra, Cm, Lm, sa, wm, Dm, _m, aa, oa, Ro, Io, Ho, Nm, Om, xm, Um, Bm, na, zm, Co, Ym, Xm, Zm, wo, Do, Or, Te, $, Vi, Qi, Zo, en, tn, rn, Ea, sn, Aa, Fr, ve, an, on, nn, cn, dn, ln, un, pn, hn, mn, Gr, Sn, gn, Tn, fn, vn, Mn;
19509
19512
  var init_dist = __esm({
19510
19513
  "../hms-video-store/dist/index.js"() {
19511
19514
  "use strict";
@@ -19533,68 +19536,68 @@ var init_dist = __esm({
19533
19536
  import_uuid9 = require("uuid");
19534
19537
  import_uuid10 = require("uuid");
19535
19538
  init_es();
19536
- Pa = Object.defineProperty;
19537
- Ea = Object.defineProperties;
19538
- ba = Object.getOwnPropertyDescriptors;
19539
+ ba = Object.defineProperty;
19540
+ Ra = Object.defineProperties;
19541
+ Ia = Object.getOwnPropertyDescriptors;
19539
19542
  Vt = Object.getOwnPropertySymbols;
19540
- Wr = Object.prototype.hasOwnProperty;
19541
- Kr = Object.prototype.propertyIsEnumerable;
19542
- $r = (a2, e, t) => e in a2 ? Pa(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
19543
+ Kr = Object.prototype.hasOwnProperty;
19544
+ qr = Object.prototype.propertyIsEnumerable;
19545
+ $r = (a2, e, t) => e in a2 ? ba(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
19543
19546
  S = (a2, e) => {
19544
19547
  for (var t in e || (e = {}))
19545
- Wr.call(e, t) && $r(a2, t, e[t]);
19548
+ Kr.call(e, t) && $r(a2, t, e[t]);
19546
19549
  if (Vt)
19547
19550
  for (var t of Vt(e))
19548
- Kr.call(e, t) && $r(a2, t, e[t]);
19551
+ qr.call(e, t) && $r(a2, t, e[t]);
19549
19552
  return a2;
19550
19553
  };
19551
- v = (a2, e) => Ea(a2, ba(e));
19552
- Xi = (a2, e) => {
19554
+ v = (a2, e) => Ra(a2, Ia(e));
19555
+ Zi = (a2, e) => {
19553
19556
  var t = {};
19554
19557
  for (var i in a2)
19555
- Wr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
19558
+ Kr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
19556
19559
  if (a2 != null && Vt)
19557
19560
  for (var i of Vt(a2))
19558
- e.indexOf(i) < 0 && Kr.call(a2, i) && (t[i] = a2[i]);
19561
+ e.indexOf(i) < 0 && qr.call(a2, i) && (t[i] = a2[i]);
19559
19562
  return t;
19560
19563
  };
19561
- Ia = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
19562
- lr = Ia((id, qa) => {
19563
- qa.exports = { version: "0.12.5-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"] };
19564
+ La = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
19565
+ ur = La((ad, Qa) => {
19566
+ Qa.exports = { version: "0.12.5-alpha.2", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
19564
19567
  });
19565
- Zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Zi || {});
19566
- Ha = ((e) => (e.CHAT = "chat", e))(Ha || {});
19567
- qr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(qr || {});
19568
- er = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.POLLS_LIST = "POLLS_LIST", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(er || {});
19569
- jr = ((t) => (t.audio = "audio", t.video = "video", t))(jr || {});
19568
+ er = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(er || {});
19569
+ wa = ((e) => (e.CHAT = "chat", e))(wa || {});
19570
+ jr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(jr || {});
19571
+ tr = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.POLLS_LIST = "POLLS_LIST", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(tr || {});
19572
+ Jr = ((t) => (t.audio = "audio", t.video = "video", t))(Jr || {});
19570
19573
  B = (a2) => a2.room;
19571
- La = (a2) => a2.errors;
19572
- Hn = createSelector(La, (a2) => a2.length === 0 ? null : a2.at(-1));
19573
- Cn = createSelector(B, (a2) => a2.id);
19574
+ _a7 = (a2) => a2.errors;
19575
+ wn = createSelector(_a7, (a2) => a2.length === 0 ? null : a2.at(-1));
19576
+ Dn = createSelector(B, (a2) => a2.id);
19574
19577
  G = (a2) => a2.peers;
19575
- Wt = (a2) => a2.messages.byID;
19576
- zr = (a2) => a2.messages.allIDs;
19578
+ $t = (a2) => a2.messages.byID;
19579
+ Yr = (a2) => a2.messages.allIDs;
19577
19580
  D = (a2) => a2.tracks;
19578
- tr = (a2) => a2.appData;
19579
- wa = (a2) => a2.speakers;
19581
+ ir = (a2) => a2.appData;
19582
+ Na = (a2) => a2.speakers;
19580
19583
  ye = createSelector([B], (a2) => a2 && a2.isConnected);
19581
- Dn = createSelector([ye, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
19582
- Da = (a2) => a2.hideLocalPeer;
19583
- oe = createSelector([B, G, Da], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
19584
- _a7 = createSelector(D, (a2) => Object.values(a2));
19584
+ On = createSelector([ye, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
19585
+ Oa = (a2) => a2.hideLocalPeer;
19586
+ oe = createSelector([B, G, Oa], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
19587
+ xa = createSelector(D, (a2) => Object.values(a2));
19585
19588
  z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
19586
19589
  ue = createSelector(B, (a2) => a2.localPeer);
19587
- _n = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
19588
- Nn = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
19590
+ xn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
19591
+ Un = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
19589
19592
  Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
19590
19593
  q = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
19591
- Na = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
19592
- Xr = createSelector([Z, q, Na], (a2, e, t) => {
19594
+ Ua = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
19595
+ Zr = createSelector([Z, q, Ua], (a2, e, t) => {
19593
19596
  let i = t ? [...t] : [];
19594
19597
  return a2 && i.unshift(a2), e && i.unshift(e), i;
19595
19598
  });
19596
- On = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
19597
- xn = createSelector(G, wa, (a2, e) => {
19599
+ Bn = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
19600
+ Vn = createSelector(G, Na, (a2, e) => {
19598
19601
  let t = Object.entries(e).sort((i, r) => {
19599
19602
  var n, l;
19600
19603
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -19607,11 +19610,11 @@ var init_dist = __esm({
19607
19610
  }
19608
19611
  return null;
19609
19612
  });
19610
- rr = createSelector(z, D, (a2, e) => {
19613
+ sr = createSelector(z, D, (a2, e) => {
19611
19614
  let { video: t, audio: i } = He(e, a2);
19612
19615
  return !!(t || i);
19613
19616
  });
19614
- Oa = createSelector(G, D, (a2, e) => {
19617
+ Ba = createSelector(G, D, (a2, e) => {
19615
19618
  let t;
19616
19619
  for (let i in a2) {
19617
19620
  let r = a2[i], { video: s, audio: o } = He(e, r);
@@ -19621,15 +19624,15 @@ var init_dist = __esm({
19621
19624
  }
19622
19625
  return t;
19623
19626
  });
19624
- Bn = createSelector(Oa, (a2) => !!a2);
19625
- Vn = createSelector(G, D, (a2, e) => {
19627
+ Gn = createSelector(Ba, (a2) => !!a2);
19628
+ Wn = createSelector(G, D, (a2, e) => {
19626
19629
  for (let t in a2) {
19627
19630
  let i = a2[t], { audio: r, video: s } = He(e, i);
19628
19631
  if (!s && r)
19629
19632
  return i;
19630
19633
  }
19631
19634
  });
19632
- Fn = createSelector(G, D, (a2, e) => {
19635
+ $n = createSelector(G, D, (a2, e) => {
19633
19636
  let t = [], i = [];
19634
19637
  for (let r in a2) {
19635
19638
  let s = a2[r], { video: o, audio: n } = He(e, s);
@@ -19637,77 +19640,77 @@ var init_dist = __esm({
19637
19640
  }
19638
19641
  return t.concat(i);
19639
19642
  });
19640
- Gn = createSelector(G, D, (a2, e) => {
19643
+ Kn = createSelector(G, D, (a2, e) => {
19641
19644
  for (let t in e) {
19642
19645
  let i = e[t];
19643
19646
  if (rt(i) && it(i) && i.peerId)
19644
19647
  return a2[i.peerId];
19645
19648
  }
19646
19649
  });
19647
- $n = createSelector(G, D, (a2, e) => {
19650
+ qn = createSelector(G, D, (a2, e) => {
19648
19651
  for (let t in e) {
19649
19652
  let i = e[t];
19650
- if ($t(i) && i.peerId)
19653
+ if (Wt(i) && i.peerId)
19651
19654
  return a2[i.peerId];
19652
19655
  }
19653
19656
  });
19654
- Wn = createSelector(_a7, (a2) => a2.filter(Jr));
19655
- Kn = createSelector(zr, (a2) => a2.length);
19656
- qn = createSelector(Wt, (a2) => Object.values(a2).filter((e) => !e.read).length);
19657
- at = createSelector(zr, Wt, (a2, e) => {
19657
+ jn = createSelector(xa, (a2) => a2.filter(Qr));
19658
+ Jn = createSelector(Yr, (a2) => a2.length);
19659
+ Qn = createSelector($t, (a2) => Object.values(a2).filter((e) => !e.read).length);
19660
+ at = createSelector(Yr, $t, (a2, e) => {
19658
19661
  let t = [];
19659
19662
  return a2.forEach((i) => {
19660
19663
  t.push(e[i]);
19661
19664
  }), t;
19662
19665
  });
19663
- xa = createSelector(at, (a2) => a2.filter((e) => {
19666
+ Va = createSelector(at, (a2) => a2.filter((e) => {
19664
19667
  var t;
19665
19668
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
19666
19669
  }));
19667
- jn = createSelector(xa, (a2) => a2.filter((e) => !e.read).length);
19670
+ zn = createSelector(Va, (a2) => a2.filter((e) => !e.read).length);
19668
19671
  Y = createSelector([B], (a2) => a2 && a2.roomState);
19669
- es = createSelector(Y, (a2) => a2 === "Preview");
19670
- Jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
19672
+ ts = createSelector(Y, (a2) => a2 === "Preview");
19673
+ Yn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
19671
19674
  ne = (a2) => a2.roles;
19672
- Qn = createSelector([ne], (a2) => Object.keys(a2));
19675
+ Xn = createSelector([ne], (a2) => Object.keys(a2));
19673
19676
  Kt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
19674
- Ua = (a2) => {
19677
+ Fa = (a2) => {
19675
19678
  var e;
19676
19679
  return (e = a2.preview) == null ? void 0 : e.asRole;
19677
19680
  };
19678
- ts = createSelector([Ua, ne], (a2, e) => a2 ? e[a2] : null);
19679
- zn = createSelector([Kt], (a2) => {
19681
+ is = createSelector([Fa, ne], (a2, e) => a2 ? e[a2] : null);
19682
+ Zn = createSelector([Kt], (a2) => {
19680
19683
  var e;
19681
19684
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
19682
19685
  });
19683
- is = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
19684
- Yn = createSelector(B, (a2) => a2.recording);
19685
- Xn = createSelector(B, (a2) => a2.rtmp);
19686
- Zn = createSelector(B, (a2) => a2.hls);
19687
- ec = createSelector(B, (a2) => a2.sessionId);
19688
- tc = createSelector(B, (a2) => a2.startedAt);
19689
- ic = createSelector(B, (a2) => !!a2.isLargeRoom);
19690
- rc = createSelector(B, (a2) => !!a2.isEffectsEnabled);
19691
- sc = createSelector(B, (a2) => a2.effectsKey);
19692
- rs = (a2) => a2.polls;
19693
- cc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
19694
- Ba = (a2) => a2.whiteboards;
19695
- dc = createSelector(Ba, (a2) => Object.values(a2)[0]);
19696
- as = (a2 = "audio") => (e) => e.playlist[a2].list;
19697
- sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
19698
- os = (a2 = "audio") => (e) => e.playlist[a2].progress;
19699
- ns = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
19700
- cs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
19701
- ds = (a2 = "audio") => (e) => e.playlist[a2].volume;
19702
- ls = (a2 = "audio") => createSelector(as(a2), (e) => Object.values(e));
19703
- us = (a2 = "audio") => createSelector(as(a2), sr(a2), (e, t) => {
19686
+ rs = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
19687
+ ec = createSelector(B, (a2) => a2.recording);
19688
+ tc = createSelector(B, (a2) => a2.rtmp);
19689
+ ic = createSelector(B, (a2) => a2.hls);
19690
+ rc = createSelector(B, (a2) => a2.sessionId);
19691
+ sc = createSelector(B, (a2) => a2.startedAt);
19692
+ ac = createSelector(B, (a2) => !!a2.isLargeRoom);
19693
+ oc = createSelector(B, (a2) => !!a2.isEffectsEnabled);
19694
+ nc = createSelector(B, (a2) => a2.effectsKey);
19695
+ ss = (a2) => a2.polls;
19696
+ uc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
19697
+ Ga = (a2) => a2.whiteboards;
19698
+ pc = createSelector(Ga, (a2) => Object.values(a2)[0]);
19699
+ os = (a2 = "audio") => (e) => e.playlist[a2].list;
19700
+ ar = (a2 = "audio") => (e) => e.playlist[a2].selection;
19701
+ ns = (a2 = "audio") => (e) => e.playlist[a2].progress;
19702
+ cs = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
19703
+ ds = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
19704
+ ls = (a2 = "audio") => (e) => e.playlist[a2].volume;
19705
+ us = (a2 = "audio") => createSelector(os(a2), (e) => Object.values(e));
19706
+ ps = (a2 = "audio") => createSelector(os(a2), ar(a2), (e, t) => {
19704
19707
  if (t.id)
19705
19708
  return e[t.id];
19706
19709
  });
19707
- ps = { selection: sr("audio"), progress: os("audio"), currentTime: ns("audio"), playbackRate: cs("audio"), volume: ds("audio"), list: ls("audio"), selectedItem: us("audio") };
19708
- hs = { selection: sr("video"), progress: os("video"), currentTime: ns("video"), playbackRate: cs("video"), volume: ds("video"), list: ls("video"), selectedItem: us("video") };
19709
- ms = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(ms || {});
19710
- Va = typeof window != "undefined" && typeof window.expect != "undefined";
19710
+ hs = { selection: ar("audio"), progress: ns("audio"), currentTime: cs("audio"), playbackRate: ds("audio"), volume: ls("audio"), list: us("audio"), selectedItem: ps("audio") };
19711
+ ms = { selection: ar("video"), progress: ns("video"), currentTime: cs("video"), playbackRate: ds("video"), volume: ls("video"), list: us("video"), selectedItem: ps("video") };
19712
+ Ss = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(Ss || {});
19713
+ Wa = typeof window != "undefined" && typeof window.expect != "undefined";
19711
19714
  d = class {
19712
19715
  static v(e, ...t) {
19713
19716
  this.log(0, e, ...t);
@@ -19773,15 +19776,15 @@ var init_dist = __esm({
19773
19776
  }
19774
19777
  }
19775
19778
  };
19776
- d.level = Va ? 7 : 0;
19779
+ d.level = Wa ? 7 : 0;
19777
19780
  pe = new import_ua_parser_js.UAParser();
19778
19781
  _ = typeof window != "undefined";
19779
- Ce = typeof window == "undefined" && !((Ss = pe.getBrowser().name) != null && Ss.toLowerCase().includes("electron"));
19780
- Ga = () => !Ce;
19781
- Tc = Ga();
19782
- vs = ((Ts = (gs = pe.getBrowser()) == null ? void 0 : gs.name) == null ? void 0 : Ts.toLowerCase()) === "firefox";
19783
- Ms = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ms || {});
19784
- Ve = $a();
19782
+ Ce = typeof window == "undefined" && !((gs = pe.getBrowser().name) != null && gs.toLowerCase().includes("electron"));
19783
+ Ka = () => !Ce;
19784
+ Mc = Ka();
19785
+ Ms = ((fs = (Ts = pe.getBrowser()) == null ? void 0 : Ts.name) == null ? void 0 : fs.toLowerCase()) === "firefox";
19786
+ ys = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(ys || {});
19787
+ Ve = qa();
19785
19788
  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 } };
19786
19789
  f = class a extends Error {
19787
19790
  constructor(t, i, r, s, o, n = false) {
@@ -19812,11 +19815,11 @@ var init_dist = __esm({
19812
19815
  }`;
19813
19816
  }
19814
19817
  };
19815
- Wa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
19818
+ ja = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
19816
19819
  m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
19817
19820
  return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
19818
19821
  }, WebSocketConnectionLost(a2, e = "") {
19819
- return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
19822
+ return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
19820
19823
  }, AbnormalClose(a2, e = "") {
19821
19824
  return new f(M.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
19822
19825
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
@@ -19872,7 +19875,7 @@ var init_dist = __esm({
19872
19875
  }, StatsFailed(a2, e = "") {
19873
19876
  return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
19874
19877
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
19875
- return new f(a2, "ServerErrors", e, t, t, Wa.includes(e));
19878
+ return new f(a2, "ServerErrors", e, t, t, ja.includes(e));
19876
19879
  }, AlreadyJoined(a2, e = "") {
19877
19880
  return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
19878
19881
  }, CannotJoinPreviewInProgress(a2, e = "") {
@@ -19920,7 +19923,7 @@ var init_dist = __esm({
19920
19923
  }, NoEntryPlaying(a2, e) {
19921
19924
  return new f(M.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
19922
19925
  } } };
19923
- nr = class {
19926
+ cr = class {
19924
19927
  constructor() {
19925
19928
  this.valuesMap = /* @__PURE__ */ new Map();
19926
19929
  }
@@ -19945,9 +19948,9 @@ var init_dist = __esm({
19945
19948
  return this.valuesMap.size;
19946
19949
  }
19947
19950
  };
19948
- ys = () => {
19951
+ ks = () => {
19949
19952
  try {
19950
- _ && !localStorage && (window.localStorage = new nr());
19953
+ _ && !localStorage && (window.localStorage = new cr());
19951
19954
  } catch (a2) {
19952
19955
  d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
19953
19956
  }
@@ -19959,7 +19962,7 @@ var init_dist = __esm({
19959
19962
  }
19960
19963
  getStorage() {
19961
19964
  try {
19962
- return _ && !this.storage && (ys(), this.storage = window.localStorage), this.storage;
19965
+ return _ && !this.storage && (ks(), this.storage = window.localStorage), this.storage;
19963
19966
  } catch (e) {
19964
19967
  return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
19965
19968
  }
@@ -19979,16 +19982,16 @@ var init_dist = __esm({
19979
19982
  (e = this.getStorage()) == null || e.removeItem(this.key);
19980
19983
  }
19981
19984
  };
19982
- ks = () => {
19985
+ Ps = () => {
19983
19986
  let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
19984
19987
  return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
19985
19988
  };
19986
- Es = lr().version;
19989
+ As = ur().version;
19987
19990
  bs = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
19988
19991
  I = class {
19989
19992
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
19990
19993
  this.metadata = { peer: {}, userAgent: ot() };
19991
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = ks();
19994
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = Ps();
19992
19995
  }
19993
19996
  toSignalParams() {
19994
19997
  return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
@@ -20004,12 +20007,12 @@ var init_dist = __esm({
20004
20007
  return new I({ name: i, level: r, properties: s });
20005
20008
  }
20006
20009
  static preview(i) {
20007
- var r = i, { error: e } = r, t = Xi(r, ["error"]);
20010
+ var r = i, { error: e } = r, t = Zi(r, ["error"]);
20008
20011
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
20009
20012
  return new I({ name: s, level: o, properties: n });
20010
20013
  }
20011
20014
  static join(i) {
20012
- var r = i, { error: e } = r, t = Xi(r, ["error"]);
20015
+ var r = i, { error: e } = r, t = Zi(r, ["error"]);
20013
20016
  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);
20014
20017
  return new I({ name: s, level: o, properties: n });
20015
20018
  }
@@ -20085,7 +20088,7 @@ var init_dist = __esm({
20085
20088
  }
20086
20089
  };
20087
20090
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
20088
- pr = class {
20091
+ hr = class {
20089
20092
  constructor() {
20090
20093
  this.storage = new ce("hms-device-selection");
20091
20094
  this.remember = false;
@@ -20119,14 +20122,14 @@ var init_dist = __esm({
20119
20122
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
20120
20123
  }
20121
20124
  };
20122
- j = new pr();
20123
- hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(hr || {});
20124
- mr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(mr || {});
20125
- Sr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Sr || {});
20126
- Ls = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Ls || {});
20127
- ws = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(ws || {});
20128
- Ds = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ds || {});
20129
- gr = class {
20125
+ j = new hr();
20126
+ mr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(mr || {});
20127
+ Sr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Sr || {});
20128
+ gr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(gr || {});
20129
+ ws = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(ws || {});
20130
+ Ds = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ds || {});
20131
+ _s = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(_s || {});
20132
+ Tr = class {
20130
20133
  constructor() {
20131
20134
  this.TAG = "[HMSIntersectionObserverWrapper]";
20132
20135
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -20153,8 +20156,8 @@ var init_dist = __esm({
20153
20156
  return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
20154
20157
  }
20155
20158
  };
20156
- xs = new gr();
20157
- Tr = class {
20159
+ Us = new Tr();
20160
+ fr = class {
20158
20161
  constructor() {
20159
20162
  this.TAG = "[HMSResizeObserverWrapper]";
20160
20163
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -20181,11 +20184,11 @@ var init_dist = __esm({
20181
20184
  return e || d.w(this.TAG, "Resize Observer is not supported"), e;
20182
20185
  }
20183
20186
  };
20184
- Us = new Tr();
20185
- fr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(fr || {});
20186
- vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(vr || {});
20187
- Fs = "https://event.100ms.live/v2/client/report";
20188
- Gs = "https://event-nonprod.100ms.live/v2/client/report";
20187
+ Bs = new fr();
20188
+ vr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(vr || {});
20189
+ Mr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Mr || {});
20190
+ Gs = "https://event.100ms.live/v2/client/report";
20191
+ Ws = "https://event-nonprod.100ms.live/v2/client/report";
20189
20192
  pt = Math.pow(2, 31) - 1;
20190
20193
  Qe = class {
20191
20194
  };
@@ -20257,127 +20260,127 @@ var init_dist = __esm({
20257
20260
  }
20258
20261
  };
20259
20262
  k.level = 0;
20260
- Hr = (a2, e) => e;
20263
+ Cr = (a2, e) => e;
20261
20264
  Tt = (a2, e) => e;
20262
- Qs = (a2, e) => e;
20263
- mo = (a2, e) => e;
20264
- So = (a2, e) => e;
20265
- $ = createSelector([G, Hr], (a2, e) => e ? a2[e] : null);
20266
- Cr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
20267
- go = createSelector([D, Tt], (a2, e) => {
20265
+ Xs = (a2, e) => e;
20266
+ To = (a2, e) => e;
20267
+ fo = (a2, e) => e;
20268
+ W = createSelector([G, Cr], (a2, e) => e ? a2[e] : null);
20269
+ Lr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
20270
+ vo = createSelector([D, Tt], (a2, e) => {
20268
20271
  if (!e)
20269
20272
  return null;
20270
20273
  let t = a2[e];
20271
20274
  return (t == null ? void 0 : t.type) === "video" ? t : null;
20272
20275
  });
20273
- To = createSelector([D, Tt], (a2, e) => {
20276
+ Mo = createSelector([D, Tt], (a2, e) => {
20274
20277
  if (!e)
20275
20278
  return null;
20276
20279
  let t = a2[e];
20277
20280
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
20278
20281
  });
20279
- fo = createSelector([D, Tt], (a2, e) => {
20282
+ yo = createSelector([D, Tt], (a2, e) => {
20280
20283
  if (!e)
20281
20284
  return null;
20282
20285
  let t = a2[e];
20283
20286
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
20284
20287
  });
20285
- vo = createSelector([D, Tt], (a2, e) => {
20288
+ ko = createSelector([D, Tt], (a2, e) => {
20286
20289
  if (!e)
20287
20290
  return null;
20288
20291
  let t = a2[e];
20289
20292
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
20290
20293
  });
20291
- Mo = createSelector([rs, So], (a2, e) => e ? a2[e] : null);
20292
- Q = R($);
20293
- nm = R(createSelector([tr, mo], (a2, e) => {
20294
+ Po = createSelector([ss, fo], (a2, e) => e ? a2[e] : null);
20295
+ Q = R(W);
20296
+ lm = R(createSelector([ir, To], (a2, e) => {
20294
20297
  if (a2)
20295
20298
  return e ? a2[e] : a2;
20296
20299
  }));
20297
- lm = R(createSelector($, (a2) => a2 == null ? void 0 : a2.name));
20298
- um = R(createSelector($, (a2) => a2 == null ? void 0 : a2.type));
20299
- oi = R(Cr);
20300
- zs = R(go);
20301
- pm = R(To);
20302
- hm = R(fo);
20303
- mm = R(vo);
20304
- yo = R((a2, e) => {
20305
- let t = $(a2, e);
20300
+ hm = R(createSelector(W, (a2) => a2 == null ? void 0 : a2.name));
20301
+ mm = R(createSelector(W, (a2) => a2 == null ? void 0 : a2.type));
20302
+ oi = R(Lr);
20303
+ Zs = R(vo);
20304
+ Sm = R(Mo);
20305
+ gm = R(yo);
20306
+ Tm = R(ko);
20307
+ Eo = R((a2, e) => {
20308
+ let t = W(a2, e);
20306
20309
  if (t && t.videoTrack && t.videoTrack !== "")
20307
20310
  return a2.tracks[t.videoTrack];
20308
20311
  });
20309
- ko = R((a2, e) => {
20310
- let t = $(a2, e);
20312
+ Ao = R((a2, e) => {
20313
+ let t = W(a2, e);
20311
20314
  if (t && t.audioTrack && t.audioTrack !== "")
20312
20315
  return a2.tracks[t.audioTrack];
20313
20316
  });
20314
- gm = R((a2, e) => {
20315
- let t = $(a2, e);
20317
+ vm = R((a2, e) => {
20318
+ let t = W(a2, e);
20316
20319
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
20317
20320
  });
20318
- Ys = (a2, e) => e ? a2.speakers[e] : null;
20319
- Tm = R(createSelector(Ys, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
20320
- Po = (a2, e) => {
20321
- let t = ko(e)(a2);
20322
- return Ys(a2, t == null ? void 0 : t.id);
20323
- };
20324
- fm = R(createSelector(Po, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
20325
- vm = R((a2, e) => {
20321
+ ea = (a2, e) => e ? a2.speakers[e] : null;
20322
+ Mm = R(createSelector(ea, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
20323
+ bo = (a2, e) => {
20324
+ let t = Ao(e)(a2);
20325
+ return ea(a2, t == null ? void 0 : t.id);
20326
+ };
20327
+ ym = R(createSelector(bo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
20328
+ km = R((a2, e) => {
20326
20329
  if (e)
20327
20330
  return a2.connectionQualities[e];
20328
20331
  });
20329
- Mm = R((a2, e) => {
20330
- let t = $(a2, e);
20332
+ Pm = R((a2, e) => {
20333
+ let t = W(a2, e);
20331
20334
  if (t) {
20332
20335
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
20333
20336
  return i ? a2.tracks[i] : void 0;
20334
20337
  }
20335
20338
  });
20336
- ym = R(createSelector(D, $, (a2, e) => {
20339
+ Em = R(createSelector(D, W, (a2, e) => {
20337
20340
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
20338
20341
  let r = a2[i];
20339
20342
  return rt(r) && it(r);
20340
20343
  });
20341
20344
  return t ? a2[t] : void 0;
20342
20345
  }));
20343
- km = R(createSelector(D, $, (a2, e) => {
20346
+ Am = R(createSelector(D, W, (a2, e) => {
20344
20347
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
20345
20348
  let r = a2[i];
20346
20349
  return rt(r) && tt(r);
20347
20350
  });
20348
20351
  return t ? a2[t] : void 0;
20349
20352
  }));
20350
- Pm = R(createSelector(D, $, (a2, e) => {
20353
+ bm = R(createSelector(D, W, (a2, e) => {
20351
20354
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
20352
20355
  let r = a2[i];
20353
- return $t(r) && tt(r);
20356
+ return Wt(r) && tt(r);
20354
20357
  });
20355
20358
  return t ? a2[t] : void 0;
20356
20359
  }));
20357
- Xs = R(createSelector(D, $, (a2, e) => He(a2, e)));
20358
- Zs = (a2) => createSelector(Xs(a2), (e) => e.audio);
20359
- bm = R((a2, e) => {
20360
- let t = $(a2, e);
20360
+ ta = R(createSelector(D, W, (a2, e) => He(a2, e)));
20361
+ ia = (a2) => createSelector(ta(a2), (e) => e.audio);
20362
+ Im = R((a2, e) => {
20363
+ let t = W(a2, e);
20361
20364
  return Ue(a2, t == null ? void 0 : t.audioTrack);
20362
20365
  });
20363
- Am = R((a2, e) => {
20364
- let t = $(a2, e);
20366
+ Hm = R((a2, e) => {
20367
+ let t = W(a2, e);
20365
20368
  return Ue(a2, t == null ? void 0 : t.videoTrack);
20366
20369
  });
20367
- ea = R((a2, e) => {
20370
+ ra = R((a2, e) => {
20368
20371
  if (e && a2.tracks[e])
20369
20372
  return a2.tracks[e].volume === 0;
20370
20373
  });
20371
- Rm = R((a2, e) => {
20372
- let t = $(a2, e);
20373
- return ea(t == null ? void 0 : t.audioTrack)(a2);
20374
+ Cm = R((a2, e) => {
20375
+ let t = W(a2, e);
20376
+ return ra(t == null ? void 0 : t.audioTrack)(a2);
20374
20377
  });
20375
- Im = R((a2, e) => {
20376
- let t = Zs(e)(a2);
20377
- return ea(t == null ? void 0 : t.id)(a2);
20378
+ Lm = R((a2, e) => {
20379
+ let t = ia(e)(a2);
20380
+ return ra(t == null ? void 0 : t.id)(a2);
20378
20381
  });
20379
- ta = R((a2, e) => {
20380
- let t = Cr(a2, e);
20382
+ sa = R((a2, e) => {
20383
+ let t = Lr(a2, e);
20381
20384
  if (t) {
20382
20385
  if (t.type !== "audio") {
20383
20386
  k.w("Please pass audio track here");
@@ -20386,16 +20389,16 @@ var init_dist = __esm({
20386
20389
  return t.volume;
20387
20390
  }
20388
20391
  });
20389
- Hm = R((a2, e) => {
20390
- let t = $(a2, e);
20391
- return ta(t == null ? void 0 : t.audioTrack)(a2);
20392
+ wm = R((a2, e) => {
20393
+ let t = W(a2, e);
20394
+ return sa(t == null ? void 0 : t.audioTrack)(a2);
20392
20395
  });
20393
- Cm = R((a2, e) => {
20394
- let t = Zs(e)(a2);
20395
- return ta(t == null ? void 0 : t.id)(a2);
20396
+ Dm = R((a2, e) => {
20397
+ let t = ia(e)(a2);
20398
+ return sa(t == null ? void 0 : t.id)(a2);
20396
20399
  });
20397
- Lm = R((a2, e) => {
20398
- let t = Cr(a2, e);
20400
+ _m = R((a2, e) => {
20401
+ let t = Lr(a2, e);
20399
20402
  if (t) {
20400
20403
  if (t.type !== "video") {
20401
20404
  k.w("Please pass video track here");
@@ -20404,49 +20407,49 @@ var init_dist = __esm({
20404
20407
  return t.layer;
20405
20408
  }
20406
20409
  });
20407
- ia = createSelector([at, ue, Hr], (a2, e, t) => {
20410
+ aa = createSelector([at, ue, Cr], (a2, e, t) => {
20408
20411
  if (t)
20409
20412
  return a2.filter((i) => {
20410
20413
  var r;
20411
20414
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
20412
20415
  });
20413
20416
  });
20414
- ra = createSelector([at, Qs], (a2, e) => {
20417
+ oa = createSelector([at, Xs], (a2, e) => {
20415
20418
  if (e)
20416
20419
  return a2.filter((t) => {
20417
20420
  var i, r;
20418
20421
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
20419
20422
  });
20420
20423
  });
20421
- Eo = createSelector(at, (a2) => a2.filter((e) => {
20424
+ Ro = createSelector(at, (a2) => a2.filter((e) => {
20422
20425
  var t;
20423
20426
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
20424
20427
  }));
20425
- bo = createSelector([ra, Qs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20426
- Ao = createSelector([ia, Hr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20427
- wm = createSelector(Eo, (a2) => a2.filter((e) => !e.read).length);
20428
- Dm = R(ia);
20429
- _m = R(ra);
20430
- Nm = R(bo);
20431
- Om = R(Ao);
20432
- sa = R(Mo);
20433
- jm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
20428
+ Io = createSelector([oa, Xs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20429
+ Ho = createSelector([aa, Cr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20430
+ Nm = createSelector(Ro, (a2) => a2.filter((e) => !e.read).length);
20431
+ Om = R(aa);
20432
+ xm = R(oa);
20433
+ Um = R(Io);
20434
+ Bm = R(Ho);
20435
+ na = R(Po);
20436
+ zm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
20434
20437
  var r;
20435
20438
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
20436
20439
  }));
20437
- Ro = (a2) => a2.roleChangeRequests[0] || null;
20438
- Jm = createSelector([Ro, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
20439
- Qm = createSelector([Kt], (a2) => st(a2));
20440
- zm = createSelector([ts], (a2) => st(a2));
20441
- Ho = createSelector([q, D], (a2, e) => {
20440
+ Co = (a2) => a2.roleChangeRequests[0] || null;
20441
+ Ym = createSelector([Co, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
20442
+ Xm = createSelector([Kt], (a2) => st(a2));
20443
+ Zm = createSelector([is], (a2) => st(a2));
20444
+ wo = createSelector([q, D], (a2, e) => {
20442
20445
  let t = null;
20443
20446
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
20444
20447
  });
20445
- Co = createSelector([Z, D], (a2, e) => {
20448
+ Do = createSelector([Z, D], (a2, e) => {
20446
20449
  let t = null;
20447
20450
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
20448
20451
  });
20449
- Nr = class {
20452
+ Or = class {
20450
20453
  constructor() {
20451
20454
  this.TAG = "[HTTPAnalyticsTransport]";
20452
20455
  this.failedEvents = new ce("client-events");
@@ -20465,7 +20468,7 @@ var init_dist = __esm({
20465
20468
  this.addEventToStorage(e);
20466
20469
  return;
20467
20470
  }
20468
- let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Fs : Gs;
20471
+ let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Gs : Ws;
20469
20472
  fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
20470
20473
  if (r.status === 401) {
20471
20474
  this.removeFromStorage(e);
@@ -20491,66 +20494,66 @@ var init_dist = __esm({
20491
20494
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
20492
20495
  }
20493
20496
  };
20494
- Te = new Nr();
20495
- W = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(W || {});
20496
- Bi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Bi || {});
20497
- Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
20498
- zo = (a2) => a2.localPeer.id;
20499
- Yo = (a2) => a2.localPeer.audioTrack;
20500
- Xo = (a2) => a2.localPeer.videoTrack;
20501
- Zo = (a2, e) => e;
20502
- ya = (a2, e) => e;
20503
- en = (a2) => a2.remoteTrackStats;
20504
- ka = (a2) => a2.peerStats;
20505
- Vr = (a2) => a2.localTrackStats;
20506
- ve = createSelector([ka, zo], (a2, e) => a2[e]);
20507
- tn = createSelector(ve, (a2) => {
20497
+ Te = new Or();
20498
+ $ = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))($ || {});
20499
+ Vi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Vi || {});
20500
+ Qi = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Qi || {});
20501
+ Zo = (a2) => a2.localPeer.id;
20502
+ en = (a2) => a2.localPeer.audioTrack;
20503
+ tn = (a2) => a2.localPeer.videoTrack;
20504
+ rn = (a2, e) => e;
20505
+ Ea = (a2, e) => e;
20506
+ sn = (a2) => a2.remoteTrackStats;
20507
+ Aa = (a2) => a2.peerStats;
20508
+ Fr = (a2) => a2.localTrackStats;
20509
+ ve = createSelector([Aa, Zo], (a2, e) => a2[e]);
20510
+ an = createSelector(ve, (a2) => {
20508
20511
  var e;
20509
20512
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
20510
20513
  });
20511
- rn = createSelector(ve, (a2) => {
20514
+ on = createSelector(ve, (a2) => {
20512
20515
  var e;
20513
20516
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
20514
20517
  });
20515
- sn = createSelector(ve, (a2) => {
20518
+ nn = createSelector(ve, (a2) => {
20516
20519
  var e;
20517
20520
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
20518
20521
  });
20519
- an = createSelector(ve, (a2) => {
20522
+ cn = createSelector(ve, (a2) => {
20520
20523
  var e;
20521
20524
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
20522
20525
  });
20523
- on = createSelector(ve, (a2) => {
20526
+ dn = createSelector(ve, (a2) => {
20524
20527
  var e;
20525
20528
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
20526
20529
  });
20527
- nn = createSelector(ve, (a2) => {
20530
+ ln = createSelector(ve, (a2) => {
20528
20531
  var e;
20529
20532
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
20530
20533
  });
20531
- cn = createSelector(ve, (a2) => {
20534
+ un = createSelector(ve, (a2) => {
20532
20535
  var e;
20533
20536
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
20534
20537
  });
20535
- dn = createSelector(ve, (a2) => {
20538
+ pn = createSelector(ve, (a2) => {
20536
20539
  var e;
20537
20540
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
20538
20541
  });
20539
- ln = createSelector([ka, Zo], (a2, e) => e ? a2[e] : void 0);
20540
- un = createSelector([en, ya], (a2, e) => e ? a2[e] : void 0);
20541
- Fr = createSelector([Vr, ya], (a2, e) => e ? a2[e] : void 0);
20542
- pn = R(ln);
20543
- hn = R(un);
20544
- mn = createSelector([Vr, Yo], (a2, e) => {
20542
+ hn = createSelector([Aa, rn], (a2, e) => e ? a2[e] : void 0);
20543
+ mn = createSelector([sn, Ea], (a2, e) => e ? a2[e] : void 0);
20544
+ Gr = createSelector([Fr, Ea], (a2, e) => e ? a2[e] : void 0);
20545
+ Sn = R(hn);
20546
+ gn = R(mn);
20547
+ Tn = createSelector([Fr, en], (a2, e) => {
20545
20548
  var t;
20546
20549
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
20547
20550
  });
20548
- Sn = R(createSelector(Fr, (a2) => a2 == null ? void 0 : a2[0]));
20549
- gn = createSelector([Vr, Xo], (a2, e) => {
20551
+ fn = R(createSelector(Gr, (a2) => a2 == null ? void 0 : a2[0]));
20552
+ vn = createSelector([Fr, tn], (a2, e) => {
20550
20553
  var t;
20551
20554
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
20552
20555
  });
20553
- Tn = R(createSelector(Fr, (a2) => a2));
20556
+ Mn = R(createSelector(Gr, (a2) => a2));
20554
20557
  }
20555
20558
  });
20556
20559
 
@@ -20829,7 +20832,7 @@ var init_StreamActions = __esm({
20829
20832
  };
20830
20833
  RecordingPauseStatus = () => {
20831
20834
  const recording = (0, import_react_sdk32.useHMSStore)(import_react_sdk32.selectRecordingState);
20832
- if (recording.hls && recording.hls.state === Ls.PAUSED) {
20835
+ if (recording.hls && recording.hls.state === ws.PAUSED) {
20833
20836
  return /* @__PURE__ */ import_react72.default.createElement(
20834
20837
  Tooltip,
20835
20838
  {
@@ -22290,9 +22293,10 @@ var init_ConnectionIndicator = __esm({
22290
22293
  }) => {
22291
22294
  var _a8;
22292
22295
  const downlinkQuality = (_a8 = (0, import_react_sdk41.useHMSStore)((0, import_react_sdk41.selectConnectionQualityByPeerID)(peerId))) == null ? void 0 : _a8.downlinkQuality;
22296
+ const peerType = (0, import_react_sdk41.useHMSStore)((0, import_react_sdk41.selectPeerTypeByID)(peerId));
22293
22297
  const { theme: theme2 } = useTheme();
22294
22298
  const defaultColor = theme2.colors.on_surface_low;
22295
- if (downlinkQuality === -1 || downlinkQuality === void 0) {
22299
+ if (downlinkQuality === -1 || downlinkQuality === void 0 || peerType === import_react_sdk41.HMSPeerType.SIP) {
22296
22300
  return null;
22297
22301
  }
22298
22302
  if (downlinkQuality === 0) {
@@ -23018,7 +23022,7 @@ var init_ParticipantList = __esm({
23018
23022
  gap: "$8"
23019
23023
  }
23020
23024
  },
23021
- isHandRaisedAccordion ? /* @__PURE__ */ import_react95.default.createElement(HandRaisedAccordionParticipantActions, { peerId, role }) : /* @__PURE__ */ import_react95.default.createElement(import_react95.default.Fragment, null, peerType === import_react_sdk47.HMSPeerType.REGULAR && /* @__PURE__ */ import_react95.default.createElement(ConnectionIndicator, { peerId }), peerType === import_react_sdk47.HMSPeerType.SIP && /* @__PURE__ */ import_react95.default.createElement(
23025
+ isHandRaisedAccordion ? /* @__PURE__ */ import_react95.default.createElement(HandRaisedAccordionParticipantActions, { peerId, role }) : /* @__PURE__ */ import_react95.default.createElement(import_react95.default.Fragment, null, /* @__PURE__ */ import_react95.default.createElement(ConnectionIndicator, { peerId }), peerType === import_react_sdk47.HMSPeerType.SIP && /* @__PURE__ */ import_react95.default.createElement(
23022
23026
  Flex,
23023
23027
  {
23024
23028
  align: "center",
@@ -23192,9 +23196,8 @@ var init_WhiteboardToggle = __esm({
23192
23196
  init_ToastManager();
23193
23197
  WhiteboardToggle = () => {
23194
23198
  const { toggle, open, isOwner } = (0, import_react_sdk48.useWhiteboard)();
23195
- const { screenSharingPeerId, amIScreenSharing } = (0, import_react_sdk48.useScreenShare)();
23196
- const remoteScreenShare = screenSharingPeerId && !amIScreenSharing;
23197
- const disabled = remoteScreenShare || open && !isOwner;
23199
+ const peerSharing = (0, import_react_sdk48.useHMSStore)(import_react_sdk48.selectPeerScreenSharing);
23200
+ const disabled = !!peerSharing || open && !isOwner;
23198
23201
  if (!toggle) {
23199
23202
  return null;
23200
23203
  }
@@ -23202,7 +23205,7 @@ var init_WhiteboardToggle = __esm({
23202
23205
  Tooltip,
23203
23206
  {
23204
23207
  key: "whiteboard",
23205
- title: remoteScreenShare ? "Cannot open whiteboard when viewing a shared screen" : `${open ? "Close" : "Open"} Whiteboard`
23208
+ title: peerSharing ? "Cannot open whiteboard when viewing a shared screen" : `${open ? "Close" : "Open"} Whiteboard`
23206
23209
  },
23207
23210
  /* @__PURE__ */ import_react97.default.createElement(
23208
23211
  IconButton_default,
@@ -26189,7 +26192,7 @@ var init_ChatSelector = __esm({
26189
26192
  const filteredPeers = (0, import_react134.useMemo)(
26190
26193
  () => peers.filter(
26191
26194
  // search should be empty or search phrase should be included in name
26192
- (peer) => !searchValue || peer.name.toLowerCase().includes(searchValue.toLowerCase())
26195
+ (peer) => (!searchValue || peer.name.toLowerCase().includes(searchValue.toLowerCase())) && peer.type !== import_react_sdk65.HMSPeerType.SIP
26193
26196
  ),
26194
26197
  [peers, searchValue]
26195
26198
  );
@@ -26995,7 +26998,7 @@ var init_Chat = __esm({
26995
26998
  const listRef = (0, import_react144.useRef)(null);
26996
26999
  const hmsActions = (0, import_react_sdk70.useHMSActions)();
26997
27000
  const vanillaStore = (0, import_react_sdk70.useHMSVanillaStore)();
26998
- const { enabled: isChatEnabled = true } = (0, import_react_sdk70.useHMSStore)(cm("chatState" /* CHAT_STATE */)) || {};
27001
+ const { enabled: isChatEnabled = true } = (0, import_react_sdk70.useHMSStore)(um("chatState" /* CHAT_STATE */)) || {};
26999
27002
  const isMobile = (0, import_react_use22.useMedia)(config.media.md);
27000
27003
  const isMobileHLSStream = useMobileHLSStream();
27001
27004
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27079,7 +27082,7 @@ var init_Chat = __esm({
27079
27082
  scrollToBottom,
27080
27083
  listRef
27081
27084
  }) => {
27082
- const unreadCount = (0, import_react_sdk70.useHMSStore)(qn);
27085
+ const unreadCount = (0, import_react_sdk70.useHMSStore)(Qn);
27083
27086
  if (!unreadCount || !listRef.current) {
27084
27087
  return null;
27085
27088
  }
@@ -28270,10 +28273,10 @@ var init_VBPicker = __esm({
28270
28273
  const [blurAmount, setBlurAmount] = (0, import_react154.useState)(VBHandler.getBlurAmount() || 0.5);
28271
28274
  const roomState = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectRoomState);
28272
28275
  const isLargeRoom = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectIsLargeRoom);
28273
- const isEffectsEnabled = (0, import_react_sdk78.useHMSStore)(rc);
28274
- const effectsKey = (0, import_react_sdk78.useHMSStore)(sc);
28276
+ const isEffectsEnabled = (0, import_react_sdk78.useHMSStore)(oc);
28277
+ const effectsKey = (0, import_react_sdk78.useHMSStore)(nc);
28275
28278
  const isPluginAdded = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
28276
- const background = (0, import_react_sdk78.useHMSStore)(nm(APP_DATA.background));
28279
+ const background = (0, import_react_sdk78.useHMSStore)(lm(APP_DATA.background));
28277
28280
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
28278
28281
  const inPreview = roomState === import_react_sdk78.HMSRoomState.Preview;
28279
28282
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -30633,36 +30636,21 @@ var init_WaitingView = __esm({
30633
30636
  });
30634
30637
 
30635
30638
  // src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
30636
- var import_react181, import_react_use40, import_react_sdk96, useCloseScreenshareWhiteboard;
30639
+ var import_react181, import_react_sdk96, useCloseScreenshareWhiteboard;
30637
30640
  var init_useCloseScreenshareWhiteboard = __esm({
30638
30641
  "src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx"() {
30639
30642
  "use strict";
30640
30643
  init_define_process_env();
30641
30644
  import_react181 = require("react");
30642
- import_react_use40 = require("react-use");
30643
30645
  import_react_sdk96 = require("@100mslive/react-sdk");
30644
30646
  useCloseScreenshareWhiteboard = () => {
30645
- const { amIScreenSharing, screenSharingPeerId, toggleScreenShare } = (0, import_react_sdk96.useScreenShare)();
30647
+ const peerSharing = (0, import_react_sdk96.useHMSStore)(import_react_sdk96.selectPeerScreenSharing);
30646
30648
  const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = (0, import_react_sdk96.useWhiteboard)();
30647
- const prevScreenSharer = (0, import_react_use40.usePrevious)(screenSharingPeerId);
30648
- const prevWhiteboardOwner = (0, import_react_use40.usePrevious)(isWhiteboardOwner);
30649
30649
  (0, import_react181.useEffect)(() => {
30650
- if (isWhiteboardOwner && screenSharingPeerId) {
30651
- if (prevScreenSharer && amIScreenSharing && !prevWhiteboardOwner) {
30652
- toggleScreenShare == null ? void 0 : toggleScreenShare();
30653
- } else if (prevWhiteboardOwner && !prevScreenSharer) {
30654
- toggleWhiteboard == null ? void 0 : toggleWhiteboard();
30655
- }
30650
+ if (isWhiteboardOwner && peerSharing) {
30651
+ toggleWhiteboard == null ? void 0 : toggleWhiteboard();
30656
30652
  }
30657
- }, [
30658
- isWhiteboardOwner,
30659
- screenSharingPeerId,
30660
- amIScreenSharing,
30661
- prevScreenSharer,
30662
- prevWhiteboardOwner,
30663
- toggleScreenShare,
30664
- toggleWhiteboard
30665
- ]);
30653
+ }, [isWhiteboardOwner, toggleWhiteboard, peerSharing]);
30666
30654
  };
30667
30655
  }
30668
30656
  });
@@ -30914,13 +30902,13 @@ var init_SeekControl = __esm({
30914
30902
  });
30915
30903
 
30916
30904
  // src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx
30917
- var import_react187, import_react_use41, import_react_icons87, PlayPauseSeekControls, PlayPauseSeekOverlayControls;
30905
+ var import_react187, import_react_use40, import_react_icons87, PlayPauseSeekControls, PlayPauseSeekOverlayControls;
30918
30906
  var init_PlayPauseSeekControls = __esm({
30919
30907
  "src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx"() {
30920
30908
  "use strict";
30921
30909
  init_define_process_env();
30922
30910
  import_react187 = __toESM(require("react"));
30923
- import_react_use41 = require("react-use");
30911
+ import_react_use40 = require("react-use");
30924
30912
  import_react_icons87 = require("@100mslive/react-icons");
30925
30913
  init_Layout();
30926
30914
  init_Text2();
@@ -30959,7 +30947,7 @@ var init_PlayPauseSeekControls = __esm({
30959
30947
  showControls,
30960
30948
  hoverControlsVisible
30961
30949
  }) => {
30962
- const isMobile = (0, import_react_use41.useMedia)(config.media.md);
30950
+ const isMobile = (0, import_react_use40.useMedia)(config.media.md);
30963
30951
  const isLandscape = useIsLandscape();
30964
30952
  if (!isMobile && !isLandscape) {
30965
30953
  return /* @__PURE__ */ import_react187.default.createElement(import_react187.default.Fragment, null, /* @__PURE__ */ import_react187.default.createElement(
@@ -31368,7 +31356,7 @@ function HLSAutoplayBlockedPrompt({
31368
31356
  unblockAutoPlay
31369
31357
  }) {
31370
31358
  const isLandscape = useIsLandscape();
31371
- const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31359
+ const isMobile = (0, import_react_use41.useMedia)(config.media.md);
31372
31360
  if ((isMobile || isLandscape) && open) {
31373
31361
  return /* @__PURE__ */ import_react192.default.createElement(
31374
31362
  IconButton,
@@ -31420,13 +31408,13 @@ function HLSAutoplayBlockedPrompt({
31420
31408
  )))
31421
31409
  );
31422
31410
  }
31423
- var import_react192, import_react_use42, import_react_icons90;
31411
+ var import_react192, import_react_use41, import_react_icons90;
31424
31412
  var init_HLSAutoplayBlockedPrompt = __esm({
31425
31413
  "src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx"() {
31426
31414
  "use strict";
31427
31415
  init_define_process_env();
31428
31416
  import_react192 = __toESM(require("react"));
31429
- import_react_use42 = require("react-use");
31417
+ import_react_use41 = require("react-use");
31430
31418
  import_react_icons90 = require("@100mslive/react-icons");
31431
31419
  init_src();
31432
31420
  init_DialogContent2();
@@ -31461,7 +31449,7 @@ function HLSQualitySelector({
31461
31449
  isAuto,
31462
31450
  containerRef
31463
31451
  }) {
31464
- const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31452
+ const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31465
31453
  const isLandscape = useIsLandscape();
31466
31454
  if (layers.length === 0) {
31467
31455
  return null;
@@ -31654,13 +31642,13 @@ function HLSQualitySelector({
31654
31642
  )
31655
31643
  )));
31656
31644
  }
31657
- var import_react194, import_react_use43, import_react_icons92, getQualityText, getBitrateText;
31645
+ var import_react194, import_react_use42, import_react_icons92, getQualityText, getBitrateText;
31658
31646
  var init_HLSQualitySelector = __esm({
31659
31647
  "src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx"() {
31660
31648
  "use strict";
31661
31649
  init_define_process_env();
31662
31650
  import_react194 = __toESM(require("react"));
31663
- import_react_use43 = require("react-use");
31651
+ import_react_use42 = require("react-use");
31664
31652
  import_react_icons92 = require("@100mslive/react-icons");
31665
31653
  init_src();
31666
31654
  init_Sheet2();
@@ -31747,13 +31735,13 @@ var HLSView_exports = {};
31747
31735
  __export(HLSView_exports, {
31748
31736
  default: () => HLSView_default
31749
31737
  });
31750
- var import_react196, import_react_use44, import_hls_player3, import_screenfull3, import_ts_pattern12, import_react_sdk97, import_react_icons94, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
31738
+ var import_react196, import_react_use43, import_hls_player3, import_screenfull3, import_ts_pattern12, import_react_sdk97, import_react_icons94, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
31751
31739
  var init_HLSView = __esm({
31752
31740
  "src/Prebuilt/layouts/HLSView.jsx"() {
31753
31741
  "use strict";
31754
31742
  init_define_process_env();
31755
31743
  import_react196 = __toESM(require("react"));
31756
- import_react_use44 = require("react-use");
31744
+ import_react_use43 = require("react-use");
31757
31745
  import_hls_player3 = require("@100mslive/hls-player");
31758
31746
  import_screenfull3 = __toESM(require("screenfull"));
31759
31747
  import_ts_pattern12 = require("ts-pattern");
@@ -31787,7 +31775,7 @@ var init_HLSView = __esm({
31787
31775
  const sidepane = (0, import_react_sdk97.useHMSStore)((0, import_react_sdk97.selectAppData)(APP_DATA.sidePane));
31788
31776
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
31789
31777
  const showChat = !!(elements == null ? void 0 : elements.chat);
31790
- const isMobile = (0, import_react_use44.useMedia)(config.media.md);
31778
+ const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31791
31779
  const hmsActions = (0, import_react_sdk97.useHMSActions)();
31792
31780
  (0, import_react196.useEffect)(() => {
31793
31781
  (0, import_ts_pattern12.match)({ sidepane, isMobile, showChat, isFullScreen }).with({ isFullScreen: true }, () => {
@@ -31826,8 +31814,8 @@ var init_HLSView = __esm({
31826
31814
  seekBackward: false
31827
31815
  });
31828
31816
  const [isPaused, setIsPaused] = (0, import_react196.useState)(false);
31829
- const [show, toggle] = (0, import_react_use44.useToggle)(false);
31830
- const lastHlsUrl = (0, import_react_use44.usePrevious)(hlsUrl);
31817
+ const [show, toggle] = (0, import_react_use43.useToggle)(false);
31818
+ const lastHlsUrl = (0, import_react_use43.usePrevious)(hlsUrl);
31831
31819
  const vanillaStore = (0, import_react_sdk97.useHMSVanillaStore)();
31832
31820
  const [controlsVisible, setControlsVisible] = (0, import_react196.useState)(true);
31833
31821
  const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react196.useState)(true);
@@ -31838,9 +31826,9 @@ var init_HLSView = __esm({
31838
31826
  const isFullScreenSupported = import_screenfull3.default.isEnabled;
31839
31827
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
31840
31828
  const showChat = !!(elements == null ? void 0 : elements.chat);
31841
- const isMobile = (0, import_react_use44.useMedia)(config.media.md);
31829
+ const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31842
31830
  const isLandscape = useIsLandscape();
31843
- const isFullScreen = (0, import_react_use44.useFullscreen)(hlsViewRef, show, {
31831
+ const isFullScreen = (0, import_react_use43.useFullscreen)(hlsViewRef, show, {
31844
31832
  onClose: () => toggle(false)
31845
31833
  });
31846
31834
  const [showLoader, setShowLoader] = (0, import_react196.useState)(false);
@@ -32481,13 +32469,13 @@ var init_VideoStreamingSection = __esm({
32481
32469
  });
32482
32470
 
32483
32471
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
32484
- var import_react198, import_react_use45, import_react_icons95, RoomDetailsHeader;
32472
+ var import_react198, import_react_use44, import_react_icons95, RoomDetailsHeader;
32485
32473
  var init_RoomDetailsHeader = __esm({
32486
32474
  "src/Prebuilt/components/Header/RoomDetailsHeader.tsx"() {
32487
32475
  "use strict";
32488
32476
  init_define_process_env();
32489
32477
  import_react198 = __toESM(require("react"));
32490
- import_react_use45 = require("react-use");
32478
+ import_react_use44 = require("react-use");
32491
32479
  import_react_icons95 = require("@100mslive/react-icons");
32492
32480
  init_Layout();
32493
32481
  init_Text2();
@@ -32498,7 +32486,7 @@ var init_RoomDetailsHeader = __esm({
32498
32486
  init_constants();
32499
32487
  RoomDetailsHeader = () => {
32500
32488
  const { title, description } = useRoomLayoutHeader();
32501
- const isMobile = (0, import_react_use45.useMedia)(config.media.md);
32489
+ const isMobile = (0, import_react_use44.useMedia)(config.media.md);
32502
32490
  const clipLength = 30;
32503
32491
  const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
32504
32492
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -32676,13 +32664,13 @@ var init_common2 = __esm({
32676
32664
  });
32677
32665
 
32678
32666
  // src/Prebuilt/components/Header/Header.tsx
32679
- var import_react200, import_react_use46, import_react_sdk100, Header2;
32667
+ var import_react200, import_react_use45, import_react_sdk100, Header2;
32680
32668
  var init_Header = __esm({
32681
32669
  "src/Prebuilt/components/Header/Header.tsx"() {
32682
32670
  "use strict";
32683
32671
  init_define_process_env();
32684
32672
  import_react200 = __toESM(require("react"));
32685
- import_react_use46 = require("react-use");
32673
+ import_react_use45 = require("react-use");
32686
32674
  import_react_sdk100 = require("@100mslive/react-sdk");
32687
32675
  init_src();
32688
32676
  init_HeaderComponents();
@@ -32691,7 +32679,7 @@ var init_Header = __esm({
32691
32679
  init_common2();
32692
32680
  Header2 = () => {
32693
32681
  const roomState = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectRoomState);
32694
- const isMobile = (0, import_react_use46.useMedia)(config.media.md);
32682
+ const isMobile = (0, import_react_use45.useMedia)(config.media.md);
32695
32683
  if (roomState !== import_react_sdk100.HMSRoomState.Connected) {
32696
32684
  return /* @__PURE__ */ import_react200.default.createElement(import_react200.default.Fragment, null);
32697
32685
  }
@@ -33229,13 +33217,13 @@ var init_useRedirectToLeave = __esm({
33229
33217
  });
33230
33218
 
33231
33219
  // src/Prebuilt/AppStateContext.tsx
33232
- var import_react208, import_react_use47, import_ts_pattern14, import_react_sdk105, AppStateContext, useHMSAppStateContext, useAppStateManager;
33220
+ var import_react208, import_react_use46, import_ts_pattern14, import_react_sdk105, AppStateContext, useHMSAppStateContext, useAppStateManager;
33233
33221
  var init_AppStateContext = __esm({
33234
33222
  "src/Prebuilt/AppStateContext.tsx"() {
33235
33223
  "use strict";
33236
33224
  init_define_process_env();
33237
33225
  import_react208 = __toESM(require("react"));
33238
- import_react_use47 = require("react-use");
33226
+ import_react_use46 = require("react-use");
33239
33227
  import_ts_pattern14 = require("ts-pattern");
33240
33228
  import_react_sdk105 = require("@100mslive/react-sdk");
33241
33229
  init_VBHandler();
@@ -33259,7 +33247,7 @@ var init_AppStateContext = __esm({
33259
33247
  const roomLayout = useRoomLayout();
33260
33248
  const [activeState, setActiveState] = import_react208.default.useState();
33261
33249
  const roomState = (0, import_react_sdk105.useHMSStore)(import_react_sdk105.selectRoomState);
33262
- const prevRoomState = (0, import_react_use47.usePreviousDistinct)(roomState);
33250
+ const prevRoomState = (0, import_react_use46.usePreviousDistinct)(roomState);
33263
33251
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
33264
33252
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
33265
33253
  const { redirectToLeave } = useRedirectToLeave();
@@ -33356,13 +33344,13 @@ var init_LeaveScreen = __esm({
33356
33344
  });
33357
33345
 
33358
33346
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
33359
- var import_react210, import_react_use48, import_ts_pattern15, import_react_icons99, MwebLandscapePrompt;
33347
+ var import_react210, import_react_use47, import_ts_pattern15, import_react_icons99, MwebLandscapePrompt;
33360
33348
  var init_MwebLandscapePrompt = __esm({
33361
33349
  "src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
33362
33350
  "use strict";
33363
33351
  init_define_process_env();
33364
33352
  import_react210 = __toESM(require("react"));
33365
- import_react_use48 = require("react-use");
33353
+ import_react_use47 = require("react-use");
33366
33354
  import_ts_pattern15 = require("ts-pattern");
33367
33355
  import_react_icons99 = require("@100mslive/react-icons");
33368
33356
  init_Button2();
@@ -33374,7 +33362,7 @@ var init_MwebLandscapePrompt = __esm({
33374
33362
  init_utils2();
33375
33363
  MwebLandscapePrompt = () => {
33376
33364
  const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0, import_react210.useState)(false);
33377
- const isLandscape = (0, import_react_use48.useMedia)(config.media.ls);
33365
+ const isLandscape = (0, import_react_use47.useMedia)(config.media.ls);
33378
33366
  const isLandscapeHLSStream = useLandscapeHLSStream();
33379
33367
  (0, import_react210.useEffect)(() => {
33380
33368
  var _a8;
@@ -33910,7 +33898,7 @@ function PermissionErrorModal() {
33910
33898
  const notification = (0, import_react_sdk112.useHMSNotifications)(import_react_sdk112.HMSNotificationTypes.ERROR);
33911
33899
  const [deviceType, setDeviceType] = (0, import_react217.useState)("");
33912
33900
  const [isSystemError, setIsSystemError] = (0, import_react217.useState)(false);
33913
- const isMobile = (0, import_react_use49.useMedia)(config.media.md);
33901
+ const isMobile = (0, import_react_use48.useMedia)(config.media.md);
33914
33902
  (0, import_react217.useEffect)(() => {
33915
33903
  var _a8, _b7, _c, _d, _e;
33916
33904
  if (!notification || ((_a8 = notification.data) == null ? void 0 : _a8.code) !== 3001 && ((_b7 = notification.data) == null ? void 0 : _b7.code) !== 3011 || ((_c = notification.data) == null ? void 0 : _c.code) === 3001 && ((_d = notification.data) == null ? void 0 : _d.message.includes("screen"))) {
@@ -33966,13 +33954,13 @@ function PermissionErrorModal() {
33966
33954
  !isMobile ? /* @__PURE__ */ import_react217.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react217.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
33967
33955
  ))) : null;
33968
33956
  }
33969
- var import_react217, import_react_use49, import_react_sdk112;
33957
+ var import_react217, import_react_use48, import_react_sdk112;
33970
33958
  var init_PermissionErrorModal = __esm({
33971
33959
  "src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
33972
33960
  "use strict";
33973
33961
  init_define_process_env();
33974
33962
  import_react217 = __toESM(require("react"));
33975
- import_react_use49 = require("react-use");
33963
+ import_react_use48 = require("react-use");
33976
33964
  import_react_sdk112 = require("@100mslive/react-sdk");
33977
33965
  init_src();
33978
33966
  init_android_perm_1();
@@ -34200,7 +34188,7 @@ function Notifications() {
34200
34188
  }, []);
34201
34189
  (0, import_react_sdk117.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
34202
34190
  (0, import_react222.useEffect)(() => {
34203
- var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p;
34191
+ var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n, _o2, _p;
34204
34192
  if (!notification || isNotificationDisabled) {
34205
34193
  return;
34206
34194
  }
@@ -34241,7 +34229,7 @@ function Notifications() {
34241
34229
  });
34242
34230
  break;
34243
34231
  case import_react_sdk117.HMSNotificationTypes.ROLE_UPDATED: {
34244
- if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
34232
+ if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n = notification.data) == null ? void 0 : _n.roleName)) {
34245
34233
  ToastManager.addToast({
34246
34234
  title: `You are now a ${notification.data.roleName}`
34247
34235
  });
@@ -34357,13 +34345,13 @@ var init_Notifications2 = __esm({
34357
34345
  });
34358
34346
 
34359
34347
  // src/Prebuilt/components/Preview/PreviewScreen.tsx
34360
- var import_react223, import_react_use50, PreviewScreen;
34348
+ var import_react223, import_react_use49, PreviewScreen;
34361
34349
  var init_PreviewScreen = __esm({
34362
34350
  "src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
34363
34351
  "use strict";
34364
34352
  init_define_process_env();
34365
34353
  import_react223 = __toESM(require("react"));
34366
- import_react_use50 = require("react-use");
34354
+ import_react_use49 = require("react-use");
34367
34355
  init_src();
34368
34356
  init_AppContext();
34369
34357
  init_roomLayoutProvider();
@@ -34376,7 +34364,7 @@ var init_PreviewScreen = __esm({
34376
34364
  var _a8, _b7, _c;
34377
34365
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
34378
34366
  const skipPreview = !isPreviewScreenEnabled;
34379
- const previewAsRole = (0, import_react_use50.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
34367
+ const previewAsRole = (0, import_react_use49.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
34380
34368
  const { userName } = useHMSPrebuiltContext();
34381
34369
  const initialName = userName || (skipPreview ? "Beam" : "");
34382
34370
  const authToken = useAuthToken();
@@ -34517,7 +34505,7 @@ function FlyingEmoji() {
34517
34505
  const localPeerId = (0, import_react_sdk120.useHMSStore)(import_react_sdk120.selectLocalPeerID);
34518
34506
  const vanillaStore = (0, import_react_sdk120.useHMSVanillaStore)();
34519
34507
  const [emojis, setEmojis] = (0, import_react228.useState)([]);
34520
- const isMobile = (0, import_react_use51.useMedia)(config.media.md);
34508
+ const isMobile = (0, import_react_use50.useMedia)(config.media.md);
34521
34509
  const startingPoints = (0, import_react228.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
34522
34510
  const showFlyingEmoji = (0, import_react228.useCallback)(
34523
34511
  ({ emojiId, senderId }) => {
@@ -34609,13 +34597,13 @@ function FlyingEmoji() {
34609
34597
  })
34610
34598
  );
34611
34599
  }
34612
- var import_react228, import_react_use51, import_react_sdk120, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
34600
+ var import_react228, import_react_use50, import_react_sdk120, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
34613
34601
  var init_FlyingEmoji = __esm({
34614
34602
  "src/Prebuilt/plugins/FlyingEmoji.jsx"() {
34615
34603
  "use strict";
34616
34604
  init_define_process_env();
34617
34605
  import_react228 = __toESM(require("react"));
34618
- import_react_use51 = require("react-use");
34606
+ import_react_use50 = require("react-use");
34619
34607
  import_react_sdk120 = require("@100mslive/react-sdk");
34620
34608
  init_Layout();
34621
34609
  init_Text2();