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

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -45,13 +45,13 @@ var __export = (target, all) => {
45
45
  for (var name in all)
46
46
  __defProp(target, name, { get: all[name], enumerable: true });
47
47
  };
48
- var __copyProps = (to2, from, except, desc) => {
48
+ var __copyProps = (to, from, except, desc) => {
49
49
  if (from && typeof from === "object" || typeof from === "function") {
50
50
  for (let key of __getOwnPropNames(from))
51
- if (!__hasOwnProp.call(to2, key) && key !== except)
52
- __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
51
+ if (!__hasOwnProp.call(to, key) && key !== except)
52
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
53
53
  }
54
- return to2;
54
+ return to;
55
55
  };
56
56
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
57
57
  // If the importer is in node compatibility mode or this is not an ESM
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
109
109
  var define_process_env_default;
110
110
  var init_define_process_env = __esm({
111
111
  "<define:process.env>"() {
112
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8060985f-6820-4336-8097-099726194fa5", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.9-alpha.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.19-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8060985f-6820-4336-8097-099726194fa5", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.19-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", 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: "591", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240811.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.6/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:19713", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.19-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10465566030", 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: "5de66a04a026c41273f2e5c7726569cf75ee4bc4", 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: "624004f7a07b3d88570fdbaad8a462c284764d6b2f0c503522294f48bd919e32", 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--1724130281828-0.09475934427180333:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724130281634-0.1487797940428417:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724130255579-0.16172174150702223:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724130255395-0.5013479225943236:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_7ba39714-4a2d-4ba0-98b8-767dbb899398", INVOCATION_ID: "8092bc65893e434aa6237ee2149a024d", 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: "643", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 482", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", 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.19-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "5de66a04a026c41273f2e5c7726569cf75ee4bc4", 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_8060985f-6820-4336-8097-099726194fa5", 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_8060985f-6820-4336-8097-099726194fa5", 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/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_8060985f-6820-4336-8097-099726194fa5" };
112
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8e80bbea-1ccb-4925-b28b-fa461606c676", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.9-alpha.2", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.19-alpha.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8e80bbea-1ccb-4925-b28b-fa461606c676", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.19-alpha.2", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", 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: "601", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240825.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.6/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:17225", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.19-alpha.2", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10592524676", 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: "88c8ac68235961d5352322c7be3efedad27f6d92", 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: "a2abe29da55815a39e288ff49ea5cd8828252bca80913f4baf1e0a3db3791b87", 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--1724831759242-0.1595028060328194:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724831759048-0.21877242189553248:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724831733657-0.21061851403670917:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724831733475-0.416211556167259:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_67d6c53f-3cdd-439a-80c8-c2c4c7b862ae", INVOCATION_ID: "ef7e228817de496190ba8acc4bdd30f3", 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: "645", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 347", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", 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.19-alpha.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.2", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "88c8ac68235961d5352322c7be3efedad27f6d92", 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_8e80bbea-1ccb-4925-b28b-fa461606c676", 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_8e80bbea-1ccb-4925-b28b-fa461606c676", 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/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_8e80bbea-1ccb-4925-b28b-fa461606c676" };
113
113
  }
114
114
  });
115
115
 
@@ -2490,7 +2490,7 @@ var init_Video = __esm({
2490
2490
  Video = (_a7) => {
2491
2491
  var _b7 = _a7, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
2492
2492
  const { videoRef } = (0, import_react_sdk2.useVideo)({ trackId, attach });
2493
- return /* @__PURE__ */ import_react18.default.createElement(StyledVideo, __spreadValues({ autoPlay: true, muted: true, playsInline: true, controls: false, ref: videoRef }, props));
2493
+ return /* @__PURE__ */ import_react18.default.createElement(StyledVideo, __spreadValues({ ref: videoRef }, props));
2494
2494
  };
2495
2495
  }
2496
2496
  });
@@ -8165,7 +8165,7 @@ var require_lodash = __commonJS({
8165
8165
  function eq(value, other) {
8166
8166
  return value === other || value !== value && other !== other;
8167
8167
  }
8168
- var gt2 = createRelationalOperation(baseGt);
8168
+ var gt = createRelationalOperation(baseGt);
8169
8169
  var gte = createRelationalOperation(function(value, other) {
8170
8170
  return value >= other;
8171
8171
  });
@@ -8307,7 +8307,7 @@ var require_lodash = __commonJS({
8307
8307
  function isWeakSet(value) {
8308
8308
  return isObjectLike(value) && baseGetTag(value) == weakSetTag;
8309
8309
  }
8310
- var lt = createRelationalOperation(baseLt);
8310
+ var lt2 = createRelationalOperation(baseLt);
8311
8311
  var lte = createRelationalOperation(function(value, other) {
8312
8312
  return value <= other;
8313
8313
  });
@@ -8389,7 +8389,7 @@ var require_lodash = __commonJS({
8389
8389
  var assignWith = createAssigner(function(object, source, srcIndex, customizer2) {
8390
8390
  copyObject(source, keys(source), object, customizer2);
8391
8391
  });
8392
- var at = flatRest(baseAt);
8392
+ var at2 = flatRest(baseAt);
8393
8393
  function create(prototype, properties) {
8394
8394
  var result2 = baseCreate(prototype);
8395
8395
  return properties == null ? result2 : baseAssign(result2, properties);
@@ -9123,7 +9123,7 @@ var require_lodash = __commonJS({
9123
9123
  lodash.assignIn = assignIn;
9124
9124
  lodash.assignInWith = assignInWith;
9125
9125
  lodash.assignWith = assignWith;
9126
- lodash.at = at;
9126
+ lodash.at = at2;
9127
9127
  lodash.before = before;
9128
9128
  lodash.bind = bind;
9129
9129
  lodash.bindAll = bindAll;
@@ -9304,7 +9304,7 @@ var require_lodash = __commonJS({
9304
9304
  lodash.forOwn = forOwn;
9305
9305
  lodash.forOwnRight = forOwnRight;
9306
9306
  lodash.get = get;
9307
- lodash.gt = gt2;
9307
+ lodash.gt = gt;
9308
9308
  lodash.gte = gte;
9309
9309
  lodash.has = has;
9310
9310
  lodash.hasIn = hasIn;
@@ -9357,7 +9357,7 @@ var require_lodash = __commonJS({
9357
9357
  lodash.lastIndexOf = lastIndexOf;
9358
9358
  lodash.lowerCase = lowerCase;
9359
9359
  lodash.lowerFirst = lowerFirst;
9360
- lodash.lt = lt;
9360
+ lodash.lt = lt2;
9361
9361
  lodash.lte = lte;
9362
9362
  lodash.max = max;
9363
9363
  lodash.maxBy = maxBy;
@@ -10545,8 +10545,8 @@ var init_PIPManager = __esm({
10545
10545
  /**
10546
10546
  * @private {boolean} on - whether pip is on/off
10547
10547
  */
10548
- this.callListeners = (on) => {
10549
- this.listeners.forEach((listener) => listener == null ? void 0 : listener(on));
10548
+ this.callListeners = (on2) => {
10549
+ this.listeners.forEach((listener) => listener == null ? void 0 : listener(on2));
10550
10550
  };
10551
10551
  this.reset();
10552
10552
  }
@@ -14328,9 +14328,17 @@ var init_PIPChat = __esm({
14328
14328
  filteredMessages.length === 0 ? /* @__PURE__ */ import_react69.default.createElement(
14329
14329
  "div",
14330
14330
  {
14331
- style: { display: "flex", height: "100%", width: "100%", alignItems: "center", justifyContent: "center" }
14331
+ style: {
14332
+ display: "flex",
14333
+ flexDirection: "column",
14334
+ height: "100%",
14335
+ width: "100%",
14336
+ alignItems: "center",
14337
+ justifyContent: "center"
14338
+ }
14332
14339
  },
14333
- /* @__PURE__ */ import_react69.default.createElement(Text, null, "No messages here yet")
14340
+ /* @__PURE__ */ import_react69.default.createElement(Text, { variant: "h5", css: { mt: "$8", c: "$on_surface_high" } }, canSendChatMessages ? "Start a conversation" : "No messages yet"),
14341
+ /* @__PURE__ */ import_react69.default.createElement(Text, { variant: "sm", style: { maxWidth: "80%", textAlign: "center", marginTop: "4px" } }, "There are no messages here yet. Start a conversation by sending a message.")
14334
14342
  ) : filteredMessages.map((message) => /* @__PURE__ */ import_react69.default.createElement(Box, { className: "pip-message", key: message.id, id: message.id, style: { padding: "8px 0.75rem" } }, /* @__PURE__ */ import_react69.default.createElement(Flex, { style: { width: "100%", alignItems: "center", justifyContent: "between" } }, /* @__PURE__ */ import_react69.default.createElement(
14335
14343
  Text,
14336
14344
  {
@@ -18258,16 +18266,16 @@ function shimGetUserMedia(window2, browserDetails) {
18258
18266
  };
18259
18267
  if (r.ideal !== void 0) {
18260
18268
  cc.optional = cc.optional || [];
18261
- let oc = {};
18269
+ let oc2 = {};
18262
18270
  if (typeof r.ideal === "number") {
18263
- oc[oldname_("min", key)] = r.ideal;
18264
- cc.optional.push(oc);
18265
- oc = {};
18266
- oc[oldname_("max", key)] = r.ideal;
18267
- cc.optional.push(oc);
18271
+ oc2[oldname_("min", key)] = r.ideal;
18272
+ cc.optional.push(oc2);
18273
+ oc2 = {};
18274
+ oc2[oldname_("max", key)] = r.ideal;
18275
+ cc.optional.push(oc2);
18268
18276
  } else {
18269
- oc[oldname_("", key)] = r.ideal;
18270
- cc.optional.push(oc);
18277
+ oc2[oldname_("", key)] = r.ideal;
18278
+ cc.optional.push(oc2);
18271
18279
  }
18272
18280
  }
18273
18281
  if (r.exact !== void 0 && typeof r.exact !== "number") {
@@ -19829,12 +19837,12 @@ var require_sdp = __commonJS({
19829
19837
  return parsed;
19830
19838
  };
19831
19839
  SDPUtils2.writeRtpMap = function(codec) {
19832
- let pt = codec.payloadType;
19840
+ let pt2 = codec.payloadType;
19833
19841
  if (codec.preferredPayloadType !== void 0) {
19834
- pt = codec.preferredPayloadType;
19842
+ pt2 = codec.preferredPayloadType;
19835
19843
  }
19836
19844
  const channels = codec.channels || codec.numChannels || 1;
19837
- return "a=rtpmap:" + pt + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
19845
+ return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
19838
19846
  };
19839
19847
  SDPUtils2.parseExtmap = function(line) {
19840
19848
  const parts = line.substring(9).split(" ");
@@ -19860,9 +19868,9 @@ var require_sdp = __commonJS({
19860
19868
  };
19861
19869
  SDPUtils2.writeFmtp = function(codec) {
19862
19870
  let line = "";
19863
- let pt = codec.payloadType;
19871
+ let pt2 = codec.payloadType;
19864
19872
  if (codec.preferredPayloadType !== void 0) {
19865
- pt = codec.preferredPayloadType;
19873
+ pt2 = codec.preferredPayloadType;
19866
19874
  }
19867
19875
  if (codec.parameters && Object.keys(codec.parameters).length) {
19868
19876
  const params = [];
@@ -19873,7 +19881,7 @@ var require_sdp = __commonJS({
19873
19881
  params.push(param);
19874
19882
  }
19875
19883
  });
19876
- line += "a=fmtp:" + pt + " " + params.join(";") + "\r\n";
19884
+ line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
19877
19885
  }
19878
19886
  return line;
19879
19887
  };
@@ -19886,13 +19894,13 @@ var require_sdp = __commonJS({
19886
19894
  };
19887
19895
  SDPUtils2.writeRtcpFb = function(codec) {
19888
19896
  let lines = "";
19889
- let pt = codec.payloadType;
19897
+ let pt2 = codec.payloadType;
19890
19898
  if (codec.preferredPayloadType !== void 0) {
19891
- pt = codec.preferredPayloadType;
19899
+ pt2 = codec.preferredPayloadType;
19892
19900
  }
19893
19901
  if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
19894
19902
  codec.rtcpFeedback.forEach((fb) => {
19895
- lines += "a=rtcp-fb:" + pt + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
19903
+ lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
19896
19904
  });
19897
19905
  }
19898
19906
  return lines;
@@ -20020,21 +20028,21 @@ var require_sdp = __commonJS({
20020
20028
  const mline = lines[0].split(" ");
20021
20029
  description.profile = mline[2];
20022
20030
  for (let i = 3; i < mline.length; i++) {
20023
- const pt = mline[i];
20031
+ const pt2 = mline[i];
20024
20032
  const rtpmapline = SDPUtils2.matchPrefix(
20025
20033
  mediaSection,
20026
- "a=rtpmap:" + pt + " "
20034
+ "a=rtpmap:" + pt2 + " "
20027
20035
  )[0];
20028
20036
  if (rtpmapline) {
20029
20037
  const codec = SDPUtils2.parseRtpMap(rtpmapline);
20030
20038
  const fmtps = SDPUtils2.matchPrefix(
20031
20039
  mediaSection,
20032
- "a=fmtp:" + pt + " "
20040
+ "a=fmtp:" + pt2 + " "
20033
20041
  );
20034
20042
  codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
20035
20043
  codec.rtcpFeedback = SDPUtils2.matchPrefix(
20036
20044
  mediaSection,
20037
- "a=rtcp-fb:" + pt + " "
20045
+ "a=rtcp-fb:" + pt2 + " "
20038
20046
  ).map(SDPUtils2.parseRtcpFb);
20039
20047
  description.codecs.push(codec);
20040
20048
  switch (codec.name.toUpperCase()) {
@@ -21499,42 +21507,42 @@ var require_lib = __commonJS({
21499
21507
  });
21500
21508
 
21501
21509
  // ../hms-video-store/dist/index.js
21502
- function Be(a2, e) {
21510
+ function Ue(a2, e) {
21503
21511
  let t, i;
21504
21512
  if (e)
21505
21513
  for (let r of e.auxiliaryTracks) {
21506
21514
  let s = a2[r];
21507
- to(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
21515
+ so(s) && (i = pt(s) ? s : i, t = ht(s) ? s : t);
21508
21516
  }
21509
21517
  return { video: t, audio: i };
21510
21518
  }
21511
- function ht(a2) {
21519
+ function pt(a2) {
21512
21520
  return a2 && a2.type === "audio";
21513
21521
  }
21514
- function mt(a2) {
21522
+ function ht(a2) {
21515
21523
  return a2 && a2.type === "video";
21516
21524
  }
21517
- function to(a2) {
21525
+ function so(a2) {
21518
21526
  return a2 && a2.source === "screen";
21519
21527
  }
21520
21528
  function ri(a2) {
21521
21529
  return a2 && a2.source === "audioplaylist";
21522
21530
  }
21523
- function St(a2) {
21531
+ function mt(a2) {
21524
21532
  return a2 && a2.source === "videoplaylist";
21525
21533
  }
21526
21534
  function ds(a2) {
21527
21535
  return a2 ? !!(a2 != null && a2.degraded) : false;
21528
21536
  }
21529
- function Je(a2, e) {
21537
+ function je(a2, e) {
21530
21538
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21531
21539
  }
21532
- function gt(a2) {
21540
+ function St(a2) {
21533
21541
  var r;
21534
21542
  let e = false, t = false, i = false;
21535
21543
  return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
21536
21544
  }
21537
- function ao() {
21545
+ function co() {
21538
21546
  if (B && window) {
21539
21547
  let a2 = window.location.hostname;
21540
21548
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
@@ -21545,11 +21553,11 @@ function ne(a2) {
21545
21553
  return a2 != null;
21546
21554
  }
21547
21555
  function vt(a2 = "prod", e) {
21548
- let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21549
- if (Ve)
21550
- return Ps({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ks, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21551
- let r = ve.getOS(), s = ve.getDevice(), o = ve.getBrowser(), n = Mr(`web_${r.name}`), d = r.version || "", u = Mr(`${o.name}_${o.version}`), p = u;
21552
- return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`), Ps({ os: n, os_version: d, sdk: t, sdk_version: ks, device_model: p, env: i, domain: ze, 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 });
21556
+ let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21557
+ if (Be)
21558
+ return Is({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: bs, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21559
+ let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = Mr(`web_${r.name}`), d = r.version || "", u = Mr(`${o.name}_${o.version}`), p = u;
21560
+ return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`), Is({ os: n, os_version: d, sdk: t, sdk_version: bs, device_model: p, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21553
21561
  }
21554
21562
  function Mr(a2) {
21555
21563
  return a2.replace(/ /g, "_");
@@ -21567,13 +21575,13 @@ function oi(a2, e = 300) {
21567
21575
  function A(a2) {
21568
21576
  return (e) => (t) => a2(t, e);
21569
21577
  }
21570
- function Fm(a2) {
21578
+ function qm(a2) {
21571
21579
  return (e) => {
21572
21580
  if (e.sessionStore)
21573
21581
  return a2 ? e.sessionStore[a2] : e.sessionStore;
21574
21582
  };
21575
21583
  }
21576
- var import_ua_parser_js, import_uuid3, import_uuid4, import_lodash3, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, qt, import_eventemitter24, import_uuid9, import_uuid10, Ja, Qa, za, ei, as, os, ss, h, M, mr, Za, vr, Sr, eo, ns, gr, cs, us, io, l, ve, B, ps, Ve, so, rc, hs, ms, Ts, fs, ze, E, f, oo, S, fr, vs, he, Ms, ks, Ps, H, y, yr, J, kr, Pr, Ir, Rs, As, Hs, Cs, Ls, Rr, ws, Ar, Os, Hr, xs, Cr, Lr, Vs, Fs, Et, st, V, Co, qh, jh, K, fi, zs, O, Vr, Lo, xe, zh, wo, Te, Do, ie, Ee, Yh, Xh, oe, z, _o, Xs, Zh, em, Gr, No, im, rm, sm, am, om, nm, cm, dm, At, Oo, lm, re, ea, um, pm, fe, hm, ot, xo, ta, mm, ia, Sm, gm, Tm, fm, vm, Mm, ym, km, Pm, Em, ra, Am, Uo, Hm, aa, Wr, oa, na, ca, da, la, ua, pa, ha, Ht, b, $r, Ct, ma, Bo, Vo, q, Kr, Fo, Go, Wo, $o, Ko, Y, Vm, Wm, $m, vi, Sa, Km, qm, jm, qo, jo, Qm, ga, zm, Jo, Ym, Xm, Zm, eS, tS, iS, Ta, fa, sS, aS, va, oS, nS, Ma, cS, dS, lS, ya, ka, Qo, zo, Yo, uS, pS, hS, mS, SS, Pa, RS, Xo, AS, HS, CS, en, tn, an, zr, Ie, j, ir, ut, En, bn, In, Rn, qa, An, ja, ts, Ae, Hn, Cn, Ln, wn, Dn, _n, Nn, On, xn, Un, is, Bn, Vn, Fn, Gn, Wn, $n;
21584
+ var import_ua_parser_js, import_uuid3, import_uuid4, import_lodash3, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, qt, import_eventemitter24, import_uuid9, import_uuid10, Ya, Xa, Za, ei, as, os, ss, h, M, mr, io, vr, Sr, ro, ns, gr, cs, us, ao, l, he, B, ps, Be, no, oc, hs, ms, vs, Ss, gs, Ms, ys, Qe, P4, f, lo, S, fr, ks, me, Es, bs, Is, H, y, yr, J, kr, Er, Ir, Cs, Ls, ws, Ds, _s, Rr, Ns, Ar, Bs, Hr, Vs, Cr, Lr, Ws, $s, Pt, rt, V, Do, Yh, Xh, K, fi, Zs, O, Vr, _o, Oe, tm, No, fe, Oo, ie, Ee, im, rm, oe, z, xo, ta, sm, am, Gr, Uo, nm, cm, dm, lm, um, pm, hm, mm, At, Bo, Sm, re, ra, gm, Tm, ve, fm, at, Vo, sa, vm, aa, Mm, ym, km, Em, Pm, bm, Im, Rm, Am, Hm, oa, Dm, Fo, _m, ca, Wr, da, la, ua, pa, ha, ma, Sa, ga, Ht, b, $r, Ct, Ta, Go, Wo, q, Kr, $o, Ko, qo, jo, Jo, Y, Km, Jm, Qm, vi, fa, zm, Ym, Xm, Qo, zo, eS, va, tS, Yo, iS, rS, sS, aS, oS, nS, Ma, ya, dS, lS, ka, uS, pS, Ea, hS, mS, SS, Pa, ba, Xo, Zo, en, gS, TS, fS, vS, MS, Ia, wS, tn, DS, _S, NS, sn, an, cn, zr, be, j, ir, lt, Rn, An, Hn, Cn, Qa, Ln, za, ts, Re, wn, Dn, _n, Nn, On, xn, Un, Bn, Vn, Fn, is, Gn, Wn, $n, Kn, qn, jn;
21577
21585
  var init_dist = __esm({
21578
21586
  "../hms-video-store/dist/index.js"() {
21579
21587
  "use strict";
@@ -21601,13 +21609,13 @@ var init_dist = __esm({
21601
21609
  import_uuid9 = require("uuid");
21602
21610
  import_uuid10 = require("uuid");
21603
21611
  init_es();
21604
- Ja = Object.defineProperty;
21605
- Qa = Object.defineProperties;
21606
- za = Object.getOwnPropertyDescriptors;
21612
+ Ya = Object.defineProperty;
21613
+ Xa = Object.defineProperties;
21614
+ Za = Object.getOwnPropertyDescriptors;
21607
21615
  ei = Object.getOwnPropertySymbols;
21608
21616
  as = Object.prototype.hasOwnProperty;
21609
21617
  os = Object.prototype.propertyIsEnumerable;
21610
- ss = (a2, e, t) => e in a2 ? Ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21618
+ ss = (a2, e, t) => e in a2 ? Ya(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21611
21619
  h = (a2, e) => {
21612
21620
  for (var t in e || (e = {}))
21613
21621
  as.call(e, t) && ss(a2, t, e[t]);
@@ -21616,7 +21624,7 @@ var init_dist = __esm({
21616
21624
  os.call(e, t) && ss(a2, t, e[t]);
21617
21625
  return a2;
21618
21626
  };
21619
- M = (a2, e) => Qa(a2, za(e));
21627
+ M = (a2, e) => Xa(a2, Za(e));
21620
21628
  mr = (a2, e) => {
21621
21629
  var t = {};
21622
21630
  for (var i in a2)
@@ -21626,17 +21634,17 @@ var init_dist = __esm({
21626
21634
  e.indexOf(i) < 0 && os.call(a2, i) && (t[i] = a2[i]);
21627
21635
  return t;
21628
21636
  };
21629
- Za = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21630
- vr = Za((Hc, co) => {
21631
- co.exports = { version: "0.12.19-alpha.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21637
+ io = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21638
+ vr = io((wc, po) => {
21639
+ po.exports = { version: "0.12.19-alpha.2", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21632
21640
  });
21633
21641
  Sr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Sr || {});
21634
- eo = ((e) => (e.CHAT = "chat", e))(eo || {});
21642
+ ro = ((e) => (e.CHAT = "chat", e))(ro || {});
21635
21643
  ns = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ns || {});
21636
21644
  gr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(gr || {});
21637
21645
  cs = ((t) => (t.audio = "audio", t.video = "video", t))(cs || {});
21638
21646
  us = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(us || {});
21639
- io = typeof window != "undefined" && typeof window.expect != "undefined";
21647
+ ao = typeof window != "undefined" && typeof window.expect != "undefined";
21640
21648
  l = class {
21641
21649
  static v(e, ...t) {
21642
21650
  this.log(0, e, ...t);
@@ -21702,16 +21710,17 @@ var init_dist = __esm({
21702
21710
  }
21703
21711
  }
21704
21712
  };
21705
- l.level = io ? 7 : 0;
21706
- ve = new import_ua_parser_js.UAParser();
21713
+ l.level = ao ? 7 : 0;
21714
+ he = new import_ua_parser_js.UAParser();
21707
21715
  B = typeof window != "undefined";
21708
- Ve = typeof window == "undefined" && !((ps = ve.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
21709
- so = () => !Ve;
21710
- rc = so();
21711
- Ts = ((ms = (hs = ve.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
21712
- fs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(fs || {});
21713
- ze = ao();
21714
- E = { 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 } };
21716
+ Be = typeof window == "undefined" && !((ps = he.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
21717
+ no = () => !Be;
21718
+ oc = no();
21719
+ vs = ((ms = (hs = he.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "safari";
21720
+ Ms = ((gs = (Ss = he.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase()) === "firefox";
21721
+ ys = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(ys || {});
21722
+ Qe = co();
21723
+ P4 = { 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 } };
21715
21724
  f = class a extends Error {
21716
21725
  constructor(t, i, r, s, o, n = false) {
21717
21726
  super(s);
@@ -21741,99 +21750,99 @@ var init_dist = __esm({
21741
21750
  }`;
21742
21751
  }
21743
21752
  };
21744
- oo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21753
+ lo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21745
21754
  S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21746
- return new f(E.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21755
+ return new f(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21747
21756
  }, WebSocketConnectionLost(a2, e = "") {
21748
- return new f(E.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21757
+ return new f(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21749
21758
  }, AbnormalClose(a2, e = "") {
21750
- return new f(E.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21759
+ return new f(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21751
21760
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
21752
21761
  return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
21753
21762
  }, EndpointUnreachable(a2, e = "") {
21754
- return new f(E.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21763
+ return new f(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21755
21764
  }, InvalidTokenFormat(a2, e = "") {
21756
- return new f(E.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21765
+ return new f(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21757
21766
  }, InitConfigNotAvailable(a2, e = "") {
21758
- return new f(E.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21767
+ return new f(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21759
21768
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21760
- return new f(E.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21769
+ return new f(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21761
21770
  }, CantAccessCaptureDevice(a2, e, t = "") {
21762
- return new f(E.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21771
+ return new f(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21763
21772
  }, DeviceNotAvailable(a2, e, t = "") {
21764
- return new f(E.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21773
+ return new f(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21765
21774
  }, DeviceInUse(a2, e, t = "") {
21766
- return new f(E.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21775
+ return new f(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21767
21776
  }, DeviceLostMidway(a2, e, t = "") {
21768
- return new f(E.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21777
+ return new f(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21769
21778
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21770
- return new f(E.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21779
+ return new f(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21771
21780
  }, InvalidVideoSettings(a2, e = "") {
21772
- return new f(E.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21781
+ return new f(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21773
21782
  }, AutoplayBlocked(a2, e = "") {
21774
- return new f(E.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21783
+ return new f(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21775
21784
  }, CodecChangeNotPermitted(a2, e = "") {
21776
- return new f(E.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21785
+ return new f(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21777
21786
  }, OverConstrained(a2, e, t = "") {
21778
- return new f(E.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21787
+ return new f(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21779
21788
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21780
- return new f(E.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21789
+ return new f(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21781
21790
  }, SystemDeniedPermission(a2, e, t = "") {
21782
- return new f(E.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21791
+ return new f(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21783
21792
  }, CurrentTabNotShared() {
21784
- return new f(E.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
21793
+ return new f(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
21785
21794
  }, AudioPlaybackError(a2) {
21786
- return new f(E.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21795
+ return new f(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21787
21796
  }, SelectedDeviceMissing(a2) {
21788
- return new f(E.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21797
+ return new f(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21789
21798
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21790
- return new f(E.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21799
+ return new f(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21791
21800
  }, CreateAnswerFailed(a2, e = "") {
21792
- return new f(E.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21801
+ return new f(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21793
21802
  }, SetLocalDescriptionFailed(a2, e = "") {
21794
- return new f(E.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21803
+ return new f(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21795
21804
  }, SetRemoteDescriptionFailed(a2, e = "") {
21796
- return new f(E.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21805
+ return new f(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21797
21806
  }, ICEFailure(a2, e = "", t = false) {
21798
- return new f(E.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21807
+ return new f(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21799
21808
  }, ICEDisconnected(a2, e = "") {
21800
- return new f(E.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21809
+ return new f(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21801
21810
  }, StatsFailed(a2, e = "") {
21802
- return new f(E.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21811
+ return new f(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21803
21812
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21804
- return new f(a2, "ServerErrors", e, t, t, oo.includes(e));
21813
+ return new f(a2, "ServerErrors", e, t, t, lo.includes(e));
21805
21814
  }, AlreadyJoined(a2, e = "") {
21806
- return new f(E.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21815
+ return new f(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21807
21816
  }, CannotJoinPreviewInProgress(a2, e = "") {
21808
- return new f(E.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21817
+ return new f(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21809
21818
  } }, GenericErrors: { NotConnected(a2, e = "") {
21810
- return new f(E.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21819
+ return new f(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21811
21820
  }, Signalling(a2, e) {
21812
- return new f(E.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21821
+ return new f(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21813
21822
  }, Unknown(a2, e) {
21814
- return new f(E.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21823
+ return new f(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21815
21824
  }, NotReady(a2, e = "") {
21816
- return new f(E.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21825
+ return new f(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21817
21826
  }, JsonParsingFailed(a2, e, t = "") {
21818
- return new f(E.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21827
+ return new f(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21819
21828
  }, TrackMetadataMissing(a2, e = "") {
21820
- return new f(E.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21829
+ return new f(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21821
21830
  }, RTCTrackMissing(a2, e = "") {
21822
- return new f(E.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21831
+ return new f(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21823
21832
  }, PeerMetadataMissing(a2, e = "") {
21824
- return new f(E.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21833
+ return new f(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21825
21834
  }, ValidationFailed(a2, e) {
21826
- return new f(E.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21835
+ return new f(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21827
21836
  }, InvalidRole(a2, e) {
21828
- return new f(E.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21837
+ return new f(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21829
21838
  }, PreviewAlreadyInProgress(a2, e = "") {
21830
- return new f(E.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21839
+ return new f(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21831
21840
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
21832
- return new f(E.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21841
+ return new f(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21833
21842
  }, MissingMediaDevices() {
21834
- return new f(E.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21843
+ return new f(P4.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21835
21844
  }, MissingRTCPeerConnection() {
21836
- return new f(E.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21845
+ return new f(P4.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21837
21846
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
21838
21847
  return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
21839
21848
  }, InitFailed(a2, e = "") {
@@ -21845,9 +21854,9 @@ var init_dist = __esm({
21845
21854
  }, DeviceNotSupported(a2, e = "") {
21846
21855
  return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
21847
21856
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
21848
- return new f(E.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21857
+ return new f(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21849
21858
  }, NoEntryPlaying(a2, e) {
21850
- return new f(E.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21859
+ return new f(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21851
21860
  } } };
21852
21861
  fr = class {
21853
21862
  constructor() {
@@ -21874,21 +21883,21 @@ var init_dist = __esm({
21874
21883
  return this.valuesMap.size;
21875
21884
  }
21876
21885
  };
21877
- vs = () => {
21886
+ ks = () => {
21878
21887
  try {
21879
21888
  B && !localStorage && (window.localStorage = new fr());
21880
21889
  } catch (a2) {
21881
21890
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21882
21891
  }
21883
21892
  };
21884
- he = class {
21893
+ me = class {
21885
21894
  constructor(e) {
21886
21895
  this.key = e;
21887
21896
  this.storage = null;
21888
21897
  }
21889
21898
  getStorage() {
21890
21899
  try {
21891
- return B && !this.storage && (vs(), this.storage = window.localStorage), this.storage;
21900
+ return B && !this.storage && (ks(), this.storage = window.localStorage), this.storage;
21892
21901
  } catch (e) {
21893
21902
  return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21894
21903
  }
@@ -21908,19 +21917,19 @@ var init_dist = __esm({
21908
21917
  (e = this.getStorage()) == null || e.removeItem(this.key);
21909
21918
  }
21910
21919
  };
21911
- Ms = () => {
21912
- let a2, e = new he("hms-analytics-deviceId"), t = e.get();
21920
+ Es = () => {
21921
+ let a2, e = new me("hms-analytics-deviceId"), t = e.get();
21913
21922
  return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
21914
21923
  };
21915
- ks = vr().version;
21916
- Ps = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21924
+ bs = vr().version;
21925
+ Is = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21917
21926
  H = class {
21918
21927
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21919
21928
  this.metadata = { peer: {}, userAgent: vt() };
21920
- 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 = Ms();
21929
+ 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 = Es();
21921
21930
  }
21922
21931
  toSignalParams() {
21923
- return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21932
+ return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21924
21933
  }
21925
21934
  };
21926
21935
  y = class {
@@ -22008,8 +22017,8 @@ var init_dist = __esm({
22008
22017
  static krispStop() {
22009
22018
  return new H({ name: "krisp.stop", level: 1 });
22010
22019
  }
22011
- static interruption(e, t, i) {
22012
- return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ type: t }, i) });
22020
+ static interruption({ started: e, type: t, reason: i, deviceInfo: r }) {
22021
+ return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ reason: i, type: t }, r) });
22013
22022
  }
22014
22023
  static eventNameFor(e, t) {
22015
22024
  return `${e}.${t ? "success" : "failed"}`;
@@ -22025,7 +22034,7 @@ var init_dist = __esm({
22025
22034
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
22026
22035
  yr = class {
22027
22036
  constructor() {
22028
- this.storage = new he("hms-device-selection");
22037
+ this.storage = new me("hms-device-selection");
22029
22038
  this.remember = false;
22030
22039
  this.TAG = "[HMSDeviceStorage]";
22031
22040
  }
@@ -22059,15 +22068,15 @@ var init_dist = __esm({
22059
22068
  };
22060
22069
  J = new yr();
22061
22070
  kr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(kr || {});
22062
- Pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Pr || {});
22071
+ Er = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Er || {});
22063
22072
  Ir = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ir || {});
22064
- Rs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Rs || {});
22065
- As = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(As || {});
22066
- Hs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Hs || {});
22067
- Cs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Cs || {});
22068
- Ls = ((e) => (e.CAPTION = "caption", e))(Ls || {});
22073
+ Cs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Cs || {});
22074
+ Ls = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ls || {});
22075
+ ws = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(ws || {});
22076
+ Ds = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Ds || {});
22077
+ _s = ((e) => (e.CAPTION = "caption", e))(_s || {});
22069
22078
  Rr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Rr || {});
22070
- ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(ws || {});
22079
+ Ns = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ns || {});
22071
22080
  Ar = class {
22072
22081
  constructor() {
22073
22082
  this.TAG = "[HMSIntersectionObserverWrapper]";
@@ -22095,7 +22104,7 @@ var init_dist = __esm({
22095
22104
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
22096
22105
  }
22097
22106
  };
22098
- Os = new Ar();
22107
+ Bs = new Ar();
22099
22108
  Hr = class {
22100
22109
  constructor() {
22101
22110
  this.TAG = "[HMSResizeObserverWrapper]";
@@ -22123,43 +22132,43 @@ var init_dist = __esm({
22123
22132
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
22124
22133
  }
22125
22134
  };
22126
- xs = new Hr();
22135
+ Vs = new Hr();
22127
22136
  Cr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Cr || {});
22128
22137
  Lr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Lr || {});
22129
- Vs = "https://event.100ms.live/v2/client/report";
22130
- Fs = "https://event-nonprod.100ms.live/v2/client/report";
22131
- Et = Math.pow(2, 31) - 1;
22132
- st = class {
22138
+ Ws = "https://event.100ms.live/v2/client/report";
22139
+ $s = "https://event-nonprod.100ms.live/v2/client/report";
22140
+ Pt = Math.pow(2, 31) - 1;
22141
+ rt = class {
22133
22142
  };
22134
- st.makePeerId = () => (0, import_uuid7.v4)();
22143
+ rt.makePeerId = () => (0, import_uuid7.v4)();
22135
22144
  V = (a2) => a2.room;
22136
- Co = (a2) => a2.errors;
22137
- qh = createSelector(Co, (a2) => a2.length === 0 ? null : a2.at(-1));
22138
- jh = createSelector(V, (a2) => a2.id);
22145
+ Do = (a2) => a2.errors;
22146
+ Yh = createSelector(Do, (a2) => a2.length === 0 ? null : a2.at(-1));
22147
+ Xh = createSelector(V, (a2) => a2.id);
22139
22148
  K = (a2) => a2.peers;
22140
22149
  fi = (a2) => a2.messages.byID;
22141
- zs = (a2) => a2.messages.allIDs;
22150
+ Zs = (a2) => a2.messages.allIDs;
22142
22151
  O = (a2) => a2.tracks;
22143
22152
  Vr = (a2) => a2.appData;
22144
- Lo = (a2) => a2.speakers;
22145
- xe = createSelector([V], (a2) => a2 && a2.isConnected);
22146
- zh = createSelector([xe, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
22147
- wo = (a2) => a2.hideLocalPeer;
22148
- Te = createSelector([V, K, wo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
22149
- Do = createSelector(O, (a2) => Object.values(a2));
22153
+ _o = (a2) => a2.speakers;
22154
+ Oe = createSelector([V], (a2) => a2 && a2.isConnected);
22155
+ tm = createSelector([Oe, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
22156
+ No = (a2) => a2.hideLocalPeer;
22157
+ fe = createSelector([V, K, No], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
22158
+ Oo = createSelector(O, (a2) => Object.values(a2));
22150
22159
  ie = createSelector(V, K, (a2, e) => e[a2.localPeer]);
22151
22160
  Ee = createSelector(V, (a2) => a2.localPeer);
22152
- Yh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
22153
- Xh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
22161
+ im = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
22162
+ rm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
22154
22163
  oe = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
22155
22164
  z = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
22156
- _o = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
22157
- Xs = createSelector([oe, z, _o], (a2, e, t) => {
22165
+ xo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
22166
+ ta = createSelector([oe, z, xo], (a2, e, t) => {
22158
22167
  let i = t ? [...t] : [];
22159
22168
  return a2 && i.unshift(a2), e && i.unshift(e), i;
22160
22169
  });
22161
- Zh = createSelector(Te, (a2) => a2.filter((e) => !e.isLocal));
22162
- em = createSelector(K, Lo, (a2, e) => {
22170
+ sm = createSelector(fe, (a2) => a2.filter((e) => !e.isLocal));
22171
+ am = createSelector(K, _o, (a2, e) => {
22163
22172
  let t = Object.entries(e).sort((i, r) => {
22164
22173
  var n, d;
22165
22174
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -22173,107 +22182,107 @@ var init_dist = __esm({
22173
22182
  return null;
22174
22183
  });
22175
22184
  Gr = createSelector(ie, O, (a2, e) => {
22176
- let { video: t, audio: i } = Be(e, a2);
22185
+ let { video: t, audio: i } = Ue(e, a2);
22177
22186
  return !!(t || i);
22178
22187
  });
22179
- No = createSelector(K, O, (a2, e) => {
22188
+ Uo = createSelector(K, O, (a2, e) => {
22180
22189
  let t;
22181
22190
  for (let i in a2) {
22182
- let r = a2[i], { video: s, audio: o } = Be(e, r);
22191
+ let r = a2[i], { video: s, audio: o } = Ue(e, r);
22183
22192
  if (s)
22184
22193
  return r;
22185
22194
  o && !t && (t = r);
22186
22195
  }
22187
22196
  return t;
22188
22197
  });
22189
- im = createSelector(No, (a2) => !!a2);
22190
- rm = createSelector(K, O, (a2, e) => {
22198
+ nm = createSelector(Uo, (a2) => !!a2);
22199
+ cm = createSelector(K, O, (a2, e) => {
22191
22200
  for (let t in a2) {
22192
- let i = a2[t], { audio: r, video: s } = Be(e, i);
22201
+ let i = a2[t], { audio: r, video: s } = Ue(e, i);
22193
22202
  if (!s && r)
22194
22203
  return i;
22195
22204
  }
22196
22205
  });
22197
- sm = createSelector(K, O, (a2, e) => {
22206
+ dm = createSelector(K, O, (a2, e) => {
22198
22207
  let t = [], i = [];
22199
22208
  for (let r in a2) {
22200
- let s = a2[r], { video: o, audio: n } = Be(e, s);
22209
+ let s = a2[r], { video: o, audio: n } = Ue(e, s);
22201
22210
  o ? t.push(s) : n && i.push(s);
22202
22211
  }
22203
22212
  return t.concat(i);
22204
22213
  });
22205
- am = createSelector(K, O, (a2, e) => {
22214
+ lm = createSelector(K, O, (a2, e) => {
22206
22215
  for (let t in e) {
22207
22216
  let i = e[t];
22208
- if (St(i) && mt(i) && i.peerId)
22217
+ if (mt(i) && ht(i) && i.peerId)
22209
22218
  return a2[i.peerId];
22210
22219
  }
22211
22220
  });
22212
- om = createSelector(K, O, (a2, e) => {
22221
+ um = createSelector(K, O, (a2, e) => {
22213
22222
  for (let t in e) {
22214
22223
  let i = e[t];
22215
22224
  if (ri(i) && i.peerId)
22216
22225
  return a2[i.peerId];
22217
22226
  }
22218
22227
  });
22219
- nm = createSelector(Do, (a2) => a2.filter(ds));
22220
- cm = createSelector(zs, (a2) => a2.length);
22221
- dm = createSelector(fi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22222
- At = createSelector(zs, fi, (a2, e) => {
22228
+ pm = createSelector(Oo, (a2) => a2.filter(ds));
22229
+ hm = createSelector(Zs, (a2) => a2.length);
22230
+ mm = createSelector(fi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22231
+ At = createSelector(Zs, fi, (a2, e) => {
22223
22232
  let t = [];
22224
22233
  return a2.forEach((i) => {
22225
22234
  t.push(e[i]);
22226
22235
  }), t;
22227
22236
  });
22228
- Oo = createSelector(At, (a2) => a2.filter((e) => {
22237
+ Bo = createSelector(At, (a2) => a2.filter((e) => {
22229
22238
  var t;
22230
22239
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
22231
22240
  }));
22232
- lm = createSelector(Oo, (a2) => a2.filter((e) => !e.read).length);
22241
+ Sm = createSelector(Bo, (a2) => a2.filter((e) => !e.read).length);
22233
22242
  re = createSelector([V], (a2) => a2 && a2.roomState);
22234
- ea = createSelector(re, (a2) => a2 === "Preview");
22235
- um = createSelector(V, (a2) => a2.roomState !== "Disconnected");
22236
- pm = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22237
- fe = (a2) => a2.roles;
22238
- hm = createSelector([fe], (a2) => Object.keys(a2));
22239
- ot = createSelector([ie, fe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22240
- xo = (a2) => {
22243
+ ra = createSelector(re, (a2) => a2 === "Preview");
22244
+ gm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
22245
+ Tm = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22246
+ ve = (a2) => a2.roles;
22247
+ fm = createSelector([ve], (a2) => Object.keys(a2));
22248
+ at = createSelector([ie, ve], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22249
+ Vo = (a2) => {
22241
22250
  var e;
22242
22251
  return (e = a2.preview) == null ? void 0 : e.asRole;
22243
22252
  };
22244
- ta = createSelector([xo, fe], (a2, e) => a2 ? e[a2] : null);
22245
- mm = createSelector([ot], (a2) => {
22253
+ sa = createSelector([Vo, ve], (a2, e) => a2 ? e[a2] : null);
22254
+ vm = createSelector([at], (a2) => {
22246
22255
  var e;
22247
22256
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
22248
22257
  });
22249
- ia = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
22250
- Sm = createSelector(V, (a2) => a2.recording);
22251
- gm = createSelector(V, (a2) => a2.rtmp);
22252
- Tm = createSelector(V, (a2) => a2.hls);
22253
- fm = createSelector(V, (a2) => a2.transcriptions);
22254
- vm = createSelector(V, (a2) => a2.sessionId);
22255
- Mm = createSelector(V, (a2) => a2.startedAt);
22256
- ym = createSelector(V, (a2) => !!a2.isLargeRoom);
22257
- km = createSelector(V, (a2) => !!a2.isEffectsEnabled);
22258
- Pm = createSelector(V, (a2) => !!a2.isVBEnabled);
22259
- Em = createSelector(V, (a2) => a2.effectsKey);
22260
- ra = (a2) => a2.polls;
22261
- Am = createSelector(Te, (a2) => a2.filter((e) => e.isHandRaised));
22262
- Uo = (a2) => a2.whiteboards;
22263
- Hm = createSelector(Uo, (a2) => Object.values(a2)[0]);
22264
- aa = (a2 = "audio") => (e) => e.playlist[a2].list;
22258
+ aa = createSelector(at, (a2) => a2 == null ? void 0 : a2.permissions);
22259
+ Mm = createSelector(V, (a2) => a2.recording);
22260
+ ym = createSelector(V, (a2) => a2.rtmp);
22261
+ km = createSelector(V, (a2) => a2.hls);
22262
+ Em = createSelector(V, (a2) => a2.transcriptions);
22263
+ Pm = createSelector(V, (a2) => a2.sessionId);
22264
+ bm = createSelector(V, (a2) => a2.startedAt);
22265
+ Im = createSelector(V, (a2) => !!a2.isLargeRoom);
22266
+ Rm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
22267
+ Am = createSelector(V, (a2) => !!a2.isVBEnabled);
22268
+ Hm = createSelector(V, (a2) => a2.effectsKey);
22269
+ oa = (a2) => a2.polls;
22270
+ Dm = createSelector(fe, (a2) => a2.filter((e) => e.isHandRaised));
22271
+ Fo = (a2) => a2.whiteboards;
22272
+ _m = createSelector(Fo, (a2) => Object.values(a2)[0]);
22273
+ ca = (a2 = "audio") => (e) => e.playlist[a2].list;
22265
22274
  Wr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22266
- oa = (a2 = "audio") => (e) => e.playlist[a2].progress;
22267
- na = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22268
- ca = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22269
- da = (a2 = "audio") => (e) => e.playlist[a2].volume;
22270
- la = (a2 = "audio") => createSelector(aa(a2), (e) => Object.values(e));
22271
- ua = (a2 = "audio") => createSelector(aa(a2), Wr(a2), (e, t) => {
22275
+ da = (a2 = "audio") => (e) => e.playlist[a2].progress;
22276
+ la = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22277
+ ua = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22278
+ pa = (a2 = "audio") => (e) => e.playlist[a2].volume;
22279
+ ha = (a2 = "audio") => createSelector(ca(a2), (e) => Object.values(e));
22280
+ ma = (a2 = "audio") => createSelector(ca(a2), Wr(a2), (e, t) => {
22272
22281
  if (t.id)
22273
22282
  return e[t.id];
22274
22283
  });
22275
- pa = { selection: Wr("audio"), progress: oa("audio"), currentTime: na("audio"), playbackRate: ca("audio"), volume: da("audio"), list: la("audio"), selectedItem: ua("audio") };
22276
- ha = { selection: Wr("video"), progress: oa("video"), currentTime: na("video"), playbackRate: ca("video"), volume: da("video"), list: la("video"), selectedItem: ua("video") };
22284
+ Sa = { selection: Wr("audio"), progress: da("audio"), currentTime: la("audio"), playbackRate: ua("audio"), volume: pa("audio"), list: ha("audio"), selectedItem: ma("audio") };
22285
+ ga = { selection: Wr("video"), progress: da("video"), currentTime: la("video"), playbackRate: ua("video"), volume: pa("video"), list: ha("video"), selectedItem: ma("video") };
22277
22286
  Ht = "HMS-Store:";
22278
22287
  b = class {
22279
22288
  static v(e, ...t) {
@@ -22343,124 +22352,124 @@ var init_dist = __esm({
22343
22352
  b.level = 0;
22344
22353
  $r = (a2, e) => e;
22345
22354
  Ct = (a2, e) => e;
22346
- ma = (a2, e) => e;
22347
- Bo = (a2, e) => e;
22348
- Vo = (a2, e) => e;
22355
+ Ta = (a2, e) => e;
22356
+ Go = (a2, e) => e;
22357
+ Wo = (a2, e) => e;
22349
22358
  q = createSelector([K, $r], (a2, e) => e ? a2[e] : null);
22350
22359
  Kr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
22351
- Fo = createSelector([O, Ct], (a2, e) => {
22360
+ $o = createSelector([O, Ct], (a2, e) => {
22352
22361
  if (!e)
22353
22362
  return null;
22354
22363
  let t = a2[e];
22355
22364
  return (t == null ? void 0 : t.type) === "video" ? t : null;
22356
22365
  });
22357
- Go = createSelector([O, Ct], (a2, e) => {
22366
+ Ko = createSelector([O, Ct], (a2, e) => {
22358
22367
  if (!e)
22359
22368
  return null;
22360
22369
  let t = a2[e];
22361
22370
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
22362
22371
  });
22363
- Wo = createSelector([O, Ct], (a2, e) => {
22372
+ qo = createSelector([O, Ct], (a2, e) => {
22364
22373
  if (!e)
22365
22374
  return null;
22366
22375
  let t = a2[e];
22367
22376
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22368
22377
  });
22369
- $o = createSelector([O, Ct], (a2, e) => {
22378
+ jo = createSelector([O, Ct], (a2, e) => {
22370
22379
  if (!e)
22371
22380
  return null;
22372
22381
  let t = a2[e];
22373
22382
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22374
22383
  });
22375
- Ko = createSelector([ra, Vo], (a2, e) => e ? a2[e] : null);
22384
+ Jo = createSelector([oa, Wo], (a2, e) => e ? a2[e] : null);
22376
22385
  Y = A(q);
22377
- Vm = A(createSelector([Vr, Bo], (a2, e) => {
22386
+ Km = A(createSelector([Vr, Go], (a2, e) => {
22378
22387
  if (a2)
22379
22388
  return e ? a2[e] : a2;
22380
22389
  }));
22381
- Wm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
22382
- $m = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22390
+ Jm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
22391
+ Qm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22383
22392
  vi = A(Kr);
22384
- Sa = A(Fo);
22385
- Km = A(Go);
22386
- qm = A(Wo);
22387
- jm = A($o);
22388
- qo = A((a2, e) => {
22393
+ fa = A($o);
22394
+ zm = A(Ko);
22395
+ Ym = A(qo);
22396
+ Xm = A(jo);
22397
+ Qo = A((a2, e) => {
22389
22398
  let t = q(a2, e);
22390
22399
  if (t && t.videoTrack && t.videoTrack !== "")
22391
22400
  return a2.tracks[t.videoTrack];
22392
22401
  });
22393
- jo = A((a2, e) => {
22402
+ zo = A((a2, e) => {
22394
22403
  let t = q(a2, e);
22395
22404
  if (t && t.audioTrack && t.audioTrack !== "")
22396
22405
  return a2.tracks[t.audioTrack];
22397
22406
  });
22398
- Qm = A((a2, e) => {
22407
+ eS = A((a2, e) => {
22399
22408
  let t = q(a2, e);
22400
22409
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22401
22410
  });
22402
- ga = (a2, e) => e ? a2.speakers[e] : null;
22403
- zm = A(createSelector(ga, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22404
- Jo = (a2, e) => {
22405
- let t = jo(e)(a2);
22406
- return ga(a2, t == null ? void 0 : t.id);
22407
- };
22408
- Ym = A(createSelector(Jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22409
- Xm = A((a2, e) => {
22411
+ va = (a2, e) => e ? a2.speakers[e] : null;
22412
+ tS = A(createSelector(va, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22413
+ Yo = (a2, e) => {
22414
+ let t = zo(e)(a2);
22415
+ return va(a2, t == null ? void 0 : t.id);
22416
+ };
22417
+ iS = A(createSelector(Yo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22418
+ rS = A((a2, e) => {
22410
22419
  if (e)
22411
22420
  return a2.connectionQualities[e];
22412
22421
  });
22413
- Zm = A((a2, e) => {
22422
+ sS = A((a2, e) => {
22414
22423
  let t = q(a2, e);
22415
22424
  if (t) {
22416
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
22425
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => pt(a2.tracks[r]));
22417
22426
  return i ? a2.tracks[i] : void 0;
22418
22427
  }
22419
22428
  });
22420
- eS = A(createSelector(O, q, (a2, e) => {
22429
+ aS = A(createSelector(O, q, (a2, e) => {
22421
22430
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22422
22431
  let r = a2[i];
22423
- return St(r) && mt(r);
22432
+ return mt(r) && ht(r);
22424
22433
  });
22425
22434
  return t ? a2[t] : void 0;
22426
22435
  }));
22427
- tS = A(createSelector(O, q, (a2, e) => {
22436
+ oS = A(createSelector(O, q, (a2, e) => {
22428
22437
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22429
22438
  let r = a2[i];
22430
- return St(r) && ht(r);
22439
+ return mt(r) && pt(r);
22431
22440
  });
22432
22441
  return t ? a2[t] : void 0;
22433
22442
  }));
22434
- iS = A(createSelector(O, q, (a2, e) => {
22443
+ nS = A(createSelector(O, q, (a2, e) => {
22435
22444
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22436
22445
  let r = a2[i];
22437
- return ri(r) && ht(r);
22446
+ return ri(r) && pt(r);
22438
22447
  });
22439
22448
  return t ? a2[t] : void 0;
22440
22449
  }));
22441
- Ta = A(createSelector(O, q, (a2, e) => Be(a2, e)));
22442
- fa = (a2) => createSelector(Ta(a2), (e) => e.audio);
22443
- sS = A((a2, e) => {
22450
+ Ma = A(createSelector(O, q, (a2, e) => Ue(a2, e)));
22451
+ ya = (a2) => createSelector(Ma(a2), (e) => e.audio);
22452
+ dS = A((a2, e) => {
22444
22453
  let t = q(a2, e);
22445
- return Je(a2, t == null ? void 0 : t.audioTrack);
22454
+ return je(a2, t == null ? void 0 : t.audioTrack);
22446
22455
  });
22447
- aS = A((a2, e) => {
22456
+ lS = A((a2, e) => {
22448
22457
  let t = q(a2, e);
22449
- return Je(a2, t == null ? void 0 : t.videoTrack);
22458
+ return je(a2, t == null ? void 0 : t.videoTrack);
22450
22459
  });
22451
- va = A((a2, e) => {
22460
+ ka = A((a2, e) => {
22452
22461
  if (e && a2.tracks[e])
22453
22462
  return a2.tracks[e].volume === 0;
22454
22463
  });
22455
- oS = A((a2, e) => {
22464
+ uS = A((a2, e) => {
22456
22465
  let t = q(a2, e);
22457
- return va(t == null ? void 0 : t.audioTrack)(a2);
22466
+ return ka(t == null ? void 0 : t.audioTrack)(a2);
22458
22467
  });
22459
- nS = A((a2, e) => {
22460
- let t = fa(e)(a2);
22461
- return va(t == null ? void 0 : t.id)(a2);
22468
+ pS = A((a2, e) => {
22469
+ let t = ya(e)(a2);
22470
+ return ka(t == null ? void 0 : t.id)(a2);
22462
22471
  });
22463
- Ma = A((a2, e) => {
22472
+ Ea = A((a2, e) => {
22464
22473
  let t = Kr(a2, e);
22465
22474
  if (t) {
22466
22475
  if (t.type !== "audio") {
@@ -22470,15 +22479,15 @@ var init_dist = __esm({
22470
22479
  return t.volume;
22471
22480
  }
22472
22481
  });
22473
- cS = A((a2, e) => {
22482
+ hS = A((a2, e) => {
22474
22483
  let t = q(a2, e);
22475
- return Ma(t == null ? void 0 : t.audioTrack)(a2);
22484
+ return Ea(t == null ? void 0 : t.audioTrack)(a2);
22476
22485
  });
22477
- dS = A((a2, e) => {
22478
- let t = fa(e)(a2);
22479
- return Ma(t == null ? void 0 : t.id)(a2);
22486
+ mS = A((a2, e) => {
22487
+ let t = ya(e)(a2);
22488
+ return Ea(t == null ? void 0 : t.id)(a2);
22480
22489
  });
22481
- lS = A((a2, e) => {
22490
+ SS = A((a2, e) => {
22482
22491
  let t = Kr(a2, e);
22483
22492
  if (t) {
22484
22493
  if (t.type !== "video") {
@@ -22488,53 +22497,53 @@ var init_dist = __esm({
22488
22497
  return t.layer;
22489
22498
  }
22490
22499
  });
22491
- ya = createSelector([At, Ee, $r], (a2, e, t) => {
22500
+ Pa = createSelector([At, Ee, $r], (a2, e, t) => {
22492
22501
  if (t)
22493
22502
  return a2.filter((i) => {
22494
22503
  var r;
22495
22504
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22496
22505
  });
22497
22506
  });
22498
- ka = createSelector([At, ma], (a2, e) => {
22507
+ ba = createSelector([At, Ta], (a2, e) => {
22499
22508
  if (e)
22500
22509
  return a2.filter((t) => {
22501
22510
  var i, r;
22502
22511
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22503
22512
  });
22504
22513
  });
22505
- Qo = createSelector(At, (a2) => a2.filter((e) => {
22514
+ Xo = createSelector(At, (a2) => a2.filter((e) => {
22506
22515
  var t;
22507
22516
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22508
22517
  }));
22509
- zo = createSelector([ka, ma], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22510
- Yo = createSelector([ya, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22511
- uS = createSelector(Qo, (a2) => a2.filter((e) => !e.read).length);
22512
- pS = A(ya);
22513
- hS = A(ka);
22514
- mS = A(zo);
22515
- SS = A(Yo);
22516
- Pa = A(Ko);
22517
- RS = createSelector([K, O], (a2, e) => Object.values(a2).map((i) => {
22518
+ Zo = createSelector([ba, Ta], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22519
+ en = createSelector([Pa, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22520
+ gS = createSelector(Xo, (a2) => a2.filter((e) => !e.read).length);
22521
+ TS = A(Pa);
22522
+ fS = A(ba);
22523
+ vS = A(Zo);
22524
+ MS = A(en);
22525
+ Ia = A(Jo);
22526
+ wS = createSelector([K, O], (a2, e) => Object.values(a2).map((i) => {
22518
22527
  var r;
22519
22528
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22520
22529
  }));
22521
- Xo = (a2) => a2.roleChangeRequests[0] || null;
22522
- AS = createSelector([Xo, K, fe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22523
- HS = createSelector([ot], (a2) => gt(a2));
22524
- CS = createSelector([ta], (a2) => gt(a2));
22525
- en = createSelector([z, O], (a2, e) => {
22530
+ tn = (a2) => a2.roleChangeRequests[0] || null;
22531
+ DS = createSelector([tn, K, ve], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22532
+ _S = createSelector([at], (a2) => St(a2));
22533
+ NS = createSelector([sa], (a2) => St(a2));
22534
+ sn = createSelector([z, O], (a2, e) => {
22526
22535
  let t = null;
22527
22536
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22528
22537
  });
22529
- tn = createSelector([oe, O], (a2, e) => {
22538
+ an = createSelector([oe, O], (a2, e) => {
22530
22539
  let t = null;
22531
22540
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22532
22541
  });
22533
- an = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(an || {});
22542
+ cn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(cn || {});
22534
22543
  zr = class {
22535
22544
  constructor() {
22536
22545
  this.TAG = "[HTTPAnalyticsTransport]";
22537
- this.failedEvents = new he("client-events");
22546
+ this.failedEvents = new me("client-events");
22538
22547
  this.isConnected = true;
22539
22548
  this.env = null;
22540
22549
  this.websocketURL = "";
@@ -22550,7 +22559,7 @@ var init_dist = __esm({
22550
22559
  this.addEventToStorage(e);
22551
22560
  return;
22552
22561
  }
22553
- 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" ? Vs : Fs;
22562
+ 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" ? Ws : $s;
22554
22563
  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) => {
22555
22564
  if (r.status === 401) {
22556
22565
  this.removeFromStorage(e);
@@ -22576,66 +22585,66 @@ var init_dist = __esm({
22576
22585
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22577
22586
  }
22578
22587
  };
22579
- Ie = new zr();
22588
+ be = new zr();
22580
22589
  j = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(j || {});
22581
22590
  ir = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(ir || {});
22582
- ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
22583
- En = (a2) => a2.localPeer.id;
22584
- bn = (a2) => a2.localPeer.audioTrack;
22585
- In = (a2) => a2.localPeer.videoTrack;
22586
- Rn = (a2, e) => e;
22587
- qa = (a2, e) => e;
22588
- An = (a2) => a2.remoteTrackStats;
22589
- ja = (a2) => a2.peerStats;
22591
+ lt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lt || {});
22592
+ Rn = (a2) => a2.localPeer.id;
22593
+ An = (a2) => a2.localPeer.audioTrack;
22594
+ Hn = (a2) => a2.localPeer.videoTrack;
22595
+ Cn = (a2, e) => e;
22596
+ Qa = (a2, e) => e;
22597
+ Ln = (a2) => a2.remoteTrackStats;
22598
+ za = (a2) => a2.peerStats;
22590
22599
  ts = (a2) => a2.localTrackStats;
22591
- Ae = createSelector([ja, En], (a2, e) => a2[e]);
22592
- Hn = createSelector(Ae, (a2) => {
22600
+ Re = createSelector([za, Rn], (a2, e) => a2[e]);
22601
+ wn = createSelector(Re, (a2) => {
22593
22602
  var e;
22594
22603
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22595
22604
  });
22596
- Cn = createSelector(Ae, (a2) => {
22605
+ Dn = createSelector(Re, (a2) => {
22597
22606
  var e;
22598
22607
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22599
22608
  });
22600
- Ln = createSelector(Ae, (a2) => {
22609
+ _n = createSelector(Re, (a2) => {
22601
22610
  var e;
22602
22611
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22603
22612
  });
22604
- wn = createSelector(Ae, (a2) => {
22613
+ Nn = createSelector(Re, (a2) => {
22605
22614
  var e;
22606
22615
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22607
22616
  });
22608
- Dn = createSelector(Ae, (a2) => {
22617
+ On = createSelector(Re, (a2) => {
22609
22618
  var e;
22610
22619
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22611
22620
  });
22612
- _n = createSelector(Ae, (a2) => {
22621
+ xn = createSelector(Re, (a2) => {
22613
22622
  var e;
22614
22623
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22615
22624
  });
22616
- Nn = createSelector(Ae, (a2) => {
22625
+ Un = createSelector(Re, (a2) => {
22617
22626
  var e;
22618
22627
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22619
22628
  });
22620
- On = createSelector(Ae, (a2) => {
22629
+ Bn = createSelector(Re, (a2) => {
22621
22630
  var e;
22622
22631
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22623
22632
  });
22624
- xn = createSelector([ja, Rn], (a2, e) => e ? a2[e] : void 0);
22625
- Un = createSelector([An, qa], (a2, e) => e ? a2[e] : void 0);
22626
- is = createSelector([ts, qa], (a2, e) => e ? a2[e] : void 0);
22627
- Bn = A(xn);
22628
- Vn = A(Un);
22629
- Fn = createSelector([ts, bn], (a2, e) => {
22633
+ Vn = createSelector([za, Cn], (a2, e) => e ? a2[e] : void 0);
22634
+ Fn = createSelector([Ln, Qa], (a2, e) => e ? a2[e] : void 0);
22635
+ is = createSelector([ts, Qa], (a2, e) => e ? a2[e] : void 0);
22636
+ Gn = A(Vn);
22637
+ Wn = A(Fn);
22638
+ $n = createSelector([ts, An], (a2, e) => {
22630
22639
  var t;
22631
22640
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22632
22641
  });
22633
- Gn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
22634
- Wn = createSelector([ts, In], (a2, e) => {
22642
+ Kn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
22643
+ qn = createSelector([ts, Hn], (a2, e) => {
22635
22644
  var t;
22636
22645
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22637
22646
  });
22638
- $n = A(createSelector(is, (a2) => a2));
22647
+ jn = A(createSelector(is, (a2) => a2));
22639
22648
  }
22640
22649
  });
22641
22650
 
@@ -22760,7 +22769,7 @@ var init_StreamActions = __esm({
22760
22769
  };
22761
22770
  RecordingPauseStatus = () => {
22762
22771
  const recording = (0, import_react_sdk40.useHMSStore)(import_react_sdk40.selectRecordingState);
22763
- if (recording.hls && recording.hls.state === Rs.PAUSED) {
22772
+ if (recording.hls && recording.hls.state === Cs.PAUSED) {
22764
22773
  return /* @__PURE__ */ import_react88.default.createElement(
22765
22774
  Tooltip,
22766
22775
  {
@@ -24018,17 +24027,19 @@ var init_ScreenShareToggle = __esm({
24018
24027
  });
24019
24028
 
24020
24029
  // src/Prebuilt/components/VirtualBackground/VBToggle.tsx
24021
- var import_react103, import_react_sdk47, import_react_icons42, VBToggle;
24030
+ var import_react103, import_hms_virtual_background2, import_react_sdk47, import_react_icons42, VBToggle;
24022
24031
  var init_VBToggle = __esm({
24023
24032
  "src/Prebuilt/components/VirtualBackground/VBToggle.tsx"() {
24024
24033
  "use strict";
24025
24034
  init_define_process_env();
24026
24035
  import_react103 = __toESM(require("react"));
24036
+ import_hms_virtual_background2 = require("@100mslive/hms-virtual-background");
24027
24037
  import_react_sdk47 = require("@100mslive/react-sdk");
24028
24038
  import_react_icons42 = require("@100mslive/react-icons");
24029
24039
  init_Loading2();
24030
24040
  init_Tooltip2();
24031
24041
  init_IconButton3();
24042
+ init_VBHandler();
24032
24043
  init_useSidepane();
24033
24044
  init_constants();
24034
24045
  VBToggle = () => {
@@ -24038,6 +24049,15 @@ var init_VBToggle = __esm({
24038
24049
  const isVBEnabled = (0, import_react_sdk47.useHMSStore)(import_react_sdk47.selectIsVBEnabled);
24039
24050
  const isEffectsEnabled = (0, import_react_sdk47.useHMSStore)(import_react_sdk47.selectIsEffectsEnabled);
24040
24051
  const loadingEffects = (0, import_react_sdk47.useHMSStore)((0, import_react_sdk47.selectAppData)(APP_DATA.loadingEffects));
24052
+ const hmsActions = (0, import_react_sdk47.useHMSActions)();
24053
+ const { toggleVideo } = (0, import_react_sdk47.useAVToggle)();
24054
+ (0, import_react103.useEffect)(() => {
24055
+ var _a7;
24056
+ if (!toggleVideo) {
24057
+ (_a7 = VBHandler) == null ? void 0 : _a7.reset();
24058
+ hmsActions.setAppData(APP_DATA.background, import_hms_virtual_background2.HMSVirtualBackgroundTypes.NONE);
24059
+ }
24060
+ }, [hmsActions, toggleVideo]);
24041
24061
  if (!isVideoOn || !isEffectsEnabled && isSafari || !isVBEnabled) {
24042
24062
  return null;
24043
24063
  }
@@ -28147,7 +28167,7 @@ var init_Chat = __esm({
28147
28167
  const listRef = (0, import_react153.useRef)(null);
28148
28168
  const hmsActions = (0, import_react_sdk73.useHMSActions)();
28149
28169
  const vanillaStore = (0, import_react_sdk73.useHMSVanillaStore)();
28150
- const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)(Fm("chatState" /* CHAT_STATE */)) || {};
28170
+ const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)(qm("chatState" /* CHAT_STATE */)) || {};
28151
28171
  const isMobile = (0, import_react_use26.useMedia)(config.media.md);
28152
28172
  const isMobileHLSStream = useMobileHLSStream();
28153
28173
  const isLandscapeStream = useLandscapeHLSStream();
@@ -28237,7 +28257,7 @@ var init_Chat = __esm({
28237
28257
  scrollToBottom,
28238
28258
  listRef
28239
28259
  }) => {
28240
- const unreadCount = (0, import_react_sdk73.useHMSStore)(dm);
28260
+ const unreadCount = (0, import_react_sdk73.useHMSStore)(mm);
28241
28261
  if (!unreadCount || !listRef.current) {
28242
28262
  return null;
28243
28263
  }
@@ -29285,13 +29305,13 @@ var init_VBOption = __esm({
29285
29305
  });
29286
29306
 
29287
29307
  // src/Prebuilt/components/VirtualBackground/VBCollection.tsx
29288
- var import_react162, import_hms_virtual_background2, VBCollection;
29308
+ var import_react162, import_hms_virtual_background3, VBCollection;
29289
29309
  var init_VBCollection = __esm({
29290
29310
  "src/Prebuilt/components/VirtualBackground/VBCollection.tsx"() {
29291
29311
  "use strict";
29292
29312
  init_define_process_env();
29293
29313
  import_react162 = __toESM(require("react"));
29294
- import_hms_virtual_background2 = require("@100mslive/hms-virtual-background");
29314
+ import_hms_virtual_background3 = require("@100mslive/hms-virtual-background");
29295
29315
  init_Layout();
29296
29316
  init_Text2();
29297
29317
  init_VBOption();
@@ -29308,7 +29328,7 @@ var init_VBCollection = __esm({
29308
29328
  VBOption.Root,
29309
29329
  __spreadProps(__spreadValues({
29310
29330
  key: option.value,
29311
- testid: option.value === import_hms_virtual_background2.HMSVirtualBackgroundTypes.IMAGE ? `virtual_bg_option-${index}` : option.value
29331
+ testid: option.value === import_hms_virtual_background3.HMSVirtualBackgroundTypes.IMAGE ? `virtual_bg_option-${index}` : option.value
29312
29332
  }, option), {
29313
29333
  isActive: activeBackground === option.value
29314
29334
  }),
@@ -29321,7 +29341,7 @@ var init_VBCollection = __esm({
29321
29341
  });
29322
29342
 
29323
29343
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
29324
- var import_react163, import_react_use32, import_hms_virtual_background3, import_react_sdk82, import_react_icons79, iconDims, VBPicker;
29344
+ var import_react163, import_react_use32, import_hms_virtual_background4, import_react_sdk82, import_react_icons79, iconDims, VBPicker;
29325
29345
  var init_VBPicker = __esm({
29326
29346
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx"() {
29327
29347
  "use strict";
@@ -29329,7 +29349,7 @@ var init_VBPicker = __esm({
29329
29349
  import_react163 = __toESM(require("react"));
29330
29350
  import_react_use32 = require("react-use");
29331
29351
  init_dist();
29332
- import_hms_virtual_background3 = require("@100mslive/hms-virtual-background");
29352
+ import_hms_virtual_background4 = require("@100mslive/hms-virtual-background");
29333
29353
  import_react_sdk82 = require("@100mslive/react-sdk");
29334
29354
  import_react_icons79 = require("@100mslive/react-icons");
29335
29355
  init_src();
@@ -29347,7 +29367,7 @@ var init_VBPicker = __esm({
29347
29367
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
29348
29368
  const hmsActions = (0, import_react_sdk82.useHMSActions)();
29349
29369
  const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
29350
- const role = (0, import_react_sdk82.useHMSStore)(ot);
29370
+ const role = (0, import_react_sdk82.useHMSStore)(at);
29351
29371
  const isVideoOn = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLocalVideoEnabled);
29352
29372
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
29353
29373
  const trackSelector = (0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -29356,12 +29376,12 @@ var init_VBPicker = __esm({
29356
29376
  const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
29357
29377
  const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
29358
29378
  const [isBlurSupported, setIsBlurSupported] = (0, import_react163.useState)(false);
29359
- const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(km);
29360
- const effectsKey = (0, import_react_sdk82.useHMSStore)(Em);
29379
+ const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(Rm);
29380
+ const effectsKey = (0, import_react_sdk82.useHMSStore)(Hm);
29361
29381
  const isMobile = (0, import_react_use32.useMedia)(config.media.md);
29362
29382
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
29363
29383
  const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
29364
- const background = (0, import_react_sdk82.useHMSStore)(Vm(APP_DATA.background));
29384
+ const background = (0, import_react_sdk82.useHMSStore)(Km(APP_DATA.background));
29365
29385
  const mediaList = backgroundMedia.map((media) => media.url || "");
29366
29386
  const inPreview = roomState === import_react_sdk82.HMSRoomState.Preview;
29367
29387
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -29390,10 +29410,10 @@ var init_VBPicker = __esm({
29390
29410
  }
29391
29411
  const handleDefaultBackground = () => __async(void 0, null, function* () {
29392
29412
  switch (background) {
29393
- case import_hms_virtual_background3.HMSVirtualBackgroundTypes.NONE: {
29413
+ case import_hms_virtual_background4.HMSVirtualBackgroundTypes.NONE: {
29394
29414
  break;
29395
29415
  }
29396
- case import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR: {
29416
+ case import_hms_virtual_background4.HMSVirtualBackgroundTypes.BLUR: {
29397
29417
  yield VBHandler.setBlur(blurAmount);
29398
29418
  break;
29399
29419
  }
@@ -29455,21 +29475,21 @@ var init_VBPicker = __esm({
29455
29475
  {
29456
29476
  title: "No effect",
29457
29477
  icon: /* @__PURE__ */ import_react163.default.createElement(import_react_icons79.CrossCircleIcon, { style: iconDims }),
29458
- value: import_hms_virtual_background3.HMSVirtualBackgroundTypes.NONE,
29478
+ value: import_hms_virtual_background4.HMSVirtualBackgroundTypes.NONE,
29459
29479
  onClick: () => __async(void 0, null, function* () {
29460
29480
  yield VBHandler.removeEffects();
29461
- hmsActions.setAppData(APP_DATA.background, import_hms_virtual_background3.HMSVirtualBackgroundTypes.NONE);
29481
+ hmsActions.setAppData(APP_DATA.background, import_hms_virtual_background4.HMSVirtualBackgroundTypes.NONE);
29462
29482
  }),
29463
29483
  supported: true
29464
29484
  },
29465
29485
  {
29466
29486
  title: "Blur",
29467
29487
  icon: /* @__PURE__ */ import_react163.default.createElement(import_react_icons79.BlurPersonHighIcon, { style: iconDims }),
29468
- value: import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR,
29488
+ value: import_hms_virtual_background4.HMSVirtualBackgroundTypes.BLUR,
29469
29489
  onClick: () => __async(void 0, null, function* () {
29470
29490
  var _a8;
29471
29491
  yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
29472
- hmsActions.setAppData(APP_DATA.background, import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR);
29492
+ hmsActions.setAppData(APP_DATA.background, import_hms_virtual_background4.HMSVirtualBackgroundTypes.BLUR);
29473
29493
  }),
29474
29494
  supported: isBlurSupported
29475
29495
  }
@@ -29477,7 +29497,7 @@ var init_VBPicker = __esm({
29477
29497
  activeBackground: background
29478
29498
  }
29479
29499
  ),
29480
- /* @__PURE__ */ import_react163.default.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ import_react163.default.createElement(Box, null, /* @__PURE__ */ import_react163.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ import_react163.default.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ import_react163.default.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ import_react163.default.createElement(
29500
+ /* @__PURE__ */ import_react163.default.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === import_hms_virtual_background4.HMSVirtualBackgroundTypes.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ import_react163.default.createElement(Box, null, /* @__PURE__ */ import_react163.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ import_react163.default.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ import_react163.default.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ import_react163.default.createElement(
29481
29501
  Slider,
29482
29502
  {
29483
29503
  showTooltip: false,
@@ -31289,9 +31309,9 @@ var init_ScreenshareLayout = __esm({
31289
31309
  }
31290
31310
  });
31291
31311
 
31292
- // ../../../../../../../tmp/tmp-2832-38GPntQAfPzT/1916e2c4b1f0/index.css
31293
- var init_e2c4b1f0 = __esm({
31294
- "../../../../../../../tmp/tmp-2832-38GPntQAfPzT/1916e2c4b1f0/index.css"() {
31312
+ // ../../../../../../../tmp/tmp-2790-UYZDfK0Vw0WG/19197fbfd7f1/index.css
31313
+ var init_fbfd7f1 = __esm({
31314
+ "../../../../../../../tmp/tmp-2790-UYZDfK0Vw0WG/19197fbfd7f1/index.css"() {
31295
31315
  }
31296
31316
  });
31297
31317
 
@@ -31313,7 +31333,7 @@ var init_WhiteboardLayout = __esm({
31313
31333
  init_ProminenceLayout();
31314
31334
  init_useUISettings();
31315
31335
  init_constants();
31316
- init_e2c4b1f0();
31336
+ init_fbfd7f1();
31317
31337
  WhiteboardEmbed = () => {
31318
31338
  const isMobile = (0, import_react_use44.useMedia)(config.media.md);
31319
31339
  const { token, endpoint, zoomToContent } = (0, import_react_sdk94.useWhiteboard)(isMobile);
@@ -35589,7 +35609,7 @@ function Notifications() {
35589
35609
  }, []);
35590
35610
  (0, import_react_sdk121.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
35591
35611
  (0, import_react231.useEffect)(() => {
35592
- var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
35612
+ var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p, _q;
35593
35613
  if (!notification || isNotificationDisabled) {
35594
35614
  return;
35595
35615
  }
@@ -35630,7 +35650,7 @@ function Notifications() {
35630
35650
  });
35631
35651
  break;
35632
35652
  case import_react_sdk121.HMSNotificationTypes.ROLE_UPDATED: {
35633
- if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
35653
+ if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
35634
35654
  ToastManager.addToast({
35635
35655
  title: `You are now a ${notification.data.roleName}`
35636
35656
  });
@@ -36844,25 +36864,25 @@ var require_object_assign = __commonJS({
36844
36864
  }
36845
36865
  module2.exports = shouldUseNative() ? Object.assign : function(target, source) {
36846
36866
  var from;
36847
- var to2 = toObject(target);
36867
+ var to = toObject(target);
36848
36868
  var symbols;
36849
36869
  for (var s = 1; s < arguments.length; s++) {
36850
36870
  from = Object(arguments[s]);
36851
36871
  for (var key in from) {
36852
36872
  if (hasOwnProperty.call(from, key)) {
36853
- to2[key] = from[key];
36873
+ to[key] = from[key];
36854
36874
  }
36855
36875
  }
36856
36876
  if (getOwnPropertySymbols) {
36857
36877
  symbols = getOwnPropertySymbols(from);
36858
36878
  for (var i = 0; i < symbols.length; i++) {
36859
36879
  if (propIsEnumerable.call(from, symbols[i])) {
36860
- to2[symbols[i]] = from[symbols[i]];
36880
+ to[symbols[i]] = from[symbols[i]];
36861
36881
  }
36862
36882
  }
36863
36883
  }
36864
36884
  }
36865
- return to2;
36885
+ return to;
36866
36886
  };
36867
36887
  }
36868
36888
  });