@100mslive/roomkit-react 0.3.5-alpha.1 → 0.3.5-alpha.3

Sign up to get free protection for your applications and to get access to all the features.
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_c6d530da-d1a0-4899-8dbe-766d2b6acbf7", 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.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c6d530da-d1a0-4899-8dbe-766d2b6acbf7", 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.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.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: "602", 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:18117", 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.1", 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: "8453051036", 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: "cbc32d4a832f2752887e91de078493454a49d69f", 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: "eca2f4fdb179150b60d1cb30adb878e368a445c7c3754f56b108b090082caba8", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1711548252093-0.372965946857686:/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--1711548251897-0.10565373959466906:/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--1711548229899-0.4821411975263181:/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--1711548229715-0.8563068177002997:/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_b9a6bd77-cd5d-4ec1-b0f8-b74d4f651358", INVOCATION_ID: "9235b5de3f714a56bf0d82ad60799896", 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: "497", 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 500", 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.1", 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.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "cbc32d4a832f2752887e91de078493454a49d69f", 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_c6d530da-d1a0-4899-8dbe-766d2b6acbf7", 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_c6d530da-d1a0-4899-8dbe-766d2b6acbf7", 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_c6d530da-d1a0-4899-8dbe-766d2b6acbf7" };
111
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_e3150ee4-d072-4fac-ac1b-bd21428ce958", 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.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_e3150ee4-d072-4fac-ac1b-bd21428ce958", 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.3", 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: "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: "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:20545", 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.3", 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", STATS_D: "true", GITHUB_RUN_ID: "8550333561", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "5db2a806f46b654133659d7160365b88fcec77ab", 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: "1c24db4ba7a754a5ff05cfc2ddd1c38cacc41a7f211913819fe21a768b5b039e", 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--1712212571275-0.8512903272255221:/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--1712212571082-0.34553650684960835:/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--1712212549499-0.5151621643558362:/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--1712212549325-0.213279809955071:/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_51587a84-c13a-4c01-8bea-6f3bc982c257", INVOCATION_ID: "755922f829f249fd8f1d0e8693ec2537", 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: "499", 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 469", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "true", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_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.3", 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.3", 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: "5db2a806f46b654133659d7160365b88fcec77ab", 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_e3150ee4-d072-4fac-ac1b-bd21428ce958", 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_e3150ee4-d072-4fac-ac1b-bd21428ce958", 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_e3150ee4-d072-4fac-ac1b-bd21428ce958" };
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 As({ 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}`), As({ 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, Aa, 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, As, 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, Am, bm, ea, Rm, Im, ta, Hm, Cm, Lm, ia, ra, Eo, Ao, bo, 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
- Aa = 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, Aa(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.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
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.3", 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;
19987
- As = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
19989
+ As = ur().version;
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
- Am = 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
- bm = 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
- Ao = createSelector([ra, Qs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20426
- bo = 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(Ao);
20431
- Om = R(bo);
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
  {
@@ -23193,9 +23196,8 @@ var init_WhiteboardToggle = __esm({
23193
23196
  init_ToastManager();
23194
23197
  WhiteboardToggle = () => {
23195
23198
  const { toggle, open, isOwner } = (0, import_react_sdk48.useWhiteboard)();
23196
- const { screenSharingPeerId, amIScreenSharing } = (0, import_react_sdk48.useScreenShare)();
23197
- const remoteScreenShare = screenSharingPeerId && !amIScreenSharing;
23198
- const disabled = remoteScreenShare || open && !isOwner;
23199
+ const peerSharing = (0, import_react_sdk48.useHMSStore)(import_react_sdk48.selectPeerScreenSharing);
23200
+ const disabled = !!peerSharing || open && !isOwner;
23199
23201
  if (!toggle) {
23200
23202
  return null;
23201
23203
  }
@@ -23203,7 +23205,7 @@ var init_WhiteboardToggle = __esm({
23203
23205
  Tooltip,
23204
23206
  {
23205
23207
  key: "whiteboard",
23206
- 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`
23207
23209
  },
23208
23210
  /* @__PURE__ */ import_react97.default.createElement(
23209
23211
  IconButton_default,
@@ -26996,7 +26998,7 @@ var init_Chat = __esm({
26996
26998
  const listRef = (0, import_react144.useRef)(null);
26997
26999
  const hmsActions = (0, import_react_sdk70.useHMSActions)();
26998
27000
  const vanillaStore = (0, import_react_sdk70.useHMSVanillaStore)();
26999
- 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 */)) || {};
27000
27002
  const isMobile = (0, import_react_use22.useMedia)(config.media.md);
27001
27003
  const isMobileHLSStream = useMobileHLSStream();
27002
27004
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27080,7 +27082,7 @@ var init_Chat = __esm({
27080
27082
  scrollToBottom,
27081
27083
  listRef
27082
27084
  }) => {
27083
- const unreadCount = (0, import_react_sdk70.useHMSStore)(qn);
27085
+ const unreadCount = (0, import_react_sdk70.useHMSStore)(Qn);
27084
27086
  if (!unreadCount || !listRef.current) {
27085
27087
  return null;
27086
27088
  }
@@ -28271,10 +28273,10 @@ var init_VBPicker = __esm({
28271
28273
  const [blurAmount, setBlurAmount] = (0, import_react154.useState)(VBHandler.getBlurAmount() || 0.5);
28272
28274
  const roomState = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectRoomState);
28273
28275
  const isLargeRoom = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectIsLargeRoom);
28274
- const isEffectsEnabled = (0, import_react_sdk78.useHMSStore)(rc);
28275
- 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);
28276
28278
  const isPluginAdded = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
28277
- const background = (0, import_react_sdk78.useHMSStore)(nm(APP_DATA.background));
28279
+ const background = (0, import_react_sdk78.useHMSStore)(lm(APP_DATA.background));
28278
28280
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
28279
28281
  const inPreview = roomState === import_react_sdk78.HMSRoomState.Preview;
28280
28282
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -29771,6 +29773,13 @@ var init_LayoutModeSelector = __esm({
29771
29773
  LayoutModeSelector = () => {
29772
29774
  const [open, setOpen] = (0, import_react172.useState)(false);
29773
29775
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
29776
+ const updateLayoutMode = (0, import_react172.useCallback)(
29777
+ (value) => {
29778
+ setLayoutMode(value);
29779
+ setOpen(false);
29780
+ },
29781
+ [setLayoutMode, setOpen]
29782
+ );
29774
29783
  return /* @__PURE__ */ import_react172.default.createElement(Popover2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ import_react172.default.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ import_react172.default.createElement(
29775
29784
  Flex,
29776
29785
  {
@@ -29824,7 +29833,7 @@ var init_LayoutModeSelector = __esm({
29824
29833
  Flex,
29825
29834
  {
29826
29835
  key,
29827
- onClick: () => setLayoutMode(value),
29836
+ onClick: () => updateLayoutMode(value),
29828
29837
  align: "center",
29829
29838
  css: {
29830
29839
  gap: "$4",
@@ -30634,36 +30643,21 @@ var init_WaitingView = __esm({
30634
30643
  });
30635
30644
 
30636
30645
  // src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
30637
- var import_react181, import_react_use40, import_react_sdk96, useCloseScreenshareWhiteboard;
30646
+ var import_react181, import_react_sdk96, useCloseScreenshareWhiteboard;
30638
30647
  var init_useCloseScreenshareWhiteboard = __esm({
30639
30648
  "src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx"() {
30640
30649
  "use strict";
30641
30650
  init_define_process_env();
30642
30651
  import_react181 = require("react");
30643
- import_react_use40 = require("react-use");
30644
30652
  import_react_sdk96 = require("@100mslive/react-sdk");
30645
30653
  useCloseScreenshareWhiteboard = () => {
30646
- const { amIScreenSharing, screenSharingPeerId, toggleScreenShare } = (0, import_react_sdk96.useScreenShare)();
30654
+ const peerSharing = (0, import_react_sdk96.useHMSStore)(import_react_sdk96.selectPeerScreenSharing);
30647
30655
  const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = (0, import_react_sdk96.useWhiteboard)();
30648
- const prevScreenSharer = (0, import_react_use40.usePrevious)(screenSharingPeerId);
30649
- const prevWhiteboardOwner = (0, import_react_use40.usePrevious)(isWhiteboardOwner);
30650
30656
  (0, import_react181.useEffect)(() => {
30651
- if (isWhiteboardOwner && screenSharingPeerId) {
30652
- if (prevScreenSharer && amIScreenSharing && !prevWhiteboardOwner) {
30653
- toggleScreenShare == null ? void 0 : toggleScreenShare();
30654
- } else if (prevWhiteboardOwner && !prevScreenSharer) {
30655
- toggleWhiteboard == null ? void 0 : toggleWhiteboard();
30656
- }
30657
+ if (isWhiteboardOwner && peerSharing) {
30658
+ toggleWhiteboard == null ? void 0 : toggleWhiteboard();
30657
30659
  }
30658
- }, [
30659
- isWhiteboardOwner,
30660
- screenSharingPeerId,
30661
- amIScreenSharing,
30662
- prevScreenSharer,
30663
- prevWhiteboardOwner,
30664
- toggleScreenShare,
30665
- toggleWhiteboard
30666
- ]);
30660
+ }, [isWhiteboardOwner, toggleWhiteboard, peerSharing]);
30667
30661
  };
30668
30662
  }
30669
30663
  });
@@ -30915,13 +30909,13 @@ var init_SeekControl = __esm({
30915
30909
  });
30916
30910
 
30917
30911
  // src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx
30918
- var import_react187, import_react_use41, import_react_icons87, PlayPauseSeekControls, PlayPauseSeekOverlayControls;
30912
+ var import_react187, import_react_use40, import_react_icons87, PlayPauseSeekControls, PlayPauseSeekOverlayControls;
30919
30913
  var init_PlayPauseSeekControls = __esm({
30920
30914
  "src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx"() {
30921
30915
  "use strict";
30922
30916
  init_define_process_env();
30923
30917
  import_react187 = __toESM(require("react"));
30924
- import_react_use41 = require("react-use");
30918
+ import_react_use40 = require("react-use");
30925
30919
  import_react_icons87 = require("@100mslive/react-icons");
30926
30920
  init_Layout();
30927
30921
  init_Text2();
@@ -30960,7 +30954,7 @@ var init_PlayPauseSeekControls = __esm({
30960
30954
  showControls,
30961
30955
  hoverControlsVisible
30962
30956
  }) => {
30963
- const isMobile = (0, import_react_use41.useMedia)(config.media.md);
30957
+ const isMobile = (0, import_react_use40.useMedia)(config.media.md);
30964
30958
  const isLandscape = useIsLandscape();
30965
30959
  if (!isMobile && !isLandscape) {
30966
30960
  return /* @__PURE__ */ import_react187.default.createElement(import_react187.default.Fragment, null, /* @__PURE__ */ import_react187.default.createElement(
@@ -31369,7 +31363,7 @@ function HLSAutoplayBlockedPrompt({
31369
31363
  unblockAutoPlay
31370
31364
  }) {
31371
31365
  const isLandscape = useIsLandscape();
31372
- const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31366
+ const isMobile = (0, import_react_use41.useMedia)(config.media.md);
31373
31367
  if ((isMobile || isLandscape) && open) {
31374
31368
  return /* @__PURE__ */ import_react192.default.createElement(
31375
31369
  IconButton,
@@ -31421,13 +31415,13 @@ function HLSAutoplayBlockedPrompt({
31421
31415
  )))
31422
31416
  );
31423
31417
  }
31424
- var import_react192, import_react_use42, import_react_icons90;
31418
+ var import_react192, import_react_use41, import_react_icons90;
31425
31419
  var init_HLSAutoplayBlockedPrompt = __esm({
31426
31420
  "src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx"() {
31427
31421
  "use strict";
31428
31422
  init_define_process_env();
31429
31423
  import_react192 = __toESM(require("react"));
31430
- import_react_use42 = require("react-use");
31424
+ import_react_use41 = require("react-use");
31431
31425
  import_react_icons90 = require("@100mslive/react-icons");
31432
31426
  init_src();
31433
31427
  init_DialogContent2();
@@ -31462,7 +31456,7 @@ function HLSQualitySelector({
31462
31456
  isAuto,
31463
31457
  containerRef
31464
31458
  }) {
31465
- const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31459
+ const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31466
31460
  const isLandscape = useIsLandscape();
31467
31461
  if (layers.length === 0) {
31468
31462
  return null;
@@ -31655,13 +31649,13 @@ function HLSQualitySelector({
31655
31649
  )
31656
31650
  )));
31657
31651
  }
31658
- var import_react194, import_react_use43, import_react_icons92, getQualityText, getBitrateText;
31652
+ var import_react194, import_react_use42, import_react_icons92, getQualityText, getBitrateText;
31659
31653
  var init_HLSQualitySelector = __esm({
31660
31654
  "src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx"() {
31661
31655
  "use strict";
31662
31656
  init_define_process_env();
31663
31657
  import_react194 = __toESM(require("react"));
31664
- import_react_use43 = require("react-use");
31658
+ import_react_use42 = require("react-use");
31665
31659
  import_react_icons92 = require("@100mslive/react-icons");
31666
31660
  init_src();
31667
31661
  init_Sheet2();
@@ -31748,13 +31742,13 @@ var HLSView_exports = {};
31748
31742
  __export(HLSView_exports, {
31749
31743
  default: () => HLSView_default
31750
31744
  });
31751
- 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;
31745
+ 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;
31752
31746
  var init_HLSView = __esm({
31753
31747
  "src/Prebuilt/layouts/HLSView.jsx"() {
31754
31748
  "use strict";
31755
31749
  init_define_process_env();
31756
31750
  import_react196 = __toESM(require("react"));
31757
- import_react_use44 = require("react-use");
31751
+ import_react_use43 = require("react-use");
31758
31752
  import_hls_player3 = require("@100mslive/hls-player");
31759
31753
  import_screenfull3 = __toESM(require("screenfull"));
31760
31754
  import_ts_pattern12 = require("ts-pattern");
@@ -31788,7 +31782,7 @@ var init_HLSView = __esm({
31788
31782
  const sidepane = (0, import_react_sdk97.useHMSStore)((0, import_react_sdk97.selectAppData)(APP_DATA.sidePane));
31789
31783
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
31790
31784
  const showChat = !!(elements == null ? void 0 : elements.chat);
31791
- const isMobile = (0, import_react_use44.useMedia)(config.media.md);
31785
+ const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31792
31786
  const hmsActions = (0, import_react_sdk97.useHMSActions)();
31793
31787
  (0, import_react196.useEffect)(() => {
31794
31788
  (0, import_ts_pattern12.match)({ sidepane, isMobile, showChat, isFullScreen }).with({ isFullScreen: true }, () => {
@@ -31827,8 +31821,8 @@ var init_HLSView = __esm({
31827
31821
  seekBackward: false
31828
31822
  });
31829
31823
  const [isPaused, setIsPaused] = (0, import_react196.useState)(false);
31830
- const [show, toggle] = (0, import_react_use44.useToggle)(false);
31831
- const lastHlsUrl = (0, import_react_use44.usePrevious)(hlsUrl);
31824
+ const [show, toggle] = (0, import_react_use43.useToggle)(false);
31825
+ const lastHlsUrl = (0, import_react_use43.usePrevious)(hlsUrl);
31832
31826
  const vanillaStore = (0, import_react_sdk97.useHMSVanillaStore)();
31833
31827
  const [controlsVisible, setControlsVisible] = (0, import_react196.useState)(true);
31834
31828
  const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react196.useState)(true);
@@ -31839,9 +31833,9 @@ var init_HLSView = __esm({
31839
31833
  const isFullScreenSupported = import_screenfull3.default.isEnabled;
31840
31834
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
31841
31835
  const showChat = !!(elements == null ? void 0 : elements.chat);
31842
- const isMobile = (0, import_react_use44.useMedia)(config.media.md);
31836
+ const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31843
31837
  const isLandscape = useIsLandscape();
31844
- const isFullScreen = (0, import_react_use44.useFullscreen)(hlsViewRef, show, {
31838
+ const isFullScreen = (0, import_react_use43.useFullscreen)(hlsViewRef, show, {
31845
31839
  onClose: () => toggle(false)
31846
31840
  });
31847
31841
  const [showLoader, setShowLoader] = (0, import_react196.useState)(false);
@@ -32482,13 +32476,13 @@ var init_VideoStreamingSection = __esm({
32482
32476
  });
32483
32477
 
32484
32478
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
32485
- var import_react198, import_react_use45, import_react_icons95, RoomDetailsHeader;
32479
+ var import_react198, import_react_use44, import_react_icons95, RoomDetailsHeader;
32486
32480
  var init_RoomDetailsHeader = __esm({
32487
32481
  "src/Prebuilt/components/Header/RoomDetailsHeader.tsx"() {
32488
32482
  "use strict";
32489
32483
  init_define_process_env();
32490
32484
  import_react198 = __toESM(require("react"));
32491
- import_react_use45 = require("react-use");
32485
+ import_react_use44 = require("react-use");
32492
32486
  import_react_icons95 = require("@100mslive/react-icons");
32493
32487
  init_Layout();
32494
32488
  init_Text2();
@@ -32499,7 +32493,7 @@ var init_RoomDetailsHeader = __esm({
32499
32493
  init_constants();
32500
32494
  RoomDetailsHeader = () => {
32501
32495
  const { title, description } = useRoomLayoutHeader();
32502
- const isMobile = (0, import_react_use45.useMedia)(config.media.md);
32496
+ const isMobile = (0, import_react_use44.useMedia)(config.media.md);
32503
32497
  const clipLength = 30;
32504
32498
  const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
32505
32499
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -32677,13 +32671,13 @@ var init_common2 = __esm({
32677
32671
  });
32678
32672
 
32679
32673
  // src/Prebuilt/components/Header/Header.tsx
32680
- var import_react200, import_react_use46, import_react_sdk100, Header2;
32674
+ var import_react200, import_react_use45, import_react_sdk100, Header2;
32681
32675
  var init_Header = __esm({
32682
32676
  "src/Prebuilt/components/Header/Header.tsx"() {
32683
32677
  "use strict";
32684
32678
  init_define_process_env();
32685
32679
  import_react200 = __toESM(require("react"));
32686
- import_react_use46 = require("react-use");
32680
+ import_react_use45 = require("react-use");
32687
32681
  import_react_sdk100 = require("@100mslive/react-sdk");
32688
32682
  init_src();
32689
32683
  init_HeaderComponents();
@@ -32692,7 +32686,7 @@ var init_Header = __esm({
32692
32686
  init_common2();
32693
32687
  Header2 = () => {
32694
32688
  const roomState = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectRoomState);
32695
- const isMobile = (0, import_react_use46.useMedia)(config.media.md);
32689
+ const isMobile = (0, import_react_use45.useMedia)(config.media.md);
32696
32690
  if (roomState !== import_react_sdk100.HMSRoomState.Connected) {
32697
32691
  return /* @__PURE__ */ import_react200.default.createElement(import_react200.default.Fragment, null);
32698
32692
  }
@@ -33230,13 +33224,13 @@ var init_useRedirectToLeave = __esm({
33230
33224
  });
33231
33225
 
33232
33226
  // src/Prebuilt/AppStateContext.tsx
33233
- var import_react208, import_react_use47, import_ts_pattern14, import_react_sdk105, AppStateContext, useHMSAppStateContext, useAppStateManager;
33227
+ var import_react208, import_react_use46, import_ts_pattern14, import_react_sdk105, AppStateContext, useHMSAppStateContext, useAppStateManager;
33234
33228
  var init_AppStateContext = __esm({
33235
33229
  "src/Prebuilt/AppStateContext.tsx"() {
33236
33230
  "use strict";
33237
33231
  init_define_process_env();
33238
33232
  import_react208 = __toESM(require("react"));
33239
- import_react_use47 = require("react-use");
33233
+ import_react_use46 = require("react-use");
33240
33234
  import_ts_pattern14 = require("ts-pattern");
33241
33235
  import_react_sdk105 = require("@100mslive/react-sdk");
33242
33236
  init_VBHandler();
@@ -33260,7 +33254,7 @@ var init_AppStateContext = __esm({
33260
33254
  const roomLayout = useRoomLayout();
33261
33255
  const [activeState, setActiveState] = import_react208.default.useState();
33262
33256
  const roomState = (0, import_react_sdk105.useHMSStore)(import_react_sdk105.selectRoomState);
33263
- const prevRoomState = (0, import_react_use47.usePreviousDistinct)(roomState);
33257
+ const prevRoomState = (0, import_react_use46.usePreviousDistinct)(roomState);
33264
33258
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
33265
33259
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
33266
33260
  const { redirectToLeave } = useRedirectToLeave();
@@ -33357,13 +33351,13 @@ var init_LeaveScreen = __esm({
33357
33351
  });
33358
33352
 
33359
33353
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
33360
- var import_react210, import_react_use48, import_ts_pattern15, import_react_icons99, MwebLandscapePrompt;
33354
+ var import_react210, import_react_use47, import_ts_pattern15, import_react_icons99, MwebLandscapePrompt;
33361
33355
  var init_MwebLandscapePrompt = __esm({
33362
33356
  "src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
33363
33357
  "use strict";
33364
33358
  init_define_process_env();
33365
33359
  import_react210 = __toESM(require("react"));
33366
- import_react_use48 = require("react-use");
33360
+ import_react_use47 = require("react-use");
33367
33361
  import_ts_pattern15 = require("ts-pattern");
33368
33362
  import_react_icons99 = require("@100mslive/react-icons");
33369
33363
  init_Button2();
@@ -33375,7 +33369,7 @@ var init_MwebLandscapePrompt = __esm({
33375
33369
  init_utils2();
33376
33370
  MwebLandscapePrompt = () => {
33377
33371
  const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0, import_react210.useState)(false);
33378
- const isLandscape = (0, import_react_use48.useMedia)(config.media.ls);
33372
+ const isLandscape = (0, import_react_use47.useMedia)(config.media.ls);
33379
33373
  const isLandscapeHLSStream = useLandscapeHLSStream();
33380
33374
  (0, import_react210.useEffect)(() => {
33381
33375
  var _a8;
@@ -33911,7 +33905,7 @@ function PermissionErrorModal() {
33911
33905
  const notification = (0, import_react_sdk112.useHMSNotifications)(import_react_sdk112.HMSNotificationTypes.ERROR);
33912
33906
  const [deviceType, setDeviceType] = (0, import_react217.useState)("");
33913
33907
  const [isSystemError, setIsSystemError] = (0, import_react217.useState)(false);
33914
- const isMobile = (0, import_react_use49.useMedia)(config.media.md);
33908
+ const isMobile = (0, import_react_use48.useMedia)(config.media.md);
33915
33909
  (0, import_react217.useEffect)(() => {
33916
33910
  var _a8, _b7, _c, _d, _e;
33917
33911
  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"))) {
@@ -33967,13 +33961,13 @@ function PermissionErrorModal() {
33967
33961
  !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
33968
33962
  ))) : null;
33969
33963
  }
33970
- var import_react217, import_react_use49, import_react_sdk112;
33964
+ var import_react217, import_react_use48, import_react_sdk112;
33971
33965
  var init_PermissionErrorModal = __esm({
33972
33966
  "src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
33973
33967
  "use strict";
33974
33968
  init_define_process_env();
33975
33969
  import_react217 = __toESM(require("react"));
33976
- import_react_use49 = require("react-use");
33970
+ import_react_use48 = require("react-use");
33977
33971
  import_react_sdk112 = require("@100mslive/react-sdk");
33978
33972
  init_src();
33979
33973
  init_android_perm_1();
@@ -34201,7 +34195,7 @@ function Notifications() {
34201
34195
  }, []);
34202
34196
  (0, import_react_sdk117.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
34203
34197
  (0, import_react222.useEffect)(() => {
34204
- var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p;
34198
+ var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n, _o2, _p;
34205
34199
  if (!notification || isNotificationDisabled) {
34206
34200
  return;
34207
34201
  }
@@ -34242,7 +34236,7 @@ function Notifications() {
34242
34236
  });
34243
34237
  break;
34244
34238
  case import_react_sdk117.HMSNotificationTypes.ROLE_UPDATED: {
34245
- if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
34239
+ if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n = notification.data) == null ? void 0 : _n.roleName)) {
34246
34240
  ToastManager.addToast({
34247
34241
  title: `You are now a ${notification.data.roleName}`
34248
34242
  });
@@ -34358,13 +34352,13 @@ var init_Notifications2 = __esm({
34358
34352
  });
34359
34353
 
34360
34354
  // src/Prebuilt/components/Preview/PreviewScreen.tsx
34361
- var import_react223, import_react_use50, PreviewScreen;
34355
+ var import_react223, import_react_use49, PreviewScreen;
34362
34356
  var init_PreviewScreen = __esm({
34363
34357
  "src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
34364
34358
  "use strict";
34365
34359
  init_define_process_env();
34366
34360
  import_react223 = __toESM(require("react"));
34367
- import_react_use50 = require("react-use");
34361
+ import_react_use49 = require("react-use");
34368
34362
  init_src();
34369
34363
  init_AppContext();
34370
34364
  init_roomLayoutProvider();
@@ -34377,7 +34371,7 @@ var init_PreviewScreen = __esm({
34377
34371
  var _a8, _b7, _c;
34378
34372
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
34379
34373
  const skipPreview = !isPreviewScreenEnabled;
34380
- const previewAsRole = (0, import_react_use50.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
34374
+ const previewAsRole = (0, import_react_use49.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
34381
34375
  const { userName } = useHMSPrebuiltContext();
34382
34376
  const initialName = userName || (skipPreview ? "Beam" : "");
34383
34377
  const authToken = useAuthToken();
@@ -34518,7 +34512,7 @@ function FlyingEmoji() {
34518
34512
  const localPeerId = (0, import_react_sdk120.useHMSStore)(import_react_sdk120.selectLocalPeerID);
34519
34513
  const vanillaStore = (0, import_react_sdk120.useHMSVanillaStore)();
34520
34514
  const [emojis, setEmojis] = (0, import_react228.useState)([]);
34521
- const isMobile = (0, import_react_use51.useMedia)(config.media.md);
34515
+ const isMobile = (0, import_react_use50.useMedia)(config.media.md);
34522
34516
  const startingPoints = (0, import_react228.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
34523
34517
  const showFlyingEmoji = (0, import_react228.useCallback)(
34524
34518
  ({ emojiId, senderId }) => {
@@ -34610,13 +34604,13 @@ function FlyingEmoji() {
34610
34604
  })
34611
34605
  );
34612
34606
  }
34613
- var import_react228, import_react_use51, import_react_sdk120, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
34607
+ var import_react228, import_react_use50, import_react_sdk120, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
34614
34608
  var init_FlyingEmoji = __esm({
34615
34609
  "src/Prebuilt/plugins/FlyingEmoji.jsx"() {
34616
34610
  "use strict";
34617
34611
  init_define_process_env();
34618
34612
  import_react228 = __toESM(require("react"));
34619
- import_react_use51 = require("react-use");
34613
+ import_react_use50 = require("react-use");
34620
34614
  import_react_sdk120 = require("@100mslive/react-sdk");
34621
34615
  init_Layout();
34622
34616
  init_Text2();