@100mslive/roomkit-react 0.3.24-alpha.5 → 0.3.24-alpha.7
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +14 -16
- package/dist/Footer/Footer.d.ts +4 -4
- package/dist/Input/Input.d.ts +3 -3
- package/dist/Layout/Flex.d.ts +1 -1
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +542 -511
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +576 -537
- package/dist/index.js.map +4 -4
- package/dist/meta.cjs.json +47 -42
- package/dist/meta.esbuild.json +47 -42
- package/package.json +7 -7
- package/src/Layout/Flex.tsx +1 -1
- package/src/Prebuilt/App.tsx +0 -2
- package/src/Prebuilt/AppStateContext.tsx +3 -1
- package/src/Prebuilt/components/AuthToken.tsx +2 -2
- package/src/Prebuilt/components/ErrorBoundary.jsx +2 -2
- package/src/Prebuilt/components/Notifications/DeviceInUseError.tsx +12 -5
- package/src/Prebuilt/components/Notifications/PermissionErrorModal.tsx +14 -6
- package/src/Prebuilt/components/VideoLayouts/Grid.tsx +1 -1
- package/src/Prebuilt/components/hooks/useTileLayout.tsx +4 -5
package/dist/index.js
CHANGED
@@ -34,8 +34,8 @@ var __objRest = (source, exclude) => {
|
|
34
34
|
}
|
35
35
|
return target;
|
36
36
|
};
|
37
|
-
var __esm = (
|
38
|
-
return
|
37
|
+
var __esm = (fn, res) => function __init() {
|
38
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
39
39
|
};
|
40
40
|
var __commonJS = (cb, mod) => function __require() {
|
41
41
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
|
|
107
107
|
var define_process_env_default;
|
108
108
|
var init_define_process_env = __esm({
|
109
109
|
"<define:process.env>"() {
|
110
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_0d684096-4e1e-4f67-89ae-f5d3a4e09794", 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.14-alpha.5", 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.24-alpha.5", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_0d684096-4e1e-4f67-89ae-f5d3a4e09794", 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.24-alpha.5", 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.12", 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.3.1-1", 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.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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: "600", 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", 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: "20241015.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.8/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", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.2/x64", JOURNAL_STREAM: "8:19043", 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.24-alpha.5", 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: "11590149060", 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: "dc498407583217b11dc845e391849808c2ace147", 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: "e8e84182bdff362a7cf5c82c877f4e938d5dacf319b0b9c2fdd714bbb9ea9118", 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--1730279854036-0.6570051956995928:/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--1730279853842-0.5818758499451946:/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--1730279827827-0.9452825086184646:/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--1730279827630-0.5069661722492098:/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_f3ee65c1-a5f7-463f-9dcd-2343662d78a2", INVOCATION_ID: "194b37312d054387aa04c5e61eaa2a3b", 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: "694", 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 424", 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.1.12297006", 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.24-alpha.5", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.24-alpha.5", 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: "dc498407583217b11dc845e391849808c2ace147", 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_0d684096-4e1e-4f67-89ae-f5d3a4e09794", 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_0d684096-4e1e-4f67-89ae-f5d3a4e09794", 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.1.12297006", 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-latest/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.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_0d684096-4e1e-4f67-89ae-f5d3a4e09794" };
|
110
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_7a17de2e-07aa-4303-8ec9-3d92727d77de", 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.14-alpha.7", 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.24-alpha.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_7a17de2e-07aa-4303-8ec9-3d92727d77de", 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.24-alpha.7", 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.12", 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.3.1-1", 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.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", 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: "599", 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", 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: "20241103.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.8/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", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.2/x64", JOURNAL_STREAM: "8:2897", 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.24-alpha.7", 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: "11738061874", 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: "8198b4df726edf43ed865408a68720e9bd4c9174", 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: "b3e38936062f736b1755e361528fd637af70896075b465c2af7b9ae2baa8b1ea", 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--1731051711280-0.23112375604806168:/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--1731051711062-0.9277880194988062:/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--1731051685192-0.5939408448137236:/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--1731051685005-0.3463791921501622:/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_b5fd924e-668b-4ecd-b572-457edb96a6f1", INVOCATION_ID: "bd0c350c90b14cb28326e75b624e1afb", 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: "697", 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 400", 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.2.12479018", 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.24-alpha.7", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.24-alpha.7", 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: "8198b4df726edf43ed865408a68720e9bd4c9174", 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_7a17de2e-07aa-4303-8ec9-3d92727d77de", 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_7a17de2e-07aa-4303-8ec9-3d92727d77de", 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.2.12479018", 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://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/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.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_7a17de2e-07aa-4303-8ec9-3d92727d77de" };
|
111
111
|
}
|
112
112
|
});
|
113
113
|
|
@@ -2286,8 +2286,8 @@ var require_lodash = __commonJS({
|
|
2286
2286
|
function createBind(func, bitmask, thisArg) {
|
2287
2287
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
2288
2288
|
function wrapper() {
|
2289
|
-
var
|
2290
|
-
return
|
2289
|
+
var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
|
2290
|
+
return fn.apply(isBind ? thisArg : this, arguments);
|
2291
2291
|
}
|
2292
2292
|
return wrapper;
|
2293
2293
|
}
|
@@ -2353,8 +2353,8 @@ var require_lodash = __commonJS({
|
|
2353
2353
|
arity - length
|
2354
2354
|
);
|
2355
2355
|
}
|
2356
|
-
var
|
2357
|
-
return apply(
|
2356
|
+
var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
|
2357
|
+
return apply(fn, this, args);
|
2358
2358
|
}
|
2359
2359
|
return wrapper;
|
2360
2360
|
}
|
@@ -2442,7 +2442,7 @@ var require_lodash = __commonJS({
|
|
2442
2442
|
arity - length
|
2443
2443
|
);
|
2444
2444
|
}
|
2445
|
-
var thisBinding = isBind ? thisArg : this,
|
2445
|
+
var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func;
|
2446
2446
|
length = args.length;
|
2447
2447
|
if (argPos) {
|
2448
2448
|
args = reorder(args, argPos);
|
@@ -2453,9 +2453,9 @@ var require_lodash = __commonJS({
|
|
2453
2453
|
args.length = ary2;
|
2454
2454
|
}
|
2455
2455
|
if (this && this !== root && this instanceof wrapper) {
|
2456
|
-
|
2456
|
+
fn = Ctor || createCtor(fn);
|
2457
2457
|
}
|
2458
|
-
return
|
2458
|
+
return fn.apply(thisBinding, args);
|
2459
2459
|
}
|
2460
2460
|
return wrapper;
|
2461
2461
|
}
|
@@ -2512,14 +2512,14 @@ var require_lodash = __commonJS({
|
|
2512
2512
|
function createPartial(func, bitmask, thisArg, partials) {
|
2513
2513
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
2514
2514
|
function wrapper() {
|
2515
|
-
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength),
|
2515
|
+
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func;
|
2516
2516
|
while (++leftIndex < leftLength) {
|
2517
2517
|
args[leftIndex] = partials[leftIndex];
|
2518
2518
|
}
|
2519
2519
|
while (argsLength--) {
|
2520
2520
|
args[leftIndex++] = arguments[++argsIndex];
|
2521
2521
|
}
|
2522
|
-
return apply(
|
2522
|
+
return apply(fn, isBind ? thisArg : this, args);
|
2523
2523
|
}
|
2524
2524
|
return wrapper;
|
2525
2525
|
}
|
@@ -4149,7 +4149,7 @@ var require_lodash = __commonJS({
|
|
4149
4149
|
function eq(value, other) {
|
4150
4150
|
return value === other || value !== value && other !== other;
|
4151
4151
|
}
|
4152
|
-
var
|
4152
|
+
var gt2 = createRelationalOperation(baseGt);
|
4153
4153
|
var gte = createRelationalOperation(function(value, other) {
|
4154
4154
|
return value >= other;
|
4155
4155
|
});
|
@@ -4291,7 +4291,7 @@ var require_lodash = __commonJS({
|
|
4291
4291
|
function isWeakSet(value) {
|
4292
4292
|
return isObjectLike(value) && baseGetTag(value) == weakSetTag;
|
4293
4293
|
}
|
4294
|
-
var
|
4294
|
+
var lt = createRelationalOperation(baseLt);
|
4295
4295
|
var lte = createRelationalOperation(function(value, other) {
|
4296
4296
|
return value <= other;
|
4297
4297
|
});
|
@@ -4373,7 +4373,7 @@ var require_lodash = __commonJS({
|
|
4373
4373
|
var assignWith = createAssigner(function(object, source, srcIndex, customizer2) {
|
4374
4374
|
copyObject(source, keys(source), object, customizer2);
|
4375
4375
|
});
|
4376
|
-
var
|
4376
|
+
var at = flatRest(baseAt);
|
4377
4377
|
function create(prototype, properties) {
|
4378
4378
|
var result2 = baseCreate(prototype);
|
4379
4379
|
return properties == null ? result2 : baseAssign(result2, properties);
|
@@ -5107,7 +5107,7 @@ var require_lodash = __commonJS({
|
|
5107
5107
|
lodash.assignIn = assignIn;
|
5108
5108
|
lodash.assignInWith = assignInWith;
|
5109
5109
|
lodash.assignWith = assignWith;
|
5110
|
-
lodash.at =
|
5110
|
+
lodash.at = at;
|
5111
5111
|
lodash.before = before;
|
5112
5112
|
lodash.bind = bind;
|
5113
5113
|
lodash.bindAll = bindAll;
|
@@ -5288,7 +5288,7 @@ var require_lodash = __commonJS({
|
|
5288
5288
|
lodash.forOwn = forOwn;
|
5289
5289
|
lodash.forOwnRight = forOwnRight;
|
5290
5290
|
lodash.get = get;
|
5291
|
-
lodash.gt =
|
5291
|
+
lodash.gt = gt2;
|
5292
5292
|
lodash.gte = gte;
|
5293
5293
|
lodash.has = has;
|
5294
5294
|
lodash.hasIn = hasIn;
|
@@ -5341,7 +5341,7 @@ var require_lodash = __commonJS({
|
|
5341
5341
|
lodash.lastIndexOf = lastIndexOf;
|
5342
5342
|
lodash.lowerCase = lowerCase;
|
5343
5343
|
lodash.lowerFirst = lowerFirst;
|
5344
|
-
lodash.lt =
|
5344
|
+
lodash.lt = lt;
|
5345
5345
|
lodash.lte = lte;
|
5346
5346
|
lodash.max = max;
|
5347
5347
|
lodash.maxBy = maxBy;
|
@@ -5628,16 +5628,16 @@ var require_ua_parser = __commonJS({
|
|
5628
5628
|
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
5629
5629
|
}
|
5630
5630
|
};
|
5631
|
-
var rgxMapper = function(
|
5632
|
-
var i = 0,
|
5631
|
+
var rgxMapper = function(ua2, arrays) {
|
5632
|
+
var i = 0, j, k2, p, q, matches, match18;
|
5633
5633
|
while (i < arrays.length && !matches) {
|
5634
5634
|
var regex = arrays[i], props = arrays[i + 1];
|
5635
|
-
|
5636
|
-
while (
|
5637
|
-
if (!regex[
|
5635
|
+
j = k2 = 0;
|
5636
|
+
while (j < regex.length && !matches) {
|
5637
|
+
if (!regex[j]) {
|
5638
5638
|
break;
|
5639
5639
|
}
|
5640
|
-
matches = regex[
|
5640
|
+
matches = regex[j++].exec(ua2);
|
5641
5641
|
if (!!matches) {
|
5642
5642
|
for (p = 0; p < props.length; p++) {
|
5643
5643
|
match18 = matches[++k2];
|
@@ -5669,8 +5669,8 @@ var require_ua_parser = __commonJS({
|
|
5669
5669
|
}, strMapper = function(str, map) {
|
5670
5670
|
for (var i in map) {
|
5671
5671
|
if (typeof map[i] === OBJ_TYPE && map[i].length > 0) {
|
5672
|
-
for (var
|
5673
|
-
if (has(map[i][
|
5672
|
+
for (var j = 0; j < map[i].length; j++) {
|
5673
|
+
if (has(map[i][j], str)) {
|
5674
5674
|
return i === UNKNOWN ? undefined2 : i;
|
5675
5675
|
}
|
5676
5676
|
}
|
@@ -6726,16 +6726,16 @@ var require_ua_parser = __commonJS({
|
|
6726
6726
|
[NAME, VERSION]
|
6727
6727
|
]
|
6728
6728
|
};
|
6729
|
-
var UAParser = function(
|
6730
|
-
if (typeof
|
6731
|
-
extensions =
|
6732
|
-
|
6729
|
+
var UAParser = function(ua2, extensions) {
|
6730
|
+
if (typeof ua2 === OBJ_TYPE) {
|
6731
|
+
extensions = ua2;
|
6732
|
+
ua2 = undefined2;
|
6733
6733
|
}
|
6734
6734
|
if (!(this instanceof UAParser)) {
|
6735
|
-
return new UAParser(
|
6735
|
+
return new UAParser(ua2, extensions).getResult();
|
6736
6736
|
}
|
6737
6737
|
var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
|
6738
|
-
var _ua =
|
6738
|
+
var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
|
6739
6739
|
var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
|
6740
6740
|
var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
|
6741
6741
|
var _isSelfNav = _navigator && _navigator.userAgent == _ua;
|
@@ -6801,8 +6801,8 @@ var require_ua_parser = __commonJS({
|
|
6801
6801
|
this.getUA = function() {
|
6802
6802
|
return _ua;
|
6803
6803
|
};
|
6804
|
-
this.setUA = function(
|
6805
|
-
_ua = typeof
|
6804
|
+
this.setUA = function(ua3) {
|
6805
|
+
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
|
6806
6806
|
return this;
|
6807
6807
|
};
|
6808
6808
|
this.setUA(_ua);
|
@@ -6827,18 +6827,18 @@ var require_ua_parser = __commonJS({
|
|
6827
6827
|
window2.UAParser = UAParser;
|
6828
6828
|
}
|
6829
6829
|
}
|
6830
|
-
var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
|
6831
|
-
if ($ &&
|
6830
|
+
var $2 = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
|
6831
|
+
if ($2 && !$2.ua) {
|
6832
6832
|
var parser = new UAParser();
|
6833
|
-
|
6834
|
-
|
6833
|
+
$2.ua = parser.getResult();
|
6834
|
+
$2.ua.get = function() {
|
6835
6835
|
return parser.getUA();
|
6836
6836
|
};
|
6837
|
-
|
6838
|
-
parser.setUA(
|
6837
|
+
$2.ua.set = function(ua2) {
|
6838
|
+
parser.setUA(ua2);
|
6839
6839
|
var result = parser.getResult();
|
6840
6840
|
for (var prop in result) {
|
6841
|
-
|
6841
|
+
$2.ua[prop] = result[prop];
|
6842
6842
|
}
|
6843
6843
|
};
|
6844
6844
|
}
|
@@ -7671,12 +7671,12 @@ var require_sdp = __commonJS({
|
|
7671
7671
|
return parsed;
|
7672
7672
|
};
|
7673
7673
|
SDPUtils2.writeRtpMap = function(codec) {
|
7674
|
-
let
|
7674
|
+
let pt = codec.payloadType;
|
7675
7675
|
if (codec.preferredPayloadType !== void 0) {
|
7676
|
-
|
7676
|
+
pt = codec.preferredPayloadType;
|
7677
7677
|
}
|
7678
7678
|
const channels = codec.channels || codec.numChannels || 1;
|
7679
|
-
return "a=rtpmap:" +
|
7679
|
+
return "a=rtpmap:" + pt + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
|
7680
7680
|
};
|
7681
7681
|
SDPUtils2.parseExtmap = function(line) {
|
7682
7682
|
const parts = line.substring(9).split(" ");
|
@@ -7694,17 +7694,17 @@ var require_sdp = __commonJS({
|
|
7694
7694
|
const parsed = {};
|
7695
7695
|
let kv;
|
7696
7696
|
const parts = line.substring(line.indexOf(" ") + 1).split(";");
|
7697
|
-
for (let
|
7698
|
-
kv = parts[
|
7697
|
+
for (let j = 0; j < parts.length; j++) {
|
7698
|
+
kv = parts[j].trim().split("=");
|
7699
7699
|
parsed[kv[0].trim()] = kv[1];
|
7700
7700
|
}
|
7701
7701
|
return parsed;
|
7702
7702
|
};
|
7703
7703
|
SDPUtils2.writeFmtp = function(codec) {
|
7704
7704
|
let line = "";
|
7705
|
-
let
|
7705
|
+
let pt = codec.payloadType;
|
7706
7706
|
if (codec.preferredPayloadType !== void 0) {
|
7707
|
-
|
7707
|
+
pt = codec.preferredPayloadType;
|
7708
7708
|
}
|
7709
7709
|
if (codec.parameters && Object.keys(codec.parameters).length) {
|
7710
7710
|
const params = [];
|
@@ -7715,7 +7715,7 @@ var require_sdp = __commonJS({
|
|
7715
7715
|
params.push(param);
|
7716
7716
|
}
|
7717
7717
|
});
|
7718
|
-
line += "a=fmtp:" +
|
7718
|
+
line += "a=fmtp:" + pt + " " + params.join(";") + "\r\n";
|
7719
7719
|
}
|
7720
7720
|
return line;
|
7721
7721
|
};
|
@@ -7728,13 +7728,13 @@ var require_sdp = __commonJS({
|
|
7728
7728
|
};
|
7729
7729
|
SDPUtils2.writeRtcpFb = function(codec) {
|
7730
7730
|
let lines = "";
|
7731
|
-
let
|
7731
|
+
let pt = codec.payloadType;
|
7732
7732
|
if (codec.preferredPayloadType !== void 0) {
|
7733
|
-
|
7733
|
+
pt = codec.preferredPayloadType;
|
7734
7734
|
}
|
7735
7735
|
if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
|
7736
7736
|
codec.rtcpFeedback.forEach((fb) => {
|
7737
|
-
lines += "a=rtcp-fb:" +
|
7737
|
+
lines += "a=rtcp-fb:" + pt + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
|
7738
7738
|
});
|
7739
7739
|
}
|
7740
7740
|
return lines;
|
@@ -7862,21 +7862,21 @@ var require_sdp = __commonJS({
|
|
7862
7862
|
const mline = lines[0].split(" ");
|
7863
7863
|
description.profile = mline[2];
|
7864
7864
|
for (let i = 3; i < mline.length; i++) {
|
7865
|
-
const
|
7865
|
+
const pt = mline[i];
|
7866
7866
|
const rtpmapline = SDPUtils2.matchPrefix(
|
7867
7867
|
mediaSection,
|
7868
|
-
"a=rtpmap:" +
|
7868
|
+
"a=rtpmap:" + pt + " "
|
7869
7869
|
)[0];
|
7870
7870
|
if (rtpmapline) {
|
7871
7871
|
const codec = SDPUtils2.parseRtpMap(rtpmapline);
|
7872
7872
|
const fmtps = SDPUtils2.matchPrefix(
|
7873
7873
|
mediaSection,
|
7874
|
-
"a=fmtp:" +
|
7874
|
+
"a=fmtp:" + pt + " "
|
7875
7875
|
);
|
7876
7876
|
codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
|
7877
7877
|
codec.rtcpFeedback = SDPUtils2.matchPrefix(
|
7878
7878
|
mediaSection,
|
7879
|
-
"a=rtcp-fb:" +
|
7879
|
+
"a=rtcp-fb:" + pt + " "
|
7880
7880
|
).map(SDPUtils2.parseRtcpFb);
|
7881
7881
|
description.codecs.push(codec);
|
7882
7882
|
switch (codec.name.toUpperCase()) {
|
@@ -8675,8 +8675,8 @@ var require_parser = __commonJS({
|
|
8675
8675
|
media.push({ rtp: [], fmtp: [] });
|
8676
8676
|
location = media[media.length - 1];
|
8677
8677
|
}
|
8678
|
-
for (var
|
8679
|
-
var obj = grammar[type][
|
8678
|
+
for (var j = 0; j < (grammar[type] || []).length; j += 1) {
|
8679
|
+
var obj = grammar[type][j];
|
8680
8680
|
if (obj.reg.test(content)) {
|
8681
8681
|
return parseReg(obj, location, content);
|
8682
8682
|
}
|
@@ -8873,10 +8873,10 @@ var require_react_is_production_min = __commonJS({
|
|
8873
8873
|
var e = b2 ? Symbol.for("react.fragment") : 60107;
|
8874
8874
|
var f = b2 ? Symbol.for("react.strict_mode") : 60108;
|
8875
8875
|
var g = b2 ? Symbol.for("react.profiler") : 60114;
|
8876
|
-
var
|
8876
|
+
var h2 = b2 ? Symbol.for("react.provider") : 60109;
|
8877
8877
|
var k2 = b2 ? Symbol.for("react.context") : 60110;
|
8878
8878
|
var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
|
8879
|
-
var
|
8879
|
+
var m = b2 ? Symbol.for("react.concurrent_mode") : 60111;
|
8880
8880
|
var n = b2 ? Symbol.for("react.forward_ref") : 60112;
|
8881
8881
|
var p = b2 ? Symbol.for("react.suspense") : 60113;
|
8882
8882
|
var q = b2 ? Symbol.for("react.suspense_list") : 60120;
|
@@ -8893,7 +8893,7 @@ var require_react_is_production_min = __commonJS({
|
|
8893
8893
|
case c2:
|
8894
8894
|
switch (a2 = a2.type, a2) {
|
8895
8895
|
case l2:
|
8896
|
-
case
|
8896
|
+
case m:
|
8897
8897
|
case e:
|
8898
8898
|
case g:
|
8899
8899
|
case f:
|
@@ -8905,7 +8905,7 @@ var require_react_is_production_min = __commonJS({
|
|
8905
8905
|
case n:
|
8906
8906
|
case t:
|
8907
8907
|
case r:
|
8908
|
-
case
|
8908
|
+
case h2:
|
8909
8909
|
return a2;
|
8910
8910
|
default:
|
8911
8911
|
return u;
|
@@ -8917,12 +8917,12 @@ var require_react_is_production_min = __commonJS({
|
|
8917
8917
|
}
|
8918
8918
|
}
|
8919
8919
|
function A(a2) {
|
8920
|
-
return z2(a2) ===
|
8920
|
+
return z2(a2) === m;
|
8921
8921
|
}
|
8922
8922
|
exports.AsyncMode = l2;
|
8923
|
-
exports.ConcurrentMode =
|
8923
|
+
exports.ConcurrentMode = m;
|
8924
8924
|
exports.ContextConsumer = k2;
|
8925
|
-
exports.ContextProvider =
|
8925
|
+
exports.ContextProvider = h2;
|
8926
8926
|
exports.Element = c2;
|
8927
8927
|
exports.ForwardRef = n;
|
8928
8928
|
exports.Fragment = e;
|
@@ -8940,7 +8940,7 @@ var require_react_is_production_min = __commonJS({
|
|
8940
8940
|
return z2(a2) === k2;
|
8941
8941
|
};
|
8942
8942
|
exports.isContextProvider = function(a2) {
|
8943
|
-
return z2(a2) ===
|
8943
|
+
return z2(a2) === h2;
|
8944
8944
|
};
|
8945
8945
|
exports.isElement = function(a2) {
|
8946
8946
|
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
|
@@ -8970,7 +8970,7 @@ var require_react_is_production_min = __commonJS({
|
|
8970
8970
|
return z2(a2) === p;
|
8971
8971
|
};
|
8972
8972
|
exports.isValidElementType = function(a2) {
|
8973
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 ===
|
8973
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
|
8974
8974
|
};
|
8975
8975
|
exports.typeOf = z2;
|
8976
8976
|
}
|
@@ -9359,7 +9359,7 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
9359
9359
|
shape: createShapeTypeChecker,
|
9360
9360
|
exact: createStrictShapeTypeChecker
|
9361
9361
|
};
|
9362
|
-
function
|
9362
|
+
function is2(x, y2) {
|
9363
9363
|
if (x === y2) {
|
9364
9364
|
return x !== 0 || 1 / x === 1 / y2;
|
9365
9365
|
} else {
|
@@ -9502,7 +9502,7 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
9502
9502
|
function validate(props, propName, componentName, location, propFullName) {
|
9503
9503
|
var propValue = props[propName];
|
9504
9504
|
for (var i = 0; i < expectedValues.length; i++) {
|
9505
|
-
if (
|
9505
|
+
if (is2(propValue, expectedValues[i])) {
|
9506
9506
|
return null;
|
9507
9507
|
}
|
9508
9508
|
}
|
@@ -10373,7 +10373,7 @@ var Flex = styled("div", {
|
|
10373
10373
|
baseline: {
|
10374
10374
|
alignItems: "baseline"
|
10375
10375
|
},
|
10376
|
-
|
10376
|
+
stretch: {
|
10377
10377
|
alignItems: "stretch"
|
10378
10378
|
}
|
10379
10379
|
},
|
@@ -13881,6 +13881,7 @@ var useHMSPrebuiltContext = () => {
|
|
13881
13881
|
init_define_process_env();
|
13882
13882
|
import React25, { useContext as useContext3, useEffect as useEffect7 } from "react";
|
13883
13883
|
import { usePreviousDistinct } from "react-use";
|
13884
|
+
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes2 } from "@100mslive/hms-virtual-background";
|
13884
13885
|
import { match as match2, P as P2 } from "ts-pattern";
|
13885
13886
|
import { HMSRoomState as HMSRoomState2, selectRoomState as selectRoomState2, useHMSActions as useHMSActions5, useHMSStore as useHMSStore7 } from "@100mslive/react-sdk";
|
13886
13887
|
|
@@ -14526,13 +14527,14 @@ var useAppStateManager = () => {
|
|
14526
14527
|
).with({ isPreviewScreenEnabled: true }, () => "preview" /* PREVIEW */).otherwise(() => "meeting" /* MEETING */);
|
14527
14528
|
});
|
14528
14529
|
VBHandler.reset();
|
14530
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes2.NONE);
|
14529
14531
|
redirectToLeave(1e3);
|
14530
14532
|
}
|
14531
14533
|
).with([HMSRoomState2.Disconnected, P2.nullish], () => {
|
14532
14534
|
setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
|
14533
14535
|
}).otherwise(() => {
|
14534
14536
|
});
|
14535
|
-
}, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave]);
|
14537
|
+
}, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave, hmsActions]);
|
14536
14538
|
return { activeState, rejoin };
|
14537
14539
|
};
|
14538
14540
|
|
@@ -14602,8 +14604,8 @@ var AuthToken = React26.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken, a
|
|
14602
14604
|
var convertError = (error) => {
|
14603
14605
|
console.error("[error]", { error });
|
14604
14606
|
console.warn(
|
14605
|
-
"If you think this is a mistake on our side, please reach out to us
|
14606
|
-
"https://
|
14607
|
+
"If you think this is a mistake on our side, please reach out to us on Dashboard:",
|
14608
|
+
"https://dashboard.100ms.live/dashboard"
|
14607
14609
|
);
|
14608
14610
|
return match3([error.action, error.code]).with(["GET_TOKEN", 403], () => ({
|
14609
14611
|
title: "Psst! This room is currently inactive.",
|
@@ -19348,8 +19350,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
|
|
19348
19350
|
// ../hms-video-store/dist/index.js
|
19349
19351
|
var import_ua_parser_js = __toESM(require_ua_parser());
|
19350
19352
|
var import_lodash3 = __toESM(require_lodash2());
|
19353
|
+
import { v4 as vo } from "uuid";
|
19351
19354
|
import { v4 as To } from "uuid";
|
19352
|
-
import { v4 as So } from "uuid";
|
19353
19355
|
|
19354
19356
|
// ../../node_modules/webrtc-adapter/src/js/adapter_core.js
|
19355
19357
|
init_define_process_env();
|
@@ -19720,8 +19722,8 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
19720
19722
|
navigator2.getUserMedia = getUserMedia_.bind(navigator2);
|
19721
19723
|
if (navigator2.mediaDevices.getUserMedia) {
|
19722
19724
|
const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
|
19723
|
-
navigator2.mediaDevices.getUserMedia = function(
|
19724
|
-
return shimConstraints_(
|
19725
|
+
navigator2.mediaDevices.getUserMedia = function(cs) {
|
19726
|
+
return shimConstraints_(cs, (c2) => origGetUserMedia(c2).then((stream) => {
|
19725
19727
|
if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
|
19726
19728
|
stream.getTracks().forEach((track) => {
|
19727
19729
|
track.stop();
|
@@ -19841,20 +19843,20 @@ function shimOnTrack(window2) {
|
|
19841
19843
|
}
|
19842
19844
|
function shimGetSendersWithDtmf(window2) {
|
19843
19845
|
if (typeof window2 === "object" && window2.RTCPeerConnection && !("getSenders" in window2.RTCPeerConnection.prototype) && "createDTMFSender" in window2.RTCPeerConnection.prototype) {
|
19844
|
-
const shimSenderWithDtmf = function(
|
19846
|
+
const shimSenderWithDtmf = function(pc2, track) {
|
19845
19847
|
return {
|
19846
19848
|
track,
|
19847
19849
|
get dtmf() {
|
19848
19850
|
if (this._dtmf === void 0) {
|
19849
19851
|
if (track.kind === "audio") {
|
19850
|
-
this._dtmf =
|
19852
|
+
this._dtmf = pc2.createDTMFSender(track);
|
19851
19853
|
} else {
|
19852
19854
|
this._dtmf = null;
|
19853
19855
|
}
|
19854
19856
|
}
|
19855
19857
|
return this._dtmf;
|
19856
19858
|
},
|
19857
|
-
_pc:
|
19859
|
+
_pc: pc2
|
19858
19860
|
};
|
19859
19861
|
};
|
19860
19862
|
if (!window2.RTCPeerConnection.prototype.getSenders) {
|
@@ -20209,11 +20211,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
|
|
20209
20211
|
}
|
20210
20212
|
return this.getSenders().find((s) => s.track === track);
|
20211
20213
|
};
|
20212
|
-
function replaceInternalStreamId(
|
20214
|
+
function replaceInternalStreamId(pc2, description) {
|
20213
20215
|
let sdp2 = description.sdp;
|
20214
|
-
Object.keys(
|
20215
|
-
const externalStream =
|
20216
|
-
const internalStream =
|
20216
|
+
Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
|
20217
|
+
const externalStream = pc2._reverseStreams[internalId];
|
20218
|
+
const internalStream = pc2._streams[externalStream.id];
|
20217
20219
|
sdp2 = sdp2.replace(
|
20218
20220
|
new RegExp(internalStream.id, "g"),
|
20219
20221
|
externalStream.id
|
@@ -20224,11 +20226,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
|
|
20224
20226
|
sdp: sdp2
|
20225
20227
|
});
|
20226
20228
|
}
|
20227
|
-
function replaceExternalStreamId(
|
20229
|
+
function replaceExternalStreamId(pc2, description) {
|
20228
20230
|
let sdp2 = description.sdp;
|
20229
|
-
Object.keys(
|
20230
|
-
const externalStream =
|
20231
|
-
const internalStream =
|
20231
|
+
Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
|
20232
|
+
const externalStream = pc2._reverseStreams[internalId];
|
20233
|
+
const internalStream = pc2._streams[externalStream.id];
|
20232
20234
|
sdp2 = sdp2.replace(
|
20233
20235
|
new RegExp(externalStream.id, "g"),
|
20234
20236
|
internalStream.id
|
@@ -20342,9 +20344,9 @@ function shimPeerConnection(window2, browserDetails) {
|
|
20342
20344
|
}
|
20343
20345
|
function fixNegotiationNeeded(window2, browserDetails) {
|
20344
20346
|
wrapPeerConnectionEvent(window2, "negotiationneeded", (e) => {
|
20345
|
-
const
|
20346
|
-
if (browserDetails.version < 72 ||
|
20347
|
-
if (
|
20347
|
+
const pc2 = e.target;
|
20348
|
+
if (browserDetails.version < 72 || pc2.getConfiguration && pc2.getConfiguration().sdpSemantics === "plan-b") {
|
20349
|
+
if (pc2.signalingState !== "stable") {
|
20348
20350
|
return;
|
20349
20351
|
}
|
20350
20352
|
}
|
@@ -20791,24 +20793,24 @@ function shimRemoteStreamsAPI(window2) {
|
|
20791
20793
|
});
|
20792
20794
|
const origSetRemoteDescription = window2.RTCPeerConnection.prototype.setRemoteDescription;
|
20793
20795
|
window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
|
20794
|
-
const
|
20796
|
+
const pc2 = this;
|
20795
20797
|
if (!this._onaddstreampoly) {
|
20796
20798
|
this.addEventListener("track", this._onaddstreampoly = function(e) {
|
20797
20799
|
e.streams.forEach((stream) => {
|
20798
|
-
if (!
|
20799
|
-
|
20800
|
+
if (!pc2._remoteStreams) {
|
20801
|
+
pc2._remoteStreams = [];
|
20800
20802
|
}
|
20801
|
-
if (
|
20803
|
+
if (pc2._remoteStreams.indexOf(stream) >= 0) {
|
20802
20804
|
return;
|
20803
20805
|
}
|
20804
|
-
|
20806
|
+
pc2._remoteStreams.push(stream);
|
20805
20807
|
const event = new Event("addstream");
|
20806
20808
|
event.stream = stream;
|
20807
|
-
|
20809
|
+
pc2.dispatchEvent(event);
|
20808
20810
|
});
|
20809
20811
|
});
|
20810
20812
|
}
|
20811
|
-
return origSetRemoteDescription.apply(
|
20813
|
+
return origSetRemoteDescription.apply(pc2, arguments);
|
20812
20814
|
};
|
20813
20815
|
}
|
20814
20816
|
}
|
@@ -21174,13 +21176,13 @@ function shimSendThrowTypeError(window2) {
|
|
21174
21176
|
if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
|
21175
21177
|
return;
|
21176
21178
|
}
|
21177
|
-
function wrapDcSend(dc,
|
21179
|
+
function wrapDcSend(dc, pc2) {
|
21178
21180
|
const origDataChannelSend = dc.send;
|
21179
21181
|
dc.send = function send() {
|
21180
21182
|
const data3 = arguments[0];
|
21181
21183
|
const length = data3.length || data3.size || data3.byteLength;
|
21182
|
-
if (dc.readyState === "open" &&
|
21183
|
-
throw new TypeError("Message too large (can send a maximum of " +
|
21184
|
+
if (dc.readyState === "open" && pc2.sctp && length > pc2.sctp.maxMessageSize) {
|
21185
|
+
throw new TypeError("Message too large (can send a maximum of " + pc2.sctp.maxMessageSize + " bytes)");
|
21184
21186
|
}
|
21185
21187
|
return origDataChannelSend.apply(dc, arguments);
|
21186
21188
|
};
|
@@ -21238,11 +21240,11 @@ function shimConnectionState(window2) {
|
|
21238
21240
|
proto[method] = function() {
|
21239
21241
|
if (!this._connectionstatechangepoly) {
|
21240
21242
|
this._connectionstatechangepoly = (e) => {
|
21241
|
-
const
|
21242
|
-
if (
|
21243
|
-
|
21243
|
+
const pc2 = e.target;
|
21244
|
+
if (pc2._lastConnectionState !== pc2.connectionState) {
|
21245
|
+
pc2._lastConnectionState = pc2.connectionState;
|
21244
21246
|
const newEvent = new Event("connectionstatechange", e);
|
21245
|
-
|
21247
|
+
pc2.dispatchEvent(newEvent);
|
21246
21248
|
}
|
21247
21249
|
return e;
|
21248
21250
|
};
|
@@ -21446,43 +21448,43 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
|
|
21446
21448
|
|
21447
21449
|
// ../hms-video-store/dist/index.js
|
21448
21450
|
var import_lodash4 = __toESM(require_lodash2());
|
21449
|
-
import { v4 as
|
21450
|
-
import { v4 as
|
21451
|
-
import { v4 as
|
21452
|
-
import { EventEmitter2 as
|
21453
|
-
var
|
21454
|
-
import { EventEmitter2 as
|
21455
|
-
import { v4 as
|
21456
|
-
import { EventEmitter2 as
|
21457
|
-
import
|
21458
|
-
import { v4 as
|
21459
|
-
import { v4 as
|
21460
|
-
var
|
21461
|
-
var
|
21462
|
-
var
|
21463
|
-
var
|
21464
|
-
var
|
21465
|
-
var
|
21466
|
-
var
|
21467
|
-
var
|
21451
|
+
import { v4 as Ro } from "uuid";
|
21452
|
+
import { v4 as Do } from "uuid";
|
21453
|
+
import { v4 as Oo } from "uuid";
|
21454
|
+
import { EventEmitter2 as xo } from "eventemitter2";
|
21455
|
+
var Jt = __toESM(require_lib());
|
21456
|
+
import { EventEmitter2 as un } from "eventemitter2";
|
21457
|
+
import { v4 as gn } from "uuid";
|
21458
|
+
import { EventEmitter2 as Tn } from "eventemitter2";
|
21459
|
+
import vn from "eventemitter2";
|
21460
|
+
import { v4 as Mn } from "uuid";
|
21461
|
+
import { v4 as En } from "uuid";
|
21462
|
+
var ro = Object.defineProperty;
|
21463
|
+
var so = Object.defineProperties;
|
21464
|
+
var ao = Object.getOwnPropertyDescriptors;
|
21465
|
+
var ii = Object.getOwnPropertySymbols;
|
21466
|
+
var ls = Object.prototype.hasOwnProperty;
|
21467
|
+
var us = Object.prototype.propertyIsEnumerable;
|
21468
|
+
var ds = (a2, e, t) => e in a2 ? ro(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
21469
|
+
var h = (a2, e) => {
|
21468
21470
|
for (var t in e || (e = {}))
|
21469
|
-
|
21470
|
-
if (
|
21471
|
-
for (var t of
|
21472
|
-
|
21471
|
+
ls.call(e, t) && ds(a2, t, e[t]);
|
21472
|
+
if (ii)
|
21473
|
+
for (var t of ii(e))
|
21474
|
+
us.call(e, t) && ds(a2, t, e[t]);
|
21473
21475
|
return a2;
|
21474
21476
|
};
|
21475
|
-
var
|
21476
|
-
var
|
21477
|
+
var M = (a2, e) => so(a2, ao(e));
|
21478
|
+
var Tr = (a2, e) => {
|
21477
21479
|
var t = {};
|
21478
21480
|
for (var i in a2)
|
21479
|
-
|
21480
|
-
if (a2 != null &&
|
21481
|
-
for (var i of
|
21482
|
-
e.indexOf(i) < 0 &&
|
21481
|
+
ls.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
21482
|
+
if (a2 != null && ii)
|
21483
|
+
for (var i of ii(a2))
|
21484
|
+
e.indexOf(i) < 0 && us.call(a2, i) && (t[i] = a2[i]);
|
21483
21485
|
return t;
|
21484
21486
|
};
|
21485
|
-
var
|
21487
|
+
var co = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
21486
21488
|
var c = (a2, e, t) => new Promise((i, r) => {
|
21487
21489
|
var s = (d) => {
|
21488
21490
|
try {
|
@@ -21499,51 +21501,51 @@ var c = (a2, e, t) => new Promise((i, r) => {
|
|
21499
21501
|
}, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
|
21500
21502
|
n((t = t.apply(a2, e)).next());
|
21501
21503
|
});
|
21502
|
-
var
|
21503
|
-
|
21504
|
+
var kr = co((Wc, fo) => {
|
21505
|
+
fo.exports = { version: "0.12.24-alpha.7", 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"] };
|
21504
21506
|
});
|
21505
|
-
var
|
21506
|
-
var
|
21507
|
-
var
|
21508
|
-
var
|
21509
|
-
var
|
21510
|
-
function
|
21507
|
+
var fr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(fr || {});
|
21508
|
+
var lo = ((e) => (e.CHAT = "chat", e))(lo || {});
|
21509
|
+
var ps = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ps || {});
|
21510
|
+
var vr = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(vr || {});
|
21511
|
+
var hs = ((t) => (t.audio = "audio", t.video = "video", t))(hs || {});
|
21512
|
+
function Be(a2, e) {
|
21511
21513
|
let t, i;
|
21512
21514
|
if (e)
|
21513
21515
|
for (let r of e.auxiliaryTracks) {
|
21514
21516
|
let s = a2[r];
|
21515
|
-
|
21517
|
+
uo(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
|
21516
21518
|
}
|
21517
21519
|
return { video: t, audio: i };
|
21518
21520
|
}
|
21519
|
-
function
|
21521
|
+
function ht(a2) {
|
21520
21522
|
return a2 && a2.type === "audio";
|
21521
21523
|
}
|
21522
|
-
function
|
21524
|
+
function mt(a2) {
|
21523
21525
|
return a2 && a2.type === "video";
|
21524
21526
|
}
|
21525
|
-
function
|
21527
|
+
function uo(a2) {
|
21526
21528
|
return a2 && a2.source === "screen";
|
21527
21529
|
}
|
21528
|
-
function
|
21530
|
+
function ai(a2) {
|
21529
21531
|
return a2 && a2.source === "audioplaylist";
|
21530
21532
|
}
|
21531
|
-
function
|
21533
|
+
function St(a2) {
|
21532
21534
|
return a2 && a2.source === "videoplaylist";
|
21533
21535
|
}
|
21534
|
-
function
|
21536
|
+
function ms(a2) {
|
21535
21537
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
21536
21538
|
}
|
21537
|
-
function
|
21539
|
+
function Je(a2, e) {
|
21538
21540
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
21539
21541
|
}
|
21540
|
-
function
|
21542
|
+
function gt(a2) {
|
21541
21543
|
var r;
|
21542
21544
|
let e = false, t = false, i = false;
|
21543
21545
|
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 };
|
21544
21546
|
}
|
21545
|
-
var
|
21546
|
-
var
|
21547
|
+
var gs = ((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))(gs || {});
|
21548
|
+
var po = typeof window != "undefined" && typeof window.expect != "undefined";
|
21547
21549
|
var l = class {
|
21548
21550
|
static v(e, ...t) {
|
21549
21551
|
this.log(0, e, ...t);
|
@@ -21609,30 +21611,30 @@ var l = class {
|
|
21609
21611
|
}
|
21610
21612
|
}
|
21611
21613
|
};
|
21612
|
-
l.level =
|
21613
|
-
var
|
21614
|
+
l.level = po ? 7 : 0;
|
21615
|
+
var me = new import_ua_parser_js.UAParser();
|
21614
21616
|
var B = typeof window != "undefined";
|
21615
|
-
var gs;
|
21616
|
-
var Be = typeof window == "undefined" && !((gs = he.getBrowser().name) != null && gs.toLowerCase().includes("electron"));
|
21617
|
-
var po = () => !Be;
|
21618
|
-
var uc = po();
|
21619
21617
|
var Ts;
|
21618
|
+
var Ve = typeof window == "undefined" && !((Ts = me.getBrowser().name) != null && Ts.toLowerCase().includes("electron"));
|
21619
|
+
var mo = () => !Ve;
|
21620
|
+
var pc = mo();
|
21620
21621
|
var fs;
|
21621
|
-
var Es = (fs = (Ts = he.getBrowser()) == null ? void 0 : Ts.name) == null ? void 0 : fs.toLowerCase().includes("safari");
|
21622
21622
|
var vs;
|
21623
|
+
var Ps = (vs = (fs = me.getBrowser()) == null ? void 0 : fs.name) == null ? void 0 : vs.toLowerCase().includes("safari");
|
21623
21624
|
var Ms;
|
21624
|
-
var
|
21625
|
-
var bs = ((
|
21626
|
-
|
21625
|
+
var ys;
|
21626
|
+
var bs = ((ys = (Ms = me.getBrowser()) == null ? void 0 : Ms.name) == null ? void 0 : ys.toLowerCase()) === "firefox";
|
21627
|
+
var As = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(As || {});
|
21628
|
+
function So() {
|
21627
21629
|
if (B && window) {
|
21628
21630
|
let a2 = window.location.hostname;
|
21629
21631
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
21630
21632
|
}
|
21631
21633
|
return "CUSTOM";
|
21632
21634
|
}
|
21633
|
-
var
|
21635
|
+
var ze = So();
|
21634
21636
|
var 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, NO_DATA: 3015 }, 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 } };
|
21635
|
-
var
|
21637
|
+
var k = class a extends Error {
|
21636
21638
|
constructor(t, i, r, s, o, n = false) {
|
21637
21639
|
super(s);
|
21638
21640
|
this.code = t;
|
@@ -21651,127 +21653,154 @@ var M = class a extends Error {
|
|
21651
21653
|
toString() {
|
21652
21654
|
var t;
|
21653
21655
|
return `{
|
21654
|
-
|
21655
|
-
|
21656
|
-
|
21657
|
-
|
21658
|
-
|
21659
|
-
|
21660
|
-
|
21661
|
-
|
21656
|
+
code: ${this.code};
|
21657
|
+
name: ${this.name};
|
21658
|
+
action: ${this.action};
|
21659
|
+
message: ${this.message};
|
21660
|
+
description: ${this.description};
|
21661
|
+
isTerminal: ${this.isTerminal};
|
21662
|
+
nativeError: ${(t = this.nativeError) == null ? void 0 : t.message};
|
21663
|
+
}`;
|
21664
|
+
}
|
21665
|
+
};
|
21666
|
+
var $ = class extends k {
|
21667
|
+
constructor(t, i, r, s, o, n) {
|
21668
|
+
super(t, i, r, s, o, false);
|
21669
|
+
this.code = t;
|
21670
|
+
this.name = i;
|
21671
|
+
this.message = s;
|
21672
|
+
this.description = o;
|
21673
|
+
this.trackType = n;
|
21662
21674
|
}
|
21663
|
-
|
21664
|
-
|
21675
|
+
toAnalyticsProperties() {
|
21676
|
+
return M(h({}, super.toAnalyticsProperties()), { track_type: this.trackType });
|
21677
|
+
}
|
21678
|
+
toString() {
|
21679
|
+
var t;
|
21680
|
+
return `{
|
21681
|
+
code: ${this.code};
|
21682
|
+
name: ${this.name};
|
21683
|
+
action: ${this.action};
|
21684
|
+
message: ${this.message};
|
21685
|
+
description: ${this.description};
|
21686
|
+
isTerminal: ${this.isTerminal};
|
21687
|
+
nativeError: ${(t = this.nativeError) == null ? void 0 : t.message};
|
21688
|
+
trackType: ${this.trackType};
|
21689
|
+
}`;
|
21690
|
+
}
|
21691
|
+
};
|
21692
|
+
var Is = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Is || {});
|
21693
|
+
var go = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
21665
21694
|
var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
21666
|
-
return new
|
21695
|
+
return new k(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
21667
21696
|
}, WebSocketConnectionLost(a2, e = "") {
|
21668
|
-
return new
|
21697
|
+
return new k(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
21669
21698
|
}, AbnormalClose(a2, e = "") {
|
21670
|
-
return new
|
21699
|
+
return new k(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
21671
21700
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
21672
|
-
return new
|
21701
|
+
return new k(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
21673
21702
|
}, EndpointUnreachable(a2, e = "") {
|
21674
|
-
return new
|
21703
|
+
return new k(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
21675
21704
|
}, InvalidTokenFormat(a2, e = "") {
|
21676
|
-
return new
|
21705
|
+
return new k(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
21677
21706
|
}, InitConfigNotAvailable(a2, e = "") {
|
21678
|
-
return new
|
21707
|
+
return new k(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
21679
21708
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
21680
|
-
return new
|
21709
|
+
return new $(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
|
21681
21710
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
21682
|
-
return new
|
21711
|
+
return new $(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
|
21683
21712
|
}, DeviceNotAvailable(a2, e, t = "") {
|
21684
|
-
return new
|
21713
|
+
return new $(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
|
21685
21714
|
}, DeviceInUse(a2, e, t = "") {
|
21686
|
-
return new
|
21715
|
+
return new $(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
|
21687
21716
|
}, DeviceLostMidway(a2, e, t = "") {
|
21688
|
-
return new
|
21717
|
+
return new $(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
|
21689
21718
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
21690
|
-
return new
|
21719
|
+
return new $(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
|
21691
21720
|
}, InvalidVideoSettings(a2, e = "") {
|
21692
|
-
return new
|
21721
|
+
return new $(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
|
21693
21722
|
}, AutoplayBlocked(a2, e = "") {
|
21694
|
-
return new
|
21723
|
+
return new $(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
|
21695
21724
|
}, CodecChangeNotPermitted(a2, e = "") {
|
21696
|
-
return new
|
21725
|
+
return new $(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
|
21697
21726
|
}, OverConstrained(a2, e, t = "") {
|
21698
|
-
return new
|
21727
|
+
return new $(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
|
21699
21728
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
21700
|
-
return new
|
21729
|
+
return new $(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
|
21701
21730
|
}, SystemDeniedPermission(a2, e, t = "") {
|
21702
|
-
return new
|
21731
|
+
return new $(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
|
21703
21732
|
}, CurrentTabNotShared() {
|
21704
|
-
return new
|
21733
|
+
return new $(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", "screen");
|
21705
21734
|
}, AudioPlaybackError(a2) {
|
21706
|
-
return new
|
21735
|
+
return new $(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
|
21707
21736
|
}, SelectedDeviceMissing(a2) {
|
21708
|
-
return new
|
21737
|
+
return new $(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
|
21709
21738
|
}, NoDataInTrack(a2) {
|
21710
|
-
return new
|
21739
|
+
return new $(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
|
21711
21740
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
21712
|
-
return new
|
21741
|
+
return new k(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
21713
21742
|
}, CreateAnswerFailed(a2, e = "") {
|
21714
|
-
return new
|
21743
|
+
return new k(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
21715
21744
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
21716
|
-
return new
|
21745
|
+
return new k(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
21717
21746
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
21718
|
-
return new
|
21747
|
+
return new k(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
21719
21748
|
}, ICEFailure(a2, e = "", t = false) {
|
21720
|
-
return new
|
21749
|
+
return new k(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
21721
21750
|
}, ICEDisconnected(a2, e = "") {
|
21722
|
-
return new
|
21751
|
+
return new k(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
21723
21752
|
}, StatsFailed(a2, e = "") {
|
21724
|
-
return new
|
21753
|
+
return new k(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
21725
21754
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
21726
|
-
return new
|
21755
|
+
return new k(a2, "ServerErrors", e, t, t, go.includes(e));
|
21727
21756
|
}, AlreadyJoined(a2, e = "") {
|
21728
|
-
return new
|
21757
|
+
return new k(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
21729
21758
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
21730
|
-
return new
|
21759
|
+
return new k(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
21731
21760
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
21732
|
-
return new
|
21761
|
+
return new k(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
21733
21762
|
}, Signalling(a2, e) {
|
21734
|
-
return new
|
21763
|
+
return new k(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
21735
21764
|
}, Unknown(a2, e) {
|
21736
|
-
return new
|
21765
|
+
return new k(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
21737
21766
|
}, NotReady(a2, e = "") {
|
21738
|
-
return new
|
21767
|
+
return new k(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
21739
21768
|
}, JsonParsingFailed(a2, e, t = "") {
|
21740
|
-
return new
|
21769
|
+
return new k(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
21741
21770
|
}, TrackMetadataMissing(a2, e = "") {
|
21742
|
-
return new
|
21771
|
+
return new k(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
21743
21772
|
}, RTCTrackMissing(a2, e = "") {
|
21744
|
-
return new
|
21773
|
+
return new k(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
21745
21774
|
}, PeerMetadataMissing(a2, e = "") {
|
21746
|
-
return new
|
21775
|
+
return new k(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
21747
21776
|
}, ValidationFailed(a2, e) {
|
21748
|
-
return new
|
21777
|
+
return new k(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
21749
21778
|
}, InvalidRole(a2, e) {
|
21750
|
-
return new
|
21779
|
+
return new k(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
21751
21780
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
21752
|
-
return new
|
21781
|
+
return new k(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
21753
21782
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
21754
|
-
return new
|
21783
|
+
return new k(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
21755
21784
|
}, MissingMediaDevices() {
|
21756
|
-
return new
|
21785
|
+
return new k(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);
|
21757
21786
|
}, MissingRTCPeerConnection() {
|
21758
|
-
return new
|
21787
|
+
return new k(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);
|
21759
21788
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
21760
|
-
return new
|
21789
|
+
return new k(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
21761
21790
|
}, InitFailed(a2, e = "") {
|
21762
|
-
return new
|
21791
|
+
return new k(7002, "InitFailed", a2, "Plugin init failed", e);
|
21763
21792
|
}, ProcessingFailed(a2, e = "") {
|
21764
|
-
return new
|
21793
|
+
return new k(7003, "ProcessingFailed", a2, "Plugin processing failed", e);
|
21765
21794
|
}, AddAlreadyInProgress(a2, e = "") {
|
21766
|
-
return new
|
21795
|
+
return new k(7004, "AddAlreadyInProgress", a2, "Plugin add already in progress", e);
|
21767
21796
|
}, DeviceNotSupported(a2, e = "") {
|
21768
|
-
return new
|
21797
|
+
return new k(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
21769
21798
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
21770
|
-
return new
|
21799
|
+
return new k(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
21771
21800
|
}, NoEntryPlaying(a2, e) {
|
21772
|
-
return new
|
21801
|
+
return new k(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
21773
21802
|
} } };
|
21774
|
-
var
|
21803
|
+
var yr = class {
|
21775
21804
|
constructor() {
|
21776
21805
|
this.valuesMap = /* @__PURE__ */ new Map();
|
21777
21806
|
}
|
@@ -21796,21 +21825,21 @@ var Mr = class {
|
|
21796
21825
|
return this.valuesMap.size;
|
21797
21826
|
}
|
21798
21827
|
};
|
21799
|
-
var
|
21828
|
+
var Rs = () => {
|
21800
21829
|
try {
|
21801
|
-
B && !localStorage && (window.localStorage = new
|
21830
|
+
B && !localStorage && (window.localStorage = new yr());
|
21802
21831
|
} catch (a2) {
|
21803
21832
|
l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
|
21804
21833
|
}
|
21805
21834
|
};
|
21806
|
-
var
|
21835
|
+
var Se = class {
|
21807
21836
|
constructor(e) {
|
21808
21837
|
this.key = e;
|
21809
21838
|
this.storage = null;
|
21810
21839
|
}
|
21811
21840
|
getStorage() {
|
21812
21841
|
try {
|
21813
|
-
return B && !this.storage && (
|
21842
|
+
return B && !this.storage && (Rs(), this.storage = window.localStorage), this.storage;
|
21814
21843
|
} catch (e) {
|
21815
21844
|
return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
|
21816
21845
|
}
|
@@ -21830,37 +21859,37 @@ var me = class {
|
|
21830
21859
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
21831
21860
|
}
|
21832
21861
|
};
|
21833
|
-
var
|
21834
|
-
let a2, e = new
|
21835
|
-
return t ? a2 = t : (a2 =
|
21862
|
+
var oi = () => {
|
21863
|
+
let a2, e = new Se("hms-analytics-deviceId"), t = e.get();
|
21864
|
+
return t ? a2 = t : (a2 = To(), e.set(a2)), a2;
|
21836
21865
|
};
|
21837
|
-
function
|
21866
|
+
function le(a2) {
|
21838
21867
|
return a2 != null;
|
21839
21868
|
}
|
21840
|
-
var
|
21841
|
-
function
|
21842
|
-
let t = "web", i =
|
21843
|
-
if (
|
21844
|
-
return
|
21845
|
-
let r =
|
21846
|
-
return s.type && (p = `${
|
21869
|
+
var Ls = kr().version;
|
21870
|
+
function Mt(a2 = "prod", e) {
|
21871
|
+
let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
21872
|
+
if (Ve)
|
21873
|
+
return Ds({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ls, 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 });
|
21874
|
+
let r = me.getOS(), s = me.getDevice(), o = me.getBrowser(), n = Er(`web_${r.name}`), d = r.version || "", u = Er(`${o.name}_${o.version}`), p = u;
|
21875
|
+
return s.type && (p = `${Er(`${s.vendor}_${s.type}`)}/${u}`), Ds({ os: n, os_version: d, sdk: t, sdk_version: Ls, 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 });
|
21847
21876
|
}
|
21848
|
-
function
|
21877
|
+
function Er(a2) {
|
21849
21878
|
return a2.replace(/ /g, "_");
|
21850
21879
|
}
|
21851
|
-
var
|
21880
|
+
var Ds = (a2, e = ",") => Object.keys(a2).filter((t) => le(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21852
21881
|
var C = class {
|
21853
21882
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21854
|
-
this.metadata = { peer: {}, userAgent:
|
21855
|
-
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id =
|
21883
|
+
this.metadata = { peer: {}, userAgent: Mt() };
|
21884
|
+
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = vo(), this.device_id = oi();
|
21856
21885
|
}
|
21857
21886
|
toSignalParams() {
|
21858
|
-
return { name: this.name, info:
|
21887
|
+
return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
21859
21888
|
}
|
21860
21889
|
};
|
21861
|
-
var
|
21890
|
+
var y = class {
|
21862
21891
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
21863
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(
|
21892
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(h({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
21864
21893
|
return new C({ name: o, level: n, properties: d });
|
21865
21894
|
}
|
21866
21895
|
static disconnect(e, t) {
|
@@ -21868,13 +21897,13 @@ var k = class {
|
|
21868
21897
|
return new C({ name: i, level: r, properties: s });
|
21869
21898
|
}
|
21870
21899
|
static preview(i) {
|
21871
|
-
var r = i, { error: e } = r, t =
|
21900
|
+
var r = i, { error: e } = r, t = Tr(r, ["error"]);
|
21872
21901
|
let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
|
21873
21902
|
return new C({ name: s, level: o, properties: n });
|
21874
21903
|
}
|
21875
21904
|
static join(i) {
|
21876
|
-
var r = i, { error: e } = r, t =
|
21877
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(
|
21905
|
+
var r = i, { error: e } = r, t = Tr(r, ["error"]);
|
21906
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(h({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
21878
21907
|
return new C({ name: s, level: o, properties: n });
|
21879
21908
|
}
|
21880
21909
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -21920,7 +21949,7 @@ var k = class {
|
|
21920
21949
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
21921
21950
|
if (!t && e.degradedAt instanceof Date) {
|
21922
21951
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
21923
|
-
s =
|
21952
|
+
s = M(h({}, s), { duration: n, restoredAt: o });
|
21924
21953
|
}
|
21925
21954
|
return new C({ name: i, level: r, properties: s });
|
21926
21955
|
}
|
@@ -21947,23 +21976,23 @@ var k = class {
|
|
21947
21976
|
return new C({ name: "krisp.stop", level: 1 });
|
21948
21977
|
}
|
21949
21978
|
static interruption({ started: e, type: t, reason: i, deviceInfo: r }) {
|
21950
|
-
return new C({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties:
|
21979
|
+
return new C({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ reason: i, type: t }, r) });
|
21951
21980
|
}
|
21952
21981
|
static eventNameFor(e, t) {
|
21953
21982
|
return `${e}.${t ? "success" : "failed"}`;
|
21954
21983
|
}
|
21955
21984
|
static getPropertiesWithError(e, t) {
|
21956
21985
|
let i = this.getErrorProperties(t);
|
21957
|
-
return e =
|
21986
|
+
return e = h(h({}, i), e), e;
|
21958
21987
|
}
|
21959
21988
|
static getErrorProperties(e) {
|
21960
|
-
return e ? e instanceof
|
21989
|
+
return e ? e instanceof k ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
21961
21990
|
}
|
21962
21991
|
};
|
21963
|
-
|
21964
|
-
var
|
21992
|
+
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
21993
|
+
var Pr = class {
|
21965
21994
|
constructor() {
|
21966
|
-
this.storage = new
|
21995
|
+
this.storage = new Se("hms-device-selection");
|
21967
21996
|
this.remember = false;
|
21968
21997
|
this.TAG = "[HMSDeviceStorage]";
|
21969
21998
|
}
|
@@ -21995,11 +22024,11 @@ var Er = class {
|
|
21995
22024
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
21996
22025
|
}
|
21997
22026
|
};
|
21998
|
-
var
|
21999
|
-
var
|
22000
|
-
var
|
22001
|
-
var
|
22002
|
-
function
|
22027
|
+
var X = new Pr();
|
22028
|
+
var br = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(br || {});
|
22029
|
+
var Ar = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ar || {});
|
22030
|
+
var Hr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Hr || {});
|
22031
|
+
function di(a2, e = 300) {
|
22003
22032
|
let t;
|
22004
22033
|
return function(...i) {
|
22005
22034
|
clearTimeout(t), t = void 0;
|
@@ -22009,14 +22038,14 @@ function ci(a2, e = 300) {
|
|
22009
22038
|
}, e);
|
22010
22039
|
};
|
22011
22040
|
}
|
22012
|
-
var
|
22013
|
-
var
|
22014
|
-
var
|
22015
|
-
var
|
22016
|
-
var
|
22017
|
-
var
|
22018
|
-
var
|
22019
|
-
var
|
22041
|
+
var Lr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Lr || {});
|
22042
|
+
var Os = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Os || {});
|
22043
|
+
var xs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(xs || {});
|
22044
|
+
var Us = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Us || {});
|
22045
|
+
var Bs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Bs || {});
|
22046
|
+
var Vs = ((e) => (e.CAPTION = "caption", e))(Vs || {});
|
22047
|
+
var Dr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Dr || {});
|
22048
|
+
var Fs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Fs || {});
|
22020
22049
|
var wr = class {
|
22021
22050
|
constructor() {
|
22022
22051
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
@@ -22044,8 +22073,8 @@ var wr = class {
|
|
22044
22073
|
return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
22045
22074
|
}
|
22046
22075
|
};
|
22047
|
-
var
|
22048
|
-
var
|
22076
|
+
var Ks = new wr();
|
22077
|
+
var _r = class {
|
22049
22078
|
constructor() {
|
22050
22079
|
this.TAG = "[HMSResizeObserverWrapper]";
|
22051
22080
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -22058,7 +22087,7 @@ var Dr = class {
|
|
22058
22087
|
(t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
|
22059
22088
|
};
|
22060
22089
|
this.createObserver = () => {
|
22061
|
-
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(
|
22090
|
+
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(di(this.handleResize, 300)));
|
22062
22091
|
};
|
22063
22092
|
this.handleResize = (e) => {
|
22064
22093
|
var t;
|
@@ -22072,43 +22101,43 @@ var Dr = class {
|
|
22072
22101
|
return e || l.w(this.TAG, "Resize Observer is not supported"), e;
|
22073
22102
|
}
|
22074
22103
|
};
|
22075
|
-
var
|
22076
|
-
var
|
22077
|
-
var
|
22078
|
-
var
|
22079
|
-
var
|
22080
|
-
var
|
22081
|
-
var
|
22104
|
+
var qs = new _r();
|
22105
|
+
var Nr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Nr || {});
|
22106
|
+
var Or = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Or || {});
|
22107
|
+
var Qs = "https://event.100ms.live/v2/client/report";
|
22108
|
+
var zs = "https://event-nonprod.100ms.live/v2/client/report";
|
22109
|
+
var bt = Math.pow(2, 31) - 1;
|
22110
|
+
var st = class {
|
22082
22111
|
};
|
22083
|
-
|
22112
|
+
st.makePeerId = () => Oo();
|
22084
22113
|
var F = (a2) => a2.room;
|
22085
|
-
var
|
22086
|
-
var
|
22087
|
-
var
|
22088
|
-
var
|
22089
|
-
var
|
22090
|
-
var
|
22114
|
+
var Uo = (a2) => a2.errors;
|
22115
|
+
var dm = createSelector(Uo, (a2) => a2.length === 0 ? null : a2.at(-1));
|
22116
|
+
var lm = createSelector(F, (a2) => a2.id);
|
22117
|
+
var z = (a2) => a2.peers;
|
22118
|
+
var yi = (a2) => a2.messages.byID;
|
22119
|
+
var aa = (a2) => a2.messages.allIDs;
|
22091
22120
|
var O = (a2) => a2.tracks;
|
22092
|
-
var
|
22093
|
-
var
|
22094
|
-
var
|
22095
|
-
var
|
22096
|
-
var
|
22097
|
-
var
|
22098
|
-
var
|
22099
|
-
var
|
22100
|
-
var
|
22101
|
-
var
|
22102
|
-
var
|
22103
|
-
var
|
22104
|
-
var
|
22105
|
-
var
|
22106
|
-
var
|
22121
|
+
var Kr = (a2) => a2.appData;
|
22122
|
+
var Bo = (a2) => a2.speakers;
|
22123
|
+
var xe = createSelector([F], (a2) => a2 && a2.isConnected);
|
22124
|
+
var hm = createSelector([xe, F], (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));
|
22125
|
+
var Vo = (a2) => a2.hideLocalPeer;
|
22126
|
+
var ve = createSelector([F, z, Vo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
22127
|
+
var Fo = createSelector(O, (a2) => Object.values(a2));
|
22128
|
+
var re = createSelector(F, z, (a2, e) => e[a2.localPeer]);
|
22129
|
+
var Pe = createSelector(F, (a2) => a2.localPeer);
|
22130
|
+
var mm = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
|
22131
|
+
var Sm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
|
22132
|
+
var ce = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
22133
|
+
var Z = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
22134
|
+
var Go = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
22135
|
+
var na = createSelector([ce, Z, Go], (a2, e, t) => {
|
22107
22136
|
let i = t ? [...t] : [];
|
22108
22137
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
22109
22138
|
});
|
22110
|
-
var
|
22111
|
-
var
|
22139
|
+
var gm = createSelector(ve, (a2) => a2.filter((e) => !e.isLocal));
|
22140
|
+
var Tm = createSelector(z, Bo, (a2, e) => {
|
22112
22141
|
let t = Object.entries(e).sort((i, r) => {
|
22113
22142
|
var n, d;
|
22114
22143
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -22121,112 +22150,112 @@ var um = createSelector(Q, Uo, (a2, e) => {
|
|
22121
22150
|
}
|
22122
22151
|
return null;
|
22123
22152
|
});
|
22124
|
-
var
|
22125
|
-
let { video: t, audio: i } =
|
22153
|
+
var jr = createSelector(re, O, (a2, e) => {
|
22154
|
+
let { video: t, audio: i } = Be(e, a2);
|
22126
22155
|
return !!(t || i);
|
22127
22156
|
});
|
22128
|
-
var
|
22157
|
+
var Wo = createSelector(z, O, (a2, e) => {
|
22129
22158
|
let t;
|
22130
22159
|
for (let i in a2) {
|
22131
|
-
let r = a2[i], { video: s, audio: o } =
|
22160
|
+
let r = a2[i], { video: s, audio: o } = Be(e, r);
|
22132
22161
|
if (s)
|
22133
22162
|
return r;
|
22134
22163
|
o && !t && (t = r);
|
22135
22164
|
}
|
22136
22165
|
return t;
|
22137
22166
|
});
|
22138
|
-
var
|
22139
|
-
var
|
22167
|
+
var vm = createSelector(Wo, (a2) => !!a2);
|
22168
|
+
var Mm = createSelector(z, O, (a2, e) => {
|
22140
22169
|
for (let t in a2) {
|
22141
|
-
let i = a2[t], { audio: r, video: s } =
|
22170
|
+
let i = a2[t], { audio: r, video: s } = Be(e, i);
|
22142
22171
|
if (!s && r)
|
22143
22172
|
return i;
|
22144
22173
|
}
|
22145
22174
|
});
|
22146
|
-
var
|
22175
|
+
var ym = createSelector(z, O, (a2, e) => {
|
22147
22176
|
let t = [], i = [];
|
22148
22177
|
for (let r in a2) {
|
22149
|
-
let s = a2[r], { video: o, audio: n } =
|
22178
|
+
let s = a2[r], { video: o, audio: n } = Be(e, s);
|
22150
22179
|
o ? t.push(s) : n && i.push(s);
|
22151
22180
|
}
|
22152
22181
|
return t.concat(i);
|
22153
22182
|
});
|
22154
|
-
var
|
22183
|
+
var km = createSelector(z, O, (a2, e) => {
|
22155
22184
|
for (let t in e) {
|
22156
22185
|
let i = e[t];
|
22157
|
-
if (
|
22186
|
+
if (St(i) && mt(i) && i.peerId)
|
22158
22187
|
return a2[i.peerId];
|
22159
22188
|
}
|
22160
22189
|
});
|
22161
|
-
var
|
22190
|
+
var Em = createSelector(z, O, (a2, e) => {
|
22162
22191
|
for (let t in e) {
|
22163
22192
|
let i = e[t];
|
22164
|
-
if (
|
22193
|
+
if (ai(i) && i.peerId)
|
22165
22194
|
return a2[i.peerId];
|
22166
22195
|
}
|
22167
22196
|
});
|
22168
|
-
var
|
22169
|
-
var
|
22170
|
-
var
|
22171
|
-
var
|
22197
|
+
var Pm = createSelector(Fo, (a2) => a2.filter(ms));
|
22198
|
+
var bm = createSelector(aa, (a2) => a2.length);
|
22199
|
+
var Am = createSelector(yi, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
22200
|
+
var Ht = createSelector(aa, yi, (a2, e) => {
|
22172
22201
|
let t = [];
|
22173
22202
|
return a2.forEach((i) => {
|
22174
22203
|
t.push(e[i]);
|
22175
22204
|
}), t;
|
22176
22205
|
});
|
22177
|
-
var
|
22206
|
+
var $o = createSelector(Ht, (a2) => a2.filter((e) => {
|
22178
22207
|
var t;
|
22179
22208
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
22180
22209
|
}));
|
22181
|
-
var
|
22182
|
-
var
|
22183
|
-
var
|
22184
|
-
var
|
22185
|
-
var
|
22186
|
-
var
|
22187
|
-
var
|
22188
|
-
var
|
22189
|
-
var
|
22210
|
+
var Im = createSelector($o, (a2) => a2.filter((e) => !e.read).length);
|
22211
|
+
var se = createSelector([F], (a2) => a2 && a2.roomState);
|
22212
|
+
var da = createSelector(se, (a2) => a2 === "Preview");
|
22213
|
+
var Rm = createSelector(F, (a2) => a2.roomState !== "Disconnected");
|
22214
|
+
var Hm = createSelector(F, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
22215
|
+
var Me = (a2) => a2.roles;
|
22216
|
+
var Cm = createSelector([Me], (a2) => Object.keys(a2));
|
22217
|
+
var ot = createSelector([re, Me], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
22218
|
+
var Ko = (a2) => {
|
22190
22219
|
var e;
|
22191
22220
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
22192
22221
|
};
|
22193
|
-
var
|
22194
|
-
var
|
22222
|
+
var la = createSelector([Ko, Me], (a2, e) => a2 ? e[a2] : null);
|
22223
|
+
var Lm = createSelector([ot], (a2) => {
|
22195
22224
|
var e;
|
22196
22225
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
22197
22226
|
});
|
22198
|
-
var
|
22199
|
-
var
|
22200
|
-
var
|
22201
|
-
var
|
22202
|
-
var
|
22203
|
-
var
|
22204
|
-
var
|
22205
|
-
var
|
22206
|
-
var
|
22207
|
-
var
|
22208
|
-
var
|
22209
|
-
var
|
22210
|
-
var
|
22211
|
-
var
|
22212
|
-
var
|
22213
|
-
var
|
22214
|
-
var
|
22215
|
-
var
|
22216
|
-
var
|
22217
|
-
var
|
22218
|
-
var
|
22219
|
-
var
|
22220
|
-
var
|
22227
|
+
var ua = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
|
22228
|
+
var Dm = createSelector(F, (a2) => a2.recording);
|
22229
|
+
var wm = createSelector(F, (a2) => a2.rtmp);
|
22230
|
+
var _m = createSelector(F, (a2) => a2.hls);
|
22231
|
+
var Nm = createSelector(F, (a2) => a2.transcriptions);
|
22232
|
+
var Om = createSelector(F, (a2) => a2.sessionId);
|
22233
|
+
var xm = createSelector(F, (a2) => a2.startedAt);
|
22234
|
+
var Um = createSelector(F, (a2) => !!a2.isLargeRoom);
|
22235
|
+
var Bm = createSelector(F, (a2) => !!a2.isEffectsEnabled);
|
22236
|
+
var Vm = createSelector(F, (a2) => !!a2.isVBEnabled);
|
22237
|
+
var Fm = createSelector(F, (a2) => a2.effectsKey);
|
22238
|
+
var pa = (a2) => a2.polls;
|
22239
|
+
var Km = createSelector(ve, (a2) => a2.filter((e) => e.isHandRaised));
|
22240
|
+
var qo = (a2) => a2.whiteboards;
|
22241
|
+
var qm = createSelector(qo, (a2) => Object.values(a2)[0]);
|
22242
|
+
var ma = (a2 = "audio") => (e) => e.playlist[a2].list;
|
22243
|
+
var Jr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
22244
|
+
var Sa = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
22245
|
+
var ga = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
22246
|
+
var Ta = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
22247
|
+
var fa = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
22248
|
+
var va = (a2 = "audio") => createSelector(ma(a2), (e) => Object.values(e));
|
22249
|
+
var Ma = (a2 = "audio") => createSelector(ma(a2), Jr(a2), (e, t) => {
|
22221
22250
|
if (t.id)
|
22222
22251
|
return e[t.id];
|
22223
22252
|
});
|
22224
|
-
var
|
22225
|
-
var
|
22253
|
+
var ya = { selection: Jr("audio"), progress: Sa("audio"), currentTime: ga("audio"), playbackRate: Ta("audio"), volume: fa("audio"), list: va("audio"), selectedItem: Ma("audio") };
|
22254
|
+
var ka = { selection: Jr("video"), progress: Sa("video"), currentTime: ga("video"), playbackRate: Ta("video"), volume: fa("video"), list: va("video"), selectedItem: Ma("video") };
|
22226
22255
|
function H(a2) {
|
22227
22256
|
return (e) => (t) => a2(t, e);
|
22228
22257
|
}
|
22229
|
-
var
|
22258
|
+
var Ct = "HMS-Store:";
|
22230
22259
|
var b = class {
|
22231
22260
|
static v(e, ...t) {
|
22232
22261
|
this.log(0, e, ...t);
|
@@ -22256,23 +22285,23 @@ var b = class {
|
|
22256
22285
|
if (!(this.level.valueOf() > e.valueOf()))
|
22257
22286
|
switch (e) {
|
22258
22287
|
case 0: {
|
22259
|
-
console.log(
|
22288
|
+
console.log(Ct, ...t);
|
22260
22289
|
break;
|
22261
22290
|
}
|
22262
22291
|
case 1: {
|
22263
|
-
console.debug(
|
22292
|
+
console.debug(Ct, ...t);
|
22264
22293
|
break;
|
22265
22294
|
}
|
22266
22295
|
case 2: {
|
22267
|
-
console.info(
|
22296
|
+
console.info(Ct, ...t);
|
22268
22297
|
break;
|
22269
22298
|
}
|
22270
22299
|
case 3: {
|
22271
|
-
console.warn(
|
22300
|
+
console.warn(Ct, ...t);
|
22272
22301
|
break;
|
22273
22302
|
}
|
22274
22303
|
case 6: {
|
22275
|
-
console.error(
|
22304
|
+
console.error(Ct, ...t);
|
22276
22305
|
break;
|
22277
22306
|
}
|
22278
22307
|
case 4: {
|
@@ -22293,133 +22322,133 @@ var b = class {
|
|
22293
22322
|
}
|
22294
22323
|
};
|
22295
22324
|
b.level = 0;
|
22296
|
-
var
|
22297
|
-
var
|
22298
|
-
var
|
22299
|
-
var qo = (a2, e) => e;
|
22325
|
+
var Qr = (a2, e) => e;
|
22326
|
+
var Lt = (a2, e) => e;
|
22327
|
+
var Ea = (a2, e) => e;
|
22300
22328
|
var jo = (a2, e) => e;
|
22301
|
-
var
|
22302
|
-
var
|
22303
|
-
var
|
22329
|
+
var Jo = (a2, e) => e;
|
22330
|
+
var Y = createSelector([z, Qr], (a2, e) => e ? a2[e] : null);
|
22331
|
+
var zr = createSelector([O, Lt], (a2, e) => e ? a2[e] : null);
|
22332
|
+
var Qo = createSelector([O, Lt], (a2, e) => {
|
22304
22333
|
if (!e)
|
22305
22334
|
return null;
|
22306
22335
|
let t = a2[e];
|
22307
22336
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
22308
22337
|
});
|
22309
|
-
var
|
22338
|
+
var zo = createSelector([O, Lt], (a2, e) => {
|
22310
22339
|
if (!e)
|
22311
22340
|
return null;
|
22312
22341
|
let t = a2[e];
|
22313
22342
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
22314
22343
|
});
|
22315
|
-
var
|
22344
|
+
var Yo = createSelector([O, Lt], (a2, e) => {
|
22316
22345
|
if (!e)
|
22317
22346
|
return null;
|
22318
22347
|
let t = a2[e];
|
22319
22348
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22320
22349
|
});
|
22321
|
-
var
|
22350
|
+
var Xo = createSelector([O, Lt], (a2, e) => {
|
22322
22351
|
if (!e)
|
22323
22352
|
return null;
|
22324
22353
|
let t = a2[e];
|
22325
22354
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22326
22355
|
});
|
22327
|
-
var
|
22328
|
-
var
|
22329
|
-
var
|
22356
|
+
var Zo = createSelector([pa, Jo], (a2, e) => e ? a2[e] : null);
|
22357
|
+
var ee = H(Y);
|
22358
|
+
var rS = H(createSelector([Kr, jo], (a2, e) => {
|
22330
22359
|
if (a2)
|
22331
22360
|
return e ? a2[e] : a2;
|
22332
22361
|
}));
|
22333
|
-
function
|
22362
|
+
function sS(a2) {
|
22334
22363
|
return (e) => {
|
22335
22364
|
if (e.sessionStore)
|
22336
22365
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
22337
22366
|
};
|
22338
22367
|
}
|
22339
|
-
var
|
22340
|
-
var
|
22341
|
-
var
|
22342
|
-
var
|
22343
|
-
var
|
22344
|
-
var
|
22345
|
-
var
|
22346
|
-
var
|
22347
|
-
let t =
|
22368
|
+
var oS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.name));
|
22369
|
+
var nS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.type));
|
22370
|
+
var ki = H(zr);
|
22371
|
+
var Pa = H(Qo);
|
22372
|
+
var cS = H(zo);
|
22373
|
+
var dS = H(Yo);
|
22374
|
+
var lS = H(Xo);
|
22375
|
+
var en = H((a2, e) => {
|
22376
|
+
let t = Y(a2, e);
|
22348
22377
|
if (t && t.videoTrack && t.videoTrack !== "")
|
22349
22378
|
return a2.tracks[t.videoTrack];
|
22350
22379
|
});
|
22351
|
-
var
|
22352
|
-
let t =
|
22380
|
+
var tn = H((a2, e) => {
|
22381
|
+
let t = Y(a2, e);
|
22353
22382
|
if (t && t.audioTrack && t.audioTrack !== "")
|
22354
22383
|
return a2.tracks[t.audioTrack];
|
22355
22384
|
});
|
22356
|
-
var
|
22357
|
-
let t =
|
22385
|
+
var pS = H((a2, e) => {
|
22386
|
+
let t = Y(a2, e);
|
22358
22387
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
22359
22388
|
});
|
22360
|
-
var
|
22361
|
-
var
|
22362
|
-
var
|
22363
|
-
let t =
|
22364
|
-
return
|
22365
|
-
};
|
22366
|
-
var
|
22367
|
-
var
|
22389
|
+
var ba = (a2, e) => e ? a2.speakers[e] : null;
|
22390
|
+
var hS = H(createSelector(ba, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22391
|
+
var rn = (a2, e) => {
|
22392
|
+
let t = tn(e)(a2);
|
22393
|
+
return ba(a2, t == null ? void 0 : t.id);
|
22394
|
+
};
|
22395
|
+
var mS = H(createSelector(rn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22396
|
+
var SS = H((a2, e) => {
|
22368
22397
|
if (e)
|
22369
22398
|
return a2.connectionQualities[e];
|
22370
22399
|
});
|
22371
|
-
var
|
22372
|
-
let t =
|
22400
|
+
var gS = H((a2, e) => {
|
22401
|
+
let t = Y(a2, e);
|
22373
22402
|
if (t) {
|
22374
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
22403
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
|
22375
22404
|
return i ? a2.tracks[i] : void 0;
|
22376
22405
|
}
|
22377
22406
|
});
|
22378
|
-
var
|
22407
|
+
var TS = H(createSelector(O, Y, (a2, e) => {
|
22379
22408
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22380
22409
|
let r = a2[i];
|
22381
|
-
return
|
22410
|
+
return St(r) && mt(r);
|
22382
22411
|
});
|
22383
22412
|
return t ? a2[t] : void 0;
|
22384
22413
|
}));
|
22385
|
-
var
|
22414
|
+
var fS = H(createSelector(O, Y, (a2, e) => {
|
22386
22415
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22387
22416
|
let r = a2[i];
|
22388
|
-
return
|
22417
|
+
return St(r) && ht(r);
|
22389
22418
|
});
|
22390
22419
|
return t ? a2[t] : void 0;
|
22391
22420
|
}));
|
22392
|
-
var
|
22421
|
+
var vS = H(createSelector(O, Y, (a2, e) => {
|
22393
22422
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22394
22423
|
let r = a2[i];
|
22395
|
-
return
|
22424
|
+
return ai(r) && ht(r);
|
22396
22425
|
});
|
22397
22426
|
return t ? a2[t] : void 0;
|
22398
22427
|
}));
|
22399
|
-
var
|
22400
|
-
var
|
22401
|
-
var
|
22402
|
-
let t =
|
22403
|
-
return
|
22428
|
+
var Aa = H(createSelector(O, Y, (a2, e) => Be(a2, e)));
|
22429
|
+
var Ia = (a2) => createSelector(Aa(a2), (e) => e.audio);
|
22430
|
+
var yS = H((a2, e) => {
|
22431
|
+
let t = Y(a2, e);
|
22432
|
+
return Je(a2, t == null ? void 0 : t.audioTrack);
|
22404
22433
|
});
|
22405
|
-
var
|
22406
|
-
let t =
|
22407
|
-
return
|
22434
|
+
var kS = H((a2, e) => {
|
22435
|
+
let t = Y(a2, e);
|
22436
|
+
return Je(a2, t == null ? void 0 : t.videoTrack);
|
22408
22437
|
});
|
22409
|
-
var
|
22438
|
+
var Ra = H((a2, e) => {
|
22410
22439
|
if (e && a2.tracks[e])
|
22411
22440
|
return a2.tracks[e].volume === 0;
|
22412
22441
|
});
|
22413
|
-
var
|
22414
|
-
let t =
|
22415
|
-
return
|
22442
|
+
var ES = H((a2, e) => {
|
22443
|
+
let t = Y(a2, e);
|
22444
|
+
return Ra(t == null ? void 0 : t.audioTrack)(a2);
|
22416
22445
|
});
|
22417
|
-
var
|
22418
|
-
let t =
|
22419
|
-
return
|
22446
|
+
var PS = H((a2, e) => {
|
22447
|
+
let t = Ia(e)(a2);
|
22448
|
+
return Ra(t == null ? void 0 : t.id)(a2);
|
22420
22449
|
});
|
22421
|
-
var
|
22422
|
-
let t =
|
22450
|
+
var Ha = H((a2, e) => {
|
22451
|
+
let t = zr(a2, e);
|
22423
22452
|
if (t) {
|
22424
22453
|
if (t.type !== "audio") {
|
22425
22454
|
b.w("Please pass audio track here");
|
@@ -22428,16 +22457,16 @@ var Ia = H((a2, e) => {
|
|
22428
22457
|
return t.volume;
|
22429
22458
|
}
|
22430
22459
|
});
|
22431
|
-
var
|
22432
|
-
let t =
|
22433
|
-
return
|
22460
|
+
var bS = H((a2, e) => {
|
22461
|
+
let t = Y(a2, e);
|
22462
|
+
return Ha(t == null ? void 0 : t.audioTrack)(a2);
|
22434
22463
|
});
|
22435
|
-
var
|
22436
|
-
let t =
|
22437
|
-
return
|
22464
|
+
var AS = H((a2, e) => {
|
22465
|
+
let t = Ia(e)(a2);
|
22466
|
+
return Ha(t == null ? void 0 : t.id)(a2);
|
22438
22467
|
});
|
22439
|
-
var
|
22440
|
-
let t =
|
22468
|
+
var IS = H((a2, e) => {
|
22469
|
+
let t = zr(a2, e);
|
22441
22470
|
if (t) {
|
22442
22471
|
if (t.type !== "video") {
|
22443
22472
|
b.w("Please pass video track here");
|
@@ -22446,53 +22475,53 @@ var yS = H((a2, e) => {
|
|
22446
22475
|
return t.layer;
|
22447
22476
|
}
|
22448
22477
|
});
|
22449
|
-
var
|
22478
|
+
var Ca = createSelector([Ht, Pe, Qr], (a2, e, t) => {
|
22450
22479
|
if (t)
|
22451
22480
|
return a2.filter((i) => {
|
22452
22481
|
var r;
|
22453
22482
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
22454
22483
|
});
|
22455
22484
|
});
|
22456
|
-
var
|
22485
|
+
var La = createSelector([Ht, Ea], (a2, e) => {
|
22457
22486
|
if (e)
|
22458
22487
|
return a2.filter((t) => {
|
22459
22488
|
var i, r;
|
22460
22489
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
22461
22490
|
});
|
22462
22491
|
});
|
22463
|
-
var
|
22492
|
+
var sn = createSelector(Ht, (a2) => a2.filter((e) => {
|
22464
22493
|
var t;
|
22465
22494
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
22466
22495
|
}));
|
22467
|
-
var
|
22468
|
-
var
|
22469
|
-
var
|
22470
|
-
var
|
22471
|
-
var
|
22472
|
-
var
|
22473
|
-
var
|
22474
|
-
var
|
22475
|
-
var
|
22496
|
+
var an = createSelector([La, Ea], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22497
|
+
var on = createSelector([Ca, Qr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22498
|
+
var RS = createSelector(sn, (a2) => a2.filter((e) => !e.read).length);
|
22499
|
+
var HS = H(Ca);
|
22500
|
+
var CS = H(La);
|
22501
|
+
var LS = H(an);
|
22502
|
+
var DS = H(on);
|
22503
|
+
var Da = H(Zo);
|
22504
|
+
var $S = createSelector([z, O], (a2, e) => Object.values(a2).map((i) => {
|
22476
22505
|
var r;
|
22477
22506
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
22478
22507
|
}));
|
22479
|
-
var
|
22480
|
-
var
|
22481
|
-
var
|
22482
|
-
var
|
22483
|
-
var
|
22508
|
+
var nn = (a2) => a2.roleChangeRequests[0] || null;
|
22509
|
+
var KS = createSelector([nn, z, Me], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
22510
|
+
var qS = createSelector([ot], (a2) => gt(a2));
|
22511
|
+
var jS = createSelector([la], (a2) => gt(a2));
|
22512
|
+
var dn = createSelector([Z, O], (a2, e) => {
|
22484
22513
|
let t = null;
|
22485
22514
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22486
22515
|
});
|
22487
|
-
var
|
22516
|
+
var ln = createSelector([ce, O], (a2, e) => {
|
22488
22517
|
let t = null;
|
22489
22518
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22490
22519
|
});
|
22491
|
-
var
|
22492
|
-
var
|
22520
|
+
var hn = ((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))(hn || {});
|
22521
|
+
var ts = class {
|
22493
22522
|
constructor() {
|
22494
22523
|
this.TAG = "[HTTPAnalyticsTransport]";
|
22495
|
-
this.failedEvents = new
|
22524
|
+
this.failedEvents = new Se("client-events");
|
22496
22525
|
this.isConnected = true;
|
22497
22526
|
this.env = null;
|
22498
22527
|
this.websocketURL = "";
|
@@ -22508,7 +22537,7 @@ var es = class {
|
|
22508
22537
|
this.addEventToStorage(e);
|
22509
22538
|
return;
|
22510
22539
|
}
|
22511
|
-
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" ?
|
22540
|
+
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" ? Qs : zs;
|
22512
22541
|
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) => {
|
22513
22542
|
if (r.status === 401) {
|
22514
22543
|
this.removeFromStorage(e);
|
@@ -22534,8 +22563,8 @@ var es = class {
|
|
22534
22563
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
22535
22564
|
}
|
22536
22565
|
};
|
22537
|
-
var
|
22538
|
-
var
|
22566
|
+
var Ae = new ts();
|
22567
|
+
var Ft = class {
|
22539
22568
|
static handleError(e) {
|
22540
22569
|
if (e.status === 404)
|
22541
22570
|
throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
|
@@ -22545,14 +22574,14 @@ var Vt = class {
|
|
22545
22574
|
static sendFeedback(s) {
|
22546
22575
|
return c(this, arguments, function* ({ token: e, eventEndpoint: t = "https://event.100ms.live", info: i, feedback: r }) {
|
22547
22576
|
l.d(this.TAG, `sendFeedback: feedbackEndpoint=${t} peerId=${i.peer.peer_id} session=${i.peer.session_id} `);
|
22548
|
-
let o = new URL("v2/client/feedback", t), n =
|
22577
|
+
let o = new URL("v2/client/feedback", t), n = M(h({}, i), { payload: r });
|
22549
22578
|
try {
|
22550
22579
|
let d = yield fetch(o, { headers: { Authorization: `Bearer ${e}` }, body: JSON.stringify(n), method: "POST" });
|
22551
22580
|
try {
|
22552
22581
|
this.handleError(d);
|
22553
22582
|
return;
|
22554
22583
|
} catch (u) {
|
22555
|
-
throw l.e(this.TAG, "error", u.message, d.status), u instanceof
|
22584
|
+
throw l.e(this.TAG, "error", u.message, d.status), u instanceof k ? u : S.APIErrors.ServerErrors(d.status, "FEEDBACK", u.message);
|
22556
22585
|
}
|
22557
22586
|
} catch (d) {
|
22558
22587
|
let u = d;
|
@@ -22561,67 +22590,67 @@ var Vt = class {
|
|
22561
22590
|
});
|
22562
22591
|
}
|
22563
22592
|
};
|
22564
|
-
|
22565
|
-
var
|
22566
|
-
var
|
22567
|
-
var
|
22568
|
-
var
|
22593
|
+
Ft.TAG = "[FeedbackService]";
|
22594
|
+
var is = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(is || {});
|
22595
|
+
var 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 || {});
|
22596
|
+
var ar = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(ar || {});
|
22597
|
+
var ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
|
22569
22598
|
var wn = (a2) => a2.localPeer.id;
|
22570
|
-
var
|
22571
|
-
var
|
22572
|
-
var
|
22573
|
-
var
|
22574
|
-
var
|
22575
|
-
var
|
22576
|
-
var
|
22577
|
-
var
|
22578
|
-
var
|
22599
|
+
var _n = (a2) => a2.localPeer.audioTrack;
|
22600
|
+
var Nn = (a2) => a2.localPeer.videoTrack;
|
22601
|
+
var On = (a2, e) => e;
|
22602
|
+
var to = (a2, e) => e;
|
22603
|
+
var xn = (a2) => a2.remoteTrackStats;
|
22604
|
+
var io = (a2) => a2.peerStats;
|
22605
|
+
var os = (a2) => a2.localTrackStats;
|
22606
|
+
var Re = createSelector([io, wn], (a2, e) => a2[e]);
|
22607
|
+
var Un = createSelector(Re, (a2) => {
|
22579
22608
|
var e;
|
22580
22609
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
22581
22610
|
});
|
22582
|
-
var
|
22611
|
+
var Bn = createSelector(Re, (a2) => {
|
22583
22612
|
var e;
|
22584
22613
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
22585
22614
|
});
|
22586
|
-
var
|
22615
|
+
var Vn = createSelector(Re, (a2) => {
|
22587
22616
|
var e;
|
22588
22617
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
22589
22618
|
});
|
22590
|
-
var
|
22619
|
+
var Fn = createSelector(Re, (a2) => {
|
22591
22620
|
var e;
|
22592
22621
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
22593
22622
|
});
|
22594
|
-
var
|
22623
|
+
var Gn = createSelector(Re, (a2) => {
|
22595
22624
|
var e;
|
22596
22625
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
22597
22626
|
});
|
22598
|
-
var
|
22627
|
+
var Wn = createSelector(Re, (a2) => {
|
22599
22628
|
var e;
|
22600
22629
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
22601
22630
|
});
|
22602
|
-
var
|
22631
|
+
var $n = createSelector(Re, (a2) => {
|
22603
22632
|
var e;
|
22604
22633
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
22605
22634
|
});
|
22606
|
-
var
|
22635
|
+
var Kn = createSelector(Re, (a2) => {
|
22607
22636
|
var e;
|
22608
22637
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
22609
22638
|
});
|
22610
|
-
var
|
22611
|
-
var
|
22612
|
-
var
|
22613
|
-
var jn = H(Kn);
|
22639
|
+
var qn = createSelector([io, On], (a2, e) => e ? a2[e] : void 0);
|
22640
|
+
var jn = createSelector([xn, to], (a2, e) => e ? a2[e] : void 0);
|
22641
|
+
var ns = createSelector([os, to], (a2, e) => e ? a2[e] : void 0);
|
22614
22642
|
var Jn = H(qn);
|
22615
|
-
var Qn =
|
22643
|
+
var Qn = H(jn);
|
22644
|
+
var zn = createSelector([os, _n], (a2, e) => {
|
22616
22645
|
var t;
|
22617
22646
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22618
22647
|
});
|
22619
|
-
var
|
22620
|
-
var
|
22648
|
+
var Yn = H(createSelector(ns, (a2) => a2 == null ? void 0 : a2[0]));
|
22649
|
+
var Xn = createSelector([os, Nn], (a2, e) => {
|
22621
22650
|
var t;
|
22622
22651
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22623
22652
|
});
|
22624
|
-
var
|
22653
|
+
var Zn = H(createSelector(ns, (a2) => a2));
|
22625
22654
|
|
22626
22655
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
22627
22656
|
import {
|
@@ -22740,7 +22769,7 @@ var RecordingStatus = () => {
|
|
22740
22769
|
};
|
22741
22770
|
var RecordingPauseStatus = () => {
|
22742
22771
|
const recording = useHMSStore29(selectRecordingState2);
|
22743
|
-
if (recording.hls && recording.hls.state ===
|
22772
|
+
if (recording.hls && recording.hls.state === Os.PAUSED) {
|
22744
22773
|
return /* @__PURE__ */ React64.createElement(
|
22745
22774
|
Tooltip,
|
22746
22775
|
{
|
@@ -23029,7 +23058,7 @@ init_define_process_env();
|
|
23029
23058
|
import { useEffect as useEffect24, useState as useState30 } from "react";
|
23030
23059
|
import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
|
23031
23060
|
var useUnreadPollQuizPresent = () => {
|
23032
|
-
const localPeerID = useHMSStore32(
|
23061
|
+
const localPeerID = useHMSStore32(Pe);
|
23033
23062
|
const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
|
23034
23063
|
const [unreadPollQuiz, setUnreadPollQuiz] = useState30(false);
|
23035
23064
|
useEffect24(() => {
|
@@ -23844,7 +23873,7 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
|
|
23844
23873
|
// src/Prebuilt/components/VirtualBackground/VBToggle.tsx
|
23845
23874
|
init_define_process_env();
|
23846
23875
|
import React77, { useEffect as useEffect25 } from "react";
|
23847
|
-
import { HMSVirtualBackgroundTypes as
|
23876
|
+
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background/hmsvbplugin";
|
23848
23877
|
import {
|
23849
23878
|
selectAppData as selectAppData5,
|
23850
23879
|
selectIsEffectsEnabled,
|
@@ -23868,7 +23897,7 @@ var VBToggle = () => {
|
|
23868
23897
|
var _a7;
|
23869
23898
|
if (!toggleVideo) {
|
23870
23899
|
(_a7 = VBHandler) == null ? void 0 : _a7.reset();
|
23871
|
-
hmsActions.setAppData(APP_DATA.background,
|
23900
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes3.NONE);
|
23872
23901
|
}
|
23873
23902
|
}, [hmsActions, toggleVideo]);
|
23874
23903
|
if (!isVideoOn || !isEffectsEnabled && isSafari || !isVBEnabled) {
|
@@ -27580,7 +27609,7 @@ var Chat = () => {
|
|
27580
27609
|
const listRef = useRef26(null);
|
27581
27610
|
const hmsActions = useHMSActions43();
|
27582
27611
|
const vanillaStore = useHMSVanillaStore11();
|
27583
|
-
const { enabled: isChatEnabled = true } = useHMSStore61(
|
27612
|
+
const { enabled: isChatEnabled = true } = useHMSStore61(sS("chatState" /* CHAT_STATE */)) || {};
|
27584
27613
|
const isMobile = useMedia21(config.media.md);
|
27585
27614
|
const isMobileHLSStream = useMobileHLSStream();
|
27586
27615
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -27670,7 +27699,7 @@ var NewMessageIndicator = ({
|
|
27670
27699
|
scrollToBottom,
|
27671
27700
|
listRef
|
27672
27701
|
}) => {
|
27673
|
-
const unreadCount = useHMSStore61(
|
27702
|
+
const unreadCount = useHMSStore61(Am);
|
27674
27703
|
if (!unreadCount || !listRef.current) {
|
27675
27704
|
return null;
|
27676
27705
|
}
|
@@ -28590,7 +28619,7 @@ var VideoTile_default = VideoTile;
|
|
28590
28619
|
init_define_process_env();
|
28591
28620
|
import React131, { useEffect as useEffect42, useRef as useRef27, useState as useState57 } from "react";
|
28592
28621
|
import { useMedia as useMedia25 } from "react-use";
|
28593
|
-
import { HMSVirtualBackgroundTypes as
|
28622
|
+
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes5 } from "@100mslive/hms-virtual-background/hmsvbplugin";
|
28594
28623
|
import {
|
28595
28624
|
HMSRoomState as HMSRoomState5,
|
28596
28625
|
selectIsLargeRoom as selectIsLargeRoom3,
|
@@ -28607,7 +28636,7 @@ import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as C
|
|
28607
28636
|
// src/Prebuilt/components/VirtualBackground/VBCollection.tsx
|
28608
28637
|
init_define_process_env();
|
28609
28638
|
import React130 from "react";
|
28610
|
-
import { HMSVirtualBackgroundTypes as
|
28639
|
+
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes4 } from "@100mslive/hms-virtual-background/hmsvbplugin";
|
28611
28640
|
|
28612
28641
|
// src/Prebuilt/components/VirtualBackground/VBOption.tsx
|
28613
28642
|
init_define_process_env();
|
@@ -28666,7 +28695,7 @@ var VBCollection = ({
|
|
28666
28695
|
VBOption.Root,
|
28667
28696
|
__spreadProps(__spreadValues({
|
28668
28697
|
key: option.value,
|
28669
|
-
testid: option.value ===
|
28698
|
+
testid: option.value === HMSVirtualBackgroundTypes4.IMAGE ? `virtual_bg_option-${index}` : option.value
|
28670
28699
|
}, option), {
|
28671
28700
|
isActive: activeBackground === option.value
|
28672
28701
|
}),
|
@@ -28683,7 +28712,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28683
28712
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
28684
28713
|
const hmsActions = useHMSActions46();
|
28685
28714
|
const localPeer = useHMSStore69(selectLocalPeer8);
|
28686
|
-
const role = useHMSStore69(
|
28715
|
+
const role = useHMSStore69(ot);
|
28687
28716
|
const isVideoOn = useHMSStore69(selectIsLocalVideoEnabled6);
|
28688
28717
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
28689
28718
|
const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
|
@@ -28692,12 +28721,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28692
28721
|
const roomState = useHMSStore69(selectRoomState5);
|
28693
28722
|
const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
|
28694
28723
|
const isEffectsSupported = VBHandler.isEffectsSupported();
|
28695
|
-
const isEffectsEnabled = useHMSStore69(
|
28696
|
-
const effectsKey = useHMSStore69(
|
28724
|
+
const isEffectsEnabled = useHMSStore69(Bm);
|
28725
|
+
const effectsKey = useHMSStore69(Fm);
|
28697
28726
|
const isMobile = useMedia25(config.media.md);
|
28698
28727
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
28699
28728
|
const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
|
28700
|
-
const background = useHMSStore69(
|
28729
|
+
const background = useHMSStore69(rS(APP_DATA.background));
|
28701
28730
|
const mediaList = backgroundMedia.map((media) => media.url || "");
|
28702
28731
|
const pluginLoadingRef = useRef27(false);
|
28703
28732
|
const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
|
@@ -28737,9 +28766,9 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28737
28766
|
}
|
28738
28767
|
const handleDefaultBackground = () => __async(void 0, null, function* () {
|
28739
28768
|
switch (background) {
|
28740
|
-
case
|
28769
|
+
case HMSVirtualBackgroundTypes5.NONE:
|
28741
28770
|
break;
|
28742
|
-
case
|
28771
|
+
case HMSVirtualBackgroundTypes5.BLUR:
|
28743
28772
|
yield VBHandler.setBlur(blurAmount);
|
28744
28773
|
break;
|
28745
28774
|
default:
|
@@ -28806,10 +28835,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28806
28835
|
{
|
28807
28836
|
title: "No effect",
|
28808
28837
|
icon: /* @__PURE__ */ React131.createElement(CrossCircleIcon3, { style: iconDims }),
|
28809
|
-
value:
|
28838
|
+
value: HMSVirtualBackgroundTypes5.NONE,
|
28810
28839
|
onClick: () => __async(void 0, null, function* () {
|
28811
28840
|
yield VBHandler.removeEffects();
|
28812
|
-
hmsActions.setAppData(APP_DATA.background,
|
28841
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes5.NONE);
|
28813
28842
|
if (isMobile) {
|
28814
28843
|
toggleVB();
|
28815
28844
|
}
|
@@ -28819,11 +28848,11 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28819
28848
|
{
|
28820
28849
|
title: "Blur",
|
28821
28850
|
icon: /* @__PURE__ */ React131.createElement(BlurPersonHighIcon, { style: iconDims }),
|
28822
|
-
value:
|
28851
|
+
value: HMSVirtualBackgroundTypes5.BLUR,
|
28823
28852
|
onClick: () => __async(void 0, null, function* () {
|
28824
28853
|
var _a8;
|
28825
28854
|
yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
|
28826
|
-
hmsActions.setAppData(APP_DATA.background,
|
28855
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes5.BLUR);
|
28827
28856
|
}),
|
28828
28857
|
supported: isBlurSupported
|
28829
28858
|
}
|
@@ -28831,7 +28860,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28831
28860
|
activeBackground: background
|
28832
28861
|
}
|
28833
28862
|
),
|
28834
|
-
/* @__PURE__ */ React131.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background ===
|
28863
|
+
/* @__PURE__ */ React131.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === HMSVirtualBackgroundTypes5.BLUR && isBlurSupported ? /* @__PURE__ */ React131.createElement(Box, null, /* @__PURE__ */ React131.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ React131.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ React131.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ React131.createElement(
|
28835
28864
|
Slider,
|
28836
28865
|
{
|
28837
28866
|
showTooltip: false,
|
@@ -29711,7 +29740,7 @@ var Grid = React143.forwardRef(
|
|
29711
29740
|
justifyContent: "center",
|
29712
29741
|
flexFlow: "row wrap",
|
29713
29742
|
minHeight: 0,
|
29714
|
-
"@
|
29743
|
+
"@lg": { gap: edgeToEdge ? 0 : "$4" }
|
29715
29744
|
}
|
29716
29745
|
},
|
29717
29746
|
tiles == null ? void 0 : tiles.map((tile) => {
|
@@ -29789,14 +29818,14 @@ var useTileLayout = ({
|
|
29789
29818
|
const matrix = new Array(maxRows).fill(null).map((_, i) => {
|
29790
29819
|
const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
|
29791
29820
|
const rowElements = [];
|
29792
|
-
for (let
|
29821
|
+
for (let j = 0; j < numCols; j++) {
|
29793
29822
|
if (index < page.length) {
|
29794
29823
|
rowElements.push(page[index++]);
|
29795
29824
|
}
|
29796
29825
|
}
|
29797
29826
|
return rowElements;
|
29798
29827
|
});
|
29799
|
-
const gap = edgeToEdge ? 0 : 8;
|
29828
|
+
const gap = edgeToEdge && isMobile ? 0 : 8;
|
29800
29829
|
const maxHeight = height - (maxRows - 1) * gap;
|
29801
29830
|
const maxRowHeight = maxHeight / matrix.length;
|
29802
29831
|
const aspectRatios = isMobile && (noOfTilesInPage === 1 || noOfTilesInPage > 3) ? aspectRatioConfig.mobile : aspectRatioConfig.default;
|
@@ -29807,10 +29836,10 @@ var useTileLayout = ({
|
|
29807
29836
|
tileHeight = maxRowHeight;
|
29808
29837
|
} else {
|
29809
29838
|
const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
|
29810
|
-
for (const
|
29811
|
-
if (
|
29812
|
-
if (tileHeight <
|
29813
|
-
tileHeight =
|
29839
|
+
for (const h2 of calcHeights) {
|
29840
|
+
if (h2 < maxRowHeight) {
|
29841
|
+
if (tileHeight < h2) {
|
29842
|
+
tileHeight = h2;
|
29814
29843
|
}
|
29815
29844
|
}
|
29816
29845
|
}
|
@@ -29828,8 +29857,8 @@ var useTileLayout = ({
|
|
29828
29857
|
}
|
29829
29858
|
}
|
29830
29859
|
for (let i = 0; i < row.length; i++) {
|
29831
|
-
row[i].width = tileWidth
|
29832
|
-
row[i].height = tileHeight
|
29860
|
+
row[i].width = tileWidth;
|
29861
|
+
row[i].height = tileHeight;
|
29833
29862
|
}
|
29834
29863
|
}
|
29835
29864
|
}
|
@@ -33252,7 +33281,7 @@ var ErrorBoundary = class extends Component {
|
|
33252
33281
|
left: 0
|
33253
33282
|
}
|
33254
33283
|
},
|
33255
|
-
/* @__PURE__ */ React177.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ React177.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ React177.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ React177.createElement("br", null), "Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on", /* @__PURE__ */ React177.createElement("a", { href: "https://
|
33284
|
+
/* @__PURE__ */ React177.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ React177.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ React177.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ React177.createElement("br", null), "Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on", /* @__PURE__ */ React177.createElement("a", { href: "https://dashboard.100ms.live/dashboard", target: "_blank", rel: "noreferrer" }, "Dashboard")),
|
33256
33285
|
/* @__PURE__ */ React177.createElement(Flex, null, /* @__PURE__ */ React177.createElement(Tooltip, { title: "Reload page" }, /* @__PURE__ */ React177.createElement(
|
33257
33286
|
Button,
|
33258
33287
|
{
|
@@ -34128,7 +34157,11 @@ var DeviceChangeNotifications = () => {
|
|
34128
34157
|
// src/Prebuilt/components/Notifications/DeviceInUseError.tsx
|
34129
34158
|
init_define_process_env();
|
34130
34159
|
import React186, { useEffect as useEffect72, useState as useState79 } from "react";
|
34131
|
-
import {
|
34160
|
+
import {
|
34161
|
+
HMSNotificationTypes as HMSNotificationTypes4,
|
34162
|
+
HMSTrackExceptionTrackType,
|
34163
|
+
useHMSNotifications as useHMSNotifications4
|
34164
|
+
} from "@100mslive/react-sdk";
|
34132
34165
|
var Instruction = ({ description }) => /* @__PURE__ */ React186.createElement("li", null, /* @__PURE__ */ React186.createElement(DialogRow, { css: { ml: "$4" } }, /* @__PURE__ */ React186.createElement(Text, { variant: "body2" }, description)));
|
34133
34166
|
function DeviceInUseError() {
|
34134
34167
|
const notification = useHMSNotifications4(HMSNotificationTypes4.ERROR);
|
@@ -34139,15 +34172,17 @@ function DeviceInUseError() {
|
|
34139
34172
|
if (!error || error.code !== 3003) {
|
34140
34173
|
return;
|
34141
34174
|
}
|
34175
|
+
const errorTrackExceptionType = error == null ? void 0 : error.trackType;
|
34176
|
+
const hasAudio = errorTrackExceptionType === HMSTrackExceptionTrackType.AUDIO;
|
34177
|
+
const hasVideo = errorTrackExceptionType === HMSTrackExceptionTrackType.VIDEO;
|
34178
|
+
const hasAudioVideo = errorTrackExceptionType === HMSTrackExceptionTrackType.AUDIO_VIDEO;
|
34179
|
+
const hasScreen = errorTrackExceptionType === HMSTrackExceptionTrackType.SCREEN;
|
34142
34180
|
const errorMessage = error == null ? void 0 : error.message;
|
34143
34181
|
ToastManager.addToast({
|
34144
34182
|
title: `Error: ${errorMessage} - ${error == null ? void 0 : error.description}`,
|
34145
34183
|
action: /* @__PURE__ */ React186.createElement(Button, { outlined: true, variant: "standard", css: { w: "max-content" }, onClick: () => setShowDeviceInUseModal(true) }, "Help")
|
34146
34184
|
});
|
34147
|
-
|
34148
|
-
const hasVideo = errorMessage.includes("video");
|
34149
|
-
const hasScreen = errorMessage.includes("screen");
|
34150
|
-
if (hasAudio && hasVideo) {
|
34185
|
+
if (hasAudioVideo) {
|
34151
34186
|
setDeviceType("camera and microphone");
|
34152
34187
|
} else if (hasAudio) {
|
34153
34188
|
setDeviceType("microphone");
|
@@ -34562,8 +34597,8 @@ import { useEffect as useEffect76 } from "react";
|
|
34562
34597
|
import { useAwayNotifications as useAwayNotifications5, useHMSNotifications as useHMSNotifications8, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
|
34563
34598
|
var MessageNotifications = () => {
|
34564
34599
|
var _a7, _b7;
|
34565
|
-
const notification = useHMSNotifications8(
|
34566
|
-
const amIScreenSharing = useHMSStore92(
|
34600
|
+
const notification = useHMSNotifications8(vr.NEW_MESSAGE);
|
34601
|
+
const amIScreenSharing = useHMSStore92(jr);
|
34567
34602
|
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
34568
34603
|
const { pipWindow } = usePIPWindow();
|
34569
34604
|
const { showNotification } = useAwayNotifications5();
|
@@ -34627,7 +34662,11 @@ var PeerNotifications = () => {
|
|
34627
34662
|
init_define_process_env();
|
34628
34663
|
import React190, { useEffect as useEffect78, useState as useState81 } from "react";
|
34629
34664
|
import { useMedia as useMedia50 } from "react-use";
|
34630
|
-
import {
|
34665
|
+
import {
|
34666
|
+
HMSNotificationTypes as HMSNotificationTypes9,
|
34667
|
+
HMSTrackExceptionTrackType as HMSTrackExceptionTrackType2,
|
34668
|
+
useHMSNotifications as useHMSNotifications10
|
34669
|
+
} from "@100mslive/react-sdk";
|
34631
34670
|
import androidPermissionAlert from "./android-perm-1.png";
|
34632
34671
|
import iosPermissions from "./ios-perm-0.png";
|
34633
34672
|
function PermissionErrorNotificationModal() {
|
@@ -34642,11 +34681,12 @@ var PermissionErrorModal = ({ error }) => {
|
|
34642
34681
|
if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
|
34643
34682
|
return;
|
34644
34683
|
}
|
34645
|
-
const
|
34646
|
-
const hasAudio =
|
34647
|
-
const hasVideo =
|
34648
|
-
const
|
34649
|
-
|
34684
|
+
const errorTrackExceptionType = error == null ? void 0 : error.trackType;
|
34685
|
+
const hasAudio = errorTrackExceptionType === HMSTrackExceptionTrackType2.AUDIO;
|
34686
|
+
const hasVideo = errorTrackExceptionType === HMSTrackExceptionTrackType2.VIDEO;
|
34687
|
+
const hasAudioVideo = errorTrackExceptionType === HMSTrackExceptionTrackType2.AUDIO_VIDEO;
|
34688
|
+
const hasScreen = errorTrackExceptionType === HMSTrackExceptionTrackType2.SCREEN;
|
34689
|
+
if (hasAudioVideo) {
|
34650
34690
|
setDeviceType("camera and microphone");
|
34651
34691
|
} else if (hasAudio) {
|
34652
34692
|
setDeviceType("microphone");
|
@@ -35414,7 +35454,6 @@ var HMSPrebuilt = React204.forwardRef(
|
|
35414
35454
|
useEffect89(() => {
|
35415
35455
|
return () => {
|
35416
35456
|
var _a8;
|
35417
|
-
VBHandler.reset();
|
35418
35457
|
(_a8 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a8.hmsActions.leave();
|
35419
35458
|
};
|
35420
35459
|
}, []);
|