@openclaw/msteams 2026.7.1-beta.1 → 2026.7.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js +2 -2
- package/dist/{channel-BrQGaAEV.js → channel-Cf5LJ4aO.js} +113 -8
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-CjEyJo5B.js → channel.runtime-Bwu6Tjhf.js} +12 -6
- package/dist/directory-contract-api.js +1 -1
- package/dist/doctor-contract-api.js +10 -31
- package/dist/{oauth-CKGUl-St.js → oauth-BifWxWzq.js} +1 -1
- package/dist/{polls-C1VgSvKE.js → polls-B_hs4aKm.js} +13 -23
- package/dist/{probe-CiZIJ_eX.js → probe-BnyZRZsD.js} +26 -17
- package/dist/{resolve-allowlist-DlH_aNya.js → resolve-allowlist-Dnw4aNOu.js} +15 -17
- package/dist/setup-plugin-api.js +2 -2
- package/dist/{setup-surface-CuIeEFrR.js → setup-surface-qW-ECHL-.js} +2 -2
- package/dist/{src-doNP_Xd_.js → src-DZFs5XtZ.js} +152 -256
- package/dist/{sso-token-store-BYZaKr82.js → sso-token-store-DrVbnCUF.js} +1 -1
- package/node_modules/@azure/msal-browser/README.md +1 -0
- package/node_modules/@azure/msal-browser/dist/app/IPublicClientApplication.mjs +16 -16
- package/node_modules/@azure/msal-browser/dist/app/IPublicClientApplication.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/app/PublicClientApplication.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +11 -11
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +21 -21
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthProvider.mjs +3 -3
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/AccountManager.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.mjs +109 -34
- package/node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/CacheHelpers.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/CacheKeys.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/CookieStorage.mjs +4 -4
- package/node_modules/@azure/msal-browser/dist/cache/CookieStorage.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/DatabaseStorage.mjs +7 -7
- package/node_modules/@azure/msal-browser/dist/cache/DatabaseStorage.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/EncryptedData.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/LocalStorage.mjs +6 -6
- package/node_modules/@azure/msal-browser/dist/cache/LocalStorage.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/MemoryStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/SessionStorage.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/cache/SessionStorage.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/TokenCache.mjs +10 -8
- package/node_modules/@azure/msal-browser/dist/cache/TokenCache.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/config/Configuration.mjs +6 -4
- package/node_modules/@azure/msal-browser/dist/config/Configuration.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/controllers/NestedAppAuthController.mjs +16 -17
- package/node_modules/@azure/msal-browser/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/controllers/StandardController.mjs +26 -26
- package/node_modules/@azure/msal-browser/dist/controllers/StandardController.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/crypto/BrowserCrypto.mjs +7 -7
- package/node_modules/@azure/msal-browser/dist/crypto/BrowserCrypto.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/crypto/CryptoOps.mjs +4 -4
- package/node_modules/@azure/msal-browser/dist/crypto/CryptoOps.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/crypto/PkceGenerator.mjs +3 -3
- package/node_modules/@azure/msal-browser/dist/crypto/PkceGenerator.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthConstants.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/controller/CustomAuthStandardController.mjs +13 -8
- package/node_modules/@azure/msal-browser/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/CustomAuthAuthority.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/CustomAuthAuthority.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +4 -4
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +4 -4
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +4 -4
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +3 -3
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/utils/CustomHeaderUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/index.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +3 -3
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +3 -3
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +3 -3
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +5 -5
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/encode/Base64Decode.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/encode/Base64Decode.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/encode/Base64Encode.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/BrowserAuthError.mjs +5 -5
- package/node_modules/@azure/msal-browser/dist/error/BrowserAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.mjs +5 -5
- package/node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/NativeAuthError.mjs +20 -10
- package/node_modules/@azure/msal-browser/dist/error/NativeAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/NestedAppAuthError.mjs +9 -5
- package/node_modules/@azure/msal-browser/dist/error/NestedAppAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/event/EventHandler.mjs +7 -6
- package/node_modules/@azure/msal-browser/dist/event/EventHandler.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/event/EventMessage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/event/EventType.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/index.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.mjs +13 -9
- package/node_modules/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/PlatformAuthInteractionClient.mjs +27 -23
- package/node_modules/@azure/msal-browser/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.mjs +17 -17
- package/node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.mjs +27 -24
- package/node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.mjs +5 -5
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentCacheClient.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentCacheClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.mjs +45 -23
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.mjs +4 -4
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.mjs +6 -6
- package/node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_handler/InteractionHandler.mjs +3 -3
- package/node_modules/@azure/msal-browser/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.mjs +13 -27
- package/node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/log-strings-mapping.json +7 -3
- package/node_modules/@azure/msal-browser/dist/naa/BridgeError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/naa/BridgeProxy.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/naa/BridgeStatusCode.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.mjs +18 -17
- package/node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/navigation/NavigationClient.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/navigation/NavigationClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/network/FetchClient.mjs +7 -7
- package/node_modules/@azure/msal-browser/dist/network/FetchClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/operatingcontext/NestedAppOperatingContext.mjs +3 -3
- package/node_modules/@azure/msal-browser/dist/operatingcontext/NestedAppOperatingContext.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/packageMetadata.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/protocol/Authorize.mjs +8 -8
- package/node_modules/@azure/msal-browser/dist/protocol/Authorize.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/redirect_bridge/index.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/request/RequestHelpers.mjs +5 -5
- package/node_modules/@azure/msal-browser/dist/request/RequestHelpers.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/response/ResponseHandler.mjs +11 -11
- package/node_modules/@azure/msal-browser/dist/response/ResponseHandler.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceEvents.mjs +2 -3
- package/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/BrowserConstants.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/BrowserProtocolUtils.mjs +4 -4
- package/node_modules/@azure/msal-browser/dist/utils/BrowserProtocolUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/BrowserUtils.mjs +26 -20
- package/node_modules/@azure/msal-browser/dist/utils/BrowserUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/Helpers.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/log-strings-mapping.json +7 -3
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.cjs +1281 -1030
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.js +1172 -925
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/node_modules/@azure/msal-browser/lib/log-strings-mapping.json +7 -3
- package/node_modules/@azure/msal-browser/lib/msal-browser.cjs +1199 -917
- package/node_modules/@azure/msal-browser/lib/msal-browser.cjs.map +1 -1
- package/node_modules/@azure/msal-browser/lib/msal-browser.js +1199 -917
- package/node_modules/@azure/msal-browser/lib/msal-browser.js.map +1 -1
- package/node_modules/@azure/msal-browser/lib/msal-browser.min.js +2 -2
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.cjs +55 -51
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.js +55 -51
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.min.js +2 -2
- package/node_modules/@azure/msal-browser/package.json +5 -6
- package/node_modules/@azure/msal-browser/src/app/IPublicClientApplication.ts +30 -15
- package/node_modules/@azure/msal-browser/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +2 -0
- package/node_modules/@azure/msal-browser/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +8 -2
- package/node_modules/@azure/msal-browser/src/broker/nativeBroker/PlatformAuthProvider.ts +2 -1
- package/node_modules/@azure/msal-browser/src/cache/BrowserCacheManager.ts +163 -45
- package/node_modules/@azure/msal-browser/src/cache/CookieStorage.ts +13 -3
- package/node_modules/@azure/msal-browser/src/cache/DatabaseStorage.ts +12 -6
- package/node_modules/@azure/msal-browser/src/cache/LocalStorage.ts +8 -4
- package/node_modules/@azure/msal-browser/src/cache/SessionStorage.ts +2 -1
- package/node_modules/@azure/msal-browser/src/cache/TokenCache.ts +22 -7
- package/node_modules/@azure/msal-browser/src/config/Configuration.ts +21 -4
- package/node_modules/@azure/msal-browser/src/controllers/NestedAppAuthController.ts +19 -11
- package/node_modules/@azure/msal-browser/src/controllers/StandardController.ts +26 -15
- package/node_modules/@azure/msal-browser/src/crypto/BrowserCrypto.ts +10 -2
- package/node_modules/@azure/msal-browser/src/crypto/CryptoOps.ts +4 -2
- package/node_modules/@azure/msal-browser/src/crypto/PkceGenerator.ts +8 -2
- package/node_modules/@azure/msal-browser/src/custom_auth/controller/CustomAuthStandardController.ts +2 -4
- package/node_modules/@azure/msal-browser/src/custom_auth/core/CustomAuthAuthority.ts +4 -2
- package/node_modules/@azure/msal-browser/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +2 -1
- package/node_modules/@azure/msal-browser/src/encode/Base64Decode.ts +2 -1
- package/node_modules/@azure/msal-browser/src/error/BrowserAuthError.ts +9 -3
- package/node_modules/@azure/msal-browser/src/error/BrowserConfigurationAuthError.ts +9 -3
- package/node_modules/@azure/msal-browser/src/error/NativeAuthError.ts +44 -11
- package/node_modules/@azure/msal-browser/src/error/NestedAppAuthError.ts +14 -4
- package/node_modules/@azure/msal-browser/src/event/EventHandler.ts +2 -1
- package/node_modules/@azure/msal-browser/src/interaction_client/BaseInteractionClient.ts +22 -7
- package/node_modules/@azure/msal-browser/src/interaction_client/PlatformAuthInteractionClient.ts +58 -24
- package/node_modules/@azure/msal-browser/src/interaction_client/PopupClient.ts +23 -11
- package/node_modules/@azure/msal-browser/src/interaction_client/RedirectClient.ts +48 -18
- package/node_modules/@azure/msal-browser/src/interaction_client/SilentAuthCodeClient.ts +8 -4
- package/node_modules/@azure/msal-browser/src/interaction_client/SilentCacheClient.ts +3 -1
- package/node_modules/@azure/msal-browser/src/interaction_client/SilentIframeClient.ts +99 -61
- package/node_modules/@azure/msal-browser/src/interaction_client/SilentRefreshClient.ts +6 -3
- package/node_modules/@azure/msal-browser/src/interaction_client/StandardInteractionClient.ts +8 -4
- package/node_modules/@azure/msal-browser/src/interaction_handler/InteractionHandler.ts +4 -2
- package/node_modules/@azure/msal-browser/src/interaction_handler/SilentHandler.ts +15 -33
- package/node_modules/@azure/msal-browser/src/naa/mapping/NestedAppAuthAdapter.ts +43 -14
- package/node_modules/@azure/msal-browser/src/navigation/NavigationClient.ts +1 -0
- package/node_modules/@azure/msal-browser/src/network/FetchClient.ts +14 -6
- package/node_modules/@azure/msal-browser/src/packageMetadata.ts +1 -1
- package/node_modules/@azure/msal-browser/src/protocol/Authorize.ts +23 -7
- package/node_modules/@azure/msal-browser/src/request/RequestHelpers.ts +6 -3
- package/node_modules/@azure/msal-browser/src/response/ResponseHandler.ts +20 -7
- package/node_modules/@azure/msal-browser/src/telemetry/BrowserPerformanceEvents.ts +0 -1
- package/node_modules/@azure/msal-browser/src/utils/BrowserProtocolUtils.ts +11 -3
- package/node_modules/@azure/msal-browser/src/utils/BrowserUtils.ts +44 -17
- package/node_modules/@azure/msal-browser/types/app/IPublicClientApplication.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/cache/BrowserCacheManager.d.ts +18 -1
- package/node_modules/@azure/msal-browser/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/cache/CookieStorage.d.ts +1 -1
- package/node_modules/@azure/msal-browser/types/cache/CookieStorage.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/cache/DatabaseStorage.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/cache/LocalStorage.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/cache/SessionStorage.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/cache/TokenCache.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/config/Configuration.d.ts +10 -1
- package/node_modules/@azure/msal-browser/types/config/Configuration.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/controllers/StandardController.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/crypto/BrowserCrypto.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/crypto/CryptoOps.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/node_modules/@azure/msal-browser/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/encode/Base64Decode.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/error/BrowserAuthError.d.ts +2 -2
- package/node_modules/@azure/msal-browser/types/error/BrowserAuthError.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/error/BrowserConfigurationAuthError.d.ts +2 -2
- package/node_modules/@azure/msal-browser/types/error/BrowserConfigurationAuthError.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/error/NativeAuthError.d.ts +2 -2
- package/node_modules/@azure/msal-browser/types/error/NativeAuthError.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/error/NestedAppAuthError.d.ts +2 -2
- package/node_modules/@azure/msal-browser/types/error/NestedAppAuthError.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/event/EventHandler.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/BaseInteractionClient.d.ts +2 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_handler/SilentHandler.d.ts +13 -6
- package/node_modules/@azure/msal-browser/types/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/navigation/NavigationClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/network/FetchClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/packageMetadata.d.ts +1 -1
- package/node_modules/@azure/msal-browser/types/protocol/Authorize.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/request/RequestHelpers.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/response/ResponseHandler.d.ts +1 -1
- package/node_modules/@azure/msal-browser/types/response/ResponseHandler.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/telemetry/BrowserPerformanceEvents.d.ts +0 -1
- package/node_modules/@azure/msal-browser/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/utils/BrowserProtocolUtils.d.ts +1 -1
- package/node_modules/@azure/msal-browser/types/utils/BrowserProtocolUtils.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/utils/BrowserUtils.d.ts +5 -3
- package/node_modules/@azure/msal-browser/types/utils/BrowserUtils.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/dist/account/AccountInfo.mjs +9 -3
- package/node_modules/@azure/msal-common/dist/account/AccountInfo.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/account/AuthToken.mjs +9 -23
- package/node_modules/@azure/msal-common/dist/account/AuthToken.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.mjs +4 -4
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/account/TokenClaims.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/Authority.mjs +36 -37
- package/node_modules/@azure/msal-common/dist/authority/Authority.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.mjs +3 -3
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.mjs +2 -2
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.mjs +16 -10
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.mjs +62 -46
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/cache/utils/AccountEntityUtils.mjs +23 -7
- package/node_modules/@azure/msal-common/dist/cache/utils/AccountEntityUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/cache/utils/CacheHelpers.mjs +12 -4
- package/node_modules/@azure/msal-common/dist/cache/utils/CacheHelpers.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.mjs +7 -7
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.mjs +8 -8
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.mjs +10 -18
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.mjs +6 -5
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/constants/AADServerParamKeys.mjs +7 -3
- package/node_modules/@azure/msal-common/dist/constants/AADServerParamKeys.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.mjs +11 -11
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.mjs +3 -3
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.mjs +2 -2
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/error/AuthError.mjs +5 -7
- package/node_modules/@azure/msal-common/dist/error/AuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/error/AuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/CacheError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/CacheErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs +5 -5
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs +2 -4
- package/node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.mjs +5 -5
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs +5 -6
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.mjs +5 -5
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/NetworkError.mjs +2 -2
- package/node_modules/@azure/msal-common/dist/error/NetworkError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/error/PlatformBrokerError.mjs +3 -3
- package/node_modules/@azure/msal-common/dist/error/PlatformBrokerError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/error/ServerError.mjs +3 -3
- package/node_modules/@azure/msal-common/dist/error/ServerError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/index-node.mjs +2 -2
- package/node_modules/@azure/msal-common/dist/index.mjs +2 -2
- package/node_modules/@azure/msal-common/dist/logger/Logger.mjs +26 -12
- package/node_modules/@azure/msal-common/dist/logger/Logger.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.mjs +4 -3
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.mjs +2 -1
- package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.mjs +2 -2
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/packageMetadata.mjs +2 -2
- package/node_modules/@azure/msal-common/dist/protocol/Authorize.mjs +18 -14
- package/node_modules/@azure/msal-common/dist/protocol/Authorize.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/protocol/Token.mjs +4 -2
- package/node_modules/@azure/msal-common/dist/protocol/Token.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.mjs +4 -4
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.mjs +3 -3
- package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.mjs +48 -23
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.mjs +13 -12
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.mjs +30 -27
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.mjs +20 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.mjs +15 -2
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvents.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.mjs +4 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs +54 -22
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/url/UrlString.mjs +15 -14
- package/node_modules/@azure/msal-common/dist/url/UrlString.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/utils/ClientAssertionUtils.mjs +3 -2
- package/node_modules/@azure/msal-common/dist/utils/ClientAssertionUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/utils/Constants.mjs +7 -3
- package/node_modules/@azure/msal-common/dist/utils/Constants.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/utils/FunctionWrappers.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.mjs +12 -9
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/UrlUtils.mjs +55 -41
- package/node_modules/@azure/msal-common/dist/utils/UrlUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/AccountInfo.mjs +9 -3
- package/node_modules/@azure/msal-common/dist-browser/account/AccountInfo.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/AuthToken.mjs +9 -23
- package/node_modules/@azure/msal-common/dist-browser/account/AuthToken.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/CcsCredential.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/ClientInfo.mjs +4 -4
- package/node_modules/@azure/msal-common/dist-browser/account/ClientInfo.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/TokenClaims.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/Authority.mjs +52 -50
- package/node_modules/@azure/msal-common/dist-browser/authority/Authority.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityFactory.mjs +3 -3
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityFactory.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityMetadata.mjs +8 -7
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityMetadata.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityOptions.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityType.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/OpenIdConfigResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/ProtocolMode.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/RegionDiscovery.mjs +16 -10
- package/node_modules/@azure/msal-common/dist-browser/authority/RegionDiscovery.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/cache/CacheManager.mjs +63 -47
- package/node_modules/@azure/msal-common/dist-browser/cache/CacheManager.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/cache/persistence/TokenCacheContext.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/cache/utils/AccountEntityUtils.mjs +23 -7
- package/node_modules/@azure/msal-common/dist-browser/cache/utils/AccountEntityUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/cache/utils/CacheHelpers.mjs +12 -4
- package/node_modules/@azure/msal-common/dist-browser/cache/utils/CacheHelpers.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/client/AuthorizationCodeClient.mjs +10 -10
- package/node_modules/@azure/msal-common/dist-browser/client/AuthorizationCodeClient.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/client/RefreshTokenClient.mjs +9 -9
- package/node_modules/@azure/msal-common/dist-browser/client/RefreshTokenClient.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/client/SilentFlowClient.mjs +11 -19
- package/node_modules/@azure/msal-common/dist-browser/client/SilentFlowClient.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/config/ClientConfiguration.mjs +6 -5
- package/node_modules/@azure/msal-common/dist-browser/config/ClientConfiguration.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/constants/AADServerParamKeys.mjs +7 -3
- package/node_modules/@azure/msal-common/dist-browser/constants/AADServerParamKeys.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/crypto/ICrypto.mjs +11 -11
- package/node_modules/@azure/msal-common/dist-browser/crypto/ICrypto.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/crypto/JoseHeader.mjs +3 -3
- package/node_modules/@azure/msal-common/dist-browser/crypto/JoseHeader.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/crypto/PopTokenGenerator.mjs +2 -2
- package/node_modules/@azure/msal-common/dist-browser/crypto/PopTokenGenerator.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/AuthError.mjs +5 -7
- package/node_modules/@azure/msal-common/dist-browser/error/AuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/AuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/CacheError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/CacheErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ClientAuthError.mjs +5 -5
- package/node_modules/@azure/msal-common/dist-browser/error/ClientAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ClientAuthErrorCodes.mjs +2 -4
- package/node_modules/@azure/msal-common/dist-browser/error/ClientAuthErrorCodes.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ClientConfigurationError.mjs +5 -5
- package/node_modules/@azure/msal-common/dist-browser/error/ClientConfigurationError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ClientConfigurationErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthError.mjs +5 -6
- package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/JoseHeaderError.mjs +5 -5
- package/node_modules/@azure/msal-common/dist-browser/error/JoseHeaderError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/JoseHeaderErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/NetworkError.mjs +2 -2
- package/node_modules/@azure/msal-common/dist-browser/error/NetworkError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/PlatformBrokerError.mjs +3 -3
- package/node_modules/@azure/msal-common/dist-browser/error/PlatformBrokerError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ServerError.mjs +3 -3
- package/node_modules/@azure/msal-common/dist-browser/error/ServerError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/index-browser.mjs +2 -2
- package/node_modules/@azure/msal-common/dist-browser/index.mjs +2 -2
- package/node_modules/@azure/msal-common/dist-browser/log-strings-mapping.json +11 -3
- package/node_modules/@azure/msal-common/dist-browser/logger/Logger.mjs +26 -12
- package/node_modules/@azure/msal-common/dist-browser/logger/Logger.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/network/INetworkModule.mjs +4 -3
- package/node_modules/@azure/msal-common/dist-browser/network/INetworkModule.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/network/RequestThumbprint.mjs +2 -1
- package/node_modules/@azure/msal-common/dist-browser/network/RequestThumbprint.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/network/ThrottlingUtils.mjs +2 -2
- package/node_modules/@azure/msal-common/dist-browser/network/ThrottlingUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/packageMetadata.mjs +2 -2
- package/node_modules/@azure/msal-common/dist-browser/protocol/Authorize.mjs +18 -14
- package/node_modules/@azure/msal-common/dist-browser/protocol/Authorize.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/protocol/Token.mjs +5 -3
- package/node_modules/@azure/msal-common/dist-browser/protocol/Token.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/request/AuthenticationHeaderParser.mjs +4 -4
- package/node_modules/@azure/msal-common/dist-browser/request/AuthenticationHeaderParser.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/request/BaseAuthRequest.mjs +3 -3
- package/node_modules/@azure/msal-common/dist-browser/request/BaseAuthRequest.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/request/RequestParameterBuilder.mjs +48 -23
- package/node_modules/@azure/msal-common/dist-browser/request/RequestParameterBuilder.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/request/ScopeSet.mjs +13 -12
- package/node_modules/@azure/msal-common/dist-browser/request/ScopeSet.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/response/ResponseHandler.mjs +32 -29
- package/node_modules/@azure/msal-common/dist-browser/response/ResponseHandler.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceClient.mjs +28 -9
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceClient.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceEvent.mjs +15 -2
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceEvents.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/StubPerformanceClient.mjs +4 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/server/ServerTelemetryManager.mjs +54 -22
- package/node_modules/@azure/msal-common/dist-browser/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/url/UrlString.mjs +15 -14
- package/node_modules/@azure/msal-common/dist-browser/url/UrlString.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/ClientAssertionUtils.mjs +3 -2
- package/node_modules/@azure/msal-common/dist-browser/utils/ClientAssertionUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/Constants.mjs +7 -3
- package/node_modules/@azure/msal-common/dist-browser/utils/Constants.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/FunctionWrappers.mjs +7 -7
- package/node_modules/@azure/msal-common/dist-browser/utils/FunctionWrappers.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/ProtocolUtils.mjs +12 -9
- package/node_modules/@azure/msal-common/dist-browser/utils/ProtocolUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/StringUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/TimeUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/UrlUtils.mjs +55 -41
- package/node_modules/@azure/msal-common/dist-browser/utils/UrlUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-common/lib/index-browser.cjs +28 -8
- package/node_modules/@azure/msal-common/lib/index-browser.cjs.map +1 -1
- package/node_modules/@azure/msal-common/lib/{index-node-DHSwXao8.js → index-node-C_uKaUiZ.js} +527 -375
- package/node_modules/@azure/msal-common/lib/index-node-C_uKaUiZ.js.map +1 -0
- package/node_modules/@azure/msal-common/lib/index-node.cjs +3 -2
- package/node_modules/@azure/msal-common/lib/index-node.cjs.map +1 -1
- package/node_modules/@azure/msal-common/lib/index.cjs +3 -2
- package/node_modules/@azure/msal-common/lib/index.cjs.map +1 -1
- package/node_modules/@azure/msal-common/package.json +3 -5
- package/node_modules/@azure/msal-common/src/account/AccountInfo.ts +19 -1
- package/node_modules/@azure/msal-common/src/account/AuthToken.ts +19 -21
- package/node_modules/@azure/msal-common/src/account/ClientCredentials.ts +1 -0
- package/node_modules/@azure/msal-common/src/account/ClientInfo.ts +8 -3
- package/node_modules/@azure/msal-common/src/authority/Authority.ts +73 -38
- package/node_modules/@azure/msal-common/src/authority/AuthorityFactory.ts +4 -2
- package/node_modules/@azure/msal-common/src/authority/AuthorityMetadata.ts +2 -1
- package/node_modules/@azure/msal-common/src/authority/RegionDiscovery.ts +18 -11
- package/node_modules/@azure/msal-common/src/cache/CacheManager.ts +160 -57
- package/node_modules/@azure/msal-common/src/cache/entities/AccountEntity.ts +4 -0
- package/node_modules/@azure/msal-common/src/cache/entities/CredentialEntity.ts +2 -0
- package/node_modules/@azure/msal-common/src/cache/interface/ICacheManager.ts +1 -0
- package/node_modules/@azure/msal-common/src/cache/utils/AccountEntityUtils.ts +29 -3
- package/node_modules/@azure/msal-common/src/cache/utils/CacheHelpers.ts +18 -3
- package/node_modules/@azure/msal-common/src/cache/utils/CacheTypes.ts +2 -0
- package/node_modules/@azure/msal-common/src/client/AuthorizationCodeClient.ts +10 -4
- package/node_modules/@azure/msal-common/src/client/RefreshTokenClient.ts +12 -5
- package/node_modules/@azure/msal-common/src/client/SilentFlowClient.ts +17 -20
- package/node_modules/@azure/msal-common/src/config/ClientConfiguration.ts +14 -4
- package/node_modules/@azure/msal-common/src/constants/AADServerParamKeys.ts +5 -0
- package/node_modules/@azure/msal-common/src/crypto/ICrypto.ts +40 -10
- package/node_modules/@azure/msal-common/src/crypto/JoseHeader.ts +8 -2
- package/node_modules/@azure/msal-common/src/crypto/PopTokenGenerator.ts +1 -1
- package/node_modules/@azure/msal-common/src/error/AuthError.ts +9 -5
- package/node_modules/@azure/msal-common/src/error/ClientAuthError.ts +8 -3
- package/node_modules/@azure/msal-common/src/error/ClientAuthErrorCodes.ts +0 -2
- package/node_modules/@azure/msal-common/src/error/ClientConfigurationError.ts +5 -4
- package/node_modules/@azure/msal-common/src/error/InteractionRequiredAuthError.ts +9 -5
- package/node_modules/@azure/msal-common/src/error/JoseHeaderError.ts +11 -4
- package/node_modules/@azure/msal-common/src/error/NetworkError.ts +6 -1
- package/node_modules/@azure/msal-common/src/error/PlatformBrokerError.ts +2 -1
- package/node_modules/@azure/msal-common/src/error/ServerError.ts +3 -2
- package/node_modules/@azure/msal-common/src/exports-common.ts +4 -1
- package/node_modules/@azure/msal-common/src/logger/Logger.ts +26 -11
- package/node_modules/@azure/msal-common/src/network/INetworkModule.ts +3 -2
- package/node_modules/@azure/msal-common/src/network/RequestThumbprint.ts +2 -0
- package/node_modules/@azure/msal-common/src/network/ThrottlingUtils.ts +1 -0
- package/node_modules/@azure/msal-common/src/packageMetadata.ts +1 -1
- package/node_modules/@azure/msal-common/src/protocol/Authorize.ts +23 -6
- package/node_modules/@azure/msal-common/src/protocol/Token.ts +6 -1
- package/node_modules/@azure/msal-common/src/request/AuthenticationHeaderParser.ts +6 -3
- package/node_modules/@azure/msal-common/src/request/BaseAuthRequest.ts +8 -2
- package/node_modules/@azure/msal-common/src/request/RequestParameterBuilder.ts +59 -25
- package/node_modules/@azure/msal-common/src/request/ScopeSet.ts +27 -11
- package/node_modules/@azure/msal-common/src/response/ImdsComputeResponse.ts +14 -0
- package/node_modules/@azure/msal-common/src/response/ResponseHandler.ts +46 -32
- package/node_modules/@azure/msal-common/src/telemetry/performance/IPerformanceClient.ts +1 -0
- package/node_modules/@azure/msal-common/src/telemetry/performance/PerformanceClient.ts +28 -0
- package/node_modules/@azure/msal-common/src/telemetry/performance/PerformanceEvent.ts +30 -6
- package/node_modules/@azure/msal-common/src/telemetry/performance/StubPerformanceClient.ts +4 -0
- package/node_modules/@azure/msal-common/src/telemetry/server/ServerTelemetryManager.ts +73 -27
- package/node_modules/@azure/msal-common/src/url/UrlString.ts +32 -13
- package/node_modules/@azure/msal-common/src/utils/ClientAssertionUtils.ts +3 -1
- package/node_modules/@azure/msal-common/src/utils/Constants.ts +6 -3
- package/node_modules/@azure/msal-common/src/utils/ProtocolUtils.ts +26 -8
- package/node_modules/@azure/msal-common/src/utils/UrlUtils.ts +77 -43
- package/node_modules/@azure/msal-common/types/account/AccountInfo.d.ts +8 -2
- package/node_modules/@azure/msal-common/types/account/AccountInfo.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/account/AuthToken.d.ts +2 -6
- package/node_modules/@azure/msal-common/types/account/AuthToken.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/account/ClientCredentials.d.ts +1 -0
- package/node_modules/@azure/msal-common/types/account/ClientCredentials.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/account/ClientInfo.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/authority/Authority.d.ts +5 -5
- package/node_modules/@azure/msal-common/types/authority/Authority.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/authority/AuthorityFactory.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/authority/AuthorityMetadata.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/authority/RegionDiscovery.d.ts +3 -2
- package/node_modules/@azure/msal-common/types/authority/RegionDiscovery.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/cache/CacheManager.d.ts +0 -7
- package/node_modules/@azure/msal-common/types/cache/CacheManager.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/cache/entities/AccountEntity.d.ts +4 -0
- package/node_modules/@azure/msal-common/types/cache/entities/AccountEntity.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/cache/entities/CredentialEntity.d.ts +2 -0
- package/node_modules/@azure/msal-common/types/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/cache/interface/ICacheManager.d.ts +1 -0
- package/node_modules/@azure/msal-common/types/cache/interface/ICacheManager.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/cache/utils/AccountEntityUtils.d.ts +7 -1
- package/node_modules/@azure/msal-common/types/cache/utils/AccountEntityUtils.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/cache/utils/CacheHelpers.d.ts +4 -1
- package/node_modules/@azure/msal-common/types/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/cache/utils/CacheTypes.d.ts +2 -1
- package/node_modules/@azure/msal-common/types/cache/utils/CacheTypes.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/client/RefreshTokenClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/client/SilentFlowClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/config/ClientConfiguration.d.ts +4 -0
- package/node_modules/@azure/msal-common/types/config/ClientConfiguration.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/constants/AADServerParamKeys.d.ts +4 -0
- package/node_modules/@azure/msal-common/types/constants/AADServerParamKeys.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/crypto/ICrypto.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/crypto/JoseHeader.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/error/AuthError.d.ts +2 -3
- package/node_modules/@azure/msal-common/types/error/AuthError.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/error/ClientAuthError.d.ts +2 -2
- package/node_modules/@azure/msal-common/types/error/ClientAuthError.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/error/ClientAuthErrorCodes.d.ts +0 -2
- package/node_modules/@azure/msal-common/types/error/ClientAuthErrorCodes.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/error/ClientConfigurationError.d.ts +2 -2
- package/node_modules/@azure/msal-common/types/error/ClientConfigurationError.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/error/InteractionRequiredAuthError.d.ts +2 -2
- package/node_modules/@azure/msal-common/types/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/error/JoseHeaderError.d.ts +2 -2
- package/node_modules/@azure/msal-common/types/error/JoseHeaderError.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/error/NetworkError.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/error/PlatformBrokerError.d.ts +1 -1
- package/node_modules/@azure/msal-common/types/error/PlatformBrokerError.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/error/ServerError.d.ts +1 -1
- package/node_modules/@azure/msal-common/types/error/ServerError.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/exports-common.d.ts +1 -1
- package/node_modules/@azure/msal-common/types/exports-common.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/logger/Logger.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/network/INetworkModule.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/network/RequestThumbprint.d.ts +1 -0
- package/node_modules/@azure/msal-common/types/network/RequestThumbprint.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/network/ThrottlingUtils.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/packageMetadata.d.ts +1 -1
- package/node_modules/@azure/msal-common/types/packageMetadata.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/protocol/Authorize.d.ts +6 -2
- package/node_modules/@azure/msal-common/types/protocol/Authorize.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/protocol/Token.d.ts +2 -0
- package/node_modules/@azure/msal-common/types/protocol/Token.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/request/AuthenticationHeaderParser.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/request/BaseAuthRequest.d.ts +4 -0
- package/node_modules/@azure/msal-common/types/request/BaseAuthRequest.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/request/RequestParameterBuilder.d.ts +13 -3
- package/node_modules/@azure/msal-common/types/request/RequestParameterBuilder.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/request/ScopeSet.d.ts +4 -3
- package/node_modules/@azure/msal-common/types/request/ScopeSet.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/response/ImdsComputeResponse.d.ts +10 -0
- package/node_modules/@azure/msal-common/types/response/ImdsComputeResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/types/response/ResponseHandler.d.ts +2 -1
- package/node_modules/@azure/msal-common/types/response/ResponseHandler.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/telemetry/performance/IPerformanceClient.d.ts +3 -0
- package/node_modules/@azure/msal-common/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/telemetry/performance/PerformanceClient.d.ts +18 -0
- package/node_modules/@azure/msal-common/types/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/telemetry/performance/PerformanceEvent.d.ts +16 -5
- package/node_modules/@azure/msal-common/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/telemetry/performance/StubPerformanceClient.d.ts +1 -0
- package/node_modules/@azure/msal-common/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/telemetry/server/ServerTelemetryManager.d.ts +15 -0
- package/node_modules/@azure/msal-common/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/url/UrlString.d.ts +5 -4
- package/node_modules/@azure/msal-common/types/url/UrlString.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/utils/ClientAssertionUtils.d.ts +1 -1
- package/node_modules/@azure/msal-common/types/utils/ClientAssertionUtils.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/utils/Constants.d.ts +6 -2
- package/node_modules/@azure/msal-common/types/utils/Constants.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/utils/ProtocolUtils.d.ts +6 -3
- package/node_modules/@azure/msal-common/types/utils/ProtocolUtils.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/utils/UrlUtils.d.ts +21 -4
- package/node_modules/@azure/msal-common/types/utils/UrlUtils.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/dist/cache/CacheHelpers.mjs +16 -1
- package/node_modules/@azure/msal-node/dist/cache/CacheHelpers.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/cache/NodeStorage.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/cache/TokenCache.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/cache/serializer/Deserializer.mjs +2 -1
- package/node_modules/@azure/msal-node/dist/cache/serializer/Deserializer.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/cache/serializer/Serializer.mjs +2 -1
- package/node_modules/@azure/msal-node/dist/cache/serializer/Serializer.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/client/BaseClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ClientApplication.mjs +9 -9
- package/node_modules/@azure/msal-node/dist/client/ClientApplication.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/client/ClientAssertion.mjs +2 -2
- package/node_modules/@azure/msal-node/dist/client/ClientAssertion.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/client/ClientCredentialClient.mjs +34 -16
- package/node_modules/@azure/msal-node/dist/client/ClientCredentialClient.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/client/ConfidentialClientApplication.mjs +61 -8
- package/node_modules/@azure/msal-node/dist/client/ConfidentialClientApplication.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/client/DeviceCodeClient.mjs +17 -16
- package/node_modules/@azure/msal-node/dist/client/DeviceCodeClient.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentityApplication.mjs +2 -2
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentityApplication.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentityClient.mjs +2 -2
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentityClient.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AzureArc.mjs +11 -11
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AzureArc.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +6 -5
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/CloudShell.mjs +2 -2
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/CloudShell.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/OnBehalfOfClient.mjs +9 -9
- package/node_modules/@azure/msal-node/dist/client/OnBehalfOfClient.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/client/PublicClientApplication.mjs +10 -9
- package/node_modules/@azure/msal-node/dist/client/PublicClientApplication.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/client/UserFederatedIdentityCredentialClient.mjs +107 -0
- package/node_modules/@azure/msal-node/dist/client/UserFederatedIdentityCredentialClient.mjs.map +1 -0
- package/node_modules/@azure/msal-node/dist/client/UsernamePasswordClient.mjs +3 -3
- package/node_modules/@azure/msal-node/dist/client/UsernamePasswordClient.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/config/Configuration.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/config/ManagedIdentityId.mjs +4 -4
- package/node_modules/@azure/msal-node/dist/config/ManagedIdentityId.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/crypto/CryptoProvider.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/crypto/GuidGenerator.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/crypto/HashUtils.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/crypto/PkceGenerator.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/error/ClientAuthErrorCodes.mjs +5 -2
- package/node_modules/@azure/msal-node/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/error/ManagedIdentityError.mjs +5 -5
- package/node_modules/@azure/msal-node/dist/error/ManagedIdentityError.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/error/NodeAuthError.mjs +16 -16
- package/node_modules/@azure/msal-node/dist/error/NodeAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/index.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/index.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/internals.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/network/HttpClient.mjs +4 -4
- package/node_modules/@azure/msal-node/dist/network/HttpClient.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/network/HttpClientWithRetries.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/network/LoopbackClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/packageMetadata.mjs +2 -2
- package/node_modules/@azure/msal-node/dist/protocol/Authorize.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/retry/ExponentialRetryStrategy.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/retry/ImdsRetryPolicy.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/retry/LinearRetryStrategy.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/utils/Constants.mjs +2 -1
- package/node_modules/@azure/msal-node/dist/utils/Constants.mjs.map +1 -1
- package/node_modules/@azure/msal-node/dist/utils/EncodingUtils.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/utils/TimeUtils.mjs +1 -1
- package/node_modules/@azure/msal-node/lib/msal-node.cjs +811 -534
- package/node_modules/@azure/msal-node/lib/msal-node.cjs.map +1 -1
- package/node_modules/@azure/msal-node/package.json +4 -4
- package/node_modules/@azure/msal-node/src/cache/CacheHelpers.ts +25 -0
- package/node_modules/@azure/msal-node/src/cache/serializer/Deserializer.ts +2 -0
- package/node_modules/@azure/msal-node/src/cache/serializer/Serializer.ts +2 -0
- package/node_modules/@azure/msal-node/src/cache/serializer/SerializerTypes.ts +1 -0
- package/node_modules/@azure/msal-node/src/client/ClientApplication.ts +19 -8
- package/node_modules/@azure/msal-node/src/client/ClientAssertion.ts +4 -1
- package/node_modules/@azure/msal-node/src/client/ClientCredentialClient.ts +61 -14
- package/node_modules/@azure/msal-node/src/client/ConfidentialClientApplication.ts +108 -6
- package/node_modules/@azure/msal-node/src/client/DeviceCodeClient.ts +28 -10
- package/node_modules/@azure/msal-node/src/client/ManagedIdentityApplication.ts +2 -1
- package/node_modules/@azure/msal-node/src/client/ManagedIdentityClient.ts +2 -1
- package/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/AzureArc.ts +20 -10
- package/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +10 -4
- package/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/CloudShell.ts +2 -1
- package/node_modules/@azure/msal-node/src/client/OnBehalfOfClient.ts +22 -7
- package/node_modules/@azure/msal-node/src/client/PublicClientApplication.ts +23 -7
- package/node_modules/{@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/UsernamePasswordClient.ts → @azure/msal-node/src/client/UserFederatedIdentityCredentialClient.ts} +92 -81
- package/node_modules/@azure/msal-node/src/client/UsernamePasswordClient.ts +6 -1
- package/node_modules/@azure/msal-node/src/config/ManagedIdentityId.ts +6 -3
- package/node_modules/@azure/msal-node/src/error/ClientAuthErrorCodes.ts +3 -0
- package/node_modules/@azure/msal-node/src/error/ManagedIdentityError.ts +9 -4
- package/node_modules/@azure/msal-node/src/error/NodeAuthError.ts +25 -6
- package/node_modules/@azure/msal-node/src/index.ts +1 -0
- package/node_modules/@azure/msal-node/src/network/HttpClient.ts +3 -0
- package/node_modules/@azure/msal-node/src/packageMetadata.ts +1 -1
- package/node_modules/@azure/msal-node/src/request/CommonClientCredentialRequest.ts +4 -0
- package/node_modules/@azure/msal-node/src/request/CommonUserFederatedIdentityCredentialRequest.ts +25 -0
- package/node_modules/@azure/msal-node/src/request/UserFederatedIdentityCredentialRequest.ts +46 -0
- package/node_modules/@azure/msal-node/src/utils/Constants.ts +1 -0
- package/node_modules/@azure/msal-node/types/cache/CacheHelpers.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/cache/serializer/Deserializer.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/cache/serializer/Serializer.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/cache/serializer/SerializerTypes.d.ts +1 -0
- package/node_modules/@azure/msal-node/types/cache/serializer/SerializerTypes.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/client/ClientApplication.d.ts +1 -1
- package/node_modules/@azure/msal-node/types/client/ClientApplication.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/client/ClientAssertion.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/client/ClientCredentialClient.d.ts +1 -1
- package/node_modules/@azure/msal-node/types/client/ClientCredentialClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/client/ConfidentialClientApplication.d.ts +10 -0
- package/node_modules/@azure/msal-node/types/client/ConfidentialClientApplication.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/client/DeviceCodeClient.d.ts +1 -0
- package/node_modules/@azure/msal-node/types/client/DeviceCodeClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/client/ManagedIdentityApplication.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/client/ManagedIdentityClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/client/OnBehalfOfClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/client/PublicClientApplication.d.ts +1 -0
- package/node_modules/@azure/msal-node/types/client/PublicClientApplication.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/client/UserFederatedIdentityCredentialClient.d.ts +26 -0
- package/node_modules/@azure/msal-node/types/client/UserFederatedIdentityCredentialClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-node/types/client/UsernamePasswordClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/config/ManagedIdentityId.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/error/ClientAuthErrorCodes.d.ts +3 -0
- package/node_modules/@azure/msal-node/types/error/ClientAuthErrorCodes.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/error/ManagedIdentityError.d.ts +2 -2
- package/node_modules/@azure/msal-node/types/error/ManagedIdentityError.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/error/NodeAuthError.d.ts +5 -5
- package/node_modules/@azure/msal-node/types/error/NodeAuthError.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/index.d.ts +1 -0
- package/node_modules/@azure/msal-node/types/index.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/network/HttpClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/packageMetadata.d.ts +1 -1
- package/node_modules/@azure/msal-node/types/request/CommonClientCredentialRequest.d.ts +4 -0
- package/node_modules/@azure/msal-node/types/request/CommonClientCredentialRequest.d.ts.map +1 -1
- package/node_modules/@azure/msal-node/types/request/CommonUserFederatedIdentityCredentialRequest.d.ts +17 -0
- package/node_modules/@azure/msal-node/types/request/CommonUserFederatedIdentityCredentialRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-node/types/request/UserFederatedIdentityCredentialRequest.d.ts +32 -0
- package/node_modules/@azure/msal-node/types/request/UserFederatedIdentityCredentialRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-node/types/utils/Constants.d.ts +1 -0
- package/node_modules/@azure/msal-node/types/utils/Constants.d.ts.map +1 -1
- package/node_modules/@microsoft/teams.api/dist/activities/activity.d.mts +2 -0
- package/node_modules/@microsoft/teams.api/dist/activities/activity.d.ts +2 -0
- package/node_modules/@microsoft/teams.api/dist/activities/activity.js +39 -10
- package/node_modules/@microsoft/teams.api/dist/activities/activity.js.map +1 -1
- package/node_modules/@microsoft/teams.api/dist/activities/activity.mjs +39 -10
- package/node_modules/@microsoft/teams.api/dist/activities/activity.mjs.map +1 -1
- package/node_modules/@microsoft/teams.api/dist/activities/utils/strip-mentions-text.js +1 -1
- package/node_modules/@microsoft/teams.api/dist/activities/utils/strip-mentions-text.js.map +1 -1
- package/node_modules/@microsoft/teams.api/dist/activities/utils/strip-mentions-text.mjs +1 -1
- package/node_modules/@microsoft/teams.api/dist/activities/utils/strip-mentions-text.mjs.map +1 -1
- package/node_modules/@microsoft/teams.api/dist/models/account.d.mts +1 -1
- package/node_modules/@microsoft/teams.api/dist/models/account.d.ts +1 -1
- package/node_modules/@microsoft/teams.api/dist/models/account.js.map +1 -1
- package/node_modules/@microsoft/teams.api/dist/models/account.mjs.map +1 -1
- package/node_modules/@microsoft/teams.api/package.json +4 -4
- package/node_modules/@microsoft/teams.apps/README.md +59 -9
- package/node_modules/@microsoft/teams.apps/dist/app.d.ts +1 -22
- package/node_modules/@microsoft/teams.apps/dist/app.embed.d.ts +1 -8
- package/node_modules/@microsoft/teams.apps/dist/app.embed.js +2 -35
- package/node_modules/@microsoft/teams.apps/dist/app.js +1 -49
- package/node_modules/@microsoft/teams.apps/dist/http/http-server.js +11 -5
- package/node_modules/@microsoft/teams.apps/dist/index.d.ts +0 -1
- package/node_modules/@microsoft/teams.apps/dist/index.js +2 -25
- package/node_modules/@microsoft/teams.apps/dist/middleware/jwt-validation-middleware.js +2 -3
- package/node_modules/@microsoft/teams.apps/dist/token-manager.d.ts +2 -0
- package/node_modules/@microsoft/teams.apps/dist/token-manager.js +27 -13
- package/node_modules/@microsoft/teams.apps/dist/types/plugin/decorators/dependency.d.ts +3 -68
- package/node_modules/@microsoft/teams.apps/dist/types/plugin/decorators/dependency.js +2 -1
- package/node_modules/@microsoft/teams.apps/package.json +7 -8
- package/node_modules/@microsoft/teams.cards/package.json +2 -2
- package/node_modules/@microsoft/teams.common/package.json +2 -2
- package/node_modules/@microsoft/teams.graph/package.json +3 -3
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/assert/strict.d.ts +10 -1
- package/node_modules/@types/node/assert.d.ts +144 -17
- package/node_modules/@types/node/async_hooks.d.ts +9 -9
- package/node_modules/@types/node/buffer.d.ts +64 -30
- package/node_modules/@types/node/child_process.d.ts +17 -21
- package/node_modules/@types/node/cluster.d.ts +13 -13
- package/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@types/node/crypto.d.ts +471 -575
- package/node_modules/@types/node/diagnostics_channel.d.ts +274 -32
- package/node_modules/@types/node/dns.d.ts +15 -15
- package/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@types/node/ffi.d.ts +486 -0
- package/node_modules/@types/node/fs/promises.d.ts +7 -4
- package/node_modules/@types/node/fs.d.ts +24 -18
- package/node_modules/@types/node/globals.d.ts +4 -4
- package/node_modules/@types/node/http.d.ts +30 -5
- package/node_modules/@types/node/http2.d.ts +2 -1
- package/node_modules/@types/node/index.d.ts +1 -3
- package/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/node/module.d.ts +16 -45
- package/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/node/os.d.ts +2 -2
- package/node_modules/@types/node/package.json +4 -4
- package/node_modules/@types/node/perf_hooks.d.ts +1 -9
- package/node_modules/@types/node/process.d.ts +25 -12
- package/node_modules/@types/node/quic.d.ts +92 -11
- package/node_modules/@types/node/readline.d.ts +12 -11
- package/node_modules/@types/node/repl.d.ts +10 -10
- package/node_modules/@types/node/sqlite.d.ts +56 -1
- package/node_modules/@types/node/stream/iter.d.ts +150 -0
- package/node_modules/@types/node/stream/promises.d.ts +2 -2
- package/node_modules/@types/node/stream/web.d.ts +1 -1
- package/node_modules/@types/node/stream.d.ts +37 -5
- package/node_modules/@types/node/test/reporters.d.ts +1 -1
- package/node_modules/@types/node/test.d.ts +120 -10
- package/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/node/ts5.6/index.d.ts +2 -4
- package/node_modules/@types/node/ts5.7/index.d.ts +1 -3
- package/node_modules/@types/node/url.d.ts +3 -3
- package/node_modules/@types/node/util/types.d.ts +1 -1
- package/node_modules/@types/node/util.d.ts +22 -22
- package/node_modules/@types/node/v8.d.ts +85 -3
- package/node_modules/@types/node/vm.d.ts +9 -9
- package/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
- package/node_modules/@types/node/worker_threads.d.ts +10 -12
- package/node_modules/@types/node/zlib.d.ts +3 -3
- package/node_modules/body-parser/README.md +16 -1
- package/node_modules/body-parser/index.js +4 -20
- package/node_modules/body-parser/lib/read.js +17 -17
- package/node_modules/body-parser/lib/types/json.js +60 -32
- package/node_modules/body-parser/lib/types/raw.js +3 -3
- package/node_modules/body-parser/lib/types/text.js +3 -3
- package/node_modules/body-parser/lib/types/urlencoded.js +16 -20
- package/node_modules/body-parser/lib/utils.js +18 -16
- package/node_modules/body-parser/node_modules/content-type/LICENSE +22 -0
- package/node_modules/body-parser/node_modules/content-type/README.md +69 -0
- package/node_modules/body-parser/node_modules/content-type/dist/index.d.ts +26 -0
- package/node_modules/body-parser/node_modules/content-type/dist/index.js +170 -0
- package/node_modules/body-parser/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/body-parser/node_modules/content-type/package.json +52 -0
- package/node_modules/body-parser/package.json +23 -10
- package/node_modules/range-parser/README.md +13 -12
- package/node_modules/range-parser/index.js +27 -8
- package/node_modules/range-parser/package.json +12 -8
- package/node_modules/semver/classes/range.js +6 -2
- package/node_modules/semver/package.json +1 -1
- package/node_modules/side-channel/CHANGELOG.md +10 -0
- package/node_modules/side-channel/README.md +1 -1
- package/node_modules/side-channel/index.js +5 -2
- package/node_modules/side-channel/package.json +10 -10
- package/node_modules/side-channel/test/index.js +16 -0
- package/node_modules/typebox/build/compile/validator.d.mts +2 -7
- package/node_modules/typebox/build/compile/validator.mjs +6 -36
- package/node_modules/typebox/build/error/errors.d.mts +1 -7
- package/node_modules/typebox/build/format/_idna.mjs +36 -6
- package/node_modules/typebox/build/format/_puny.mjs +4 -1
- package/node_modules/typebox/build/format/uuid.d.mts +2 -2
- package/node_modules/typebox/build/format/uuid.mjs +3 -3
- package/node_modules/typebox/build/guard/emit.d.mts +0 -4
- package/node_modules/typebox/build/guard/emit.mjs +0 -8
- package/node_modules/typebox/build/guard/guard.d.mts +4 -8
- package/node_modules/typebox/build/guard/guard.mjs +5 -13
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +3 -3
- package/node_modules/typebox/build/schema/engine/boolean.mjs +4 -4
- package/node_modules/typebox/build/schema/engine/index.d.mts +0 -1
- package/node_modules/typebox/build/schema/engine/index.mjs +0 -1
- package/node_modules/typebox/build/schema/engine/schema.mjs +5 -10
- package/node_modules/typebox/build/schema/engine/type.mjs +14 -18
- package/node_modules/typebox/build/schema/types/dependencies.mjs +1 -1
- package/node_modules/typebox/build/schema/types/index.d.mts +0 -1
- package/node_modules/typebox/build/schema/types/index.mjs +0 -1
- package/node_modules/typebox/build/schema/types/schema.d.mts +1 -1
- package/node_modules/typebox/build/schema/types/schema.mjs +2 -2
- package/node_modules/typebox/build/system/locale/ar_001.mjs +0 -1
- package/node_modules/typebox/build/system/locale/bn_BD.mjs +0 -1
- package/node_modules/typebox/build/system/locale/cs_CZ.mjs +0 -1
- package/node_modules/typebox/build/system/locale/de_DE.mjs +0 -1
- package/node_modules/typebox/build/system/locale/el_GR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/en_US.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_419.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_AR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_ES.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_MX.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fa_IR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fil_PH.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fr_CA.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fr_FR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ha_NG.mjs +0 -1
- package/node_modules/typebox/build/system/locale/hi_IN.mjs +0 -1
- package/node_modules/typebox/build/system/locale/hu_HU.mjs +0 -1
- package/node_modules/typebox/build/system/locale/id_ID.mjs +0 -1
- package/node_modules/typebox/build/system/locale/it_IT.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ja_JP.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ko_KR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ms_MY.mjs +0 -1
- package/node_modules/typebox/build/system/locale/nl_NL.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pl_PL.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pt_BR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pt_PT.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ro_RO.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ru_RU.mjs +0 -1
- package/node_modules/typebox/build/system/locale/sv_SE.mjs +0 -1
- package/node_modules/typebox/build/system/locale/sw_TZ.mjs +0 -1
- package/node_modules/typebox/build/system/locale/th_TH.mjs +0 -1
- package/node_modules/typebox/build/system/locale/tr_TR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/uk_UA.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ur_PK.mjs +0 -1
- package/node_modules/typebox/build/system/locale/vi_VN.mjs +0 -1
- package/node_modules/typebox/build/system/locale/yo_NG.mjs +0 -1
- package/node_modules/typebox/build/system/locale/zh_Hans.mjs +0 -1
- package/node_modules/typebox/build/system/locale/zh_Hant.mjs +0 -1
- package/node_modules/typebox/build/system/memory/clone.d.mts +2 -3
- package/node_modules/typebox/build/system/memory/clone.mjs +73 -26
- package/node_modules/typebox/build/system/settings/settings.d.mts +15 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +3 -1
- package/node_modules/typebox/build/type/action/_add_immutable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_immutable.mjs +11 -0
- package/node_modules/typebox/build/type/action/_add_optional.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_optional.mjs +11 -0
- package/node_modules/typebox/build/type/action/_add_readonly.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_readonly.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_immutable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_immutable.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_optional.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_optional.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_readonly.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_readonly.mjs +11 -0
- package/node_modules/typebox/build/type/action/conditional.d.mts +2 -3
- package/node_modules/typebox/build/type/action/conditional.mjs +2 -1
- package/node_modules/typebox/build/type/action/index.d.mts +7 -4
- package/node_modules/typebox/build/type/action/index.mjs +7 -4
- package/node_modules/typebox/build/type/action/mapped.d.mts +2 -3
- package/node_modules/typebox/build/type/action/mapped.mjs +2 -1
- package/node_modules/typebox/build/type/action/module.d.mts +8 -7
- package/node_modules/typebox/build/type/action/module.mjs +7 -6
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
- package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -5
- package/node_modules/typebox/build/type/action/with.d.mts +11 -0
- package/node_modules/typebox/build/type/action/with.mjs +11 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
- package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +3 -2
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +2 -2
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +3 -4
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +2 -1
- package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +2 -3
- package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +3 -6
- package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +6 -9
- package/node_modules/typebox/build/type/engine/cyclic/check.mjs +10 -16
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +9 -15
- package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +8 -14
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +2 -5
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +3 -2
- package/node_modules/typebox/build/type/engine/enum/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/enum/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +1 -2
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +2 -6
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +10 -6
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +10 -6
- package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +3 -3
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +17 -5
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +34 -8
- package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +5 -6
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +11 -12
- package/node_modules/typebox/build/type/engine/extract/operation.d.mts +5 -6
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +11 -12
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/index.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/index.mjs +2 -2
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +3 -3
- package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +4 -4
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +9 -6
- package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +5 -2
- package/node_modules/typebox/build/type/engine/instantiate.d.mts +44 -31
- package/node_modules/typebox/build/type/engine/instantiate.mjs +82 -83
- package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +3 -6
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +5 -1
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +4 -4
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +3 -3
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +5 -4
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +10 -5
- package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +7 -9
- package/node_modules/typebox/build/type/engine/module/instantiate.mjs +17 -15
- package/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/object/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/object/from_type.mjs +8 -5
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +3 -4
- package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +2 -1
- package/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/partial/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/partial/from_type.mjs +7 -4
- package/node_modules/typebox/build/type/engine/priority/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/priority/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/priority/priority.d.mts +20 -0
- package/node_modules/typebox/build/type/engine/priority/priority.mjs +28 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +8 -5
- package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +2 -2
- package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +3 -3
- package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +6 -6
- package/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/required/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/required/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/required/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/required/from_type.mjs +7 -4
- package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +3 -3
- package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +6 -6
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
- package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +1 -0
- package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/this/expand_this.mjs +7 -13
- package/node_modules/typebox/build/type/engine/with/instantiate.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/{options → with}/instantiate.mjs +5 -5
- package/node_modules/typebox/build/type/extends/dependent.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/dependent.mjs +6 -0
- package/node_modules/typebox/build/type/extends/enum.d.mts +4 -4
- package/node_modules/typebox/build/type/extends/enum.mjs +3 -2
- package/node_modules/typebox/build/type/extends/extends_left.d.mts +5 -7
- package/node_modules/typebox/build/type/extends/extends_left.mjs +24 -27
- package/node_modules/typebox/build/type/extends/extends_right.d.mts +7 -5
- package/node_modules/typebox/build/type/extends/extends_right.mjs +20 -15
- package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
- package/node_modules/typebox/build/type/extends/object.d.mts +8 -1
- package/node_modules/typebox/build/type/extends/object.mjs +25 -3
- package/node_modules/typebox/build/type/extends/parameters.mjs +2 -2
- package/node_modules/typebox/build/type/extends/record.d.mts +13 -0
- package/node_modules/typebox/build/type/extends/record.mjs +23 -0
- package/node_modules/typebox/build/type/extends/template_literal.d.mts +3 -3
- package/node_modules/typebox/build/type/extends/template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/extends/tuple.d.mts +3 -6
- package/node_modules/typebox/build/type/extends/tuple.mjs +6 -5
- package/node_modules/typebox/build/type/extends/union.mjs +2 -2
- package/node_modules/typebox/build/type/script/mapping.d.mts +84 -99
- package/node_modules/typebox/build/type/script/mapping.mjs +81 -85
- package/node_modules/typebox/build/type/script/parser.d.mts +40 -40
- package/node_modules/typebox/build/type/script/parser.mjs +22 -22
- package/node_modules/typebox/build/type/script/script.d.mts +3 -4
- package/node_modules/typebox/build/type/script/script.mjs +3 -2
- package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -1
- package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/internal/take.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/until.mjs +2 -2
- package/node_modules/typebox/build/type/types/_codec.d.mts +12 -12
- package/node_modules/typebox/build/type/types/_codec.mjs +0 -1
- package/node_modules/typebox/build/type/types/_immutable.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_immutable.mjs +2 -10
- package/node_modules/typebox/build/type/types/_optional.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_optional.mjs +2 -11
- package/node_modules/typebox/build/type/types/_readonly.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_readonly.mjs +2 -10
- package/node_modules/typebox/build/type/types/_refine.d.mts +8 -10
- package/node_modules/typebox/build/type/types/_refine.mjs +1 -2
- package/node_modules/typebox/build/type/types/call.d.mts +3 -3
- package/node_modules/typebox/build/type/types/call.mjs +3 -2
- package/node_modules/typebox/build/type/types/deferred.d.mts +1 -0
- package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
- package/node_modules/typebox/build/type/types/dependent.d.mts +17 -0
- package/node_modules/typebox/build/type/types/dependent.mjs +24 -0
- package/node_modules/typebox/build/type/types/enum.d.mts +3 -1
- package/node_modules/typebox/build/type/types/enum.mjs +5 -0
- package/node_modules/typebox/build/type/types/index.d.mts +1 -4
- package/node_modules/typebox/build/type/types/index.mjs +1 -4
- package/node_modules/typebox/build/type/types/number.d.mts +1 -1
- package/node_modules/typebox/build/type/types/number.mjs +1 -1
- package/node_modules/typebox/build/type/types/record.d.mts +13 -7
- package/node_modules/typebox/build/type/types/record.mjs +15 -9
- package/node_modules/typebox/build/type/types/static.d.mts +2 -5
- package/node_modules/typebox/build/typebox.d.mts +4 -8
- package/node_modules/typebox/build/typebox.mjs +4 -8
- package/node_modules/typebox/build/value/clean/clean.mjs +4 -2
- package/node_modules/typebox/build/value/clean/from_intersect.mjs +2 -2
- package/node_modules/typebox/build/value/clean/from_type.mjs +8 -10
- package/node_modules/typebox/build/value/clean/from_union.d.mts +1 -1
- package/node_modules/typebox/build/value/clean/from_union.mjs +1 -2
- package/node_modules/typebox/build/value/clone/clone.mjs +2 -73
- package/node_modules/typebox/build/value/codec/decode.mjs +4 -2
- package/node_modules/typebox/build/value/codec/encode.mjs +4 -2
- package/node_modules/typebox/build/value/codec/from_array.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_object.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_record.mjs +2 -7
- package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_union.mjs +2 -3
- package/node_modules/typebox/build/value/convert/from_enum.mjs +3 -4
- package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +1 -1
- package/node_modules/typebox/build/value/convert/from_template_literal.mjs +2 -3
- package/node_modules/typebox/build/value/convert/from_type.mjs +19 -21
- package/node_modules/typebox/build/value/create/from_enum.mjs +2 -2
- package/node_modules/typebox/build/value/create/from_type.mjs +23 -31
- package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
- package/node_modules/typebox/build/value/default/from_type.mjs +8 -10
- package/node_modules/typebox/build/value/index.d.mts +0 -1
- package/node_modules/typebox/build/value/index.mjs +0 -1
- package/node_modules/typebox/build/value/repair/from_enum.mjs +2 -3
- package/node_modules/typebox/build/value/repair/from_type.mjs +24 -22
- package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +6 -2
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +62 -26
- package/node_modules/typebox/build/value/value.d.mts +0 -1
- package/node_modules/typebox/build/value/value.mjs +0 -1
- package/node_modules/typebox/package.json +25 -25
- package/node_modules/typebox/readme.md +97 -80
- package/node_modules/undici-types/agent.d.ts +0 -2
- package/node_modules/undici-types/client.d.ts +25 -19
- package/node_modules/undici-types/dispatcher.d.ts +7 -33
- package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
- package/node_modules/undici-types/fetch.d.ts +24 -4
- package/node_modules/undici-types/h2c-client.d.ts +6 -6
- package/node_modules/undici-types/handlers.d.ts +1 -2
- package/node_modules/undici-types/header.d.ts +5 -0
- package/node_modules/undici-types/index.d.ts +3 -1
- package/node_modules/undici-types/interceptors.d.ts +1 -1
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/pool.d.ts +0 -2
- package/node_modules/undici-types/proxy-agent.d.ts +2 -2
- package/node_modules/undici-types/round-robin-pool.d.ts +0 -2
- package/node_modules/undici-types/snapshot-agent.d.ts +4 -0
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +2 -2
- package/node_modules/undici-types/webidl.d.ts +0 -1
- package/npm-shrinkwrap.json +86 -105
- package/package.json +7 -7
- package/node_modules/@azure/msal-common/lib/index-node-DHSwXao8.js.map +0 -1
- package/node_modules/@microsoft/teams.apps/dist/manifest.d.ts +0 -1241
- package/node_modules/@microsoft/teams.apps/dist/manifest.js +0 -3
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/LICENSE +0 -21
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/README.md +0 -53
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/browser/README.md +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/browser/package.json +0 -5
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts +0 -72
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/AccountInfo.mjs +0 -85
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/AccountInfo.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts +0 -24
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/AuthToken.mjs +0 -86
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/AuthToken.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/CcsCredential.mjs +0 -13
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/CcsCredential.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts +0 -20
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/ClientInfo.mjs +0 -46
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/ClientInfo.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts +0 -88
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/TokenClaims.mjs +0 -25
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/account/TokenClaims.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/Authority.d.ts +0 -255
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/Authority.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/Authority.mjs +0 -860
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/Authority.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts +0 -19
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.mjs +0 -39
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts +0 -44
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.mjs +0 -180
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts +0 -28
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.mjs +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts +0 -11
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityType.mjs +0 -18
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AuthorityType.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts +0 -2
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +0 -13
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.mjs +0 -13
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/OIDCOptions.d.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/OIDCOptions.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.mjs +0 -15
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts +0 -20
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/ProtocolMode.mjs +0 -27
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/ProtocolMode.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts +0 -33
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.mjs +0 -112
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +0 -17
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts +0 -474
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/CacheManager.mjs +0 -1125
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/CacheManager.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts +0 -26
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts +0 -98
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.mjs +0 -246
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts +0 -33
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts +0 -8
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts +0 -8
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts +0 -171
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts +0 -5
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts +0 -24
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.mjs +0 -30
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/utils/CacheHelpers.d.ts +0 -86
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/utils/CacheHelpers.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/utils/CacheHelpers.mjs +0 -270
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/utils/CacheHelpers.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts +0 -70
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts +0 -46
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.mjs +0 -264
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts +0 -59
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/BaseClient.mjs +0 -167
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/BaseClient.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts +0 -36
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.mjs +0 -243
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/SilentFlowClient.mjs +0 -112
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/client/SilentFlowClient.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts +0 -39
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts +0 -163
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/config/ClientConfiguration.mjs +0 -113
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/config/ClientConfiguration.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/constants/AADServerParamKeys.d.ts +0 -60
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/constants/AADServerParamKeys.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/constants/AADServerParamKeys.mjs +0 -68
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/constants/AADServerParamKeys.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts +0 -69
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/ICrypto.mjs +0 -44
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/ICrypto.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts +0 -5
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/JoseHeader.mjs +0 -46
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/JoseHeader.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts +0 -60
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.mjs +0 -89
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/AuthError.d.ts +0 -50
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/AuthError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/AuthError.mjs +0 -56
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/AuthError.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/AuthErrorCodes.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/AuthErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/AuthErrorCodes.mjs +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/AuthErrorCodes.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/CacheError.d.ts +0 -28
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/CacheError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/CacheError.mjs +0 -52
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/CacheError.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/CacheErrorCodes.d.ts +0 -3
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/CacheErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/CacheErrorCodes.mjs +0 -11
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/CacheErrorCodes.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts +0 -243
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs +0 -264
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.d.ts +0 -46
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs +0 -54
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts +0 -139
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.mjs +0 -155
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientConfigurationErrorCodes.d.ts +0 -25
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientConfigurationErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientConfigurationErrorCodes.mjs +0 -33
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ClientConfigurationErrorCodes.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts +0 -70
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs +0 -105
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.d.ts +0 -46
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs +0 -54
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/JoseHeaderError.mjs +0 -30
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/JoseHeaderError.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/JoseHeaderErrorCodes.d.ts +0 -3
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/JoseHeaderErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/JoseHeaderErrorCodes.mjs +0 -11
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/JoseHeaderErrorCodes.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/NetworkError.d.ts +0 -19
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/NetworkError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/NetworkError.mjs +0 -35
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/NetworkError.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/PlatformBrokerError.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/PlatformBrokerError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/PlatformBrokerError.mjs +0 -48
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/PlatformBrokerError.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ServerError.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ServerError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ServerError.mjs +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/error/ServerError.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/exports-browser-only.d.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/exports-browser-only.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/exports-common.d.ts +0 -83
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/exports-common.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/exports-node-only.d.ts +0 -18
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/exports-node-only.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/index-browser.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/index-browser.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/index-browser.mjs +0 -72
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/index-browser.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/index-node.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/index-node.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/index-node.mjs +0 -71
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/index-node.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/index.d.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/index.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/index.mjs +0 -76
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/index.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/logger/Logger.d.ts +0 -96
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/logger/Logger.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/logger/Logger.mjs +0 -195
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/logger/Logger.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts +0 -30
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/INetworkModule.mjs +0 -20
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/INetworkModule.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/NetworkResponse.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/NetworkResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/RequestThumbprint.mjs +0 -24
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/RequestThumbprint.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts +0 -43
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.mjs +0 -93
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/packageMetadata.d.ts +0 -3
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/packageMetadata.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/packageMetadata.mjs +0 -8
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/packageMetadata.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/protocol/Authorize.d.ts +0 -38
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/protocol/Authorize.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/protocol/Authorize.mjs +0 -242
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/protocol/Authorize.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts +0 -20
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.mjs +0 -64
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts +0 -58
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts +0 -26
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts +0 -52
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts +0 -18
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts +0 -21
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts +0 -25
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts +0 -20
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts +0 -227
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.mjs +0 -429
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts +0 -83
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/ScopeSet.mjs +0 -204
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/ScopeSet.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/StoreInCache.d.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/request/StoreInCache.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts +0 -42
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/AuthorizeResponse.d.ts +0 -81
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/AuthorizeResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts +0 -26
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts +0 -5
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts +0 -62
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/ResponseHandler.mjs +0 -358
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/ResponseHandler.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts +0 -48
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts +0 -59
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts +0 -246
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.mjs +0 -638
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts +0 -609
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.mjs +0 -542
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -25
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.mjs +0 -83
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts +0 -79
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs +0 -268
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/url/IUri.d.ts +0 -13
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/url/IUri.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/url/UrlString.d.ts +0 -49
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/url/UrlString.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/url/UrlString.mjs +0 -172
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/url/UrlString.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/ClientAssertionUtils.d.ts +0 -3
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/ClientAssertionUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/ClientAssertionUtils.mjs +0 -21
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/ClientAssertionUtils.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/Constants.d.ts +0 -314
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/Constants.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/Constants.mjs +0 -325
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/Constants.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/FunctionWrappers.d.ts +0 -28
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/FunctionWrappers.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/FunctionWrappers.mjs +0 -99
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/FunctionWrappers.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts +0 -43
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.mjs +0 -78
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts +0 -66
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/StringUtils.mjs +0 -139
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/StringUtils.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts +0 -43
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/TimeUtils.mjs +0 -76
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/TimeUtils.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/UrlUtils.d.ts +0 -24
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/UrlUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/UrlUtils.mjs +0 -122
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/dist/utils/UrlUtils.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/index-browser.cjs +0 -808
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/index-browser.cjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/index-node-Ddjhj5ij.js +0 -8673
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/index-node-Ddjhj5ij.js.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/index-node.cjs +0 -111
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/index-node.cjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/index.cjs +0 -119
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/index.cjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/package.json +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/account/AccountInfo.d.ts +0 -72
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/account/AccountInfo.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/account/AuthToken.d.ts +0 -24
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/account/AuthToken.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/account/CcsCredential.d.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/account/CcsCredential.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/account/ClientCredentials.d.ts +0 -20
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/account/ClientCredentials.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/account/ClientInfo.d.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/account/ClientInfo.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/account/TokenClaims.d.ts +0 -88
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/account/TokenClaims.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/Authority.d.ts +0 -255
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/Authority.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/AuthorityFactory.d.ts +0 -19
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/AuthorityFactory.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/AuthorityMetadata.d.ts +0 -44
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/AuthorityMetadata.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/AuthorityOptions.d.ts +0 -28
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/AuthorityOptions.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/AuthorityType.d.ts +0 -11
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/AuthorityType.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/AzureRegion.d.ts +0 -2
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/AzureRegion.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/AzureRegionConfiguration.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/AzureRegionConfiguration.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/CloudDiscoveryMetadata.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/CloudDiscoveryMetadata.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/ImdsOptions.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/ImdsOptions.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/OIDCOptions.d.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/OIDCOptions.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/OpenIdConfigResponse.d.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/OpenIdConfigResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/ProtocolMode.d.ts +0 -20
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/ProtocolMode.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/RegionDiscovery.d.ts +0 -33
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/RegionDiscovery.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/RegionDiscoveryMetadata.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/authority/RegionDiscoveryMetadata.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts +0 -17
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/CacheManager.d.ts +0 -474
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/CacheManager.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/AccessTokenEntity.d.ts +0 -26
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/AccessTokenEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/AccountEntity.d.ts +0 -98
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/AccountEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/AppMetadataEntity.d.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/AppMetadataEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/AuthorityMetadataEntity.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/AuthorityMetadataEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/CacheRecord.d.ts +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/CacheRecord.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/CredentialEntity.d.ts +0 -33
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/CredentialEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/IdTokenEntity.d.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/IdTokenEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/RefreshTokenEntity.d.ts +0 -8
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/RefreshTokenEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/ServerTelemetryEntity.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/ServerTelemetryEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/ThrottlingEntity.d.ts +0 -8
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/entities/ThrottlingEntity.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/interface/ICacheManager.d.ts +0 -171
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/interface/ICacheManager.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/interface/ICachePlugin.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/interface/ICachePlugin.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/interface/ISerializableTokenCache.d.ts +0 -5
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/interface/ISerializableTokenCache.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/persistence/TokenCacheContext.d.ts +0 -24
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/persistence/TokenCacheContext.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/utils/CacheHelpers.d.ts +0 -86
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/utils/CacheHelpers.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/utils/CacheTypes.d.ts +0 -70
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/cache/utils/CacheTypes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/client/AuthorizationCodeClient.d.ts +0 -46
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/client/AuthorizationCodeClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/client/BaseClient.d.ts +0 -59
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/client/BaseClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/client/RefreshTokenClient.d.ts +0 -36
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/client/RefreshTokenClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/client/SilentFlowClient.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/client/SilentFlowClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/config/AppTokenProvider.d.ts +0 -39
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/config/AppTokenProvider.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/config/ClientConfiguration.d.ts +0 -163
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/config/ClientConfiguration.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/constants/AADServerParamKeys.d.ts +0 -60
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/constants/AADServerParamKeys.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/crypto/ICrypto.d.ts +0 -69
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/crypto/ICrypto.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/crypto/IGuidGenerator.d.ts +0 -5
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/crypto/IGuidGenerator.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/crypto/JoseHeader.d.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/crypto/JoseHeader.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/crypto/PopTokenGenerator.d.ts +0 -60
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/crypto/PopTokenGenerator.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/crypto/SignedHttpRequest.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/crypto/SignedHttpRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/AuthError.d.ts +0 -50
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/AuthError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/AuthErrorCodes.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/AuthErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/CacheError.d.ts +0 -28
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/CacheError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/CacheErrorCodes.d.ts +0 -3
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/CacheErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/ClientAuthError.d.ts +0 -243
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/ClientAuthError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/ClientAuthErrorCodes.d.ts +0 -46
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/ClientAuthErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/ClientConfigurationError.d.ts +0 -139
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/ClientConfigurationError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/ClientConfigurationErrorCodes.d.ts +0 -25
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/InteractionRequiredAuthError.d.ts +0 -70
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/InteractionRequiredAuthError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts +0 -46
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/JoseHeaderError.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/JoseHeaderError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/JoseHeaderErrorCodes.d.ts +0 -3
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/JoseHeaderErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/NetworkError.d.ts +0 -19
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/NetworkError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/PlatformBrokerError.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/PlatformBrokerError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/ServerError.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/error/ServerError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/exports-browser-only.d.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/exports-browser-only.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/exports-common.d.ts +0 -83
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/exports-common.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/exports-node-only.d.ts +0 -18
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/exports-node-only.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/index-browser.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/index-browser.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/index-node.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/index-node.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/index.d.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/index.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/logger/Logger.d.ts +0 -96
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/logger/Logger.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/network/INetworkModule.d.ts +0 -30
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/network/INetworkModule.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/network/NetworkResponse.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/network/NetworkResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/network/RequestThumbprint.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/network/RequestThumbprint.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/network/ThrottlingUtils.d.ts +0 -43
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/network/ThrottlingUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/packageMetadata.d.ts +0 -3
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/packageMetadata.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/protocol/Authorize.d.ts +0 -38
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/protocol/Authorize.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/AuthenticationHeaderParser.d.ts +0 -20
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/AuthenticationHeaderParser.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/BaseAuthRequest.d.ts +0 -58
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/BaseAuthRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonAuthorizationCodeRequest.d.ts +0 -26
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonAuthorizationCodeRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonAuthorizationUrlRequest.d.ts +0 -52
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonAuthorizationUrlRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonClientCredentialRequest.d.ts +0 -18
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonEndSessionRequest.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonEndSessionRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonRefreshTokenRequest.d.ts +0 -21
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonRefreshTokenRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonSilentFlowRequest.d.ts +0 -25
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonSilentFlowRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/NativeRequest.d.ts +0 -20
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/NativeRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/NativeSignOutRequest.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/NativeSignOutRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/RequestParameterBuilder.d.ts +0 -227
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/RequestParameterBuilder.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/ScopeSet.d.ts +0 -83
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/ScopeSet.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/StoreInCache.d.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/request/StoreInCache.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/AuthenticationResult.d.ts +0 -42
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/AuthenticationResult.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/AuthorizationCodePayload.d.ts +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/AuthorizationCodePayload.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/AuthorizeResponse.d.ts +0 -81
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/AuthorizeResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/DeviceCodeResponse.d.ts +0 -26
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/DeviceCodeResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/ExternalTokenResponse.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/ExternalTokenResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/IMDSBadResponse.d.ts +0 -5
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/IMDSBadResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/ResponseHandler.d.ts +0 -62
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/ResponseHandler.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/ServerAuthorizationTokenResponse.d.ts +0 -48
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/response/ServerAuthorizationTokenResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/performance/IPerformanceClient.d.ts +0 -59
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts +0 -6
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/performance/PerformanceClient.d.ts +0 -246
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/performance/PerformanceClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/performance/PerformanceEvent.d.ts +0 -609
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/performance/StubPerformanceClient.d.ts +0 -25
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/server/ServerTelemetryManager.d.ts +0 -79
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/server/ServerTelemetryRequest.d.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/telemetry/server/ServerTelemetryRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/url/IUri.d.ts +0 -13
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/url/IUri.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/url/UrlString.d.ts +0 -49
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/url/UrlString.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/ClientAssertionUtils.d.ts +0 -3
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/ClientAssertionUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/Constants.d.ts +0 -314
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/Constants.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/FunctionWrappers.d.ts +0 -28
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/FunctionWrappers.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/MsalTypes.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/MsalTypes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/ProtocolUtils.d.ts +0 -43
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/ProtocolUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/StringUtils.d.ts +0 -66
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/StringUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/TimeUtils.d.ts +0 -43
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/TimeUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/UrlUtils.d.ts +0 -24
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/lib/types/utils/UrlUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/node/README.md +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/node/package.json +0 -5
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/package.json +0 -127
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/account/AccountInfo.ts +0 -181
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/account/AuthToken.ts +0 -94
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/account/CcsCredential.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/account/ClientCredentials.ts +0 -29
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/account/ClientInfo.ts +0 -70
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/account/TokenClaims.ts +0 -102
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/Authority.ts +0 -1365
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/AuthorityFactory.ts +0 -74
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/AuthorityMetadata.ts +0 -259
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/AuthorityOptions.ts +0 -49
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/AuthorityType.ts +0 -15
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/AzureRegion.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/AzureRegionConfiguration.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/CloudDiscoveryMetadata.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/CloudInstanceDiscoveryErrorResponse.ts +0 -26
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/CloudInstanceDiscoveryResponse.ts +0 -21
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/ImdsOptions.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/OIDCOptions.ts +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/OpenIdConfigResponse.ts +0 -24
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/ProtocolMode.ts +0 -24
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/RegionDiscovery.ts +0 -191
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/authority/RegionDiscoveryMetadata.ts +0 -15
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/broker/nativeBroker/INativeBrokerPlugin.ts +0 -29
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/CacheManager.ts +0 -1915
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/entities/AccessTokenEntity.ts +0 -31
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/entities/AccountEntity.ts +0 -370
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/entities/AppMetadataEntity.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/entities/AuthorityMetadataEntity.ts +0 -20
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/entities/CacheRecord.ts +0 -19
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/entities/CredentialEntity.ts +0 -38
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/entities/IdTokenEntity.ts +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/entities/RefreshTokenEntity.ts +0 -13
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/entities/ServerTelemetryEntity.ts +0 -11
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/entities/ThrottlingEntity.ts +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/interface/ICacheManager.ts +0 -255
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/interface/ICachePlugin.ts +0 -11
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/interface/ISerializableTokenCache.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/persistence/TokenCacheContext.ts +0 -39
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/utils/CacheHelpers.ts +0 -391
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/cache/utils/CacheTypes.ts +0 -105
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/client/AuthorizationCodeClient.ts +0 -529
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/client/BaseClient.ts +0 -320
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/client/RefreshTokenClient.ts +0 -532
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/client/SilentFlowClient.ts +0 -212
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/config/AppTokenProvider.ts +0 -47
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/config/ClientConfiguration.ts +0 -302
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/constants/AADServerParamKeys.ts +0 -64
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/crypto/ICrypto.ts +0 -126
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/crypto/IGuidGenerator.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/crypto/JoseHeader.ts +0 -58
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/crypto/PopTokenGenerator.ts +0 -160
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/crypto/SignedHttpRequest.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/AuthError.ts +0 -89
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/AuthErrorCodes.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/CacheError.ts +0 -65
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/CacheErrorCodes.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/ClientAuthError.ts +0 -347
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/ClientAuthErrorCodes.ts +0 -53
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/ClientConfigurationError.ts +0 -226
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/ClientConfigurationErrorCodes.ts +0 -32
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/InteractionRequiredAuthError.ts +0 -171
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/InteractionRequiredAuthErrorCodes.ts +0 -51
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/JoseHeaderError.ts +0 -32
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/JoseHeaderErrorCodes.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/NetworkError.ts +0 -46
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/PlatformBrokerError.ts +0 -66
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/error/ServerError.ts +0 -36
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/exports-browser-only.ts +0 -29
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/exports-common.ts +0 -202
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/exports-node-only.ts +0 -35
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/index-browser.ts +0 -11
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/index-node.ts +0 -11
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/index.ts +0 -17
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/logger/Logger.ts +0 -272
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/network/INetworkModule.ts +0 -60
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/network/NetworkResponse.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/network/RequestThumbprint.ts +0 -47
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/network/ThrottlingUtils.ts +0 -154
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/packageMetadata.ts +0 -3
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/protocol/Authorize.ts +0 -421
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/AuthenticationHeaderParser.ts +0 -92
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/BaseAuthRequest.ts +0 -63
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/CommonAuthorizationCodeRequest.ts +0 -31
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/CommonAuthorizationUrlRequest.ts +0 -57
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/CommonClientCredentialRequest.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/CommonDeviceCodeRequest.ts +0 -31
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/CommonEndSessionRequest.ts +0 -27
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/CommonOnBehalfOfRequest.ts +0 -19
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/CommonRefreshTokenRequest.ts +0 -26
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/CommonSilentFlowRequest.ts +0 -30
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/CommonUsernamePasswordRequest.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/NativeRequest.ts +0 -25
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/NativeSignOutRequest.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/RequestParameterBuilder.ts +0 -657
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/ScopeSet.ts +0 -246
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/request/StoreInCache.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/response/AuthenticationResult.ts +0 -47
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/response/AuthorizationCodePayload.ts +0 -18
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/response/AuthorizeResponse.ts +0 -85
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/response/DeviceCodeResponse.ts +0 -31
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/response/ExternalTokenResponse.ts +0 -31
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/response/IMDSBadResponse.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/response/ResponseHandler.ts +0 -696
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/response/ServerAuthorizationTokenResponse.ts +0 -55
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/telemetry/performance/IPerformanceClient.ts +0 -82
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/telemetry/performance/IPerformanceMeasurement.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/telemetry/performance/PerformanceClient.ts +0 -964
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/telemetry/performance/PerformanceEvent.ts +0 -1016
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/telemetry/performance/StubPerformanceClient.ts +0 -103
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/telemetry/server/ServerTelemetryManager.ts +0 -382
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/telemetry/server/ServerTelemetryRequest.ts +0 -13
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/url/IUri.ts +0 -17
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/url/UrlString.ts +0 -226
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/utils/ClientAssertionUtils.ts +0 -25
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/utils/Constants.ts +0 -393
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/utils/FunctionWrappers.ts +0 -126
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/utils/MsalTypes.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/utils/ProtocolUtils.ts +0 -120
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/utils/StringUtils.ts +0 -154
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/utils/TimeUtils.ts +0 -85
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-common/src/utils/UrlUtils.ts +0 -148
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/LICENSE +0 -21
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/README.md +0 -191
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/CacheHelpers.d.ts +0 -4
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/CacheHelpers.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/CacheHelpers.mjs +0 -42
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/CacheHelpers.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/ITokenCache.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/ITokenCache.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/NodeStorage.d.ts +0 -191
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/NodeStorage.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/NodeStorage.mjs +0 -429
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/NodeStorage.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/TokenCache.d.ts +0 -99
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/TokenCache.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/TokenCache.mjs +0 -300
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/TokenCache.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.d.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.mjs +0 -49
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/distributed/ICacheClient.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/distributed/ICacheClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/distributed/IPartitionManager.d.ts +0 -33
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/distributed/IPartitionManager.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/serializer/Deserializer.d.ts +0 -44
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/serializer/Deserializer.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/serializer/Deserializer.mjs +0 -179
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/serializer/Deserializer.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/serializer/Serializer.d.ts +0 -44
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/serializer/Serializer.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/serializer/Serializer.mjs +0 -146
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/serializer/Serializer.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/serializer/SerializerTypes.d.ts +0 -103
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/cache/serializer/SerializerTypes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ClientApplication.d.ts +0 -146
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ClientApplication.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ClientApplication.mjs +0 -385
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ClientApplication.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ClientAssertion.d.ts +0 -56
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ClientAssertion.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ClientAssertion.mjs +0 -153
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ClientAssertion.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ClientCredentialClient.d.ts +0 -35
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ClientCredentialClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ClientCredentialClient.mjs +0 -203
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ClientCredentialClient.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ConfidentialClientApplication.d.ts +0 -58
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ConfidentialClientApplication.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ConfidentialClientApplication.mjs +0 -194
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ConfidentialClientApplication.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/DeviceCodeClient.d.ts +0 -58
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/DeviceCodeClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/DeviceCodeClient.mjs +0 -219
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/DeviceCodeClient.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/IConfidentialClientApplication.d.ts +0 -43
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/IConfidentialClientApplication.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/IPublicClientApplication.d.ts +0 -46
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/IPublicClientApplication.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentityApplication.d.ts +0 -42
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentityApplication.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentityApplication.mjs +0 -134
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentityApplication.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentityClient.d.ts +0 -29
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentityClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentityClient.mjs +0 -79
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentityClient.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AppService.d.ts +0 -72
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AppService.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AppService.mjs +0 -109
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AppService.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AzureArc.d.ts +0 -109
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AzureArc.mjs +0 -248
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AzureArc.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +0 -125
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +0 -244
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/CloudShell.d.ts +0 -71
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/CloudShell.mjs +0 -103
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/CloudShell.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/Imds.d.ts +0 -67
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/Imds.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/Imds.mjs +0 -108
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/Imds.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/MachineLearning.d.ts +0 -81
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/MachineLearning.mjs +0 -128
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/MachineLearning.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -82
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/ServiceFabric.mjs +0 -122
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/ServiceFabric.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/OnBehalfOfClient.d.ts +0 -48
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/OnBehalfOfClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/OnBehalfOfClient.mjs +0 -211
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/OnBehalfOfClient.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/PublicClientApplication.d.ts +0 -73
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/PublicClientApplication.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/PublicClientApplication.mjs +0 -266
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/PublicClientApplication.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/UsernamePasswordClient.d.ts +0 -28
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/UsernamePasswordClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/UsernamePasswordClient.mjs +0 -105
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/client/UsernamePasswordClient.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/config/Configuration.d.ts +0 -144
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/config/Configuration.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/config/Configuration.mjs +0 -114
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/config/Configuration.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/config/ManagedIdentityId.d.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/config/ManagedIdentityId.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/config/ManagedIdentityId.mjs +0 -57
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/config/ManagedIdentityId.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/config/ManagedIdentityRequestParameters.d.ts +0 -13
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/config/ManagedIdentityRequestParameters.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/config/ManagedIdentityRequestParameters.mjs +0 -38
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/config/ManagedIdentityRequestParameters.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/CryptoProvider.d.ts +0 -63
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/CryptoProvider.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/CryptoProvider.mjs +0 -100
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/CryptoProvider.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/GuidGenerator.d.ts +0 -15
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/GuidGenerator.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/GuidGenerator.mjs +0 -29
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/GuidGenerator.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/HashUtils.d.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/HashUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/HashUtils.mjs +0 -21
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/HashUtils.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/PkceGenerator.d.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/PkceGenerator.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/PkceGenerator.mjs +0 -60
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/crypto/PkceGenerator.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/error/ManagedIdentityError.d.ts +0 -31
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/error/ManagedIdentityError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/error/ManagedIdentityError.mjs +0 -50
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/error/ManagedIdentityError.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/error/ManagedIdentityErrorCodes.d.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/error/ManagedIdentityErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/error/ManagedIdentityErrorCodes.mjs +0 -31
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/error/ManagedIdentityErrorCodes.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/error/NodeAuthError.d.ts +0 -82
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/error/NodeAuthError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/error/NodeAuthError.mjs +0 -112
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/error/NodeAuthError.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/index.d.ts +0 -49
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/index.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/index.mjs +0 -20
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/index.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/internals.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/internals.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/internals.mjs +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/internals.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/HttpClient.d.ts +0 -53
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/HttpClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/HttpClient.mjs +0 -338
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/HttpClient.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/HttpClientWithRetries.d.ts +0 -13
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/HttpClientWithRetries.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/HttpClientWithRetries.mjs +0 -46
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/HttpClientWithRetries.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/ILoopbackClient.d.ts +0 -11
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/ILoopbackClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/LoopbackClient.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/LoopbackClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/LoopbackClient.mjs +0 -92
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/network/LoopbackClient.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/packageMetadata.d.ts +0 -3
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/packageMetadata.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/packageMetadata.mjs +0 -8
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/packageMetadata.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/protocol/Authorize.d.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/protocol/Authorize.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/protocol/Authorize.mjs +0 -43
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/protocol/Authorize.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/AuthorizationCodeRequest.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/AuthorizationCodeRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/AuthorizationUrlRequest.d.ts +0 -34
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/AuthorizationUrlRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/ClientCredentialRequest.d.ts +0 -15
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/ClientCredentialRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/DeviceCodeRequest.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/DeviceCodeRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/InteractiveRequest.d.ts +0 -24
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/InteractiveRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/ManagedIdentityRequest.d.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/ManagedIdentityRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/ManagedIdentityRequestParams.d.ts +0 -13
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/ManagedIdentityRequestParams.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/OnBehalfOfRequest.d.ts +0 -15
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/OnBehalfOfRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/RefreshTokenRequest.d.ts +0 -18
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/RefreshTokenRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/SignOutRequest.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/SignOutRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/SilentFlowRequest.d.ts +0 -17
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/SilentFlowRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/UsernamePasswordRequest.d.ts +0 -20
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/request/UsernamePasswordRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/response/ManagedIdentityTokenResponse.d.ts +0 -35
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/response/ManagedIdentityTokenResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -11
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +0 -49
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/DefaultManagedIdentityRetryPolicy.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/ExponentialRetryStrategy.d.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/ExponentialRetryStrategy.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/ExponentialRetryStrategy.mjs +0 -40
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/ExponentialRetryStrategy.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/IHttpRetryPolicy.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/IHttpRetryPolicy.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/ImdsRetryPolicy.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/ImdsRetryPolicy.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/ImdsRetryPolicy.mjs +0 -90
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/ImdsRetryPolicy.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/LinearRetryStrategy.d.ts +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/LinearRetryStrategy.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/LinearRetryStrategy.mjs +0 -36
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/retry/LinearRetryStrategy.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/Constants.d.ts +0 -163
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/Constants.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/Constants.mjs +0 -155
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/Constants.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/EncodingUtils.d.ts +0 -27
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/EncodingUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/EncodingUtils.mjs +0 -51
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/EncodingUtils.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/NetworkUtils.d.ts +0 -17
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/NetworkUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/NetworkUtils.mjs +0 -43
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/NetworkUtils.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/TimeUtils.d.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/TimeUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/TimeUtils.mjs +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/dist/utils/TimeUtils.mjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/msal-node.cjs +0 -13323
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/msal-node.cjs.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/package.json +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/CacheHelpers.d.ts +0 -4
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/CacheHelpers.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/ITokenCache.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/ITokenCache.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/NodeStorage.d.ts +0 -191
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/NodeStorage.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/TokenCache.d.ts +0 -99
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/TokenCache.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/distributed/DistributedCachePlugin.d.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/distributed/ICacheClient.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/distributed/ICacheClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/distributed/IPartitionManager.d.ts +0 -33
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/distributed/IPartitionManager.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/serializer/Deserializer.d.ts +0 -44
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/serializer/Deserializer.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/serializer/Serializer.d.ts +0 -44
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/serializer/Serializer.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/serializer/SerializerTypes.d.ts +0 -103
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/cache/serializer/SerializerTypes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ClientApplication.d.ts +0 -146
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ClientApplication.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ClientAssertion.d.ts +0 -56
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ClientAssertion.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ClientCredentialClient.d.ts +0 -35
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ClientCredentialClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ConfidentialClientApplication.d.ts +0 -58
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ConfidentialClientApplication.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/DeviceCodeClient.d.ts +0 -58
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/DeviceCodeClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/IConfidentialClientApplication.d.ts +0 -43
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/IConfidentialClientApplication.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/IPublicClientApplication.d.ts +0 -46
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/IPublicClientApplication.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentityApplication.d.ts +0 -42
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentityApplication.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentityClient.d.ts +0 -29
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentityClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/AppService.d.ts +0 -72
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +0 -109
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +0 -125
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +0 -71
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/Imds.d.ts +0 -67
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts +0 -81
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -82
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/OnBehalfOfClient.d.ts +0 -48
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/OnBehalfOfClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/PublicClientApplication.d.ts +0 -73
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/PublicClientApplication.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/UsernamePasswordClient.d.ts +0 -28
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/client/UsernamePasswordClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/config/Configuration.d.ts +0 -144
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/config/Configuration.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/config/ManagedIdentityId.d.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/config/ManagedIdentityId.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/config/ManagedIdentityRequestParameters.d.ts +0 -13
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/config/ManagedIdentityRequestParameters.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/crypto/CryptoProvider.d.ts +0 -63
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/crypto/CryptoProvider.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/crypto/GuidGenerator.d.ts +0 -15
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/crypto/GuidGenerator.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/crypto/HashUtils.d.ts +0 -10
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/crypto/HashUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/crypto/PkceGenerator.d.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/crypto/PkceGenerator.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/error/ManagedIdentityError.d.ts +0 -31
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/error/ManagedIdentityError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/error/ManagedIdentityErrorCodes.d.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/error/ManagedIdentityErrorCodes.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/error/NodeAuthError.d.ts +0 -82
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/error/NodeAuthError.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/index.d.ts +0 -49
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/index.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/internals.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/internals.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/network/HttpClient.d.ts +0 -53
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/network/HttpClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/network/HttpClientWithRetries.d.ts +0 -13
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/network/HttpClientWithRetries.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/network/ILoopbackClient.d.ts +0 -11
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/network/ILoopbackClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/network/LoopbackClient.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/network/LoopbackClient.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/packageMetadata.d.ts +0 -3
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/packageMetadata.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/protocol/Authorize.d.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/protocol/Authorize.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/AuthorizationCodeRequest.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/AuthorizationCodeRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/AuthorizationUrlRequest.d.ts +0 -34
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/AuthorizationUrlRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/ClientCredentialRequest.d.ts +0 -15
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/ClientCredentialRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/DeviceCodeRequest.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/DeviceCodeRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/InteractiveRequest.d.ts +0 -24
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/InteractiveRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/ManagedIdentityRequest.d.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/ManagedIdentityRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/ManagedIdentityRequestParams.d.ts +0 -13
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/ManagedIdentityRequestParams.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/OnBehalfOfRequest.d.ts +0 -15
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/OnBehalfOfRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/RefreshTokenRequest.d.ts +0 -18
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/RefreshTokenRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/SignOutRequest.d.ts +0 -7
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/SignOutRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/SilentFlowRequest.d.ts +0 -17
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/SilentFlowRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/UsernamePasswordRequest.d.ts +0 -20
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/request/UsernamePasswordRequest.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/response/ManagedIdentityTokenResponse.d.ts +0 -35
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -11
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/retry/ExponentialRetryStrategy.d.ts +0 -23
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/retry/ExponentialRetryStrategy.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/retry/IHttpRetryPolicy.d.ts +0 -16
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/retry/IHttpRetryPolicy.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/retry/ImdsRetryPolicy.d.ts +0 -22
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/retry/ImdsRetryPolicy.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/retry/LinearRetryStrategy.d.ts +0 -14
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/retry/LinearRetryStrategy.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/utils/Constants.d.ts +0 -163
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/utils/Constants.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/utils/EncodingUtils.d.ts +0 -27
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/utils/EncodingUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/utils/NetworkUtils.d.ts +0 -17
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/utils/NetworkUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/utils/TimeUtils.d.ts +0 -9
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/lib/types/utils/TimeUtils.d.ts.map +0 -1
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/package.json +0 -93
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/cache/CacheHelpers.ts +0 -48
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/cache/ITokenCache.ts +0 -24
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/cache/NodeStorage.ts +0 -562
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/cache/TokenCache.ts +0 -394
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/cache/distributed/DistributedCachePlugin.ts +0 -71
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/cache/distributed/ICacheClient.ts +0 -27
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/cache/distributed/IPartitionManager.ts +0 -39
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/cache/serializer/Deserializer.ts +0 -222
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/cache/serializer/Serializer.ts +0 -182
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/cache/serializer/SerializerTypes.ts +0 -122
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/ClientApplication.ts +0 -689
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/ClientAssertion.ts +0 -203
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/ClientCredentialClient.ts +0 -424
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/ConfidentialClientApplication.ts +0 -303
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/DeviceCodeClient.ts +0 -402
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/IConfidentialClientApplication.ts +0 -75
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/IPublicClientApplication.ts +0 -79
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/ManagedIdentityApplication.ts +0 -266
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/ManagedIdentityClient.ts +0 -189
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/AppService.ts +0 -192
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/AzureArc.ts +0 -409
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +0 -406
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/CloudShell.ts +0 -173
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/Imds.ts +0 -191
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/MachineLearning.ts +0 -217
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/ServiceFabric.ts +0 -214
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/OnBehalfOfClient.ts +0 -409
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/client/PublicClientApplication.ts +0 -376
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/config/Configuration.ts +0 -291
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/config/ManagedIdentityId.ts +0 -73
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/config/ManagedIdentityRequestParameters.ts +0 -67
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/crypto/CryptoProvider.ts +0 -113
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/crypto/GuidGenerator.ts +0 -28
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/crypto/HashUtils.ts +0 -17
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/crypto/PkceGenerator.ts +0 -63
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/error/ManagedIdentityError.ts +0 -65
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/error/ManagedIdentityErrorCodes.ts +0 -37
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/error/NodeAuthError.ts +0 -145
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/index.ts +0 -135
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/internals.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/network/HttpClient.ts +0 -510
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/network/HttpClientWithRetries.ts +0 -89
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/network/ILoopbackClient.ts +0 -19
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/network/LoopbackClient.ts +0 -117
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/packageMetadata.ts +0 -3
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/protocol/Authorize.ts +0 -74
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/request/AuthorizationCodeRequest.ts +0 -39
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/request/AuthorizationUrlRequest.ts +0 -50
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/request/ClientCredentialRequest.ts +0 -32
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/request/DeviceCodeRequest.ts +0 -34
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/request/InteractiveRequest.ts +0 -32
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/request/ManagedIdentityRequest.ts +0 -18
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/request/ManagedIdentityRequestParams.ts +0 -17
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/request/OnBehalfOfRequest.ts +0 -30
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/request/RefreshTokenRequest.ts +0 -34
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/request/SignOutRequest.ts +0 -12
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/request/SilentFlowRequest.ts +0 -27
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/request/UsernamePasswordRequest.ts +0 -36
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/response/ManagedIdentityTokenResponse.ts +0 -55
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/retry/DefaultManagedIdentityRetryPolicy.ts +0 -70
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/retry/ExponentialRetryStrategy.ts +0 -53
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/retry/IHttpRetryPolicy.ts +0 -27
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/retry/ImdsRetryPolicy.ts +0 -121
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/retry/LinearRetryStrategy.ts +0 -40
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/utils/Constants.ts +0 -195
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/utils/EncodingUtils.ts +0 -50
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/utils/NetworkUtils.ts +0 -61
- package/node_modules/@microsoft/teams.apps/node_modules/@azure/msal-node/src/utils/TimeUtils.ts +0 -20
- package/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/node_modules/typebox/build/schema/engine/_guard.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/_guard.mjs +0 -26
- package/node_modules/typebox/build/schema/types/_guard.d.mts +0 -10
- package/node_modules/typebox/build/schema/types/_guard.mjs +0 -16
- package/node_modules/typebox/build/type/action/_optional.d.mts +0 -19
- package/node_modules/typebox/build/type/action/_optional.mjs +0 -40
- package/node_modules/typebox/build/type/action/_readonly.d.mts +0 -19
- package/node_modules/typebox/build/type/action/_readonly.mjs +0 -40
- package/node_modules/typebox/build/type/action/awaited.d.mts +0 -15
- package/node_modules/typebox/build/type/action/awaited.mjs +0 -15
- package/node_modules/typebox/build/type/action/options.d.mts +0 -11
- package/node_modules/typebox/build/type/action/options.mjs +0 -11
- package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +0 -11
- package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +0 -20
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +0 -14
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +0 -24
- package/node_modules/typebox/build/type/engine/options/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/options/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +0 -8
- package/node_modules/typebox/build/type/extends/async_iterator.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/async_iterator.mjs +0 -9
- package/node_modules/typebox/build/type/extends/iterator.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/iterator.mjs +0 -9
- package/node_modules/typebox/build/type/extends/promise.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/promise.mjs +0 -9
- package/node_modules/typebox/build/type/types/async_iterator.d.mts +0 -20
- package/node_modules/typebox/build/type/types/async_iterator.mjs +0 -28
- package/node_modules/typebox/build/type/types/base.d.mts +0 -50
- package/node_modules/typebox/build/type/types/base.mjs +0 -84
- package/node_modules/typebox/build/type/types/iterator.d.mts +0 -20
- package/node_modules/typebox/build/type/types/iterator.mjs +0 -28
- package/node_modules/typebox/build/type/types/promise.d.mts +0 -21
- package/node_modules/typebox/build/type/types/promise.mjs +0 -29
- package/node_modules/typebox/build/value/clean/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/convert/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_async_iterator.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_async_iterator.mjs +0 -5
- package/node_modules/typebox/build/value/create/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_iterator.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_iterator.mjs +0 -5
- package/node_modules/typebox/build/value/create/from_promise.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_promise.mjs +0 -5
- package/node_modules/typebox/build/value/default/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_base.mjs +0 -5
- package/node_modules/typebox/build/value/mutate/error.d.mts +0 -3
- package/node_modules/typebox/build/value/mutate/error.mjs +0 -6
- package/node_modules/typebox/build/value/mutate/from_array.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_array.mjs +0 -16
- package/node_modules/typebox/build/value/mutate/from_object.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_object.mjs +0 -40
- package/node_modules/typebox/build/value/mutate/from_unknown.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_unknown.mjs +0 -7
- package/node_modules/typebox/build/value/mutate/from_value.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_value.mjs +0 -12
- package/node_modules/typebox/build/value/mutate/index.d.mts +0 -1
- package/node_modules/typebox/build/value/mutate/index.mjs +0 -1
- package/node_modules/typebox/build/value/mutate/mutate.d.mts +0 -11
- package/node_modules/typebox/build/value/mutate/mutate.mjs +0 -41
- package/node_modules/typebox/build/value/repair/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_base.mjs +0 -8
- package/node_modules/uuid/LICENSE.md +0 -9
- package/node_modules/uuid/README.md +0 -491
- package/node_modules/uuid/dist/index.d.ts +0 -15
- package/node_modules/uuid/dist/index.js +0 -14
- package/node_modules/uuid/dist/max.d.ts +0 -2
- package/node_modules/uuid/dist/max.js +0 -1
- package/node_modules/uuid/dist/md5.d.ts +0 -2
- package/node_modules/uuid/dist/md5.js +0 -135
- package/node_modules/uuid/dist/nil.d.ts +0 -2
- package/node_modules/uuid/dist/nil.js +0 -1
- package/node_modules/uuid/dist/parse.d.ts +0 -3
- package/node_modules/uuid/dist/parse.js +0 -9
- package/node_modules/uuid/dist/regex.d.ts +0 -2
- package/node_modules/uuid/dist/regex.js +0 -1
- package/node_modules/uuid/dist/rng.d.ts +0 -1
- package/node_modules/uuid/dist/rng.js +0 -4
- package/node_modules/uuid/dist/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/sha1.js +0 -70
- package/node_modules/uuid/dist/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/stringify.js +0 -35
- package/node_modules/uuid/dist/types.d.ts +0 -22
- package/node_modules/uuid/dist/types.js +0 -1
- package/node_modules/uuid/dist/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/uuid-bin.js +0 -70
- package/node_modules/uuid/dist/v1.d.ts +0 -11
- package/node_modules/uuid/dist/v1.js +0 -83
- package/node_modules/uuid/dist/v1ToV6.d.ts +0 -3
- package/node_modules/uuid/dist/v1ToV6.js +0 -10
- package/node_modules/uuid/dist/v3.d.ts +0 -9
- package/node_modules/uuid/dist/v3.js +0 -9
- package/node_modules/uuid/dist/v35.d.ts +0 -7
- package/node_modules/uuid/dist/v35.js +0 -39
- package/node_modules/uuid/dist/v4.d.ts +0 -4
- package/node_modules/uuid/dist/v4.js +0 -29
- package/node_modules/uuid/dist/v5.d.ts +0 -9
- package/node_modules/uuid/dist/v5.js +0 -9
- package/node_modules/uuid/dist/v6.d.ts +0 -4
- package/node_modules/uuid/dist/v6.js +0 -20
- package/node_modules/uuid/dist/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/v6ToV1.js +0 -10
- package/node_modules/uuid/dist/v7.d.ts +0 -9
- package/node_modules/uuid/dist/v7.js +0 -65
- package/node_modules/uuid/dist/validate.d.ts +0 -2
- package/node_modules/uuid/dist/validate.js +0 -5
- package/node_modules/uuid/dist/version.d.ts +0 -2
- package/node_modules/uuid/dist/version.js +0 -8
- package/node_modules/uuid/dist-node/bin/uuid +0 -2
- package/node_modules/uuid/dist-node/index.js +0 -14
- package/node_modules/uuid/dist-node/max.js +0 -1
- package/node_modules/uuid/dist-node/md5.js +0 -11
- package/node_modules/uuid/dist-node/nil.js +0 -1
- package/node_modules/uuid/dist-node/parse.js +0 -9
- package/node_modules/uuid/dist-node/regex.js +0 -1
- package/node_modules/uuid/dist-node/rng.js +0 -4
- package/node_modules/uuid/dist-node/sha1.js +0 -11
- package/node_modules/uuid/dist-node/stringify.js +0 -35
- package/node_modules/uuid/dist-node/types.js +0 -1
- package/node_modules/uuid/dist-node/uuid-bin.js +0 -70
- package/node_modules/uuid/dist-node/v1.js +0 -83
- package/node_modules/uuid/dist-node/v1ToV6.js +0 -10
- package/node_modules/uuid/dist-node/v3.js +0 -9
- package/node_modules/uuid/dist-node/v35.js +0 -39
- package/node_modules/uuid/dist-node/v4.js +0 -29
- package/node_modules/uuid/dist-node/v5.js +0 -9
- package/node_modules/uuid/dist-node/v6.js +0 -20
- package/node_modules/uuid/dist-node/v6ToV1.js +0 -10
- package/node_modules/uuid/dist-node/v7.js +0 -65
- package/node_modules/uuid/dist-node/validate.js +0 -5
- package/node_modules/uuid/dist-node/version.js +0 -8
- package/node_modules/uuid/package.json +0 -110
- /package/node_modules/typebox/build/type/engine/{awaited → with}/index.d.mts +0 -0
- /package/node_modules/typebox/build/type/engine/{awaited → with}/index.mjs +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
2
|
-
"use strict";!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).msal={})}(this,(function(e){const t="https://login.microsoftonline.com/common/",r="common",n=`${t}discovery/instance?api-version=1.1&authorization_endpoint=`,o=".ciamlogin.com",i=".onmicrosoft.com",s="openid",a="profile",c="offline_access",h="S256",l="Not Available",d="http://169.254.169.254/metadata/instance/compute/location",u=["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],g="GET",p="POST",m=[s,a,c],f=[...m,"email"],y="Content-Type",w="Content-Length",I="Retry-After",C="X-AnchorMailbox",v="WWW-Authenticate",k="Authentication-Info",T="x-ms-request-id",b="x-ms-httpver",A="active-account-filters",S="common",_="organizations",E="consumers",P="access_token",R="xms_cc",O={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},M="code",x="id_token token refresh_token",q={QUERY:"query",FRAGMENT:"fragment",FORM_POST:"form_post"},N="authorization_code",U="refresh_token",L="Generic",H={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},F="appmetadata",D="1",K="authority-metadata",B="config",z="cache",j="network",$="hardcoded_values",J=5,W="server-telemetry",G=",",Q={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},V="throttling",Y="1",Z="3",X="4",ee="2",te="4",re="5",ne="0",oe="1",ie="2",se="3",ae="4",ce={Jwt:"JWT",Jwk:"JWK",Pop:"pop"},he="client_id",le="redirect_uri",de="token_type",ue="req_cnf",ge="return_spa_code",pe="x-client-xtra-sku",me="brk_client_id",fe="brk_redirect_uri",ye="instance_aware";function we(e){return`See https://aka.ms/msal.js.errors#${e} for details`}class Ie extends Error{constructor(e,t,r){const n=t||(e?we(e):"");super(n?`${e}: ${n}`:e),Object.setPrototypeOf(this,Ie.prototype),this.errorCode=e||"",this.errorMessage=n||"",this.subError=r||"",this.name="AuthError"}setCorrelationId(e){this.correlationId=e}}function Ce(e,t){return new Ie(e,t||we(e))}class ve extends Ie{constructor(e){super(e),this.name="ClientConfigurationError",Object.setPrototypeOf(this,ve.prototype)}}function ke(e){return new ve(e)}class Te{static isEmptyObj(e){if(e)try{const t=JSON.parse(e);return 0===Object.keys(t).length}catch(e){}return!0}static startsWith(e,t){return 0===e.indexOf(t)}static endsWith(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length}static queryStringToObject(e){const t={},r=e.split("&"),n=e=>decodeURIComponent(e.replace(/\+/g," "));return r.forEach((e=>{if(e.trim()){const[r,o]=e.split(/=(.+)/g,2);r&&o&&(t[n(r)]=n(o))}})),t}static trimArrayEntries(e){return e.map((e=>e.trim()))}static removeEmptyStringsFromArray(e){return e.filter((e=>!!e))}static jsonParseHelper(e){try{return JSON.parse(e)}catch(e){return null}}}class be extends Ie{constructor(e,t){super(e,t),this.name="ClientAuthError",Object.setPrototypeOf(this,be.prototype)}}function Ae(e,t){return new be(e,t)}const Se="redirect_uri_empty",_e="authority_uri_insecure",Ee="url_parse_error",Pe="empty_url_error",Re="empty_input_scopes_error",Oe="invalid_claims",Me="token_request_empty",xe="logout_request_empty",qe="pkce_params_missing",Ne="invalid_cloud_discovery_metadata",Ue="invalid_authority_metadata",Le="untrusted_authority",He="missing_ssh_jwk",Fe="missing_ssh_kid",De="missing_nonce_authentication_header",Ke="invalid_authentication_header",Be="cannot_set_OIDCOptions",ze="cannot_allow_platform_broker",je="authority_mismatch",$e="invalid_request_method_for_EAR",Je="invalid_platform_broker_configuration",We="issuer_validation_failed";var Ge=Object.freeze({__proto__:null,authorityMismatch:je,authorityUriInsecure:_e,cannotAllowPlatformBroker:ze,cannotSetOIDCOptions:Be,claimsRequestParsingError:"claims_request_parsing_error",emptyInputScopesError:Re,invalidAuthenticationHeader:Ke,invalidAuthorityMetadata:Ue,invalidClaims:Oe,invalidCloudDiscoveryMetadata:Ne,invalidCodeChallengeMethod:"invalid_code_challenge_method",invalidPlatformBrokerConfiguration:Je,invalidRequestMethodForEAR:$e,issuerValidationFailed:We,logoutRequestEmpty:xe,missingNonceAuthenticationHeader:De,missingSshJwk:He,missingSshKid:Fe,pkceParamsMissing:qe,redirectUriEmpty:Se,tokenRequestEmpty:Me,untrustedAuthority:Le,urlEmptyError:Pe,urlParseError:Ee});const Qe="client_info_decoding_error",Ve="client_info_empty_error",Ye="token_parsing_error",Ze="null_or_empty_token",Xe="endpoints_resolution_error",et="network_error",tt="openid_config_error",rt="hash_not_deserialized",nt="invalid_state",ot="state_mismatch",it="state_not_found",st="nonce_mismatch",at="auth_time_not_found",ct="max_age_transpired",ht="multiple_matching_appMetadata",lt="request_cannot_be_made",dt="cannot_remove_empty_scope",ut="cannot_append_scopeset",gt="empty_input_scopeset",pt="no_account_in_silent_request",mt="invalid_cache_record",ft="invalid_cache_environment",yt="no_account_found",wt="no_crypto_object",It="token_refresh_required",Ct="token_claims_cnf_required_for_signedjwt",vt="authorization_code_missing_from_server_response",kt="binding_key_not_removed",Tt="end_session_endpoint_not_supported",bt="key_id_missing",At="no_network_connectivity",St="user_canceled",_t="method_not_implemented",Et="nested_app_auth_bridge_disabled",Pt="resource_parameter_required",Rt="misplaced_resource_parameter";var Ot=Object.freeze({__proto__:null,authTimeNotFound:at,authorizationCodeMissingFromServerResponse:vt,bindingKeyNotRemoved:kt,cannotAppendScopeSet:ut,cannotRemoveEmptyScope:dt,clientInfoDecodingError:Qe,clientInfoEmptyError:Ve,emptyInputScopeSet:gt,endSessionEndpointNotSupported:Tt,endpointResolutionError:Xe,hashNotDeserialized:rt,invalidCacheEnvironment:ft,invalidCacheRecord:mt,invalidState:nt,keyIdMissing:bt,maxAgeTranspired:ct,methodNotImplemented:_t,misplacedResourceParam:Rt,multipleMatchingAppMetadata:ht,multipleMatchingTokens:"multiple_matching_tokens",nestedAppAuthBridgeDisabled:Et,networkError:et,noAccountFound:yt,noAccountInSilentRequest:pt,noCryptoObject:wt,noNetworkConnectivity:At,nonceMismatch:st,nullOrEmptyToken:Ze,openIdConfigError:tt,platformBrokerError:"platform_broker_error",requestCannotBeMade:lt,resourceParameterRequired:Pt,stateMismatch:ot,stateNotFound:it,tokenClaimsCnfRequiredForSignedJwt:Ct,tokenParsingError:Ye,tokenRefreshRequired:It,unexpectedCredentialType:"unexpected_credential_type",userCanceled:St});class Mt{constructor(e){const t=e?Te.trimArrayEntries([...e]):[],r=t?Te.removeEmptyStringsFromArray(t):[];if(!r||!r.length)throw ke(Re);this.scopes=new Set,r.forEach((e=>this.scopes.add(e)))}static fromString(e){const t=(e||"").split(" ");return new Mt(t)}static createSearchScopes(e){const t=e&&e.length>0?e:[...m],r=new Mt(t);return r.containsOnlyOIDCScopes()?r.removeScope(c):r.removeOIDCScopes(),r}containsScope(e){const t=this.printScopesLowerCase().split(" "),r=new Mt(t);return!!e&&r.scopes.has(e.toLowerCase())}containsScopeSet(e){return!(!e||e.scopes.size<=0)&&(this.scopes.size>=e.scopes.size&&e.asArray().every((e=>this.containsScope(e))))}containsOnlyOIDCScopes(){let e=0;return f.forEach((t=>{this.containsScope(t)&&(e+=1)})),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach((e=>this.appendScope(e)))}catch(e){throw Ae(ut)}}removeScope(e){if(!e)throw Ae(dt);this.scopes.delete(e.trim())}removeOIDCScopes(){f.forEach((e=>{this.scopes.delete(e)}))}unionScopeSets(e){if(!e)throw Ae(gt);const t=new Set;return e.scopes.forEach((e=>t.add(e.toLowerCase()))),this.scopes.forEach((e=>t.add(e.toLowerCase()))),t}intersectingScopeSets(e){if(!e)throw Ae(gt);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const t=this.unionScopeSets(e),r=e.getScopeCount(),n=this.getScopeCount();return t.size<n+r}getScopeCount(){return this.scopes.size}asArray(){const e=[];return this.scopes.forEach((t=>e.push(t))),e}printScopes(){if(this.scopes){return this.asArray().join(" ")}return""}printScopesLowerCase(){return this.printScopes().toLowerCase()}}function xt(e,t,r){if(!t)return;const n=e.get(he);n&&e.has(me)&&r?.addFields({embeddedClientId:n,embeddedRedirectUri:e.get(le)},t)}function qt(e,t){e.set("response_type",t)}function Nt(e,t,r=!0,n=m){!r||n.includes("openid")||t.includes("openid")||n.push("openid");const o=r?[...t||[],...n]:t||[],i=new Mt(o);e.set("scope",i.printScopes())}function Ut(e,t){e.set(he,t)}function Lt(e,t){e.set(le,t)}function Ht(e,t){e.set("login_hint",t)}function Ft(e,t){e.set(C,`UPN:${t}`)}function Dt(e,t){e.set(C,`Oid:${t.uid}@${t.utid}`)}function Kt(e,t){e.set("sid",t)}function Bt(e,t,r,n){const o=n&&e.has(me)?void 0:r;if(!Te.isEmptyObj(t)||o&&o.length>0){const r=tr(t,o);try{JSON.parse(r)}catch(e){throw ke(Oe)}e.set("claims",r)}}function zt(e,t){e.set("client-request-id",t)}function jt(e,t){e.set("x-client-SKU",t.sku),e.set("x-client-VER",t.version),t.os&&e.set("x-client-OS",t.os),t.cpu&&e.set("x-client-CPU",t.cpu)}function $t(e,t){t?.appName&&e.set("x-app-name",t.appName),t?.appVersion&&e.set("x-app-ver",t.appVersion)}function Jt(e,t){t&&e.set("state",t)}function Wt(e,t,r){if(!t||!r)throw ke(qe);e.set("code_challenge",t),e.set("code_challenge_method",r)}function Gt(e,t){e.set("client_secret",t)}function Qt(e,t){t&&e.set("client_assertion",t)}function Vt(e,t){t&&e.set("client_assertion_type",t)}function Yt(e,t){e.set("grant_type",t)}function Zt(e){e.set("client_info","1")}function Xt(e){e.has(ye)||e.set(ye,"true")}function er(e,t){Object.entries(t).forEach((([t,r])=>{!e.has(t)&&r&&e.set(t,r)}))}function tr(e,t){let r;if(e)try{r=JSON.parse(e)}catch(e){throw ke(Oe)}else r={};return t&&t.length>0&&(r.hasOwnProperty(P)||(r[P]={}),r[P][R]={values:t}),JSON.stringify(r)}function rr(e,t){t&&(e.set(de,Q.POP),e.set(ue,t))}function nr(e,t){t&&(e.set(de,Q.SSH),e.set(ue,t))}function or(e,t){e.set("x-client-current-telemetry",t.generateCurrentRequestHeaderValue()),e.set("x-client-last-telemetry",t.generateLastRequestHeaderValue())}function ir(e){e.set("x-ms-lib-capability","retry-after, h429")}function sr(e,t,r){e.has(me)||e.set(me,t),e.has(fe)||e.set(fe,r)}function ar(e,t){t&&e.set("resource",t)}function cr(e){if(!e)return e;let t=e.toLowerCase();return Te.endsWith(t,"?")?t=t.slice(0,-1):Te.endsWith(t,"?/")&&(t=t.slice(0,-2)),Te.endsWith(t,"/")||(t+="/"),t}function hr(e){return e.startsWith("#/")?e.substring(2):e.startsWith("#")||e.startsWith("?")?e.substring(1):e}function lr(e){if(!e||e.indexOf("=")<0)return null;try{const t=hr(e),r=Object.fromEntries(new URLSearchParams(t));if(r.code||r.ear_jwe||r.error||r.error_description||r.state)return r}catch(e){throw Ae(rt)}return null}function dr(e){const t=new Array;return e.forEach(((e,r)=>{t.push(`${r}=${encodeURIComponent(e)}`)})),t.join("&")}function ur(e){if(!e)return e;const t=e.split("#")[0];try{const e=new URL(t);return cr(e.origin+e.pathname+e.search)}catch(e){return cr(t)}}const gr={createNewGuid:()=>{throw Ae(_t)},base64Decode:()=>{throw Ae(_t)},base64Encode:()=>{throw Ae(_t)},base64UrlEncode:()=>{throw Ae(_t)},encodeKid:()=>{throw Ae(_t)},async getPublicKeyThumbprint(){throw Ae(_t)},async removeTokenBindingKey(){throw Ae(_t)},async clearKeystore(){throw Ae(_t)},async signJwt(){throw Ae(_t)},async hashString(){throw Ae(_t)}};var pr;e.LogLevel=void 0,(pr=e.LogLevel||(e.LogLevel={}))[pr.Error=0]="Error",pr[pr.Warning=1]="Warning",pr[pr.Info=2]="Info",pr[pr.Verbose=3]="Verbose",pr[pr.Trace=4]="Trace";const mr=new Map;function fr(e,t){const r=Date.now();let n=mr.get(e);if(n)!function(e,t){mr.delete(e),mr.set(e,t)}(e,n);else if(n={logs:[],firstEventTime:r},mr.set(e,n),mr.size>50){const e=mr.keys().next().value;e&&mr.delete(e)}n.logs.push({...t,milliseconds:r-n.firstEventTime}),n.logs.length>500&&n.logs.shift()}class yr{constructor(t,r,n){this.level=e.LogLevel.Info;const o=t||yr.createDefaultLoggerOptions();this.localCallback=o.loggerCallback||(()=>{}),this.piiLoggingEnabled=o.piiLoggingEnabled||!1,this.level="number"==typeof o.logLevel?o.logLevel:e.LogLevel.Info,this.packageName=r||"",this.packageVersion=n||""}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:e.LogLevel.Info}}clone(e,t){return new yr({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level},e,t)}logMessage(t,r){const n=r.correlationId;if(function(e){if(6!==e.length)return!1;for(let t=0;t<e.length;t++){const r=e[t];if(!(r>="a"&&r<="z"||r>="A"&&r<="Z"||r>="0"&&r<="9"))return!1}return!0}(t)){fr(n,{hash:t,level:r.logLevel,containsPii:r.containsPii||!1,milliseconds:0})}if(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)return;const o=`${`[${(new Date).toUTCString()}] : [${n}]`} : ${this.packageName}@${this.packageVersion} : ${e.LogLevel[r.logLevel]} - ${t}`;this.executeCallback(r.logLevel,o,r.containsPii||!1)}executeCallback(e,t,r){this.localCallback&&this.localCallback(e,t,r)}error(t,r){this.logMessage(t,{logLevel:e.LogLevel.Error,containsPii:!1,correlationId:r})}errorPii(t,r){this.logMessage(t,{logLevel:e.LogLevel.Error,containsPii:!0,correlationId:r})}warning(t,r){this.logMessage(t,{logLevel:e.LogLevel.Warning,containsPii:!1,correlationId:r})}warningPii(t,r){this.logMessage(t,{logLevel:e.LogLevel.Warning,containsPii:!0,correlationId:r})}info(t,r){this.logMessage(t,{logLevel:e.LogLevel.Info,containsPii:!1,correlationId:r})}infoPii(t,r){this.logMessage(t,{logLevel:e.LogLevel.Info,containsPii:!0,correlationId:r})}verbose(t,r){this.logMessage(t,{logLevel:e.LogLevel.Verbose,containsPii:!1,correlationId:r})}verbosePii(t,r){this.logMessage(t,{logLevel:e.LogLevel.Verbose,containsPii:!0,correlationId:r})}trace(t,r){this.logMessage(t,{logLevel:e.LogLevel.Trace,containsPii:!1,correlationId:r})}tracePii(t,r){this.logMessage(t,{logLevel:e.LogLevel.Trace,containsPii:!0,correlationId:r})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}const wr="@azure/msal-common",Ir="16.7.0",Cr={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"};function vr(e,t){return!!e&&!!t&&e===t.split(".")[1]}function kr(e,t,r,n){if(n){const{oid:t,sub:r,tid:o,name:i,tfp:s,acr:a,preferred_username:c,upn:h,login_hint:l}=n,d=o||s||a||"";return{tenantId:d,localAccountId:t||r||"",name:i,username:c||h||"",loginHint:l,isHomeTenant:vr(d,e),upn:h}}return{tenantId:r,localAccountId:t,username:"",isHomeTenant:vr(r,e)}}function Tr(e,t,r,n){let o=e;if(t){const{isHomeTenant:r,...n}=t;o={...e,...n}}if(r){const{isHomeTenant:t,...i}=kr(e.homeAccountId,e.localAccountId,e.tenantId,r);return o={...o,...i,idTokenClaims:r,idToken:n},o}return o}function br(e,t){const r=function(e){if(!e)throw Ae(Ze);const t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(e);if(!t||t.length<4)throw Ae(Ye);return t[2]}(e);try{const e=t(r);return JSON.parse(e)}catch(e){throw Ae(Ye)}}function Ar(e){if(!e.signin_state)return!1;const t=["kmsi","dvc_dmjd"];return e.signin_state.some((e=>t.includes(e.trim().toLowerCase())))}function Sr(e,t){if(0===t||Date.now()-3e5>e+t)throw Ae(ct)}class _r{get urlString(){return this._urlString}constructor(e){if(this._urlString=e,!this._urlString)throw ke(Pe);e.includes("#")||(this._urlString=_r.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let t=e.toLowerCase();return Te.endsWith(t,"?")?t=t.slice(0,-1):Te.endsWith(t,"?/")&&(t=t.slice(0,-2)),Te.endsWith(t,"/")||(t+="/"),t}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch(e){throw ke(Ee)}if(!e.HostNameAndPort||!e.PathSegments)throw ke(Ee);if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw ke(_e)}static appendQueryString(e,t){return t?e.indexOf("?")<0?`${e}?${t}`:`${e}&${t}`:e}static removeHashFromUrl(e){return _r.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const t=this.getUrlComponents(),r=t.PathSegments;return!e||0===r.length||r[0]!==S&&r[0]!==_||(r[0]=e),_r.constructAuthorityUriFromObject(t)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw ke(Ee);const r={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]};let n=r.AbsolutePath.split("/");return n=n.filter((e=>e&&e.length>0)),r.PathSegments=n,r.QueryString&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r}static getDomainFromUrl(e){const t=RegExp("^([^:/?#]+://)?([^/?#]*)"),r=e.match(t);if(!r)throw ke(Ee);return r[2]}static getAbsoluteUrl(e,t){if("/"===e[0]){const r=new _r(t).getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new _r(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}}const Er={endpointMetadata:[{host:"login.microsoftonline.com"},{host:"login.chinacloudapi.cn",issuerHost:"login.partner.microsoftonline.cn"},{host:"login.microsoftonline.us"},{host:"login.sovcloud-identity.fr"},{host:"login.sovcloud-identity.de"},{host:"login.sovcloud-identity.sg"}].reduce(((e,{host:t,issuerHost:r})=>(e[t]=function(e,t){return{token_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/token`,jwks_uri:`https://${e}/{tenantid}/discovery/v2.0/keys`,issuer:`https://${t}/{tenantid}/v2.0`,authorization_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/authorize`,end_session_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/logout`}}(t,r||t),e)),{}),instanceDiscoveryMetadata:{metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]},{preferred_network:"login.sovcloud-identity.fr",preferred_cache:"login.sovcloud-identity.fr",aliases:["login.sovcloud-identity.fr"]},{preferred_network:"login.sovcloud-identity.de",preferred_cache:"login.sovcloud-identity.de",aliases:["login.sovcloud-identity.de"]},{preferred_network:"login.sovcloud-identity.sg",preferred_cache:"login.sovcloud-identity.sg",aliases:["login.sovcloud-identity.sg"]},{preferred_network:"login.windows-ppe.net",preferred_cache:"login.windows-ppe.net",aliases:["login.windows-ppe.net","sts.windows-ppe.net","login.microsoft-ppe.com"]}]}},Pr=Er.endpointMetadata,Rr=Er.instanceDiscoveryMetadata,Or=new Set;function Mr(e,t,r,n,o){if(e.trace("1bmquz",t),r&&n){const o=xr(n,r);if(o)return e.trace("1fotbt",t),o.aliases;e.trace("14avvj",t)}return null}function xr(e,t){for(let r=0;r<e.length;r++){const n=e[r];if(n.aliases.includes(t))return n}return null}Rr.metadata.forEach((e=>{e.aliases.forEach((e=>{Or.add(e)}))}));const qr="cache_quota_exceeded";class Nr extends Error{constructor(e,t){const r=t||we(e);super(r),Object.setPrototypeOf(this,Nr.prototype),this.name="CacheError",this.errorCode=e,this.errorMessage=r}}function Ur(e){return e instanceof Error?"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name||e.message.includes("exceeded the quota")?new Nr(qr):new Nr(e.name,e.message):new Nr("cache_error_unknown")}function Lr(e,t){if(!e)throw Ae(Ve);try{const r=t(e);return JSON.parse(r)}catch(e){throw Ae(Qe)}}function Hr(e){if(!e)throw Ae(Qe);const t=e.split(".",2);return{uid:t[0],utid:t.length<2?"":t[1]}}const Fr=0,Dr=1,Kr=2,Br=3;function zr(e){if(e){return e.tid||e.tfp||e.acr||null}return null}const jr={AAD:"AAD",OIDC:"OIDC",EAR:"EAR"};function $r(e){const t=e.tenantProfiles||[];return 0===t.length&&e.realm&&e.localAccountId&&t.push(kr(e.homeAccountId,e.localAccountId,e.realm)),{homeAccountId:e.homeAccountId,environment:e.environment,tenantId:e.realm,username:e.username,localAccountId:e.localAccountId,loginHint:e.loginHint,name:e.name,nativeAccountId:e.nativeAccountId,authorityType:e.authorityType,tenantProfiles:new Map(t.map((e=>[e.tenantId,e]))),dataBoundary:e.dataBoundary}}function Jr(e,t,r){const n=Array.from(e.tenantProfiles?.values()||[]);return 0===n.length&&e.tenantId&&e.localAccountId&&n.push(kr(e.homeAccountId,e.localAccountId,e.tenantId,e.idTokenClaims)),{authorityType:e.authorityType||L,homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,nativeAccountId:e.nativeAccountId,realm:e.tenantId,environment:e.environment,username:e.username,loginHint:e.loginHint,name:e.name,cloudGraphHostName:t,msGraphHost:r,tenantProfiles:n,dataBoundary:e.dataBoundary}}function Wr(e,t,r,n,o,i){if(t!==Dr&&t!==Kr){if(e)try{const t=Lr(e,n.base64Decode);if(t.uid&&t.utid)return`${t.uid}.${t.utid}`}catch(e){}r.warning("1ub6wv",o)}return i?.sub||""}class Gr{constructor(e,t,r,n,o){this.clientId=e,this.cryptoImpl=t,this.commonLogger=r.clone(wr,Ir),this.staticAuthorityOptions=o,this.performanceClient=n}getAllAccounts(e={},t){return this.buildTenantProfiles(this.getAccountsFilteredBy(e,t),t,e)}getAccountInfoFilteredBy(e,t){if(0===Object.keys(e).length||Object.values(e).every((e=>null==e||""===e)))return this.commonLogger.warning("1skb02",t),null;const r=this.getAllAccounts(e,t);if(r.length>1){return r.sort(((e,t)=>{const r=e.idTokenClaims?1:0;return(t.idTokenClaims?1:0)-r}))[0]}return 1===r.length?r[0]:null}getBaseAccountInfo(e,t){const r=this.getAccountsFilteredBy(e,t);return r.length>0?$r(r[0]):null}buildTenantProfiles(e,t,r){return e.flatMap((e=>this.getTenantProfilesFromAccountEntity(e,t,r?.tenantId,r)))}getTenantedAccountInfoByFilter(e,t,r,n,o){let i,s=null;if(o&&!this.tenantProfileMatchesFilter(r,o))return null;const a=this.getIdToken(e,n,t,r.tenantId);return a&&(i=br(a.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(i,o))?null:(s=Tr(e,r,i,a?.secret),s)}getTenantProfilesFromAccountEntity(e,t,r,n){const o=$r(e);let i=o.tenantProfiles||new Map;const s=this.getTokenKeys();if(r){const e=i.get(r);if(!e)return[];i=new Map([[r,e]])}const a=[];return i.forEach((e=>{const r=this.getTenantedAccountInfoByFilter(o,s,e,t,n);r&&a.push(r)})),a}tenantProfileMatchesFilter(e,t){return!(t.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,t.localAccountId))&&((!t.name||e.name===t.name)&&((void 0===t.isHomeTenant||e.isHomeTenant===t.isHomeTenant)&&(!(t.username&&!this.matchUsername(e.username,t.username)&&!this.matchUsername(e.upn,t.username))&&(!(t.loginHint&&!this.matchLoginHintWithTenantProfile(e,t.loginHint))&&(!t.upn||e.upn===t.upn)))))}idTokenClaimsMatchTenantProfileFilter(e,t){if(t){if(t.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,t.localAccountId))return!1;if(t.loginHint&&!this.matchLoginHintFromTokenClaims(e,t.loginHint))return!1;if(t.username&&!this.matchUsername(e.preferred_username,t.username)&&!this.matchUsername(e.upn,t.username))return!1;if(t.name&&!this.matchName(e,t.name))return!1;if(t.sid&&!this.matchSid(e,t.sid))return!1}return!0}async saveCacheRecord(e,t,r,n,o){if(!e)throw Ae(mt);try{e.account&&await this.setAccount(e.account,t,r,n),e.idToken&&!1!==o?.idToken&&await this.setIdTokenCredential(e.idToken,t,r),e.accessToken&&!1!==o?.accessToken&&await this.saveAccessToken(e.accessToken,t,r),e.refreshToken&&!1!==o?.refreshToken&&await this.setRefreshTokenCredential(e.refreshToken,t,r),e.appMetadata&&this.setAppMetadata(e.appMetadata,t)}catch(e){throw this.commonLogger?.error("0j476p",t),e instanceof Ie?e:Ur(e)}}async saveAccessToken(e,t,r){const n={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType},o=this.getTokenKeys(),i=Mt.fromString(e.target);o.accessToken.forEach((e=>{if(!this.accessTokenKeyMatchesFilter(e,n,!1))return;const r=this.getAccessTokenCredential(e,t);if(r&&this.credentialMatchesFilter(r,n,t)){Mt.fromString(r.target).intersectingScopeSets(i)&&this.removeAccessToken(e,t)}})),await this.setAccessTokenCredential(e,t,r)}getAccountsFilteredBy(e,t){const r=this.getAccountKeys(),n=[];return r.forEach((r=>{const o=this.getAccount(r,t);if(!o)return;if(e.homeAccountId&&!this.matchHomeAccountId(o,e.homeAccountId))return;if(e.environment&&!this.matchEnvironment(o,e.environment,t))return;if(e.realm&&!this.matchRealm(o,e.realm))return;if(e.nativeAccountId&&!this.matchNativeAccountId(o,e.nativeAccountId))return;if(e.authorityType&&!this.matchAuthorityType(o,e.authorityType))return;const i={localAccountId:e?.localAccountId,name:e?.name,username:e?.username,loginHint:e?.loginHint,upn:e?.upn},s=o.tenantProfiles?.filter((e=>this.tenantProfileMatchesFilter(e,i)));s&&0===s.length||n.push(o)})),n}credentialMatchesFilter(e,t,r){if(t.clientId&&!this.matchClientId(e,t.clientId))return!1;if(t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash))return!1;if("string"==typeof t.homeAccountId&&!this.matchHomeAccountId(e,t.homeAccountId))return!1;if(t.environment&&!this.matchEnvironment(e,t.environment,r))return!1;if(t.realm&&!this.matchRealm(e,t.realm))return!1;if(t.credentialType&&!this.matchCredentialType(e,t.credentialType))return!1;if(t.familyId&&!this.matchFamilyId(e,t.familyId))return!1;if(t.target&&!this.matchTarget(e,t.target))return!1;if(e.credentialType===H.ACCESS_TOKEN_WITH_AUTH_SCHEME){if(t.tokenType&&!this.matchTokenType(e,t.tokenType))return!1;if(t.tokenType===Q.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId))return!1}return!0}getAppMetadataFilteredBy(e,t){const r=this.getKeys(),n={};return r.forEach((r=>{if(!this.isAppMetadata(r))return;const o=this.getAppMetadata(r,t);o&&(e.environment&&!this.matchEnvironment(o,e.environment,t)||e.clientId&&!this.matchClientId(o,e.clientId)||(n[r]=o))})),n}getAuthorityMetadataByAlias(e,t){const r=this.getAuthorityMetadataKeys();let n=null;return r.forEach((r=>{if(!this.isAuthorityMetadata(r)||-1===r.indexOf(this.clientId))return;const o=this.getAuthorityMetadata(r,t);o&&-1!==o.aliases.indexOf(e)&&(n=o)})),n}removeAllAccounts(e){this.getAllAccounts({},e).forEach((t=>{this.removeAccount(t,e)}))}removeAccount(e,t){this.removeAccountContext(e,t);this.getAccountKeys().filter((t=>t.includes(e.homeAccountId)&&t.includes(e.environment))).forEach((e=>{this.removeItem(e,t),this.performanceClient.incrementFields({accountsRemoved:1},t)}))}removeAccountContext(e,t){const r=this.getTokenKeys(),n=t=>t.includes(e.homeAccountId)&&t.includes(e.environment);r.idToken.filter(n).forEach((e=>{this.removeIdToken(e,t)})),r.accessToken.filter(n).forEach((e=>{this.removeAccessToken(e,t)})),r.refreshToken.filter(n).forEach((e=>{this.removeRefreshToken(e,t)}))}removeAccessToken(e,t){const r=this.getAccessTokenCredential(e,t);if(r&&(this.removeItem(e,t),this.performanceClient.incrementFields({accessTokensRemoved:1},t),r.credentialType.toLowerCase()===H.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&r.tokenType===Q.POP)){const e=r.keyId;e&&this.cryptoImpl.removeTokenBindingKey(e,t).catch((()=>{this.commonLogger.error("0cx291",t),this.performanceClient?.incrementFields({removeTokenBindingKeyFailure:1},t)}))}}removeAppMetadata(e){return this.getKeys().forEach((t=>{this.isAppMetadata(t)&&this.removeItem(t,e)})),!0}getIdToken(e,t,r,n){this.commonLogger.trace("1drz22",t);const o={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:H.ID_TOKEN,clientId:this.clientId,realm:n},i=this.getIdTokensByFilter(o,t,r),s=i.size;if(s<1)return this.commonLogger.info("1atvtd",t),null;if(s>1){let r=i;if(!n){const n=new Map;i.forEach(((t,r)=>{t.realm===e.tenantId&&n.set(r,t)}));const o=n.size;if(o<1)return this.commonLogger.info("0ooalx",t),i.values().next().value??null;if(1===o)return this.commonLogger.info("1eq2vc",t),n.values().next().value??null;r=n}return this.commonLogger.info("1ws328",t),r.forEach(((e,r)=>{this.removeIdToken(r,t)})),this.performanceClient.addFields({multiMatchedID:i.size},t),null}return this.commonLogger.info("1sm769",t),i.values().next().value??null}getIdTokensByFilter(e,t,r){const n=r&&r.idToken||this.getTokenKeys().idToken,o=new Map;return n.forEach((r=>{if(!this.idTokenKeyMatchesFilter(r,{clientId:this.clientId,...e}))return;const n=this.getIdTokenCredential(r,t);n&&this.credentialMatchesFilter(n,e,t)&&o.set(r,n)})),o}idTokenKeyMatchesFilter(e,t){const r=e.toLowerCase();return(!t.clientId||-1!==r.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==r.indexOf(t.homeAccountId.toLowerCase()))}removeIdToken(e,t){this.removeItem(e,t)}removeRefreshToken(e,t){this.removeItem(e,t)}getAccessToken(e,t,r,n){const o=t.correlationId;this.commonLogger.trace("1t7hz1",o);const i=Mt.createSearchScopes(t.scopes),s=t.authenticationScheme||Q.BEARER,a=s&&s.toLowerCase()!==Q.BEARER.toLowerCase()?H.ACCESS_TOKEN_WITH_AUTH_SCHEME:H.ACCESS_TOKEN,c={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:a,clientId:this.clientId,realm:n||e.tenantId,target:i,tokenType:s,keyId:t.sshKid},h=r&&r.accessToken||this.getTokenKeys().accessToken,l=[];h.forEach((e=>{if(this.accessTokenKeyMatchesFilter(e,c,!0)){const t=this.getAccessTokenCredential(e,o);t&&this.credentialMatchesFilter(t,c,o)&&l.push(t)}}));const d=l.length;return d<1?(this.commonLogger.info("1nckna",o),null):d>1?(this.commonLogger.info("1wkfwp",o),l.forEach((e=>{this.removeAccessToken(this.generateCredentialKey(e),o)})),this.performanceClient.addFields({multiMatchedAT:l.length},o),null):(this.commonLogger.info("06yt98",o),l[0])}accessTokenKeyMatchesFilter(e,t,r){const n=e.toLowerCase();if(t.clientId&&-1===n.indexOf(t.clientId.toLowerCase()))return!1;if(t.homeAccountId&&-1===n.indexOf(t.homeAccountId.toLowerCase()))return!1;if(t.realm&&-1===n.indexOf(t.realm.toLowerCase()))return!1;if(t.target){const e=t.target.asArray();for(let t=0;t<e.length;t++){if(r&&!n.includes(e[t].toLowerCase()))return!1;if(!r&&n.includes(e[t].toLowerCase()))return!0}}return!0}getAccessTokensByFilter(e,t){const r=this.getTokenKeys(),n=[];return r.accessToken.forEach((r=>{if(!this.accessTokenKeyMatchesFilter(r,e,!0))return;const o=this.getAccessTokenCredential(r,t);o&&this.credentialMatchesFilter(o,e,t)&&n.push(o)})),n}getRefreshToken(e,t,r,n){this.commonLogger.trace("0x53vi",r);const o=t?D:void 0,i={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:H.REFRESH_TOKEN,clientId:this.clientId,familyId:o},s=n&&n.refreshToken||this.getTokenKeys().refreshToken,a=[];s.forEach((e=>{if(this.refreshTokenKeyMatchesFilter(e,i)){const t=this.getRefreshTokenCredential(e,r);t&&this.credentialMatchesFilter(t,i,r)&&a.push(t)}}));const c=a.length;return c<1?(this.commonLogger.info("0dlw11",r),null):(c>1&&this.performanceClient.addFields({multiMatchedRT:c},r),this.commonLogger.info("0wcnep",r),a[0])}refreshTokenKeyMatchesFilter(e,t){const r=e.toLowerCase();return(!t.familyId||-1!==r.indexOf(t.familyId.toLowerCase()))&&(!(!t.familyId&&t.clientId&&-1===r.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==r.indexOf(t.homeAccountId.toLowerCase())))}readAppMetadataFromCache(e,t){const r={environment:e,clientId:this.clientId},n=this.getAppMetadataFilteredBy(r,t),o=Object.keys(n).map((e=>n[e])),i=o.length;if(i<1)return null;if(i>1)throw Ae(ht);return o[0]}isAppMetadataFOCI(e,t){const r=this.readAppMetadataFromCache(e,t);return!(!r||r.familyId!==D)}matchHomeAccountId(e,t){return!("string"!=typeof e.homeAccountId||t!==e.homeAccountId)}matchLocalAccountIdFromTokenClaims(e,t){return t===(e.oid||e.sub)}matchLocalAccountIdFromTenantProfile(e,t){return e.localAccountId===t}matchName(e,t){return!(t.toLowerCase()!==e.name?.toLowerCase())}matchUsername(e,t){return!(!e||"string"!=typeof e||t?.toLowerCase()!==e.toLowerCase())}matchLoginHintWithTenantProfile(e,t){return e.loginHint===t||e.username===t||e.upn===t}matchUserAssertionHash(e,t){return!(!e.userAssertionHash||t!==e.userAssertionHash)}matchEnvironment(e,t,r){if(this.staticAuthorityOptions){const n=function(e,t,r){let n;const o=e.canonicalAuthority;if(o){const i=new _r(o).getUrlComponents().HostNameAndPort;n=Mr(t,r,i,e.cloudDiscoveryMetadata?.metadata)||Mr(t,r,i,Rr.metadata)||e.knownAuthorities}return n||[]}(this.staticAuthorityOptions,this.commonLogger,r);if(n.includes(t)&&n.includes(e.environment))return!0}const n=this.getAuthorityMetadataByAlias(t,r);return!!(n&&n.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,t){return!(!e.clientId||t!==e.clientId)}matchFamilyId(e,t){return!(!e.familyId||t!==e.familyId)}matchRealm(e,t){return!(e.realm?.toLowerCase()!==t.toLowerCase())}matchNativeAccountId(e,t){return!(!e.nativeAccountId||t!==e.nativeAccountId)}matchLoginHintFromTokenClaims(e,t){return e.login_hint===t||(e.preferred_username===t||(e.upn===t||!(!e.emails||!e.emails.includes(t))))}matchSid(e,t){return e.sid===t}matchAuthorityType(e,t){return!(!e.authorityType||t.toLowerCase()!==e.authorityType.toLowerCase())}matchTarget(e,t){if(e.credentialType!==H.ACCESS_TOKEN&&e.credentialType!==H.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target)return!1;return Mt.fromString(e.target).containsScopeSet(t)}matchTokenType(e,t){return!(!e.tokenType||e.tokenType!==t)}matchKeyId(e,t){return!(!e.keyId||e.keyId!==t)}isAppMetadata(e){return-1!==e.indexOf(F)}isAuthorityMetadata(e){return-1!==e.indexOf(K)}generateAuthorityMetadataCacheKey(e){return`${K}-${this.clientId}-${e}`}static toObject(e,t){for(const r in t)e[r]=t[r];return e}}class Qr extends Gr{async setAccount(){throw Ae(_t)}getAccount(){throw Ae(_t)}async setIdTokenCredential(){throw Ae(_t)}getIdTokenCredential(){throw Ae(_t)}async setAccessTokenCredential(){throw Ae(_t)}getAccessTokenCredential(){throw Ae(_t)}async setRefreshTokenCredential(){throw Ae(_t)}getRefreshTokenCredential(){throw Ae(_t)}setAppMetadata(){throw Ae(_t)}getAppMetadata(){throw Ae(_t)}setServerTelemetry(){throw Ae(_t)}getServerTelemetry(){throw Ae(_t)}setAuthorityMetadata(){throw Ae(_t)}getAuthorityMetadata(){throw Ae(_t)}getAuthorityMetadataKeys(){throw Ae(_t)}setThrottlingCache(){throw Ae(_t)}getThrottlingCache(){throw Ae(_t)}removeItem(){throw Ae(_t)}getKeys(){throw Ae(_t)}getAccountKeys(){throw Ae(_t)}getTokenKeys(){throw Ae(_t)}generateCredentialKey(){throw Ae(_t)}generateAccountKey(){throw Ae(_t)}}const Vr=1,Yr=2,Zr="ext.",Xr=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","startTimeMs","status","multiMatchedAT","multiMatchedID","multiMatchedRT","unencryptedCacheCount","encryptedCacheExpiredCount","oldAccountCount","oldAccessCount","oldIdCount","oldRefreshCount","currAccountCount","currAccessCount","currIdCount","currRefreshCount","expiredCacheRemovedCount","upgradedCacheCount","cacheMatchedAccounts","networkRtt","redirectBridgeTimeoutMs","redirectBridgeMessageVersion"]);class en{generateId(){return"callback-id"}startMeasurement(e,t){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:Vr,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:t||""}}}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}const tn={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1},rn={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:e.LogLevel.Info,correlationId:""},nn={async sendGetRequestAsync(){throw Ae(_t)},async sendPostRequestAsync(){throw Ae(_t)}},on={sku:"msal.js.common",version:Ir,cpu:"",os:""},sn={clientSecret:"",clientAssertion:void 0},an={azureCloudInstance:Cr.None,tenant:`${r}`},cn={application:{appName:"",appVersion:""}};function hn({authOptions:e,systemOptions:t,loggerOptions:r,storageInterface:n,networkInterface:o,cryptoInterface:i,clientCredentials:s,libraryInfo:a,telemetry:c,serverTelemetryManager:h,persistencePlugin:l,serializableCache:d}){const u={...rn,...r};return{authOptions:(g=e,{clientCapabilities:[],azureCloudOptions:an,instanceAware:!1,isMcp:!1,...g}),systemOptions:{...tn,...t},loggerOptions:u,storageInterface:n||new Qr(e.clientId,gr,new yr(u),new en),networkInterface:o||nn,cryptoInterface:i||gr,clientCredentials:s||sn,libraryInfo:{...on,...a},telemetry:{...cn,...c},serverTelemetryManager:h||null,persistencePlugin:l||null,serializableCache:d||null};var g}function ln(e){return e.authOptions.authority.options.protocolMode===jr.OIDC}class dn{constructor(e,t){this.cache=e,this.hasChanged=t}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}function un(){return Math.round((new Date).getTime()/1e3)}function gn(e){return e.getTime()/1e3}function pn(e){return e?new Date(1e3*Number(e)):new Date}function mn(e,t){const r=Number(e)||0;return un()+t>r}function fn(e,t){const r=Number(e)+24*t*60*60*1e3;return Date.now()>r}function yn(e){return Number(e)>un()}function wn(e,t,r,n,o){return{credentialType:H.ID_TOKEN,homeAccountId:e,environment:t,clientId:n,secret:r,realm:o,lastUpdatedAt:Date.now().toString()}}function In(e,t,r,n,o,i,s,a,c,h,l,d,u){const g={homeAccountId:e,credentialType:H.ACCESS_TOKEN,secret:r,cachedAt:un().toString(),expiresOn:s.toString(),extendedExpiresOn:a.toString(),environment:t,clientId:n,realm:o,target:i,tokenType:l||Q.BEARER,lastUpdatedAt:Date.now().toString()};if(d&&(g.userAssertionHash=d),h&&(g.refreshOn=h.toString()),g.tokenType?.toLowerCase()!==Q.BEARER.toLowerCase())switch(g.credentialType=H.ACCESS_TOKEN_WITH_AUTH_SCHEME,g.tokenType){case Q.POP:const e=br(r,c);if(!e?.cnf?.kid)throw Ae(Ct);g.keyId=e.cnf.kid;break;case Q.SSH:g.keyId=u}return g}function Cn(e,t,r,n,o,i,s){const a={credentialType:H.REFRESH_TOKEN,homeAccountId:e,environment:t,clientId:n,secret:r,lastUpdatedAt:Date.now().toString()};return i&&(a.userAssertionHash=i),o&&(a.familyId=o),s&&(a.expiresOn=s.toString()),a}function vn(e){return e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")}function kn(e){return!!e&&(vn(e)&&e.hasOwnProperty("realm")&&e.hasOwnProperty("target")&&(e.credentialType===H.ACCESS_TOKEN||e.credentialType===H.ACCESS_TOKEN_WITH_AUTH_SCHEME))}function Tn(e){return!!e&&(vn(e)&&e.credentialType===H.REFRESH_TOKEN)}function bn(){return un()+86400}function An(e,t,r){e.authorization_endpoint=t.authorization_endpoint,e.token_endpoint=t.token_endpoint,e.end_session_endpoint=t.end_session_endpoint,e.issuer=t.issuer,e.endpointsFromNetwork=r,e.jwks_uri=t.jwks_uri}function Sn(e,t,r){e.aliases=t.aliases,e.preferred_cache=t.preferred_cache,e.preferred_network=t.preferred_network,e.aliasesFromNetwork=r}function _n(e){return e.expiresAt<=un()}const En="networkClientSendPostRequestAsync",Pn="refreshTokenClientAcquireTokenWithCachedRefreshToken",Rn="getAuthCodeUrl",On="handleCodeResponseFromServer",Mn="popTokenGenerateCnf",xn="handleServerTokenResponse",qn="authorityUpdateMetadataWithRegionalInformation",Nn="regionDiscoveryGetRegionFromIMDS",Un=(e,t,r,n,o)=>(...i)=>{r.trace("1plfzx",o);const s=n.startMeasurement(t,o);o&&n.incrementFields({[`ext.${t}CallCount`]:1},o);try{const t=e(...i);return s.end({success:!0}),r.trace("1g8n6a",o),t}catch(e){r.trace("0cfd8i",o);try{r.trace(JSON.stringify(e),o)}catch(e){r.trace("00dty7",o)}throw s.end({success:!1},e),e}},Ln=(e,t,r,n,o)=>(...i)=>{r.trace("1plfzx",o);const s=n.startMeasurement(t,o);return o&&n.incrementFields({[`ext.${t}CallCount`]:1},o),e(...i).then((e=>(r.trace("1g8n6a",o),s.end({success:!0}),e))).catch((e=>{r.trace("0cfd8i",o);try{r.trace(JSON.stringify(e),o)}catch(e){r.trace("00dty7",o)}throw s.end({success:!1},e),e}))},Hn="sw";class Fn{constructor(e,t){this.cryptoUtils=e,this.performanceClient=t}async generateCnf(e,t){const r=await Ln(this.generateKid.bind(this),Mn,t,this.performanceClient,e.correlationId)(e),n=this.cryptoUtils.base64UrlEncode(JSON.stringify(r));return{kid:r.kid,reqCnfString:n}}async generateKid(e){return{kid:await this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:Hn}}async signPopToken(e,t,r){return this.signPayload(e,t,r)}async signPayload(e,t,r,n){const{resourceRequestMethod:o,resourceRequestUri:i,shrClaims:s,shrNonce:a,shrOptions:c}=r,h=i?new _r(i):void 0,l=h?.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:un(),m:o?.toUpperCase(),u:l?.HostNameAndPort,nonce:a||this.cryptoUtils.createNewGuid(),p:l?.AbsolutePath,q:l?.QueryString?[[],l.QueryString]:void 0,client_claims:s||void 0,...n},t,c,r.correlationId)}}const Dn="no_tokens_found",Kn="native_account_unavailable",Bn="refresh_token_expired",zn="ui_not_allowed",jn="interaction_required",$n="consent_required",Jn="login_required",Wn="bad_token",Gn="interrupted_user";var Qn=Object.freeze({__proto__:null,badToken:Wn,consentRequired:$n,interactionRequired:jn,interruptedUser:Gn,loginRequired:Jn,nativeAccountUnavailable:Kn,noTokensFound:Dn,refreshTokenExpired:Bn,uiNotAllowed:zn});const Vn=[jn,$n,Jn,Wn,zn,Gn],Yn=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token","ui_not_allowed","interrupted_user"];class Zn extends Ie{constructor(e,t,r,n,o,i,s,a){super(e,t,r),Object.setPrototypeOf(this,Zn.prototype),this.timestamp=n||"",this.traceId=o||"",this.correlationId=i||"",this.claims=s||"",this.name="InteractionRequiredAuthError",this.errorNo=a}}function Xn(e,t,r){const n=!!e&&Vn.indexOf(e)>-1,o=!!r&&Yn.indexOf(r)>-1,i=!!t&&Vn.some((e=>t.indexOf(e)>-1));return n||i||o}function eo(e,t){return new Zn(e,t)}class to extends Ie{constructor(e,t,r,n,o){super(e,t,r),this.name="ServerError",this.errorNo=n,this.status=o,Object.setPrototypeOf(this,to.prototype)}}function ro(e,t,r){const n=function(e,t){if(!e)throw Ae(wt);const r={id:e.createNewGuid()};t&&(r.meta=t);const n=JSON.stringify(r);return e.base64Encode(n)}(e,r);return t?`${n}|${t}`:n}function no(e,t){if(!e)throw Ae(wt);if(!t)throw Ae(nt);try{const r=t.split("|"),n=r[0],o=r.length>1?r.slice(1).join("|"):"",i=e(n);return{userRequestState:o||"",libraryState:JSON.parse(i)}}catch(e){throw Ae(nt)}}class oo{constructor(e,t,r,n,o,i,s){this.clientId=e,this.cacheStorage=t,this.cryptoObj=r,this.logger=n,this.performanceClient=o,this.serializableCache=i,this.persistencePlugin=s}validateTokenResponse(e,t,r){if(e.error||e.error_description||e.suberror){const n=`Error(s): ${e.error_codes||l} - Timestamp: ${e.timestamp||l} - Description: ${e.error_description||l} - Correlation ID: ${e.correlation_id||l} - Trace ID: ${e.trace_id||l}`,o=e.error_codes?.length?e.error_codes[0]:void 0,i=new to(e.error,n,e.suberror,o,e.status);if(r&&e.status&&e.status>=500&&e.status<=599)return void this.logger.warning("16ks7j",t);if(r&&e.status&&e.status>=400&&e.status<=499)return void this.logger.warning("0g61x3",t);if(Xn(e.error,e.error_description,e.suberror))throw new Zn(e.error,e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",o);throw i}}async handleServerTokenResponse(e,t,r,n,o,i,s,a,c,h){let l,d;if(e.id_token){if(l=br(e.id_token||"",this.cryptoObj.base64Decode),i&&i.nonce&&l.nonce!==i.nonce)throw Ae(st);if(n.maxAge||0===n.maxAge){const e=l.auth_time;if(!e)throw Ae(at);Sr(e,n.maxAge)}}this.homeAccountIdentifier=Wr(e.client_info||"",t.authorityType,this.logger,this.cryptoObj,n.correlationId,l),i&&i.state&&(d=no(this.cryptoObj.base64Decode,i.state)),e.key_id=e.key_id||n.sshKid||void 0;const u=this.generateCacheRecord(e,t,r,n,l,s,i);let g;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("0jbz5k",n.correlationId),g=new dn(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(g)),a&&!c&&u.account){if(this.cacheStorage.getAllAccounts({homeAccountId:u.account.homeAccountId,environment:u.account.environment},n.correlationId).length<1)return this.logger.warning("1gmt66",n.correlationId),this.performanceClient?.addFields({acntLoggedOut:!0},n.correlationId),await oo.generateAuthenticationResult(this.cryptoObj,t,u,!1,n,this.performanceClient,l,d,void 0,h)}await this.cacheStorage.saveCacheRecord(u,n.correlationId,Ar(l||{}),o,n.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&g&&(this.logger.verbose("1bh17u",n.correlationId),await this.persistencePlugin.afterCacheAccess(g))}return oo.generateAuthenticationResult(this.cryptoObj,t,u,!1,n,this.performanceClient,l,d,e,h)}generateCacheRecord(e,t,r,n,o,i,s){const a=t.getPreferredCache();if(!a)throw Ae(ft);const c=zr(o);let h,l;e.id_token&&o&&(h=wn(this.homeAccountIdentifier,a,e.id_token,this.clientId,c||""),l=io(this.cacheStorage,t,this.homeAccountIdentifier,this.cryptoObj.base64Decode,n.correlationId,o,e.client_info,a,c,s,void 0,this.logger,this.performanceClient));let d=null;if(e.access_token){const o=e.scope?Mt.fromString(e.scope):new Mt(n.scopes||[]),s=("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,h=("string"==typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,l=("string"==typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,u=r+s,g=u+h,p=l&&l>0?r+l:void 0;d=In(this.homeAccountIdentifier,a,e.access_token,this.clientId,c||t.tenant||"",o.printScopes(),u,g,this.cryptoObj.base64Decode,p,e.token_type,i,e.key_id);const m=n.resource||null;m&&(d.resource=m)}let u=null;if(e.refresh_token){let t;if(e.refresh_token_expires_in){t=r+("string"==typeof e.refresh_token_expires_in?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in),this.performanceClient?.addFields({ntwkRtExpiresOnSeconds:t},n.correlationId)}u=Cn(this.homeAccountIdentifier,a,e.refresh_token,this.clientId,e.foci,i,t)}let g=null;return e.foci&&(g={clientId:this.clientId,environment:a,familyId:e.foci}),{account:l,idToken:h,accessToken:d,refreshToken:u,appMetadata:g}}static async generateAuthenticationResult(e,t,r,n,o,i,s,a,c,h){let l,d,u="",g=[],p=null,m="";if(r.accessToken){if(r.accessToken.tokenType!==Q.POP||o.popKid)u=r.accessToken.secret;else{const t=new Fn(e,i),{secret:n,keyId:s}=r.accessToken;if(!s)throw Ae(bt);u=await t.signPopToken(n,s,o)}g=Mt.fromString(r.accessToken.target).asArray(),p=pn(r.accessToken.expiresOn),l=pn(r.accessToken.extendedExpiresOn),r.accessToken.refreshOn&&(d=pn(r.accessToken.refreshOn))}r.appMetadata&&(m=r.appMetadata.familyId===D?D:"");const f=s?.oid||s?.sub||"",y=s?.tid||"";c?.spa_accountid&&r.account&&(r.account.nativeAccountId=c?.spa_accountid);const w=r.account?Tr($r(r.account),void 0,s,r.idToken?.secret):null;return{authority:t.canonicalAuthority,uniqueId:f,tenantId:y,scopes:g,account:w,idToken:r?.idToken?.secret||"",idTokenClaims:s||{},accessToken:u,fromCache:n,expiresOn:p,extExpiresOn:l,refreshOn:d,correlationId:o.correlationId,requestId:h||"",familyId:m,tokenType:r.accessToken?.tokenType||"",state:a?a.userRequestState:"",cloudGraphHostName:r.account?.cloudGraphHostName||"",msGraphHost:r.account?.msGraphHost||"",code:c?.spa_code,fromPlatformBroker:!1}}}function io(e,t,r,n,o,i,s,a,c,h,l,d,u){d?.verbose("09jz0t",o);const g=a||t.getPreferredCache(),p=e.getAccountsFilteredBy({homeAccountId:r,environment:g},o);u?.addFields({cacheMatchedAccounts:p.length},o),p.length>1&&d?.warning("0x7ad1",o);const m=(1===p.length?p[0]:null)||function(e,t,r){let n,o,i;n=t.authorityType===Dr?"ADFS":t.protocolMode===jr.OIDC?L:"MSSTS",e.clientInfo&&r&&(o=Lr(e.clientInfo,r),o.xms_tdbr&&(i="EU"===o.xms_tdbr?"EU":"None"));const s=e.environment||t&&t.getPreferredCache();if(!s)throw Ae(ft);const a=e.idTokenClaims?.preferred_username||e.idTokenClaims?.upn,c=e.idTokenClaims?.emails?e.idTokenClaims.emails[0]:null,h=a||c||"",l=e.idTokenClaims?.login_hint,d=o?.utid||zr(e.idTokenClaims)||"",u=o?.uid||e.idTokenClaims?.oid||e.idTokenClaims?.sub||"";let g;g=e.tenantProfiles?e.tenantProfiles:[kr(e.homeAccountId,u,d,e.idTokenClaims)];return{homeAccountId:e.homeAccountId,environment:s,realm:d,localAccountId:u,username:h,authorityType:n,loginHint:l,clientInfo:e.clientInfo,name:e.idTokenClaims?.name||"",lastModificationTime:void 0,lastModificationApp:void 0,cloudGraphHostName:e.cloudGraphHostName,msGraphHost:e.msGraphHost,nativeAccountId:e.nativeAccountId,tenantProfiles:g,dataBoundary:i}}({homeAccountId:r,idTokenClaims:i,clientInfo:s,environment:a,cloudGraphHostName:h?.cloud_graph_host_name,msGraphHost:h?.msgraph_host,nativeAccountId:l},t,n),f=m.tenantProfiles||[],y=c||m.realm;if(y&&!f.find((e=>e.tenantId===y))){const e=kr(r,m.localAccountId,y,i);f.push(e)}return m.tenantProfiles=f,m}const so="home_account_id",ao="UPN";async function co(e,t,r){if("string"==typeof e)return e;return e({clientId:t,tokenEndpoint:r})}function ho(e,t,r){return{clientId:e,authority:t.authority,scopes:t.scopes,homeAccountIdentifier:r,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid,embeddedClientId:t.embeddedClientId||t.extraParameters?.clientId}}class lo{static generateThrottlingStorageKey(e){return`${V}.${JSON.stringify(e)}`}static preProcess(e,t,r){const n=lo.generateThrottlingStorageKey(t),o=e.getThrottlingCache(n,r);if(o){if(o.throttleTime<Date.now())return void e.removeItem(n,r);throw new to(o.errorCodes?.join(" ")||"",o.errorMessage,o.subError)}}static postProcess(e,t,r,n){if(lo.checkResponseStatus(r)||lo.checkResponseForRetryAfter(r)){const o={throttleTime:lo.calculateThrottleTime(parseInt(r.headers[I])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};e.setThrottlingCache(lo.generateThrottlingStorageKey(t),o,n)}}static checkResponseStatus(e){return 429===e.status||e.status>=500&&e.status<600}static checkResponseForRetryAfter(e){return!!e.headers&&(e.headers.hasOwnProperty(I)&&(e.status<200||e.status>=300))}static calculateThrottleTime(e){const t=e<=0?0:e,r=Date.now()/1e3;return Math.floor(1e3*Math.min(r+(t||60),r+3600))}static removeThrottle(e,t,r,n){const o=ho(t,r,n),i=this.generateThrottlingStorageKey(o);e.removeItem(i,r.correlationId)}}class uo extends Ie{constructor(e,t,r){super(e.errorCode,e.errorMessage,e.subError),Object.setPrototypeOf(this,uo.prototype),this.name="NetworkError",this.error=e,this.httpStatus=t,this.responseHeaders=r}}function go(e,t,r,n){return e.errorMessage=`${e.errorMessage}, additionalErrorInfo: error.name:${n?.name}, error.message:${n?.message}`,new uo(e,t,r)}function po(e,t,r){const n={};if(n[y]="application/x-www-form-urlencoded;charset=utf-8",!t&&r)switch(r.type){case so:try{const e=Hr(r.credential);n[C]=`Oid:${e.uid}@${e.utid}`}catch(t){e.verbose("1qhtee","")}break;case ao:n[C]=`UPN: ${r.credential}`}return n}function mo(e,t,r,n){const o=new Map;return e.embeddedClientId&&sr(o,t,r),e.extraQueryParameters&&er(o,e.extraQueryParameters),zt(o,e.correlationId),xt(o,e.correlationId,n),dr(o)}async function fo(e,t,r,n,o,i,s,a,c,h){const l=await async function(e,t,r,n,o,i,s,a){let c;lo.preProcess(o,e,n);try{c=await Ln(i.sendPostRequestAsync.bind(i),En,s,a,n)(t,r);const e=c.headers||{};a?.addFields({refreshTokenSize:c.body.refresh_token?.length||0,httpVerToken:e[b]||"",requestId:e[T]||""},n)}catch(e){if(e instanceof uo){const t=e.responseHeaders;throw t&&a?.addFields({httpVerToken:t[b]||"",requestId:t[T]||"",contentTypeHeader:t[y]||void 0,contentLengthHeader:t[w]||void 0,httpStatus:e.httpStatus},n),e.error}throw e instanceof Ie?e:Ae(et)}return lo.postProcess(o,e,c,n),c}(n,e,{body:t,headers:r},o,i,s,a,c);return h&&l.status<500&&429!==l.status&&h.clearTelemetryCache(),l}class yo{constructor(e,t,r,n){this.networkInterface=e,this.logger=t,this.performanceClient=r,this.correlationId=n}async detectRegion(e,t){let r=e;if(r)t.region_source=Z;else{const e=yo.IMDS_OPTIONS;try{const n=await Ln(this.getRegionFromIMDS.bind(this),Nn,this.logger,this.performanceClient,this.correlationId)("2020-06-01",e);if(200===n.status&&(r=n.body,t.region_source=X),400===n.status){const n=await Ln(this.getCurrentVersion.bind(this),"regionDiscoveryGetCurrentVersion",this.logger,this.performanceClient,this.correlationId)(e);if(!n)return t.region_source=Y,null;const o=await Ln(this.getRegionFromIMDS.bind(this),Nn,this.logger,this.performanceClient,this.correlationId)(n,e);200===o.status&&(r=o.body,t.region_source=X)}}catch(e){return t.region_source=Y,null}}return r||(t.region_source=Y),r||null}async getRegionFromIMDS(e,t){return this.networkInterface.sendGetRequestAsync(`${d}?api-version=${e}&format=text`,t,2e3)}async getCurrentVersion(e){try{const t=await this.networkInterface.sendGetRequestAsync(`${d}?format=json`,e);return 400===t.status&&t.body&&t.body["newest-versions"]&&t.body["newest-versions"].length>0?t.body["newest-versions"][0]:null}catch(e){return null}}}yo.IMDS_OPTIONS={headers:{Metadata:"true"}};class wo{constructor(e,t,r,n,o,i,s,a){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=r,this.authorityOptions=n,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=o,this.performanceClient=s,this.correlationId=i,this.managedIdentity=a||!1,this.regionDiscovery=new yo(t,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(o))return Br;const t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case"adfs":return Dr;case"dstsv2":return Kr}return Fr}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new _r(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw Ae(Xe)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw Ae(Xe)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw Ae(Xe)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Ae(Tt);return this.replacePath(this.metadata.end_session_endpoint)}throw Ae(Xe)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw Ae(Xe)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw Ae(Xe)}canReplaceTenant(e){return 1===e.PathSegments.length&&!wo.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Fr&&this.protocolMode!==jr.OIDC}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let t=e;const r=new _r(this.metadata.canonical_authority).getUrlComponents(),n=r.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach(((e,o)=>{let i=n[o];if(0===o&&this.canReplaceTenant(r)){const e=new _r(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];i!==e&&(this.logger.verbose("1q3g2x",this.correlationId),i=e)}e!==i&&(t=t.replace(`/${i}/`,`/${e}/`))})),this.replaceTenant(t)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===Dr||this.protocolMode===jr.OIDC&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){const e=this.getCurrentMetadataEntity(),t=await Ln(this.updateCloudDiscoveryMetadata.bind(this),"authorityUpdateCloudDiscoveryMetadata",this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const r=await Ln(this.updateEndpointMetadata.bind(this),"authorityUpdateEndpointMetadata",this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,t,{source:r}),this.performanceClient?.addFields({cloudDiscoverySource:t,authorityEndpointSource:r},this.correlationId)}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort,this.correlationId);return e||(e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:bn(),jwks_uri:""}),e}updateCachedMetadata(e,t,r){t!==z&&r?.source!==z&&(e.expiresAt=bn(),e.canonical_authority=this.canonicalAuthority);const n=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache,this.correlationId);this.cacheManager.setAuthorityMetadata(n,e,this.correlationId),this.metadata=e}async updateEndpointMetadata(e){const t=this.updateEndpointMetadataFromLocalSources(e);if(t){if(t.source===$&&this.authorityOptions.azureRegionConfiguration?.azureRegion&&t.metadata){An(e,await Ln(this.updateMetadataWithRegionalInformation.bind(this),qn,this.logger,this.performanceClient,this.correlationId)(t.metadata),!1),e.canonical_authority=this.canonicalAuthority}return t.source}let r=await Ln(this.getEndpointMetadataFromNetwork.bind(this),"authorityGetEndpointMetadataFromNetwork",this.logger,this.performanceClient,this.correlationId)();if(r)return this.validateIssuer(r.issuer),this.authorityOptions.azureRegionConfiguration?.azureRegion&&(r=await Ln(this.updateMetadataWithRegionalInformation.bind(this),qn,this.logger,this.performanceClient,this.correlationId)(r)),An(e,r,!0),j;throw Ae(tt,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("1fi0kc",this.correlationId);const t=this.getEndpointMetadataFromConfig();if(t)return this.logger.verbose("06t0uj",this.correlationId),An(e,t,!1),{source:B};this.logger.verbose("151k0p",this.correlationId);const r=this.getEndpointMetadataFromHardcodedValues();if(r)return An(e,r,!1),{source:$,metadata:r};this.logger.verbose("1imop5",this.correlationId);const n=_n(e);return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!n?(this.logger.verbose("16uq31",""),{source:z}):(n&&this.logger.verbose("0uoibc",""),null)}isAuthoritySameType(e){return new _r(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(e){throw ke(Ue)}return null}async getEndpointMetadataFromNetwork(){const e={},t=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose("1y65x6",this.correlationId);try{const r=await this.networkInterface.sendGetRequestAsync(t,e),n=function(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}(r.body);return n?r.body:(this.logger.verbose("1koyv8",this.correlationId),null)}catch(e){return this.logger.verbose("0a9wik",this.correlationId),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in Pr?Pr[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(e){const t=this.authorityOptions.azureRegionConfiguration?.azureRegion;if(t){if("TryAutoDetect"!==t)return this.regionDiscoveryMetadata.region_outcome=ee,this.regionDiscoveryMetadata.region_used=t,wo.replaceWithRegionalInformation(e,t);const r=await Ln(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),"regionDiscoveryDetectRegion",this.logger,this.performanceClient,this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion,this.regionDiscoveryMetadata);if(r)return this.regionDiscoveryMetadata.region_outcome=te,this.regionDiscoveryMetadata.region_used=r,wo.replaceWithRegionalInformation(e,r);this.regionDiscoveryMetadata.region_outcome=re}return e}async updateCloudDiscoveryMetadata(e){const t=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(t)return t;const r=await Ln(this.getCloudDiscoveryMetadataFromNetwork.bind(this),"authorityGetCloudDiscoveryMetadataFromNetwork",this.logger,this.performanceClient,this.correlationId)();if(r)return Sn(e,r,!0),j;throw ke(Le)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("1tpqlr",this.correlationId),this.logger.verbosePii("1fy7uz",this.correlationId),this.logger.verbosePii("08zabj",this.correlationId),this.logger.verbosePii("1o1kv3",this.correlationId);const t=this.getCloudDiscoveryMetadataFromConfig();if(t)return this.logger.verbose("1nakio",this.correlationId),Sn(e,t,!1),B;this.logger.verbose("1x74aj",this.correlationId);const r=(n=this.hostnameAndPort,xr(Rr.metadata,n));var n;if(r)return this.logger.verbose("0by47c",this.correlationId),Sn(e,r,!1),$;this.logger.verbose("0r2fzy",this.correlationId);const o=_n(e);return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!o?(this.logger.verbose("1uffgh",""),z):(o&&this.logger.verbose("0uoibc",""),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===Br)return this.logger.verbose("04y84h",this.correlationId),wo.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("0gszr3",this.correlationId);try{this.logger.verbose("1iifkx",this.correlationId);const e=xr(JSON.parse(this.authorityOptions.cloudDiscoveryMetadata).metadata,this.hostnameAndPort);if(this.logger.verbose("0q67e3",""),e)return this.logger.verbose("0hzfao",this.correlationId),e;this.logger.verbose("1ajz3u",this.correlationId)}catch(e){throw this.logger.verbose("1wq5tu",this.correlationId),ke(Ne)}}return this.isInKnownAuthorities(this.hostnameAndPort)?(this.logger.verbose("0mt9al",this.correlationId),wo.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){const e=`${n}${this.canonicalAuthority}oauth2/v2.0/authorize`,t={};let r=null;try{const n=await this.networkInterface.sendGetRequestAsync(e,t);let o,i;if(function(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}(n.body))o=n.body,i=o.metadata,this.logger.verbosePii("1vglyt",this.correlationId);else{if(!function(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}(n.body))return this.logger.error("0768g0",this.correlationId),null;if(this.logger.warning("062uto",this.correlationId),o=n.body,"invalid_instance"===o.error)return this.logger.error("1x90tm",this.correlationId),null;this.logger.warning("0wchdm",this.correlationId),this.logger.warning("1s5mpv",this.correlationId),this.logger.warning("1yhqpw",this.correlationId),i=[]}this.logger.verbose("1lrobr",this.correlationId),r=xr(i,this.hostnameAndPort)}catch(e){return e instanceof Ie?this.logger.error("0vwhc7",this.correlationId):this.logger.error("0s2z41",this.correlationId),null}return r||(this.logger.warning("0jp28q",this.correlationId),this.logger.verbose("130sd8",this.correlationId),r=wo.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),r}isInKnownAuthorities(e){const t=e.toLowerCase();return this.authorityOptions.knownAuthorities.filter((e=>e&&_r.getDomainFromUrl(e).toLowerCase()===t)).length>0}static generateAuthority(e,t){let n;if(t&&t.azureCloudInstance!==Cr.None){const e=t.tenant?t.tenant:r;n=`${t.azureCloudInstance}/${e}/`}return n||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.managedIdentity)return"login.microsoftonline.com";if(this.discoveryComplete())return this.metadata.preferred_cache;throw Ae(Xe)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return Or.has(e)}validateIssuer(e){if(!e)throw ke(We);let t;try{t=new URL(e)}catch{throw ke(We)}const r=t.protocol,n=t.host,o=(this.canonicalAuthorityUrlComponents.Protocol||"").toLowerCase(),i=(this.canonicalAuthorityUrlComponents.HostNameAndPort||"").toLowerCase(),s=this.matchesAuthorityOrigin(r,n,o,i),a="https:"===r&&this.isAliasOfKnownMicrosoftAuthority(n),c="https:"===r&&this.matchesRegionalMicrosoftHost(n),h=this.matchesCiamTenantPattern(t,i,this.canonicalAuthorityUrlComponents.PathSegments),l="https:"===r&&this.isInKnownAuthorities(n);if(!(s||a||c||h||l))throw ke(We)}matchesAuthorityOrigin(e,t,r,n){return e===r&&t===n}matchesRegionalMicrosoftHost(e){const t=e.indexOf(".");if(t>0&&t<e.length-1){const r=e.substring(t+1);return this.isAliasOfKnownMicrosoftAuthority(r)}return!1}matchesCiamTenantPattern(e,t,r){const n=r[0],s=n?n.endsWith(i)?n.slice(0,-16):n:t.split(".")[0];if(!s)return!1;const a=`https://${s}${o}`,c=[a,`${a}/${s}`,`${a}/${s}/v2.0`,`${a}/${s}${i}`,`${a}/${s}${i}/v2.0`],h=e.pathname.replace(/\/+$/,""),l=`${e.protocol}//${e.host}${h}`;return c.some((e=>e===l))}static isPublicCloudAuthority(e){return u.indexOf(e)>=0}static buildRegionalAuthorityString(e,t,r){const n=new _r(e);n.validateAsUri();const o=n.getUrlComponents();let i=`${t}.${o.HostNameAndPort}`;this.isPublicCloudAuthority(o.HostNameAndPort)&&(i=`${t}.login.microsoft.com`);const s=_r.constructAuthorityUriFromObject({...n.getUrlComponents(),HostNameAndPort:i}).urlString;return r?`${s}?${r}`:s}static replaceWithRegionalInformation(e,t){const r={...e};return r.authorization_endpoint=wo.buildRegionalAuthorityString(r.authorization_endpoint,t),r.token_endpoint=wo.buildRegionalAuthorityString(r.token_endpoint,t),r.end_session_endpoint&&(r.end_session_endpoint=wo.buildRegionalAuthorityString(r.end_session_endpoint,t)),r}static transformCIAMAuthority(e){let t=e;const r=new _r(e).getUrlComponents();if(0===r.PathSegments.length&&r.HostNameAndPort.endsWith(o)){t=`${t}${r.HostNameAndPort.split(".")[0]}${i}`}return t}}function Io(e){return e.endsWith("/")?e:`${e}/`}function Co(e){const t=e.cloudDiscoveryMetadata;let r;if(t)try{r=JSON.parse(t)}catch(e){throw ke(Ne)}return{canonicalAuthority:e.authority?Io(e.authority):void 0,knownAuthorities:e.knownAuthorities,cloudDiscoveryMetadata:r}}async function vo(e,t,r,n,o,i,s){const a=wo.transformCIAMAuthority(Io(e)),c=new wo(a,t,r,n,o,i,s);try{return await Ln(c.resolveEndpointsAsync.bind(c),"authorityResolveEndpointsAsync",o,s,i)(),c}catch(e){throw Ae(Xe)}}wo.reservedTenantDomains=new Set(["{tenant}","{tenantid}",S,E,_]);class ko{constructor(e,t){this.includeRedirectUri=!0,this.config=hn(e),this.logger=new yr(this.config.loggerOptions,wr,Ir),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}async acquireToken(e,t,r){if(!e.code)throw Ae(lt);r&&r.cloud_instance_host_name&&await Ln(this.updateTokenEndpointAuthority.bind(this),"updateTokenEndpointAuthority",this.logger,this.performanceClient,e.correlationId)(r.cloud_instance_host_name,e.correlationId);const n=un(),o=await Ln(this.executeTokenRequest.bind(this),"authClientExecuteTokenRequest",this.logger,this.performanceClient,e.correlationId)(this.authority,e,this.serverTelemetryManager),i=o.headers?.[T],s=new oo(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);return s.validateTokenResponse(o.body,e.correlationId),Ln(s.handleServerTokenResponse.bind(s),xn,this.logger,this.performanceClient,e.correlationId)(o.body,this.authority,n,e,t,r,void 0,void 0,void 0,i)}getLogoutUri(e){if(!e)throw ke(xe);const t=this.createLogoutUrlQueryString(e);return _r.appendQueryString(this.authority.endSessionEndpoint,t)}async executeTokenRequest(e,t,r){const n=mo(t,this.config.authOptions.clientId,this.config.authOptions.redirectUri,this.performanceClient),o=_r.appendQueryString(e.tokenEndpoint,n),i=await Ln(this.createTokenRequestBody.bind(this),"authClientCreateTokenRequestBody",this.logger,this.performanceClient,t.correlationId)(t);let s;if(t.clientInfo)try{const e=Lr(t.clientInfo,this.cryptoUtils.base64Decode);s={credential:`${e.uid}.${e.utid}`,type:so}}catch(e){this.logger.verbose("0wznt3",t.correlationId)}const a=po(this.logger,this.config.systemOptions.preventCorsPreflight,s||t.ccsCredential),c=ho(this.config.authOptions.clientId,t);return Ln(fo,"authorizationCodeClientExecutePostToTokenEndpoint",this.logger,this.performanceClient,t.correlationId)(o,i,a,c,t.correlationId,this.cacheManager,this.networkClient,this.logger,this.performanceClient,r)}async createTokenRequestBody(e){const t=new Map;if(Ut(t,e.embeddedClientId||e.extraParameters?.[he]||this.config.authOptions.clientId),this.includeRedirectUri)Lt(t,e.redirectUri);else if(!e.redirectUri)throw ke(Se);if(Nt(t,e.scopes,!0,this.oidcDefaultScopes),ar(t,e.resource),function(e,t){e.set("code",t)}(t,e.code),jt(t,this.config.libraryInfo),$t(t,this.config.telemetry.application),ir(t),this.serverTelemetryManager&&!ln(this.config)&&or(t,this.serverTelemetryManager),e.codeVerifier&&function(e,t){e.set("code_verifier",t)}(t,e.codeVerifier),this.config.clientCredentials.clientSecret&&Gt(t,this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const r=this.config.clientCredentials.clientAssertion;Qt(t,await co(r.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),Vt(t,r.assertionType)}if(Yt(t,N),Zt(t),e.authenticationScheme===Q.POP){const r=new Fn(this.cryptoUtils,this.performanceClient);let n;if(e.popKid)n=this.cryptoUtils.encodeKid(e.popKid);else{n=(await Ln(r.generateCnf.bind(r),Mn,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString}rr(t,n)}else if(e.authenticationScheme===Q.SSH){if(!e.sshJwk)throw ke(He);nr(t,e.sshJwk)}let r;if(e.clientInfo)try{const t=Lr(e.clientInfo,this.cryptoUtils.base64Decode);r={credential:`${t.uid}.${t.utid}`,type:so}}catch(t){this.logger.verbose("0wznt3",e.correlationId)}else r=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&r)switch(r.type){case so:try{Dt(t,Hr(r.credential))}catch(t){this.logger.verbose("1qhtee",e.correlationId)}break;case ao:Ft(t,r.credential)}return e.embeddedClientId&&sr(t,this.config.authOptions.clientId,this.config.authOptions.redirectUri),e.extraParameters&&er(t,e.extraParameters),!e.enableSpaAuthorizationCode||e.extraParameters&&e.extraParameters[ge]||er(t,{[ge]:"1"}),xt(t,e.correlationId,this.performanceClient),Bt(t,e.claims,this.config.authOptions.clientCapabilities,e.skipBrokerClaims),dr(t)}createLogoutUrlQueryString(e){const t=new Map;return e.postLogoutRedirectUri&&function(e,t){e.set("post_logout_redirect_uri",t)}(t,e.postLogoutRedirectUri),e.correlationId&&zt(t,e.correlationId),e.idTokenHint&&function(e,t){e.set("id_token_hint",t)}(t,e.idTokenHint),e.state&&Jt(t,e.state),e.logoutHint&&function(e,t){e.set("logout_hint",t)}(t,e.logoutHint),e.extraQueryParameters&&er(t,e.extraQueryParameters),this.config.authOptions.instanceAware&&Xt(t),dr(t)}async updateTokenEndpointAuthority(e,t){const r=`https://${e}/${this.authority.tenant}/`,n=await vo(r,this.networkClient,this.cacheManager,this.authority.options,this.logger,t,this.performanceClient);this.authority=n}}class To{constructor(e,t){this.config=hn(e),this.logger=new yr(this.config.loggerOptions,wr,Ir),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}async acquireToken(e,t){const r=un(),n=await Ln(this.executeTokenRequest.bind(this),"refreshTokenClientExecuteTokenRequest",this.logger,this.performanceClient,e.correlationId)(e,this.authority),o=n.headers?.[T],i=new oo(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);return i.validateTokenResponse(n.body,e.correlationId),Ln(i.handleServerTokenResponse.bind(i),xn,this.logger,this.performanceClient,e.correlationId)(n.body,this.authority,r,e,t,void 0,void 0,!0,e.forceCache,o)}async acquireTokenByRefreshToken(e,t){if(!e)throw ke(Me);if(!e.account)throw Ae(pt);if(this.cacheManager.isAppMetadataFOCI(e.account.environment,e.correlationId))try{return await Ln(this.acquireTokenWithCachedRefreshToken.bind(this),Pn,this.logger,this.performanceClient,e.correlationId)(e,!0,t)}catch(r){const n=r instanceof Zn&&r.errorCode===Dn,o=r instanceof to&&"invalid_grant"===r.errorCode&&"client_mismatch"===r.subError;if(n||o)return Ln(this.acquireTokenWithCachedRefreshToken.bind(this),Pn,this.logger,this.performanceClient,e.correlationId)(e,!1,t);throw r}return Ln(this.acquireTokenWithCachedRefreshToken.bind(this),Pn,this.logger,this.performanceClient,e.correlationId)(e,!1,t)}async acquireTokenWithCachedRefreshToken(e,t,r){const n=Un(this.cacheManager.getRefreshToken.bind(this.cacheManager),"cacheManagerGetRefreshToken",this.logger,this.performanceClient,e.correlationId)(e.account,t,e.correlationId,void 0);if(!n)throw eo(Dn);if(n.expiresOn){const t=e.refreshTokenExpirationOffsetSeconds||300;if(this.performanceClient?.addFields({cacheRtExpiresOnSeconds:Number(n.expiresOn),rtOffsetSeconds:t},e.correlationId),mn(n.expiresOn,t))throw eo(Bn)}const o={...e,refreshToken:n.secret,authenticationScheme:e.authenticationScheme||Q.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:so}};try{return await Ln(this.acquireToken.bind(this),"refreshTokenClientAcquireToken",this.logger,this.performanceClient,e.correlationId)(o,r)}catch(t){if(t instanceof Zn&&t.subError===Wn){this.logger.verbose("1pg3ap",e.correlationId);const t=this.cacheManager.generateCredentialKey(n);this.cacheManager.removeRefreshToken(t,e.correlationId)}throw t}}async executeTokenRequest(e,t){const r=mo(e,this.config.authOptions.clientId,this.config.authOptions.redirectUri,this.performanceClient),n=_r.appendQueryString(t.tokenEndpoint,r),o=await Ln(this.createTokenRequestBody.bind(this),"refreshTokenClientCreateTokenRequestBody",this.logger,this.performanceClient,e.correlationId)(e),i=po(this.logger,this.config.systemOptions.preventCorsPreflight,e.ccsCredential),s=ho(this.config.authOptions.clientId,e);return Ln(fo,"refreshTokenClientExecutePostToTokenEndpoint",this.logger,this.performanceClient,e.correlationId)(n,o,i,s,e.correlationId,this.cacheManager,this.networkClient,this.logger,this.performanceClient,this.serverTelemetryManager)}async createTokenRequestBody(e){const t=new Map;if(Ut(t,e.embeddedClientId||e.extraParameters?.[he]||this.config.authOptions.clientId),e.redirectUri&&Lt(t,e.redirectUri),Nt(t,e.scopes,!0,this.config.authOptions.authority.options.OIDCOptions?.defaultScopes),Yt(t,U),Zt(t),jt(t,this.config.libraryInfo),$t(t,this.config.telemetry.application),ir(t),this.serverTelemetryManager&&!ln(this.config)&&or(t,this.serverTelemetryManager),function(e,t){e.set("refresh_token",t)}(t,e.refreshToken),this.config.clientCredentials.clientSecret&&Gt(t,this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const r=this.config.clientCredentials.clientAssertion;Qt(t,await co(r.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),Vt(t,r.assertionType)}if(e.authenticationScheme===Q.POP){const r=new Fn(this.cryptoUtils,this.performanceClient);let n;if(e.popKid)n=this.cryptoUtils.encodeKid(e.popKid);else{n=(await Ln(r.generateCnf.bind(r),Mn,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString}rr(t,n)}else if(e.authenticationScheme===Q.SSH){if(!e.sshJwk)throw ke(He);nr(t,e.sshJwk)}if(this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case so:try{Dt(t,Hr(e.ccsCredential.credential))}catch(t){this.logger.verbose("1qhtee",e.correlationId)}break;case ao:Ft(t,e.ccsCredential.credential)}return e.embeddedClientId&&sr(t,this.config.authOptions.clientId,this.config.authOptions.redirectUri),e.extraParameters&&er(t,{...e.extraParameters}),xt(t,e.correlationId,this.performanceClient),Bt(t,e.claims,this.config.authOptions.clientCapabilities,e.skipBrokerClaims),dr(t)}}class bo{constructor(e,t){this.config=hn(e),this.logger=new yr(this.config.loggerOptions,wr,Ir),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}async acquireCachedToken(e){let t=ne;if(e.forceRefresh||!Te.isEmptyObj(e.claims))throw this.setCacheOutcome(oe,e.correlationId),Ae(It);if(!e.account)throw Ae(pt);const r=e.account.tenantId||function(e){const t=new _r(e).getUrlComponents(),r=t.PathSegments.slice(-1)[0]?.toLowerCase();switch(r){case S:case _:case E:return;default:return r}}(e.authority),n=this.cacheManager.getTokenKeys(),o=this.cacheManager.getAccessToken(e.account,e,n,r);if(!o)throw this.setCacheOutcome(ie,e.correlationId),Ae(It);if(yn(o.cachedAt)||mn(o.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(se,e.correlationId),Ae(It);if(e.resource){if(o.resource!==e.resource)throw this.setCacheOutcome(ie,e.correlationId),Ae(It)}else o.refreshOn&&mn(o.refreshOn,0)&&(t=ae);const i=e.authority||this.authority.getPreferredCache(),s={account:this.cacheManager.getAccount(this.cacheManager.generateAccountKey(e.account),e.correlationId),accessToken:o,idToken:this.cacheManager.getIdToken(e.account,e.correlationId,n,r),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(i,e.correlationId)};return this.setCacheOutcome(t,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await Ln(this.generateResultFromCacheRecord.bind(this),"silentFlowClientGenerateResultFromCacheRecord",this.logger,this.performanceClient,e.correlationId)(s,e),t]}setCacheOutcome(e,t){this.serverTelemetryManager?.setCacheOutcome(e),this.performanceClient?.addFields({cacheOutcome:e},t),e!==ne&&this.logger.info("09ingz",t)}async generateResultFromCacheRecord(e,t){let r;if(e.idToken&&(r=br(e.idToken.secret,this.config.cryptoInterface.base64Decode)),t.maxAge||0===t.maxAge){const e=r?.auth_time;if(!e)throw Ae(at);Sr(e,t.maxAge)}return oo.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,this.performanceClient,r)}}const Ao={sendGetRequestAsync:()=>Promise.reject(Ae(_t)),sendPostRequestAsync:()=>Promise.reject(Ae(_t))};function So(e,t,r,n){const o=t.correlationId,i=new Map;Ut(i,t.embeddedClientId||t.extraQueryParameters?.[he]||e.clientId);if(Nt(i,[...t.scopes||[],...t.extraScopesToConsent||[]],!0,e.authority.options.OIDCOptions?.defaultScopes),ar(i,t.resource),Lt(i,t.redirectUri),zt(i,o),function(e,t){e.set("response_mode",t||q.QUERY)}(i,t.responseMode),Zt(i),function(e){e.set("clidata","1")}(i),t.prompt&&(!function(e,t){e.set("prompt",t)}(i,t.prompt),n?.addFields({prompt:t.prompt},o)),t.domainHint&&(!function(e,t){e.set("domain_hint",t)}(i,t.domainHint),n?.addFields({domainHintFromRequest:!0},o)),t.prompt!==O.SELECT_ACCOUNT)if(t.sid&&t.prompt===O.NONE)r.verbose("1tvqyx",t.correlationId),Kt(i,t.sid),n?.addFields({sidFromRequest:!0},o);else if(t.account){const e=(s=t.account,s.idTokenClaims?.sid||null);let a=function(e){return e.loginHint||e.idTokenClaims?.login_hint||null}(t.account);if(a&&t.domainHint&&(r.warning("0wkg3v",t.correlationId),a=null),a){r.verbose("1eyfsw",t.correlationId),Ht(i,a),n?.addFields({loginHintFromClaim:!0},o);try{Dt(i,Hr(t.account.homeAccountId))}catch(e){r.verbose("12ugck",t.correlationId)}}else if(e&&t.prompt===O.NONE){r.verbose("1rmd8s",t.correlationId),Kt(i,e),n?.addFields({sidFromClaim:!0},o);try{Dt(i,Hr(t.account.homeAccountId))}catch(e){r.verbose("12ugck",t.correlationId)}}else if(t.loginHint)r.verbose("0y3007",t.correlationId),Ht(i,t.loginHint),Ft(i,t.loginHint),n?.addFields({loginHintFromRequest:!0},o);else if(t.account.username){r.verbose("02f507",t.correlationId),Ht(i,t.account.username),n?.addFields({loginHintFromUpn:!0},o);try{Dt(i,Hr(t.account.homeAccountId))}catch(e){r.verbose("12ugck",t.correlationId)}}}else t.loginHint&&(r.verbose("0g01ey",t.correlationId),Ht(i,t.loginHint),Ft(i,t.loginHint),n?.addFields({loginHintFromRequest:!0},o));else r.verbose("169k9v",t.correlationId);var s;return t.nonce&&function(e,t){e.set("nonce",t)}(i,t.nonce),t.state&&Jt(i,t.state),t.embeddedClientId&&sr(i,e.clientId,e.redirectUri),Bt(i,t.claims,e.clientCapabilities,t.skipBrokerClaims),!e.instanceAware||t.extraQueryParameters&&Object.keys(t.extraQueryParameters).includes(ye)||Xt(i),i}function _o(e,t){const r=dr(t);return _r.appendQueryString(e.authorizationEndpoint,r)}function Eo(e,t){if(!e.state||!t)throw e.state?Ae(it,"Cached State"):Ae(it,"Server State");let r,n;try{r=decodeURIComponent(e.state)}catch(t){throw Ae(nt,e.state)}try{n=decodeURIComponent(t)}catch(t){throw Ae(nt,e.state)}if(r!==n)throw Ae(ot);if(e.error||e.error_description||e.suberror){const t=function(e){const t="code=",r=e.error_uri?.lastIndexOf(t);return r&&r>=0?e.error_uri?.substring(r+t.length):void 0}(e);if(Xn(e.error,e.error_description,e.suberror))throw new Zn(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",t);throw new to(e.error||"",e.error_description,e.suberror,t)}}function Po(e,t){if(e){if(t.resource&&(Ro(t.extraParameters)||Ro(t.extraQueryParameters)))throw Ae(Rt);if(!t.resource)throw Ae(Pt)}}function Ro(e){return!!e&&Object.prototype.hasOwnProperty.call(e,"resource")}const Oo="unexpected_error";var Mo=Object.freeze({__proto__:null,postRequestFailed:"post_request_failed",unexpectedError:Oo});function xo(e){const{skus:t,libraryName:r,libraryVersion:n,extensionName:o,extensionVersion:i}=e,s=new Map([[0,[r,n]],[2,[o,i]]]);let a=[];if(t?.length){if(a=t.split(","),a.length<4)return t}else a=Array.from({length:4},(()=>"|"));return s.forEach(((e,t)=>{2===e.length&&e[0]?.length&&e[1]?.length&&function(e){const{skuArr:t,index:r,skuName:n,skuVersion:o}=e;if(r>=t.length)return;t[r]=[n,o].join("|")}({skuArr:a,index:t,skuName:e[0],skuVersion:e[1]})})),a.join(",")}class qo{constructor(e,t){this.cacheOutcome=ne,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||"",this.wrapperVer=e.wrapperVer||"",this.telemetryCacheKey=W+"-"+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${G}${this.cacheOutcome}`,t=[this.wrapperSKU,this.wrapperVer],r=this.getNativeBrokerErrorCode();r?.length&&t.push(`broker_error=${r}`);const n=t.join(G),o=[e,this.getRegionDiscoveryFields()].join(G);return[J,o,n].join("|")}generateLastRequestHeaderValue(){const e=this.getLastRequests(),t=qo.maxErrorsToSend(e),r=e.failedRequests.slice(0,2*t).join(G),n=e.errors.slice(0,t).join(G),o=e.errors.length,i=[o,t<o?"1":"0"].join(G);return[J,e.cacheHits,r,n,i].join("|")}cacheFailedRequest(e){const t=this.getLastRequests();t.errors.length>=50&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof Ie?e.subError?t.errors.push(e.subError):e.errorCode?t.errors.push(e.errorCode):t.errors.push(e.toString()):t.errors.push(e.toString()):t.errors.push("unknown_error"),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId)}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId),e.cacheHits}getLastRequests(){return this.cacheManager.getServerTelemetry(this.telemetryCacheKey,this.correlationId)||{failedRequests:[],errors:[],cacheHits:0}}clearTelemetryCache(){const e=this.getLastRequests(),t=qo.maxErrorsToSend(e);if(t===e.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey,this.correlationId);else{const r={failedRequests:e.failedRequests.slice(2*t),errors:e.errors.slice(t),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r,this.correlationId)}}static maxErrorsToSend(e){let t,r=0,n=0;const o=e.errors.length;for(t=0;t<o;t++){const o=e.failedRequests[2*t]||"",i=e.failedRequests[2*t+1]||"",s=e.errors[t]||"";if(n+=o.toString().length+i.toString().length+s.length+3,!(n<330))break;r+=1}return r}getRegionDiscoveryFields(){const e=[];return e.push(this.regionUsed||""),e.push(this.regionSource||""),e.push(this.regionOutcome||""),e.join(",")}updateRegionDiscoveryMetadata(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome}setCacheOutcome(e){this.cacheOutcome=e}setNativeBrokerErrorCode(e){const t=this.getLastRequests();t.nativeBrokerErrorCode=e,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const e=this.getLastRequests();delete e.nativeBrokerErrorCode,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId)}static makeExtraSkuString(e){return xo(e)}}class No extends Ie{constructor(e,t){super(e,t),this.name="JoseHeaderError",Object.setPrototypeOf(this,No.prototype)}}function Uo(e){return new No(e)}class Lo{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw Uo("missing_kid_error");if(!e.alg)throw Uo("missing_alg_error");const t=new Lo({typ:e.typ||ce.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)}}function Ho(e,t,r,n=5){if(e instanceof Error)return e instanceof Ie?(r.errorCode=e.errorCode,r.subErrorCode=e.subError,void(!r.serverErrorNo&&(e instanceof to||e instanceof Zn)&&e.errorNo&&(r.serverErrorNo=e.errorNo))):void(e instanceof Nr?r.errorCode=e.errorCode:r.errorStack?.length?t.trace("0lmqrh",r.correlationId):e.stack?.length?(e.stack&&(r.errorStack=function(e,t){if(t<0)return[];const r=e.split("\n")||[],n=[],o=r[0];o.startsWith("TypeError: Cannot read property")||o.startsWith("TypeError: Cannot read properties of")||o.startsWith("TypeError: Cannot set property")||o.startsWith("TypeError: Cannot set properties of")||o.endsWith("is not a function")?n.push(Fo(o)):(o.startsWith("SyntaxError")||o.startsWith("TypeError"))&&n.push(Fo(o.replace(/['].*[']|["].*["]/g,"<redacted>")));for(let e=1;e<r.length&&!(n.length>=t);e++){const t=r[e];n.push(Fo(t))}return n}(e.stack,n)),r.errorName=e.name):t.trace("1cnpwa",r.correlationId));t.trace("0gcyox",r.correlationId)}function Fo(e){const t=e.lastIndexOf(" ")+1;if(t<1)return e;const r=e.substring(t);let n=r.lastIndexOf("/");return n=n<0?r.lastIndexOf("\\"):n,n>=0?(e.substring(0,t)+"("+r.substring(n+1)+(")"===r.charAt(r.length-1)?"":")")).trimStart():e.trimStart()}class Do{constructor(e,t,r,n,o,i,s){this.authority=t,this.libraryName=n,this.libraryVersion=o,this.applicationTelemetry=i,this.clientId=e,this.logger=r,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.eventStack=new Map,this.intFields=s||new Set;for(const e of Xr)this.intFields.add(e)}startMeasurement(e,t){const r=t||this.generateId(),n={eventId:this.generateId(),status:Vr,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:r,appName:this.applicationTelemetry?.appName,appVersion:this.applicationTelemetry?.appVersion};var o,i;return this.cacheEventByCorrelationId(n),o=n,(i=this.eventStack.get(r))&&i.push({name:o.name}),{end:(e,t,r)=>this.endMeasurement({...n,...e},t,r),discard:()=>this.discardMeasurements(n.correlationId),add:e=>this.addFields(e,n.correlationId),increment:e=>this.incrementFields(e,n.correlationId),event:n}}endMeasurement(e,t,r){const n=this.eventsByCorrelationId.get(e.correlationId);if(!n)return this.logger.trace("0k9ti8",e.correlationId),null;const o=e.eventId===n.eventId;e.durationMs=Math.round(e.durationMs||this.getDurationMs(e.startTimeMs));const i=JSON.stringify(function(e,t,r){if(!t?.length)return;const n=e=>e.length?e[e.length-1]:void 0,o=e.name,i=n(t);if(i?.name!==o)return;const s=t?.pop();if(!s)return;const a=r instanceof Ie?r.errorCode:r instanceof Error?r.name:void 0,c=r instanceof Ie?r.subError:void 0;a&&s.childErr!==a&&(s.err=a,c&&(s.subErr=c)),delete s.name,delete s.childErr;const h={...s,dur:e.durationMs};e.success||(h.fail=1);const l=n(t);if(!l)return{[o]:h};let d;if(a&&(l.childErr=a),l[o]){const e=Object.keys(l).filter((e=>e.startsWith(o))).length;d=`${o}_${e+1}`}else d=o;return l[d]=h,l}(e,this.eventStack.get(n.correlationId),t));if(o?this.discardMeasurements(n.correlationId):n.incompleteSubMeasurements?.delete(e.eventId),t&&Ho(t,this.logger,n),!o)return n.ext={...n.ext,...e.ext},n.ext[e.name+"DurationMs"]=Math.floor(e.durationMs),{...n};o&&!t&&(n.errorCode||n.subErrorCode)&&(this.logger.trace("1fm1tm",e.correlationId),n.errorCode=void 0,n.subErrorCode=void 0);let s={...n,...e},a=0;s.incompleteSubMeasurements?.forEach((e=>{this.logger.trace("0nxk52",s.correlationId),a++})),s.incompleteSubMeasurements=void 0;const c=function(e){const t=[];for(const r of["",e]){const e=mr.get(r);t.push(...e?.logs??[]),mr.delete(r)}return t}(e.correlationId).map((e=>`${e.milliseconds},${e.hash}`)).join(";");return s={...s,status:Yr,incompleteSubsCount:a,context:i,logs:c},r&&(s.accountType=function(e){const t=e?.idTokenClaims;return t?.tfp||t?.acr?"B2C":t?.tid?"9188040d-6c67-4c5b-b112-36a304b66dad"===t?.tid?"MSA":"AAD":void 0}(r),s.dataBoundary=r.dataBoundary),this.truncateIntegralFields(s),this.emitEvents([s],e.correlationId),s}addFields(e,t){const r=this.eventsByCorrelationId.get(t);if(r){const n={},o={};for(const t in e)if(t.startsWith(Zr)){const r=t.slice(4),n=e[t];"string"!=typeof n&&"number"!=typeof n||(o[r]=n)}else n[t]=e[t];const i={...r,...n};Object.keys(o).length&&(i.ext={...i.ext,...o}),this.eventsByCorrelationId.set(t,i)}else this.logger.trace("0thl6s",t)}incrementFields(e,t){const r=this.eventsByCorrelationId.get(t);if(r)for(const t in e)if(t.startsWith(Zr)){r.ext=r.ext||{};const n=t.slice(4),o=r.ext[n];if(void 0===o)r.ext[n]=0;else if(isNaN(Number(o)))return;r.ext[n]=(Number(r.ext[n])||0)+(e[t]??0)}else{if(r.hasOwnProperty(t)){if(isNaN(Number(r[t])))return}else r[t]=0;r[t]+=e[t]}else this.logger.trace("0thl6s",t)}cacheEventByCorrelationId(e){const t=this.eventsByCorrelationId.get(e.correlationId);t?(t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.eventsByCorrelationId.set(e.correlationId,{...e}),this.eventStack.set(e.correlationId,[]))}discardMeasurements(e){this.eventsByCorrelationId.delete(e),this.eventStack.delete(e)}addPerformanceCallback(e){for(const[t,r]of this.callbacks)if(r.toString()===e.toString())return this.logger.warning("1eap5p",""),t;const t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("0c9ujz",""),t}removePerformanceCallback(e){const t=this.callbacks.delete(e);return t?this.logger.verbose("0253if",""):this.logger.verbose("0iqk07",""),t}emitEvents(e,t){this.logger.verbose("11jb1y",t),this.callbacks.forEach(((r,n)=>{this.logger.trace("0p2pjl",t),r.apply(null,[e])}))}truncateIntegralFields(e){this.intFields.forEach((t=>{t in e&&"number"==typeof e[t]&&(e[t]=Math.floor(e[t]))}))}getDurationMs(e){const t=Date.now()-e;return t<0?t:0}}const Ko="standardInteractionClientGetDiscoveredAuthority",Bo="nativeInteractionClientAcquireToken",zo="acquireTokenBySilentIframe",jo="initializeBaseRequest",$o="silentIframeClientTokenHelper",Jo="silentHandlerInitiateAuthRequest",Wo="silentHandlerMonitorIframeForHash",Go="standardInteractionClientCreateAuthCodeClient",Qo="standardInteractionClientGetClientConfiguration",Vo="standardInteractionClientInitializeAuthorizationRequest",Yo="handleResponseEar",Zo="handleResponsePlatformBroker",Xo="handleResponseCode",ei="deserializeResponse",ti="removeHiddenIframe",ri="generatePkceCodes",ni="generateHKDF",oi="decrypt",ii="generateEarKey",si="pkce_not_created",ai="ear_jwk_empty",ci="ear_jwe_empty",hi="crypto_nonexistent",li="empty_navigate_uri",di="hash_empty_error",ui="no_state_in_hash",gi="hash_does_not_contain_known_properties",pi="unable_to_parse_state",mi="state_interaction_type_mismatch",fi="interaction_in_progress",yi="interaction_in_progress_cancelled",wi="popup_window_error",Ii="empty_window_error",Ci="user_cancelled",vi="redirect_bridge_empty_response",ki="redirect_in_iframe",Ti="block_iframe_reload",bi="block_nested_popups",Ai="silent_logout_unsupported",Si="no_account_error",_i="no_token_request_cache_error",Ei="unable_to_parse_token_request_cache_error",Pi="non_browser_environment",Ri="database_not_open",Oi="no_network_connectivity",Mi="post_request_failed",xi="get_request_failed",qi="failed_to_parse_response",Ni="unable_to_load_token",Ui="crypto_key_not_found",Li="auth_code_required",Hi="auth_code_or_nativeAccountId_required",Fi="spa_code_and_nativeAccountId_present",Di="database_unavailable",Ki="unable_to_acquire_token_from_native_platform",Bi="native_handshake_timeout",zi="native_extension_not_installed",ji="native_connection_not_established",$i="uninitialized_public_client_application",Ji="native_prompt_not_supported",Wi="invalid_base64_string",Gi="invalid_pop_token_request",Qi="failed_to_build_headers",Vi="failed_to_parse_headers",Yi="failed_to_decrypt_ear_response",Zi="timed_out",Xi="empty_response";var es=Object.freeze({__proto__:null,authCodeOrNativeAccountIdRequired:Hi,authCodeRequired:Li,authRequestNotSetError:"auth_request_not_set_error",blockIframeReload:Ti,blockNestedPopups:bi,cryptoKeyNotFound:Ui,cryptoNonExistent:hi,databaseNotOpen:Ri,databaseUnavailable:Di,earJweEmpty:ci,earJwkEmpty:ai,emptyNavigateUri:li,emptyResponse:Xi,emptyWindowError:Ii,failedToBuildHeaders:Qi,failedToDecryptEarResponse:Yi,failedToParseHeaders:Vi,failedToParseResponse:qi,getRequestFailed:xi,hashDoesNotContainKnownProperties:gi,hashEmptyError:di,iframeClosedPrematurely:"iframe_closed_prematurely",interactionInProgress:fi,interactionInProgressCancelled:yi,invalidBase64String:Wi,invalidCacheType:"invalid_cache_type",invalidPopTokenRequest:Gi,nativeConnectionNotEstablished:ji,nativeExtensionNotInstalled:zi,nativeHandshakeTimeout:Bi,nativePromptNotSupported:Ji,noAccountError:Si,noNetworkConnectivity:Oi,noStateInHash:ui,noTokenRequestCacheError:_i,nonBrowserEnvironment:Pi,pkceNotCreated:si,popupWindowError:wi,postRequestFailed:Mi,redirectBridgeEmptyResponse:vi,redirectInIframe:ki,silentLogoutUnsupported:Ai,silentPromptValueError:"silent_prompt_value_error",spaCodeAndNativeAccountIdPresent:Fi,stateInteractionTypeMismatch:mi,timedOut:Zi,unableToAcquireTokenFromNativePlatform:Ki,unableToLoadToken:Ni,unableToParseState:pi,unableToParseTokenRequestCacheError:Ei,uninitializedPublicClientApplication:$i,userCancelled:Ci});function ts(e){return`See https://aka.ms/msal.js.errors#${e} for details`}class rs extends Ie{constructor(e,t){super(e,ts(e),t),Object.setPrototypeOf(this,rs.prototype),this.name="BrowserAuthError"}}function ns(e,t){return new rs(e,t)}function os(e){return(new TextDecoder).decode(is(e))}function is(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw ns(Wi)}const r=atob(t);return Uint8Array.from(r,(e=>e.codePointAt(0)||0))}const ss="invalid_grant",as=483,cs=600,hs="msal",ls="msal.js.browser",ds="53ee284d-920a-4b59-9d30-a60315b26836",us="ppnbnpeolgkicgegkbkbjmhlideopiji",gs="MATS",ps="MicrosoftEntra",ms="DOM API",fs="get-token-and-sign-out",ys="PlatformAuthDOMHandler",ws="PlatformAuthExtensionHandler",Is="Handshake",Cs="HandshakeResponse",vs="GetToken",ks="Response",Ts={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},bs="GET",As="POST",Ss="signin",_s="signout",Es="request.origin",Ps="urlHash",Rs="request.params",Os="code.verifier",Ms="interaction.status",xs="request.native",qs="wrapper.sku",Ns="wrapper.version",Us={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962,hydrateCache:963,loadExternalTokens:964},Ls={861:"acquireTokenRedirect",862:"acquireTokenPopup",863:"ssoSilent",864:"acquireTokenSilent_authCode",865:"handleRedirectPromise",866:"acquireTokenByCode",61:"acquireTokenSilent_silentFlow",961:"logout",962:"logoutPopup",963:"hydrateCache",964:"loadExternalTokens"};var Hs;e.InteractionType=void 0,(Hs=e.InteractionType||(e.InteractionType={})).Redirect="redirect",Hs.Popup="popup",Hs.Silent="silent",Hs.None="none";const Fs={Startup:"startup",Logout:"logout",AcquireToken:"acquireToken",HandleRedirect:"handleRedirect",None:"none"},Ds={scopes:m},Ks="msal.db",Bs=`${Ks}.keys`,zs={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},js=[zs.Default,zs.Skip,zs.RefreshTokenAndNetwork];function $s(e){return encodeURIComponent(Ws(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function Js(e){return Gs(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Ws(e){return Gs((new TextEncoder).encode(e))}function Gs(e){const t=Array.from(e,(e=>String.fromCodePoint(e))).join("");return btoa(t)}const Qs="AES-GCM",Vs="HKDF",Ys="SHA-256",Zs=new Uint8Array([1,0,1]),Xs="0123456789abcdef",ea=new Uint32Array(1),ta="raw",ra="encrypt",na="decrypt",oa={name:"RSASSA-PKCS1-v1_5",hash:Ys,modulusLength:2048,publicExponent:Zs};async function ia(e){const t=(new TextEncoder).encode(e);return window.crypto.subtle.digest(Ys,t)}function sa(e){return window.crypto.getRandomValues(e)}function aa(){return window.crypto.getRandomValues(ea),ea[0]}function ca(){const e=Date.now(),t=1024*aa()+(1023&aa()),r=new Uint8Array(16),n=Math.trunc(t/2**30),o=t&2**30-1,i=aa();r[0]=e/2**40,r[1]=e/2**32,r[2]=e/2**24,r[3]=e/65536,r[4]=e/256,r[5]=e,r[6]=112|n>>>8,r[7]=n,r[8]=128|o>>>24,r[9]=o>>>16,r[10]=o>>>8,r[11]=o,r[12]=i>>>24,r[13]=i>>>16,r[14]=i>>>8,r[15]=i;let s="";for(let e=0;e<r.length;e++)s+=Xs.charAt(r[e]>>>4),s+=Xs.charAt(15&r[e]),3!==e&&5!==e&&7!==e&&9!==e||(s+="-");return s}async function ha(e){return window.crypto.subtle.exportKey("jwk",e)}async function la(){const e=await ua(),t={alg:"dir",kty:"oct",k:Js(new Uint8Array(e))};return Ws(JSON.stringify(t))}async function da(e,t){const r=t.split(".");if(5!==r.length)throw ns(Yi,"jwe_length");const n=await async function(e){const t=os(e),r=is(JSON.parse(t).k);return window.crypto.subtle.importKey(ta,r,Qs,!1,[na])}(e).catch((()=>{throw ns(Yi,"import_key")}));try{const e=(new TextEncoder).encode(r[0]),t=is(r[2]),o=is(r[3]),i=is(r[4]),s=8*i.byteLength,a=new Uint8Array(o.length+i.length);a.set(o),a.set(i,o.length);const c=await window.crypto.subtle.decrypt({name:Qs,iv:t,tagLength:s,additionalData:e},n,a);return(new TextDecoder).decode(c)}catch(e){throw ns(Yi,"decrypt")}}async function ua(){const e=await window.crypto.subtle.generateKey({name:Qs,length:256},!0,[ra,na]);return window.crypto.subtle.exportKey(ta,e)}async function ga(e){return window.crypto.subtle.importKey(ta,e,Vs,!1,["deriveKey"])}async function pa(e,t,r){return window.crypto.subtle.deriveKey({name:Vs,salt:t,hash:Ys,info:(new TextEncoder).encode(r)},e,{name:Qs,length:256},!1,[ra,na])}async function ma(e,t,r){const n=(new TextEncoder).encode(t),o=window.crypto.getRandomValues(new Uint8Array(16)),i=await pa(e,o,r),s=await window.crypto.subtle.encrypt({name:Qs,iv:new Uint8Array(12)},i,n);return{data:Js(new Uint8Array(s)),nonce:Js(o)}}async function fa(e,t,r,n){const o=is(n),i=await pa(e,is(t),r),s=await window.crypto.subtle.decrypt({name:Qs,iv:new Uint8Array(12)},i,o);return(new TextDecoder).decode(s)}const ya="storage_not_supported",wa="stubbed_public_client_application_called",Ia="in_mem_redirect_unavailable";var Ca=Object.freeze({__proto__:null,inMemRedirectUnavailable:Ia,storageNotSupported:ya,stubbedPublicClientApplicationCalled:wa});class va extends Ie{constructor(e,t){super(e,t),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,va.prototype)}}function ka(e){return new va(e,ts(e))}function Ta(){const e=window.location.hash,t=window.location.search;let r,n=!1,o=!1,i="";if(e&&e.length>1){const t="#"===e.charAt(0)?e.substring(1):e,o=new URLSearchParams(t);o.has("state")&&(n=!0,i=t,r=o)}if(t&&t.length>1){const e="?"===t.charAt(0)?t.substring(1):t,n=new URLSearchParams(e);n.has("state")&&(o=!0,i=e,r=n)}if(n&&o){i=`${"?"===t.charAt(0)?t.substring(1):t}${"#"===e.charAt(0)?e.substring(1):e}`,r=new URLSearchParams(i)}if(!i||!r)throw ns(Xi);const s=r.get("state");if(!s)throw ns(ui);const{libraryState:a}=no(os,s),{id:c,meta:h}=a;if(!c||!h)throw ns(pi,"missing_library_state");return{params:r,payload:i,urlHash:e,urlQuery:t,hasResponseInHash:n,hasResponseInQuery:o,libraryState:{id:c,meta:h}}}function ba(e){e.location.hash="","function"==typeof e.history.replaceState&&e.history.replaceState(null,"",`${e.location.origin}${e.location.pathname}${e.location.search}`)}function Aa(e){const t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):""}function Sa(){return window.parent!==window}function _a(){if(Sa())return!1;try{const{libraryState:t}=Ta(),{meta:r}=t;return r.interactionType===e.InteractionType.Popup}catch(e){return!1}}let Ea=null;function Pa(e,t){Ea&&(e.verbose("18y01k",t),clearTimeout(Ea.timeoutId),Ea.channel.close(),Ea.reject(ns(yi)),Ea=null)}async function Ra(e,t,r,n,o){return new Promise(((i,s)=>{t.verbose("1rf6em",r.correlationId);const a=r.correlationId;n.addFields({redirectBridgeTimeoutMs:e,lateResponseExperimentEnabled:o?.iframeTimeoutTelemetry||!1},a);const{libraryState:c}=no(os,r.state||""),h=new BroadcastChannel(c.id);let l,d,u,g=!1;const p=window.setTimeout((()=>{Ea=null,o?.iframeTimeoutTelemetry?(u=n.startMeasurement("waitForBridgeLateResponse",a),g=!0,d=window.setTimeout((()=>{u?.end({success:!1}),clearTimeout(d),h.close()}),6e4)):h.close(),s(ns(Zi,"redirect_bridge_timeout"))}),e);Ea={timeoutId:p,channel:h,reject:s},h.onmessage=e=>{l=e.data.payload;const t=e?.data&&"number"==typeof e.data.v?e.data.v:void 0;if(g)return u?.end({success:!!l}),clearTimeout(d),void h.close();n.addFields({redirectBridgeMessageVersion:t},a),Ea=null,clearTimeout(p),h.close(),l?i(l):s(ns(vi))}}))}function Oa(){return"undefined"!=typeof window&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function Ma(){const e=new _r(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function xa(){if(lr(window.location.hash)&&Sa())throw ns(Ti)}function qa(e){if(Sa()&&!e)throw ns(ki)}function Na(){if(_a())throw ns(bi)}function Ua(){if("undefined"==typeof window)throw ns(Pi)}function La(e){if(!e)throw ns($i)}function Ha(e){Ua(),xa(),Na(),La(e)}function Fa(e,t){if(Ha(e),qa(t.system.allowRedirectInIframe),t.cache.cacheLocation===Ts.MemoryStorage)throw ka(Ia)}function Da(e){const t=document.createElement("link");t.rel="preconnect",t.href=new URL(e).origin,t.crossOrigin="anonymous",document.head.appendChild(t),window.setTimeout((()=>{try{document.head.removeChild(t)}catch{}}),1e4)}function Ka(){return ca()}const Ba=tr;var za=Object.freeze({__proto__:null,addClientCapabilitiesToClaims:Ba,blockAPICallsBeforeInitialize:La,blockAcquireTokenInPopups:Na,blockNonBrowserEnvironment:Ua,blockRedirectInIframe:qa,blockReloadInHiddenIframes:xa,cancelPendingBridgeResponse:Pa,clearAuthResponseFromUrl:function(e){"function"==typeof e.history?.replaceState&&e.history.replaceState(null,"",`${e.location.origin}${e.location.pathname}`)},clearHash:ba,createGuid:Ka,getCurrentUri:Oa,getHomepage:Ma,invoke:Un,invokeAsync:Ln,isInIframe:Sa,isInPopup:_a,parseAuthResponseFromUrl:Ta,preconnect:Da,preflightCheck:Ha,redirectPreflightCheck:Fa,replaceHash:Aa,waitForBridgeResponse:Ra});class ja{constructor(){this.dbName=Ks,this.version=1,this.tableName=Bs,this.dbOpen=!1}async open(){return new Promise(((e,t)=>{const r=window.indexedDB.open(this.dbName,this.version);r.addEventListener("upgradeneeded",(e=>{e.target.result.createObjectStore(this.tableName)})),r.addEventListener("success",(t=>{const r=t;this.db=r.target.result,this.dbOpen=!0,e()})),r.addEventListener("error",(()=>t(ns(Di))))}))}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(e){return await this.validateDbIsOpen(),new Promise(((t,r)=>{if(!this.db)return r(ns(Ri));const n=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);n.addEventListener("success",(e=>{const r=e;this.closeConnection(),t(r.target.result)})),n.addEventListener("error",(e=>{this.closeConnection(),r(e)}))}))}async setItem(e,t){return await this.validateDbIsOpen(),new Promise(((r,n)=>{if(!this.db)return n(ns(Ri));const o=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(t,e);o.addEventListener("success",(()=>{this.closeConnection(),r()})),o.addEventListener("error",(e=>{this.closeConnection(),n(e)}))}))}async removeItem(e){return await this.validateDbIsOpen(),new Promise(((t,r)=>{if(!this.db)return r(ns(Ri));const n=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);n.addEventListener("success",(()=>{this.closeConnection(),t()})),n.addEventListener("error",(e=>{this.closeConnection(),r(e)}))}))}async getKeys(){return await this.validateDbIsOpen(),new Promise(((e,t)=>{if(!this.db)return t(ns(Ri));const r=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();r.addEventListener("success",(t=>{const r=t;this.closeConnection(),e(r.target.result)})),r.addEventListener("error",(e=>{this.closeConnection(),t(e)}))}))}async containsKey(e){return await this.validateDbIsOpen(),new Promise(((t,r)=>{if(!this.db)return r(ns(Ri));const n=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);n.addEventListener("success",(e=>{const r=e;this.closeConnection(),t(1===r.target.result)})),n.addEventListener("error",(e=>{this.closeConnection(),r(e)}))}))}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise(((e,t)=>{const r=window.indexedDB.deleteDatabase(Ks),n=setTimeout((()=>t(!1)),200);r.addEventListener("success",(()=>(clearTimeout(n),e(!0)))),r.addEventListener("blocked",(()=>(clearTimeout(n),e(!0)))),r.addEventListener("error",(()=>(clearTimeout(n),t(!1))))}))}}class $a{constructor(){this.cache=new Map}async initialize(){}getItem(e){return this.cache.get(e)||null}getUserData(e){return this.getItem(e)}setItem(e,t){this.cache.set(e,t)}async setUserData(e,t){this.setItem(e,t)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach(((t,r)=>{e.push(r)})),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}decryptData(){return Promise.resolve(null)}}class Ja{constructor(e){this.inMemoryCache=new $a,this.indexedDBCache=new ja,this.logger=e}handleDatabaseAccessError(e,t){if(!(e instanceof rs&&e.errorCode===Di))throw e;this.logger.error("1wx7zz",t)}async getItem(e,t){const r=this.inMemoryCache.getItem(e);if(!r)try{return this.logger.verbose("0naxpl",t),await this.indexedDBCache.getItem(e)}catch(e){this.handleDatabaseAccessError(e,t)}return r}async setItem(e,t,r){this.inMemoryCache.setItem(e,t);try{await this.indexedDBCache.setItem(e,t)}catch(e){this.handleDatabaseAccessError(e,r)}}async removeItem(e,t){this.inMemoryCache.removeItem(e);try{await this.indexedDBCache.removeItem(e)}catch(e){this.handleDatabaseAccessError(e,t)}}async getKeys(e){const t=this.inMemoryCache.getKeys();if(0===t.length)try{return this.logger.verbose("1iqrbq",e),await this.indexedDBCache.getKeys()}catch(t){this.handleDatabaseAccessError(t,e)}return t}async containsKey(e,t){const r=this.inMemoryCache.containsKey(e);if(!r)try{return this.logger.verbose("03zl2j",t),await this.indexedDBCache.containsKey(e)}catch(e){this.handleDatabaseAccessError(e,t)}return r}clearInMemory(e){this.logger.verbose("03r21p",e),this.inMemoryCache.clear(),this.logger.verbose("0uksk1",e)}async clearPersistent(e){try{this.logger.verbose("0rdqut",e);const t=await this.indexedDBCache.deleteDatabase();return t&&this.logger.verbose("149ouc",e),t}catch(t){return this.handleDatabaseAccessError(t,e),!1}}}class Wa{constructor(e,t,r){this.logger=e,function(e){if(!window)throw ns(Pi);if(!window.crypto)throw ns(hi);if(!e&&!window.crypto.subtle)throw ns(hi,"crypto_subtle_undefined")}(r??!1),this.cache=new Ja(this.logger),this.performanceClient=t}createNewGuid(){return ca()}base64Encode(e){return Ws(e)}base64Decode(e){return os(e)}base64UrlEncode(e){return $s(e)}encodeKid(e){return this.base64UrlEncode(JSON.stringify({kid:e}))}async getPublicKeyThumbprint(e){const t=this.performanceClient?.startMeasurement("cryptoOptsGetPublicKeyThumbprint",e.correlationId),r=await async function(e,t){return window.crypto.subtle.generateKey(oa,e,t)}(Wa.EXTRACTABLE,Wa.POP_KEY_USAGES),n=await ha(r.publicKey),o=Ga({e:n.e,kty:n.kty,n:n.n}),i=await this.hashString(o),s=await ha(r.privateKey),a=await async function(e,t,r){return window.crypto.subtle.importKey("jwk",e,oa,t,r)}(s,!1,["sign"]);return await this.cache.setItem(i,{privateKey:a,publicKey:r.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri},e.correlationId),t&&t.end({success:!0}),i}async removeTokenBindingKey(e,t){await this.cache.removeItem(e,t);if(await this.cache.containsKey(e,t))throw Ae(kt)}async clearKeystore(e){this.cache.clearInMemory(e);try{return await this.cache.clearPersistent(e),!0}catch(t){return t instanceof Error?this.logger.error("1owpn8",e):this.logger.error("0yrmwo",e),!1}}async signJwt(e,t,r,n){const o=this.performanceClient?.startMeasurement("cryptoOptsSignJwt",n),i=await this.cache.getItem(t,n||"");if(!i)throw ns(Ui);const s=await ha(i.publicKey),a=Ga(s),c=$s(JSON.stringify({kid:t})),h=$s(Lo.getShrHeaderString({...r?.header,alg:s.alg,kid:c}));e.cnf={jwk:JSON.parse(a)};const l=`${h}.${$s(JSON.stringify(e))}`,d=(new TextEncoder).encode(l),u=await async function(e,t){return window.crypto.subtle.sign(oa,e,t)}(i.privateKey,d),g=`${l}.${Js(new Uint8Array(u))}`;return o&&o.end({success:!0}),g}async hashString(e){return async function(e){const t=await ia(e);return Js(new Uint8Array(t))}(e)}}function Ga(e){return JSON.stringify(e,Object.keys(e).sort())}Wa.POP_KEY_USAGES=["sign","verify"],Wa.EXTRACTABLE=!0;const Qa="acquireTokenSilent",Va="acquireTokenByCode",Ya="acquireTokenPopup",Za="acquireTokenPreRedirect",Xa="acquireTokenRedirect",ec="ssoSilent",tc="initializeClientApplication",rc="localStorageUpdated",nc="loadExternalTokens",oc="ssoCapable";var ic=Object.freeze({__proto__:null,AcquireTokenByCode:Va,AcquireTokenPopup:Ya,AcquireTokenPreRedirect:Za,AcquireTokenRedirect:Xa,AcquireTokenSilent:Qa,InitializeClientApplication:tc,LoadExternalTokens:nc,LocalStorageUpdated:rc,SsoCapable:oc,SsoSilent:ec,WaitForBridgeLateResponse:"waitForBridgeLateResponse"});const sc="msal",ac="browser",cc=`${sc}.${ac}.log.level`,hc=`${sc}.${ac}.log.pii`,lc=`${sc}.${ac}.performance.enabled`,dc=`${sc}.version`,uc="account.keys",gc="token.keys",pc=`${sc}.${ac}.sso.capable`;function mc(e=3){return e<1?`${sc}.${uc}`:`${sc}.${e}.${uc}`}function fc(e,t=3){return t<1?`${sc}.${gc}.${e}`:`${sc}.${t}.${gc}.${e}`}const yc=864e5,wc="Lax",Ic="None";class Cc{initialize(){return Promise.resolve()}getItem(e){const t=encodeURIComponent(e),r=document.cookie.split(";");for(let e=0;e<r.length;e++){const n=r[e].trim(),o=n.indexOf("=");if((-1===o?n:n.substring(0,o))===t){const e=-1===o?"":n.substring(o+1);try{return decodeURIComponent(e)}catch{return e}}}return""}getUserData(){throw Ae(_t)}setItem(e,t,r,n=!0,o=wc){let i=`${encodeURIComponent(e)}=${encodeURIComponent(t)};path=/;SameSite=${o};`;if(r){const e=function(e){const t=new Date,r=new Date(t.getTime()+e*yc);return r.toUTCString()}(r);i+=`expires=${e};`}(n||o===Ic)&&(i+="Secure;"),document.cookie=i}async setUserData(){return Promise.reject(Ae(_t))}removeItem(e){this.setItem(e,"",-1)}getKeys(){const e=document.cookie.split(";"),t=[];return e.forEach((e=>{const r=e.trim(),n=r.indexOf("="),o=-1===n?r:r.substring(0,n);try{t.push(decodeURIComponent(o))}catch{}})),t}containsKey(e){return this.getKeys().includes(e)}decryptData(){return Promise.resolve(null)}}function vc(e,t){const r=e.getItem(mc(t));return r?JSON.parse(r):[]}function kc(e,t,r){const n=t.getItem(fc(e,r));if(n){const e=JSON.parse(n);if(e&&e.hasOwnProperty("idToken")&&e.hasOwnProperty("accessToken")&&e.hasOwnProperty("refreshToken"))return e}return{idToken:[],accessToken:[],refreshToken:[]}}function Tc(e){return e.hasOwnProperty("id")&&e.hasOwnProperty("nonce")&&e.hasOwnProperty("data")}const bc="msal.cache.encryption";class Ac{constructor(e,t,r){if(!window.localStorage)throw ka(ya);this.memoryStorage=new $a,this.initialized=!1,this.clientId=e,this.logger=t,this.performanceClient=r,this.broadcast=new BroadcastChannel("msal.broadcast.cache")}async initialize(e){const t=new Cc,r=t.getItem(bc);let n={key:"",id:""};if(r)try{n=JSON.parse(r)}catch(e){}if(n.key&&n.id){const t=Un(is,"base64Decode",this.logger,this.performanceClient,e)(n.key);this.encryptionCookie={id:n.id,key:await Ln(ga,ni,this.logger,this.performanceClient,e)(t)}}else{const r=ca(),n=await Ln(ua,"generateBaseKey",this.logger,this.performanceClient,e)(),o=Un(Js,"urlEncodeArr",this.logger,this.performanceClient,e)(new Uint8Array(n));this.encryptionCookie={id:r,key:await Ln(ga,ni,this.logger,this.performanceClient,e)(n)};const i={id:r,key:o};t.setItem(bc,JSON.stringify(i),0,!0,Ic)}await Ln(this.importExistingCache.bind(this),"importExistingCache",this.logger,this.performanceClient,e)(e),this.broadcast.addEventListener("message",(t=>{this.updateCache(t,e)})),this.initialized=!0}getItem(e){return window.localStorage.getItem(e)}getUserData(e){if(!this.initialized)throw ns($i);return this.memoryStorage.getItem(e)}async decryptData(e,t,r){if(!this.initialized||!this.encryptionCookie)throw ns($i);if(t.id!==this.encryptionCookie.id)return this.performanceClient.incrementFields({encryptedCacheExpiredCount:1},r),null;const n=await Ln(fa,oi,this.logger,this.performanceClient,r)(this.encryptionCookie.key,t.nonce,this.getContext(e),t.data);if(!n)return null;try{return{...JSON.parse(n),lastUpdatedAt:t.lastUpdatedAt}}catch(e){return this.performanceClient.incrementFields({encryptedCacheCorruptionCount:1},r),null}}setItem(e,t){window.localStorage.setItem(e,t)}async setUserData(e,t,r,n,o){if(!this.initialized||!this.encryptionCookie)throw ns($i);if(o)this.setItem(e,t);else{const{data:o,nonce:i}=await Ln(ma,"encrypt",this.logger,this.performanceClient,r)(this.encryptionCookie.key,t,this.getContext(e)),s={id:this.encryptionCookie.id,nonce:i,data:o,lastUpdatedAt:n};this.setItem(e,JSON.stringify(s))}this.memoryStorage.setItem(e,t),this.broadcast.postMessage({key:e,value:t,context:this.getContext(e)})}removeItem(e){this.memoryStorage.containsKey(e)&&(this.memoryStorage.removeItem(e),this.broadcast.postMessage({key:e,value:null,context:this.getContext(e)})),window.localStorage.removeItem(e)}getKeys(){return Object.keys(window.localStorage)}containsKey(e){return window.localStorage.hasOwnProperty(e)}clear(){this.memoryStorage.clear();vc(this).forEach((e=>this.removeItem(e)));const e=kc(this.clientId,this);e.idToken.forEach((e=>this.removeItem(e))),e.accessToken.forEach((e=>this.removeItem(e))),e.refreshToken.forEach((e=>this.removeItem(e))),this.getKeys().forEach((e=>{(e.startsWith(sc)||-1!==e.indexOf(this.clientId))&&this.removeItem(e)}))}async importExistingCache(e){if(!this.encryptionCookie)return;let t=vc(this);t=await this.importArray(t,e),t.length?this.setItem(mc(),JSON.stringify(t)):this.removeItem(mc());const r=kc(this.clientId,this);r.idToken=await this.importArray(r.idToken,e),r.accessToken=await this.importArray(r.accessToken,e),r.refreshToken=await this.importArray(r.refreshToken,e),r.idToken.length||r.accessToken.length||r.refreshToken.length?this.setItem(fc(this.clientId),JSON.stringify(r)):this.removeItem(fc(this.clientId))}async getItemFromEncryptedCache(e,t){if(!this.encryptionCookie)return null;const r=this.getItem(e);if(!r)return null;let n;try{n=JSON.parse(r)}catch(e){return null}return Tc(n)?n.id!==this.encryptionCookie.id?(this.performanceClient.incrementFields({encryptedCacheExpiredCount:1},t),null):(this.performanceClient.incrementFields({encryptedCacheCount:1},t),Ln(fa,oi,this.logger,this.performanceClient,t)(this.encryptionCookie.key,n.nonce,this.getContext(e),n.data)):(this.performanceClient.incrementFields({unencryptedCacheCount:1},t),r)}async importArray(e,t){const r=[],n=[];return e.forEach((e=>{const o=this.getItemFromEncryptedCache(e,t).then((t=>{t?(this.memoryStorage.setItem(e,t),r.push(e)):this.removeItem(e)}));n.push(o)})),await Promise.all(n),r}getContext(e){let t="";return e.includes(this.clientId)&&(t=this.clientId),t}updateCache(e,t){this.logger.trace("17cxcm",t);const r=this.performanceClient.startMeasurement(rc);r.add({isBackground:!0});const{key:n,value:o,context:i}=e.data;return n?i&&i!==this.clientId?(this.logger.trace("04rtdy",t),void r.end({success:!1,errorCode:"contextMismatch"})):(o?(this.memoryStorage.setItem(n,o),this.logger.verbose("1vzsgt",t)):(this.memoryStorage.removeItem(n),this.logger.verbose("04ypih",t)),void r.end({success:!0})):(this.logger.error("0e10qr",t),void r.end({success:!1,errorCode:"noKey"}))}}class Sc{constructor(){if(!window.sessionStorage)throw ka(ya)}async initialize(){}getItem(e){return window.sessionStorage.getItem(e)}getUserData(e){return this.getItem(e)}setItem(e,t){window.sessionStorage.setItem(e,t)}async setUserData(e,t){this.setItem(e,t)}removeItem(e){window.sessionStorage.removeItem(e)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(e){return window.sessionStorage.hasOwnProperty(e)}decryptData(){return Promise.resolve(null)}}const _c={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_SUCCESS:"msal:loginSuccess",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",BROKERED_REQUEST_START:"msal:brokeredRequestStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",BROKERED_REQUEST_SUCCESS:"msal:brokeredRequestSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",BROKERED_REQUEST_FAILURE:"msal:brokeredRequestFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache",BROKER_CONNECTION_ESTABLISHED:"msal:brokerConnectionEstablished"},Ec="@azure/msal-browser",Pc="5.12.0";function Rc(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Oc extends Gr{constructor(e,t,r,n,o,i,s){super(e,r,n,o,s),this.cacheConfig=t,this.logger=n,this.internalStorage=new $a,this.browserStorage=Mc(e,t.cacheLocation,n,o),this.temporaryCacheStorage=Mc(e,Ts.SessionStorage,n,o),this.cookieStorage=new Cc,this.eventHandler=i}async initialize(e){this.performanceClient.addFields({cacheLocation:this.cacheConfig.cacheLocation,cacheRetentionDays:this.cacheConfig.cacheRetentionDays},e),await this.browserStorage.initialize(e),await this.migrateExistingCache(e),this.trackVersionChanges(e)}async migrateExistingCache(e){let t=vc(this.browserStorage),r=kc(this.clientId,this.browserStorage);this.performanceClient.addFields({preMigrateAcntCount:t.length,preMigrateATCount:r.accessToken.length,preMigrateITCount:r.idToken.length,preMigrateRTCount:r.refreshToken.length},e);for(let t=0;t<3;t++){const r=t;await this.removeStaleAccounts(t,r,e)}for(let t=0;t<3;t++){const r=t;await this.migrateIdTokens(t,r,e)}const n=this.getKMSIValues();for(let t=0;t<3;t++)await this.migrateAccessTokens(t,n,e),await this.migrateRefreshTokens(t,n,e);t=vc(this.browserStorage),r=kc(this.clientId,this.browserStorage),this.performanceClient.addFields({postMigrateAcntCount:t.length,postMigrateATCount:r.accessToken.length,postMigrateITCount:r.idToken.length,postMigrateRTCount:r.refreshToken.length},e)}async updateOldEntry(e,t){const r=this.browserStorage.getItem(e),n=this.validateAndParseJson(r||"");if(!n)return this.browserStorage.removeItem(e),null;if(n.lastUpdatedAt){if(fn(n.lastUpdatedAt,this.cacheConfig.cacheRetentionDays))return this.browserStorage.removeItem(e),this.performanceClient.incrementFields({expiredCacheRemovedCount:1},t),null}else n.lastUpdatedAt=Date.now().toString(),this.setItem(e,JSON.stringify(n),t);const o=Tc(n)?await this.browserStorage.decryptData(e,n,t):n;return o&&vn(o)?(kn(o)||Tn(o))&&o.expiresOn&&mn(o.expiresOn,300)?(this.browserStorage.removeItem(e),this.performanceClient.incrementFields({expiredCacheRemovedCount:1},t),null):o:(this.browserStorage.removeItem(e),this.performanceClient.incrementFields({invalidCacheCount:1},t),null)}async removeStaleAccounts(e,t,r){const n=vc(this.browserStorage,e);if(0!==n.length){for(const e of[...n]){this.performanceClient.incrementFields({oldAcntCount:1},r);const o=this.browserStorage.getItem(e),i=this.validateAndParseJson(o||"");if(i)if(i.lastUpdatedAt){if(fn(i.lastUpdatedAt,this.cacheConfig.cacheRetentionDays))await this.removeAccountOldSchema(e,i,t,r),Rc(n,e);else if(Tc(i)){await this.browserStorage.decryptData(e,i,r)||(this.browserStorage.removeItem(e),this.performanceClient.incrementFields({expiredAcntRemovedCount:1},r),Rc(n,e))}}else i.lastUpdatedAt=Date.now().toString(),this.setItem(e,JSON.stringify(i),r);else this.browserStorage.removeItem(e),Rc(n,e)}this.setAccountKeys(n,r,e)}}async removeAccountOldSchema(e,t,r,n){const o=Tc(t)?await this.browserStorage.decryptData(e,t,n):t,i=o?.homeAccountId;if(i){const e=this.getTokenKeys(r);[...e.idToken].filter((e=>e.includes(i))).forEach((t=>{this.browserStorage.removeItem(t),Rc(e.idToken,t)})),[...e.accessToken].filter((e=>e.includes(i))).forEach((t=>{this.browserStorage.removeItem(t),Rc(e.accessToken,t)})),[...e.refreshToken].filter((e=>e.includes(i))).forEach((t=>{this.browserStorage.removeItem(t),Rc(e.refreshToken,t)})),this.setTokenKeys(e,n,r)}this.performanceClient.incrementFields({expiredAcntRemovedCount:1},n),this.browserStorage.removeItem(e)}getKMSIValues(){const e={},t=this.getTokenKeys().idToken;for(const r of t){const t=this.browserStorage.getUserData(r);if(t){const r=JSON.parse(t),n=br(r.secret,os);n&&(e[r.homeAccountId]=Ar(n))}}return e}async migrateIdTokens(e,t,r){const n=kc(this.clientId,this.browserStorage,e);if(0===n.idToken.length)return;const o=kc(this.clientId,this.browserStorage,3),i=vc(this.browserStorage),s=vc(this.browserStorage,t);for(const e of[...n.idToken]){this.performanceClient.incrementFields({oldITCount:1},r);const t=await this.updateOldEntry(e,r);if(!t){Rc(n.idToken,e);continue}const a=i.find((e=>e.includes(t.homeAccountId))),c=s.find((e=>e.includes(t.homeAccountId)));let h=null;if(a)h=this.getAccount(a,r);else if(c){const e=this.browserStorage.getItem(c),t=this.validateAndParseJson(e||"");h=t&&Tc(t)?await this.browserStorage.decryptData(c,t,r):t}if(!h){this.performanceClient.incrementFields({skipITMigrateCount:1},r);continue}const l=br(t.secret,os),d=this.generateCredentialKey(t),u=this.getIdTokenCredential(d,r),g=Object.keys(l).includes("signin_state"),p=u&&Object.keys(br(u.secret,os)||{}).includes("signin_state");if(!u||t.lastUpdatedAt>u.lastUpdatedAt&&(g||!p)){const e=h.tenantProfiles||[],n=zr(l)||h.realm;if(n&&!e.find((e=>e.tenantId===n))){const t=kr(h.homeAccountId,h.localAccountId,n,l);e.push(t)}h.tenantProfiles=e;const s=this.generateAccountKey($r(h)),a=Ar(l);await this.setUserData(s,JSON.stringify(h),r,h.lastUpdatedAt,a),i.includes(s)||i.push(s),await this.setUserData(d,JSON.stringify(t),r,t.lastUpdatedAt,a),this.performanceClient.incrementFields({migratedITCount:1},r),o.idToken.includes(d)||o.idToken.push(d)}}this.setTokenKeys(n,r,e),this.setTokenKeys(o,r),this.setAccountKeys(i,r)}async migrateAccessTokens(e,t,r){const n=kc(this.clientId,this.browserStorage,e);if(0===n.accessToken.length)return;const o=kc(this.clientId,this.browserStorage,3);for(const e of[...n.accessToken]){this.performanceClient.incrementFields({oldATCount:1},r);const i=await this.updateOldEntry(e,r);if(!i){Rc(n.accessToken,e);continue}if(!(i.homeAccountId in t)){this.performanceClient.incrementFields({skipATMigrateCount:1},r);continue}const s=this.generateCredentialKey(i),a=t[i.homeAccountId];if(o.accessToken.includes(s)){const e=this.getAccessTokenCredential(s,r);(!e||i.lastUpdatedAt>e.lastUpdatedAt)&&(await this.setUserData(s,JSON.stringify(i),r,i.lastUpdatedAt,a),this.performanceClient.incrementFields({migratedATCount:1},r))}else await this.setUserData(s,JSON.stringify(i),r,i.lastUpdatedAt,a),this.performanceClient.incrementFields({migratedATCount:1},r),o.accessToken.push(s)}this.setTokenKeys(n,r,e),this.setTokenKeys(o,r)}async migrateRefreshTokens(e,t,r){const n=kc(this.clientId,this.browserStorage,e);if(0===n.refreshToken.length)return;const o=kc(this.clientId,this.browserStorage,3);for(const e of[...n.refreshToken]){this.performanceClient.incrementFields({oldRTCount:1},r);const i=await this.updateOldEntry(e,r);if(!i){Rc(n.refreshToken,e);continue}if(!(i.homeAccountId in t)){this.performanceClient.incrementFields({skipRTMigrateCount:1},r);continue}const s=this.generateCredentialKey(i),a=t[i.homeAccountId];if(o.refreshToken.includes(s)){const e=this.getRefreshTokenCredential(s,r);(!e||i.lastUpdatedAt>e.lastUpdatedAt)&&(await this.setUserData(s,JSON.stringify(i),r,i.lastUpdatedAt,a),this.performanceClient.incrementFields({migratedRTCount:1},r))}else await this.setUserData(s,JSON.stringify(i),r,i.lastUpdatedAt,a),this.performanceClient.incrementFields({migratedRTCount:1},r),o.refreshToken.push(s)}this.setTokenKeys(n,r,e),this.setTokenKeys(o,r)}trackVersionChanges(e){const t=this.browserStorage.getItem(dc);t&&(this.logger.info("1wuc87",e),this.performanceClient.addFields({previousLibraryVersion:t},e)),t!==Pc&&this.setItem(dc,Pc,e)}validateAndParseJson(e){if(!e)return null;try{const t=JSON.parse(e);return t&&"object"==typeof t?t:null}catch(e){return null}}setItem(e,t,r){const n=new Array(4).fill(0),o=[];for(let i=0;i<=20;i++)try{if(this.browserStorage.setItem(e,t),i>0)for(let e=0;e<=3;e++){const t=n.slice(0,e).reduce(((e,t)=>e+t),0);if(t>=i)break;const s=i>t+n[e]?t+n[e]:i;i>t&&n[e]>0&&this.removeAccessTokenKeys(o.slice(t,s),r,e)}break}catch(s){const a=Ur(s);if(!(a.errorCode===qr&&i<20))throw a;if(!o.length)for(let r=0;r<=3;r++)if(e===fc(this.clientId,r)){const e=JSON.parse(t).accessToken;o.push(...e),n[r]=e.length}else{const e=this.getTokenKeys(r).accessToken;o.push(...e),n[r]=e.length}if(o.length<=i)throw a;this.removeAccessToken(o[i],r,!1)}}async setUserData(e,t,r,n,o){const i=new Array(4).fill(0),s=[];for(let a=0;a<=20;a++)try{if(await Ln(this.browserStorage.setUserData.bind(this.browserStorage),"setUserData",this.logger,this.performanceClient,r)(e,t,r,n,o),a>0)for(let e=0;e<=3;e++){const t=i.slice(0,e).reduce(((e,t)=>e+t),0);if(t>=a)break;const n=a>t+i[e]?t+i[e]:a;a>t&&i[e]>0&&this.removeAccessTokenKeys(s.slice(t,n),r,e)}break}catch(e){const t=Ur(e);if(!(t.errorCode===qr&&a<20))throw t;if(!s.length)for(let e=0;e<=3;e++){const t=this.getTokenKeys(e).accessToken;s.push(...t),i[e]=t.length}if(s.length<=a)throw t;this.removeAccessToken(s[a],r,!1)}}getAccount(e,t){this.logger.trace("1lfvm6",t);const r=this.browserStorage.getUserData(e);if(!r)return this.removeAccountKeyFromMap(e,t),null;const n=this.validateAndParseJson(r);if(!(n&&(o=n,o&&o.hasOwnProperty("homeAccountId")&&o.hasOwnProperty("environment")&&o.hasOwnProperty("realm")&&o.hasOwnProperty("localAccountId")&&o.hasOwnProperty("username")&&o.hasOwnProperty("authorityType"))))return null;var o;const i=Gr.toObject({},n);var s;return this.performanceClient.addFields({accountCachedBy:(s=i.cachedByApiId,"number"==typeof s&&s in Ls?Ls[s]:"unknown")},t),i}async setAccount(e,t,r,n){this.logger.trace("1bz3wr",t);const o=this.generateAccountKey($r(e)),i=Date.now().toString();e.lastUpdatedAt=i,e.cachedByApiId=n,await this.setUserData(o,JSON.stringify(e),t,i,r),this.addAccountKeyToMap(o,t),this.performanceClient.addFields({kmsi:r},t)}setAccountKeys(e,t,r=3){0===e.length?this.removeItem(mc(r)):this.setItem(mc(r),JSON.stringify(e),t)}getAccountKeys(){return vc(this.browserStorage)}addAccountKeyToMap(e,t){this.logger.trace("0rb85k",t),this.logger.tracePii("1l9bdo",t);const r=this.getAccountKeys();return-1===r.indexOf(e)?(r.push(e),this.setItem(mc(),JSON.stringify(r),t),this.logger.verbose("0xia39",t),!0):(this.logger.verbose("0161kk",t),!1)}removeAccountKeyFromMap(e,t){this.logger.trace("1jpigu",t),this.logger.tracePii("1xzspl",t);const r=this.getAccountKeys(),n=r.indexOf(e);n>-1?(r.splice(n,1),this.setAccountKeys(r,t)):this.logger.trace("1dytu2",t)}removeAccount(e,t){const r=this.getActiveAccount(t);r?.homeAccountId===e.homeAccountId&&r?.environment===e.environment&&this.setActiveAccount(null,t),super.removeAccount(e,t),this.removeAccountKeyFromMap(this.generateAccountKey(e),t),this.browserStorage.getKeys().forEach((t=>{t.includes(e.homeAccountId)&&t.includes(e.environment)&&this.browserStorage.removeItem(t)}))}removeIdToken(e,t){super.removeIdToken(e,t);const r=this.getTokenKeys(),n=r.idToken.indexOf(e);n>-1&&(this.logger.info("05udv9",t),r.idToken.splice(n,1),this.setTokenKeys(r,t))}removeAccessToken(e,t,r=!0){super.removeAccessToken(e,t),r&&this.removeAccessTokenKeys([e],t)}removeAccessTokenKeys(e,t,r=3){this.logger.trace("17o18n",t);const n=this.getTokenKeys(r);let o=0;if(e.forEach((e=>{const t=n.accessToken.indexOf(e);t>-1&&(n.accessToken.splice(t,1),o++)})),o>0)return this.logger.info("15i5d5",t),void this.setTokenKeys(n,t,r)}removeRefreshToken(e,t){super.removeRefreshToken(e,t);const r=this.getTokenKeys(),n=r.refreshToken.indexOf(e);n>-1&&(this.logger.info("1f4fq3",t),r.refreshToken.splice(n,1),this.setTokenKeys(r,t))}getTokenKeys(e=3){return kc(this.clientId,this.browserStorage,e)}setTokenKeys(e,t,r=3){0!==e.idToken.length||0!==e.accessToken.length||0!==e.refreshToken.length?this.setItem(fc(this.clientId,r),JSON.stringify(e),t):this.removeItem(fc(this.clientId,r))}getIdTokenCredential(e,t){const r=this.browserStorage.getUserData(e);if(!r)return this.logger.trace("1jukz6",t),this.removeIdToken(e,t),null;const n=this.validateAndParseJson(r);return n&&((o=n)&&vn(o)&&o.hasOwnProperty("realm")&&o.credentialType===H.ID_TOKEN)?(this.logger.trace("01ju66",t),n):(this.logger.trace("1jukz6",t),null);var o}async setIdTokenCredential(e,t,r){this.logger.trace("13hjll",t);const n=this.generateCredentialKey(e),o=Date.now().toString();e.lastUpdatedAt=o,await this.setUserData(n,JSON.stringify(e),t,o,r);const i=this.getTokenKeys();-1===i.idToken.indexOf(n)&&(this.logger.info("07jy92",t),i.idToken.push(n),this.setTokenKeys(i,t))}getAccessTokenCredential(e,t){const r=this.browserStorage.getUserData(e);if(!r)return this.logger.trace("0bqvx8",t),this.removeAccessTokenKeys([e],t),null;const n=this.validateAndParseJson(r);return n&&kn(n)?(this.logger.trace("1o81rl",t),n):(this.logger.trace("0bqvx8",t),null)}async setAccessTokenCredential(e,t,r){this.logger.trace("1pondb",t);const n=this.generateCredentialKey(e),o=Date.now().toString();e.lastUpdatedAt=o,await this.setUserData(n,JSON.stringify(e),t,o,r);const i=this.getTokenKeys(),s=i.accessToken.indexOf(n);-1!==s&&i.accessToken.splice(s,1),this.logger.trace("1onhey",t),i.accessToken.push(n),this.setTokenKeys(i,t)}getRefreshTokenCredential(e,t){const r=this.browserStorage.getUserData(e);if(!r)return this.logger.trace("0jlizt",t),this.removeRefreshToken(e,t),null;const n=this.validateAndParseJson(r);return n&&Tn(n)?(this.logger.trace("0nokxi",t),n):(this.logger.trace("0jlizt",t),null)}async setRefreshTokenCredential(e,t,r){this.logger.trace("0tcg8d",t);const n=this.generateCredentialKey(e),o=Date.now().toString();e.lastUpdatedAt=o,await this.setUserData(n,JSON.stringify(e),t,o,r);const i=this.getTokenKeys();-1===i.refreshToken.indexOf(n)&&(this.logger.info("0eckjs",t),i.refreshToken.push(n),this.setTokenKeys(i,t))}getAppMetadata(e,t){const r=this.browserStorage.getItem(e);if(!r)return this.logger.trace("1q101h",t),null;const n=this.validateAndParseJson(r);return n&&(o=e,(i=n)&&0===o.indexOf(F)&&i.hasOwnProperty("clientId")&&i.hasOwnProperty("environment"))?(this.logger.trace("19pvg2",t),n):(this.logger.trace("1q101h",t),null);var o,i}setAppMetadata(e,t){this.logger.trace("0cyma6",t);const r=function({environment:e,clientId:t}){return[F,e,t].join("-").toLowerCase()}(e);this.setItem(r,JSON.stringify(e),t)}getServerTelemetry(e,t){const r=this.browserStorage.getItem(e);if(!r)return this.logger.trace("0jk19c",t),null;const n=this.validateAndParseJson(r);return n&&function(e,t){const r=0===e.indexOf(W);let n=!0;return t&&(n=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),r&&n}(e,n)?(this.logger.trace("12jguk",t),n):(this.logger.trace("0jk19c",t),null)}setServerTelemetry(e,t,r){this.logger.trace("1poh61",r),this.setItem(e,JSON.stringify(t),r)}getAuthorityMetadata(e,t){const r=this.internalStorage.getItem(e);if(!r)return this.logger.trace("1r39oe",t),null;const n=this.validateAndParseJson(r);return n&&function(e,t){return!!t&&0===e.indexOf(K)&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri")}(e,n)?(this.logger.trace("1ohvk3",t),n):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter((e=>this.isAuthorityMetadata(e)))}setWrapperMetadata(e,t){this.internalStorage.setItem(qs,e),this.internalStorage.setItem(Ns,t)}getWrapperMetadata(){return[this.internalStorage.getItem(qs)||"",this.internalStorage.getItem(Ns)||""]}setAuthorityMetadata(e,t,r){this.logger.trace("07w8n2",r),this.internalStorage.setItem(e,JSON.stringify(t))}getActiveAccount(e){const t=this.generateCacheKey(A),r=this.browserStorage.getItem(t);if(!r)return this.logger.trace("08gw0e",e),null;const n=this.validateAndParseJson(r);return n?(this.logger.trace("1t3ch7",e),this.getAccountInfoFilteredBy({homeAccountId:n.homeAccountId,localAccountId:n.localAccountId,tenantId:n.tenantId},e)):(this.logger.trace("0me1up",e),null)}setActiveAccount(e,t){const r=this.generateCacheKey(A);if(e){this.logger.verbose("0rsj80",t);const n={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId};this.setItem(r,JSON.stringify(n),t)}else this.logger.verbose("1bp5z5",t),this.browserStorage.removeItem(r);this.eventHandler.emitEvent(_c.ACTIVE_ACCOUNT_CHANGED,t)}getThrottlingCache(e,t){const r=this.browserStorage.getItem(e);if(!r)return this.logger.trace("1h4wa6",t),null;const n=this.validateAndParseJson(r);return n&&function(e,t){let r=!1;e&&(r=0===e.indexOf(V));let n=!0;return t&&(n=t.hasOwnProperty("throttleTime")),r&&n}(e,n)?(this.logger.trace("0of6n8",t),n):(this.logger.trace("1h4wa6",t),null)}setThrottlingCache(e,t,r){this.logger.trace("0wfgh6",r),this.setItem(e,JSON.stringify(t),r)}getTemporaryCache(e,t,r){this.logger.trace("1ordf8",t);const n=r?this.generateCacheKey(e):e;return this.temporaryCacheStorage.getItem(n)}setTemporaryCache(e,t,r){const n=r?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(n,t)}removeItem(e){this.browserStorage.removeItem(e)}removeTemporaryItem(e){this.temporaryCacheStorage.removeItem(e)}getKeys(){return this.browserStorage.getKeys()}clear(e){this.removeAllAccounts(e),this.removeAppMetadata(e),this.temporaryCacheStorage.getKeys().forEach((e=>{-1===e.indexOf(sc)&&-1===e.indexOf(this.clientId)||this.removeTemporaryItem(e)})),this.browserStorage.getKeys().forEach((e=>{-1===e.indexOf(sc)&&-1===e.indexOf(this.clientId)||this.browserStorage.removeItem(e)})),this.internalStorage.clear()}generateCacheKey(e){return Te.startsWith(e,sc)?e:`${sc}.${this.clientId}.${e}`}generateCredentialKey(e){const t=e.credentialType===H.REFRESH_TOKEN&&e.familyId||e.clientId,r=e.tokenType&&e.tokenType.toLowerCase()!==Q.BEARER.toLowerCase()?e.tokenType.toLowerCase():"";return[`${sc}.3`,e.homeAccountId,e.environment,e.credentialType,t,e.realm||"",e.target||"",r].join("|").toLowerCase()}generateAccountKey(e){const t=e.homeAccountId.split(".")[1];return[`${sc}.3`,e.homeAccountId,e.environment,t||e.tenantId||""].join("|").toLowerCase()}resetRequestCache(e){this.logger.trace("0h0ynu",e),this.removeTemporaryItem(this.generateCacheKey(Rs)),this.removeTemporaryItem(this.generateCacheKey(Os)),this.removeTemporaryItem(this.generateCacheKey(Es)),this.removeTemporaryItem(this.generateCacheKey(Ps)),this.removeTemporaryItem(this.generateCacheKey(xs)),this.setInteractionInProgress(!1,void 0)}cacheAuthorizeRequest(e,t,r){this.logger.trace("1tzef5",t);const n=Ws(JSON.stringify(e));if(this.setTemporaryCache(Rs,n,!0),r){const e=Ws(r);this.setTemporaryCache(Os,e,!0)}}getCachedRequest(e){this.logger.trace("0uen20",e);const t=this.getTemporaryCache(Rs,e,!0);if(!t)throw ns(_i);const r=this.getTemporaryCache(Os,e,!0);let n,o="";try{n=JSON.parse(os(t)),r&&(o=os(r))}catch(t){throw this.logger.errorPii("0ewsey",e),this.logger.error("0tvdic",e),ns(Ei)}return[n,o]}getCachedNativeRequest(){this.logger.trace("1yxcdm","");const e=this.getTemporaryCache(xs,"",!0);if(!e)return this.logger.trace("0mnxd4",""),null;const t=this.validateAndParseJson(e);return t||(this.logger.error("0rrkip",""),null)}isInteractionInProgress(e){const t=this.getInteractionInProgress()?.clientId;return e?t===this.clientId:!!t}getInteractionInProgress(){const e=`${sc}.${Ms}`,t=this.getTemporaryCache(e,"",!1);try{return t?JSON.parse(t):null}catch(t){return this.logger.error("0jjyys",""),this.removeTemporaryItem(e),this.resetRequestCache(""),ba(window),null}}setInteractionInProgress(e,t=Ss,r=!1,n=""){const o=`${sc}.${Ms}`;if(e){if(this.getInteractionInProgress()){if(!r)throw ns(fi);this.logger.warning("1pmscr",n),Pa(this.logger,n),this.removeTemporaryItem(o)}this.setTemporaryCache(o,JSON.stringify({clientId:this.clientId,type:t}),!1)}else e||this.getInteractionInProgress()?.clientId!==this.clientId||this.removeTemporaryItem(o)}async hydrateCache(e,t){const r=wn(e.account.homeAccountId,e.account.environment,e.idToken,this.clientId,e.tenantId),n=In(e.account.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?gn(e.expiresOn):0,e.extExpiresOn?gn(e.extExpiresOn):0,os,void 0,e.tokenType,void 0,t.sshKid);t.resource&&(n.resource=t.resource);const o={idToken:r,accessToken:n};return this.saveCacheRecord(o,e.correlationId,Ar(br(e.idToken,os)),Us.hydrateCache)}async saveCacheRecord(e,t,r,n,o){try{await super.saveCacheRecord(e,t,r,n,o)}catch(e){if(e instanceof Nr&&this.performanceClient&&t)try{const e=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:e.refreshToken.length,cacheIdCount:e.idToken.length,cacheAtCount:e.accessToken.length},t)}catch(e){}throw e}}}function Mc(e,t,r,n){try{switch(t){case Ts.LocalStorage:return new Ac(e,r,n);case Ts.SessionStorage:return new Sc}}catch(e){r.error(e,"")}return new $a}const xc=(e,t,r,n)=>new Oc(e,{cacheLocation:Ts.MemoryStorage,cacheRetentionDays:5},gr,t,r,n);function qc(e,t,r,n,o){return e.verbose("1yd030",n),r?t.getAllAccounts(o,n):[]}function Nc(e,t,r,n){t.trace("0u7b90",n);const o=r.getAccountInfoFilteredBy(e,n);return o?(t.verbose("0btgll",n),o):(t.verbose("0ltaj5",n),null)}function Uc(e,t,r){t.setActiveAccount(e,r)}function Lc(e,t){return e.getActiveAccount(t)}class Hc{constructor(e){this.eventCallbacks=new Map,this.logger=e||new yr({}),"undefined"!=typeof BroadcastChannel&&(this.broadcastChannel=new BroadcastChannel("msal.broadcast.event")),this.invokeCrossTabCallbacks=this.invokeCrossTabCallbacks.bind(this)}addEventCallback(e,t,r){if("undefined"!=typeof window){const n=r||Ka();return this.eventCallbacks.has(n)?(this.logger.error("1578i0",""),null):(this.eventCallbacks.set(n,[e,t||[]]),this.logger.verbose("1cnec4",""),n)}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose("12zotd","")}emitEvent(e,t,r,n,o){const i={eventType:e,interactionType:r||null,payload:n||null,error:o||null,correlationId:t,timestamp:Date.now()};switch(e){case _c.LOGIN_SUCCESS:case _c.LOGOUT_SUCCESS:case _c.ACTIVE_ACCOUNT_CHANGED:this.broadcastChannel?.postMessage(i)}this.invokeCallbacks(i)}invokeCallbacks(e){this.eventCallbacks.forEach((([t,r],n)=>{(0===r.length||r.includes(e.eventType))&&(this.logger.verbose("15jpwk",""),t.apply(null,[e]))}))}invokeCrossTabCallbacks(e){const t=e.data;this.invokeCallbacks(t)}subscribeCrossTab(){this.broadcastChannel?.addEventListener("message",this.invokeCrossTabCallbacks)}unsubscribeCrossTab(){this.broadcastChannel?.removeEventListener("message",this.invokeCrossTabCallbacks)}}class Fc{constructor(e,t,r,n,o,i,s,a,c){this.config=e,this.browserStorage=t,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=i,this.platformAuthProvider=c,this.correlationId=a,this.logger=n.clone(ls,Pc),this.performanceClient=s}}function Dc(e,t,r,n){r.verbose("0bd1la",n);const o=e||t||"";return _r.getAbsoluteUrl(o,Oa())}function Kc(e,t,r,n,o,i){o.verbose("1p12tq",r);const s={clientId:t,correlationId:r,apiId:e,forceRefresh:!1,wrapperSKU:n.getWrapperMetadata()[0],wrapperVer:n.getWrapperMetadata()[1]};return new qo(s,n)}async function Bc(e,t,r,n,o,i,s,a,c){const h=a&&a.hasOwnProperty("instance_aware")?a.instance_aware:void 0,l={protocolMode:e.system.protocolMode,OIDCOptions:e.auth.OIDCOptions,knownAuthorities:e.auth.knownAuthorities,cloudDiscoveryMetadata:e.auth.cloudDiscoveryMetadata,authorityMetadata:e.auth.authorityMetadata},d=i||e.auth.authority,u=h?.length?"true"===h:e.auth.instanceAware,g=c&&u?e.auth.authority.replace(_r.getDomainFromUrl(d),c.environment):d,p=wo.generateAuthority(g,s||e.auth.azureCloudOptions),m=await Ln(vo,"authorityFactoryCreateDiscoveredInstance",o,r,t)(p,e.system.networkClient,n,l,o,t,r);if(c&&!m.isAlias(c.environment))throw ke(je);return m}async function zc(e,t,r,n,o){if(o)try{e.removeAccount(o,n),r.verbose("0s4z6h",n)}catch(e){r.error("0mgg1d",n)}else try{r.verbose("0zj631",n),e.clear(n),await t.clearKeystore(n)}catch(e){r.error("12ih0c",n)}}async function jc(e,t,r,n,o){const i=e.authority||t.auth.authority,s=[...e&&e.scopes||[]],a={...e,correlationId:e.correlationId,authority:i,scopes:s};if(a.authenticationScheme){if(a.authenticationScheme===Q.SSH){if(!e.sshJwk)throw ke(He);if(!e.sshKid)throw ke(Fe)}n.verbose("1ecmns",o)}else a.authenticationScheme=Q.BEARER,n.verbose("1l4fwv",o);return a}async function $c(e,t,r,n,o){const i=await Ln(jc,jo,o,n,e.correlationId)(e,r,n,o,e.correlationId);return{...e,...i,account:t,forceRefresh:e.forceRefresh||!1}}function Jc(e,t){let r;const n=e.httpMethod;if(t===jr.EAR){if(n&&n!==p)throw ke($e);r=p}else r=n||g;return r}class Wc extends Fc{initializeLogoutRequest(e){this.logger.verbose("0546u4",this.correlationId);const t={correlationId:this.correlationId,...e};if(e)if(e.logoutHint)this.logger.verbose("12k4l4",this.correlationId);else if(e.account){const r=e.account.loginHint||this.getLogoutHintFromIdTokenClaims(e.account);r&&(this.logger.verbose("0d7s8p",this.correlationId),t.logoutHint=r)}else this.logger.verbose("0pdtc3",this.correlationId);else this.logger.verbose("07ndze",this.correlationId);return e&&null===e.postLogoutRedirectUri?this.logger.verbose("0ljv63",t.correlationId):e&&e.postLogoutRedirectUri?(this.logger.verbose("1vamm6",t.correlationId),t.postLogoutRedirectUri=_r.getAbsoluteUrl(e.postLogoutRedirectUri,Oa())):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("15m5g7",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("1f4xlz",t.correlationId),t.postLogoutRedirectUri=_r.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Oa())):(this.logger.verbose("17s5rf",t.correlationId),t.postLogoutRedirectUri=_r.getAbsoluteUrl(Oa(),Oa())),t}getLogoutHintFromIdTokenClaims(e){const t=e.idTokenClaims;if(t){if(t.login_hint)return this.logger.verbose("0u5bmc",this.correlationId),t.login_hint;this.logger.verbose("0mvp54",this.correlationId)}else this.logger.verbose("1e7bdp",this.correlationId);return null}async createAuthCodeClient(e){const t=await Ln(this.getClientConfiguration.bind(this),Qo,this.logger,this.performanceClient,this.correlationId)(e);return new ko(t,this.performanceClient)}async getClientConfiguration(e){const{serverTelemetryManager:t,requestAuthority:r,requestAzureCloudOptions:n,requestExtraQueryParameters:o,account:i}=e,s=e.authority||await Ln(Bc,Ko,this.logger,this.performanceClient,this.correlationId)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,r,n,o,i),a=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:s,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:this.config.auth.redirectUri,isMcp:this.config.auth.isMcp},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:a.loggerCallback,piiLoggingEnabled:a.piiLoggingEnabled,logLevel:a.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:ls,version:Pc,cpu:"",os:""},telemetry:this.config.telemetry}}}async function Gc(e,t,r,n,o,i,s,a){const c=Dc(e.redirectUri,r.auth.redirectUri,i,a);new URL(c).origin!==new URL(window.location.href).origin&&(i.warning("08qbvw",a),s.addFields({isRedirectUriCrossOrigin:!0},a));const h={interactionType:t},l=ro(n,e&&e.state||"",h),d={...await Ln(jc,jo,i,s,a)({...e,correlationId:a},r,s,i,a),redirectUri:c,state:l,nonce:e.nonce||ca(),responseMode:r.auth.OIDCOptions.responseMode},u={...d,httpMethod:Jc(d,r.system.protocolMode)};if(e.loginHint||e.sid)return u;const g=e.account||o.getActiveAccount(a);return g&&(i.verbose("1eqlb3",a),i.verbosePii("0tf99t",a),u.account=g),u}function Qc(e,t,r,n){const o=lr(e);if(!o)throw hr(e)?(r.error("13pl0s",n),r.errorPii("1097vx",n),ns(gi)):(r.error("18h0l1",n),ns(di));return o}function Vc(e,t,r){if(!e.state)throw ns(ui);const n=function(e,t){if(!t)return null;try{return no(e.base64Decode,t).libraryState.meta}catch(e){throw Ae(nt)}}(t,e.state);if(!n)throw ns(pi);if(n.interactionType!==r)throw ns(mi)}class Yc{constructor(e,t,r,n,o){this.authModule=e,this.browserStorage=t,this.authCodeRequest=r,this.logger=n,this.performanceClient=o}async handleCodeResponse(e,t,r){let n;try{n=function(e,t){if(Eo(e,t),!e.code)throw Ae(vt);return e}(e,t.state)}catch(e){throw e instanceof to&&e.subError===Ci?ns(Ci):e}return Ln(this.handleCodeResponseFromServer.bind(this),On,this.logger,this.performanceClient,t.correlationId)(n,t,r)}async handleCodeResponseFromServer(e,t,r,n=!0){if(this.logger.trace("0mf2hb",t.correlationId),this.authCodeRequest.code=e.code,n&&(e.nonce=t.nonce||void 0),e.state=t.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{const e=this.createCcsCredentials(t);e&&(this.authCodeRequest.ccsCredential=e)}return await Ln(this.authModule.acquireToken.bind(this.authModule),"authClientAcquireToken",this.logger,this.performanceClient,t.correlationId)(this.authCodeRequest,r,e)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:so}:e.loginHint?{credential:e.loginHint,type:ao}:null}}class Zc extends Ie{constructor(e,t,r){super(e,t||ts(e)),Object.setPrototypeOf(this,Zc.prototype),this.name="NativeAuthError",this.ext=r}}function Xc(e){if(e.ext&&e.ext.status&&"DISABLED"===e.ext.status)return!0;if(e.ext&&e.ext.error&&-2147186943===e.ext.error)return!0;switch(e.errorCode){case"ContentError":case"PageException":return!0;default:return!1}}function eh(e,t,r){if(r&&r.status)switch(r.status){case"ACCOUNT_UNAVAILABLE":return eo(Kn,ts(e));case"USER_INTERACTION_REQUIRED":return new Zn(e,t);case"USER_CANCEL":return ns(Ci);case"NO_NETWORK":return ns(Oi);case"UI_NOT_ALLOWED":return eo(zn)}return new Zc(e,t,r)}class th extends Wc{async acquireToken(e){const t=Kc(Us.acquireTokenSilent_silentFlow,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),r=await Ln(this.getClientConfiguration.bind(this),Qo,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t,requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,account:e.account}),n=new bo(r,this.performanceClient);this.logger.verbose("0wa871",this.correlationId);try{const t=(await Ln(n.acquireCachedToken.bind(n),"silentFlowClientAcquireCachedToken",this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),t}catch(e){throw e instanceof rs&&e.errorCode===Ui&&this.logger.verbose("06wena",this.correlationId),e}}logout(e){this.logger.verbose("1rkurh",this.correlationId);const t=this.initializeLogoutRequest(e);return zc(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,t.account)}}class rh extends Fc{constructor(e,t,r,n,o,i,s,a,c,h,l,d){super(e,t,r,n,o,i,a,d,c),this.apiId=s,this.accountId=h,this.platformAuthProvider=c,this.nativeStorageManager=l,this.silentCacheClient=new th(e,this.nativeStorageManager,r,n,o,i,a,d,c);const u=this.platformAuthProvider.getExtensionName();this.skus=qo.makeExtraSkuString({libraryName:ls,libraryVersion:Pc,extensionName:u,extensionVersion:this.platformAuthProvider.getExtensionVersion()})}addRequestSKUs(e){e.extraParameters={...e.extraParameters,[pe]:this.skus}}async acquireToken(e,t){this.logger.trace("03qeos",this.correlationId);const r=this.performanceClient.startMeasurement(Bo,this.correlationId),n=un(),o=Kc(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{const i=await this.initializePlatformRequest(e);try{const e=await this.acquireTokensFromCache(this.accountId,i);return r.end({success:!0,isNativeBroker:!1,fromCache:!0}),e}catch(e){if(t===zs.AccessToken)throw this.logger.info("0eitbc",this.correlationId),r.end({success:!1,brokerErrorCode:"cache_request_failed"}),e;this.logger.info("0957j1",this.correlationId)}const s=await this.platformAuthProvider.sendMessage(i);return await this.handleNativeResponse(s,i,n).then((e=>(r.end({success:!0,isNativeBroker:!0,requestId:e.requestId}),o.clearNativeBrokerErrorCode(),e))).catch((e=>{throw r.end({success:!1,errorCode:e.errorCode,subErrorCode:e.subError}),e}))}catch(e){throw e instanceof Zc&&o.setNativeBrokerErrorCode(e.errorCode),r.end({success:!1}),e}}createSilentCacheRequest(e,t){return{authority:e.authority,correlationId:this.correlationId,scopes:Mt.fromString(e.scope).asArray(),account:t,forceRefresh:!1}}async acquireTokensFromCache(e,t){if(!e)throw this.logger.warning("1ndf3e",this.correlationId),Ae(yt);const r=this.browserStorage.getBaseAccountInfo({nativeAccountId:e},this.correlationId);if(!r)throw Ae(yt);try{const e=this.createSilentCacheRequest(t,r),n=await this.silentCacheClient.acquireToken(e),o=this.browserStorage.getIdToken(r,this.correlationId,this.browserStorage.getTokenKeys(),r.tenantId),i=br(o?.secret||"",os),s=Tr(r,void 0,i,o?.secret);return{...n,idToken:o?.secret||"",idTokenClaims:i,account:s}}catch(e){throw e}}async acquireTokenRedirect(e,t,r){this.logger.trace("0luikq",this.correlationId);const n=await this.initializePlatformRequest(e),o=r?.navigateToLoginRequestUrl??!0;try{await this.platformAuthProvider.sendMessage(n)}catch(e){if(e instanceof Zc){if(Kc(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger).setNativeBrokerErrorCode(e.errorCode),Xc(e))throw e}}this.browserStorage.setTemporaryCache(xs,JSON.stringify(n),!0);const i={apiId:Us.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},s=o?_r.getAbsoluteUrl(e.redirectStartPage||window.location.href,Oa()):Dc(e.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId);t.end({success:!0}),await this.navigationClient.navigateExternal(s,i)}async handleRedirectPromise(){if(this.logger.trace("1c5lhw",this.correlationId),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("0le6uv",this.correlationId),null;const e=this.browserStorage.getCachedNativeRequest();if(!e)return this.logger.verbose("0a6zjb",this.correlationId),this.performanceClient?.addFields({errorCode:"no_cached_request"},this.correlationId),null;const{prompt:t,...r}=e;t&&this.logger.verbose("0ac34v",this.correlationId),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(xs));const n=un();try{this.logger.verbose("003x5a",this.correlationId);const e=await this.platformAuthProvider.sendMessage(r),t=await this.handleNativeResponse(e,r,n);return Kc(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger).clearNativeBrokerErrorCode(),this.performanceClient?.addFields({isNativeBroker:!0},this.correlationId),t}catch(e){throw e}}logout(){return this.logger.trace("0u2sjm",this.correlationId),Promise.reject("Logout not implemented yet")}async handleNativeResponse(e,t,r){this.logger.trace("1bojln",this.correlationId);const n=br(e.id_token,os),o=this.createHomeAccountIdentifier(e,n),i=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t.accountId},this.correlationId)?.homeAccountId;if(t.extraParameters?.child_client_id&&e.account.id!==t.accountId)this.logger.info("1ub1in",this.correlationId);else if(o!==i&&e.account.id!==t.accountId)throw eh("user_switch");const s=await Bc(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,t.authority),a=io(this.browserStorage,s,o,os,this.correlationId,n,e.client_info,s.getPreferredCache(),n.tid,void 0,e.account.id,this.logger,this.performanceClient);e.expires_in=Number(e.expires_in);const c=await this.generateAuthenticationResult(e,t,n,a,s.canonicalAuthority,r);return await this.cacheAccount(a,Ar(n)),await this.cacheNativeTokens(e,t,o,n,c.tenantId,r,s.getPreferredCache()),c}createHomeAccountIdentifier(e,t){return Wr(e.client_info||"",Fr,this.logger,this.browserCrypto,this.correlationId,t)}generateScopes(e,t){return t?Mt.fromString(t):Mt.fromString(e)}async generatePopAccessToken(e,t){if(t.tokenType===Q.POP&&t.signPopToken){if(e.shr)return this.logger.trace("0coqhu",this.correlationId),e.shr;const r=new Fn(this.browserCrypto,this.performanceClient),n={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce,correlationId:this.correlationId};if(!t.keyId)throw Ae(bt);return r.signPopToken(e.access_token,t.keyId,n)}return e.access_token}async generateAuthenticationResult(e,t,r,n,o,i){const s=this.addTelemetryFromNativeResponse(e.properties.MATS),a=this.generateScopes(t.scope,e.scope),c=e.account.properties||{},h=c.UID||r.oid||r.sub||"",l=c.TenantId||r.tid||"",d=Tr($r(n),void 0,r,e.id_token);d.nativeAccountId!==e.account.id&&(d.nativeAccountId=e.account.id);const u=await this.generatePopAccessToken(e,t),g=t.tokenType===Q.POP?Q.POP:Q.BEARER;return{authority:o,uniqueId:h,tenantId:l,scopes:a.asArray(),account:d,idToken:e.id_token,idTokenClaims:r,accessToken:u,fromCache:!!s&&this.isResponseFromCache(s),expiresOn:pn(i+e.expires_in),tokenType:g,correlationId:this.correlationId,state:e.state,fromPlatformBroker:!0,...t.resource&&{resource:t.resource}}}async cacheAccount(e,t){await this.browserStorage.setAccount(e,this.correlationId,t,this.apiId),this.browserStorage.removeAccountContext($r(e),this.correlationId)}async cacheNativeTokens(e,t,r,n,o,i,s){const a=wn(r,s,e.id_token||"",t.clientId,n.tid||""),c=i+(t.tokenType===Q.POP?240:("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0),h=this.generateScopes(e.scope,t.scope),l=In(r,s,e.access_token,t.clientId,n.tid||o,h.printScopes(),c,0,os,void 0,t.tokenType,void 0,t.keyId);a&&!1!==t.storeInCache?.idToken&&await this.browserStorage.setIdTokenCredential(a,this.correlationId,Ar(n));const d={accessToken:l};return this.nativeStorageManager.saveCacheRecord(d,this.correlationId,Ar(n),this.apiId,t.storeInCache)}getExpiresInValue(e,t){return e===Q.POP?240:("string"==typeof t?parseInt(t,10):t)||0}addTelemetryFromNativeResponse(e){const t=this.getMATSFromResponse(e);return t?(this.performanceClient.addFields({extensionId:this.platformAuthProvider.getExtensionId(),extensionVersion:this.platformAuthProvider.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_count},this.correlationId),t):null}getMATSFromResponse(e){if(e)try{return JSON.parse(e)}catch(e){this.logger.error("0b3l57",this.correlationId)}return null}isResponseFromCache(e){return void 0===e.is_cached?(this.logger.verbose("1okqev",this.correlationId),!1):!!e.is_cached}async initializePlatformRequest(e){this.logger.trace("1xdm2a",this.correlationId);const t=await this.getCanonicalAuthority(e),r=e.skipBrokerClaims&&e.embeddedClientId?void 0:this.config.auth.clientCapabilities,{scopes:n,claims:o,...i}=e,s=new Mt(n||[]);s.appendScopes(m);const a={...i,claims:r&&r.length?tr(o,r):o,accountId:this.accountId,clientId:this.config.auth.clientId,authority:t.urlString,scope:s.printScopes(),redirectUri:Dc(e.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId),prompt:this.getPrompt(e.prompt),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraParameters},extendedExpiryToken:!1,keyId:e.popKid};if(a.signPopToken&&e.popKid)throw ns(Gi);if(this.handleExtraBrokerParams(a),a.extraParameters=a.extraParameters||{},a.extraParameters.telemetry=gs,e.authenticationScheme===Q.POP){const t={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce,correlationId:this.correlationId},r=new Fn(this.browserCrypto,this.performanceClient);let n;if(a.keyId)n=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:a.keyId})),a.signPopToken=!1;else{const e=await Ln(r.generateCnf.bind(r),Mn,this.logger,this.performanceClient,this.correlationId)(t,this.logger);n=e.reqCnfString,a.keyId=e.kid,a.signPopToken=!0}a.reqCnf=n}return this.addRequestSKUs(a),a}async getCanonicalAuthority(e){const t=e.authority||this.config.auth.authority,{azureCloudOptions:r,account:n}=e;n&&await Bc(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,t,r,void 0,n);const o=new _r(t);return o.validateAsUri(),o}getPrompt(e){switch(this.apiId){case Us.ssoSilent:case Us.acquireTokenSilent_silentFlow:return this.logger.trace("12n1y2",this.correlationId),O.NONE}if(e)switch(e){case O.NONE:case O.CONSENT:case O.LOGIN:return this.logger.trace("0i0hco",this.correlationId),e;default:throw this.logger.trace("0w3tpw",this.correlationId),ns(Ji)}else this.logger.trace("0uid1p",this.correlationId)}handleExtraBrokerParams(e){const t=e.extraParameters&&e.extraParameters.hasOwnProperty(me)&&e.extraParameters.hasOwnProperty(fe)&&e.extraParameters.hasOwnProperty(he);if(!e.embeddedClientId&&!t)return;let r="";const n=e.redirectUri;e.embeddedClientId?(e.redirectUri=this.config.auth.redirectUri,r=e.embeddedClientId):e.extraParameters&&(e.redirectUri=e.extraParameters[fe],r=e.extraParameters[he]),e.extraParameters={child_client_id:r,child_redirect_uri:n},this.performanceClient?.addFields({embeddedClientId:r,embeddedRedirectUri:n},this.correlationId)}}const nh=new Map([["e","AAD"],["m","MSA"]]);function oh(e,t,r){const n=function(e){if(!e)return null;try{const t=(/%(?:[0-9A-Fa-f]{2})/.test(e)?decodeURIComponent(e):e).split("|");return t.length<5?null:{accountType:nh.get(t[0]?.trim()||"")||"",error:t[1]?.trim()||"",subError:t[2]?.trim()||"",cloudInstance:t[3]?.trim()||"",callerDataBoundary:t[4]?.trim()||""}}catch{return null}}(e.clientdata);n?.accountType&&r.addFields({accountType:n.accountType},t),n?.error&&r.addFields({serverErrorNo:n.error},t),n?.subError&&r.addFields({serverSubErrorNo:n.subError},t)}async function ih(e,t,r,n,o){const i=So({...e.auth,authority:t},r,n,o);if(jt(i,{sku:ls,version:Pc,os:"",cpu:""}),e.system.protocolMode!==jr.OIDC&&$t(i,e.telemetry.application),r.platformBroker&&(function(e){e.set("nativebroker","1")}(i),o.addFields({isPlatformAuthorizeRequest:!0},r.correlationId),r.authenticationScheme===Q.POP)){const e=new Wa(n,o),t=new Fn(e,o);let s;if(r.popKid)s=e.encodeKid(r.popKid);else{s=(await Ln(t.generateCnf.bind(t),Mn,n,o,r.correlationId)(r,n)).reqCnfString}rr(i,s)}return xt(i,r.correlationId,o),i}async function sh(e,t,r,n,o){if(!r.codeChallenge)throw ke(qe);const i=await Ln(ih,"getStandardParams",n,o,r.correlationId)(e,t,r,n,o);return qt(i,M),Wt(i,r.codeChallenge,h),er(i,{...r.extraQueryParameters,...r.extraParameters}),_o(t,i)}async function ah(e,t,r,n,o,i){if(!n.earJwk)throw ns(ai);const s=await ih(t,r,n,o,i);qt(s,x),function(e,t){e.set("ear_jwk",encodeURIComponent(t)),e.set("ear_jwe_crypto","eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0")}(s,n.earJwk),Wt(s,n.codeChallenge,h),er(s,{...n.extraParameters});const a=new Map;er(a,n.extraQueryParameters||{}),zt(a,n.correlationId);return hh(e,_o(r,a),s)}async function ch(e,t,r,n,o,i){const s=await ih(t,r,n,o,i);qt(s,M),Wt(s,n.codeChallenge,n.codeChallengeMethod||h),er(s,{...n.extraParameters});const a=new Map;er(a,n.extraQueryParameters||{}),zt(a,n.correlationId);return hh(e,_o(r,a),s)}function hh(e,t,r){const n=e.createElement("form");return n.method="post",n.action=t,r.forEach(((t,r)=>{const o=e.createElement("input");o.hidden=!0,o.name=r,o.value=t,n.appendChild(o)})),e.body.appendChild(n),n}async function lh(e,t,r,n,o,i,s,a,c,h){if(a.verbose("11qcow",e.correlationId),!h)throw ns(ji);const l=new Wa(a,c),d=new rh(n,o,l,a,s,n.system.navigationClient,r,c,h,t,i,e.correlationId),{userRequestState:u}=no(l.base64Decode,e.state);return Ln(d.acquireToken.bind(d),Bo,a,c,e.correlationId)({...e,state:u,prompt:void 0})}async function dh(e,t,r,n,o,i,s,a,c,h,l,d){if(lo.removeThrottle(s,o.auth.clientId,e),oh(t,e.correlationId,l),t.accountId)return Ln(lh,Zo,h,l,e.correlationId)(e,t.accountId,n,o,s,a,c,h,l,d);const u={...e,code:t.code||"",codeVerifier:r},g=new Yc(i,s,u,h,l);return await Ln(g.handleCodeResponse.bind(g),"handleCodeResponse",h,l,e.correlationId)(t,e,n)}async function uh(e,t,r,n,o,i,s,a,c,h,l){if(lo.removeThrottle(i,n.auth.clientId,e),oh(t,e.correlationId,h),Eo(t,e.state),!t.ear_jwe)throw ns(ci);if(!e.earJwk)throw ns(ai);const d=JSON.parse(await Ln(da,"decryptEarResponse",c,h,e.correlationId)(e.earJwk,t.ear_jwe));if(d.accountId)return Ln(lh,Zo,c,h,e.correlationId)(e,d.accountId,r,n,i,s,a,c,h,l);const u=new oo(n.auth.clientId,i,new Wa(c,h),c,h,null,null);u.validateTokenResponse(d,e.correlationId);const g={code:"",state:e.state,nonce:e.nonce,client_info:d.client_info,cloud_graph_host_name:d.cloud_graph_host_name,cloud_instance_host_name:d.cloud_instance_host_name,cloud_instance_name:d.cloud_instance_name,msgraph_host:d.msgraph_host};return await Ln(u.handleServerTokenResponse.bind(u),xn,c,h,e.correlationId)(d,o,un(),e,r,g,void 0,void 0,void 0,void 0)}async function gh(e,t,r){const n=Un(ph,"generateCodeVerifier",t,e,r)(e,t,r);return{verifier:n,challenge:await Ln(mh,"generateCodeChallengeFromVerifier",t,e,r)(n,e,t,r)}}function ph(e,t,r){try{const n=new Uint8Array(32);Un(sa,"getRandomValues",t,e,r)(n);return Js(n)}catch(e){throw ns(si)}}async function mh(e,t,r,n){try{const o=await Ln(ia,"sha256Digest",r,t,n)(e);return Js(new Uint8Array(o))}catch(e){throw ns(si)}}class fh{navigateInternal(e,t){return fh.defaultNavigateWindow(e,t)}navigateExternal(e,t){return fh.defaultNavigateWindow(e,t)}static defaultNavigateWindow(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(((e,r)=>{setTimeout((()=>{r(ns(Zi,"failed_to_redirect"))}),t.timeout)}))}}class yh{async sendGetRequestAsync(e,t){let r,n={},o=0;const i=wh(t);try{r=await fetch(e,{method:bs,headers:i})}catch(e){throw go(ns(window.navigator.onLine?xi:Oi),void 0,void 0,e)}n=Ih(r.headers);try{return o=r.status,{headers:n,body:await r.json(),status:o}}catch(e){throw go(ns(qi),o,n,e)}}async sendPostRequestAsync(e,t){const r=t&&t.body||"",n=wh(t);let o,i=0,s={};try{o=await fetch(e,{method:As,headers:n,body:r})}catch(e){throw go(ns(window.navigator.onLine?Mi:Oi),void 0,void 0,e)}s=Ih(o.headers);try{return i=o.status,{headers:s,body:await o.json(),status:i}}catch(e){throw go(ns(qi),i,s,e)}}}function wh(e){try{const t=new Headers;if(!e||!e.headers)return t;const r=e.headers;return Object.entries(r).forEach((([e,r])=>{t.append(e,r)})),t}catch(e){throw go(ns(Qi),void 0,void 0,e)}}function Ih(e){try{const t={};return e.forEach(((e,r)=>{t[r]=e})),t}catch(e){throw ns(Vi)}}function Ch({auth:r,cache:n,system:o,experimental:i,telemetry:h},l){const d={clientId:"",authority:`${t}`,knownAuthorities:[],cloudDiscoveryMetadata:"",authorityMetadata:"",redirectUri:"undefined"!=typeof window&&window.location?window.location.href.split("?")[0].split("#")[0]:"",postLogoutRedirectUri:"",clientCapabilities:[],OIDCOptions:{responseMode:q.FRAGMENT,defaultScopes:[s,a,c]},azureCloudOptions:{azureCloudInstance:Cr.None,tenant:""},instanceAware:!1,isMcp:!1,verifySSO:!1},u={cacheLocation:Ts.SessionStorage,cacheRetentionDays:5},g={loggerCallback:()=>{},logLevel:e.LogLevel.Info,piiLoggingEnabled:!1},p={...{...tn,loggerOptions:g,networkClient:l?new yh:Ao,navigationClient:new fh,popupBridgeTimeout:o?.popupBridgeTimeout||6e4,iframeBridgeTimeout:o?.iframeBridgeTimeout||1e4,redirectNavigationTimeout:3e4,allowRedirectInIframe:!1,navigatePopups:!0,allowPlatformBroker:!1,nativeBrokerHandshakeTimeout:o?.nativeBrokerHandshakeTimeout||2e3,protocolMode:jr.AAD},...o,loggerOptions:o?.loggerOptions||g},m={application:{appName:"",appVersion:""},client:new en};if(o?.protocolMode!==jr.OIDC&&r?.OIDCOptions){new yr(p.loggerOptions).warning(JSON.stringify(ke(Be)),"")}if(o?.protocolMode&&o.protocolMode===jr.OIDC&&p?.allowPlatformBroker)throw ke(ze);return{auth:{...d,...r,OIDCOptions:{...d.OIDCOptions,...r?.OIDCOptions}},cache:{...u,...n},system:p,experimental:{iframeTimeoutTelemetry:!1,allowPlatformBrokerWithDOM:!1,...i},telemetry:{...m,...h}}}class vh{constructor(e,t,r,n){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=n,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=r,this.handshakeEvent=this.performanceClient.startMeasurement("nativeMessageHandlerHandshake"),this.platformAuthType=ws}async sendMessage(e){this.logger.trace("0on4p2",e.correlationId);const t={method:vs,request:e},r={channel:ds,extensionId:this.extensionId,responseId:ca(),body:t};this.logger.trace("1qadfi",e.correlationId),this.logger.tracePii("1xm533",e.correlationId),this.messageChannel.port1.postMessage(r);const n=await new Promise(((e,t)=>{this.resolvers.set(r.responseId,{resolve:e,reject:t})}));return this.validatePlatformBrokerResponse(n)}static async createProvider(e,t,r,n){e.trace("15zfnw",n);try{const o=new vh(e,t,r,us);return await o.sendHandshakeRequest(n),o}catch(o){const i=new vh(e,t,r);return await i.sendHandshakeRequest(n),i}}async sendHandshakeRequest(e){this.logger.trace("1dpg9o",e),window.addEventListener("message",this.windowListener,!1);const t={channel:ds,extensionId:this.extensionId,responseId:ca(),body:{method:Is}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=e=>{this.onChannelMessage(e)},window.postMessage(t,window.origin,[this.messageChannel.port2]),new Promise(((e,r)=>{this.handshakeResolvers.set(t.responseId,{resolve:e,reject:r}),this.timeoutId=window.setTimeout((()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),r(ns(Bi)),this.handshakeResolvers.delete(t.responseId)}),this.handshakeTimeoutMs)}))}onWindowMessage(e){const t=Ka();if(this.logger.trace("0jpn5u",t),e.source!==window)return;const r=e.data;if(r.channel&&r.channel===ds&&(!r.extensionId||r.extensionId===this.extensionId)&&r.body.method===Is){const e=this.handshakeResolvers.get(r.responseId);if(!e)return void this.logger.trace("07buhm",t);this.logger.verbose(r.extensionId?"0xrkug":"No extension installed",t),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),e.reject(ns(zi))}}onChannelMessage(e){const t=Ka();this.logger.trace("1py8yf",t);const r=e.data,n=this.resolvers.get(r.responseId),o=this.handshakeResolvers.get(r.responseId);try{const e=r.body.method;if(e===ks){if(!n)return;const e=r.body.response;if(this.logger.trace("19hpgm",t),this.logger.tracePii("179a24",t),"Success"!==e.status)n.reject(eh(e.code,e.description,e.ext));else{if(!e.result)throw Ce(Oo,"Event does not contain result.");e.result.code&&e.result.description?n.reject(eh(e.result.code,e.result.description,e.result.ext)):n.resolve(e.result)}this.resolvers.delete(r.responseId)}else if(e===Cs){if(!o)return void this.logger.trace("082qnt",t);clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,this.extensionVersion=r.body.version,this.logger.verbose("0yf5ib",t),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),o.resolve(),this.handshakeResolvers.delete(r.responseId)}}catch(e){this.logger.error("0xf978",t),this.logger.errorPii("04i99o",t),this.logger.errorPii("0xdvsy",t),n?n.reject(e):o&&o.reject(e)}}validatePlatformBrokerResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw Ce(Oo,"Response missing expected properties.")}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}getExtensionName(){return this.getExtensionId()===us?"chrome":this.getExtensionId()?.length?"unknown":void 0}}class kh{constructor(e,t,r){this.logger=e,this.performanceClient=t,this.correlationId=r,this.platformAuthType=ys}static async createProvider(e,t,r){if(e.trace("12mj4a",r),window.navigator?.platformAuthentication){const n=await window.navigator.platformAuthentication.getSupportedContracts(ps);if(n?.includes(fs))return e.trace("1h5q1r",r),new kh(e,t,r)}}getExtensionId(){return ps}getExtensionVersion(){return""}getExtensionName(){return ms}async sendMessage(e){this.logger.trace("02bcil",e.correlationId);try{const t=this.initializePlatformDOMRequest(e),r=await window.navigator.platformAuthentication.executeGetToken(t);return this.validatePlatformBrokerResponse(r,e.correlationId)}catch(t){throw this.logger.error("11im7g",e.correlationId),t}}initializePlatformDOMRequest(e){this.logger.trace("15d6yv",e.correlationId);const{accountId:t,clientId:r,authority:n,scope:o,redirectUri:i,correlationId:s,state:a,storeInCache:c,embeddedClientId:h,extraParameters:l,...d}=e,u=this.getDOMExtraParams(d,s);return{accountId:t,brokerId:this.getExtensionId(),authority:n,clientId:r,correlationId:s||this.correlationId,extraParameters:{...l,...u},isSecurityTokenService:!1,redirectUri:i,scope:o,state:a,storeInCache:c,embeddedClientId:h}}validatePlatformBrokerResponse(e,t){if(e.hasOwnProperty("isSuccess")){if(e.hasOwnProperty("accessToken")&&e.hasOwnProperty("idToken")&&e.hasOwnProperty("clientInfo")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scopes")&&e.hasOwnProperty("expiresIn"))return this.logger.trace("0h4vei",t),this.convertToPlatformBrokerResponse(e,t);if(e.hasOwnProperty("error")){const r=e;if(!1===r.isSuccess&&r.error&&r.error.code)throw this.logger.trace("0g92vm",t),eh(r.error.code,r.error.description,{error:parseInt(r.error.errorCode),protocol_error:r.error.protocolError,status:r.error.status,properties:r.error.properties})}}throw Ce(Oo,"Response missing expected properties.")}convertToPlatformBrokerResponse(e,t){this.logger.trace("14913t",t);return{access_token:e.accessToken,id_token:e.idToken,client_info:e.clientInfo,account:e.account,expires_in:e.expiresIn,scope:e.scopes,state:e.state||"",properties:e.properties||{},extendedLifetimeToken:e.extendedLifetimeToken??!1,shr:e.proofOfPossessionPayload}}getDOMExtraParams(e,t){try{const t={};for(const[r,n]of Object.entries(e))n&&(t[r]="object"==typeof n?JSON.stringify(n):String(n));return t}catch(e){return this.logger.error("0eu9o3",t),this.logger.errorPii("17rpl5",t),{}}}}async function Th(e,t,r,n,o){let i;e.trace("134j0v",r),e.trace("04c81g",r);try{o&&(i=await kh.createProvider(e,t,r)),i||(e.trace("0l3na8",r),i=await vh.createProvider(e,n||2e3,t,r))}catch(t){e.trace("0icbd7",t)}return i}function bh(e,t,r,n,o){if(t.trace("0uko3r",r),!e.system.allowPlatformBroker&&e.experimental.allowPlatformBrokerWithDOM)throw ke(Je);if(!e.system.allowPlatformBroker)return t.trace("04hozs",r),!1;if(!n)return t.trace("0kvv1r",r),!1;if(o)switch(o){case Q.BEARER:case Q.POP:return t.trace("18tev1",r),!0;default:return t.trace("1dd2nh",r),!1}return!0}class Ah extends Wc{constructor(e,t,r,n,o,i,s,a,c,h,l){super(e,t,r,n,o,i,s,c,h),this.nativeStorage=a,this.eventHandler=o,this.waitForPopupResponseHook=l}acquireToken(e,t){let r;try{if(r={popupName:this.generatePopupName(e.scopes||m,e.authority||this.config.auth.authority),popupWindowAttributes:e.popupWindowAttributes||{},popupWindowParent:e.popupWindowParent??window},this.performanceClient.addFields({isAsyncPopup:!this.config.system.navigatePopups},this.correlationId),this.config.system.navigatePopups){const n={...e,httpMethod:Jc(e,this.config.system.protocolMode)};return this.logger.verbose("1f9ok3",this.correlationId),r.popup=this.openSizedPopup("about:blank",r),this.acquireTokenPopupAsync(n,r,t)}return this.logger.verbose("162h4u",this.correlationId),this.acquireTokenPopupAsync(e,r,t)}catch(e){return Promise.reject(e)}}logout(e){try{this.logger.verbose("068rup",this.correlationId);const t=this.initializeLogoutRequest(e),r={popupName:this.generateLogoutPopupName(t),popupWindowAttributes:e?.popupWindowAttributes||{},popupWindowParent:e?.popupWindowParent??window},n=e&&e.authority,o=e&&e.mainWindowRedirectUri;return this.config.system.navigatePopups?(this.logger.verbose("1a28da",this.correlationId),r.popup=this.openSizedPopup("about:blank",r),this.logoutPopupAsync(t,r,n,o)):(this.logger.verbose("1phd8u",this.correlationId),this.logoutPopupAsync(t,r,n,o))}catch(e){return Promise.reject(e)}}async acquireTokenPopupAsync(t,r,n){this.logger.verbose("1g77pg",this.correlationId);const o=await Ln(Gc,Vo,this.logger,this.performanceClient,this.correlationId)(t,e.InteractionType.Popup,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);r.popup&&Da(o.authority);const i=bh(this.config,this.logger,this.correlationId,this.platformAuthProvider,t.authenticationScheme);return o.platformBroker=i,this.config.system.protocolMode===jr.EAR?this.executeEarFlow(o,r,n):this.executeCodeFlow(o,r,n)}async executeCodeFlow(t,r,n){const o=t.correlationId,i=Kc(Us.acquireTokenPopup,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),s=n||await Ln(gh,ri,this.logger,this.performanceClient,o)(this.performanceClient,this.logger,o),a={...t,codeChallenge:s.challenge};try{const n=await Ln(this.createAuthCodeClient.bind(this),Go,this.logger,this.performanceClient,o)({serverTelemetryManager:i,requestAuthority:a.authority,requestAzureCloudOptions:a.azureCloudOptions,requestExtraQueryParameters:a.extraQueryParameters,account:a.account});if(a.httpMethod===p)return await this.executeCodeFlowWithPost(a,r,n,s.verifier);{const i=await Ln(sh,Rn,this.logger,this.performanceClient,o)(this.config,n.authority,a,this.logger,this.performanceClient),c=this.initiateAuthRequest(i,r);this.eventHandler.emitEvent(_c.POPUP_OPENED,o,e.InteractionType.Popup,{popupWindow:c},null);const h=await this.waitForPopupResponse(t,c,r.popupWindowParent),l=Un(Qc,ei,this.logger,this.performanceClient,this.correlationId)(h,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);return await Ln(dh,Xo,this.logger,this.performanceClient,o)(t,l,s.verifier,Us.acquireTokenPopup,this.config,n,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}}catch(e){throw r.popup?.close(),e instanceof Ie&&(e.setCorrelationId(this.correlationId),i.cacheFailedRequest(e)),e}}async executeEarFlow(e,t,r){const{correlationId:n,authority:o,azureCloudOptions:i,extraQueryParameters:s,account:a}=e,c=await Ln(Bc,Ko,this.logger,this.performanceClient,n)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,o,i,s,a),h=await Ln(la,ii,this.logger,this.performanceClient,n)(),l=r||await Ln(gh,ri,this.logger,this.performanceClient,n)(this.performanceClient,this.logger,n),d={...e,earJwk:h,codeChallenge:l.challenge},u=t.popup||this.openPopup("about:blank",t);(await ah(u.document,this.config,c,d,this.logger,this.performanceClient)).submit();const g=await Ln(this.waitForPopupResponse.bind(this),Wo,this.logger,this.performanceClient,n)(d,u,t.popupWindowParent),p=Un(Qc,ei,this.logger,this.performanceClient,this.correlationId)(g,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);if(!p.ear_jwe&&p.code){const t=await Ln(this.createAuthCodeClient.bind(this),Go,this.logger,this.performanceClient,n)({serverTelemetryManager:Kc(Us.acquireTokenPopup,this.config.auth.clientId,n,this.browserStorage,this.logger),requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account,authority:c});return Ln(dh,Xo,this.logger,this.performanceClient,n)(d,p,l.verifier,Us.acquireTokenPopup,this.config,t,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}return Ln(uh,Yo,this.logger,this.performanceClient,n)(d,p,Us.acquireTokenPopup,this.config,c,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async executeCodeFlowWithPost(e,t,r,n){const o=e.correlationId,i=await Ln(Bc,Ko,this.logger,this.performanceClient,o)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger),s=t.popup||this.openPopup("about:blank",t);(await ch(s.document,this.config,i,e,this.logger,this.performanceClient)).submit();const a=await Ln(this.waitForPopupResponse.bind(this),Wo,this.logger,this.performanceClient,o)(e,s,t.popupWindowParent),c=Un(Qc,ei,this.logger,this.performanceClient,this.correlationId)(a,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);return Ln(dh,Xo,this.logger,this.performanceClient,o)(e,c,n,Us.acquireTokenPopup,this.config,r,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async logoutPopupAsync(t,r,n,o){this.logger.verbose("0b7yrk",this.correlationId),this.eventHandler.emitEvent(_c.LOGOUT_START,this.correlationId,e.InteractionType.Popup,t);const i=Kc(Us.logoutPopup,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{await zc(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,t.account);const s=await Ln(this.createAuthCodeClient.bind(this),Go,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:i,requestAuthority:n,account:t.account||void 0});try{s.authority.endSessionEndpoint}catch{if(t.account?.homeAccountId&&t.postLogoutRedirectUri&&s.authority.protocolMode===jr.OIDC){if(this.eventHandler.emitEvent(_c.LOGOUT_SUCCESS,t.correlationId,e.InteractionType.Popup,t),o){const e={apiId:Us.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},t=_r.getAbsoluteUrl(o,Oa());await this.navigationClient.navigateInternal(t,e)}return void r.popup?.close()}}t.state=ro(this.browserCrypto,t.state||"",{interactionType:e.InteractionType.Popup});const a=s.getLogoutUri(t);this.eventHandler.emitEvent(_c.LOGOUT_SUCCESS,t.correlationId,e.InteractionType.Popup,t);const c=this.openPopup(a,r);if(this.eventHandler.emitEvent(_c.POPUP_OPENED,t.correlationId,e.InteractionType.Popup,{popupWindow:c},null),await this.waitForPopupResponse(t,c,r.popupWindowParent).catch((()=>{})),o){const e={apiId:Us.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},t=_r.getAbsoluteUrl(o,Oa());this.logger.verbose("0qcur2",this.correlationId),this.logger.verbosePii("0oj7lk",this.correlationId),await this.navigationClient.navigateInternal(t,e)}else this.logger.verbose("03zgcf",this.correlationId)}catch(t){throw r.popup?.close(),t instanceof Ie&&(t.setCorrelationId(this.correlationId),i.cacheFailedRequest(t)),this.eventHandler.emitEvent(_c.LOGOUT_FAILURE,this.correlationId,e.InteractionType.Popup,null,t),this.eventHandler.emitEvent(_c.LOGOUT_END,this.correlationId,e.InteractionType.Popup),t}this.eventHandler.emitEvent(_c.LOGOUT_END,this.correlationId,e.InteractionType.Popup)}initiateAuthRequest(e,t){if(e)return this.logger.infoPii("1kcr9k",this.correlationId),this.openPopup(e,t);throw this.logger.error("1l7hyp",this.correlationId),ns(li)}openPopup(e,t){try{let r;if(t.popup?(r=t.popup,this.logger.verbosePii("0cgeo7",this.correlationId),r.location.assign(e)):void 0===t.popup&&(this.logger.verbosePii("0c2awd",this.correlationId),r=this.openSizedPopup(e,t)),!r)throw ns(Ii);try{r.document.title="Microsoft Authentication"}catch(e){"undefined"!=typeof DOMException&&e instanceof DOMException&&"SecurityError"===e.name||this.logger.verbose("1s1yfs",this.correlationId)}return r.focus&&r.focus(),this.currentWindow=r,r}catch(e){throw this.logger.error("0dxfb9",this.correlationId),ns(wi)}}openSizedPopup(e,{popupName:t,popupWindowAttributes:r,popupWindowParent:n}){const o=n.screenLeft?n.screenLeft:n.screenX,i=n.screenTop?n.screenTop:n.screenY,s=n.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a=n.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let c=r.popupSize?.width,h=r.popupSize?.height,l=r.popupPosition?.top,d=r.popupPosition?.left;return(!c||c<0||c>s)&&(this.logger.verbose("08vfmo",this.correlationId),c=as),(!h||h<0||h>a)&&(this.logger.verbose("09cxa0",this.correlationId),h=cs),(!l||l<0||l>a)&&(this.logger.verbose("1qh4wo",this.correlationId),l=Math.max(0,a/2-cs/2+i)),(!d||d<0||d>s)&&(this.logger.verbose("1sz3en",this.correlationId),d=Math.max(0,s/2-as/2+o)),n.open(e,t,`width=${c}, height=${h}, top=${l}, left=${d}, scrollbars=yes`)}generatePopupName(e,t){return`${hs}.${this.config.auth.clientId}.${e.join("-")}.${t}.${this.correlationId}`}generateLogoutPopupName(e){const t=e.account&&e.account.homeAccountId;return`${hs}.${this.config.auth.clientId}.${t}.${this.correlationId}`}async waitForPopupResponse(e,t,r){return this.waitForPopupResponseHook?this.waitForPopupResponseHook(e,t,r):Ra(this.config.system.popupBridgeTimeout,this.logger,e,this.performanceClient)}}class Sh extends Wc{constructor(e,t,r,n,o,i,s,a,c,h){super(e,t,r,n,o,i,s,c,h),this.nativeStorage=a}async acquireToken(t){const r=await Ln(Gc,Vo,this.logger,this.performanceClient,this.correlationId)(t,e.InteractionType.Redirect,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);r.platformBroker=bh(this.config,this.logger,this.correlationId,this.platformAuthProvider,t.authenticationScheme);const n=t=>{t.persisted&&(this.logger.verbose("0udvtt",this.correlationId),this.browserStorage.resetRequestCache(this.correlationId),this.eventHandler.emitEvent(_c.RESTORE_FROM_BFCACHE,this.correlationId,e.InteractionType.Redirect))},o=this.getRedirectStartPage(t.redirectStartPage);this.logger.verbosePii("0zao0a",this.correlationId),this.browserStorage.setTemporaryCache(Es,o,!0),window.addEventListener("pageshow",n);try{this.config.system.protocolMode===jr.EAR?await this.executeEarFlow(r):await this.executeCodeFlow(r)}catch(e){throw e instanceof Ie&&e.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",n),e}}async executeCodeFlow(e){const t=e.correlationId,r=Kc(Us.acquireTokenRedirect,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),n=await Ln(gh,ri,this.logger,this.performanceClient,t)(this.performanceClient,this.logger,t),o={...e,codeChallenge:n.challenge};this.browserStorage.cacheAuthorizeRequest(o,this.correlationId,n.verifier);try{if(o.httpMethod===p)return await this.executeCodeFlowWithPost(o);{const t=await Ln(this.createAuthCodeClient.bind(this),Go,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:o.authority,requestAzureCloudOptions:o.azureCloudOptions,requestExtraQueryParameters:o.extraQueryParameters,account:o.account}),n=await Ln(sh,Rn,this.logger,this.performanceClient,e.correlationId)(this.config,t.authority,o,this.logger,this.performanceClient);return await this.initiateAuthRequest(n)}}catch(e){throw e instanceof Ie&&(e.setCorrelationId(this.correlationId),r.cacheFailedRequest(e)),e}}async executeEarFlow(e){const{correlationId:t,authority:r,azureCloudOptions:n,extraQueryParameters:o,account:i}=e,s=await Ln(Bc,Ko,this.logger,this.performanceClient,t)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,r,n,o,i),a=await Ln(la,ii,this.logger,this.performanceClient,t)(),c=await Ln(gh,ri,this.logger,this.performanceClient,t)(this.performanceClient,this.logger,t),h={...e,earJwk:a,codeChallenge:c.challenge};this.browserStorage.cacheAuthorizeRequest(h,this.correlationId,c.verifier);return(await ah(document,this.config,s,h,this.logger,this.performanceClient)).submit(),new Promise(((e,t)=>{setTimeout((()=>{t(ns(Zi,"failed_to_redirect"))}),this.config.system.redirectNavigationTimeout)}))}async executeCodeFlowWithPost(e){const t=e.correlationId,r=await Ln(Bc,Ko,this.logger,this.performanceClient,t)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger);this.browserStorage.cacheAuthorizeRequest(e,this.correlationId);return(await ch(document,this.config,r,e,this.logger,this.performanceClient)).submit(),new Promise(((e,t)=>{setTimeout((()=>{t(ns(Zi,"failed_to_redirect"))}),this.config.system.redirectNavigationTimeout)}))}async handleRedirectPromise(e,t,r,n){const o=document.title;document.title="Microsoft Authentication";const i=Kc(Us.handleRedirectPromise,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),s=n?.navigateToLoginRequestUrl??!0;try{const[o,a]=this.getRedirectResponse(n?.hash||"");if(!o)return this.logger.info("1qmv0q",this.correlationId),this.browserStorage.resetRequestCache(this.correlationId),"back_forward"!==function(){if("undefined"==typeof window||void 0===window.performance||"function"!=typeof window.performance.getEntriesByType)return;const e=window.performance.getEntriesByType("navigation"),t=e.length?e[0]:void 0;return t?.type}()?r.event.errorCode="no_server_response":this.logger.verbose("1eqegq",this.correlationId),null;const c=this.browserStorage.getTemporaryCache(Es,this.correlationId,!0)||"",h=ur(c);if(h===ur(window.location.href)&&s){this.logger.verbose("11yred",this.correlationId),c.indexOf("#")>-1&&Aa(c);return await this.handleResponse(o,e,t,i)}if(!s)return this.logger.verbose("0v4sdv",this.correlationId),await this.handleResponse(o,e,t,i);if(!Sa()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(Ps,a,!0);const r={apiId:Us.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let n=!0;if(c&&"null"!==c)this.logger.verbose("08jpy1",this.correlationId),n=await this.navigationClient.navigateInternal(c,r);else{const e=Ma();this.browserStorage.setTemporaryCache(Es,e,!0),this.logger.warning("1dutq1",this.correlationId),n=await this.navigationClient.navigateInternal(e,r)}if(!n)return await this.handleResponse(o,e,t,i)}return null}catch(e){throw e instanceof Ie&&(e.setCorrelationId(this.correlationId),i.cacheFailedRequest(e)),e}finally{document.title=o}}getRedirectResponse(t){this.logger.verbose("1c5i8m",this.correlationId);let r=t;r||(r=this.config.auth.OIDCOptions.responseMode===q.QUERY?window.location.search:window.location.hash);let n=lr(r);if(n){try{Vc(n,this.browserCrypto,e.InteractionType.Redirect)}catch(e){return e instanceof Ie&&this.logger.error("0bkq6p",this.correlationId),[null,""]}return ba(window),this.logger.verbose("00uvho",this.correlationId),[n,r]}const o=this.browserStorage.getTemporaryCache(Ps,this.correlationId,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ps)),o&&(n=lr(o),n)?(this.logger.verbose("001671",this.correlationId),[n,o]):[null,""]}async handleResponse(e,t,r,n){if(!e.state)throw ns(ui);const{authority:o,azureCloudOptions:i,extraQueryParameters:s,account:a}=t;if(e.ear_jwe){const r=await Ln(Bc,Ko,this.logger,this.performanceClient,t.correlationId)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,o,i,s,a);return Ln(uh,Yo,this.logger,this.performanceClient,t.correlationId)(t,e,Us.acquireTokenRedirect,this.config,r,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}const c=await Ln(this.createAuthCodeClient.bind(this),Go,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:t.authority});return Ln(dh,Xo,this.logger,this.performanceClient,t.correlationId)(t,e,r,Us.acquireTokenRedirect,this.config,c,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async initiateAuthRequest(e){if(this.logger.verbose("0yaw2e",this.correlationId),e){this.logger.infoPii("1luf83",this.correlationId);const t={apiId:Us.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},r=this.config.auth.onRedirectNavigate;if("function"==typeof r){this.logger.verbose("1nehvl",this.correlationId);return!1!==r(e)?(this.logger.verbose("1a0jxh",this.correlationId),void await this.navigationClient.navigateExternal(e,t)):void this.logger.verbose("09k5h5",this.correlationId)}return this.logger.verbose("0klwf7",this.correlationId),void await this.navigationClient.navigateExternal(e,t)}throw this.logger.info("0rlh4e",this.correlationId),ns(li)}async logout(t){this.logger.verbose("1rkurh",this.correlationId);const r=this.initializeLogoutRequest(t),n=Kc(Us.logout,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{this.eventHandler.emitEvent(_c.LOGOUT_START,this.correlationId,e.InteractionType.Redirect,t),await zc(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,r.account);const o={apiId:Us.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},i=await Ln(this.createAuthCodeClient.bind(this),Go,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:t&&t.authority,requestExtraQueryParameters:t?.extraQueryParameters,account:t&&t.account||void 0});if(i.authority.protocolMode===jr.OIDC)try{i.authority.endSessionEndpoint}catch{if(r.account?.homeAccountId)return void this.eventHandler.emitEvent(_c.LOGOUT_SUCCESS,this.correlationId,e.InteractionType.Redirect,r)}r.state=ro(this.browserCrypto,r.state||"",{interactionType:e.InteractionType.Redirect});const s=i.getLogoutUri(r);r.account?.homeAccountId&&this.eventHandler.emitEvent(_c.LOGOUT_SUCCESS,this.correlationId,e.InteractionType.Redirect,r);const a=this.config.auth.onRedirectNavigate;if("function"!=typeof a)return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0,_s),void await this.navigationClient.navigateExternal(s,o);if(!1!==a(s))return this.logger.verbose("06v57e",this.correlationId),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0,_s),void await this.navigationClient.navigateExternal(s,o);this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("0xqes1",this.correlationId)}catch(t){throw t instanceof Ie&&(t.setCorrelationId(this.correlationId),n.cacheFailedRequest(t)),this.eventHandler.emitEvent(_c.LOGOUT_FAILURE,this.correlationId,e.InteractionType.Redirect,null,t),this.eventHandler.emitEvent(_c.LOGOUT_END,this.correlationId,e.InteractionType.Redirect),t}this.eventHandler.emitEvent(_c.LOGOUT_END,this.correlationId,e.InteractionType.Redirect)}getRedirectStartPage(e){const t=e||window.location.href;return _r.getAbsoluteUrl(t,Oa())}}async function _h(e,t,r,n){if(!e)throw r.info("1l7hyp",n),ns(li);return Un(Rh,"silentHandlerLoadFrameSync",r,t,n)(e)}async function Eh(e,t,r,n,o){const i=Oh();if(!i.contentDocument)throw"No document associated with iframe!";return(await ch(i.contentDocument,e,t,r,n,o)).submit(),i}async function Ph(e,t,r,n,o){const i=Oh();if(!i.contentDocument)throw"No document associated with iframe!";return(await ah(i.contentDocument,e,t,r,n,o)).submit(),i}function Rh(e){const t=Oh();return t.src=e,t}function Oh(){const e=document.createElement("iframe");return e.className="msalSilentIframe",e.title="Microsoft Authentication",e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),e.setAttribute("allow","local-network-access *"),document.body.appendChild(e),e}function Mh(e){document.body===e.parentNode&&document.body.removeChild(e)}class xh extends Wc{constructor(e,t,r,n,o,i,s,a,c,h,l,d){super(e,t,r,n,o,i,a,h,l),this.apiId=s,this.nativeStorage=c,this.waitForIframeResponseHook=d}async acquireToken(t){t.loginHint||t.sid||t.account&&t.account.username||this.logger.warning("1kl318",this.correlationId);const r={...t};r.prompt?r.prompt!==O.NONE&&r.prompt!==O.NO_SESSION&&(this.logger.warning("0bmctg",this.correlationId),r.prompt=O.NONE):r.prompt=O.NONE;const n=await Ln(Gc,Vo,this.logger,this.performanceClient,this.correlationId)(r,e.InteractionType.Silent,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);return n.platformBroker=bh(this.config,this.logger,this.correlationId,this.platformAuthProvider,n.authenticationScheme),Da(n.authority),this.config.system.protocolMode===jr.EAR?this.executeEarFlow(n):this.executeCodeFlow(n)}async executeCodeFlow(e){let t;const r=Kc(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{return t=await Ln(this.createAuthCodeClient.bind(this),Go,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:r,requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account}),await Ln(this.silentTokenHelper.bind(this),$o,this.logger,this.performanceClient,e.correlationId)(t,e)}catch(n){if(n instanceof Ie&&(n.setCorrelationId(this.correlationId),r.cacheFailedRequest(n)),!(t&&n instanceof Ie&&n.errorCode===ss))throw n;return this.performanceClient.addFields({retryError:n.errorCode},this.correlationId),await Ln(this.silentTokenHelper.bind(this),$o,this.logger,this.performanceClient,this.correlationId)(t,e)}}async executeEarFlow(e){const{correlationId:t,authority:r,azureCloudOptions:n,extraQueryParameters:o,account:i}=e,s=await Ln(Bc,Ko,this.logger,this.performanceClient,t)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,r,n,o,i),a=await Ln(la,ii,this.logger,this.performanceClient,t)(),c=await Ln(gh,ri,this.logger,this.performanceClient,t)(this.performanceClient,this.logger,t),h={...e,earJwk:a,codeChallenge:c.challenge},l=await Ln(Ph,Jo,this.logger,this.performanceClient,t)(this.config,s,h,this.logger,this.performanceClient),d=this.config.auth.OIDCOptions.responseMode;let u;try{u=await Ln(this.waitForIframeResponse.bind(this),Wo,this.logger,this.performanceClient,t)(l,e)}finally{Un(Mh,ti,this.logger,this.performanceClient,t)(l)}const g=Un(Qc,ei,this.logger,this.performanceClient,t)(u,d,this.logger,this.correlationId);if(!g.ear_jwe&&g.code){const r=await Ln(this.createAuthCodeClient.bind(this),Go,this.logger,this.performanceClient,t)({serverTelemetryManager:Kc(this.apiId,this.config.auth.clientId,t,this.browserStorage,this.logger),requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account,authority:s});return Ln(dh,Xo,this.logger,this.performanceClient,t)(h,g,c.verifier,this.apiId,this.config,r,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}return Ln(uh,Yo,this.logger,this.performanceClient,t)(h,g,this.apiId,this.config,s,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async verifySso(t){const r={...t};r.prompt||(r.prompt=O.NONE);const n=await Ln(Gc,Vo,this.logger,this.performanceClient,this.correlationId)(r,e.InteractionType.Silent,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId),o=await Ln(this.createAuthCodeClient.bind(this),Go,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:Kc(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),requestAuthority:n.authority,requestAzureCloudOptions:n.azureCloudOptions,requestExtraQueryParameters:n.extraQueryParameters,account:n.account}),{serverParams:i}=await this.silentAuthorizeHelper(o,n),s=n.correlationId;return Eo(i,n.state),i.code?(this.logger.verbose("0kkkcj",s),!0):(this.logger.warning("0y34ti",s),!1)}logout(){return Promise.reject(ns(Ai))}async silentTokenHelper(e,t){const{serverParams:r,pkceCodes:n}=await this.silentAuthorizeHelper(e,t);return Ln(dh,Xo,this.logger,this.performanceClient,t.correlationId)(t,r,n.verifier,this.apiId,this.config,e,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async silentAuthorizeHelper(e,t){const r=t.correlationId,n=await Ln(gh,ri,this.logger,this.performanceClient,r)(this.performanceClient,this.logger,r),o={...t,codeChallenge:n.challenge};let i;if(t.httpMethod===p)i=await Ln(Eh,Jo,this.logger,this.performanceClient,r)(this.config,e.authority,o,this.logger,this.performanceClient);else{const t=await Ln(sh,Rn,this.logger,this.performanceClient,r)(this.config,e.authority,o,this.logger,this.performanceClient);i=await Ln(_h,Jo,this.logger,this.performanceClient,r)(t,this.performanceClient,this.logger,r)}const s=this.config.auth.OIDCOptions.responseMode;let a;try{a=await Ln(this.waitForIframeResponse.bind(this),Wo,this.logger,this.performanceClient,r)(i,t)}finally{Un(Mh,ti,this.logger,this.performanceClient,r)(i)}return{serverParams:Un(Qc,ei,this.logger,this.performanceClient,r)(a,s,this.logger,this.correlationId),pkceCodes:n,silentRequest:o}}async waitForIframeResponse(e,t){return this.waitForIframeResponseHook?this.waitForIframeResponseHook(e,t):Ra(this.config.system.iframeBridgeTimeout,this.logger,t,this.performanceClient,this.config.experimental)}}class qh extends Wc{async acquireToken(e){const t=await Ln(jc,jo,this.logger,this.performanceClient,e.correlationId)(e,this.config,this.performanceClient,this.logger,this.correlationId),r={...e,...t};e.redirectUri&&(r.redirectUri=Dc(e.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId));const n=Kc(Us.acquireTokenSilent_silentFlow,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),o=await this.createRefreshTokenClient({serverTelemetryManager:n,authorityUrl:r.authority,azureCloudOptions:r.azureCloudOptions,account:r.account});return Ln(o.acquireTokenByRefreshToken.bind(o),"refreshTokenClientAcquireTokenByRefreshToken",this.logger,this.performanceClient,e.correlationId)(r,Us.acquireTokenSilent_silentFlow).catch((e=>{throw e.setCorrelationId(this.correlationId),n.cacheFailedRequest(e),e}))}logout(){return Promise.reject(ns(Ai))}async createRefreshTokenClient(e){const t=await Ln(this.getClientConfiguration.bind(this),Qo,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:e.serverTelemetryManager,requestAuthority:e.authorityUrl,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account});return new To(t,this.performanceClient)}}class Nh extends ko{constructor(e,t){super(e,t),this.includeRedirectUri=!1}}class Uh extends Wc{constructor(e,t,r,n,o,i,s,a,c,h){super(e,t,r,n,o,i,a,c,h),this.apiId=s}async acquireToken(t){if(!t.code)throw ns(Li);const r=await Ln(Gc,Vo,this.logger,this.performanceClient,this.correlationId)(t,e.InteractionType.Silent,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId),n=Kc(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{const e={...r,code:t.code},o=await Ln(this.getClientConfiguration.bind(this),Qo,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:r.authority,requestAzureCloudOptions:r.azureCloudOptions,requestExtraQueryParameters:r.extraQueryParameters,account:r.account}),i=new Nh(o,this.performanceClient);this.logger.verbose("1uic5e",this.correlationId);const s=new Yc(i,this.browserStorage,e,this.logger,this.performanceClient);return await Ln(s.handleCodeResponseFromServer.bind(s),On,this.logger,this.performanceClient,this.correlationId)({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},r,this.apiId,!1)}catch(e){throw e instanceof Ie&&(e.setCorrelationId(this.correlationId),n.cacheFailedRequest(e)),e}}logout(){return Promise.reject(ns(Ai))}}function Lh(e,t,r,n){try{Ha(e),Po(r.auth.isMcp,n)}catch(e){throw t.end({success:!1},e,n.account),e}}class Hh{constructor(e){this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new Wa(this.logger,this.performanceClient):gr,this.eventHandler=new Hc(this.logger),this.browserStorage=this.isBrowserEnvironment?new Oc(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler,Co(this.config.auth)):xc(this.config.auth.clientId,this.logger,this.performanceClient,this.eventHandler);const t={cacheLocation:Ts.MemoryStorage,cacheRetentionDays:5};this.nativeInternalStorage=new Oc(this.config.auth.clientId,t,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler),this.activeSilentTokenRequests=new Map,this.trackStateChange=this.trackStateChange.bind(this),this.trackStateChangeWithMeasurement=this.trackStateChangeWithMeasurement.bind(this)}static async createController(e,t){const r=new Hh(e);return await r.initialize(t),r}trackStateChange(e,t){e&&("visibilitychange"===t.type?(this.logger.info("16v6hv",e),this.performanceClient.incrementFields({visibilityChangeCount:1},e)):"online"===t.type?(this.logger.info("0zirfd",e),this.performanceClient.incrementFields({onlineStatusChangeCount:1},e)):"offline"===t.type&&(this.logger.info("1xk9ef",e),this.performanceClient.incrementFields({onlineStatusChangeCount:1},e)))}async initialize(e){const t=this.getRequestCorrelationId(e);if(this.logger.trace("1f7joy",t),this.initialized)return void this.logger.info("061m5x",t);if(!this.isBrowserEnvironment)return this.logger.info("19fvpi",t),this.initialized=!0,void this.eventHandler.emitEvent(_c.INITIALIZE_END,t);const r=this.config.system.allowPlatformBroker,n=this.performanceClient.startMeasurement(tc,t);if(this.eventHandler.emitEvent(_c.INITIALIZE_START,t),this.logMultipleInstances(n,t),n.add({isMcp:this.config.auth.isMcp}),await Ln(this.browserStorage.initialize.bind(this.browserStorage),"initializeCache",this.logger,this.performanceClient,t)(t),r)try{this.platformAuthProvider=await Th(this.logger,this.performanceClient,t,this.config.system.nativeBrokerHandshakeTimeout,this.config.experimental.allowPlatformBrokerWithDOM)}catch(e){this.logger.verbose(e,t)}this.config.cache.cacheLocation===Ts.LocalStorage&&this.eventHandler.subscribeCrossTab(),!this.config.system.navigatePopups&&await this.preGeneratePkceCodes(t),this.initialized=!0,this.eventHandler.emitEvent(_c.INITIALIZE_END,t),n.end({allowPlatformBroker:r,success:!0})}async handleRedirectPromise(e){if(this.logger.verbose("02l8bm",""),La(this.initialized),this.isBrowserEnvironment){const t=e?.hash||"";let r=this.redirectResponse.get(t);return void 0===r?(r=this.handleRedirectPromiseInternal(e),this.redirectResponse.set(t,r),this.logger.verbose("1wn9kp","")):this.logger.verbose("0w0gm3",""),r}return this.logger.verbose("12xi63",""),null}async handleRedirectPromiseInternal(t){if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("0le6uv",""),null;const r=this.browserStorage.getInteractionInProgress()?.type;if(r===_s)return this.logger.verbose("1ywcv2",""),this.browserStorage.setInteractionInProgress(!1),Promise.resolve(null);const n=this.getAllAccounts(),o=this.browserStorage.getCachedNativeRequest(),i=o&&!t?.hash;let s,a,c;try{if(i&&this.platformAuthProvider){const t=o?.correlationId||"";this.eventHandler.emitEvent(_c.HANDLE_REDIRECT_START,t,e.InteractionType.Redirect),s=this.performanceClient.startMeasurement(Xa,t),this.logger.trace("12v7is",t),s.add({isPlatformBrokerRequest:!0});const r=new rh(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Us.handleRedirectPromise,this.performanceClient,this.platformAuthProvider,o.accountId,this.nativeInternalStorage,o.correlationId);a=Ln(r.handleRedirectPromise.bind(r),"handleNativeRedirectPromise",this.logger,this.performanceClient,s.event.correlationId)()}else{const[r,n]=this.browserStorage.getCachedRequest("");c=r;const o=r.correlationId;this.eventHandler.emitEvent(_c.HANDLE_REDIRECT_START,o,e.InteractionType.Redirect),s=this.performanceClient.startMeasurement(Xa,o),this.logger.trace("0znzs5",o);const i=this.createRedirectClient(o);a=Ln(i.handleRedirectPromise.bind(i),"handleRedirectPromise",this.logger,this.performanceClient,s.event.correlationId)(r,n,s,t)}}catch(e){throw this.browserStorage.resetRequestCache(""),e}return a.then((t=>{if(t){this.browserStorage.resetRequestCache(t.correlationId),this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_SUCCESS,t.correlationId,e.InteractionType.Redirect,t),this.logger.verbose("0ui8f5",t.correlationId);n.length<this.getAllAccounts().length&&(this.eventHandler.emitEvent(_c.LOGIN_SUCCESS,t.correlationId,e.InteractionType.Redirect,t.account),this.logger.verbose("16im3l",t.correlationId)),s.end({success:!0},void 0,t.account),this.verifySsoCapability(c,e.InteractionType.Redirect)}else s.event.errorCode?s.end({success:!1},void 0):s.discard();return this.eventHandler.emitEvent(_c.HANDLE_REDIRECT_END,s.event.correlationId,e.InteractionType.Redirect),t})).catch((t=>{this.browserStorage.resetRequestCache(s.event.correlationId);const r=t;throw this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_FAILURE,s.event.correlationId,e.InteractionType.Redirect,null,r),this.eventHandler.emitEvent(_c.HANDLE_REDIRECT_END,s.event.correlationId,e.InteractionType.Redirect),s.end({success:!1},r),t}))}async acquireTokenRedirect(t){const r=this.getRequestCorrelationId(t);this.logger.verbose("0os66p",r);const n=this.performanceClient.startMeasurement(Za,r);n.add({scenarioId:t.scenarioId});const o=this.config.auth.onRedirectNavigate;this.config.auth.onRedirectNavigate=e=>{const r="function"==typeof o?o(e):void 0;return n.add({navigateCallbackResult:!1!==r}),n.event=n.end({success:!0},void 0,t.account)||n.event,r};try{let o;if(Fa(this.initialized,this.config),Po(this.config.auth.isMcp,t),this.browserStorage.setInteractionInProgress(!0,Ss),this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_START,r,e.InteractionType.Redirect,t),this.platformAuthProvider&&this.canUsePlatformBroker(t)){const e=new rh(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Us.acquireTokenRedirect,this.performanceClient,this.platformAuthProvider,this.getNativeAccountId(t),this.nativeInternalStorage,r);o=Ln(e.acquireTokenRedirect.bind(e),"nativeInteractionClientAcquireToken",this.logger,this.performanceClient,r)(t,n).catch((e=>{if(n.add({brokerErrorName:e.name,brokerErrorCode:e.errorCode}),e instanceof Zc&&Xc(e)){this.platformAuthProvider=void 0;return this.createRedirectClient(r).acquireToken(t)}if(e instanceof Zn){this.logger.verbose("1ipyz4",r);return this.createRedirectClient(r).acquireToken(t)}throw e}))}else{o=this.createRedirectClient(r).acquireToken(t)}return await o}catch(o){throw this.browserStorage.resetRequestCache(r),2===n.event.status?this.performanceClient.startMeasurement(Xa,r).end({success:!1},o,t.account):n.end({success:!1},o,t.account),this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_FAILURE,r,e.InteractionType.Redirect,null,o),o}}acquireTokenPopup(t){const r=this.getRequestCorrelationId(t),n=this.performanceClient.startMeasurement(Ya,r);n.add({scenarioId:t.scenarioId});try{this.logger.verbose("0ch87b",r),Lh(this.initialized,n,this.config,t),this.browserStorage.setInteractionInProgress(!0,Ss,t.overrideInteractionInProgress,r)}catch(e){return Promise.reject(e)}const o=this.getAllAccounts();let i;this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_START,r,e.InteractionType.Popup,t);const s=this.getPreGeneratedPkceCodes(r);if(this.canUsePlatformBroker(t))n.add({isPlatformBrokerRequest:!0}),i=this.acquireTokenNative({...t,correlationId:r},Us.acquireTokenPopup).then((e=>(n.end({success:!0,isNativeBroker:!0},void 0,e.account),e))).catch((e=>{if(n.add({brokerErrorName:e.name,brokerErrorCode:e.errorCode}),e instanceof Zc&&Xc(e)){this.platformAuthProvider=void 0;return this.createPopupClient(r).acquireToken(t,s)}if(e instanceof Zn){this.logger.verbose("0yy5fw",r);return this.createPopupClient(r).acquireToken(t,s)}throw e}));else{i=this.createPopupClient(r).acquireToken(t,s)}return i.then((i=>{const s=o.length<this.getAllAccounts().length;return this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_SUCCESS,r,e.InteractionType.Popup,i),s&&this.eventHandler.emitEvent(_c.LOGIN_SUCCESS,r,e.InteractionType.Popup,i.account),n.end({success:!0,accessTokenSize:i.accessToken.length,idTokenSize:i.idToken.length},void 0,i.account),this.verifySsoCapability(t,e.InteractionType.Popup),i})).catch((o=>(this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_FAILURE,r,e.InteractionType.Popup,null,o),n.end({success:!1},o,t.account),Promise.reject(o)))).finally((async()=>{this.browserStorage.setInteractionInProgress(!1),this.config.system.navigatePopups||await this.preGeneratePkceCodes(r)}))}trackStateChangeWithMeasurement(e){const t=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;t&&("visibilitychange"===e.type?(this.logger.info("0yzimq",t.event.correlationId),t.increment({visibilityChangeCount:1})):"online"===e.type?(this.logger.info("1caf53",t.event.correlationId),t.increment({onlineStatusChangeCount:1})):"offline"===e.type&&(this.logger.info("0fdyk7",t.event.correlationId),t.increment({onlineStatusChangeCount:1})))}addStateChangeListeners(e){document.addEventListener("visibilitychange",e),window.addEventListener("online",e),window.addEventListener("offline",e)}removeStateChangeListeners(e){document.removeEventListener("visibilitychange",e),window.removeEventListener("online",e),window.removeEventListener("offline",e)}getCachedSsoCapable(){try{const e=window.localStorage.getItem(pc);if(e){const t=JSON.parse(e);if(t&&"boolean"==typeof t.ssoCapable&&t.expiresOn&&Date.now()<t.expiresOn)return t.ssoCapable}}catch{}}verifySsoCapability(e,t){if(!this.config.auth.verifySSO)return;const r=pc;if(void 0!==this.getCachedSsoCapable())return void this.logger.verbose("13poou","");const n=ca(),o=this.performanceClient.startMeasurement(oc,n);o.add({"ext.interactionType":t}),this.logger.verbose("0pbr0i",n),setTimeout((()=>{const t={...e,correlationId:n};this.createSilentIframeClient(n).verifySso(t).then((e=>{this.logger.verbose("1gd1iv",n);try{const t=JSON.stringify({ssoCapable:e,expiresOn:Date.now()+864e5});window.localStorage.setItem(r,t)}catch{this.logger.warning("18lmoj",n)}o.end({fromCache:!1,success:e},void 0)})).catch((e=>{this.logger.warning("05g83w",n);try{window.localStorage.removeItem(r)}catch{this.logger.warning("0nlf9q",n)}o.end({fromCache:!1,success:!1},e)}))}),0)}async ssoSilent(t){const r=this.getRequestCorrelationId(t),n={...t,correlationId:r};this.ssoSilentMeasurement=this.performanceClient.startMeasurement(ec,r),this.ssoSilentMeasurement?.add({scenarioId:t.scenarioId,ssoCapable:this.getCachedSsoCapable()}),Lh(this.initialized,this.ssoSilentMeasurement,this.config,n),this.ssoSilentMeasurement?.increment({visibilityChangeCount:0,onlineStatusChangeCount:0}),this.addStateChangeListeners(this.trackStateChangeWithMeasurement);const o=this.getAllAccounts();let i;if(this.logger.verbose("0w1b45",r),this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_START,r,e.InteractionType.Silent,n),this.canUsePlatformBroker(n))this.ssoSilentMeasurement?.add({isPlatformBrokerRequest:!0}),i=this.acquireTokenNative(n,Us.ssoSilent).catch((e=>{if(this.ssoSilentMeasurement?.add({brokerErrorName:e.name,brokerErrorCode:e.errorCode}),e instanceof Zc&&Xc(e)){this.platformAuthProvider=void 0;return this.createSilentIframeClient(n.correlationId).acquireToken(n)}throw e}));else{i=this.createSilentIframeClient(n.correlationId).acquireToken(n)}return i.then((t=>{const n=o.length<this.getAllAccounts().length;return this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_SUCCESS,r,e.InteractionType.Silent,t),n&&this.eventHandler.emitEvent(_c.LOGIN_SUCCESS,r,e.InteractionType.Silent,t.account),this.ssoSilentMeasurement?.end({success:!0,isNativeBroker:t.fromPlatformBroker,accessTokenSize:t.accessToken.length,idTokenSize:t.idToken.length},void 0,t.account),t})).catch((n=>{throw this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_FAILURE,r,e.InteractionType.Silent,null,n),this.ssoSilentMeasurement?.end({success:!1},n,t.account),n})).finally((()=>{this.removeStateChangeListeners(this.trackStateChangeWithMeasurement)}))}async acquireTokenByCode(t){const r=this.getRequestCorrelationId(t);this.logger.trace("0ch6ga",r);const n=this.performanceClient.startMeasurement(Va,r);Lh(this.initialized,n,this.config,t),this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_START,r,e.InteractionType.Silent,t),n.add({scenarioId:t.scenarioId});try{if(t.code&&t.nativeAccountId)throw ns(Fi);if(t.code){const o=t.code;let i=this.hybridAuthCodeResponses.get(o);return i?(this.logger.verbose("0qgp28",r),n.discard()):(this.logger.verbose("06eh73",r),i=this.acquireTokenByCodeAsync({...t,correlationId:r}).then((t=>(this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_SUCCESS,r,e.InteractionType.Silent,t),this.hybridAuthCodeResponses.delete(o),n.end({success:!0,accessTokenSize:t.accessToken.length,idTokenSize:t.idToken.length},void 0,t.account),t))).catch((t=>{throw this.hybridAuthCodeResponses.delete(o),this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_FAILURE,r,e.InteractionType.Silent,null,t),n.end({success:!1},t),t})),this.hybridAuthCodeResponses.set(o,i)),await i}if(t.nativeAccountId){if(this.canUsePlatformBroker(t,t.nativeAccountId)){n.add({isPlatformBrokerRequest:!0});const e=await this.acquireTokenNative({...t,correlationId:r},Us.acquireTokenByCode,t.nativeAccountId).catch((e=>{throw n.add({brokerErrorName:e.name,brokerErrorCode:e.errorCode}),e instanceof Zc&&Xc(e)&&(this.platformAuthProvider=void 0),e}));return n.end({success:!0},void 0,e.account),e}throw ns(Ki)}throw ns(Hi)}catch(t){throw this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_FAILURE,r,e.InteractionType.Silent,null,t),n.end({success:!1},t),t}}async acquireTokenByCodeAsync(e){const t=this.getRequestCorrelationId(e);this.logger.trace("10d9hy",t),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement("acquireTokenByCodeAsync",t),this.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0,onlineStatusChangeCount:0}),this.addStateChangeListeners(this.trackStateChangeWithMeasurement);const r=this.createSilentAuthCodeClient(t);return await r.acquireToken(e).then((e=>(this.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:e.fromCache}),e))).catch((e=>{throw this.acquireTokenByCodeAsyncMeasurement?.end({success:!1},e),e})).finally((()=>{this.removeStateChangeListeners(this.trackStateChangeWithMeasurement)}))}async acquireTokenFromCache(e,t){switch(t){case zs.Default:case zs.AccessToken:case zs.AccessTokenAndRefreshToken:const t=this.createSilentCacheClient(e.correlationId);return Ln(t.acquireToken.bind(t),"silentCacheClientAcquireToken",this.logger,this.performanceClient,e.correlationId)(e);default:throw Ae(It)}}async acquireTokenByRefreshToken(e,t){switch(t){case zs.Default:case zs.AccessTokenAndRefreshToken:case zs.RefreshToken:case zs.RefreshTokenAndNetwork:const t=this.createSilentRefreshClient(e.correlationId);return Ln(t.acquireToken.bind(t),"silentRefreshClientAcquireToken",this.logger,this.performanceClient,e.correlationId)(e);default:throw Ae(It)}}async acquireTokenBySilentIframe(e){const t=this.createSilentIframeClient(e.correlationId);return Ln(t.acquireToken.bind(t),"silentIframeClientAcquireToken",this.logger,this.performanceClient,e.correlationId)(e)}async logoutRedirect(e){const t=this.getRequestCorrelationId(e);Fa(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0,_s);return this.createRedirectClient(t).logout(e)}logoutPopup(e){try{const t=this.getRequestCorrelationId(e);Ha(this.initialized),this.browserStorage.setInteractionInProgress(!0,_s);return this.createPopupClient(t).logout(e).finally((()=>{this.browserStorage.setInteractionInProgress(!1)}))}catch(e){return Promise.reject(e)}}async clearCache(e){if(!this.isBrowserEnvironment)return;const t=this.getRequestCorrelationId(e);return this.createSilentCacheClient(t).logout(e)}getAllAccounts(e){return qc(this.logger,this.browserStorage,this.isBrowserEnvironment,this.getRequestCorrelationId(),e)}getAccount(e){return Nc(e,this.logger,this.browserStorage,this.getRequestCorrelationId())}setActiveAccount(e){Uc(e,this.browserStorage,this.getRequestCorrelationId())}getActiveAccount(){return Lc(this.browserStorage,this.getRequestCorrelationId())}async hydrateCache(e,t){this.logger.verbose("16jycr",e.correlationId);const r=Jr(e.account,e.cloudGraphHostName,e.msGraphHost);if(await this.browserStorage.setAccount(r,e.correlationId,Ar(e.idTokenClaims),Us.hydrateCache),!e.fromPlatformBroker)return this.browserStorage.hydrateCache(e,t);{this.logger.verbose("1i5atf",e.correlationId);const r=wn(e.account.homeAccountId,e.account.environment,e.idToken,this.config.auth.clientId,e.tenantId),n=In(e.account.homeAccountId,e.account.environment,e.accessToken,this.config.auth.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?gn(e.expiresOn):0,e.extExpiresOn?gn(e.extExpiresOn):0,os,void 0,e.tokenType,void 0,t.sshKid);t.resource&&(n.resource=t.resource);const o=Ar(e.idTokenClaims);await this.browserStorage.setIdTokenCredential(r,e.correlationId,o),await this.nativeInternalStorage.setAccessTokenCredential(n,e.correlationId,o)}}async acquireTokenNative(e,t,r,n){const o=this.getRequestCorrelationId(e);if(this.logger.trace("0b9y3p",o),!this.platformAuthProvider)throw ns(ji);const i=new rh(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.platformAuthProvider,r||this.getNativeAccountId(e),this.nativeInternalStorage,o);return Ln(i.acquireToken.bind(i),Bo,this.logger,this.performanceClient,o)(e,n)}canUsePlatformBroker(e,t){const r=this.getRequestCorrelationId(e);if(this.logger.trace("1n9lbl",r),!this.platformAuthProvider)return this.logger.trace("0vnu11",r),!1;if(!bh(this.config,this.logger,r,this.platformAuthProvider,e.authenticationScheme))return this.logger.trace("0yoy1g",r),!1;if(e.prompt)switch(e.prompt){case O.NONE:case O.CONSENT:case O.LOGIN:this.logger.trace("0vdv8e",r);break;default:return this.logger.trace("0pdzw6",r),!1}return!(!t&&!this.getNativeAccountId(e))||(this.logger.trace("16lbtk",r),!1)}getNativeAccountId(e){const t=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||(e.loginHint||e.sid?null:this.getActiveAccount());return t&&t.nativeAccountId||""}createPopupClient(e){return new Ah(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,e,this.platformAuthProvider,this.operatingContext.getResponseHandlers()?.waitForPopupResponse)}createRedirectClient(e){return new Sh(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,e,this.platformAuthProvider)}createSilentIframeClient(e){return new xh(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Us.ssoSilent,this.performanceClient,this.nativeInternalStorage,e,this.platformAuthProvider,this.operatingContext.getResponseHandlers()?.waitForIframeResponse)}createSilentCacheClient(e){return new th(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,e,this.platformAuthProvider)}createSilentRefreshClient(e){return new qh(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,e,this.platformAuthProvider)}createSilentAuthCodeClient(e){return new Uh(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Us.acquireTokenByCode,this.performanceClient,e,this.platformAuthProvider)}addEventCallback(e,t){return this.eventHandler.addEventCallback(e,t)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return Ua(),this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,t){this.browserStorage.setWrapperMetadata(e,t)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(e){return e?.correlationId?e.correlationId:this.isBrowserEnvironment?ca():""}async loginRedirect(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("0lz9hf",t),this.acquireTokenRedirect({correlationId:t,...e||Ds})}loginPopup(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("0qw7v5",t),this.acquireTokenPopup({correlationId:t,...e||Ds})}async acquireTokenSilent(e){const t=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(Qa,t);r.add({cacheLookupPolicy:e.cacheLookupPolicy,scenarioId:e.scenarioId,ssoCapable:this.getCachedSsoCapable()}),Lh(this.initialized,r,this.config,e),this.logger.verbose("0x1c4s",t);const n=e.account||this.getActiveAccount();if(!n)throw ns(Si);return this.acquireTokenSilentDeduped(e,n,t).then((n=>(r.end({success:!0,fromCache:n.fromCache,accessTokenSize:n.accessToken.length,idTokenSize:n.idToken.length},void 0,n.account),{...n,state:e.state,correlationId:t}))).catch((e=>{throw e instanceof Ie&&e.setCorrelationId(t),r.end({success:!1},e,n),e}))}async acquireTokenSilentDeduped(e,t,r){const n=ho(this.config.auth.clientId,{...e,authority:e.authority||this.config.auth.authority},t.homeAccountId),o=JSON.stringify(n),i=this.activeSilentTokenRequests.get(o);if(void 0===i){this.logger.verbose("0fcjbk",r),this.performanceClient.addFields({deduped:!1},r);const n=Ln(this.acquireTokenSilentAsync.bind(this),"acquireTokenSilentAsync",this.logger,this.performanceClient,r)({...e,correlationId:r},t);return this.activeSilentTokenRequests.set(o,n),n.finally((()=>{this.activeSilentTokenRequests.delete(o)}))}return this.logger.verbose("1yq7nb",r),this.performanceClient.addFields({deduped:!0},r),i}async acquireTokenSilentAsync(t,r){const n=e=>this.trackStateChange(t.correlationId,e);this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_START,t.correlationId,e.InteractionType.Silent,t),t.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0,onlineStatusChangeCount:0},t.correlationId),this.addStateChangeListeners(n);const o=await Ln($c,"initializeSilentRequest",this.logger,this.performanceClient,t.correlationId)(t,r,this.config,this.performanceClient,this.logger),i=t.cacheLookupPolicy||zs.Default;return this.acquireTokenSilentNoIframe(o,i).catch((async e=>{const r=function(e,t){const r=!(e instanceof Zn&&e.subError!==Wn),n=e.errorCode===ss||e.errorCode===It,o=r&&n||e.errorCode===Dn||e.errorCode===Bn,i=js.includes(t);return o&&i}(e,i);if(r){const r=`${e.errorCode}${e.subError?`|${e.subError}`:""}`;if(this.performanceClient.addFields({silentRefreshReason:r},t.correlationId),this.activeIframeRequest){if(i!==zs.Skip){const[t,r]=this.activeIframeRequest;this.logger.verbose("1w8fso",o.correlationId);const n=this.performanceClient.startMeasurement("awaitConcurrentIframe",o.correlationId);n.add({awaitIframeCorrelationId:r});const s=await t;if(n.end({success:s}),s)return this.logger.verbose("0ywzzi",o.correlationId),this.acquireTokenSilentNoIframe(o,i);throw this.logger.info("17y14q",o.correlationId),e}return this.logger.warning("1bd4p8",o.correlationId),Ln(this.acquireTokenBySilentIframe.bind(this),zo,this.logger,this.performanceClient,o.correlationId)(o)}{let e;return this.activeIframeRequest=[new Promise((t=>{e=t})),o.correlationId],this.logger.verbose("0rh08z",o.correlationId),Ln(this.acquireTokenBySilentIframe.bind(this),zo,this.logger,this.performanceClient,o.correlationId)(o).then((t=>(e(!0),t))).catch((t=>{throw e(!1),t})).finally((()=>{this.activeIframeRequest=void 0}))}}throw e})).then((r=>(this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_SUCCESS,t.correlationId,e.InteractionType.Silent,r),t.correlationId&&this.performanceClient.addFields({fromCache:r.fromCache,isNativeBroker:r.fromPlatformBroker},t.correlationId),r))).catch((r=>{throw this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_FAILURE,t.correlationId,e.InteractionType.Silent,null,r),r})).finally((()=>{this.removeStateChangeListeners(n)}))}async acquireTokenSilentNoIframe(t,r){return bh(this.config,this.logger,t.correlationId,this.platformAuthProvider,t.authenticationScheme)&&t.account.nativeAccountId?(this.logger.verbose("0sczo4",t.correlationId),this.performanceClient.addFields({isPlatformBrokerRequest:!0},t.correlationId),this.acquireTokenNative(t,Us.acquireTokenSilent_silentFlow,t.account.nativeAccountId,r).catch((async e=>{if(this.performanceClient.addFields({brokerErrorName:e.name,brokerErrorCode:e.errorCode},t.correlationId),e instanceof Zc&&Xc(e))throw this.logger.verbose("07rkmb",t.correlationId),this.platformAuthProvider=void 0,Ae(It);throw e}))):(this.logger.verbose("0ox81t",t.correlationId),r===zs.AccessToken&&this.logger.verbose("0fvwxe",t.correlationId),Ln(this.acquireTokenFromCache.bind(this),"acquireTokenFromCache",this.logger,this.performanceClient,t.correlationId)(t,r).catch((n=>{if(r===zs.AccessToken)throw n;return this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_NETWORK_START,t.correlationId,e.InteractionType.Silent,t),Ln(this.acquireTokenByRefreshToken.bind(this),"acquireTokenByRefreshToken",this.logger,this.performanceClient,t.correlationId)(t,r)})))}async preGeneratePkceCodes(e){return this.logger.verbose("1x6uj6",e),this.pkceCode=await Ln(gh,ri,this.logger,this.performanceClient,e)(this.performanceClient,this.logger,e),Promise.resolve()}getPreGeneratedPkceCodes(e){const t=this.pkceCode?{...this.pkceCode}:void 0;return this.pkceCode=void 0,t?this.logger.verbose("12js1o",e):this.logger.verbose("1oe9ci",e),this.performanceClient.addFields({usePreGeneratedPkce:!!t},e),t}logMultipleInstances(e,t){const r=this.config.auth.clientId;if(!window)return;window.msal=window.msal||{},window.msal.clientIds=window.msal.clientIds||[];window.msal.clientIds.length>0&&this.logger.verbose("1qtz3l",t),window.msal.clientIds.push(r),function(e,t,r,n){const o=window.msal?.clientIds||[],i=o.length,s=o.filter((t=>t===e)).length;s>1&&r.warning("1e88vg",n),t.add({msalInstanceCount:i,sameClientIdInstanceCount:s})}(r,e,this.logger,t)}}class Fh{static loggerCallback(t,r){switch(t){case e.LogLevel.Error:return void console.error(r);case e.LogLevel.Info:return void console.info(r);case e.LogLevel.Verbose:return void console.debug(r);case e.LogLevel.Warning:return void console.warn(r);default:return void console.log(r)}}constructor(t,r){let n;this.browserEnvironment="undefined"!=typeof window,this.config=Ch(t,this.browserEnvironment),this.responseHandlers=r;try{n=window[Ts.SessionStorage]}catch(e){}const o=n?.getItem(cc),i=n?.getItem(hc)?.toLowerCase(),s="true"===i||"false"!==i&&void 0,a={...this.config.system.loggerOptions},c=o&&Object.keys(e.LogLevel).includes(o)?e.LogLevel[o]:void 0;c&&(a.loggerCallback=Fh.loggerCallback,a.logLevel=c),void 0!==s&&(a.piiLoggingEnabled=s),this.logger=new yr(a,Ec,Pc),this.available=!1}getConfig(){return this.config}getResponseHandlers(){return this.responseHandlers}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}class Dh extends Fh{getModuleName(){return Dh.MODULE_NAME}getId(){return Dh.ID}async initialize(e){return this.available="undefined"!=typeof window,this.available}}Dh.MODULE_NAME="",Dh.ID="StandardOperatingContext";const Kh="USER_INTERACTION_REQUIRED",Bh="USER_CANCEL",zh="NO_NETWORK",jh="TRANSIENT_ERROR",$h="PERSISTENT_ERROR",Jh="DISABLED",Wh="ACCOUNT_UNAVAILABLE",Gh="NESTED_APP_AUTH_UNAVAILABLE";class Qh{constructor(e,t,r,n){this.clientId=e,this.clientCapabilities=t,this.crypto=r,this.logger=n}toNaaTokenRequest(e){let t;t=void 0===e.extraQueryParameters?new Map:new Map(Object.entries(e.extraQueryParameters));const r=e.correlationId||this.crypto.createNewGuid(),n=tr(e.claims,this.clientCapabilities),o=e.scopes||m;return{platformBrokerId:e.account?.homeAccountId,clientId:this.clientId,authority:e.authority,resource:e.resource,scope:o.join(" "),correlationId:r,claims:Te.isEmptyObj(n)?void 0:n,state:e.state,authenticationScheme:e.authenticationScheme||Q.BEARER,extraParameters:t}}fromNaaTokenResponse(e,t,r){if(!t.token.id_token||!t.token.access_token)throw Ae(Ze);const n=pn(r+(t.token.expires_in||0)),o=br(t.token.id_token,this.crypto.base64Decode),i=this.fromNaaAccountInfo(t.account,t.token.id_token,o),s=t.token.scope||e.scope;return{authority:t.token.authority||i.environment,uniqueId:i.localAccountId,tenantId:i.tenantId,scopes:s.split(" "),account:i,idToken:t.token.id_token,idTokenClaims:o,accessToken:t.token.access_token,fromCache:!1,expiresOn:n,tokenType:e.authenticationScheme||Q.BEARER,correlationId:e.correlationId,extExpiresOn:n,state:e.state}}fromNaaAccountInfo(e,t,r){const n=r||e.idTokenClaims,o=e.localAccountId||n?.oid||n?.sub||"",i=e.tenantId||zr(n)||"",s=e.homeAccountId||`${o}.${i}`,a=e.environment;if(!a)throw Ae(ft);const c=n?.preferred_username||n?.upn,h=n?.emails?.[0]||null,l=e.username||c||h||"",d=e.name||n?.name||"",u=e.loginHint||n?.login_hint,g=new Map,p=kr(s,o,i,n);g.set(i,p);return{homeAccountId:s,environment:a,tenantId:i,username:l,localAccountId:o,name:d,loginHint:u,idToken:t,idTokenClaims:n,tenantProfiles:g}}fromBridgeError(e){if(!function(e){return void 0!==e.status}(e))return new Ie("unknown_error","An unknown error occurred");switch(e.status){case Bh:return new be(St);case zh:return new be(At);case Wh:return new be(yt);case Jh:return new be(Et);case Gh:return new be(e.code||Et,e.description);case jh:case $h:return new to(e.code,e.description);case Kh:return new Zn(e.code,e.description);default:return new Ie(e.code,e.description)}}toAuthenticationResultFromCache(e,t,r,n,o){if(!t||!r)throw Ae(Ze);const i=br(t.secret,this.crypto.base64Decode),s=r.target||n.scopes.join(" ");return{authority:r.environment||e.environment,uniqueId:e.localAccountId,tenantId:e.tenantId,scopes:s.split(" "),account:e,idToken:t.secret,idTokenClaims:i||{},accessToken:r.secret,fromCache:!0,expiresOn:pn(r.expiresOn),extExpiresOn:pn(r.extendedExpiresOn),tokenType:n.authenticationScheme||Q.BEARER,correlationId:o,state:n.state}}}class Vh extends Ie{constructor(e,t){super(e,t),Object.setPrototypeOf(this,Vh.prototype),this.name="NestedAppAuthError"}static createUnsupportedError(){return new Vh("unsupported_method")}}class Yh{constructor(e){this.operatingContext=e;const t=this.operatingContext.getBridgeProxy();if(void 0===t)throw new Error("unexpected: bridgeProxy is undefined");this.bridgeProxy=t,this.config=e.getConfig(),this.logger=this.operatingContext.getLogger(),this.performanceClient=this.config.telemetry.client,this.browserCrypto=e.isBrowserEnvironment()?new Wa(this.logger,this.performanceClient,!0):gr,this.eventHandler=new Hc(this.logger),this.browserStorage=this.operatingContext.isBrowserEnvironment()?new Oc(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler,Co(this.config.auth)):xc(this.config.auth.clientId,this.logger,this.performanceClient,this.eventHandler),this.nestedAppAuthAdapter=new Qh(this.config.auth.clientId,this.config.auth.clientCapabilities,this.browserCrypto,this.logger);const r=this.bridgeProxy.getAccountContext();this.currentAccountContext=r||null}static async createController(e){const t=new Yh(e);return Promise.resolve(t)}async initialize(e,t){const r=e?.correlationId||ca();return await this.browserStorage.initialize(r),Promise.resolve()}ensureValidRequest(e){return e?.correlationId?e:{...e,correlationId:this.browserCrypto.createNewGuid()}}async acquireTokenInteractive(t){const r=this.ensureValidRequest(t),n=r.correlationId||ca();this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_START,n,e.InteractionType.Popup,r);const o=this.performanceClient.startMeasurement(Ya,n);o.add({nestedAppAuthRequest:!0});try{Po(this.config.auth.isMcp,r);const i=this.nestedAppAuthAdapter.toNaaTokenRequest(r),s=un(),a=await this.bridgeProxy.getTokenInteractive(i),c={...this.nestedAppAuthAdapter.fromNaaTokenResponse(i,a,s)};try{await this.hydrateCache(c,t)}catch(e){this.logger.warningPii("1mwr91",n)}return this.currentAccountContext={homeAccountId:c.account.homeAccountId,environment:c.account.environment,tenantId:c.account.tenantId},this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_SUCCESS,n,e.InteractionType.Popup,c),o.add({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),o.end({success:!0,requestId:c.requestId},void 0,c.account),c}catch(r){const i=r instanceof Ie?r:this.nestedAppAuthAdapter.fromBridgeError(r);throw this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_FAILURE,n,e.InteractionType.Popup,null,r),o.end({success:!1},r,t.account),i}}async acquireTokenSilentInternal(t){const r=this.ensureValidRequest(t),n=r.correlationId||ca();this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_START,n,e.InteractionType.Silent,r);const o=await this.acquireTokenFromCache(r);if(o)return this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_SUCCESS,n,e.InteractionType.Silent,o),o;const i=this.performanceClient.startMeasurement(ec,n);i.increment({visibilityChangeCount:0}),i.add({nestedAppAuthRequest:!0});try{Po(this.config.auth.isMcp,r);const o=this.nestedAppAuthAdapter.toNaaTokenRequest(r);o.forceRefresh=r.forceRefresh;const s=un(),a=await this.bridgeProxy.getTokenSilent(o),c=this.nestedAppAuthAdapter.fromNaaTokenResponse(o,a,s);try{await this.hydrateCache(c,t)}catch(e){this.logger.warningPii("1mwr91",n)}return this.currentAccountContext={homeAccountId:c.account.homeAccountId,environment:c.account.environment,tenantId:c.account.tenantId},this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_SUCCESS,n,e.InteractionType.Silent,c),i?.add({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),i?.end({success:!0,requestId:c.requestId},void 0,c.account),c}catch(r){const o=r instanceof Ie?r:this.nestedAppAuthAdapter.fromBridgeError(r);throw this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_FAILURE,n,e.InteractionType.Silent,null,r),i?.end({success:!1},r,t.account),o}}async acquireTokenFromCache(t){const r=t.correlationId||ca(),n=this.performanceClient.startMeasurement(Qa,r);if(n?.add({nestedAppAuthRequest:!0}),t.claims)return this.logger.verbose("11t57w",r),null;if(t.forceRefresh)return this.logger.verbose("1ovnmo",r),null;let o=null;switch(t.cacheLookupPolicy||(t.cacheLookupPolicy=zs.Default),t.cacheLookupPolicy){case zs.Default:case zs.AccessToken:case zs.AccessTokenAndRefreshToken:o=await this.acquireTokenFromCacheInternal(t);break;default:return null}return o?(this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_SUCCESS,r,e.InteractionType.Silent,o),n.add({accessTokenSize:o.accessToken.length,idTokenSize:o.idToken.length}),n.end({success:!0},void 0,o.account),o):(this.logger.warning("1yb4fi",r),this.eventHandler.emitEvent(_c.ACQUIRE_TOKEN_FAILURE,r,e.InteractionType.Silent,null),n.end({success:!1},void 0,t.account),null)}async acquireTokenFromCacheInternal(e){const t=this.bridgeProxy.getAccountContext()||this.currentAccountContext,r=e.correlationId||ca();let n=null;if(t&&(n=Nc(t,this.logger,this.browserStorage,r)),!n)return this.logger.verbose("10qnr0",r),Promise.resolve(null);this.logger.verbose("1u7hux",r);const o={...e,correlationId:r,authority:e.authority||n.environment,scopes:e.scopes?.length?e.scopes:[...m]},i=this.browserStorage.getTokenKeys(),s=this.browserStorage.getAccessToken(n,o,i,n.tenantId);if(!s)return this.logger.verbose("03vm49",r),Promise.resolve(null);if(yn(s.cachedAt)||mn(s.expiresOn,this.config.system.tokenRenewalOffsetSeconds))return this.logger.verbose("18egye",r),Promise.resolve(null);if(o.resource){const e=o.resource,t=s.resource;if(!t||t!==e)return this.logger.verbose("0qraxd",r),Promise.resolve(null)}const a=this.browserStorage.getIdToken(n,o.correlationId,i,n.tenantId);return a?this.nestedAppAuthAdapter.toAuthenticationResultFromCache(n,a,s,o,o.correlationId):(this.logger.verbose("0d68kd",r),Promise.resolve(null))}async acquireTokenPopup(e){return this.acquireTokenInteractive(e)}acquireTokenRedirect(e){throw Vh.createUnsupportedError()}async acquireTokenSilent(e){return this.acquireTokenSilentInternal(e)}acquireTokenByCode(e){throw Vh.createUnsupportedError()}addEventCallback(e,t){return this.eventHandler.addEventCallback(e,t)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){throw Vh.createUnsupportedError()}removePerformanceCallback(e){throw Vh.createUnsupportedError()}getAllAccounts(e){return qc(this.logger,this.browserStorage,this.isBrowserEnv(),ca(),e)}getAccount(e){return Nc(e,this.logger,this.browserStorage,ca())}setActiveAccount(e){return Uc(e,this.browserStorage,ca())}getActiveAccount(){return Lc(this.browserStorage,ca())}handleRedirectPromise(e){return Promise.resolve(null)}loginPopup(e){return this.acquireTokenInteractive(e||Ds)}loginRedirect(e){throw Vh.createUnsupportedError()}logoutRedirect(e){throw Vh.createUnsupportedError()}logoutPopup(e){throw Vh.createUnsupportedError()}ssoSilent(e){return this.acquireTokenSilentInternal(e)}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,t){}setNavigationClient(e){this.logger.warning("1k8729","")}getConfiguration(){return this.config}isBrowserEnv(){return this.operatingContext.isBrowserEnvironment()}getBrowserCrypto(){return this.browserCrypto}getPerformanceClient(){throw Vh.createUnsupportedError()}getRedirectResponse(){throw Vh.createUnsupportedError()}async clearCache(e){throw Vh.createUnsupportedError()}async hydrateCache(e,t){this.logger.verbose("16jycr",e.correlationId);const r=Jr(e.account,e.cloudGraphHostName,e.msGraphHost);return await this.browserStorage.setAccount(r,e.correlationId,Ar(e.idTokenClaims),Us.hydrateCache),this.browserStorage.hydrateCache(e,t)}}class Zh{static async initializeNestedAppAuthBridge(){if(void 0===window)throw new Error("window is undefined");if(void 0===window.nestedAppAuthBridge)throw new Error("window.nestedAppAuthBridge is undefined");try{window.nestedAppAuthBridge.addEventListener("message",(e=>{const t="string"==typeof e?e:e.data,r=JSON.parse(t),n=Zh.bridgeRequests.find((e=>e.requestId===r.requestId));void 0!==n&&(Zh.bridgeRequests.splice(Zh.bridgeRequests.indexOf(n),1),r.success?n.resolve(r):n.reject(r.error))}));const e=await new Promise(((e,t)=>{const r=Zh.buildRequest("GetInitContext"),n={requestId:r.requestId,method:r.method,resolve:e,reject:t};Zh.bridgeRequests.push(n),window.nestedAppAuthBridge.postMessage(JSON.stringify(r))}));return Zh.validateBridgeResultOrThrow(e.initContext)}catch(e){throw window.console.log(e),e}}getTokenInteractive(e){return this.getToken("GetTokenPopup",e)}getTokenSilent(e){return this.getToken("GetToken",e)}async getToken(e,t){const r=await this.sendRequest(e,{tokenParams:t});return{token:Zh.validateBridgeResultOrThrow(r.token),account:Zh.validateBridgeResultOrThrow(r.account)}}getHostCapabilities(){return this.capabilities??null}getAccountContext(){return this.accountContext?this.accountContext:null}static buildRequest(e,t){return{messageType:"NestedAppAuthRequest",method:e,requestId:ca(),sendTime:Date.now(),clientLibrary:ls,clientLibraryVersion:Pc,...t}}sendRequest(e,t){const r=Zh.buildRequest(e,t);return new Promise(((e,t)=>{const n={requestId:r.requestId,method:r.method,resolve:e,reject:t};Zh.bridgeRequests.push(n),window.nestedAppAuthBridge.postMessage(JSON.stringify(r))}))}static validateBridgeResultOrThrow(e){if(void 0===e){throw{status:Gh}}return e}constructor(e,t,r,n){this.sdkName=e,this.sdkVersion=t,this.accountContext=r,this.capabilities=n}static async create(){const e=await Zh.initializeNestedAppAuthBridge();return new Zh(e.sdkName,e.sdkVersion,e.accountContext,e.capabilities)}}Zh.bridgeRequests=[];class Xh extends Fh{constructor(){super(...arguments),this.bridgeProxy=void 0,this.accountContext=null}getModuleName(){return Xh.MODULE_NAME}getId(){return Xh.ID}getBridgeProxy(){return this.bridgeProxy}async initialize(e){const t=e||"";try{if("undefined"!=typeof window){"function"==typeof window.__initializeNestedAppAuth&&await window.__initializeNestedAppAuth();const e=await Zh.create();this.accountContext=e.getAccountContext(),this.bridgeProxy=e,this.available=void 0!==e}}catch(e){this.logger.infoPii("1mdxyj",t)}return this.logger.info("12jy9a",t),this.available}}Xh.MODULE_NAME="",Xh.ID="NestedAppOperatingContext";class el{constructor(e,t){this.controller=t||new Hh(new Dh(e,{waitForPopupResponse:this.waitForPopupResponse.bind(this),waitForIframeResponse:this.waitForIframeResponse.bind(this)}))}async waitForPopupResponse(e,t,r){const n=this.controller;return Ra(n.getConfiguration().system.popupBridgeTimeout,n.getLogger(),e,n.getPerformanceClient())}async waitForIframeResponse(e,t){const r=this.controller,n=r.getConfiguration();return Ra(n.system.iframeBridgeTimeout,r.getLogger(),t,r.getPerformanceClient(),n.experimental)}async initialize(e){return this.controller.initialize(e)}async acquireTokenPopup(e){return this.controller.acquireTokenPopup(e)}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e,t){return this.controller.addEventCallback(e,t)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}getAccount(e){return this.controller.getAccount(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,t){return this.controller.initializeWrapperLibrary(e,t)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(e,t){return this.controller.hydrateCache(e,t)}clearCache(e){return this.controller.clearCache(e)}}async function tl(e){const t=new el(e);return await t.initialize(),t}const rl={initialize:()=>Promise.reject(ka(wa)),acquireTokenPopup:()=>Promise.reject(ka(wa)),acquireTokenRedirect:()=>Promise.reject(ka(wa)),acquireTokenSilent:()=>Promise.reject(ka(wa)),acquireTokenByCode:()=>Promise.reject(ka(wa)),getAllAccounts:()=>[],getAccount:()=>null,handleRedirectPromise:()=>Promise.reject(ka(wa)),loginPopup:()=>Promise.reject(ka(wa)),loginRedirect:()=>Promise.reject(ka(wa)),logoutRedirect:()=>Promise.reject(ka(wa)),logoutPopup:()=>Promise.reject(ka(wa)),ssoSilent:()=>Promise.reject(ka(wa)),addEventCallback:()=>null,removeEventCallback:()=>{},addPerformanceCallback:()=>"",removePerformanceCallback:()=>!1,getLogger:()=>{throw ka(wa)},setLogger:()=>{},setActiveAccount:()=>{},getActiveAccount:()=>null,initializeWrapperLibrary:()=>{},setNavigationClient:()=>{},getConfiguration:()=>{throw ka(wa)},hydrateCache:()=>Promise.reject(ka(wa)),clearCache:()=>Promise.reject(ka(wa))};async function nl(e,t,r,n,o,i,s,a,c){if(o.verbose("0ke46k",r),e.account){const t=Jr(e.account);return await n.setAccount(t,r,Ar(a||{}),Us.loadExternalTokens),t}if(!t&&!a)throw o.error("0hzcn4",r),ns(Ni);const h=Wr(t,s.authorityType,o,i,r,a),l=a?.tid,d=io(n,s,h,os,r,a,t,s.getPreferredCache(),l,void 0,void 0,o,c);return await n.setAccount(d,r,Ar(a||{}),Us.loadExternalTokens),d}async function ol(e,t,r,n,o,i,s,a,c){if(!e.id_token)return a.verbose("1pm7g1",i),null;a.verbose("168lyi",i);const h=wn(t,r,e.id_token,c,n);return await s.setIdTokenCredential(h,i,o),h}async function il(e,t,r,n,o,i,s,a,c,h,l){if(!t.access_token)return h.verbose("1ckp9e",a),null;if(!t.expires_in)return h.error("15mzx8",a),null;if(!(t.scope||e.scopes&&e.scopes.length))return h.error("1h7xse",a),null;h.verbose("01kmxb",a);const d=t.scope?Mt.fromString(t.scope):new Mt(e.scopes),u=s.expiresOn||t.expires_in+un(),g=s.extendedExpiresOn||(t.ext_expires_in||t.expires_in)+un(),p=In(r,n,t.access_token,l,o,d.printScopes(),u,g,os);return await c.setAccessTokenCredential(p,a,i),p}async function sl(e,t,r,n,o,i,s,a,c){if(!e.refresh_token)return s.verbose("1l7um5",o),null;const h=e.refresh_token_expires_in?e.refresh_token_expires_in+un():void 0;c.addFields({extRtExpiresOnSeconds:h},o),s.verbose("0qy8ev",o);const l=Cn(t,r,e.refresh_token,a,e.foci,void 0,h);return await i.setRefreshTokenCredential(l,o,n),l}function al(){let e;try{e=window[Ts.SessionStorage];const t=e?.getItem(lc);if(1===Number(t))return Promise.resolve().then((function(){return dl}))}catch(e){}}function cl(){return"undefined"!=typeof window&&void 0!==window.performance&&"function"==typeof window.performance.now}function hl(e){if(e&&cl())return Math.round(window.performance.now()-e)}class ll{constructor(e,t){this.correlationId=t,this.measureName=ll.makeMeasureName(e,t),this.startMark=ll.makeStartMark(e,t),this.endMark=ll.makeEndMark(e,t)}static makeMeasureName(e,t){return`msal.measure.${e}.${t}`}static makeStartMark(e,t){return`msal.start.${e}.${t}`}static makeEndMark(e,t){return`msal.end.${e}.${t}`}static supportsBrowserPerformance(){return"undefined"!=typeof window&&void 0!==window.performance&&"function"==typeof window.performance.mark&&"function"==typeof window.performance.measure&&"function"==typeof window.performance.clearMarks&&"function"==typeof window.performance.clearMeasures&&"function"==typeof window.performance.getEntriesByName}static flushMeasurements(e,t){if(ll.supportsBrowserPerformance())try{t.forEach((t=>{const r=ll.makeMeasureName(t.name,e);window.performance.getEntriesByName(r,"measure").length>0&&(window.performance.clearMeasures(r),window.performance.clearMarks(ll.makeStartMark(r,e)),window.performance.clearMarks(ll.makeEndMark(r,e)))}))}catch(e){}}startMeasurement(){if(ll.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch(e){}}endMeasurement(){if(ll.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch(e){}}flushMeasurement(){if(ll.supportsBrowserPerformance())try{const e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){const t=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),t}}catch(e){}return null}}var dl=Object.freeze({__proto__:null,BrowserPerformanceMeasurement:ll});const ul=Q,gl=q,pl=O,ml=ce,fl=m;e.ApiId=Us,e.AuthError=Ie,e.AuthErrorCodes=Mo,e.AuthenticationHeaderParser=class{constructor(e){this.headers=e}getShrNonce(){const e=this.headers[k];if(e){const t=this.parseChallenges(e);if(t.nextnonce)return t.nextnonce;throw ke(Ke)}const t=this.headers[v];if(t){const e=this.parseChallenges(t);if(e.nonce)return e.nonce;throw ke(Ke)}throw ke(De)}parseChallenges(e){const t=e.indexOf(" "),r=e.substr(t+1).split(","),n={};return r.forEach((e=>{const[t,r]=e.split("=");n[t]=unescape(r.replace(/['"]+/g,""))})),n}},e.AuthenticationScheme=ul,e.AzureCloudInstance=Cr,e.BrowserAuthError=rs,e.BrowserAuthErrorCodes=es,e.BrowserCacheLocation=Ts,e.BrowserConfigurationAuthError=va,e.BrowserConfigurationAuthErrorCodes=Ca,e.BrowserPerformanceClient=class extends Do{constructor(e,r){super(e.auth.clientId,e.auth.authority||`${t}`,new yr(e.system?.loggerOptions||{},Ec,Pc),Ec,Pc,e.telemetry?.application||{appName:"",appVersion:""},r)}generateId(){return ca()}getPageVisibility(){return document.visibilityState?.toString()||null}getOnlineStatus(){return"undefined"!=typeof navigator?navigator.onLine:null}deleteIncompleteSubMeasurements(e){al()?.then((t=>{const r=this.eventsByCorrelationId.get(e.event.correlationId),n=r&&r.eventId===e.event.eventId,o=[];n&&r?.incompleteSubMeasurements&&r.incompleteSubMeasurements.forEach((e=>{o.push({...e})})),t.BrowserPerformanceMeasurement.flushMeasurements(e.event.correlationId,o)}))}startMeasurement(e,t){const r=this.getPageVisibility(),n=this.getOnlineStatus(),o=super.startMeasurement(e,t),i=cl()?window.performance.now():void 0,s=al()?.then((t=>new t.BrowserPerformanceMeasurement(e,o.event.correlationId)));return s?.then((e=>e.startMeasurement())),{...o,end:(e,t,a)=>{const c=function(){if("undefined"==typeof window||!window.navigator)return{};const e="connection"in window.navigator?window.navigator.connection:void 0;return{effectiveType:e?.effectiveType,rtt:e?.rtt}}(),h=o.end({...e,startPageVisibility:r,startOnlineStatus:n,endPageVisibility:this.getPageVisibility(),durationMs:hl(i),networkEffectiveType:c.effectiveType,networkRtt:c.rtt},t,a);return s?.then((e=>e.endMeasurement())),this.deleteIncompleteSubMeasurements(o),h},discard:()=>{o.discard(),s?.then((e=>e.flushMeasurement())),this.deleteIncompleteSubMeasurements(o)}}}},e.BrowserPerformanceMeasurement=ll,e.BrowserRootPerformanceEvents=ic,e.BrowserUtils=za,e.CacheLookupPolicy=zs,e.ClientAuthError=be,e.ClientAuthErrorCodes=Ot,e.ClientConfigurationError=ve,e.ClientConfigurationErrorCodes=Ge,e.DEFAULT_IFRAME_TIMEOUT_MS=1e4,e.EventHandler=Hc,e.EventMessageUtils=class{static getInteractionStatusFromEvent(t,r){switch(t.eventType){case _c.ACQUIRE_TOKEN_START:if(t.interactionType===e.InteractionType.Redirect||t.interactionType===e.InteractionType.Popup)return Fs.AcquireToken;break;case _c.HANDLE_REDIRECT_START:return Fs.HandleRedirect;case _c.LOGOUT_START:return Fs.Logout;case _c.LOGOUT_END:if(r&&r!==Fs.Logout)break;return Fs.None;case _c.HANDLE_REDIRECT_END:if(r&&r!==Fs.HandleRedirect)break;return Fs.None;case _c.ACQUIRE_TOKEN_SUCCESS:case _c.ACQUIRE_TOKEN_FAILURE:case _c.RESTORE_FROM_BFCACHE:if(t.interactionType===e.InteractionType.Redirect||t.interactionType===e.InteractionType.Popup){if(r&&r!==Fs.AcquireToken)break;return Fs.None}}return null}},e.EventType=_c,e.InteractionRequiredAuthError=Zn,e.InteractionRequiredAuthErrorCodes=Qn,e.InteractionStatus=Fs,e.JsonWebTokenTypes=ml,e.LocalStorage=Ac,e.Logger=yr,e.MemoryStorage=$a,e.NavigationClient=fh,e.OIDC_DEFAULT_SCOPES=fl,e.PromptValue=pl,e.ProtocolMode=jr,e.PublicClientApplication=el,e.ResponseMode=gl,e.ServerError=to,e.SessionStorage=Sc,e.SignedHttpRequest=class{constructor(e,t){const r=t&&t.loggerOptions||{};this.logger=new yr(r,Ec,Pc),this.cryptoOps=new Wa(this.logger),this.popTokenGenerator=new Fn(this.cryptoOps,new en),this.shrParameters=e}async generatePublicKeyThumbprint(){const{kid:e}=await this.popTokenGenerator.generateKid(this.shrParameters);return e}async signRequest(e,t,r){return this.popTokenGenerator.signPayload(e,t,this.shrParameters,r)}async removeKeys(e,t){return this.cryptoOps.removeTokenBindingKey(e,t)}},e.StubPerformanceClient=en,e.WrapperSKU={React:"@azure/msal-react",Angular:"@azure/msal-angular"},e.createNestablePublicClientApplication=async function(e,t,r){const n=new Xh(e);if(await n.initialize(t),n.isAvailable()){const o=t||ca(),i=new Yh(n),s=r?r(e,i):new el(e,i);return await s.initialize({correlationId:o}),s}return tl(e)},e.createStandardPublicClientApplication=tl,e.enforceResourceParameter=Po,e.isPlatformBrokerAvailable=async function(e,t,r,n){const o=new yr(t||{},Ec,Pc),i=r||new en;return"undefined"==typeof window?(o.trace("082ed3",n||ca()),!1):!!await Th(o,i,n||ca(),void 0,e)},e.loadExternalTokens=async function(e,t,r,n,o=new en){Ua();const i=Ch(e,!0),s=t.correlationId||ca(),a=o.startMeasurement(nc,s);try{const c=r.id_token?br(r.id_token,os):void 0,h=Ar(c||{}),l={protocolMode:i.system.protocolMode,knownAuthorities:i.auth.knownAuthorities,cloudDiscoveryMetadata:i.auth.cloudDiscoveryMetadata,authorityMetadata:i.auth.authorityMetadata},d=new yr(i.system.loggerOptions||{}),u=new Wa(d,i.telemetry.client),g=new Oc(i.auth.clientId,i.cache,u,d,i.telemetry.client,new Hc(d),Co(i.auth)),p=t.authority||i.auth.authority,m=await vo(wo.generateAuthority(p,t.azureCloudOptions),i.system.networkClient,g,l,d,s,o),f=await Ln(nl,"loadAccount",d,o,s)(t,n.clientInfo||r.client_info||"",s,g,d,u,m,c,o),y=await Ln(ol,"loadIdToken",d,o,s)(r,f.homeAccountId,f.environment,f.realm,h,s,g,d,e.auth.clientId),w=await Ln(il,"loadAccessToken",d,o,s)(t,r,f.homeAccountId,f.environment,f.realm,h,n,s,g,d,e.auth.clientId),I=await Ln(sl,"loadRefreshToken",d,o,s)(r,f.homeAccountId,f.environment,h,s,g,d,e.auth.clientId,o);return a.end({success:!0},void 0,$r(f)),function(e,t,r,n){let o,i="",s=[],a=null;t?.accessToken&&(i=t.accessToken.secret,s=Mt.fromString(t.accessToken.target).asArray(),a=pn(t.accessToken.expiresOn),o=pn(t.accessToken.extendedExpiresOn));const c=t.account;return{authority:r.canonicalAuthority,uniqueId:t.account.localAccountId,tenantId:t.account.realm,scopes:s,account:$r(c),idToken:t.idToken?.secret||"",idTokenClaims:n||{},accessToken:i,fromCache:!0,expiresOn:a,correlationId:e.correlationId||"",requestId:"",extExpiresOn:o,familyId:t.refreshToken?.familyId||"",tokenType:t?.accessToken?.tokenType||"",state:e.state||"",cloudGraphHostName:c.cloudGraphHostName||"",msGraphHost:c.msGraphHost||"",fromPlatformBroker:!1}}(t,{account:f,idToken:y,accessToken:w,refreshToken:I},m,c)}catch(e){throw a.end({success:!1},e),e}},e.stubbedPublicClientApplication=rl,e.version=Pc}));
|
|
1
|
+
/*! @azure/msal-browser v5.16.0 2026-06-30 */
|
|
2
|
+
"use strict";!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).msal={})}(this,(function(e){const t="https://login.microsoftonline.com/common/",r="common",o=`${t}discovery/instance?api-version=1.1&authorization_endpoint=`,n=".ciamlogin.com",i=".onmicrosoft.com",s="openid",a="profile",c="offline_access",l="S256",h="N/A",d="Not Available",u="http://169.254.169.254/metadata/instance/compute",g=["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],p="GET",m="POST",f=[s,a,c],y=[...f,"email"],I="Content-Type",w="Content-Length",C="Retry-After",v="X-AnchorMailbox",k="WWW-Authenticate",T="Authentication-Info",b="x-ms-request-id",A="x-ms-httpver",S="active-account-filters",_="common",E="organizations",P="consumers",R="access_token",O="xms_cc",M="id_token",x="signin_state",q="login_hint",N={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},U="code",L="id_token token refresh_token",F={QUERY:"query",FRAGMENT:"fragment",FORM_POST:"form_post"},H="authorization_code",D="refresh_token",$="Generic",K={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},B="appmetadata",z="1",j="authority-metadata",J="config",W="cache",G="network",Q="hardcoded_values",V=5,Y="server-telemetry",Z=",",X={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},ee="throttling",te="1",re="3",oe="4",ne="2",ie="4",se="5",ae="0",ce="1",le="2",he="3",de="4",ue={Jwt:"JWT",Jwk:"JWK",Pop:"pop"},ge="client_id",pe="redirect_uri",me="token_type",fe="req_cnf",ye="return_spa_code",Ie="x-client-xtra-sku",we="brk_client_id",Ce="brk_redirect_uri",ve="instance_aware";function ke(e){return`See https://aka.ms/msal.js.errors#${e} for details`}class Te extends Error{constructor(e,t,r,o){const n=r||(e?ke(e):"");super(n?`${e}: ${n}`:e),Object.setPrototypeOf(this,Te.prototype),this.errorCode=e||"",this.errorMessage=n||"",this.subError=o||"",this.correlationId=t,this.name="AuthError"}}function be(e,t,r){return new Te(e,t,r||ke(e))}class Ae extends Te{constructor(e,t){super(e,t),this.name="ClientConfigurationError",Object.setPrototypeOf(this,Ae.prototype)}}function Se(e,t){return new Ae(e,t)}class _e{static isEmptyObj(e){if(e)try{const t=JSON.parse(e);return 0===Object.keys(t).length}catch(e){}return!0}static startsWith(e,t){return 0===e.indexOf(t)}static endsWith(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length}static queryStringToObject(e){const t={},r=e.split("&"),o=e=>decodeURIComponent(e.replace(/\+/g," "));return r.forEach((e=>{if(e.trim()){const[r,n]=e.split(/=(.+)/g,2);r&&n&&(t[o(r)]=o(n))}})),t}static trimArrayEntries(e){return e.map((e=>e.trim()))}static removeEmptyStringsFromArray(e){return e.filter((e=>!!e))}static jsonParseHelper(e){try{return JSON.parse(e)}catch(e){return null}}}class Ee extends Te{constructor(e,t,r){super(e,t,r),this.name="ClientAuthError",Object.setPrototypeOf(this,Ee.prototype)}}function Pe(e,t,r){return new Ee(e,t,r)}const Re="redirect_uri_empty",Oe="authority_uri_insecure",Me="url_parse_error",xe="empty_url_error",qe="empty_input_scopes_error",Ne="invalid_claims",Ue="token_request_empty",Le="logout_request_empty",Fe="pkce_params_missing",He="invalid_cloud_discovery_metadata",De="invalid_authority_metadata",$e="untrusted_authority",Ke="missing_ssh_jwk",Be="missing_ssh_kid",ze="missing_nonce_authentication_header",je="invalid_authentication_header",Je="cannot_set_OIDCOptions",We="cannot_allow_platform_broker",Ge="authority_mismatch",Qe="invalid_request_method_for_EAR",Ve="invalid_platform_broker_configuration",Ye="issuer_validation_failed";var Ze=Object.freeze({__proto__:null,authorityMismatch:Ge,authorityUriInsecure:Oe,cannotAllowPlatformBroker:We,cannotSetOIDCOptions:Je,claimsRequestParsingError:"claims_request_parsing_error",emptyInputScopesError:qe,invalidAuthenticationHeader:je,invalidAuthorityMetadata:De,invalidClaims:Ne,invalidCloudDiscoveryMetadata:He,invalidCodeChallengeMethod:"invalid_code_challenge_method",invalidPlatformBrokerConfiguration:Ve,invalidRequestMethodForEAR:Qe,issuerValidationFailed:Ye,logoutRequestEmpty:Le,missingNonceAuthenticationHeader:ze,missingSshJwk:Ke,missingSshKid:Be,pkceParamsMissing:Fe,redirectUriEmpty:Re,tokenRequestEmpty:Ue,untrustedAuthority:$e,urlEmptyError:xe,urlParseError:Me});const Xe="client_info_decoding_error",et="client_info_empty_error",tt="token_parsing_error",rt="null_or_empty_token",ot="endpoints_resolution_error",nt="network_error",it="openid_config_error",st="hash_not_deserialized",at="invalid_state",ct="state_mismatch",lt="state_not_found",ht="nonce_mismatch",dt="multiple_matching_appMetadata",ut="request_cannot_be_made",gt="cannot_remove_empty_scope",pt="cannot_append_scopeset",mt="empty_input_scopeset",ft="no_account_in_silent_request",yt="invalid_cache_record",It="invalid_cache_environment",wt="no_account_found",Ct="no_crypto_object",vt="token_refresh_required",kt="token_claims_cnf_required_for_signedjwt",Tt="authorization_code_missing_from_server_response",bt="binding_key_not_removed",At="end_session_endpoint_not_supported",St="key_id_missing",_t="no_network_connectivity",Et="user_canceled",Pt="method_not_implemented",Rt="nested_app_auth_bridge_disabled",Ot="resource_parameter_required",Mt="misplaced_resource_parameter";var xt=Object.freeze({__proto__:null,authorizationCodeMissingFromServerResponse:Tt,bindingKeyNotRemoved:bt,cannotAppendScopeSet:pt,cannotRemoveEmptyScope:gt,clientInfoDecodingError:Xe,clientInfoEmptyError:et,emptyInputScopeSet:mt,endSessionEndpointNotSupported:At,endpointResolutionError:ot,hashNotDeserialized:st,invalidCacheEnvironment:It,invalidCacheRecord:yt,invalidState:at,keyIdMissing:St,methodNotImplemented:Pt,misplacedResourceParam:Mt,multipleMatchingAppMetadata:dt,multipleMatchingTokens:"multiple_matching_tokens",nestedAppAuthBridgeDisabled:Rt,networkError:nt,noAccountFound:wt,noAccountInSilentRequest:ft,noCryptoObject:Ct,noNetworkConnectivity:_t,nonceMismatch:ht,nullOrEmptyToken:rt,openIdConfigError:it,platformBrokerError:"platform_broker_error",requestCannotBeMade:ut,resourceParameterRequired:Ot,stateMismatch:ct,stateNotFound:lt,tokenClaimsCnfRequiredForSignedJwt:kt,tokenParsingError:tt,tokenRefreshRequired:vt,unexpectedCredentialType:"unexpected_credential_type",userCanceled:Et});class qt{constructor(e,t){this.correlationId=t;const r=e?_e.trimArrayEntries([...e]):[],o=r?_e.removeEmptyStringsFromArray(r):[];if(!o||!o.length)throw Se(qe,t);this.scopes=new Set,o.forEach((e=>this.scopes.add(e)))}static fromString(e,t){const r=(e||"").split(" ");return new qt(r,t)}static createSearchScopes(e,t){const r=e&&e.length>0?e:[...f],o=new qt(r,t);return o.containsOnlyOIDCScopes()?o.removeScope(c):o.removeOIDCScopes(),o}containsScope(e){const t=this.printScopesLowerCase().split(" "),r=new qt(t,this.correlationId);return!!e&&r.scopes.has(e.toLowerCase())}containsScopeSet(e){return!(!e||e.scopes.size<=0)&&(this.scopes.size>=e.scopes.size&&e.asArray().every((e=>this.containsScope(e))))}containsOnlyOIDCScopes(){let e=0;return y.forEach((t=>{this.containsScope(t)&&(e+=1)})),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach((e=>this.appendScope(e)))}catch(e){throw Pe(pt,this.correlationId)}}removeScope(e){if(!e)throw Pe(gt,this.correlationId);this.scopes.delete(e.trim())}removeOIDCScopes(){y.forEach((e=>{this.scopes.delete(e)}))}unionScopeSets(e){if(!e)throw Pe(mt,this.correlationId);const t=new Set;return e.scopes.forEach((e=>t.add(e.toLowerCase()))),this.scopes.forEach((e=>t.add(e.toLowerCase()))),t}intersectingScopeSets(e){if(!e)throw Pe(mt,this.correlationId);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const t=this.unionScopeSets(e),r=e.getScopeCount(),o=this.getScopeCount();return t.size<o+r}getScopeCount(){return this.scopes.size}asArray(){const e=[];return this.scopes.forEach((t=>e.push(t))),e}printScopes(){if(this.scopes){return this.asArray().join(" ")}return""}printScopesLowerCase(){return this.printScopes().toLowerCase()}}function Nt(e,t,r){if(!t)return;const o=e.get(ge);o&&e.has(we)&&r?.addFields({embeddedClientId:o,embeddedRedirectUri:e.get(pe)},t)}function Ut(e,t){e.set("response_type",t)}function Lt(e,t,r,o=!0,n=f){!o||n.includes("openid")||t.includes("openid")||n.push("openid");const i=o?[...t||[],...n]:t||[],s=new qt(i,r);e.set("scope",s.printScopes())}function Ft(e,t){e.set(ge,t)}function Ht(e,t){e.set(pe,t)}function Dt(e,t){e.set("login_hint",t)}function $t(e,t){e.set(v,`UPN:${t}`)}function Kt(e,t){e.set(v,`Oid:${t.uid}@${t.utid}`)}function Bt(e,t){e.set("sid",t)}function zt(e,t,r,o,n){const i=nr(r,n&&e.has(we)?void 0:o,t);e.set("claims",i)}function jt(e,t){e.set("client-request-id",t)}function Jt(e,t){e.set("x-client-SKU",t.sku),e.set("x-client-VER",t.version),t.os&&e.set("x-client-OS",t.os),t.cpu&&e.set("x-client-CPU",t.cpu)}function Wt(e,t){t?.appName&&e.set("x-app-name",t.appName),t?.appVersion&&e.set("x-app-ver",t.appVersion)}function Gt(e,t){t&&e.set("state",t)}function Qt(e,t,r){if(!t||!r)throw Se(Fe,"");e.set("code_challenge",t),e.set("code_challenge_method",r)}function Vt(e,t){e.set("client_secret",t)}function Yt(e,t){t&&e.set("client_assertion",t)}function Zt(e,t){t&&e.set("client_assertion_type",t)}function Xt(e,t){e.set("grant_type",t)}function er(e){e.set("client_info","1")}function tr(e){e.has(ve)||e.set(ve,"true")}function rr(e,t){Object.entries(t).forEach((([t,r])=>{!e.has(t)&&r&&e.set(t,r)}))}const or={[x]:{essential:!1},[q]:{essential:!1}};function nr(e,t,r=""){let o;if(e)try{const t=JSON.parse(e);if("object"!=typeof t||null===t||Array.isArray(t))throw new Error("Claims must be a JSON object");o=t}catch(e){throw Se(Ne,r)}else o={};Object.prototype.hasOwnProperty.call(o,M)||(o[M]={});const n=o[M];for(const[e,t]of Object.entries(or))e in n||(n[e]=t);return t&&t.length>0&&(Object.prototype.hasOwnProperty.call(o,R)||(o[R]={}),o[R][O]={values:t}),JSON.stringify(o)}function ir(e,t){t&&(e.set(me,X.POP),e.set(fe,t))}function sr(e,t){t&&(e.set(me,X.SSH),e.set(fe,t))}function ar(e,t){e.set("x-client-current-telemetry",t.generateCurrentRequestHeaderValue()),e.set("x-client-last-telemetry",t.generateLastRequestHeaderValue())}function cr(e){e.set("x-ms-lib-capability","retry-after, h429")}function lr(e,t,r){e.has(we)||e.set(we,t),e.has(Ce)||e.set(Ce,r)}function hr(e,t){t&&e.set("resource",t)}function dr(e){return e.startsWith("#/")?e.substring(2):e.startsWith("#")||e.startsWith("?")?e.substring(1):e}function ur(e){if(!e||e.indexOf("=")<0)return null;try{const t=dr(e),r=Object.fromEntries(new URLSearchParams(t));if(r.code||r.ear_jwe||r.error||r.error_description||r.state)return r}catch(e){throw Pe(st,"")}return null}function gr(e){const t=new Array;return e.forEach(((e,r)=>{t.push(`${r}=${encodeURIComponent(e)}`)})),t.join("&")}function pr(e,t,r){if(!e)return e;const o=e.split("#")[0];if(!o)return o;try{const e=new URL(o);let t;e.search||(e.search="");try{t=decodeURIComponent(e.pathname)}catch(r){t=e.pathname}return t.endsWith("/")||(t+="/"),e.pathname=t,e.href}catch(e){throw t?.error(`15apdm ${e}`,r||""),Se(Me,r||"")}}const mr={createNewGuid:()=>{throw Pe(Pt,"")},base64Decode:()=>{throw Pe(Pt,"")},base64Encode:()=>{throw Pe(Pt,"")},base64UrlEncode:()=>{throw Pe(Pt,"")},encodeKid:()=>{throw Pe(Pt,"")},async getPublicKeyThumbprint(){throw Pe(Pt,"")},async removeTokenBindingKey(){throw Pe(Pt,"")},async clearKeystore(){throw Pe(Pt,"")},async signJwt(){throw Pe(Pt,"")},async hashString(){throw Pe(Pt,"")}};var fr;e.LogLevel=void 0,(fr=e.LogLevel||(e.LogLevel={}))[fr.Error=0]="Error",fr[fr.Warning=1]="Warning",fr[fr.Info=2]="Info",fr[fr.Verbose=3]="Verbose",fr[fr.Trace=4]="Trace";const yr=new Map;function Ir(e,t){const r=Date.now();let o=yr.get(e);if(o)!function(e,t){yr.delete(e),yr.set(e,t)}(e,o);else if(o={logs:[],firstEventTime:r},yr.set(e,o),yr.size>50){const e=yr.keys().next().value;void 0!==e&&yr.delete(e)}o.logs.push({...t,milliseconds:r-o.firstEventTime}),o.logs.length>500&&o.logs.shift()}class wr{constructor(t,r,o){this.level=e.LogLevel.Info;const n=t||wr.createDefaultLoggerOptions();this.localCallback=n.loggerCallback||(()=>{}),this.piiLoggingEnabled=n.piiLoggingEnabled||!1,this.level="number"==typeof n.logLevel?n.logLevel:e.LogLevel.Info,this.packageName=r||"",this.packageVersion=o||""}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:e.LogLevel.Info}}clone(e,t){return new wr({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level},e,t)}logMessage(t,r){const o=r.correlationId,n=function(e){if(e.length<6)return null;if(e.length>6&&" "!==e[6])return null;for(let t=0;t<6;t++){const r=e[t];if(!(r>="a"&&r<="z"||r>="A"&&r<="Z"||r>="0"&&r<="9"))return null}return e.substring(0,6)}(t);if(n){Ir(o,{hash:n,level:r.logLevel,containsPii:r.containsPii||!1,milliseconds:0})}if(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)return;const i=`${`[${(new Date).toUTCString()}] : [${o}]`} : ${this.packageName}@${this.packageVersion} : ${e.LogLevel[r.logLevel]} - ${t}`;this.executeCallback(r.logLevel,i,r.containsPii||!1)}executeCallback(e,t,r){this.localCallback&&this.localCallback(e,t,r)}error(t,r){this.logMessage(t,{logLevel:e.LogLevel.Error,containsPii:!1,correlationId:r})}errorPii(t,r){this.logMessage(t,{logLevel:e.LogLevel.Error,containsPii:!0,correlationId:r})}warning(t,r){this.logMessage(t,{logLevel:e.LogLevel.Warning,containsPii:!1,correlationId:r})}warningPii(t,r){this.logMessage(t,{logLevel:e.LogLevel.Warning,containsPii:!0,correlationId:r})}info(t,r){this.logMessage(t,{logLevel:e.LogLevel.Info,containsPii:!1,correlationId:r})}infoPii(t,r){this.logMessage(t,{logLevel:e.LogLevel.Info,containsPii:!0,correlationId:r})}verbose(t,r){this.logMessage(t,{logLevel:e.LogLevel.Verbose,containsPii:!1,correlationId:r})}verbosePii(t,r){this.logMessage(t,{logLevel:e.LogLevel.Verbose,containsPii:!0,correlationId:r})}trace(t,r){this.logMessage(t,{logLevel:e.LogLevel.Trace,containsPii:!1,correlationId:r})}tracePii(t,r){this.logMessage(t,{logLevel:e.LogLevel.Trace,containsPii:!0,correlationId:r})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}const Cr="@azure/msal-common",vr="16.11.0",kr={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"};function Tr(e,t,r){const o=function(e,t){if(!e)throw Pe(rt,t);const r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(e);if(!r||r.length<4)throw Pe(tt,t);return r[2]}(e,r);try{const e=t(o);return JSON.parse(e)}catch(e){throw Pe(tt,r)}}function br(e){if(!e.signin_state)return!1;const t=["kmsi","dvc_dmjd"];return e.signin_state.some((e=>t.includes(e.trim().toLowerCase())))}function Ar(e,t){return!!e&&!!t&&e===t.split(".")[1]}function Sr(e,t,r,o,n){if(n){const{oid:t,sub:r,tid:i,name:s,tfp:a,acr:c,preferred_username:l,upn:h,login_hint:d}=n,u=i||a||c||"";return{tenantId:u,localAccountId:t||r||"",name:s,username:l||h||"",loginHint:d,isHomeTenant:Ar(u,e),upn:h,...o&&{nativeAccountId:o}}}return{tenantId:r,localAccountId:t,username:"",isHomeTenant:Ar(r,e),...o&&{nativeAccountId:o}}}function _r(e,t,r,o){let n=e;if(t){const{isHomeTenant:r,...o}=t;n={...e,...o}}if(r){const{isHomeTenant:t,...i}=Sr(e.homeAccountId,e.localAccountId,e.tenantId,n.nativeAccountId,r);return n={...n,...i,idTokenClaims:r,idToken:o,kmsi:br(r)},n}return n}class Er{get urlString(){return this._urlString}constructor(e,t){if(this._urlString=e,this.correlationId=t,!this._urlString)throw Se(xe,t);e.includes("#")||(this._urlString=Er.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let t=e.toLowerCase();return _e.endsWith(t,"?")?t=t.slice(0,-1):_e.endsWith(t,"?/")&&(t=t.slice(0,-2)),_e.endsWith(t,"/")||(t+="/"),t}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch(e){throw Se(Me,this.correlationId)}if(!e.HostNameAndPort||!e.PathSegments)throw Se(Me,this.correlationId);if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw Se(Oe,this.correlationId)}static appendQueryString(e,t){return t?e.indexOf("?")<0?`${e}?${t}`:`${e}&${t}`:e}static removeHashFromUrl(e){return Er.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const t=this.getUrlComponents(),r=t.PathSegments;return!e||0===r.length||r[0]!==_&&r[0]!==E||(r[0]=e),Er.constructAuthorityUriFromObject(t,this.correlationId)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw Se(Me,this.correlationId);const r={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]};let o=r.AbsolutePath.split("/");return o=o.filter((e=>e&&e.length>0)),r.PathSegments=o,r.QueryString&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r}static getDomainFromUrl(e,t){const r=RegExp("^([^:/?#]+://)?([^/?#]*)"),o=e.match(r);if(!o)throw Se(Me,t);return o[2]}static getAbsoluteUrl(e,t,r){if("/"===e[0]){const o=new Er(t,r).getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e,t){return new Er(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"),t)}}const Pr={endpointMetadata:[{host:"login.microsoftonline.com"},{host:"login.chinacloudapi.cn",issuerHost:"login.partner.microsoftonline.cn"},{host:"login.microsoftonline.us"},{host:"login.sovcloud-identity.fr"},{host:"login.sovcloud-identity.de"},{host:"login.sovcloud-identity.sg"}].reduce(((e,{host:t,issuerHost:r})=>(e[t]=function(e,t){return{token_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/token`,jwks_uri:`https://${e}/{tenantid}/discovery/v2.0/keys`,issuer:`https://${t}/{tenantid}/v2.0`,authorization_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/authorize`,end_session_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/logout`}}(t,r||t),e)),{}),instanceDiscoveryMetadata:{metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]},{preferred_network:"login.sovcloud-identity.fr",preferred_cache:"login.sovcloud-identity.fr",aliases:["login.sovcloud-identity.fr"]},{preferred_network:"login.sovcloud-identity.de",preferred_cache:"login.sovcloud-identity.de",aliases:["login.sovcloud-identity.de"]},{preferred_network:"login.sovcloud-identity.sg",preferred_cache:"login.sovcloud-identity.sg",aliases:["login.sovcloud-identity.sg"]},{preferred_network:"login.windows-ppe.net",preferred_cache:"login.windows-ppe.net",aliases:["login.windows-ppe.net","sts.windows-ppe.net","login.microsoft-ppe.com"]}]}},Rr=Pr.endpointMetadata,Or=Pr.instanceDiscoveryMetadata,Mr=new Set;function xr(e,t,r,o,n){if(e.trace(`1bmquz ${n}`,t),r&&o){const i=qr(o,r);if(i)return e.trace(`1fotbt ${n}`,t),i.aliases;e.trace(`14avvj ${n}`,t)}return null}function qr(e,t){for(let r=0;r<e.length;r++){const o=e[r];if(o.aliases.includes(t))return o}return null}Or.metadata.forEach((e=>{e.aliases.forEach((e=>{Mr.add(e)}))}));const Nr="cache_quota_exceeded";class Ur extends Error{constructor(e,t){const r=t||ke(e);super(r),Object.setPrototypeOf(this,Ur.prototype),this.name="CacheError",this.errorCode=e,this.errorMessage=r}}function Lr(e){return e instanceof Error?"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name||e.message.includes("exceeded the quota")?new Ur(Nr):new Ur(e.name,e.message):new Ur("cache_error_unknown")}function Fr(e,t){if(!e)throw Pe(et,"");try{const r=t(e);return JSON.parse(r)}catch(e){throw Pe(Xe,"")}}function Hr(e){if(!e)throw Pe(Xe,"");const t=e.split(".",2);return{uid:t[0],utid:t.length<2?"":t[1]}}const Dr=0,$r=1,Kr=2,Br=3;function zr(e){if(e){return e.tid||e.tfp||e.acr||null}return null}const jr={AAD:"AAD",OIDC:"OIDC",EAR:"EAR"};function Jr(e){const t=e.tenantProfiles||[];0===t.length&&e.realm&&e.localAccountId&&t.push(Sr(e.homeAccountId,e.localAccountId,e.realm,e.nativeAccountId));const r=t.find((t=>t.tenantId===e.realm)),o=r?.nativeAccountId||e.nativeAccountId;return{homeAccountId:e.homeAccountId,environment:e.environment,tenantId:e.realm,username:e.username,localAccountId:e.localAccountId,loginHint:e.loginHint,name:e.name,nativeAccountId:o,authorityType:e.authorityType,tenantProfiles:new Map(t.map((e=>[e.tenantId,e]))),dataBoundary:e.dataBoundary}}function Wr(e,t,r){const o=Array.from(e.tenantProfiles?.values()||[]);if(0===o.length&&e.tenantId&&e.localAccountId)o.push(Sr(e.homeAccountId,e.localAccountId,e.tenantId,e.nativeAccountId,e.idTokenClaims));else if(e.nativeAccountId){const t=o.find((t=>t.tenantId===e.tenantId));t&&!t.nativeAccountId&&(t.nativeAccountId=e.nativeAccountId)}return{authorityType:e.authorityType||$,homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,nativeAccountId:e.nativeAccountId,realm:e.tenantId,environment:e.environment,username:e.username,loginHint:e.loginHint,name:e.name,cloudGraphHostName:t,msGraphHost:r,tenantProfiles:o,dataBoundary:e.dataBoundary}}function Gr(e,t,r,o,n,i){if(t!==$r&&t!==Kr){if(e)try{const t=Fr(e,o.base64Decode);if(t.uid&&t.utid)return`${t.uid}.${t.utid}`}catch(e){}r.warning("1ub6wv",n)}return i?.sub||""}class Qr{constructor(e,t,r,o,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=r.clone(Cr,vr),this.staticAuthorityOptions=n,this.performanceClient=o}getAllAccounts(e={},t){return this.buildTenantProfiles(this.getAccountsFilteredBy(e,t),t,e)}getAccountInfoFilteredBy(e,t){if(0===Object.keys(e).length||Object.values(e).every((e=>null==e||""===e)))return this.commonLogger.warning("1skb02",t),null;const r=this.getAllAccounts(e,t);if(r.length>1){return r.sort(((e,t)=>{const r=e.idTokenClaims?1:0;return(t.idTokenClaims?1:0)-r}))[0]}return 1===r.length?r[0]:null}getBaseAccountInfo(e,t){const r=this.getAccountsFilteredBy(e,t);return r.length>0?Jr(r[0]):null}buildTenantProfiles(e,t,r){return e.flatMap((e=>this.getTenantProfilesFromAccountEntity(e,t,r?.tenantId,r)))}getTenantedAccountInfoByFilter(e,t,r,o,n){let i,s=null;if(n&&!this.tenantProfileMatchesFilter(r,n))return null;const a=this.getIdToken(e,o,t,r.tenantId);return a&&(i=Tr(a.secret,this.cryptoImpl.base64Decode,o),!this.idTokenClaimsMatchTenantProfileFilter(i,n))?null:(s=_r(e,r,i,a?.secret),s)}getTenantProfilesFromAccountEntity(e,t,r,o){const n=Jr(e);let i=n.tenantProfiles||new Map;const s=this.getTokenKeys();if(r){const e=i.get(r);if(!e)return[];i=new Map([[r,e]])}const a=[];return i.forEach((e=>{const r=this.getTenantedAccountInfoByFilter(n,s,e,t,o);r&&a.push(r)})),a}tenantProfileMatchesFilter(e,t){return!(t.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,t.localAccountId))&&((!t.name||e.name===t.name)&&((void 0===t.isHomeTenant||e.isHomeTenant===t.isHomeTenant)&&(!(t.username&&!this.matchUsername(e.username,t.username)&&!this.matchUsername(e.upn,t.username))&&(!(t.loginHint&&!this.matchLoginHintWithTenantProfile(e,t.loginHint))&&((!t.upn||e.upn===t.upn)&&(!t.nativeAccountId||e.nativeAccountId===t.nativeAccountId))))))}idTokenClaimsMatchTenantProfileFilter(e,t){if(t){if(t.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,t.localAccountId))return!1;if(t.loginHint&&!this.matchLoginHintFromTokenClaims(e,t.loginHint))return!1;if(t.username&&!this.matchUsername(e.preferred_username,t.username)&&!this.matchUsername(e.upn,t.username))return!1;if(t.name&&!this.matchName(e,t.name))return!1;if(t.sid&&!this.matchSid(e,t.sid))return!1}return!0}async saveCacheRecord(e,t,r,o,n){if(!e)throw Pe(yt,t);try{e.account&&await this.setAccount(e.account,t,r,o),e.idToken&&!1!==n?.idToken&&await this.setIdTokenCredential(e.idToken,t,r),e.accessToken&&!1!==n?.accessToken&&await this.saveAccessToken(e.accessToken,t,r),e.refreshToken&&!1!==n?.refreshToken&&await this.setRefreshTokenCredential(e.refreshToken,t,r),e.appMetadata&&this.setAppMetadata(e.appMetadata,t)}catch(e){throw this.commonLogger?.error("0j476p",t),e instanceof Te?e:Lr(e)}}async saveAccessToken(e,t,r){const o={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType},n=this.getTokenKeys(),i=qt.fromString(e.target,t);n.accessToken.forEach((e=>{if(!this.accessTokenKeyMatchesFilter(e,o,!1))return;const r=this.getAccessTokenCredential(e,t);if(r&&this.credentialMatchesFilter(r,o,t)){qt.fromString(r.target,t).intersectingScopeSets(i)&&this.removeAccessToken(e,t)}})),await this.setAccessTokenCredential(e,t,r)}getAccountsFilteredBy(e,t){const r=this.getAccountKeys(),o=[];return r.forEach((r=>{const n=this.getAccount(r,t);if(!n)return;if(e.homeAccountId&&!this.matchHomeAccountId(n,e.homeAccountId))return;if(e.environment&&!this.matchEnvironment(n,e.environment,t))return;if(e.realm&&!this.matchRealm(n,e.realm))return;if(e.authorityType&&!this.matchAuthorityType(n,e.authorityType))return;const i={localAccountId:e?.localAccountId,name:e?.name,username:e?.username,loginHint:e?.loginHint,upn:e?.upn,nativeAccountId:e?.nativeAccountId},s=n.tenantProfiles?.filter((e=>this.tenantProfileMatchesFilter(e,i)));s&&0===s.length||o.push(n)})),o}credentialMatchesFilter(e,t,r){if(t.clientId&&!this.matchClientId(e,t.clientId))return!1;if(t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash))return!1;if("string"==typeof t.homeAccountId&&!this.matchHomeAccountId(e,t.homeAccountId))return!1;if(t.environment&&!this.matchEnvironment(e,t.environment,r))return!1;if(t.realm&&!this.matchRealm(e,t.realm))return!1;if(t.credentialType&&!this.matchCredentialType(e,t.credentialType))return!1;if(t.familyId&&!this.matchFamilyId(e,t.familyId))return!1;if(t.target&&!this.matchTarget(e,t.target,r))return!1;if(e.credentialType===K.ACCESS_TOKEN_WITH_AUTH_SCHEME){if(t.tokenType&&!this.matchTokenType(e,t.tokenType))return!1;if(t.tokenType===X.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId))return!1}const o=e.additionalCacheKeyComponents,n=t.additionalCacheKeyComponents,i=!!o&&Object.keys(o).length>0,s=!!n&&Object.keys(n).length>0;if(i!==s)return!1;if(i&&s){const e=Object.keys(o).sort(),t=Object.keys(n).sort();if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r]||o[e[r]]!==n[t[r]])return!1}return!0}getAppMetadataFilteredBy(e,t){const r=this.getKeys(),o={};return r.forEach((r=>{if(!this.isAppMetadata(r))return;const n=this.getAppMetadata(r,t);n&&(e.environment&&!this.matchEnvironment(n,e.environment,t)||e.clientId&&!this.matchClientId(n,e.clientId)||(o[r]=n))})),o}getAuthorityMetadataByAlias(e,t){const r=this.getAuthorityMetadataKeys();let o=null;return r.forEach((r=>{if(!this.isAuthorityMetadata(r)||-1===r.indexOf(this.clientId))return;const n=this.getAuthorityMetadata(r,t);n&&-1!==n.aliases.indexOf(e)&&(o=n)})),o}removeAllAccounts(e){this.getAllAccounts({},e).forEach((t=>{this.removeAccount(t,e)}))}removeAccount(e,t){this.removeAccountContext(e,t);this.getAccountKeys().filter((t=>t.includes(e.homeAccountId)&&t.includes(e.environment))).forEach((e=>{this.removeItem(e,t),this.performanceClient.incrementFields({accountsRemoved:1},t)}))}removeAccountContext(e,t){const r=this.getTokenKeys(),o=t=>t.includes(e.homeAccountId)&&t.includes(e.environment);r.idToken.filter(o).forEach((e=>{this.removeIdToken(e,t)})),r.accessToken.filter(o).forEach((e=>{this.removeAccessToken(e,t)})),r.refreshToken.filter(o).forEach((e=>{this.removeRefreshToken(e,t)}))}removeAccessToken(e,t){const r=this.getAccessTokenCredential(e,t);if(r&&(this.removeItem(e,t),this.performanceClient.incrementFields({accessTokensRemoved:1},t),r.credentialType.toLowerCase()===K.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&r.tokenType===X.POP)){const e=r.keyId;e&&this.cryptoImpl.removeTokenBindingKey(e,t).catch((()=>{this.commonLogger.error(`0cx291 ${e}`,t),this.performanceClient?.incrementFields({removeTokenBindingKeyFailure:1},t)}))}}removeAppMetadata(e){return this.getKeys().forEach((t=>{this.isAppMetadata(t)&&this.removeItem(t,e)})),!0}getIdToken(e,t,r,o){this.commonLogger.trace("1drz22",t);const n={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:K.ID_TOKEN,clientId:this.clientId,realm:o},i=this.getIdTokensByFilter(n,t,r),s=i.size;if(s<1)return this.commonLogger.info("1atvtd",t),null;if(s>1){let r=i;if(!o){const o=new Map;i.forEach(((t,r)=>{t.realm===e.tenantId&&o.set(r,t)}));const n=o.size;if(n<1)return this.commonLogger.info("0ooalx",t),i.values().next().value??null;if(1===n)return this.commonLogger.info("1eq2vc",t),o.values().next().value??null;r=o}return this.commonLogger.info("1ws328",t),r.forEach(((e,r)=>{this.removeIdToken(r,t)})),this.performanceClient.addFields({multiMatchedID:i.size},t),null}return this.commonLogger.info("1sm769",t),i.values().next().value??null}getIdTokensByFilter(e,t,r){const o=r&&r.idToken||this.getTokenKeys().idToken,n=new Map;return o.forEach((r=>{if(!this.idTokenKeyMatchesFilter(r,{clientId:this.clientId,...e}))return;const o=this.getIdTokenCredential(r,t);o&&this.credentialMatchesFilter(o,e,t)&&n.set(r,o)})),n}idTokenKeyMatchesFilter(e,t){const r=e.toLowerCase();return(!t.clientId||-1!==r.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==r.indexOf(t.homeAccountId.toLowerCase()))}removeIdToken(e,t){this.removeItem(e,t)}removeRefreshToken(e,t){this.removeItem(e,t)}getAccessToken(e,t,r,o){const n=t.correlationId;this.commonLogger.trace("1t7hz1",n);const i=qt.createSearchScopes(t.scopes,n),s=t.authenticationScheme||X.BEARER,a=s&&s.toLowerCase()!==X.BEARER.toLowerCase()?K.ACCESS_TOKEN_WITH_AUTH_SCHEME:K.ACCESS_TOKEN,c={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:a,clientId:this.clientId,realm:o||e.tenantId,target:i,tokenType:s,keyId:t.sshKid},l=r&&r.accessToken||this.getTokenKeys().accessToken,h=[];l.forEach((e=>{if(this.accessTokenKeyMatchesFilter(e,c,!0)){const t=this.getAccessTokenCredential(e,n);t&&this.credentialMatchesFilter(t,c,n)&&h.push(t)}}));const d=h.length;return d<1?(this.commonLogger.info("1nckna",n),null):d>1?(this.commonLogger.info("1wkfwp",n),h.forEach((e=>{this.removeAccessToken(this.generateCredentialKey(e),n)})),this.performanceClient.addFields({multiMatchedAT:h.length},n),null):(this.commonLogger.info("06yt98",n),h[0])}accessTokenKeyMatchesFilter(e,t,r){const o=e.toLowerCase();if(t.clientId&&-1===o.indexOf(t.clientId.toLowerCase()))return!1;if(t.homeAccountId&&-1===o.indexOf(t.homeAccountId.toLowerCase()))return!1;if(t.realm&&-1===o.indexOf(t.realm.toLowerCase()))return!1;if(t.target){const e=t.target.asArray();for(let t=0;t<e.length;t++){if(r&&!o.includes(e[t].toLowerCase()))return!1;if(!r&&o.includes(e[t].toLowerCase()))return!0}}return!0}getAccessTokensByFilter(e,t){const r=this.getTokenKeys(),o=[];return r.accessToken.forEach((r=>{if(!this.accessTokenKeyMatchesFilter(r,e,!0))return;const n=this.getAccessTokenCredential(r,t);n&&this.credentialMatchesFilter(n,e,t)&&o.push(n)})),o}getRefreshToken(e,t,r,o){this.commonLogger.trace("0x53vi",r);const n=t?z:void 0,i={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:K.REFRESH_TOKEN,clientId:this.clientId,familyId:n},s=o&&o.refreshToken||this.getTokenKeys().refreshToken,a=[];s.forEach((e=>{if(this.refreshTokenKeyMatchesFilter(e,i)){const t=this.getRefreshTokenCredential(e,r);t&&this.credentialMatchesFilter(t,i,r)&&a.push(t)}}));const c=a.length;return c<1?(this.commonLogger.info("0dlw11",r),null):(c>1&&this.performanceClient.addFields({multiMatchedRT:c},r),this.commonLogger.info("0wcnep",r),a[0])}refreshTokenKeyMatchesFilter(e,t){const r=e.toLowerCase();return(!t.familyId||-1!==r.indexOf(t.familyId.toLowerCase()))&&(!(!t.familyId&&t.clientId&&-1===r.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==r.indexOf(t.homeAccountId.toLowerCase())))}readAppMetadataFromCache(e,t){const r={environment:e,clientId:this.clientId},o=this.getAppMetadataFilteredBy(r,t),n=Object.keys(o).map((e=>o[e])),i=n.length;if(i<1)return null;if(i>1)throw Pe(dt,t);return n[0]}isAppMetadataFOCI(e,t){const r=this.readAppMetadataFromCache(e,t);return!(!r||r.familyId!==z)}matchHomeAccountId(e,t){return!("string"!=typeof e.homeAccountId||t!==e.homeAccountId)}matchLocalAccountIdFromTokenClaims(e,t){return t===(e.oid||e.sub)}matchLocalAccountIdFromTenantProfile(e,t){return e.localAccountId===t}matchName(e,t){return!(t.toLowerCase()!==e.name?.toLowerCase())}matchUsername(e,t){return!(!e||"string"!=typeof e||t?.toLowerCase()!==e.toLowerCase())}matchLoginHintWithTenantProfile(e,t){return e.loginHint===t||e.username===t||e.upn===t}matchUserAssertionHash(e,t){return!(!e.userAssertionHash||t!==e.userAssertionHash)}matchEnvironment(e,t,r){if(this.staticAuthorityOptions){const o=function(e,t,r){let o;const n=e.canonicalAuthority;if(n){const i=new Er(n,r).getUrlComponents().HostNameAndPort;o=xr(t,r,i,e.cloudDiscoveryMetadata?.metadata,J)||xr(t,r,i,Or.metadata,Q)||e.knownAuthorities}return o||[]}(this.staticAuthorityOptions,this.commonLogger,r);if(o.includes(t)&&o.includes(e.environment))return!0}const o=this.getAuthorityMetadataByAlias(t,r);return!!(o&&o.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,t){return!(!e.clientId||t!==e.clientId)}matchFamilyId(e,t){return!(!e.familyId||t!==e.familyId)}matchRealm(e,t){return!(e.realm?.toLowerCase()!==t.toLowerCase())}matchLoginHintFromTokenClaims(e,t){return e.login_hint===t||(e.preferred_username===t||(e.upn===t||!(!e.emails||!e.emails.includes(t))))}matchSid(e,t){return e.sid===t}matchAuthorityType(e,t){return!(!e.authorityType||t.toLowerCase()!==e.authorityType.toLowerCase())}matchTarget(e,t,r){if(e.credentialType!==K.ACCESS_TOKEN&&e.credentialType!==K.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target)return!1;return qt.fromString(e.target,r).containsScopeSet(t)}matchTokenType(e,t){return!(!e.tokenType||e.tokenType!==t)}matchKeyId(e,t){return!(!e.keyId||e.keyId!==t)}isAppMetadata(e){return-1!==e.indexOf(B)}isAuthorityMetadata(e){return-1!==e.indexOf(j)}generateAuthorityMetadataCacheKey(e){return`${j}-${this.clientId}-${e}`}static toObject(e,t){for(const r in t)e[r]=t[r];return e}}class Vr extends Qr{async setAccount(){throw Pe(Pt,"")}getAccount(){throw Pe(Pt,"")}async setIdTokenCredential(){throw Pe(Pt,"")}getIdTokenCredential(){throw Pe(Pt,"")}async setAccessTokenCredential(){throw Pe(Pt,"")}getAccessTokenCredential(){throw Pe(Pt,"")}async setRefreshTokenCredential(){throw Pe(Pt,"")}getRefreshTokenCredential(){throw Pe(Pt,"")}setAppMetadata(){throw Pe(Pt,"")}getAppMetadata(){throw Pe(Pt,"")}setServerTelemetry(){throw Pe(Pt,"")}getServerTelemetry(){throw Pe(Pt,"")}setAuthorityMetadata(){throw Pe(Pt,"")}getAuthorityMetadata(){throw Pe(Pt,"")}getAuthorityMetadataKeys(){throw Pe(Pt,"")}setThrottlingCache(){throw Pe(Pt,"")}getThrottlingCache(){throw Pe(Pt,"")}removeItem(){throw Pe(Pt,"")}getKeys(){throw Pe(Pt,"")}getAccountKeys(){throw Pe(Pt,"")}getTokenKeys(){throw Pe(Pt,"")}generateCredentialKey(){throw Pe(Pt,"")}generateAccountKey(){throw Pe(Pt,"")}}const Yr=1,Zr=2,Xr="ext.",eo=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","startTimeMs","status","multiMatchedAT","multiMatchedID","multiMatchedRT","unencryptedCacheCount","encryptedCacheExpiredCount","oldAccountCount","oldAccessCount","oldIdCount","oldRefreshCount","currAccountCount","currAccessCount","currIdCount","currRefreshCount","ttlExpiredAcntCount","ttlExpiredITCount","ttlExpiredATCount","ttlExpiredRTCount","decryptFailedAcntCount","decryptFailedITCount","decryptFailedATCount","decryptFailedRTCount","invalidAcntCount","invalidITCount","invalidATCount","invalidRTCount","expiredATCount","expiredRTCount","upgradedCacheCount","cacheMatchedAccounts","networkRtt","redirectBridgeTimeoutMs","redirectBridgeMessageVersion"]);class to{generateId(){return"callback-id"}startMeasurement(e,t){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:Yr,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:t||""}}}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}addGlobalFields(){}incrementFields(){}cacheEventByCorrelationId(){}}const ro={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1},oo={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:e.LogLevel.Info,correlationId:""},no={async sendGetRequestAsync(){throw Pe(Pt,"")},async sendPostRequestAsync(){throw Pe(Pt,"")}},io={sku:"msal.js.common",version:vr,cpu:"",os:""},so={clientSecret:"",clientAssertion:void 0},ao={azureCloudInstance:kr.None,tenant:`${r}`},co={application:{appName:"",appVersion:""}};function lo({authOptions:e,systemOptions:t,loggerOptions:r,storageInterface:o,networkInterface:n,cryptoInterface:i,clientCredentials:s,libraryInfo:a,telemetry:c,serverTelemetryManager:l,persistencePlugin:h,serializableCache:d}){const u={...oo,...r};return{authOptions:(g=e,{clientCapabilities:[],azureCloudOptions:ao,instanceAware:!1,isMcp:!1,...g}),systemOptions:{...ro,...t},loggerOptions:u,storageInterface:o||new Vr(e.clientId,mr,new wr(u,Cr,vr),new to),networkInterface:n||no,cryptoInterface:i||mr,clientCredentials:s||so,libraryInfo:{...io,...a},telemetry:{...co,...c},serverTelemetryManager:l||null,persistencePlugin:h||null,serializableCache:d||null};var g}function ho(e){return e.authOptions.authority.options.protocolMode===jr.OIDC}class uo{constructor(e,t){this.cache=e,this.hasChanged=t}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}function go(){return Math.round((new Date).getTime()/1e3)}function po(e){return e.getTime()/1e3}function mo(e){return e?new Date(1e3*Number(e)):new Date}function fo(e,t){const r=Number(e)||0;return go()+t>r}function yo(e,t){const r=Number(e)+24*t*60*60*1e3;return Date.now()>r}function Io(e){return Number(e)>go()}function wo(e,t,r,o,n){return{credentialType:K.ID_TOKEN,homeAccountId:e,environment:t,clientId:o,secret:r,realm:n,lastUpdatedAt:Date.now().toString()}}function Co(e,t,r,o,n,i,s,a,c,l,h,d,u,g,p){const m={homeAccountId:e,credentialType:K.ACCESS_TOKEN,secret:r,cachedAt:go().toString(),expiresOn:s.toString(),extendedExpiresOn:a.toString(),environment:t,clientId:o,realm:n,target:i,tokenType:d||X.BEARER,lastUpdatedAt:Date.now().toString()};if(u&&(m.userAssertionHash=u),h&&(m.refreshOn=h.toString()),m.tokenType?.toLowerCase()!==X.BEARER.toLowerCase())switch(m.credentialType=K.ACCESS_TOKEN_WITH_AUTH_SCHEME,m.tokenType){case X.POP:const e=Tr(r,c,l);if(!e?.cnf?.kid)throw Pe(kt,l);m.keyId=e.cnf.kid;break;case X.SSH:m.keyId=g}return p&&Object.keys(p).length>0&&(m.additionalCacheKeyComponents=p),m}function vo(e,t,r,o,n,i,s){const a={credentialType:K.REFRESH_TOKEN,homeAccountId:e,environment:t,clientId:o,secret:r,lastUpdatedAt:Date.now().toString()};return i&&(a.userAssertionHash=i),n&&(a.familyId=n),s&&(a.expiresOn=s.toString()),a}function ko(e){return e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")}function To(e){return!!e&&(ko(e)&&e.hasOwnProperty("realm")&&e.hasOwnProperty("target")&&(e.credentialType===K.ACCESS_TOKEN||e.credentialType===K.ACCESS_TOKEN_WITH_AUTH_SCHEME))}function bo(e){return!!e&&(ko(e)&&e.credentialType===K.REFRESH_TOKEN)}function Ao(){return go()+86400}function So(e,t,r){e.authorization_endpoint=t.authorization_endpoint,e.token_endpoint=t.token_endpoint,e.end_session_endpoint=t.end_session_endpoint,e.issuer=t.issuer,e.endpointsFromNetwork=r,e.jwks_uri=t.jwks_uri}function _o(e,t,r){e.aliases=t.aliases,e.preferred_cache=t.preferred_cache,e.preferred_network=t.preferred_network,e.aliasesFromNetwork=r}function Eo(e){return e.expiresAt<=go()}const Po="networkClientSendPostRequestAsync",Ro="refreshTokenClientAcquireTokenWithCachedRefreshToken",Oo="getAuthCodeUrl",Mo="handleCodeResponseFromServer",xo="popTokenGenerateCnf",qo="handleServerTokenResponse",No="authorityUpdateMetadataWithRegionalInformation",Uo="regionDiscoveryGetRegionFromIMDS",Lo=(e,t,r,o,n)=>(...i)=>{r.trace(`1plfzx ${t}`,n);const s=o.startMeasurement(t,n);n&&o.incrementFields({[`ext.${t}CallCount`]:1},n);try{const o=e(...i);return s.end({success:!0}),r.trace(`1g8n6a ${t}`,n),o}catch(e){r.trace(`0cfd8i ${t}`,n);try{r.trace(JSON.stringify(e),n)}catch(e){r.trace("00dty7",n)}throw s.end({success:!1},e),e}},Fo=(e,t,r,o,n)=>(...i)=>{r.trace(`1plfzx ${t}`,n);const s=o.startMeasurement(t,n);return n&&o.incrementFields({[`ext.${t}CallCount`]:1},n),e(...i).then((e=>(r.trace(`1g8n6a ${t}`,n),s.end({success:!0}),e))).catch((e=>{r.trace(`0cfd8i ${t}`,n);try{r.trace(JSON.stringify(e),n)}catch(e){r.trace("00dty7",n)}throw s.end({success:!1},e),e}))},Ho="sw";class Do{constructor(e,t){this.cryptoUtils=e,this.performanceClient=t}async generateCnf(e,t){const r=await Fo(this.generateKid.bind(this),xo,t,this.performanceClient,e.correlationId)(e),o=this.cryptoUtils.base64UrlEncode(JSON.stringify(r));return{kid:r.kid,reqCnfString:o}}async generateKid(e){return{kid:await this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:Ho}}async signPopToken(e,t,r){return this.signPayload(e,t,r)}async signPayload(e,t,r,o){const{resourceRequestMethod:n,resourceRequestUri:i,shrClaims:s,shrNonce:a,shrOptions:c}=r,l=i?new Er(i,r.correlationId):void 0,h=l?.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:go(),m:n?.toUpperCase(),u:h?.HostNameAndPort,nonce:a||this.cryptoUtils.createNewGuid(),p:h?.AbsolutePath,q:h?.QueryString?[[],h.QueryString]:void 0,client_claims:s||void 0,...o},t,c,r.correlationId)}}const $o="no_tokens_found",Ko="native_account_unavailable",Bo="refresh_token_expired",zo="ui_not_allowed",jo="interaction_required",Jo="consent_required",Wo="login_required",Go="bad_token",Qo="interrupted_user";var Vo=Object.freeze({__proto__:null,badToken:Go,consentRequired:Jo,interactionRequired:jo,interruptedUser:Qo,loginRequired:Wo,nativeAccountUnavailable:Ko,noTokensFound:$o,refreshTokenExpired:Bo,uiNotAllowed:zo});const Yo=[jo,Jo,Wo,Go,zo,Qo],Zo=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token","ui_not_allowed","interrupted_user"];class Xo extends Te{constructor(e,t,r,o,n,i,s,a){super(e,t,r,o),Object.setPrototypeOf(this,Xo.prototype),this.timestamp=n||"",this.traceId=i||"",this.claims=s||"",this.name="InteractionRequiredAuthError",this.errorNo=a}}function en(e,t,r){const o=!!e&&Yo.indexOf(e)>-1,n=!!r&&Zo.indexOf(r)>-1,i=!!t&&Yo.some((e=>t.indexOf(e)>-1));return o||i||n}function tn(e,t,r){return new Xo(e,t,r)}class rn extends Te{constructor(e,t,r,o,n,i){super(e,t,r,o),this.name="ServerError",this.errorNo=n,this.status=i,Object.setPrototypeOf(this,rn.prototype)}}function on(e,t,r,o){const n=function(e,t,r){if(!e)throw Pe(Ct,t);const o={id:e.createNewGuid()};r&&(o.meta=r);const n=JSON.stringify(o);return e.base64Encode(n)}(e,o,r);return t?`${n}|${t}`:n}function nn(e,t,r){if(!e)throw Pe(Ct,r);if(!t)throw Pe(at,r);try{const r=t.split("|"),o=r[0],n=r.length>1?r.slice(1).join("|"):"",i=e(o);return{userRequestState:n||"",libraryState:JSON.parse(i)}}catch(e){throw Pe(at,r)}}class sn{constructor(e,t,r,o,n,i,s){this.clientId=e,this.cacheStorage=t,this.cryptoObj=r,this.logger=o,this.performanceClient=n,this.serializableCache=i,this.persistencePlugin=s}validateTokenResponse(e,t,r){if(e.error||e.error_description||e.suberror){const o=`Error(s): ${e.error_codes||d} - Timestamp: ${e.timestamp||d} - Description: ${e.error_description||d} - Correlation ID: ${e.correlation_id||d} - Trace ID: ${e.trace_id||d}`,n=e.error_codes?.length?e.error_codes[0]:void 0,i=new rn(e.error||"",e.correlation_id||"",o,e.suberror,n,e.status);if(r&&e.status&&e.status>=500&&e.status<=599)return void this.logger.warning(`16ks7j ${i}`,t);if(r&&e.status&&e.status>=400&&e.status<=499)return void this.logger.warning(`0g61x3 ${i}`,t);if(en(e.error,e.error_description,e.suberror))throw new Xo(e.error||"",e.correlation_id||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.claims||"",n);throw i}}async handleServerTokenResponse(e,t,r,o,n,i,s,a,c,l,h){let d,u;if(e.id_token&&(d=Tr(e.id_token||"",this.cryptoObj.base64Decode,o.correlationId),i&&i.nonce&&d.nonce!==i.nonce))throw Pe(ht,o.correlationId);this.homeAccountIdentifier=Gr(e.client_info||"",t.authorityType,this.logger,this.cryptoObj,o.correlationId,d),i&&i.state&&(u=nn(this.cryptoObj.base64Decode,i.state,o.correlationId)),e.key_id=e.key_id||o.sshKid||void 0;const g=this.generateCacheRecord(e,t,r,o,d,s,i,h);let p;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("0jbz5k",o.correlationId),p=new uo(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(p)),a&&!c&&g.account){if(this.cacheStorage.getAllAccounts({homeAccountId:g.account.homeAccountId,environment:g.account.environment},o.correlationId).length<1)return this.logger.warning("1gmt66",o.correlationId),this.performanceClient?.addFields({acntLoggedOut:!0},o.correlationId),await sn.generateAuthenticationResult(this.cryptoObj,t,g,!1,o,this.performanceClient,d,u,void 0,l)}await this.cacheStorage.saveCacheRecord(g,o.correlationId,br(d||{}),n,o.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&p&&(this.logger.verbose("1bh17u",o.correlationId),await this.persistencePlugin.afterCacheAccess(p))}return sn.generateAuthenticationResult(this.cryptoObj,t,g,!1,o,this.performanceClient,d,u,e,l)}generateCacheRecord(e,t,r,o,n,i,s,a){const c=t.getPreferredCache();if(!c)throw Pe(It,o.correlationId);const l=zr(n);let h,d;e.id_token&&n&&(h=wo(this.homeAccountIdentifier,c,e.id_token,this.clientId,l||""),d=an(this.cacheStorage,t,this.homeAccountIdentifier,this.cryptoObj.base64Decode,o.correlationId,n,e.client_info,c,l,s,void 0,this.logger,this.performanceClient));let u=null;if(e.access_token){const n=e.scope?qt.fromString(e.scope,o.correlationId):new qt(o.scopes||[],o.correlationId),s=("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,h=("string"==typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,d=("string"==typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,g=r+s,p=g+h,m=d&&d>0?r+d:void 0;u=Co(this.homeAccountIdentifier,c,e.access_token,this.clientId,l||t.tenant||"",n.printScopes(),g,p,this.cryptoObj.base64Decode,o.correlationId,m,e.token_type,i,e.key_id,a);const f=o.resource||null;f&&(u.resource=f)}let g=null;if(e.refresh_token){let t;if(e.refresh_token_expires_in){t=r+("string"==typeof e.refresh_token_expires_in?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in),this.performanceClient?.addFields({ntwkRtExpiresOnSeconds:t},o.correlationId)}g=vo(this.homeAccountIdentifier,c,e.refresh_token,this.clientId,e.foci,i,t)}let p=null;return e.foci&&(p={clientId:this.clientId,environment:c,familyId:e.foci}),{account:d,idToken:h,accessToken:u,refreshToken:g,appMetadata:p}}static async generateAuthenticationResult(e,t,r,o,n,i,s,a,c,l){let h,d,u="",g=[],p=null,m="";if(r.accessToken){if(r.accessToken.tokenType!==X.POP||n.popKid)u=r.accessToken.secret;else{const t=new Do(e,i),{secret:o,keyId:s}=r.accessToken;if(!s)throw Pe(St,n.correlationId);u=await t.signPopToken(o,s,n)}g=qt.fromString(r.accessToken.target,n.correlationId).asArray(),p=mo(r.accessToken.expiresOn),h=mo(r.accessToken.extendedExpiresOn),r.accessToken.refreshOn&&(d=mo(r.accessToken.refreshOn))}r.appMetadata&&(m=r.appMetadata.familyId===z?z:"");const f=s?.oid||s?.sub||"",y=s?.tid||"";if(c?.spa_accountid&&r.account){r.account.nativeAccountId=c?.spa_accountid;const e=y||r.account.realm;if(r.account.tenantProfiles){const t=r.account.tenantProfiles.find((t=>t.tenantId===e));t&&(t.nativeAccountId=c.spa_accountid)}}const I=r.account?_r(Jr(r.account),void 0,s,r.idToken?.secret):null;return{authority:t.canonicalAuthority,uniqueId:f,tenantId:y,scopes:g,account:I,idToken:r?.idToken?.secret||"",idTokenClaims:s||{},accessToken:u,fromCache:o,expiresOn:p,extExpiresOn:h,refreshOn:d,correlationId:n.correlationId,requestId:l||"",familyId:m,tokenType:r.accessToken?.tokenType||"",state:a?a.userRequestState:"",cloudGraphHostName:r.account?.cloudGraphHostName||"",msGraphHost:r.account?.msGraphHost||"",code:c?.spa_code,fromPlatformBroker:!1}}}function an(e,t,r,o,n,i,s,a,c,l,h,d,u){d?.verbose("09jz0t",n);const g=a||t.getPreferredCache(),p=e.getAccountsFilteredBy({homeAccountId:r,environment:g},n);u?.addFields({cacheMatchedAccounts:p.length},n),p.length>1&&d?.warning("0x7ad1",n);const m=(1===p.length?p[0]:null)||function(e,t,r,o){let n,i,s;n=t.authorityType===$r?"ADFS":t.protocolMode===jr.OIDC?$:"MSSTS",e.clientInfo&&o&&(i=Fr(e.clientInfo,o),i.xms_tdbr&&(s="EU"===i.xms_tdbr?"EU":"None"));const a=e.environment||t&&t.getPreferredCache();if(!a)throw Pe(It,r);const c=e.idTokenClaims?.preferred_username||e.idTokenClaims?.upn,l=e.idTokenClaims?.emails?e.idTokenClaims.emails[0]:null,h=c||l||"",d=e.idTokenClaims?.login_hint,u=i?.utid||zr(e.idTokenClaims)||"",g=i?.uid||e.idTokenClaims?.oid||e.idTokenClaims?.sub||"";let p;p=e.tenantProfiles?e.tenantProfiles:[Sr(e.homeAccountId,g,u,e.nativeAccountId,e.idTokenClaims)];return{homeAccountId:e.homeAccountId,environment:a,realm:u,localAccountId:g,username:h,authorityType:n,loginHint:d,clientInfo:e.clientInfo,name:e.idTokenClaims?.name||"",lastModificationTime:void 0,lastModificationApp:void 0,cloudGraphHostName:e.cloudGraphHostName,msGraphHost:e.msGraphHost,nativeAccountId:e.nativeAccountId,tenantProfiles:p,dataBoundary:s}}({homeAccountId:r,idTokenClaims:i,clientInfo:s,environment:a,cloudGraphHostName:l?.cloud_graph_host_name,msGraphHost:l?.msgraph_host,nativeAccountId:h},t,n,o),f=m.tenantProfiles||[],y=c||m.realm;if(y&&!f.find((e=>e.tenantId===y))){const e=Sr(r,m.localAccountId,y,h,i);f.push(e)}return m.tenantProfiles=f,m}const cn="home_account_id",ln="UPN";async function hn(e,t,r,o){if("string"==typeof e)return e;return e({clientId:t,tokenEndpoint:r,fmiPath:o})}function dn(e,t,r){return{clientId:e,authority:t.authority,scopes:t.scopes,homeAccountIdentifier:r,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid,embeddedClientId:t.embeddedClientId||t.extraParameters?.clientId,resource:t.resource}}class un{static generateThrottlingStorageKey(e){return`${ee}.${JSON.stringify(e)}`}static preProcess(e,t,r){const o=un.generateThrottlingStorageKey(t),n=e.getThrottlingCache(o,r);if(n){if(n.throttleTime<Date.now())return void e.removeItem(o,r);throw new rn(n.errorCodes?.join(" ")||"",r,n.errorMessage,n.subError)}}static postProcess(e,t,r,o){if(un.checkResponseStatus(r)||un.checkResponseForRetryAfter(r)){const n={throttleTime:un.calculateThrottleTime(parseInt(r.headers[C])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};e.setThrottlingCache(un.generateThrottlingStorageKey(t),n,o)}}static checkResponseStatus(e){return 429===e.status||e.status>=500&&e.status<600}static checkResponseForRetryAfter(e){return!!e.headers&&(e.headers.hasOwnProperty(C)&&(e.status<200||e.status>=300))}static calculateThrottleTime(e){const t=e<=0?0:e,r=Date.now()/1e3;return Math.floor(1e3*Math.min(r+(t||60),r+3600))}static removeThrottle(e,t,r,o){const n=dn(t,r,o),i=this.generateThrottlingStorageKey(n);e.removeItem(i,r.correlationId)}}class gn extends Te{constructor(e,t,r){super(e.errorCode,e.correlationId,e.errorMessage,e.subError),Object.setPrototypeOf(this,gn.prototype),this.name="NetworkError",this.error=e,this.httpStatus=t,this.responseHeaders=r}}function pn(e,t,r,o){return e.errorMessage=`${e.errorMessage}, additionalErrorInfo: error.name:${o?.name}, error.message:${o?.message}`,new gn(e,t,r)}function mn(e,t,r){const o={};if(o[I]="application/x-www-form-urlencoded;charset=utf-8",!t&&r)switch(r.type){case cn:try{const e=Hr(r.credential);o[v]=`Oid:${e.uid}@${e.utid}`}catch(t){e.verbose(`1qhtee ${t}`,"")}break;case ln:o[v]=`UPN: ${r.credential}`}return o}function fn(e,t,r,o){const n=new Map;return e.embeddedClientId&&lr(n,t,r),e.extraQueryParameters&&rr(n,e.extraQueryParameters),jt(n,e.correlationId),Nt(n,e.correlationId,o),gr(n)}async function yn(e,t,r,o,n,i,s,a,c,l){const h=await async function(e,t,r,o,n,i,s,a){let c;un.preProcess(n,e,o);try{c=await Fo(i.sendPostRequestAsync.bind(i),Po,s,a,o)(t,r);const e=c.headers||{};a?.addFields({refreshTokenSize:c.body.refresh_token?.length||0,httpVerToken:e[A]||"",requestId:e[b]||""},o)}catch(e){if(e instanceof gn){const t=e.responseHeaders;throw t&&a?.addFields({httpVerToken:t[A]||"",requestId:t[b]||"",contentTypeHeader:t[I]||void 0,contentLengthHeader:t[w]||void 0,httpStatus:e.httpStatus},o),e.error}throw e instanceof Te?e:Pe(nt,o)}return un.postProcess(n,e,c,o),c}(o,e,{body:t,headers:r},n,i,s,a,c);return l&&h.status<500&&429!==h.status&&l.clearTelemetryCache(),h}class In{constructor(e,t,r,o){this.networkInterface=e,this.logger=t,this.performanceClient=r,this.correlationId=o}async detectRegion(e,t){let r=e;if(r)t.region_source=re;else{const e=In.IMDS_OPTIONS;try{const o=await Fo(this.getRegionFromIMDS.bind(this),Uo,this.logger,this.performanceClient,this.correlationId)("2021-02-01",e);if(200===o.status&&(r=o.body?.location,r&&(t.region_source=oe)),400===o.status){const o=await Fo(this.getCurrentVersion.bind(this),"regionDiscoveryGetCurrentVersion",this.logger,this.performanceClient,this.correlationId)(e);if(!o)return t.region_source=te,null;const n=await Fo(this.getRegionFromIMDS.bind(this),Uo,this.logger,this.performanceClient,this.correlationId)(o,e);200===n.status&&(r=n.body?.location,r&&(t.region_source=oe))}}catch(e){return t.region_source=te,null}}return r||(t.region_source=te),r||null}async getRegionFromIMDS(e,t){return this.networkInterface.sendGetRequestAsync(`${u}?api-version=${e}`,t,2e3)}async getCurrentVersion(e){try{const t=await this.networkInterface.sendGetRequestAsync(`${u}?format=json`,e);return 400===t.status&&t.body&&t.body["newest-versions"]&&t.body["newest-versions"].length>0?t.body["newest-versions"][0]:null}catch(e){return null}}}In.IMDS_OPTIONS={headers:{Metadata:"true"}};class wn{constructor(e,t,r,o,n,i,s,a){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=r,this.authorityOptions=o,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=n,this.performanceClient=s,this.correlationId=i,this.managedIdentity=a||!1,this.regionDiscovery=new In(t,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(n))return Br;const t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case"adfs":return $r;case"dstsv2":return Kr}return Dr}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new Er(e,this.correlationId),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw Pe(ot,this.correlationId)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw Pe(ot,this.correlationId)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw Pe(ot,this.correlationId)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Pe(At,this.correlationId);return this.replacePath(this.metadata.end_session_endpoint)}throw Pe(ot,this.correlationId)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw Pe(ot,this.correlationId)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw Pe(ot,this.correlationId)}canReplaceTenant(e){return 1===e.PathSegments.length&&!wn.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Dr&&this.protocolMode!==jr.OIDC}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let t=e;const r=new Er(this.metadata.canonical_authority,this.correlationId).getUrlComponents(),o=r.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach(((e,n)=>{let i=o[n];if(0===n&&this.canReplaceTenant(r)){const e=new Er(this.metadata.authorization_endpoint,this.correlationId).getUrlComponents().PathSegments[0];i!==e&&(this.logger.verbose(`1q3g2x ${i} ${e}`,this.correlationId),i=e)}e!==i&&(t=t.replace(`/${i}/`,`/${e}/`))})),this.replaceTenant(t)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===$r||this.protocolMode===jr.OIDC&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){const e=this.getCurrentMetadataEntity(),t=await Fo(this.updateCloudDiscoveryMetadata.bind(this),"authorityUpdateCloudDiscoveryMetadata",this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const r=await Fo(this.updateEndpointMetadata.bind(this),"authorityUpdateEndpointMetadata",this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,t,{source:r}),this.performanceClient?.addFields({cloudDiscoverySource:t,authorityEndpointSource:r},this.correlationId)}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort,this.correlationId);return e||(e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:Ao(),jwks_uri:""}),e}updateCachedMetadata(e,t,r){t!==W&&r?.source!==W&&(e.expiresAt=Ao(),e.canonical_authority=this.canonicalAuthority);const o=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache,this.correlationId);this.cacheManager.setAuthorityMetadata(o,e,this.correlationId),this.metadata=e}async updateEndpointMetadata(e){const t=this.updateEndpointMetadataFromLocalSources(e);if(t){if(t.source===Q&&this.authorityOptions.azureRegionConfiguration?.azureRegion&&t.metadata){So(e,await Fo(this.updateMetadataWithRegionalInformation.bind(this),No,this.logger,this.performanceClient,this.correlationId)(t.metadata),!1),e.canonical_authority=this.canonicalAuthority}return t.source}let r=await Fo(this.getEndpointMetadataFromNetwork.bind(this),"authorityGetEndpointMetadataFromNetwork",this.logger,this.performanceClient,this.correlationId)();if(r)return this.validateIssuer(r.issuer),this.authorityOptions.azureRegionConfiguration?.azureRegion&&(r=await Fo(this.updateMetadataWithRegionalInformation.bind(this),No,this.logger,this.performanceClient,this.correlationId)(r)),So(e,r,!0),G;throw Pe(it,this.defaultOpenIdConfigurationEndpoint,this.correlationId)}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("1fi0kc",this.correlationId);const t=this.getEndpointMetadataFromConfig();if(t)return this.logger.verbose("06t0uj",this.correlationId),So(e,t,!1),{source:J};this.logger.verbose("151k0p",this.correlationId);const r=this.getEndpointMetadataFromHardcodedValues();if(r)return So(e,r,!1),{source:Q,metadata:r};this.logger.verbose("1imop5",this.correlationId);const o=Eo(e);return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!o?(this.logger.verbose("16uq31",""),{source:W}):(o&&this.logger.verbose("0uoibc",""),null)}isAuthoritySameType(e){return new Er(e.canonical_authority,this.correlationId).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(e){throw Se(De,this.correlationId)}return null}async getEndpointMetadataFromNetwork(){const e={},t=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`1y65x6 ${t}`,this.correlationId);try{const r=await this.networkInterface.sendGetRequestAsync(t,e),o=function(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}(r.body);return o?r.body:(this.logger.verbose("1koyv8",this.correlationId),null)}catch(e){return this.logger.verbose(`0a9wik ${e}`,this.correlationId),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in Rr?Rr[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(e){const t=this.authorityOptions.azureRegionConfiguration?.azureRegion;if(t){if("TryAutoDetect"!==t)return this.regionDiscoveryMetadata.region_outcome=ne,this.regionDiscoveryMetadata.region_used=t,wn.replaceWithRegionalInformation(e,t,this.correlationId);const r=await Fo(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),"regionDiscoveryDetectRegion",this.logger,this.performanceClient,this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion,this.regionDiscoveryMetadata);if(r)return this.regionDiscoveryMetadata.region_outcome=ie,this.regionDiscoveryMetadata.region_used=r,wn.replaceWithRegionalInformation(e,r,this.correlationId);this.regionDiscoveryMetadata.region_outcome=se}return e}async updateCloudDiscoveryMetadata(e){const t=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(t)return t;const r=await Fo(this.getCloudDiscoveryMetadataFromNetwork.bind(this),"authorityGetCloudDiscoveryMetadataFromNetwork",this.logger,this.performanceClient,this.correlationId)();if(r)return _o(e,r,!0),G;throw Se($e,this.correlationId)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("1tpqlr",this.correlationId),this.logger.verbosePii(`1fy7uz ${this.authorityOptions.knownAuthorities||h}`,this.correlationId),this.logger.verbosePii(`08zabj ${this.authorityOptions.authorityMetadata||h}`,this.correlationId),this.logger.verbosePii(`1o1kv3 ${e.canonical_authority||h}`,this.correlationId);const t=this.getCloudDiscoveryMetadataFromConfig();if(t)return this.logger.verbose("1nakio",this.correlationId),_o(e,t,!1),J;this.logger.verbose("1x74aj",this.correlationId);const r=(o=this.hostnameAndPort,qr(Or.metadata,o));var o;if(r)return this.logger.verbose("0by47c",this.correlationId),_o(e,r,!1),Q;this.logger.verbose("0r2fzy",this.correlationId);const n=Eo(e);return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!n?(this.logger.verbose("1uffgh",""),W):(n&&this.logger.verbose("0uoibc",""),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===Br)return this.logger.verbose("04y84h",this.correlationId),wn.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("0gszr3",this.correlationId);try{this.logger.verbose("1iifkx",this.correlationId);const e=qr(JSON.parse(this.authorityOptions.cloudDiscoveryMetadata).metadata,this.hostnameAndPort);if(this.logger.verbose("0q67e3",""),e)return this.logger.verbose("0hzfao",this.correlationId),e;this.logger.verbose("1ajz3u",this.correlationId)}catch(e){throw this.logger.verbose("1wq5tu",this.correlationId),Se(He,this.correlationId)}}return this.isInKnownAuthorities(this.hostnameAndPort)?(this.logger.verbose("0mt9al",this.correlationId),wn.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){const e=`${o}${this.canonicalAuthority}oauth2/v2.0/authorize`,t={};let r=null;try{const o=await this.networkInterface.sendGetRequestAsync(e,t);let n,i;if(function(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}(o.body))n=o.body,i=n.metadata,this.logger.verbosePii(`1vglyt ${n.tenant_discovery_endpoint}`,this.correlationId);else{if(!function(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}(o.body))return this.logger.error("0768g0",this.correlationId),null;if(this.logger.warning(`062uto ${o.status}`,this.correlationId),n=o.body,"invalid_instance"===n.error)return this.logger.error("1x90tm",this.correlationId),null;this.logger.warning(`0wchdm ${n.error}`,this.correlationId),this.logger.warning(`1s5mpv ${n.error_description}`,this.correlationId),this.logger.warning("1yhqpw",this.correlationId),i=[]}this.logger.verbose("1lrobr",this.correlationId),r=qr(i,this.hostnameAndPort)}catch(e){if(e instanceof Te)this.logger.error(`0vwhc7 ${e.errorCode} ${e.errorMessage}`,this.correlationId);else{const t=e;this.logger.error(`0s2z41 ${t.name} ${t.message}`,this.correlationId)}return null}return r||(this.logger.warning("0jp28q",this.correlationId),this.logger.verbose("130sd8",this.correlationId),r=wn.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),r}isInKnownAuthorities(e){const t=e.toLowerCase();return this.authorityOptions.knownAuthorities.filter((e=>e&&Er.getDomainFromUrl(e,this.correlationId).toLowerCase()===t)).length>0}static generateAuthority(e,t){let o;if(t&&t.azureCloudInstance!==kr.None){const e=t.tenant?t.tenant:r;o=`${t.azureCloudInstance}/${e}/`}return o||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.managedIdentity)return"login.microsoftonline.com";if(this.discoveryComplete())return this.metadata.preferred_cache;throw Pe(ot,this.correlationId)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return Mr.has(e)}validateIssuer(e){if(!e)throw Se(Ye,this.correlationId);let t;try{t=new URL(e)}catch{throw Se(Ye,this.correlationId)}const r=t.protocol,o=t.host,n=(this.canonicalAuthorityUrlComponents.Protocol||"").toLowerCase(),i=(this.canonicalAuthorityUrlComponents.HostNameAndPort||"").toLowerCase(),s=this.matchesAuthorityOrigin(r,o,n,i),a="https:"===r&&this.isAliasOfKnownMicrosoftAuthority(o),c="https:"===r&&this.matchesRegionalMicrosoftHost(o),l=this.matchesCiamTenantPattern(t,i,this.canonicalAuthorityUrlComponents.PathSegments),h="https:"===r&&this.isInKnownAuthorities(o);if(!(s||a||c||l||h))throw Se(Ye,this.correlationId)}matchesAuthorityOrigin(e,t,r,o){return e===r&&t===o}matchesRegionalMicrosoftHost(e){const t=e.indexOf(".");if(t>0&&t<e.length-1){const r=e.substring(t+1);return this.isAliasOfKnownMicrosoftAuthority(r)}return!1}matchesCiamTenantPattern(e,t,r){const o=r[0],s=o?o.endsWith(i)?o.slice(0,-16):o:t.split(".")[0];if(!s)return!1;const a=`https://${s}${n}`,c=[a,`${a}/${s}`,`${a}/${s}/v2.0`,`${a}/${s}${i}`,`${a}/${s}${i}/v2.0`],l=e.pathname.replace(/\/+$/,""),h=`${e.protocol}//${e.host}${l}`;return c.some((e=>e===h))}static isPublicCloudAuthority(e){return g.indexOf(e)>=0}static buildRegionalAuthorityString(e,t,r,o){const n=new Er(e,r);n.validateAsUri();const i=n.getUrlComponents();let s=`${t}.${i.HostNameAndPort}`;this.isPublicCloudAuthority(i.HostNameAndPort)&&(s=`${t}.login.microsoft.com`);const a=Er.constructAuthorityUriFromObject({...n.getUrlComponents(),HostNameAndPort:s},r).urlString;return o?`${a}?${o}`:a}static replaceWithRegionalInformation(e,t,r){const o={...e};return o.authorization_endpoint=wn.buildRegionalAuthorityString(o.authorization_endpoint,t,r),o.token_endpoint=wn.buildRegionalAuthorityString(o.token_endpoint,t,r),o.end_session_endpoint&&(o.end_session_endpoint=wn.buildRegionalAuthorityString(o.end_session_endpoint,t,r)),o}static transformCIAMAuthority(e,t){let r=e;const o=new Er(e,t).getUrlComponents();if(0===o.PathSegments.length&&o.HostNameAndPort.endsWith(n)){r=`${r}${o.HostNameAndPort.split(".")[0]}${i}`}return r}}function Cn(e){return e.endsWith("/")?e:`${e}/`}function vn(e){const t=e.cloudDiscoveryMetadata;let r;if(t)try{r=JSON.parse(t)}catch(e){throw Se(He,"")}return{canonicalAuthority:e.authority?Cn(e.authority):void 0,knownAuthorities:e.knownAuthorities,cloudDiscoveryMetadata:r}}async function kn(e,t,r,o,n,i,s){const a=wn.transformCIAMAuthority(Cn(e),i),c=new wn(a,t,r,o,n,i,s);try{return await Fo(c.resolveEndpointsAsync.bind(c),"authorityResolveEndpointsAsync",n,s,i)(),c}catch(e){throw Pe(ot,i)}}wn.reservedTenantDomains=new Set(["{tenant}","{tenantid}",_,P,E]);class Tn{constructor(e,t){this.includeRedirectUri=!0,this.config=lo(e),this.logger=new wr(this.config.loggerOptions,Cr,vr),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}async acquireToken(e,t,r){if(!e.code)throw Pe(ut,e.correlationId);r&&r.cloud_instance_host_name&&await Fo(this.updateTokenEndpointAuthority.bind(this),"updateTokenEndpointAuthority",this.logger,this.performanceClient,e.correlationId)(r.cloud_instance_host_name,e.correlationId);const o=go(),n=await Fo(this.executeTokenRequest.bind(this),"authClientExecuteTokenRequest",this.logger,this.performanceClient,e.correlationId)(this.authority,e,this.serverTelemetryManager),i=n.headers?.[b],s=new sn(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);return s.validateTokenResponse(n.body,e.correlationId),Fo(s.handleServerTokenResponse.bind(s),qo,this.logger,this.performanceClient,e.correlationId)(n.body,this.authority,o,e,t,r,void 0,void 0,void 0,i)}getLogoutUri(e){if(!e)throw Se(Le,"");const t=this.createLogoutUrlQueryString(e);return Er.appendQueryString(this.authority.endSessionEndpoint,t)}async executeTokenRequest(e,t,r){const o=fn(t,this.config.authOptions.clientId,this.config.authOptions.redirectUri,this.performanceClient),n=Er.appendQueryString(e.tokenEndpoint,o),i=await Fo(this.createTokenRequestBody.bind(this),"authClientCreateTokenRequestBody",this.logger,this.performanceClient,t.correlationId)(t);let s;if(t.clientInfo)try{const e=Fr(t.clientInfo,this.cryptoUtils.base64Decode);s={credential:`${e.uid}.${e.utid}`,type:cn}}catch(e){this.logger.verbose(`0wznt3 ${e}`,t.correlationId)}const a=mn(this.logger,this.config.systemOptions.preventCorsPreflight,s||t.ccsCredential),c=dn(this.config.authOptions.clientId,t);return Fo(yn,"authorizationCodeClientExecutePostToTokenEndpoint",this.logger,this.performanceClient,t.correlationId)(n,i,a,c,t.correlationId,this.cacheManager,this.networkClient,this.logger,this.performanceClient,r)}async createTokenRequestBody(e){const t=new Map;if(Ft(t,e.embeddedClientId||e.extraParameters?.[ge]||this.config.authOptions.clientId),this.includeRedirectUri)Ht(t,e.redirectUri);else if(!e.redirectUri)throw Se(Re,e.correlationId);if(Lt(t,e.scopes,e.correlationId,!0,this.oidcDefaultScopes),hr(t,e.resource),function(e,t){e.set("code",t)}(t,e.code),Jt(t,this.config.libraryInfo),Wt(t,this.config.telemetry.application),cr(t),this.serverTelemetryManager&&!ho(this.config)&&ar(t,this.serverTelemetryManager),e.codeVerifier&&function(e,t){e.set("code_verifier",t)}(t,e.codeVerifier),this.config.clientCredentials.clientSecret&&Vt(t,this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const r=this.config.clientCredentials.clientAssertion;Yt(t,await hn(r.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),Zt(t,r.assertionType)}if(Xt(t,H),er(t),e.authenticationScheme===X.POP){const r=new Do(this.cryptoUtils,this.performanceClient);let o;if(e.popKid)o=this.cryptoUtils.encodeKid(e.popKid);else{o=(await Fo(r.generateCnf.bind(r),xo,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString}ir(t,o)}else if(e.authenticationScheme===X.SSH){if(!e.sshJwk)throw Se(Ke,e.correlationId);sr(t,e.sshJwk)}let r;if(e.clientInfo)try{const t=Fr(e.clientInfo,this.cryptoUtils.base64Decode);r={credential:`${t.uid}.${t.utid}`,type:cn}}catch(t){this.logger.verbose(`0wznt3 ${t}`,e.correlationId)}else r=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&r)switch(r.type){case cn:try{Kt(t,Hr(r.credential))}catch(t){this.logger.verbose(`1qhtee ${t}`,e.correlationId)}break;case ln:$t(t,r.credential)}return e.embeddedClientId&&lr(t,this.config.authOptions.clientId,this.config.authOptions.redirectUri),e.extraParameters&&rr(t,e.extraParameters),!e.enableSpaAuthorizationCode||e.extraParameters&&e.extraParameters[ye]||rr(t,{[ye]:"1"}),Nt(t,e.correlationId,this.performanceClient),zt(t,e.correlationId,e.claims,this.config.authOptions.clientCapabilities,e.skipBrokerClaims),gr(t)}createLogoutUrlQueryString(e){const t=new Map;return e.postLogoutRedirectUri&&function(e,t){e.set("post_logout_redirect_uri",t)}(t,e.postLogoutRedirectUri),e.correlationId&&jt(t,e.correlationId),e.idTokenHint&&function(e,t){e.set("id_token_hint",t)}(t,e.idTokenHint),e.state&&Gt(t,e.state),e.logoutHint&&function(e,t){e.set("logout_hint",t)}(t,e.logoutHint),e.extraQueryParameters&&rr(t,e.extraQueryParameters),this.config.authOptions.instanceAware&&tr(t),gr(t)}async updateTokenEndpointAuthority(e,t){const r=`https://${e}/${this.authority.tenant}/`,o=await kn(r,this.networkClient,this.cacheManager,this.authority.options,this.logger,t,this.performanceClient);this.authority=o}}class bn{constructor(e,t){this.config=lo(e),this.logger=new wr(this.config.loggerOptions,Cr,vr),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}async acquireToken(e,t){const r=go(),o=await Fo(this.executeTokenRequest.bind(this),"refreshTokenClientExecuteTokenRequest",this.logger,this.performanceClient,e.correlationId)(e,this.authority),n=o.headers?.[b],i=new sn(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);return i.validateTokenResponse(o.body,e.correlationId),Fo(i.handleServerTokenResponse.bind(i),qo,this.logger,this.performanceClient,e.correlationId)(o.body,this.authority,r,e,t,void 0,void 0,!0,e.forceCache,n)}async acquireTokenByRefreshToken(e,t){if(!e)throw Se(Ue,"");if(!e.account)throw Pe(ft,e.correlationId);if(this.cacheManager.isAppMetadataFOCI(e.account.environment,e.correlationId))try{return await Fo(this.acquireTokenWithCachedRefreshToken.bind(this),Ro,this.logger,this.performanceClient,e.correlationId)(e,!0,t)}catch(r){const o=r instanceof Xo&&r.errorCode===$o,n=r instanceof rn&&"invalid_grant"===r.errorCode&&"client_mismatch"===r.subError;if(o||n)return Fo(this.acquireTokenWithCachedRefreshToken.bind(this),Ro,this.logger,this.performanceClient,e.correlationId)(e,!1,t);throw r}return Fo(this.acquireTokenWithCachedRefreshToken.bind(this),Ro,this.logger,this.performanceClient,e.correlationId)(e,!1,t)}async acquireTokenWithCachedRefreshToken(e,t,r){const o=Lo(this.cacheManager.getRefreshToken.bind(this.cacheManager),"cacheManagerGetRefreshToken",this.logger,this.performanceClient,e.correlationId)(e.account,t,e.correlationId,void 0);if(!o)throw tn($o,e.correlationId);if(o.expiresOn){const t=e.refreshTokenExpirationOffsetSeconds||300;if(this.performanceClient?.addFields({cacheRtExpiresOnSeconds:Number(o.expiresOn),rtOffsetSeconds:t},e.correlationId),fo(o.expiresOn,t))throw tn(Bo,e.correlationId)}const n={...e,refreshToken:o.secret,authenticationScheme:e.authenticationScheme||X.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:cn}};try{return await Fo(this.acquireToken.bind(this),"refreshTokenClientAcquireToken",this.logger,this.performanceClient,e.correlationId)(n,r)}catch(t){if(t instanceof Xo&&t.subError===Go){this.logger.verbose("1pg3ap",e.correlationId);const t=this.cacheManager.generateCredentialKey(o);this.cacheManager.removeRefreshToken(t,e.correlationId)}throw t}}async executeTokenRequest(e,t){const r=fn(e,this.config.authOptions.clientId,this.config.authOptions.redirectUri,this.performanceClient),o=Er.appendQueryString(t.tokenEndpoint,r),n=await Fo(this.createTokenRequestBody.bind(this),"refreshTokenClientCreateTokenRequestBody",this.logger,this.performanceClient,e.correlationId)(e),i=mn(this.logger,this.config.systemOptions.preventCorsPreflight,e.ccsCredential),s=dn(this.config.authOptions.clientId,e);return Fo(yn,"refreshTokenClientExecutePostToTokenEndpoint",this.logger,this.performanceClient,e.correlationId)(o,n,i,s,e.correlationId,this.cacheManager,this.networkClient,this.logger,this.performanceClient,this.serverTelemetryManager)}async createTokenRequestBody(e){const t=new Map;if(Ft(t,e.embeddedClientId||e.extraParameters?.[ge]||this.config.authOptions.clientId),e.redirectUri&&Ht(t,e.redirectUri),Lt(t,e.scopes,e.correlationId,!0,this.config.authOptions.authority.options.OIDCOptions?.defaultScopes),Xt(t,D),er(t),Jt(t,this.config.libraryInfo),Wt(t,this.config.telemetry.application),cr(t),this.serverTelemetryManager&&!ho(this.config)&&ar(t,this.serverTelemetryManager),function(e,t){e.set("refresh_token",t)}(t,e.refreshToken),this.config.clientCredentials.clientSecret&&Vt(t,this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const r=this.config.clientCredentials.clientAssertion;Yt(t,await hn(r.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),Zt(t,r.assertionType)}if(e.authenticationScheme===X.POP){const r=new Do(this.cryptoUtils,this.performanceClient);let o;if(e.popKid)o=this.cryptoUtils.encodeKid(e.popKid);else{o=(await Fo(r.generateCnf.bind(r),xo,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString}ir(t,o)}else if(e.authenticationScheme===X.SSH){if(!e.sshJwk)throw Se(Ke,e.correlationId);sr(t,e.sshJwk)}if(this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case cn:try{Kt(t,Hr(e.ccsCredential.credential))}catch(t){this.logger.verbose(`1qhtee ${t}`,e.correlationId)}break;case ln:$t(t,e.ccsCredential.credential)}return e.embeddedClientId&&lr(t,this.config.authOptions.clientId,this.config.authOptions.redirectUri),e.extraParameters&&rr(t,{...e.extraParameters}),Nt(t,e.correlationId,this.performanceClient),zt(t,e.correlationId,e.claims,this.config.authOptions.clientCapabilities,e.skipBrokerClaims),gr(t)}}class An{constructor(e,t){this.config=lo(e),this.logger=new wr(this.config.loggerOptions,Cr,vr),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}async acquireCachedToken(e){let t=ae;if(e.forceRefresh||!_e.isEmptyObj(e.claims))throw this.setCacheOutcome(ce,e.correlationId),Pe(vt,e.correlationId);if(!e.account)throw Pe(ft,e.correlationId);const r=e.account.tenantId||function(e,t){const r=new Er(e,t).getUrlComponents(),o=r.PathSegments.slice(-1)[0]?.toLowerCase();switch(o){case _:case E:case P:return;default:return o}}(e.authority,e.correlationId),o=this.cacheManager.getTokenKeys(),n=this.cacheManager.getAccessToken(e.account,e,o,r);if(!n)throw this.setCacheOutcome(le,e.correlationId),Pe(vt,e.correlationId);if(Io(n.cachedAt)||fo(n.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(he,e.correlationId),Pe(vt,e.correlationId);if(e.resource){if(n.resource!==e.resource)throw this.setCacheOutcome(le,e.correlationId),Pe(vt,e.correlationId)}else n.refreshOn&&fo(n.refreshOn,0)&&(t=de);const i=e.authority||this.authority.getPreferredCache(),s={account:this.cacheManager.getAccount(this.cacheManager.generateAccountKey(e.account),e.correlationId),accessToken:n,idToken:this.cacheManager.getIdToken(e.account,e.correlationId,o,r),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(i,e.correlationId)};return this.setCacheOutcome(t,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await Fo(this.generateResultFromCacheRecord.bind(this),"silentFlowClientGenerateResultFromCacheRecord",this.logger,this.performanceClient,e.correlationId)(s,e),t]}setCacheOutcome(e,t){this.serverTelemetryManager?.setCacheOutcome(e),this.performanceClient?.addFields({cacheOutcome:e},t),e!==ae&&this.logger.info(`09ingz ${e}`,t)}async generateResultFromCacheRecord(e,t){let r;return e.idToken&&(r=Tr(e.idToken.secret,this.config.cryptoInterface.base64Decode,t.correlationId)),sn.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,this.performanceClient,r)}}const Sn={sendGetRequestAsync:()=>Promise.reject(Pe(Pt,"")),sendPostRequestAsync:()=>Promise.reject(Pe(Pt,""))};function _n(e,t,r,o){const n=t.correlationId,i=new Map;Ft(i,t.embeddedClientId||t.extraQueryParameters?.[ge]||e.clientId);if(Lt(i,[...t.scopes||[],...t.extraScopesToConsent||[]],t.correlationId,!0,e.authority.options.OIDCOptions?.defaultScopes),hr(i,t.resource),Ht(i,t.redirectUri),jt(i,n),function(e,t){e.set("response_mode",t||F.QUERY)}(i,t.responseMode),er(i),function(e){e.set("clidata","1")}(i),t.prompt&&(!function(e,t){e.set("prompt",t)}(i,t.prompt),o?.addFields({prompt:t.prompt},n)),t.domainHint&&(!function(e,t){e.set("domain_hint",t)}(i,t.domainHint),o?.addFields({domainHintFromRequest:!0},n)),t.prompt!==N.SELECT_ACCOUNT)if(t.sid&&t.prompt===N.NONE)r.verbose("1tvqyx",t.correlationId),Bt(i,t.sid),o?.addFields({sidFromRequest:!0},n);else if(t.account){const e=(s=t.account,s.idTokenClaims?.sid||null);let a=function(e){return e.loginHint||e.idTokenClaims?.login_hint||null}(t.account);if(a&&t.domainHint&&(r.warning("0wkg3v",t.correlationId),a=null),a){r.verbose("1eyfsw",t.correlationId),Dt(i,a),o?.addFields({loginHintFromClaim:!0},n);try{Kt(i,Hr(t.account.homeAccountId))}catch(e){r.verbose("12ugck",t.correlationId)}}else if(e&&t.prompt===N.NONE){r.verbose("1rmd8s",t.correlationId),Bt(i,e),o?.addFields({sidFromClaim:!0},n);try{Kt(i,Hr(t.account.homeAccountId))}catch(e){r.verbose("12ugck",t.correlationId)}}else if(t.loginHint)r.verbose("0y3007",t.correlationId),Dt(i,t.loginHint),$t(i,t.loginHint),o?.addFields({loginHintFromRequest:!0},n);else if(t.account.username){r.verbose("02f507",t.correlationId),Dt(i,t.account.username),o?.addFields({loginHintFromUpn:!0},n);try{Kt(i,Hr(t.account.homeAccountId))}catch(e){r.verbose("12ugck",t.correlationId)}}}else t.loginHint&&(r.verbose("0g01ey",t.correlationId),Dt(i,t.loginHint),$t(i,t.loginHint),o?.addFields({loginHintFromRequest:!0},n));else r.verbose("169k9v",t.correlationId);var s;return t.nonce&&function(e,t){e.set("nonce",t)}(i,t.nonce),t.state&&Gt(i,t.state),t.embeddedClientId&&lr(i,e.clientId,e.redirectUri),zt(i,t.correlationId,t.claims,e.clientCapabilities,t.skipBrokerClaims),!e.instanceAware||t.extraQueryParameters&&Object.keys(t.extraQueryParameters).includes(ve)||tr(i),i}function En(e,t){const r=gr(t);return Er.appendQueryString(e.authorizationEndpoint,r)}function Pn(e,t,r){if(!e.state||!t)throw e.state?Pe(lt,r,"Cached State"):Pe(lt,r,"Server State");let o,n;try{o=decodeURIComponent(e.state)}catch(t){throw Pe(at,r,e.state)}try{n=decodeURIComponent(t)}catch(t){throw Pe(at,r,e.state)}if(o!==n)throw Pe(ct,r);if(e.error||e.error_description||e.suberror){const t=function(e){const t="code=",r=e.error_uri?.lastIndexOf(t);return r&&r>=0?e.error_uri?.substring(r+t.length):void 0}(e);if(en(e.error,e.error_description,e.suberror))throw new Xo(e.error||"",e.correlation_id||r,e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.claims||"",t);throw new rn(e.error||"",e.correlation_id||r,e.error_description,e.suberror,t)}}function Rn(e,t){if(e){if(t.resource&&(On(t.extraParameters)||On(t.extraQueryParameters)))throw Pe(Mt,t.correlationId||"");if(!t.resource)throw Pe(Ot,t.correlationId||"")}}function On(e){return!!e&&Object.prototype.hasOwnProperty.call(e,"resource")}const Mn="unexpected_error";var xn=Object.freeze({__proto__:null,postRequestFailed:"post_request_failed",unexpectedError:Mn});function qn(e){const{skus:t,libraryName:r,libraryVersion:o,extensionName:n,extensionVersion:i}=e,s=new Map([[0,[r,o]],[2,[n,i]]]);let a=[];if(t?.length){if(a=t.split(","),a.length<4)return t}else a=Array.from({length:4},(()=>"|"));return s.forEach(((e,t)=>{2===e.length&&e[0]?.length&&e[1]?.length&&function(e){const{skuArr:t,index:r,skuName:o,skuVersion:n}=e;if(r>=t.length)return;t[r]=[o,n].join("|")}({skuArr:a,index:t,skuName:e[0],skuVersion:e[1]})})),a.join(",")}class Nn{constructor(e,t){this.cacheOutcome=ae,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||"",this.wrapperVer=e.wrapperVer||"",this.telemetryCacheKey=Y+"-"+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${Z}${this.cacheOutcome}`,t=[this.wrapperSKU,this.wrapperVer],r=this.getNativeBrokerErrorCode();r?.length&&t.push(`broker_error=${r}`);const o=t.join(Z),n=[e,this.getRegionDiscoveryFields()].join(Z);return[V,n,o].join("|")}generateLastRequestHeaderValue(){const e=this.getLastRequests(),t=Nn.maxErrorsToSend(e),r=e.failedRequests.slice(0,2*t).join(Z),o=e.errors.slice(0,t).join(Z),n=e.errors.length,i=[n,t<n?"1":"0"].join(Z);return[V,e.cacheHits,r,o,i].join("|")}cacheFailedRequest(e){try{const t=this.getLastRequests();t.errors.length>=50&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof Te?e.subError?t.errors.push(e.subError):e.errorCode?t.errors.push(e.errorCode):t.errors.push(e.toString()):t.errors.push(e.toString()):t.errors.push("unknown_error"),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId)}catch{}}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId),e.cacheHits}getLastRequests(){return this.cacheManager.getServerTelemetry(this.telemetryCacheKey,this.correlationId)||{failedRequests:[],errors:[],cacheHits:0}}clearTelemetryCache(){const e=this.getLastRequests(),t=Nn.maxErrorsToSend(e);if(t===e.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey,this.correlationId);else{const r={failedRequests:e.failedRequests.slice(2*t),errors:e.errors.slice(t),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r,this.correlationId)}}static maxErrorsToSend(e){let t,r=0,o=0;const n=e.errors.length;for(t=0;t<n;t++){const n=e.failedRequests[2*t]||"",i=e.failedRequests[2*t+1]||"",s=e.errors[t]||"";if(o+=n.toString().length+i.toString().length+s.length+3,!(o<330))break;r+=1}return r}getRegionDiscoveryFields(){const e=[];return e.push(this.regionUsed||""),e.push(this.regionSource||""),e.push(this.regionOutcome||""),e.join(",")}updateRegionDiscoveryMetadata(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome}setCacheOutcome(e){this.cacheOutcome=e}setNativeBrokerErrorCode(e){const t=this.getLastRequests();t.nativeBrokerErrorCode=e,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const e=this.getLastRequests();delete e.nativeBrokerErrorCode,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId)}static makeExtraSkuString(e){return qn(e)}}class Un extends Nn{constructor(){super({clientId:"",apiId:0,correlationId:"",forceRefresh:!1},{})}generateCurrentRequestHeaderValue(){return""}generateLastRequestHeaderValue(){return""}cacheFailedRequest(){}incrementCacheHits(){return 0}clearTelemetryCache(){}getRegionDiscoveryFields(){return""}updateRegionDiscoveryMetadata(){}setCacheOutcome(){}setNativeBrokerErrorCode(){}getNativeBrokerErrorCode(){}clearNativeBrokerErrorCode(){}}class Ln extends Te{constructor(e,t,r){super(e,t,r),this.name="JoseHeaderError",Object.setPrototypeOf(this,Ln.prototype)}}function Fn(e,t){return new Ln(e,t)}class Hn{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw Fn("missing_kid_error","");if(!e.alg)throw Fn("missing_alg_error","");const t=new Hn({typ:e.typ||ue.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)}}function Dn(e,t,r,o=5){if(e instanceof Error)return e instanceof Te?(r.errorCode=e.errorCode,r.subErrorCode=e.subError,void(!r.serverErrorNo&&(e instanceof rn||e instanceof Xo)&&e.errorNo&&(r.serverErrorNo=e.errorNo))):void(e instanceof Ur?r.errorCode=e.errorCode:r.errorStack?.length?t.trace("0lmqrh",r.correlationId):e.stack?.length?(e.stack&&(r.errorStack=function(e,t){if(t<0)return[];const r=e.split("\n")||[],o=[],n=r[0];n.startsWith("TypeError: Cannot read property")||n.startsWith("TypeError: Cannot read properties of")||n.startsWith("TypeError: Cannot set property")||n.startsWith("TypeError: Cannot set properties of")||n.endsWith("is not a function")?o.push($n(n)):(n.startsWith("SyntaxError")||n.startsWith("TypeError"))&&o.push($n(n.replace(/['].*[']|["].*["]/g,"<redacted>")));for(let e=1;e<r.length&&!(o.length>=t);e++){const t=r[e];o.push($n(t))}return o}(e.stack,o)),r.errorName=e.name):t.trace("1cnpwa",r.correlationId));t.trace("0gcyox",r.correlationId)}function $n(e){const t=e.lastIndexOf(" ")+1;if(t<1)return e;const r=e.substring(t);let o=r.lastIndexOf("/");return o=o<0?r.lastIndexOf("\\"):o,o>=0?(e.substring(0,t)+"("+r.substring(o+1)+(")"===r.charAt(r.length-1)?"":")")).trimStart():e.trimStart()}class Kn{constructor(e,t,r,o,n,i,s){this.authority=t,this.libraryName=o,this.libraryVersion=n,this.globalFields={},this.applicationTelemetry=i,this.clientId=e,this.logger=r,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.eventStack=new Map,this.intFields=s||new Set;for(const e of eo)this.intFields.add(e)}startMeasurement(e,t){const r=t||this.generateId(),o={eventId:this.generateId(),status:Yr,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:r,appName:this.applicationTelemetry?.appName,appVersion:this.applicationTelemetry?.appVersion};var n,i;return this.cacheEventByCorrelationId(o),n=o,(i=this.eventStack.get(r))&&i.push({name:n.name}),{end:(e,t,r)=>this.endMeasurement({...o,...e},t,r),discard:()=>this.discardMeasurements(o.correlationId),add:e=>this.addFields(e,o.correlationId),increment:e=>this.incrementFields(e,o.correlationId),event:o}}endMeasurement(e,t,r){const o=this.eventsByCorrelationId.get(e.correlationId);if(!o)return this.logger.trace(`0k9ti8 ${e.eventId}`,e.correlationId),null;const n=e.eventId===o.eventId;e.durationMs=Math.round(e.durationMs||this.getDurationMs(e.startTimeMs));const i=JSON.stringify(function(e,t,r){if(!t?.length)return;const o=e=>e.length?e[e.length-1]:void 0,n=e.name,i=o(t);if(i?.name!==n)return;const s=t?.pop();if(!s)return;const a=r instanceof Te?r.errorCode:r instanceof Error?r.name:void 0,c=r instanceof Te?r.subError:void 0;a&&s.childErr!==a&&(s.err=a,c&&(s.subErr=c)),delete s.name,delete s.childErr;const l={...s,dur:e.durationMs};e.success||(l.fail=1);const h=o(t);if(!h)return{[n]:l};let d;if(a&&(h.childErr=a),h[n]){const e=Object.keys(h).filter((e=>e.startsWith(n))).length;d=`${n}_${e+1}`}else d=n;return h[d]=l,h}(e,this.eventStack.get(o.correlationId),t));if(n?this.discardMeasurements(o.correlationId):o.incompleteSubMeasurements?.delete(e.eventId),t&&Dn(t,this.logger,o),!n)return o.ext={...o.ext,...e.ext},o.ext[e.name+"DurationMs"]=Math.floor(e.durationMs),{...o};n&&!t&&(o.errorCode||o.subErrorCode)&&(this.logger.trace(`1fm1tm ${e.name}`,e.correlationId),o.errorCode=void 0,o.subErrorCode=void 0);let s={...o,...e},a=0;s.incompleteSubMeasurements?.forEach((t=>{this.logger.trace(`0nxk52 ${t.name} ${e.name}`,s.correlationId),a++})),s.incompleteSubMeasurements=void 0;const c=function(e){const t=[];for(const r of["",e]){const e=yr.get(r);t.push(...e?.logs??[]),yr.delete(r)}return t}(e.correlationId).map((e=>`${e.milliseconds},${e.hash}`)).join(";");return s={...s,status:Zr,incompleteSubsCount:a,context:i,logs:c,...this.globalFields},r&&(s.accountType=function(e){const t=e?.idTokenClaims;return t?.tfp||t?.acr?"B2C":t?.tid?"9188040d-6c67-4c5b-b112-36a304b66dad"===t?.tid?"MSA":"AAD":void 0}(r),s.dataBoundary=r.dataBoundary),this.truncateIntegralFields(s),this.emitEvents([s],e.correlationId),s}addFields(e,t){const r=this.eventsByCorrelationId.get(t);if(r){const o={},n={};for(const t in e)if(t.startsWith(Xr)){const r=t.slice(4),o=e[t];"string"!=typeof o&&"number"!=typeof o||(n[r]=o)}else o[t]=e[t];const i={...r,...o};Object.keys(n).length&&(i.ext={...i.ext,...n}),this.eventsByCorrelationId.set(t,i)}else this.logger.trace("0thl6s",t)}addGlobalFields(e){this.globalFields={...this.globalFields,...e}}incrementFields(e,t){const r=this.eventsByCorrelationId.get(t);if(r)for(const t in e)if(t.startsWith(Xr)){r.ext=r.ext||{};const o=t.slice(4),n=r.ext[o];if(void 0===n)r.ext[o]=0;else if(isNaN(Number(n)))return;r.ext[o]=(Number(r.ext[o])||0)+(e[t]??0)}else{if(r.hasOwnProperty(t)){if(isNaN(Number(r[t])))return}else r[t]=0;r[t]+=e[t]}else this.logger.trace("0thl6s",t)}cacheEventByCorrelationId(e){const t=this.eventsByCorrelationId.get(e.correlationId);t?(t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.eventsByCorrelationId.set(e.correlationId,{...e}),this.eventStack.set(e.correlationId,[]))}discardMeasurements(e){this.eventsByCorrelationId.delete(e),this.eventStack.delete(e)}addPerformanceCallback(e){for(const[t,r]of this.callbacks)if(r.toString()===e.toString())return this.logger.warning(`1eap5p ${t}`,""),t;const t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose(`0c9ujz ${t}`,""),t}removePerformanceCallback(e){const t=this.callbacks.delete(e);return t?this.logger.verbose(`0253if ${e}`,""):this.logger.verbose(`0iqk07 ${e}`,""),t}emitEvents(e,t){this.logger.verbose("11jb1y",t),this.callbacks.forEach(((r,o)=>{this.logger.trace(`0p2pjl ${o}`,t),r.apply(null,[e])}))}truncateIntegralFields(e){this.intFields.forEach((t=>{t in e&&"number"==typeof e[t]&&(e[t]=Math.floor(e[t]))}))}getDurationMs(e){const t=Date.now()-e;return t<0?t:0}}const Bn="standardInteractionClientGetDiscoveredAuthority",zn="nativeInteractionClientAcquireToken",jn="acquireTokenBySilentIframe",Jn="initializeBaseRequest",Wn="silentIframeClientTokenHelper",Gn="silentHandlerInitiateAuthRequest",Qn="silentHandlerMonitorIframeForHash",Vn="standardInteractionClientCreateAuthCodeClient",Yn="standardInteractionClientGetClientConfiguration",Zn="standardInteractionClientInitializeAuthorizationRequest",Xn="handleResponseEar",ei="handleResponsePlatformBroker",ti="handleResponseCode",ri="deserializeResponse",oi="removeHiddenIframe",ni="generatePkceCodes",ii="generateHKDF",si="decrypt",ai="generateEarKey",ci="pkce_not_created",li="ear_jwk_empty",hi="ear_jwe_empty",di="crypto_nonexistent",ui="empty_navigate_uri",gi="hash_empty_error",pi="no_state_in_hash",mi="hash_does_not_contain_known_properties",fi="unable_to_parse_state",yi="state_interaction_type_mismatch",Ii="interaction_in_progress",wi="interaction_in_progress_cancelled",Ci="popup_window_error",vi="empty_window_error",ki="user_cancelled",Ti="redirect_bridge_empty_response",bi="redirect_in_iframe",Ai="block_iframe_reload",Si="block_nested_popups",_i="silent_logout_unsupported",Ei="no_account_error",Pi="no_token_request_cache_error",Ri="unable_to_parse_token_request_cache_error",Oi="non_browser_environment",Mi="database_not_open",xi="no_network_connectivity",qi="post_request_failed",Ni="get_request_failed",Ui="failed_to_parse_response",Li="unable_to_load_token",Fi="crypto_key_not_found",Hi="auth_code_required",Di="auth_code_or_nativeAccountId_required",$i="spa_code_and_nativeAccountId_present",Ki="database_unavailable",Bi="unable_to_acquire_token_from_native_platform",zi="native_handshake_timeout",ji="native_extension_not_installed",Ji="native_connection_not_established",Wi="uninitialized_public_client_application",Gi="native_prompt_not_supported",Qi="invalid_base64_string",Vi="invalid_pop_token_request",Yi="failed_to_build_headers",Zi="failed_to_parse_headers",Xi="failed_to_decrypt_ear_response",es="timed_out",ts="empty_response";var rs=Object.freeze({__proto__:null,authCodeOrNativeAccountIdRequired:Di,authCodeRequired:Hi,authRequestNotSetError:"auth_request_not_set_error",blockIframeReload:Ai,blockNestedPopups:Si,cryptoKeyNotFound:Fi,cryptoNonExistent:di,databaseNotOpen:Mi,databaseUnavailable:Ki,earJweEmpty:hi,earJwkEmpty:li,emptyNavigateUri:ui,emptyResponse:ts,emptyWindowError:vi,failedToBuildHeaders:Yi,failedToDecryptEarResponse:Xi,failedToParseHeaders:Zi,failedToParseResponse:Ui,getRequestFailed:Ni,hashDoesNotContainKnownProperties:mi,hashEmptyError:gi,iframeClosedPrematurely:"iframe_closed_prematurely",interactionInProgress:Ii,interactionInProgressCancelled:wi,invalidBase64String:Qi,invalidCacheType:"invalid_cache_type",invalidPopTokenRequest:Vi,nativeConnectionNotEstablished:Ji,nativeExtensionNotInstalled:ji,nativeHandshakeTimeout:zi,nativePromptNotSupported:Gi,noAccountError:Ei,noNetworkConnectivity:xi,noStateInHash:pi,noTokenRequestCacheError:Pi,nonBrowserEnvironment:Oi,pkceNotCreated:ci,popupWindowError:Ci,postRequestFailed:qi,redirectBridgeEmptyResponse:Ti,redirectInIframe:bi,silentLogoutUnsupported:_i,silentPromptValueError:"silent_prompt_value_error",spaCodeAndNativeAccountIdPresent:$i,stateInteractionTypeMismatch:yi,timedOut:es,unableToAcquireTokenFromNativePlatform:Bi,unableToLoadToken:Li,unableToParseState:fi,unableToParseTokenRequestCacheError:Ri,uninitializedPublicClientApplication:Wi,userCancelled:ki});function os(e){return`See https://aka.ms/msal.js.errors#${e} for details`}class ns extends Te{constructor(e,t,r){super(e,t,os(e),r),Object.setPrototypeOf(this,ns.prototype),this.name="BrowserAuthError"}}function is(e,t,r){return new ns(e,t,r)}function ss(e){return(new TextDecoder).decode(as(e))}function as(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw is(Qi,"")}const r=atob(t);return Uint8Array.from(r,(e=>e.codePointAt(0)||0))}const cs="invalid_grant",ls=483,hs=600,ds="msal",us="msal.js.browser",gs="53ee284d-920a-4b59-9d30-a60315b26836",ps="ppnbnpeolgkicgegkbkbjmhlideopiji",ms="MATS",fs="MicrosoftEntra",ys="DOM API",Is="get-token-and-sign-out",ws="PlatformAuthDOMHandler",Cs="PlatformAuthExtensionHandler",vs="Handshake",ks="HandshakeResponse",Ts="GetToken",bs="Response",As={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},Ss="GET",_s="POST",Es="signin",Ps="signout",Rs="request.origin",Os="urlHash",Ms="request.params",xs="code.verifier",qs="interaction.status",Ns="request.native",Us="wrapper.sku",Ls="wrapper.version",Fs={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962,hydrateCache:963,loadExternalTokens:964},Hs={861:"acquireTokenRedirect",862:"acquireTokenPopup",863:"ssoSilent",864:"acquireTokenSilent_authCode",865:"handleRedirectPromise",866:"acquireTokenByCode",61:"acquireTokenSilent_silentFlow",961:"logout",962:"logoutPopup",963:"hydrateCache",964:"loadExternalTokens"};var Ds;e.InteractionType=void 0,(Ds=e.InteractionType||(e.InteractionType={})).Redirect="redirect",Ds.Popup="popup",Ds.Silent="silent",Ds.None="none";const $s={Startup:"startup",Logout:"logout",AcquireToken:"acquireToken",HandleRedirect:"handleRedirect",None:"none"},Ks={scopes:f},Bs="msal.db",zs=`${Bs}.keys`,js={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},Js=[js.Default,js.Skip,js.RefreshTokenAndNetwork];function Ws(e){return encodeURIComponent(Qs(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function Gs(e){return Vs(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Qs(e){return Vs((new TextEncoder).encode(e))}function Vs(e){const t=Array.from(e,(e=>String.fromCodePoint(e))).join("");return btoa(t)}const Ys="AES-GCM",Zs="HKDF",Xs="SHA-256",ea=new Uint8Array([1,0,1]),ta="0123456789abcdef",ra=new Uint32Array(1),oa="raw",na="encrypt",ia="decrypt",sa={name:"RSASSA-PKCS1-v1_5",hash:Xs,modulusLength:2048,publicExponent:ea};async function aa(e){const t=(new TextEncoder).encode(e);return window.crypto.subtle.digest(Xs,t)}function ca(e){return window.crypto.getRandomValues(e)}function la(){return window.crypto.getRandomValues(ra),ra[0]}function ha(){const e=Date.now(),t=1024*la()+(1023&la()),r=new Uint8Array(16),o=Math.trunc(t/2**30),n=t&2**30-1,i=la();r[0]=e/2**40,r[1]=e/2**32,r[2]=e/2**24,r[3]=e/65536,r[4]=e/256,r[5]=e,r[6]=112|o>>>8,r[7]=o,r[8]=128|n>>>24,r[9]=n>>>16,r[10]=n>>>8,r[11]=n,r[12]=i>>>24,r[13]=i>>>16,r[14]=i>>>8,r[15]=i;let s="";for(let e=0;e<r.length;e++)s+=ta.charAt(r[e]>>>4),s+=ta.charAt(15&r[e]),3!==e&&5!==e&&7!==e&&9!==e||(s+="-");return s}async function da(e){return window.crypto.subtle.exportKey("jwk",e)}async function ua(){const e=await pa(),t={alg:"dir",kty:"oct",k:Gs(new Uint8Array(e))};return Qs(JSON.stringify(t))}async function ga(e,t){const r=t.split(".");if(5!==r.length)throw is(Xi,"","jwe_length");const o=await async function(e){const t=ss(e),r=as(JSON.parse(t).k);return window.crypto.subtle.importKey(oa,r,Ys,!1,[ia])}(e).catch((()=>{throw is(Xi,"","import_key")}));try{const e=(new TextEncoder).encode(r[0]),t=as(r[2]),n=as(r[3]),i=as(r[4]),s=8*i.byteLength,a=new Uint8Array(n.length+i.length);a.set(n),a.set(i,n.length);const c=await window.crypto.subtle.decrypt({name:Ys,iv:t,tagLength:s,additionalData:e},o,a);return(new TextDecoder).decode(c)}catch(e){throw is(Xi,"","decrypt")}}async function pa(){const e=await window.crypto.subtle.generateKey({name:Ys,length:256},!0,[na,ia]);return window.crypto.subtle.exportKey(oa,e)}async function ma(e){return window.crypto.subtle.importKey(oa,e,Zs,!1,["deriveKey"])}async function fa(e,t,r){return window.crypto.subtle.deriveKey({name:Zs,salt:t,hash:Xs,info:(new TextEncoder).encode(r)},e,{name:Ys,length:256},!1,[na,ia])}async function ya(e,t,r){const o=(new TextEncoder).encode(t),n=window.crypto.getRandomValues(new Uint8Array(16)),i=await fa(e,n,r),s=await window.crypto.subtle.encrypt({name:Ys,iv:new Uint8Array(12)},i,o);return{data:Gs(new Uint8Array(s)),nonce:Gs(n)}}async function Ia(e,t,r,o){const n=as(o),i=await fa(e,as(t),r),s=await window.crypto.subtle.decrypt({name:Ys,iv:new Uint8Array(12)},i,n);return(new TextDecoder).decode(s)}const wa="storage_not_supported",Ca="stubbed_public_client_application_called",va="in_mem_redirect_unavailable";var ka=Object.freeze({__proto__:null,inMemRedirectUnavailable:va,storageNotSupported:wa,stubbedPublicClientApplicationCalled:Ca});class Ta extends Te{constructor(e,t,r){super(e,t,r),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,Ta.prototype)}}function ba(e,t){return new Ta(e,t,os(e))}function Aa(){const e=window.location.hash,t=window.location.search;let r,o=!1,n=!1,i="";if(e&&e.length>1){const t="#"===e.charAt(0)?e.substring(1):e,n=new URLSearchParams(t);n.has("state")&&(o=!0,i=t,r=n)}if(t&&t.length>1){const e="?"===t.charAt(0)?t.substring(1):t,o=new URLSearchParams(e);o.has("state")&&(n=!0,i=e,r=o)}if(o&&n){i=`${"?"===t.charAt(0)?t.substring(1):t}${"#"===e.charAt(0)?e.substring(1):e}`,r=new URLSearchParams(i)}if(!i||!r)throw is(ts,"");const s=r.get("state");if(!s)throw is(pi,"");const{libraryState:a}=nn(ss,s,""),{id:c,meta:l}=a;if(!c||!l)throw is(fi,"","missing_library_state");return{params:r,payload:i,urlHash:e,urlQuery:t,hasResponseInHash:o,hasResponseInQuery:n,libraryState:{id:c,meta:l}}}function Sa(e){e.location.hash="","function"==typeof e.history.replaceState&&e.history.replaceState(null,"",`${e.location.origin}${e.location.pathname}${e.location.search}`)}function _a(e){const t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):""}function Ea(){return window.parent!==window}function Pa(){if(Ea())return!1;try{const{libraryState:t}=Aa(),{meta:r}=t;return r.interactionType===e.InteractionType.Popup}catch(e){return!1}}let Ra=null;function Oa(e,t){Ra&&(e.verbose("18y01k",t),clearTimeout(Ra.timeoutId),Ra.channel.close(),Ra.reject(is(wi,"")),Ra=null)}async function Ma(e,t,r,o,n){return new Promise(((i,s)=>{t.verbose("1rf6em",r.correlationId);const a=r.correlationId;o.addFields({redirectBridgeTimeoutMs:e,lateResponseExperimentEnabled:n?.iframeTimeoutTelemetry||!1},a);const{libraryState:c}=nn(ss,r.state||"",r.correlationId),l=new BroadcastChannel(c.id);let h,d,u,g=!1;const p=window.setTimeout((()=>{Ra=null,n?.iframeTimeoutTelemetry?(u=o.startMeasurement("waitForBridgeLateResponse",a),g=!0,d=window.setTimeout((()=>{u?.end({success:!1}),clearTimeout(d),l.close()}),6e4)):l.close(),s(is(es,"","redirect_bridge_timeout"))}),e);Ra={timeoutId:p,channel:l,reject:s},l.onmessage=e=>{h=e.data.payload;const t=e?.data&&"number"==typeof e.data.v?e.data.v:void 0;if(g)return u?.end({success:!!h}),clearTimeout(d),void l.close();o.addFields({redirectBridgeMessageVersion:t},a),Ra=null,clearTimeout(p),l.close(),h?i(h):s(is(Ti,a))}}))}function xa(){return"undefined"!=typeof window&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function qa(e){const t=new Er(window.location.href,e||"").getUrlComponents();return`${t.Protocol}//${t.HostNameAndPort}/`}function Na(){if(ur(window.location.hash)&&Ea())throw is(Ai,"")}function Ua(e){if(Ea()&&!e)throw is(bi,"")}function La(){if(Pa())throw is(Si,"")}function Fa(){if("undefined"==typeof window)throw is(Oi,"")}function Ha(e){if(!e)throw is(Wi,"")}function Da(e){Fa(),Na(),La(),Ha(e)}function $a(e,t){if(Da(e),Ua(t.system.allowRedirectInIframe),t.cache.cacheLocation===As.MemoryStorage)throw ba(va,"")}function Ka(e){const t=document.createElement("link");t.rel="preconnect",t.href=new URL(e).origin,t.crossOrigin="anonymous",document.head.appendChild(t),window.setTimeout((()=>{try{document.head.removeChild(t)}catch{}}),1e4)}function Ba(){return ha()}const za=nr;var ja=Object.freeze({__proto__:null,blockAPICallsBeforeInitialize:Ha,blockAcquireTokenInPopups:La,blockNonBrowserEnvironment:Fa,blockRedirectInIframe:Ua,blockReloadInHiddenIframes:Na,buildMergedClaims:za,cancelPendingBridgeResponse:Oa,clearAuthResponseFromUrl:function(e){"function"==typeof e.history?.replaceState&&e.history.replaceState(null,"",`${e.location.origin}${e.location.pathname}`)},clearHash:Sa,createGuid:Ba,getCurrentUri:xa,getHomepage:qa,invoke:Lo,invokeAsync:Fo,isInIframe:Ea,isInPopup:Pa,parseAuthResponseFromUrl:Aa,preconnect:Ka,preflightCheck:Da,redirectPreflightCheck:$a,replaceHash:_a,waitForBridgeResponse:Ma});class Ja{constructor(){this.dbName=Bs,this.version=1,this.tableName=zs,this.dbOpen=!1}async open(){return new Promise(((e,t)=>{const r=window.indexedDB.open(this.dbName,this.version);r.addEventListener("upgradeneeded",(e=>{e.target.result.createObjectStore(this.tableName)})),r.addEventListener("success",(t=>{const r=t;this.db=r.target.result,this.dbOpen=!0,e()})),r.addEventListener("error",(()=>t(is(Ki,""))))}))}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(e){return await this.validateDbIsOpen(),new Promise(((t,r)=>{if(!this.db)return r(is(Mi,""));const o=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);o.addEventListener("success",(e=>{const r=e;this.closeConnection(),t(r.target.result)})),o.addEventListener("error",(e=>{this.closeConnection(),r(e)}))}))}async setItem(e,t){return await this.validateDbIsOpen(),new Promise(((r,o)=>{if(!this.db)return o(is(Mi,""));const n=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(t,e);n.addEventListener("success",(()=>{this.closeConnection(),r()})),n.addEventListener("error",(e=>{this.closeConnection(),o(e)}))}))}async removeItem(e){return await this.validateDbIsOpen(),new Promise(((t,r)=>{if(!this.db)return r(is(Mi,""));const o=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);o.addEventListener("success",(()=>{this.closeConnection(),t()})),o.addEventListener("error",(e=>{this.closeConnection(),r(e)}))}))}async getKeys(){return await this.validateDbIsOpen(),new Promise(((e,t)=>{if(!this.db)return t(is(Mi,""));const r=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();r.addEventListener("success",(t=>{const r=t;this.closeConnection(),e(r.target.result)})),r.addEventListener("error",(e=>{this.closeConnection(),t(e)}))}))}async containsKey(e){return await this.validateDbIsOpen(),new Promise(((t,r)=>{if(!this.db)return r(is(Mi,""));const o=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);o.addEventListener("success",(e=>{const r=e;this.closeConnection(),t(1===r.target.result)})),o.addEventListener("error",(e=>{this.closeConnection(),r(e)}))}))}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise(((e,t)=>{const r=window.indexedDB.deleteDatabase(Bs),o=setTimeout((()=>t(!1)),200);r.addEventListener("success",(()=>(clearTimeout(o),e(!0)))),r.addEventListener("blocked",(()=>(clearTimeout(o),e(!0)))),r.addEventListener("error",(()=>(clearTimeout(o),t(!1))))}))}}class Wa{constructor(){this.cache=new Map}async initialize(){}getItem(e){return this.cache.get(e)||null}getUserData(e){return this.getItem(e)}setItem(e,t){this.cache.set(e,t)}async setUserData(e,t){this.setItem(e,t)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach(((t,r)=>{e.push(r)})),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}decryptData(){return Promise.resolve(null)}}class Ga{constructor(e){this.inMemoryCache=new Wa,this.indexedDBCache=new Ja,this.logger=e}handleDatabaseAccessError(e,t){if(!(e instanceof ns&&e.errorCode===Ki))throw e;this.logger.error("1wx7zz",t)}async getItem(e,t){const r=this.inMemoryCache.getItem(e);if(!r)try{return this.logger.verbose("0naxpl",t),await this.indexedDBCache.getItem(e)}catch(e){this.handleDatabaseAccessError(e,t)}return r}async setItem(e,t,r){this.inMemoryCache.setItem(e,t);try{await this.indexedDBCache.setItem(e,t)}catch(e){this.handleDatabaseAccessError(e,r)}}async removeItem(e,t){this.inMemoryCache.removeItem(e);try{await this.indexedDBCache.removeItem(e)}catch(e){this.handleDatabaseAccessError(e,t)}}async getKeys(e){const t=this.inMemoryCache.getKeys();if(0===t.length)try{return this.logger.verbose("1iqrbq",e),await this.indexedDBCache.getKeys()}catch(t){this.handleDatabaseAccessError(t,e)}return t}async containsKey(e,t){const r=this.inMemoryCache.containsKey(e);if(!r)try{return this.logger.verbose("03zl2j",t),await this.indexedDBCache.containsKey(e)}catch(e){this.handleDatabaseAccessError(e,t)}return r}clearInMemory(e){this.logger.verbose("03r21p",e),this.inMemoryCache.clear(),this.logger.verbose("0uksk1",e)}async clearPersistent(e){try{this.logger.verbose("0rdqut",e);const t=await this.indexedDBCache.deleteDatabase();return t&&this.logger.verbose("149ouc",e),t}catch(t){return this.handleDatabaseAccessError(t,e),!1}}}class Qa{constructor(e,t,r){this.logger=e,function(e){if(!window)throw is(Oi,"");if(!window.crypto)throw is(di,"");if(!e&&!window.crypto.subtle)throw is(di,"","crypto_subtle_undefined")}(r??!1),this.cache=new Ga(this.logger),this.performanceClient=t}createNewGuid(){return ha()}base64Encode(e){return Qs(e)}base64Decode(e){return ss(e)}base64UrlEncode(e){return Ws(e)}encodeKid(e){return this.base64UrlEncode(JSON.stringify({kid:e}))}async getPublicKeyThumbprint(e){const t=this.performanceClient?.startMeasurement("cryptoOptsGetPublicKeyThumbprint",e.correlationId),r=await async function(e,t){return window.crypto.subtle.generateKey(sa,e,t)}(Qa.EXTRACTABLE,Qa.POP_KEY_USAGES),o=await da(r.publicKey),n=Va({e:o.e,kty:o.kty,n:o.n}),i=await this.hashString(n),s=await da(r.privateKey),a=await async function(e,t,r){return window.crypto.subtle.importKey("jwk",e,sa,t,r)}(s,!1,["sign"]);return await this.cache.setItem(i,{privateKey:a,publicKey:r.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri},e.correlationId),t&&t.end({success:!0}),i}async removeTokenBindingKey(e,t){await this.cache.removeItem(e,t);if(await this.cache.containsKey(e,t))throw Pe(bt,t)}async clearKeystore(e){this.cache.clearInMemory(e);try{return await this.cache.clearPersistent(e),!0}catch(t){return t instanceof Error?this.logger.error(`1owpn8 ${t.message}`,e):this.logger.error("0yrmwo",e),!1}}async signJwt(e,t,r,o){const n=this.performanceClient?.startMeasurement("cryptoOptsSignJwt",o),i=await this.cache.getItem(t,o||"");if(!i)throw is(Fi,o||"");const s=await da(i.publicKey),a=Va(s),c=Ws(JSON.stringify({kid:t})),l=Ws(Hn.getShrHeaderString({...r?.header,alg:s.alg,kid:c}));e.cnf={jwk:JSON.parse(a)};const h=`${l}.${Ws(JSON.stringify(e))}`,d=(new TextEncoder).encode(h),u=await async function(e,t){return window.crypto.subtle.sign(sa,e,t)}(i.privateKey,d),g=`${h}.${Gs(new Uint8Array(u))}`;return n&&n.end({success:!0}),g}async hashString(e){return async function(e){const t=await aa(e);return Gs(new Uint8Array(t))}(e)}}function Va(e){return JSON.stringify(e,Object.keys(e).sort())}Qa.POP_KEY_USAGES=["sign","verify"],Qa.EXTRACTABLE=!0;const Ya="acquireTokenSilent",Za="acquireTokenByCode",Xa="acquireTokenPopup",ec="acquireTokenPreRedirect",tc="acquireTokenRedirect",rc="ssoSilent",oc="initializeClientApplication",nc="localStorageUpdated",ic="loadExternalTokens",sc="ssoCapable";var ac=Object.freeze({__proto__:null,AcquireTokenByCode:Za,AcquireTokenPopup:Xa,AcquireTokenPreRedirect:ec,AcquireTokenRedirect:tc,AcquireTokenSilent:Ya,InitializeClientApplication:oc,LoadExternalTokens:ic,LocalStorageUpdated:nc,SsoCapable:sc,SsoSilent:rc,WaitForBridgeLateResponse:"waitForBridgeLateResponse"});const cc="msal",lc="browser",hc=`${cc}.${lc}.log.level`,dc=`${cc}.${lc}.log.pii`,uc=`${cc}.${lc}.performance.enabled`,gc=`${cc}.version`,pc="account.keys",mc="token.keys",fc=`${cc}.${lc}.sso.capable`;function yc(e=3){return e<1?`${cc}.${pc}`:`${cc}.${e}.${pc}`}function Ic(e,t=3){return t<1?`${cc}.${mc}.${e}`:`${cc}.${t}.${mc}.${e}`}const wc=864e5,Cc="Lax",vc="None";class kc{initialize(){return Promise.resolve()}getItem(e){const t=encodeURIComponent(e),r=document.cookie.split(";");for(let e=0;e<r.length;e++){const o=r[e].trim(),n=o.indexOf("=");if((-1===n?o:o.substring(0,n))===t){const e=-1===n?"":o.substring(n+1);try{return decodeURIComponent(e)}catch{return e}}}return""}getUserData(){throw Pe(Pt,"")}setItem(e,t,r,o=!0,n=Cc){let i=`${encodeURIComponent(e)}=${encodeURIComponent(t)};path=/;SameSite=${n};`;if(r){const e=function(e){const t=new Date,r=new Date(t.getTime()+e*wc);return r.toUTCString()}(r);i+=`expires=${e};`}(o||n===vc)&&(i+="Secure;"),document.cookie=i}async setUserData(e,t,r){return Promise.reject(Pe(Pt,r))}removeItem(e){this.setItem(e,"",-1)}getKeys(){const e=document.cookie.split(";"),t=[];return e.forEach((e=>{const r=e.trim(),o=r.indexOf("="),n=-1===o?r:r.substring(0,o);try{t.push(decodeURIComponent(n))}catch{}})),t}containsKey(e){return this.getKeys().includes(e)}decryptData(){return Promise.resolve(null)}}function Tc(e,t){const r=e.getItem(yc(t));return r?JSON.parse(r):[]}function bc(e,t,r){const o=t.getItem(Ic(e,r));if(o){const e=JSON.parse(o);if(e&&e.hasOwnProperty("idToken")&&e.hasOwnProperty("accessToken")&&e.hasOwnProperty("refreshToken"))return e}return{idToken:[],accessToken:[],refreshToken:[]}}function Ac(e){return e.hasOwnProperty("id")&&e.hasOwnProperty("nonce")&&e.hasOwnProperty("data")}const Sc="msal.cache.encryption";class _c{constructor(e,t,r){if(!window.localStorage)throw ba(wa,"");this.memoryStorage=new Wa,this.initialized=!1,this.clientId=e,this.logger=t,this.performanceClient=r,this.broadcast=new BroadcastChannel("msal.broadcast.cache")}async initialize(e){const t=new kc,r=t.getItem(Sc);let o={key:"",id:""};if(r)try{o=JSON.parse(r)}catch(e){}if(o.key&&o.id){const t=Lo(as,"base64Decode",this.logger,this.performanceClient,e)(o.key);this.encryptionCookie={id:o.id,key:await Fo(ma,ii,this.logger,this.performanceClient,e)(t)}}else{const r=ha(),o=await Fo(pa,"generateBaseKey",this.logger,this.performanceClient,e)(),n=Lo(Gs,"urlEncodeArr",this.logger,this.performanceClient,e)(new Uint8Array(o));this.encryptionCookie={id:r,key:await Fo(ma,ii,this.logger,this.performanceClient,e)(o)};const i={id:r,key:n};t.setItem(Sc,JSON.stringify(i),0,!0,vc)}await Fo(this.importExistingCache.bind(this),"importExistingCache",this.logger,this.performanceClient,e)(e),this.broadcast.addEventListener("message",(t=>{this.updateCache(t,e)})),this.initialized=!0}getItem(e){return window.localStorage.getItem(e)}getUserData(e){if(!this.initialized)throw is(Wi,"");return this.memoryStorage.getItem(e)}async decryptData(e,t,r){if(!this.initialized||!this.encryptionCookie)throw is(Wi,"");if(t.id!==this.encryptionCookie.id)return this.performanceClient.incrementFields({encryptedCacheExpiredCount:1},r),null;const o=await Fo(Ia,si,this.logger,this.performanceClient,r)(this.encryptionCookie.key,t.nonce,this.getContext(e),t.data);if(!o)return null;try{return{...JSON.parse(o),lastUpdatedAt:t.lastUpdatedAt}}catch(e){return this.performanceClient.incrementFields({encryptedCacheCorruptionCount:1},r),null}}setItem(e,t){window.localStorage.setItem(e,t)}async setUserData(e,t,r,o,n){if(!this.initialized||!this.encryptionCookie)throw is(Wi,"");if(n)this.setItem(e,t);else{const{data:n,nonce:i}=await Fo(ya,"encrypt",this.logger,this.performanceClient,r)(this.encryptionCookie.key,t,this.getContext(e)),s={id:this.encryptionCookie.id,nonce:i,data:n,lastUpdatedAt:o};this.setItem(e,JSON.stringify(s))}this.memoryStorage.setItem(e,t),this.broadcast.postMessage({key:e,value:t,context:this.getContext(e)})}removeItem(e){this.memoryStorage.containsKey(e)&&(this.memoryStorage.removeItem(e),this.broadcast.postMessage({key:e,value:null,context:this.getContext(e)})),window.localStorage.removeItem(e)}getKeys(){return Object.keys(window.localStorage)}containsKey(e){return window.localStorage.hasOwnProperty(e)}clear(){this.memoryStorage.clear();Tc(this).forEach((e=>this.removeItem(e)));const e=bc(this.clientId,this);e.idToken.forEach((e=>this.removeItem(e))),e.accessToken.forEach((e=>this.removeItem(e))),e.refreshToken.forEach((e=>this.removeItem(e))),this.getKeys().forEach((e=>{(e.startsWith(cc)||-1!==e.indexOf(this.clientId))&&this.removeItem(e)}))}async importExistingCache(e){if(!this.encryptionCookie)return;let t=Tc(this);t=await this.importArray(t,e),t.length?this.setItem(yc(),JSON.stringify(t)):this.removeItem(yc());const r=bc(this.clientId,this);r.idToken=await this.importArray(r.idToken,e),r.accessToken=await this.importArray(r.accessToken,e),r.refreshToken=await this.importArray(r.refreshToken,e),r.idToken.length||r.accessToken.length||r.refreshToken.length?this.setItem(Ic(this.clientId),JSON.stringify(r)):this.removeItem(Ic(this.clientId))}async getItemFromEncryptedCache(e,t){if(!this.encryptionCookie)return null;const r=this.getItem(e);if(!r)return null;let o;try{o=JSON.parse(r)}catch(e){return null}return Ac(o)?o.id!==this.encryptionCookie.id?(this.performanceClient.incrementFields({encryptedCacheExpiredCount:1},t),null):(this.performanceClient.incrementFields({encryptedCacheCount:1},t),Fo(Ia,si,this.logger,this.performanceClient,t)(this.encryptionCookie.key,o.nonce,this.getContext(e),o.data)):(this.performanceClient.incrementFields({unencryptedCacheCount:1},t),r)}async importArray(e,t){const r=[],o=[];return e.forEach((e=>{const n=this.getItemFromEncryptedCache(e,t).then((t=>{t?(this.memoryStorage.setItem(e,t),r.push(e)):this.removeItem(e)}));o.push(n)})),await Promise.all(o),r}getContext(e){let t="";return e.includes(this.clientId)&&(t=this.clientId),t}updateCache(e,t){this.logger.trace("17cxcm",t);const r=this.performanceClient.startMeasurement(nc);r.add({isBackground:!0});const{key:o,value:n,context:i}=e.data;return o?i&&i!==this.clientId?(this.logger.trace(`04rtdy ${i}`,t),void r.end({success:!1,errorCode:"contextMismatch"})):(n?(this.memoryStorage.setItem(o,n),this.logger.verbose("1vzsgt",t)):(this.memoryStorage.removeItem(o),this.logger.verbose("04ypih",t)),void r.end({success:!0})):(this.logger.error("0e10qr",t),void r.end({success:!1,errorCode:"noKey"}))}}class Ec{constructor(){if(!window.sessionStorage)throw ba(wa,"")}async initialize(){}getItem(e){return window.sessionStorage.getItem(e)}getUserData(e){return this.getItem(e)}setItem(e,t){window.sessionStorage.setItem(e,t)}async setUserData(e,t){this.setItem(e,t)}removeItem(e){window.sessionStorage.removeItem(e)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(e){return window.sessionStorage.hasOwnProperty(e)}decryptData(){return Promise.resolve(null)}}const Pc={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_SUCCESS:"msal:loginSuccess",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",BROKERED_REQUEST_START:"msal:brokeredRequestStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",BROKERED_REQUEST_SUCCESS:"msal:brokeredRequestSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",BROKERED_REQUEST_FAILURE:"msal:brokeredRequestFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache",BROKER_CONNECTION_ESTABLISHED:"msal:brokerConnectionEstablished"},Rc="@azure/msal-browser",Oc="5.16.0";function Mc(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const xc="invalid",qc="ttlExpired",Nc="decryptFailed",Uc="expired";class Lc extends Qr{constructor(e,t,r,o,n,i,s){super(e,r,o,n,s),this.cacheConfig=t,this.logger=o,this.internalStorage=new Wa,this.browserStorage=Fc(e,t.cacheLocation,o,n),this.temporaryCacheStorage=Fc(e,As.SessionStorage,o,n),this.cookieStorage=new kc,this.eventHandler=i}async initialize(e){this.performanceClient.addFields({cacheLocation:this.cacheConfig.cacheLocation,cacheRetentionDays:this.cacheConfig.cacheRetentionDays},e),await this.browserStorage.initialize(e),await this.migrateExistingCache(e),this.trackVersionChanges(e)}async migrateExistingCache(e){let t=Tc(this.browserStorage),r=bc(this.clientId,this.browserStorage);this.performanceClient.addFields({preMigrateAcntCount:t.length,preMigrateATCount:r.accessToken.length,preMigrateITCount:r.idToken.length,preMigrateRTCount:r.refreshToken.length},e);for(let t=0;t<3;t++){const r=t;await this.removeStaleAccounts(t,r,e)}for(let t=0;t<3;t++){const r=t;await this.migrateIdTokens(t,r,e)}const o=this.getKMSIValues();for(let t=0;t<3;t++)await this.migrateAccessTokens(t,o,e),await this.migrateRefreshTokens(t,o,e);t=Tc(this.browserStorage),r=bc(this.clientId,this.browserStorage),this.performanceClient.addFields({postMigrateAcntCount:t.length,postMigrateATCount:r.accessToken.length,postMigrateITCount:r.idToken.length,postMigrateRTCount:r.refreshToken.length},e)}async updateOldEntry(e,t){const r=this.browserStorage.getItem(e),o=this.validateAndParseJson(r||"");if(!o)return this.browserStorage.removeItem(e),{entry:null,removalReason:xc};if(o.lastUpdatedAt){if(yo(o.lastUpdatedAt,this.cacheConfig.cacheRetentionDays))return this.browserStorage.removeItem(e),{entry:null,removalReason:qc}}else o.lastUpdatedAt=Date.now().toString(),this.setItem(e,JSON.stringify(o),t);const n=Ac(o),i=n?await this.browserStorage.decryptData(e,o,t):o;return i?ko(i)?(To(i)||bo(i))&&i.expiresOn&&fo(i.expiresOn,300)?(this.browserStorage.removeItem(e),{entry:null,removalReason:Uc}):{entry:i}:(this.browserStorage.removeItem(e),{entry:null,removalReason:xc}):(this.browserStorage.removeItem(e),{entry:null,removalReason:n?Nc:xc})}async removeStaleAccounts(e,t,r){const o=Tc(this.browserStorage,e);if(0!==o.length){for(const e of[...o]){this.performanceClient.incrementFields({oldAcntCount:1},r);const n=this.browserStorage.getItem(e),i=this.validateAndParseJson(n||"");if(i)if(i.lastUpdatedAt){if(yo(i.lastUpdatedAt,this.cacheConfig.cacheRetentionDays))await this.removeAccountOldSchema(e,i,t,r),this.performanceClient.incrementFields({ttlExpiredAcntCount:1},r),Mc(o,e);else if(Ac(i)){await this.browserStorage.decryptData(e,i,r)||(this.browserStorage.removeItem(e),this.performanceClient.incrementFields({decryptFailedAcntCount:1},r),Mc(o,e))}}else i.lastUpdatedAt=Date.now().toString(),this.setItem(e,JSON.stringify(i),r);else this.browserStorage.removeItem(e),this.performanceClient.incrementFields({invalidAcntCount:1},r),Mc(o,e)}this.setAccountKeys(o,r,e)}}async removeAccountOldSchema(e,t,r,o){const n=Ac(t)?await this.browserStorage.decryptData(e,t,o):t,i=n?.homeAccountId;if(i){const e=this.getTokenKeys(r);[...e.idToken].filter((e=>e.includes(i))).forEach((t=>{this.browserStorage.removeItem(t),Mc(e.idToken,t)})),[...e.accessToken].filter((e=>e.includes(i))).forEach((t=>{this.browserStorage.removeItem(t),Mc(e.accessToken,t)})),[...e.refreshToken].filter((e=>e.includes(i))).forEach((t=>{this.browserStorage.removeItem(t),Mc(e.refreshToken,t)})),this.setTokenKeys(e,o,r)}this.browserStorage.removeItem(e)}getKMSIValues(){const e={},t=this.getTokenKeys().idToken;for(const r of t){const t=this.browserStorage.getUserData(r);if(t){const r=JSON.parse(t),o=Tr(r.secret,ss,"");o&&(e[r.homeAccountId]=br(o))}}return e}async migrateIdTokens(e,t,r){const o=bc(this.clientId,this.browserStorage,e);if(0===o.idToken.length)return;const n=bc(this.clientId,this.browserStorage,3),i=Tc(this.browserStorage),s=Tc(this.browserStorage,t);for(const e of[...o.idToken]){this.performanceClient.incrementFields({oldITCount:1},r);const t=await this.updateOldEntry(e,r),a=t.entry;if(!a){switch(t.removalReason){case qc:this.performanceClient.incrementFields({ttlExpiredITCount:1},r);break;case Nc:this.performanceClient.incrementFields({decryptFailedITCount:1},r);break;case xc:this.performanceClient.incrementFields({invalidITCount:1},r)}Mc(o.idToken,e);continue}const c=i.find((e=>e.includes(a.homeAccountId))),l=s.find((e=>e.includes(a.homeAccountId)));let h=null;if(c)h=this.getAccount(c,r);else if(l){const e=this.browserStorage.getItem(l),t=this.validateAndParseJson(e||"");h=t&&Ac(t)?await this.browserStorage.decryptData(l,t,r):t}if(!h){this.performanceClient.incrementFields({skipITMigrateCount:1},r);continue}const d=Tr(a.secret,ss,r),u=this.generateCredentialKey(a),g=this.getIdTokenCredential(u,r),p=Object.keys(d).includes("signin_state"),m=g&&Object.keys(Tr(g.secret,ss,r)||{}).includes("signin_state");if(!g||a.lastUpdatedAt>g.lastUpdatedAt&&(p||!m)){const e=h.tenantProfiles||[],t=zr(d)||h.realm;if(t&&!e.find((e=>e.tenantId===t))){const r=Sr(h.homeAccountId,h.localAccountId,t,h.nativeAccountId,d);e.push(r)}h.tenantProfiles=e;const o=this.generateAccountKey(Jr(h)),s=br(d);await this.setUserData(o,JSON.stringify(h),r,h.lastUpdatedAt,s),i.includes(o)||i.push(o),await this.setUserData(u,JSON.stringify(a),r,a.lastUpdatedAt,s),this.performanceClient.incrementFields({migratedITCount:1},r),n.idToken.includes(u)||n.idToken.push(u)}}this.setTokenKeys(o,r,e),this.setTokenKeys(n,r),this.setAccountKeys(i,r)}async migrateAccessTokens(e,t,r){const o=bc(this.clientId,this.browserStorage,e);if(0===o.accessToken.length)return;const n=bc(this.clientId,this.browserStorage,3);for(const e of[...o.accessToken]){this.performanceClient.incrementFields({oldATCount:1},r);const i=await this.updateOldEntry(e,r),s=i.entry;if(!s){switch(i.removalReason){case qc:this.performanceClient.incrementFields({ttlExpiredATCount:1},r);break;case Nc:this.performanceClient.incrementFields({decryptFailedATCount:1},r);break;case Uc:this.performanceClient.incrementFields({expiredATCount:1},r);break;case xc:this.performanceClient.incrementFields({invalidATCount:1},r)}Mc(o.accessToken,e);continue}if(!(s.homeAccountId in t)){this.performanceClient.incrementFields({skipATMigrateCount:1},r);continue}const a=this.generateCredentialKey(s),c=t[s.homeAccountId];if(n.accessToken.includes(a)){const e=this.getAccessTokenCredential(a,r);(!e||s.lastUpdatedAt>e.lastUpdatedAt)&&(await this.setUserData(a,JSON.stringify(s),r,s.lastUpdatedAt,c),this.performanceClient.incrementFields({migratedATCount:1},r))}else await this.setUserData(a,JSON.stringify(s),r,s.lastUpdatedAt,c),this.performanceClient.incrementFields({migratedATCount:1},r),n.accessToken.push(a)}this.setTokenKeys(o,r,e),this.setTokenKeys(n,r)}async migrateRefreshTokens(e,t,r){const o=bc(this.clientId,this.browserStorage,e);if(0===o.refreshToken.length)return;const n=bc(this.clientId,this.browserStorage,3);for(const e of[...o.refreshToken]){this.performanceClient.incrementFields({oldRTCount:1},r);const i=await this.updateOldEntry(e,r),s=i.entry;if(!s){switch(i.removalReason){case qc:this.performanceClient.incrementFields({ttlExpiredRTCount:1},r);break;case Nc:this.performanceClient.incrementFields({decryptFailedRTCount:1},r);break;case Uc:this.performanceClient.incrementFields({expiredRTCount:1},r);break;case xc:this.performanceClient.incrementFields({invalidRTCount:1},r)}Mc(o.refreshToken,e);continue}if(!(s.homeAccountId in t)){this.performanceClient.incrementFields({skipRTMigrateCount:1},r);continue}const a=this.generateCredentialKey(s),c=t[s.homeAccountId];if(n.refreshToken.includes(a)){const e=this.getRefreshTokenCredential(a,r);(!e||s.lastUpdatedAt>e.lastUpdatedAt)&&(await this.setUserData(a,JSON.stringify(s),r,s.lastUpdatedAt,c),this.performanceClient.incrementFields({migratedRTCount:1},r))}else await this.setUserData(a,JSON.stringify(s),r,s.lastUpdatedAt,c),this.performanceClient.incrementFields({migratedRTCount:1},r),n.refreshToken.push(a)}this.setTokenKeys(o,r,e),this.setTokenKeys(n,r)}trackVersionChanges(e){const t=this.browserStorage.getItem(gc);t&&(this.logger.info(`1wuc87 ${t}`,e),this.performanceClient.addGlobalFields({previousLibraryVersion:t})),t!==Oc&&this.setItem(gc,Oc,e)}validateAndParseJson(e){if(!e)return null;try{const t=JSON.parse(e);return t&&"object"==typeof t?t:null}catch(e){return null}}setItem(e,t,r){const o=new Array(4).fill(0),n=[];for(let i=0;i<=20;i++)try{if(this.browserStorage.setItem(e,t),i>0)for(let e=0;e<=3;e++){const t=o.slice(0,e).reduce(((e,t)=>e+t),0);if(t>=i)break;const s=i>t+o[e]?t+o[e]:i;i>t&&o[e]>0&&this.removeAccessTokenKeys(n.slice(t,s),r,e)}break}catch(s){const a=Lr(s);if(!(a.errorCode===Nr&&i<20))throw a;if(!n.length)for(let r=0;r<=3;r++)if(e===Ic(this.clientId,r)){const e=JSON.parse(t).accessToken;n.push(...e),o[r]=e.length}else{const e=this.getTokenKeys(r).accessToken;n.push(...e),o[r]=e.length}if(n.length<=i)throw a;this.removeAccessToken(n[i],r,!1)}}async setUserData(e,t,r,o,n){const i=new Array(4).fill(0),s=[];for(let a=0;a<=20;a++)try{if(await Fo(this.browserStorage.setUserData.bind(this.browserStorage),"setUserData",this.logger,this.performanceClient,r)(e,t,r,o,n),a>0)for(let e=0;e<=3;e++){const t=i.slice(0,e).reduce(((e,t)=>e+t),0);if(t>=a)break;const o=a>t+i[e]?t+i[e]:a;a>t&&i[e]>0&&this.removeAccessTokenKeys(s.slice(t,o),r,e)}break}catch(e){const t=Lr(e);if(!(t.errorCode===Nr&&a<20))throw t;if(!s.length)for(let e=0;e<=3;e++){const t=this.getTokenKeys(e).accessToken;s.push(...t),i[e]=t.length}if(s.length<=a)throw t;this.removeAccessToken(s[a],r,!1)}}getAccount(e,t){this.logger.trace("1lfvm6",t);const r=this.browserStorage.getUserData(e);if(!r)return this.removeAccountKeyFromMap(e,t),null;const o=this.validateAndParseJson(r);if(!(o&&(n=o,n&&n.hasOwnProperty("homeAccountId")&&n.hasOwnProperty("environment")&&n.hasOwnProperty("realm")&&n.hasOwnProperty("localAccountId")&&n.hasOwnProperty("username")&&n.hasOwnProperty("authorityType"))))return null;var n;const i=Qr.toObject({},o);var s;return this.performanceClient.addFields({accountCachedBy:(s=i.cachedByApiId,"number"==typeof s&&s in Hs?Hs[s]:"unknown")},t),i}async setAccount(e,t,r,o){this.logger.trace("1bz3wr",t);const n=this.generateAccountKey(Jr(e)),i=Date.now().toString();e.lastUpdatedAt=i,e.cachedByApiId=o,await this.setUserData(n,JSON.stringify(e),t,i,r),this.addAccountKeyToMap(n,t),this.performanceClient.addFields({kmsi:r},t)}setAccountKeys(e,t,r=3){0===e.length?this.removeItem(yc(r)):this.setItem(yc(r),JSON.stringify(e),t)}getAccountKeys(){return Tc(this.browserStorage)}addAccountKeyToMap(e,t){this.logger.trace("0rb85k",t),this.logger.tracePii(`1l9bdo ${e}`,t);const r=this.getAccountKeys();return-1===r.indexOf(e)?(r.push(e),this.setItem(yc(),JSON.stringify(r),t),this.logger.verbose("0xia39",t),!0):(this.logger.verbose("0161kk",t),!1)}removeAccountKeyFromMap(e,t){this.logger.trace("1jpigu",t),this.logger.tracePii(`1xzspl ${e}`,t);const r=this.getAccountKeys(),o=r.indexOf(e);o>-1?(r.splice(o,1),this.setAccountKeys(r,t)):this.logger.trace("1dytu2",t)}removeAccount(e,t){const r=this.getActiveAccount(t);r?.homeAccountId===e.homeAccountId&&r?.environment===e.environment&&this.setActiveAccount(null,t),super.removeAccount(e,t),this.removeAccountKeyFromMap(this.generateAccountKey(e),t),this.browserStorage.getKeys().forEach((t=>{t.includes(e.homeAccountId)&&t.includes(e.environment)&&this.browserStorage.removeItem(t)}))}removeIdToken(e,t){super.removeIdToken(e,t);const r=this.getTokenKeys(),o=r.idToken.indexOf(e);o>-1&&(this.logger.info("05udv9",t),r.idToken.splice(o,1),this.setTokenKeys(r,t))}removeAccessToken(e,t,r=!0){super.removeAccessToken(e,t),r&&this.removeAccessTokenKeys([e],t)}removeAccessTokenKeys(e,t,r=3){this.logger.trace("17o18n",t);const o=this.getTokenKeys(r);let n=0;if(e.forEach((e=>{const t=o.accessToken.indexOf(e);t>-1&&(o.accessToken.splice(t,1),n++)})),n>0)return this.logger.info(`15i5d5 ${n}`,t),void this.setTokenKeys(o,t,r)}removeRefreshToken(e,t){super.removeRefreshToken(e,t);const r=this.getTokenKeys(),o=r.refreshToken.indexOf(e);o>-1&&(this.logger.info("1f4fq3",t),r.refreshToken.splice(o,1),this.setTokenKeys(r,t))}getTokenKeys(e=3){return bc(this.clientId,this.browserStorage,e)}setTokenKeys(e,t,r=3){0!==e.idToken.length||0!==e.accessToken.length||0!==e.refreshToken.length?this.setItem(Ic(this.clientId,r),JSON.stringify(e),t):this.removeItem(Ic(this.clientId,r))}getIdTokenCredential(e,t){const r=this.browserStorage.getUserData(e);if(!r)return this.logger.trace("1jukz6",t),this.removeIdToken(e,t),null;const o=this.validateAndParseJson(r);return o&&((n=o)&&ko(n)&&n.hasOwnProperty("realm")&&n.credentialType===K.ID_TOKEN)?(this.logger.trace("01ju66",t),o):(this.logger.trace("1jukz6",t),null);var n}async setIdTokenCredential(e,t,r){this.logger.trace("13hjll",t);const o=this.generateCredentialKey(e),n=Date.now().toString();e.lastUpdatedAt=n,await this.setUserData(o,JSON.stringify(e),t,n,r);const i=this.getTokenKeys();-1===i.idToken.indexOf(o)&&(this.logger.info("07jy92",t),i.idToken.push(o),this.setTokenKeys(i,t))}getAccessTokenCredential(e,t){const r=this.browserStorage.getUserData(e);if(!r)return this.logger.trace("0bqvx8",t),this.removeAccessTokenKeys([e],t),null;const o=this.validateAndParseJson(r);return o&&To(o)?(this.logger.trace("1o81rl",t),o):(this.logger.trace("0bqvx8",t),null)}async setAccessTokenCredential(e,t,r){this.logger.trace("1pondb",t);const o=this.generateCredentialKey(e),n=Date.now().toString();e.lastUpdatedAt=n,await this.setUserData(o,JSON.stringify(e),t,n,r);const i=this.getTokenKeys(),s=i.accessToken.indexOf(o);-1!==s&&i.accessToken.splice(s,1),this.logger.trace("1onhey "+(-1===s?"added to":"updated in"),t),i.accessToken.push(o),this.setTokenKeys(i,t)}getRefreshTokenCredential(e,t){const r=this.browserStorage.getUserData(e);if(!r)return this.logger.trace("0jlizt",t),this.removeRefreshToken(e,t),null;const o=this.validateAndParseJson(r);return o&&bo(o)?(this.logger.trace("0nokxi",t),o):(this.logger.trace("0jlizt",t),null)}async setRefreshTokenCredential(e,t,r){this.logger.trace("0tcg8d",t);const o=this.generateCredentialKey(e),n=Date.now().toString();e.lastUpdatedAt=n,await this.setUserData(o,JSON.stringify(e),t,n,r);const i=this.getTokenKeys();-1===i.refreshToken.indexOf(o)&&(this.logger.info("0eckjs",t),i.refreshToken.push(o),this.setTokenKeys(i,t))}getAppMetadata(e,t){const r=this.browserStorage.getItem(e);if(!r)return this.logger.trace("1q101h",t),null;const o=this.validateAndParseJson(r);return o&&(n=e,(i=o)&&0===n.indexOf(B)&&i.hasOwnProperty("clientId")&&i.hasOwnProperty("environment"))?(this.logger.trace("19pvg2",t),o):(this.logger.trace("1q101h",t),null);var n,i}setAppMetadata(e,t){this.logger.trace("0cyma6",t);const r=function({environment:e,clientId:t}){return[B,e,t].join("-").toLowerCase()}(e);this.setItem(r,JSON.stringify(e),t)}getServerTelemetry(e,t){const r=this.browserStorage.getItem(e);if(!r)return this.logger.trace("0jk19c",t),null;const o=this.validateAndParseJson(r);return o&&function(e,t){const r=0===e.indexOf(Y);let o=!0;return t&&(o=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),r&&o}(e,o)?(this.logger.trace("12jguk",t),o):(this.logger.trace("0jk19c",t),null)}setServerTelemetry(e,t,r){this.logger.trace("1poh61",r),this.setItem(e,JSON.stringify(t),r)}getAuthorityMetadata(e,t){const r=this.internalStorage.getItem(e);if(!r)return this.logger.trace("1r39oe",t),null;const o=this.validateAndParseJson(r);return o&&function(e,t){return!!t&&0===e.indexOf(j)&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri")}(e,o)?(this.logger.trace("1ohvk3",t),o):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter((e=>this.isAuthorityMetadata(e)))}setWrapperMetadata(e,t){this.internalStorage.setItem(Us,e),this.internalStorage.setItem(Ls,t)}getWrapperMetadata(){return[this.internalStorage.getItem(Us)||"",this.internalStorage.getItem(Ls)||""]}setAuthorityMetadata(e,t,r){this.logger.trace("07w8n2",r),this.internalStorage.setItem(e,JSON.stringify(t))}getActiveAccount(e){const t=this.generateCacheKey(S),r=this.browserStorage.getItem(t);if(!r)return this.logger.trace("08gw0e",e),null;const o=this.validateAndParseJson(r);return o?(this.logger.trace("1t3ch7",e),this.getAccountInfoFilteredBy({homeAccountId:o.homeAccountId,localAccountId:o.localAccountId,tenantId:o.tenantId},e)):(this.logger.trace("0me1up",e),null)}setActiveAccount(e,t){const r=this.generateCacheKey(S);if(e){this.logger.verbose("0rsj80",t);const o={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId};this.setItem(r,JSON.stringify(o),t)}else this.logger.verbose("1bp5z5",t),this.browserStorage.removeItem(r);this.eventHandler.emitEvent(Pc.ACTIVE_ACCOUNT_CHANGED,t)}getThrottlingCache(e,t){const r=this.browserStorage.getItem(e);if(!r)return this.logger.trace("1h4wa6",t),null;const o=this.validateAndParseJson(r);return o&&function(e,t){let r=!1;e&&(r=0===e.indexOf(ee));let o=!0;return t&&(o=t.hasOwnProperty("throttleTime")),r&&o}(e,o)?(this.logger.trace("0of6n8",t),o):(this.logger.trace("1h4wa6",t),null)}setThrottlingCache(e,t,r){this.logger.trace("0wfgh6",r),this.setItem(e,JSON.stringify(t),r)}getTemporaryCache(e,t,r){this.logger.trace("1ordf8",t);const o=r?this.generateCacheKey(e):e;return this.temporaryCacheStorage.getItem(o)}setTemporaryCache(e,t,r){const o=r?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(o,t)}removeItem(e){this.browserStorage.removeItem(e)}removeTemporaryItem(e){this.temporaryCacheStorage.removeItem(e)}getKeys(){return this.browserStorage.getKeys()}clear(e){this.removeAllAccounts(e),this.removeAppMetadata(e),this.temporaryCacheStorage.getKeys().forEach((e=>{-1===e.indexOf(cc)&&-1===e.indexOf(this.clientId)||this.removeTemporaryItem(e)})),this.browserStorage.getKeys().forEach((e=>{-1===e.indexOf(cc)&&-1===e.indexOf(this.clientId)||this.browserStorage.removeItem(e)})),this.internalStorage.clear()}generateCacheKey(e){return _e.startsWith(e,cc)?e:`${cc}.${this.clientId}.${e}`}generateCredentialKey(e){const t=e.credentialType===K.REFRESH_TOKEN&&e.familyId||e.clientId,r=e.tokenType&&e.tokenType.toLowerCase()!==X.BEARER.toLowerCase()?e.tokenType.toLowerCase():"";return[`${cc}.3`,e.homeAccountId,e.environment,e.credentialType,t,e.realm||"",e.target||"",r].join("|").toLowerCase()}generateAccountKey(e){const t=e.homeAccountId.split(".")[1];return[`${cc}.3`,e.homeAccountId,e.environment,t||e.tenantId||""].join("|").toLowerCase()}resetRequestCache(e){this.logger.trace("0h0ynu",e),this.removeTemporaryItem(this.generateCacheKey(Ms)),this.removeTemporaryItem(this.generateCacheKey(xs)),this.removeTemporaryItem(this.generateCacheKey(Rs)),this.removeTemporaryItem(this.generateCacheKey(Os)),this.removeTemporaryItem(this.generateCacheKey(Ns)),this.setInteractionInProgress(!1,void 0)}cacheAuthorizeRequest(e,t,r){this.logger.trace("1tzef5",t);const o=Qs(JSON.stringify(e));if(this.setTemporaryCache(Ms,o,!0),r){const e=Qs(r);this.setTemporaryCache(xs,e,!0)}}getCachedRequest(e){this.logger.trace("0uen20",e);const t=this.getTemporaryCache(Ms,e,!0);if(!t)throw is(Pi,"");const r=this.getTemporaryCache(xs,e,!0);let o,n="";try{o=JSON.parse(ss(t)),r&&(n=ss(r))}catch(r){throw this.logger.errorPii(`0ewsey ${t}`,e),this.logger.error(`0tvdic ${r}`,e),is(Ri,"")}return[o,n]}getCachedNativeRequest(){this.logger.trace("1yxcdm","");const e=this.getTemporaryCache(Ns,"",!0);if(!e)return this.logger.trace("0mnxd4",""),null;const t=this.validateAndParseJson(e);return t||(this.logger.error("0rrkip",""),null)}isInteractionInProgress(e){const t=this.getInteractionInProgress()?.clientId;return e?t===this.clientId:!!t}getInteractionInProgress(){const e=`${cc}.${qs}`,t=this.getTemporaryCache(e,"",!1);try{return t?JSON.parse(t):null}catch(t){return this.logger.error("0jjyys",""),this.removeTemporaryItem(e),this.resetRequestCache(""),Sa(window),null}}setInteractionInProgress(e,t=Es,r=!1,o=""){const n=`${cc}.${qs}`;if(e){const e=this.getInteractionInProgress();if(e){if(!r)throw is(Ii,"");this.logger.warning(`1pmscr ${e.clientId} ${e.type}`,o),Oa(this.logger,o),this.removeTemporaryItem(n)}this.setTemporaryCache(n,JSON.stringify({clientId:this.clientId,type:t}),!1)}else e||this.getInteractionInProgress()?.clientId!==this.clientId||this.removeTemporaryItem(n)}async hydrateCache(e,t){const r=wo(e.account.homeAccountId,e.account.environment,e.idToken,this.clientId,e.tenantId),o=Co(e.account.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?po(e.expiresOn):0,e.extExpiresOn?po(e.extExpiresOn):0,ss,t.correlationId||"",void 0,e.tokenType,void 0,t.sshKid);t.resource&&(o.resource=t.resource);const n={idToken:r,accessToken:o};return this.saveCacheRecord(n,e.correlationId,br(Tr(e.idToken,ss,e.correlationId)),Fs.hydrateCache)}async saveCacheRecord(e,t,r,o,n){try{await super.saveCacheRecord(e,t,r,o,n)}catch(e){if(e instanceof Ur&&this.performanceClient&&t)try{const e=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:e.refreshToken.length,cacheIdCount:e.idToken.length,cacheAtCount:e.accessToken.length},t)}catch(e){}throw e}}}function Fc(e,t,r,o){try{switch(t){case As.LocalStorage:return new _c(e,r,o);case As.SessionStorage:return new Ec}}catch(e){r.error(e,"")}return new Wa}const Hc=(e,t,r,o)=>new Lc(e,{cacheLocation:As.MemoryStorage,cacheRetentionDays:5},mr,t,r,o);function Dc(e,t,r,o,n){return e.verbose("1yd030",o),r?t.getAllAccounts(n,o):[]}function $c(e,t,r,o){t.trace("0u7b90",o);const n=r.getAccountInfoFilteredBy(e,o);return n?(t.verbose("0btgll",o),n):(t.verbose("0ltaj5",o),null)}function Kc(e,t,r){t.setActiveAccount(e,r)}function Bc(e,t){return e.getActiveAccount(t)}class zc{constructor(e){this.eventCallbacks=new Map,this.logger=e||new wr({},Rc,Oc),"undefined"!=typeof BroadcastChannel&&(this.broadcastChannel=new BroadcastChannel("msal.broadcast.event")),this.invokeCrossTabCallbacks=this.invokeCrossTabCallbacks.bind(this)}addEventCallback(e,t,r){if("undefined"!=typeof window){const o=r||Ba();return this.eventCallbacks.has(o)?(this.logger.error(`1578i0 ${o}`,""),null):(this.eventCallbacks.set(o,[e,t||[]]),this.logger.verbose(`1cnec4 ${o}`,""),o)}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`12zotd ${e}`,"")}emitEvent(e,t,r,o,n){const i={eventType:e,interactionType:r||null,payload:o||null,error:n||null,correlationId:t,timestamp:Date.now()};switch(e){case Pc.LOGIN_SUCCESS:case Pc.LOGOUT_SUCCESS:case Pc.ACTIVE_ACCOUNT_CHANGED:this.broadcastChannel?.postMessage(i)}this.invokeCallbacks(i)}invokeCallbacks(e){this.eventCallbacks.forEach((([t,r],o)=>{(0===r.length||r.includes(e.eventType))&&(this.logger.verbose(`15jpwk ${o} ${e.eventType}`,""),t.apply(null,[e]))}))}invokeCrossTabCallbacks(e){const t=e.data;this.invokeCallbacks(t)}subscribeCrossTab(){this.broadcastChannel?.addEventListener("message",this.invokeCrossTabCallbacks)}unsubscribeCrossTab(){this.broadcastChannel?.removeEventListener("message",this.invokeCrossTabCallbacks)}}class jc{constructor(e,t,r,o,n,i,s,a,c){this.config=e,this.browserStorage=t,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=n,this.navigationClient=i,this.platformAuthProvider=c,this.correlationId=a,this.logger=o.clone(Rc,Oc),this.performanceClient=s}}function Jc(e,t,r,o){r.verbose("0bd1la",o);const n=e||t||"";return Er.getAbsoluteUrl(n,xa(),o)}function Wc(e,t,r,o,n,i,s=!0){if(n.verbose("1p12tq",r),!s)return n.verbose("0tajnr",r),new Un;const a={clientId:t,correlationId:r,apiId:e,forceRefresh:!1,wrapperSKU:o.getWrapperMetadata()[0],wrapperVer:o.getWrapperMetadata()[1]};return new Nn(a,o)}async function Gc(e,t,r,o,n,i,s,a,c){const l=a&&a.hasOwnProperty("instance_aware")?a.instance_aware:void 0,h={protocolMode:e.system.protocolMode,OIDCOptions:e.auth.OIDCOptions,knownAuthorities:e.auth.knownAuthorities,cloudDiscoveryMetadata:e.auth.cloudDiscoveryMetadata,authorityMetadata:e.auth.authorityMetadata},d=i||e.auth.authority,u=l?.length?"true"===l:e.auth.instanceAware,g=c&&u?e.auth.authority.replace(Er.getDomainFromUrl(d,t),c.environment):d,p=wn.generateAuthority(g,s||e.auth.azureCloudOptions),m=await Fo(kn,"authorityFactoryCreateDiscoveredInstance",n,r,t)(p,e.system.networkClient,o,h,n,t,r);if(c&&!m.isAlias(c.environment))throw Se(Ge,t);return m}async function Qc(e,t,r,o,n){if(n)try{e.removeAccount(n,o),r.verbose("0s4z6h",o)}catch(e){r.error("0mgg1d",o)}else try{r.verbose("0zj631",o),e.clear(o),await t.clearKeystore(o)}catch(e){r.error("12ih0c",o)}}async function Vc(e,t,r,o,n){const i=e.authority||t.auth.authority,s=[...e&&e.scopes||[]],a={...e,correlationId:e.correlationId,authority:i,scopes:s};if(a.authenticationScheme){if(a.authenticationScheme===X.SSH){if(!e.sshJwk)throw Se(Ke,"");if(!e.sshKid)throw Se(Be,"")}o.verbose(`1ecmns ${a.authenticationScheme}`,n)}else a.authenticationScheme=X.BEARER,o.verbose("1l4fwv",n);return a}async function Yc(e,t,r,o,n){const i=await Fo(Vc,Jn,n,o,e.correlationId)(e,r,o,n,e.correlationId);return{...e,...i,account:t,forceRefresh:e.forceRefresh||!1}}function Zc(e,t){let r;const o=e.httpMethod;if(t===jr.EAR){if(o&&o!==m)throw Se(Qe,"");r=m}else r=o||p;return r}class Xc extends jc{initializeLogoutRequest(e){this.logger.verbose("0546u4",this.correlationId);const t={correlationId:this.correlationId,...e};if(e)if(e.logoutHint)this.logger.verbose("12k4l4",this.correlationId);else if(e.account){const r=e.account.loginHint||this.getLogoutHintFromIdTokenClaims(e.account);r&&(this.logger.verbose("0d7s8p",this.correlationId),t.logoutHint=r)}else this.logger.verbose("0pdtc3",this.correlationId);else this.logger.verbose("07ndze",this.correlationId);return e&&null===e.postLogoutRedirectUri?this.logger.verbose("0ljv63",t.correlationId):e&&e.postLogoutRedirectUri?(this.logger.verbose("1vamm6",t.correlationId),t.postLogoutRedirectUri=Er.getAbsoluteUrl(e.postLogoutRedirectUri,xa(),t.correlationId)):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("15m5g7",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("1f4xlz",t.correlationId),t.postLogoutRedirectUri=Er.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,xa(),t.correlationId)):(this.logger.verbose("17s5rf",t.correlationId),t.postLogoutRedirectUri=Er.getAbsoluteUrl(xa(),xa(),t.correlationId)),t}getLogoutHintFromIdTokenClaims(e){const t=e.idTokenClaims;if(t){if(t.login_hint)return this.logger.verbose("0u5bmc",this.correlationId),t.login_hint;this.logger.verbose("0mvp54",this.correlationId)}else this.logger.verbose("1e7bdp",this.correlationId);return null}async createAuthCodeClient(e){const t=await Fo(this.getClientConfiguration.bind(this),Yn,this.logger,this.performanceClient,this.correlationId)(e);return new Tn(t,this.performanceClient)}async getClientConfiguration(e){const{serverTelemetryManager:t,requestAuthority:r,requestAzureCloudOptions:o,requestExtraQueryParameters:n,account:i}=e,s=e.authority||await Fo(Gc,Bn,this.logger,this.performanceClient,this.correlationId)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,r,o,n,i),a=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:s,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:this.config.auth.redirectUri,isMcp:this.config.auth.isMcp},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:a.loggerCallback,piiLoggingEnabled:a.piiLoggingEnabled,logLevel:a.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:us,version:Oc,cpu:"",os:""},telemetry:this.config.telemetry}}}async function el(e,t,r,o,n,i,s,a){const c=Jc(e.redirectUri,r.auth.redirectUri,i,a);new URL(c).origin!==new URL(window.location.href).origin&&(i.warning("08qbvw",a),s.addFields({isRedirectUriCrossOrigin:!0},a));const l={interactionType:t},h=on(o,e&&e.state||"",l,a),d={...await Fo(Vc,Jn,i,s,a)({...e,correlationId:a},r,s,i,a),redirectUri:c,state:h,nonce:e.nonce||ha(),responseMode:r.auth.OIDCOptions.responseMode},u={...d,httpMethod:Zc(d,r.system.protocolMode)};if(e.loginHint||e.sid)return u;const g=e.account||n.getActiveAccount(a);return g&&(i.verbose("1eqlb3",a),i.verbosePii(`0tf99t ${g.homeAccountId}`,a),u.account=g),u}function tl(e,t,r,o){const n=ur(e);if(!n)throw dr(e)?(r.error(`13pl0s ${t} ${t}`,o),r.errorPii(`1097vx ${t} ${e}`,o),is(mi,o)):(r.error(`18h0l1 ${t} ${t}`,o),is(gi,o));return n}function rl(e,t,r,o){if(!e.state)throw is(pi,o);const n=function(e,t,r){if(!t)return null;try{return nn(e.base64Decode,t,r).libraryState.meta}catch(e){throw Pe(at,r)}}(t,e.state,o);if(!n)throw is(fi,o);if(n.interactionType!==r)throw is(yi,o)}class ol{constructor(e,t,r,o,n){this.authModule=e,this.browserStorage=t,this.authCodeRequest=r,this.logger=o,this.performanceClient=n}async handleCodeResponse(e,t,r){let o;try{o=function(e,t,r){if(Pn(e,t,r),!e.code)throw Pe(Tt,r);return e}(e,t.state,t.correlationId)}catch(e){throw e instanceof rn&&e.subError===ki?is(ki,t.correlationId):e}return Fo(this.handleCodeResponseFromServer.bind(this),Mo,this.logger,this.performanceClient,t.correlationId)(o,t,r)}async handleCodeResponseFromServer(e,t,r,o=!0){if(this.logger.trace("0mf2hb",t.correlationId),this.authCodeRequest.code=e.code,o&&(e.nonce=t.nonce||void 0),e.state=t.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{const e=this.createCcsCredentials(t);e&&(this.authCodeRequest.ccsCredential=e)}return await Fo(this.authModule.acquireToken.bind(this.authModule),"authClientAcquireToken",this.logger,this.performanceClient,t.correlationId)(this.authCodeRequest,r,e)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:cn}:e.loginHint?{credential:e.loginHint,type:ln}:null}}class nl extends Te{constructor(e,t,r,o){super(e,t,r||os(e)),Object.setPrototypeOf(this,nl.prototype),this.name="NativeAuthError",this.ext=o}}function il(e){if(e.ext&&e.ext.status&&"DISABLED"===e.ext.status)return!0;if(e.ext&&e.ext.error&&-2147186943===e.ext.error)return!0;switch(e.errorCode){case"ContentError":case"PageException":return!0;default:return!1}}function sl(e,t,r,o){let n;if(o&&o.status){switch(o.status){case"ACCOUNT_UNAVAILABLE":n=tn(Ko,t,os(e));break;case"USER_INTERACTION_REQUIRED":n=new Xo(e,t,r);break;case"USER_CANCEL":n=is(ki,t);break;case"NO_NETWORK":n=is(xi,t);break;case"UI_NOT_ALLOWED":n=tn(zo,t);break;default:n=new nl(e,t,r,o)}return n}return n=new nl(e,t,r,o),n}class al extends Xc{async acquireToken(e){const t=Wc(Fs.acquireTokenSilent_silentFlow,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled),r=await Fo(this.getClientConfiguration.bind(this),Yn,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t,requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,account:e.account}),o=new An(r,this.performanceClient);this.logger.verbose("0wa871",this.correlationId);try{const t=(await Fo(o.acquireCachedToken.bind(o),"silentFlowClientAcquireCachedToken",this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),t}catch(e){throw e instanceof ns&&e.errorCode===Fi&&this.logger.verbose("06wena",this.correlationId),e}}logout(e){this.logger.verbose("1rkurh",this.correlationId);const t=this.initializeLogoutRequest(e);return Qc(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,t.account)}}class cl extends jc{constructor(e,t,r,o,n,i,s,a,c,l,h,d){super(e,t,r,o,n,i,a,d,c),this.apiId=s,this.accountId=l,this.platformAuthProvider=c,this.nativeStorageManager=h,this.silentCacheClient=new al(e,this.nativeStorageManager,r,o,n,i,a,d,c);const u=this.platformAuthProvider.getExtensionName();this.skus=Nn.makeExtraSkuString({libraryName:us,libraryVersion:Oc,extensionName:u,extensionVersion:this.platformAuthProvider.getExtensionVersion()})}addRequestSKUs(e){e.extraParameters={...e.extraParameters,[Ie]:this.skus}}async acquireToken(e,t){this.logger.trace("03qeos",this.correlationId);const r=this.performanceClient.startMeasurement(zn,this.correlationId),o=go(),n=Wc(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled);try{const i=await this.initializePlatformRequest(e);try{const e=await this.acquireTokensFromCache(this.accountId,i);return r.end({success:!0,isNativeBroker:!1,fromCache:!0}),e}catch(e){if(t===js.AccessToken)throw this.logger.info("0eitbc",this.correlationId),r.end({success:!1,brokerErrorCode:"cache_request_failed"}),e;this.logger.info("0957j1",this.correlationId)}const s=await this.platformAuthProvider.sendMessage(i);return await this.handleNativeResponse(s,i,o).then((e=>(r.end({success:!0,isNativeBroker:!0,requestId:e.requestId}),n.clearNativeBrokerErrorCode(),e))).catch((e=>{throw r.end({success:!1,errorCode:e.errorCode,subErrorCode:e.subError}),e}))}catch(e){throw e instanceof nl&&n.setNativeBrokerErrorCode(e.errorCode),r.end({success:!1}),e}}createSilentCacheRequest(e,t){return{authority:e.authority,correlationId:this.correlationId,scopes:qt.fromString(e.scope,this.correlationId).asArray(),account:t,forceRefresh:!1}}async acquireTokensFromCache(e,t){if(!e)throw this.logger.warning("1ndf3e",this.correlationId),Pe(wt,this.correlationId);const r=this.browserStorage.getBaseAccountInfo({nativeAccountId:e},this.correlationId);if(!r)throw Pe(wt,this.correlationId);try{const e=this.createSilentCacheRequest(t,r),o=await this.silentCacheClient.acquireToken(e),n=this.browserStorage.getIdToken(r,this.correlationId,this.browserStorage.getTokenKeys(),r.tenantId),i=Tr(n?.secret||"",ss,this.correlationId),s=_r(r,void 0,i,n?.secret);return{...o,idToken:n?.secret||"",idTokenClaims:i,account:s}}catch(e){throw e}}async acquireTokenRedirect(e,t,r){this.logger.trace("0luikq",this.correlationId);const o=await this.initializePlatformRequest(e),n=r?.navigateToLoginRequestUrl??!0;try{await this.platformAuthProvider.sendMessage(o)}catch(e){if(e instanceof nl){if(Wc(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled).setNativeBrokerErrorCode(e.errorCode),il(e))throw e}}this.browserStorage.setTemporaryCache(Ns,JSON.stringify(o),!0);const i={apiId:Fs.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},s=n?Er.getAbsoluteUrl(e.redirectStartPage||window.location.href,xa(),this.correlationId):Jc(e.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId);t.end({success:!0}),await this.navigationClient.navigateExternal(s,i)}async handleRedirectPromise(){if(this.logger.trace("1c5lhw",this.correlationId),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("0le6uv",this.correlationId),null;const e=this.browserStorage.getCachedNativeRequest();if(!e)return this.logger.verbose("0a6zjb",this.correlationId),this.performanceClient?.addFields({errorCode:"no_cached_request"},this.correlationId),null;const{prompt:t,...r}=e;t&&this.logger.verbose("0ac34v",this.correlationId),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ns));const o=go();try{this.logger.verbose("003x5a",this.correlationId);const e=await this.platformAuthProvider.sendMessage(r),t=await this.handleNativeResponse(e,r,o);return Wc(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled).clearNativeBrokerErrorCode(),this.performanceClient?.addFields({isNativeBroker:!0},this.correlationId),t}catch(e){throw e}}logout(){return this.logger.trace("0u2sjm",this.correlationId),Promise.reject("Logout not implemented yet")}async handleNativeResponse(e,t,r){this.logger.trace("1bojln",this.correlationId);const o=Tr(e.id_token,ss,this.correlationId),n=this.createHomeAccountIdentifier(e,o),i=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t.accountId},this.correlationId)?.homeAccountId;if(t.extraParameters?.child_client_id&&e.account.id!==t.accountId)this.logger.info("1ub1in",this.correlationId);else if(n!==i&&e.account.id!==t.accountId)throw sl("user_switch",this.correlationId);const s=await Gc(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,t.authority),a=an(this.browserStorage,s,n,ss,this.correlationId,o,e.client_info,s.getPreferredCache(),o.tid,void 0,e.account.id,this.logger,this.performanceClient);e.expires_in=Number(e.expires_in);const c=await this.generateAuthenticationResult(e,t,o,a,s.canonicalAuthority,r);return await this.cacheAccount(a,br(o)),await this.cacheNativeTokens(e,t,n,o,c.tenantId,r,s.getPreferredCache()),c}createHomeAccountIdentifier(e,t){return Gr(e.client_info||"",Dr,this.logger,this.browserCrypto,this.correlationId,t)}generateScopes(e,t){return t?qt.fromString(t,this.correlationId):qt.fromString(e,this.correlationId)}async generatePopAccessToken(e,t){if(t.tokenType===X.POP&&t.signPopToken){if(e.shr)return this.logger.trace("0coqhu",this.correlationId),e.shr;const r=new Do(this.browserCrypto,this.performanceClient),o={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce,correlationId:this.correlationId};if(!t.keyId)throw Pe(St,this.correlationId);return r.signPopToken(e.access_token,t.keyId,o)}return e.access_token}async generateAuthenticationResult(e,t,r,o,n,i){const s=this.addTelemetryFromNativeResponse(e.properties.MATS),a=this.generateScopes(t.scope,e.scope),c=e.account.properties||{},l=c.UID||r.oid||r.sub||"",h=c.TenantId||r.tid||"",d=_r(Jr(o),void 0,r,e.id_token);if(d.nativeAccountId!==e.account.id){d.nativeAccountId=e.account.id;const t=h||d.tenantId,r=d.tenantProfiles?.get(t);r&&(r.nativeAccountId=e.account.id)}const u=await this.generatePopAccessToken(e,t),g=t.tokenType===X.POP?X.POP:X.BEARER;return{authority:n,uniqueId:l,tenantId:h,scopes:a.asArray(),account:d,idToken:e.id_token,idTokenClaims:r,accessToken:u,fromCache:!!s&&this.isResponseFromCache(s),expiresOn:mo(i+e.expires_in),tokenType:g,correlationId:this.correlationId,state:e.state,fromPlatformBroker:!0,...t.resource&&{resource:t.resource}}}async cacheAccount(e,t){await this.browserStorage.setAccount(e,this.correlationId,t,this.apiId),this.browserStorage.removeAccountContext(Jr(e),this.correlationId)}async cacheNativeTokens(e,t,r,o,n,i,s){const a=wo(r,s,e.id_token||"",t.clientId,o.tid||""),c=i+(t.tokenType===X.POP?240:("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0),l=this.generateScopes(e.scope,t.scope),h=Co(r,s,e.access_token,t.clientId,o.tid||n,l.printScopes(),c,0,ss,t.correlationId,void 0,t.tokenType,void 0,t.keyId);a&&!1!==t.storeInCache?.idToken&&await this.browserStorage.setIdTokenCredential(a,this.correlationId,br(o));const d={accessToken:h};return this.nativeStorageManager.saveCacheRecord(d,this.correlationId,br(o),this.apiId,t.storeInCache)}getExpiresInValue(e,t){return e===X.POP?240:("string"==typeof t?parseInt(t,10):t)||0}addTelemetryFromNativeResponse(e){const t=this.getMATSFromResponse(e);return t?(this.performanceClient.addFields({extensionId:this.platformAuthProvider.getExtensionId(),extensionVersion:this.platformAuthProvider.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_count},this.correlationId),t):null}getMATSFromResponse(e){if(e)try{return JSON.parse(e)}catch(e){this.logger.error("0b3l57",this.correlationId)}return null}isResponseFromCache(e){return void 0===e.is_cached?(this.logger.verbose("1okqev",this.correlationId),!1):!!e.is_cached}async initializePlatformRequest(e){this.logger.trace("1xdm2a",this.correlationId);const t=await this.getCanonicalAuthority(e),r=e.skipBrokerClaims&&e.embeddedClientId?void 0:this.config.auth.clientCapabilities,{scopes:o,claims:n,...i}=e,s=new qt(o||[],this.correlationId);s.appendScopes(f);const a={...i,claims:nr(n,r?.length?r:void 0),accountId:this.accountId,clientId:this.config.auth.clientId,authority:t.urlString,scope:s.printScopes(),redirectUri:Jc(e.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId),prompt:this.getPrompt(e.prompt),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraParameters},extendedExpiryToken:!1,keyId:e.popKid};if(a.signPopToken&&e.popKid)throw is(Vi,this.correlationId);if(this.handleExtraBrokerParams(a),a.extraParameters=a.extraParameters||{},a.extraParameters.telemetry=ms,e.authenticationScheme===X.POP){const t={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce,correlationId:this.correlationId},r=new Do(this.browserCrypto,this.performanceClient);let o;if(a.keyId)o=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:a.keyId})),a.signPopToken=!1;else{const e=await Fo(r.generateCnf.bind(r),xo,this.logger,this.performanceClient,this.correlationId)(t,this.logger);o=e.reqCnfString,a.keyId=e.kid,a.signPopToken=!0}a.reqCnf=o}return this.addRequestSKUs(a),a}async getCanonicalAuthority(e){const t=e.authority||this.config.auth.authority,{azureCloudOptions:r,account:o}=e;o&&await Gc(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,t,r,void 0,o);const n=new Er(t,this.correlationId);return n.validateAsUri(),n}getPrompt(e){switch(this.apiId){case Fs.ssoSilent:case Fs.acquireTokenSilent_silentFlow:return this.logger.trace("12n1y2",this.correlationId),N.NONE}if(e)switch(e){case N.NONE:case N.CONSENT:case N.LOGIN:return this.logger.trace("0i0hco",this.correlationId),e;default:throw this.logger.trace(`0w3tpw ${e}`,this.correlationId),is(Gi,this.correlationId)}else this.logger.trace("0uid1p",this.correlationId)}handleExtraBrokerParams(e){const t=e.extraParameters&&e.extraParameters.hasOwnProperty(we)&&e.extraParameters.hasOwnProperty(Ce)&&e.extraParameters.hasOwnProperty(ge);if(!e.embeddedClientId&&!t)return;let r="";const o=e.redirectUri;e.embeddedClientId?(e.redirectUri=this.config.auth.redirectUri,r=e.embeddedClientId):e.extraParameters&&(e.redirectUri=e.extraParameters[Ce],r=e.extraParameters[ge]),e.extraParameters={child_client_id:r,child_redirect_uri:o},this.performanceClient?.addFields({embeddedClientId:r,embeddedRedirectUri:o},this.correlationId)}}const ll=new Map([["e","AAD"],["m","MSA"]]);function hl(e,t,r){const o=function(e){if(!e)return null;try{const t=(/%(?:[0-9A-Fa-f]{2})/.test(e)?decodeURIComponent(e):e).split("|");return t.length<5?null:{accountType:ll.get(t[0]?.trim()||"")||"",error:t[1]?.trim()||"",subError:t[2]?.trim()||"",cloudInstance:t[3]?.trim()||"",callerDataBoundary:t[4]?.trim()||""}}catch{return null}}(e.clientdata);o?.accountType&&r.addFields({accountType:o.accountType},t),o?.error&&r.addFields({serverErrorNo:o.error},t),o?.subError&&r.addFields({serverSubErrorNo:o.subError},t)}async function dl(e,t,r,o,n){const i=_n({...e.auth,authority:t},r,o,n);if(Jt(i,{sku:us,version:Oc,os:"",cpu:""}),e.system.protocolMode!==jr.OIDC&&Wt(i,e.telemetry.application),r.platformBroker&&(function(e){e.set("nativebroker","1")}(i),n.addFields({isPlatformAuthorizeRequest:!0},r.correlationId),r.authenticationScheme===X.POP)){const e=new Qa(o,n),t=new Do(e,n);let s;if(r.popKid)s=e.encodeKid(r.popKid);else{s=(await Fo(t.generateCnf.bind(t),xo,o,n,r.correlationId)(r,o)).reqCnfString}ir(i,s)}return Nt(i,r.correlationId,n),i}async function ul(e,t,r,o,n){if(!r.codeChallenge)throw Se(Fe,r.correlationId);const i=await Fo(dl,"getStandardParams",o,n,r.correlationId)(e,t,r,o,n);return Ut(i,U),Qt(i,r.codeChallenge,l),rr(i,{...r.extraQueryParameters,...r.extraParameters}),En(t,i)}async function gl(e,t,r,o,n,i){if(!o.earJwk)throw is(li,o.correlationId);const s=await dl(t,r,o,n,i);Ut(s,L),function(e,t){e.set("ear_jwk",encodeURIComponent(t)),e.set("ear_jwe_crypto","eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0")}(s,o.earJwk),Qt(s,o.codeChallenge,l),rr(s,{...o.extraParameters});const a=new Map;rr(a,o.extraQueryParameters||{}),jt(a,o.correlationId);return ml(e,En(r,a),s)}async function pl(e,t,r,o,n,i){const s=await dl(t,r,o,n,i);Ut(s,U),Qt(s,o.codeChallenge,o.codeChallengeMethod||l),rr(s,{...o.extraParameters});const a=new Map;rr(a,o.extraQueryParameters||{}),jt(a,o.correlationId);return ml(e,En(r,a),s)}function ml(e,t,r){const o=e.createElement("form");return o.method="post",o.action=t,r.forEach(((t,r)=>{const n=e.createElement("input");n.hidden=!0,n.name=r,n.value=t,o.appendChild(n)})),e.body.appendChild(o),o}async function fl(e,t,r,o,n,i,s,a,c,l){if(a.verbose("11qcow",e.correlationId),!l)throw is(Ji,e.correlationId);const h=new Qa(a,c),d=new cl(o,n,h,a,s,o.system.navigationClient,r,c,l,t,i,e.correlationId),{userRequestState:u}=nn(h.base64Decode,e.state,e.correlationId);return Fo(d.acquireToken.bind(d),zn,a,c,e.correlationId)({...e,state:u,prompt:void 0})}async function yl(e,t,r,o,n,i,s,a,c,l,h,d){if(un.removeThrottle(s,n.auth.clientId,e),hl(t,e.correlationId,h),t.accountId)return Fo(fl,ei,l,h,e.correlationId)(e,t.accountId,o,n,s,a,c,l,h,d);const u={...e,code:t.code||"",codeVerifier:r},g=new ol(i,s,u,l,h);return await Fo(g.handleCodeResponse.bind(g),"handleCodeResponse",l,h,e.correlationId)(t,e,o)}async function Il(e,t,r,o,n,i,s,a,c,l,h){if(un.removeThrottle(i,o.auth.clientId,e),hl(t,e.correlationId,l),Pn(t,e.state,e.correlationId),!t.ear_jwe)throw is(hi,e.correlationId);if(!e.earJwk)throw is(li,e.correlationId);const d=JSON.parse(await Fo(ga,"decryptEarResponse",c,l,e.correlationId)(e.earJwk,t.ear_jwe));if(d.accountId)return Fo(fl,ei,c,l,e.correlationId)(e,d.accountId,r,o,i,s,a,c,l,h);const u=new sn(o.auth.clientId,i,new Qa(c,l),c,l,null,null);u.validateTokenResponse(d,e.correlationId);const g={code:"",state:e.state,nonce:e.nonce,client_info:d.client_info,cloud_graph_host_name:d.cloud_graph_host_name,cloud_instance_host_name:d.cloud_instance_host_name,cloud_instance_name:d.cloud_instance_name,msgraph_host:d.msgraph_host};return await Fo(u.handleServerTokenResponse.bind(u),qo,c,l,e.correlationId)(d,n,go(),e,r,g,void 0,void 0,void 0,void 0)}async function wl(e,t,r){const o=Lo(Cl,"generateCodeVerifier",t,e,r)(e,t,r);return{verifier:o,challenge:await Fo(vl,"generateCodeChallengeFromVerifier",t,e,r)(o,e,t,r)}}function Cl(e,t,r){try{const o=new Uint8Array(32);Lo(ca,"getRandomValues",t,e,r)(o);return Gs(o)}catch(e){throw is(ci,r)}}async function vl(e,t,r,o){try{const n=await Fo(aa,"sha256Digest",r,t,o)(e);return Gs(new Uint8Array(n))}catch(e){throw is(ci,o)}}class kl{navigateInternal(e,t){return kl.defaultNavigateWindow(e,t)}navigateExternal(e,t){return kl.defaultNavigateWindow(e,t)}static defaultNavigateWindow(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(((e,r)=>{setTimeout((()=>{r(is(es,"","failed_to_redirect"))}),t.timeout)}))}}class Tl{async sendGetRequestAsync(e,t){let r,o={},n=0;const i=bl(t);try{r=await fetch(e,{method:Ss,headers:i})}catch(e){throw pn(is(window.navigator.onLine?Ni:xi,""),void 0,void 0,e)}o=Al(r.headers);try{return n=r.status,{headers:o,body:await r.json(),status:n}}catch(e){throw pn(is(Ui,""),n,o,e)}}async sendPostRequestAsync(e,t){const r=t&&t.body||"",o=bl(t);let n,i=0,s={};try{n=await fetch(e,{method:_s,headers:o,body:r})}catch(e){throw pn(is(window.navigator.onLine?qi:xi,""),void 0,void 0,e)}s=Al(n.headers);try{return i=n.status,{headers:s,body:await n.json(),status:i}}catch(e){throw pn(is(Ui,""),i,s,e)}}}function bl(e){try{const t=new Headers;if(!e||!e.headers)return t;const r=e.headers;return Object.entries(r).forEach((([e,r])=>{t.append(e,r)})),t}catch(e){throw pn(is(Yi,""),void 0,void 0,e)}}function Al(e){try{const t={};return e.forEach(((e,r)=>{t[r]=e})),t}catch(e){throw is(Zi,"")}}function Sl({auth:r,cache:o,system:n,experimental:i,telemetry:l},h){const d={clientId:"",authority:`${t}`,knownAuthorities:[],cloudDiscoveryMetadata:"",authorityMetadata:"",redirectUri:"undefined"!=typeof window&&window.location?window.location.href.split("?")[0].split("#")[0]:"",postLogoutRedirectUri:"",clientCapabilities:[],OIDCOptions:{responseMode:F.FRAGMENT,defaultScopes:[s,a,c]},azureCloudOptions:{azureCloudInstance:kr.None,tenant:""},instanceAware:!1,isMcp:!1,verifySSO:!1},u={cacheLocation:As.SessionStorage,cacheRetentionDays:5},g={loggerCallback:()=>{},logLevel:e.LogLevel.Info,piiLoggingEnabled:!1},p={...{...ro,loggerOptions:g,networkClient:h?new Tl:Sn,navigationClient:new kl,popupBridgeTimeout:n?.popupBridgeTimeout||6e4,iframeBridgeTimeout:n?.iframeBridgeTimeout||1e4,redirectNavigationTimeout:3e4,allowRedirectInIframe:!1,navigatePopups:!0,allowPlatformBroker:!1,nativeBrokerHandshakeTimeout:n?.nativeBrokerHandshakeTimeout||2e3,protocolMode:jr.AAD,serverTelemetryEnabled:!1},...n,loggerOptions:n?.loggerOptions||g},m={application:{appName:"",appVersion:""},client:new to};if(n?.protocolMode!==jr.OIDC&&r?.OIDCOptions){new wr(p.loggerOptions,Rc,Oc).warning(JSON.stringify(Se(Je,"")),"")}if(n?.protocolMode&&n.protocolMode===jr.OIDC&&p?.allowPlatformBroker)throw Se(We,"");return{auth:{...d,...r,OIDCOptions:{...d.OIDCOptions,...r?.OIDCOptions}},cache:{...u,...o},system:p,experimental:{iframeTimeoutTelemetry:!1,allowPlatformBrokerWithDOM:!1,...i},telemetry:{...m,...l}}}class _l{constructor(e,t,r,o){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=o,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=r,this.handshakeEvent=this.performanceClient.startMeasurement("nativeMessageHandlerHandshake"),this.platformAuthType=Cs}async sendMessage(e){this.logger.trace(`0on4p2 ${this.platformAuthType}`,e.correlationId);const t={method:Ts,request:e},r={channel:gs,extensionId:this.extensionId,responseId:ha(),body:t};this.logger.trace(`1qadfi ${this.platformAuthType}`,e.correlationId),this.logger.tracePii(`1xm533 ${this.platformAuthType} ${JSON.stringify(r)}`,e.correlationId),this.messageChannel.port1.postMessage(r);const o=await new Promise(((e,t)=>{this.resolvers.set(r.responseId,{resolve:e,reject:t})}));return this.validatePlatformBrokerResponse(o)}static async createProvider(e,t,r,o){e.trace("15zfnw",o);try{const n=new _l(e,t,r,ps);return await n.sendHandshakeRequest(o),n}catch(n){const i=new _l(e,t,r);return await i.sendHandshakeRequest(o),i}}async sendHandshakeRequest(e){this.logger.trace(`1dpg9o ${this.platformAuthType}`,e),window.addEventListener("message",this.windowListener,!1);const t={channel:gs,extensionId:this.extensionId,responseId:ha(),body:{method:vs}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=e=>{this.onChannelMessage(e)},window.postMessage(t,window.origin,[this.messageChannel.port2]),new Promise(((e,r)=>{this.handshakeResolvers.set(t.responseId,{resolve:e,reject:r}),this.timeoutId=window.setTimeout((()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),r(is(zi,"")),this.handshakeResolvers.delete(t.responseId)}),this.handshakeTimeoutMs)}))}onWindowMessage(e){const t=Ba();if(this.logger.trace(`0jpn5u ${this.platformAuthType}`,t),e.source!==window)return;const r=e.data;if(r.channel&&r.channel===gs&&(!r.extensionId||r.extensionId===this.extensionId)&&r.body.method===vs){const e=this.handshakeResolvers.get(r.responseId);if(!e)return void this.logger.trace(`07buhm ${this.platformAuthType} ${r.responseId}`,t);this.logger.verbose(r.extensionId?`0xrkug ${r.extensionId}`:"No extension installed",t),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),e.reject(is(ji,""))}}onChannelMessage(e){const t=Ba();this.logger.trace(`1py8yf ${this.platformAuthType}`,t);const r=e.data,o=this.resolvers.get(r.responseId),n=this.handshakeResolvers.get(r.responseId);try{const e=r.body.method;if(e===bs){if(!o)return;const e=r.body.response;if(this.logger.trace(`19hpgm ${this.platformAuthType}`,t),this.logger.tracePii(`179a24 ${this.platformAuthType} ${JSON.stringify(e)}`,t),"Success"!==e.status)o.reject(sl(e.code,t,e.description,e.ext));else{if(!e.result)throw be(Mn,t,"Event does not contain result.");e.result.code&&e.result.description?o.reject(sl(e.result.code,t,e.result.description,e.result.ext)):o.resolve(e.result)}this.resolvers.delete(r.responseId)}else if(e===ks){if(!n)return void this.logger.trace(`082qnt ${this.platformAuthType} ${r.responseId}`,t);clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,this.extensionVersion=r.body.version,this.logger.verbose(`0yf5ib ${this.platformAuthType} ${this.extensionId}`,t),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),n.resolve(),this.handshakeResolvers.delete(r.responseId)}}catch(r){this.logger.error("0xf978",t),this.logger.errorPii(`04i99o ${r}`,t),this.logger.errorPii(`0xdvsy ${e}`,t),o?o.reject(r):n&&n.reject(r)}}validatePlatformBrokerResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw be(Mn,"","Response missing expected properties.")}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}getExtensionName(){return this.getExtensionId()===ps?"chrome":this.getExtensionId()?.length?"unknown":void 0}}class El{constructor(e,t,r){this.logger=e,this.performanceClient=t,this.correlationId=r,this.platformAuthType=ws}static async createProvider(e,t,r){if(e.trace("12mj4a",r),window.navigator?.platformAuthentication){const o=await window.navigator.platformAuthentication.getSupportedContracts(fs);if(o?.includes(Is))return e.trace("1h5q1r",r),new El(e,t,r)}}getExtensionId(){return fs}getExtensionVersion(){return""}getExtensionName(){return ys}async sendMessage(e){this.logger.trace(`02bcil ${this.platformAuthType}`,e.correlationId);try{const t=this.initializePlatformDOMRequest(e),r=await window.navigator.platformAuthentication.executeGetToken(t);return this.validatePlatformBrokerResponse(r,e.correlationId)}catch(t){throw this.logger.error(`11im7g ${this.platformAuthType}`,e.correlationId),t}}initializePlatformDOMRequest(e){this.logger.trace(`15d6yv ${this.platformAuthType}`,e.correlationId);const{accountId:t,clientId:r,authority:o,scope:n,redirectUri:i,correlationId:s,state:a,storeInCache:c,embeddedClientId:l,extraParameters:h,...d}=e,u=this.getDOMExtraParams(d,s);return{accountId:t,brokerId:this.getExtensionId(),authority:o,clientId:r,correlationId:s||this.correlationId,extraParameters:{...h,...u},isSecurityTokenService:!1,redirectUri:i,scope:n,state:a,storeInCache:c,embeddedClientId:l}}validatePlatformBrokerResponse(e,t){if(e.hasOwnProperty("isSuccess")){if(e.hasOwnProperty("accessToken")&&e.hasOwnProperty("idToken")&&e.hasOwnProperty("clientInfo")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scopes")&&e.hasOwnProperty("expiresIn"))return this.logger.trace(`0h4vei ${this.platformAuthType}`,t),this.convertToPlatformBrokerResponse(e,t);if(e.hasOwnProperty("error")){const r=e;if(!1===r.isSuccess&&r.error&&r.error.code)throw this.logger.trace(`0g92vm ${this.platformAuthType}`,t),sl(r.error.code,t,r.error.description,{error:parseInt(r.error.errorCode),protocol_error:r.error.protocolError,status:r.error.status,properties:r.error.properties})}}throw be(Mn,t,"Response missing expected properties.")}convertToPlatformBrokerResponse(e,t){this.logger.trace(`14913t ${this.platformAuthType}`,t);return{access_token:e.accessToken,id_token:e.idToken,client_info:e.clientInfo,account:e.account,expires_in:e.expiresIn,scope:e.scopes,state:e.state||"",properties:e.properties||{},extendedLifetimeToken:e.extendedLifetimeToken??!1,shr:e.proofOfPossessionPayload}}getDOMExtraParams(e,t){try{const t={};for(const[r,o]of Object.entries(e))o&&(t[r]="object"==typeof o?JSON.stringify(o):String(o));return t}catch(e){return this.logger.error(`0eu9o3 ${this.platformAuthType}`,t),this.logger.errorPii(`17rpl5 ${this.platformAuthType} ${e}`,t),{}}}}async function Pl(e,t,r,o,n){let i;e.trace("134j0v",r),e.trace(`04c81g ${n}`,r);try{n&&(i=await El.createProvider(e,t,r)),i||(e.trace("0l3na8",r),i=await _l.createProvider(e,o||2e3,t,r))}catch(t){e.trace("0icbd7",t)}return i}function Rl(e,t,r,o,n){if(t.trace("0uko3r",r),!e.system.allowPlatformBroker&&e.experimental.allowPlatformBrokerWithDOM)throw Se(Ve,"");if(!e.system.allowPlatformBroker)return t.trace("04hozs",r),!1;if(!o)return t.trace("0kvv1r",r),!1;if(n)switch(n){case X.BEARER:case X.POP:return t.trace("18tev1",r),!0;default:return t.trace("1dd2nh",r),!1}return!0}class Ol extends Xc{constructor(e,t,r,o,n,i,s,a,c,l,h){super(e,t,r,o,n,i,s,c,l),this.nativeStorage=a,this.eventHandler=n,this.waitForPopupResponseHook=h}acquireToken(e,t){let r;try{if(r={popupName:this.generatePopupName(e.scopes||f,e.authority||this.config.auth.authority),popupWindowAttributes:e.popupWindowAttributes||{},popupWindowParent:e.popupWindowParent??window},this.performanceClient.addFields({isAsyncPopup:!this.config.system.navigatePopups},this.correlationId),this.config.system.navigatePopups){const o={...e,httpMethod:Zc(e,this.config.system.protocolMode)};return this.logger.verbose("1f9ok3",this.correlationId),r.popup=this.openSizedPopup("about:blank",r),this.acquireTokenPopupAsync(o,r,t)}return this.logger.verbose("162h4u",this.correlationId),this.acquireTokenPopupAsync(e,r,t)}catch(e){return Promise.reject(e)}}logout(e){try{this.logger.verbose("068rup",this.correlationId);const t=this.initializeLogoutRequest(e),r={popupName:this.generateLogoutPopupName(t),popupWindowAttributes:e?.popupWindowAttributes||{},popupWindowParent:e?.popupWindowParent??window},o=e&&e.authority,n=e&&e.mainWindowRedirectUri;return this.config.system.navigatePopups?(this.logger.verbose("1a28da",this.correlationId),r.popup=this.openSizedPopup("about:blank",r),this.logoutPopupAsync(t,r,o,n)):(this.logger.verbose("1phd8u",this.correlationId),this.logoutPopupAsync(t,r,o,n))}catch(e){return Promise.reject(e)}}async acquireTokenPopupAsync(t,r,o){this.logger.verbose("1g77pg",this.correlationId);const n=await Fo(el,Zn,this.logger,this.performanceClient,this.correlationId)(t,e.InteractionType.Popup,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);r.popup&&Ka(n.authority);const i=Rl(this.config,this.logger,this.correlationId,this.platformAuthProvider,t.authenticationScheme);return n.platformBroker=i,this.config.system.protocolMode===jr.EAR?this.executeEarFlow(n,r,o):this.executeCodeFlow(n,r,o)}async executeCodeFlow(t,r,o){const n=t.correlationId,i=Wc(Fs.acquireTokenPopup,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled),s=o||await Fo(wl,ni,this.logger,this.performanceClient,n)(this.performanceClient,this.logger,n),a={...t,codeChallenge:s.challenge};try{const o=await Fo(this.createAuthCodeClient.bind(this),Vn,this.logger,this.performanceClient,n)({serverTelemetryManager:i,requestAuthority:a.authority,requestAzureCloudOptions:a.azureCloudOptions,requestExtraQueryParameters:a.extraQueryParameters,account:a.account});if(a.httpMethod===m)return await this.executeCodeFlowWithPost(a,r,o,s.verifier);{const i=await Fo(ul,Oo,this.logger,this.performanceClient,n)(this.config,o.authority,a,this.logger,this.performanceClient),c=this.initiateAuthRequest(i,r);this.eventHandler.emitEvent(Pc.POPUP_OPENED,n,e.InteractionType.Popup,{popupWindow:c},null);const l=await this.waitForPopupResponse(t,c,r.popupWindowParent),h=Lo(tl,ri,this.logger,this.performanceClient,this.correlationId)(l,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);return await Fo(yl,ti,this.logger,this.performanceClient,n)(t,h,s.verifier,Fs.acquireTokenPopup,this.config,o,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}}catch(e){throw r.popup?.close(),e instanceof Te&&(e.correlationId=this.correlationId,i.cacheFailedRequest(e)),e}}async executeEarFlow(e,t,r){const{correlationId:o,authority:n,azureCloudOptions:i,extraQueryParameters:s,account:a}=e,c=await Fo(Gc,Bn,this.logger,this.performanceClient,o)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,n,i,s,a),l=await Fo(ua,ai,this.logger,this.performanceClient,o)(),h=r||await Fo(wl,ni,this.logger,this.performanceClient,o)(this.performanceClient,this.logger,o),d={...e,earJwk:l,codeChallenge:h.challenge},u=t.popup||this.openPopup("about:blank",t);(await gl(u.document,this.config,c,d,this.logger,this.performanceClient)).submit();const g=await Fo(this.waitForPopupResponse.bind(this),Qn,this.logger,this.performanceClient,o)(d,u,t.popupWindowParent),p=Lo(tl,ri,this.logger,this.performanceClient,this.correlationId)(g,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);if(!p.ear_jwe&&p.code){const t=await Fo(this.createAuthCodeClient.bind(this),Vn,this.logger,this.performanceClient,o)({serverTelemetryManager:Wc(Fs.acquireTokenPopup,this.config.auth.clientId,o,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled),requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account,authority:c});return Fo(yl,ti,this.logger,this.performanceClient,o)(d,p,h.verifier,Fs.acquireTokenPopup,this.config,t,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}return Fo(Il,Xn,this.logger,this.performanceClient,o)(d,p,Fs.acquireTokenPopup,this.config,c,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async executeCodeFlowWithPost(e,t,r,o){const n=e.correlationId,i=await Fo(Gc,Bn,this.logger,this.performanceClient,n)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger),s=t.popup||this.openPopup("about:blank",t);(await pl(s.document,this.config,i,e,this.logger,this.performanceClient)).submit();const a=await Fo(this.waitForPopupResponse.bind(this),Qn,this.logger,this.performanceClient,n)(e,s,t.popupWindowParent),c=Lo(tl,ri,this.logger,this.performanceClient,this.correlationId)(a,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);return Fo(yl,ti,this.logger,this.performanceClient,n)(e,c,o,Fs.acquireTokenPopup,this.config,r,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async logoutPopupAsync(t,r,o,n){this.logger.verbose("0b7yrk",this.correlationId),this.eventHandler.emitEvent(Pc.LOGOUT_START,this.correlationId,e.InteractionType.Popup,t);const i=Wc(Fs.logoutPopup,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled);try{await Qc(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,t.account);const s=await Fo(this.createAuthCodeClient.bind(this),Vn,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:i,requestAuthority:o,account:t.account||void 0});try{s.authority.endSessionEndpoint}catch{if(t.account?.homeAccountId&&t.postLogoutRedirectUri&&s.authority.protocolMode===jr.OIDC){if(this.eventHandler.emitEvent(Pc.LOGOUT_SUCCESS,t.correlationId,e.InteractionType.Popup,t),n){const e={apiId:Fs.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},t=Er.getAbsoluteUrl(n,xa(),this.correlationId);await this.navigationClient.navigateInternal(t,e)}return void r.popup?.close()}}t.state=on(this.browserCrypto,t.state||"",{interactionType:e.InteractionType.Popup},t.correlationId);const a=s.getLogoutUri(t);this.eventHandler.emitEvent(Pc.LOGOUT_SUCCESS,t.correlationId,e.InteractionType.Popup,t);const c=this.openPopup(a,r);if(this.eventHandler.emitEvent(Pc.POPUP_OPENED,t.correlationId,e.InteractionType.Popup,{popupWindow:c},null),await this.waitForPopupResponse(t,c,r.popupWindowParent).catch((()=>{})),n){const e={apiId:Fs.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},t=Er.getAbsoluteUrl(n,xa(),this.correlationId);this.logger.verbose("0qcur2",this.correlationId),this.logger.verbosePii(`0oj7lk ${t}`,this.correlationId),await this.navigationClient.navigateInternal(t,e)}else this.logger.verbose("03zgcf",this.correlationId)}catch(t){throw r.popup?.close(),t instanceof Te&&(t.correlationId=this.correlationId,i.cacheFailedRequest(t)),this.eventHandler.emitEvent(Pc.LOGOUT_FAILURE,this.correlationId,e.InteractionType.Popup,null,t),this.eventHandler.emitEvent(Pc.LOGOUT_END,this.correlationId,e.InteractionType.Popup),t}this.eventHandler.emitEvent(Pc.LOGOUT_END,this.correlationId,e.InteractionType.Popup)}initiateAuthRequest(e,t){if(e)return this.logger.infoPii(`1kcr9k ${e}`,this.correlationId),this.openPopup(e,t);throw this.logger.error("1l7hyp",this.correlationId),is(ui,this.correlationId)}openPopup(e,t){try{let r;if(t.popup?(r=t.popup,this.logger.verbosePii(`0cgeo7 ${e}`,this.correlationId),r.location.assign(e)):void 0===t.popup&&(this.logger.verbosePii(`0c2awd ${e}`,this.correlationId),r=this.openSizedPopup(e,t)),!r)throw is(vi,this.correlationId);try{r.document.title="Microsoft Authentication"}catch(e){"undefined"!=typeof DOMException&&e instanceof DOMException&&"SecurityError"===e.name||this.logger.verbose("1s1yfs",this.correlationId)}return r.focus&&r.focus(),this.currentWindow=r,r}catch(e){throw this.logger.error(`0dxfb9 ${e.message}`,this.correlationId),is(Ci,this.correlationId)}}openSizedPopup(e,{popupName:t,popupWindowAttributes:r,popupWindowParent:o}){const n=o.screenLeft?o.screenLeft:o.screenX,i=o.screenTop?o.screenTop:o.screenY,s=o.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a=o.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let c=r.popupSize?.width,l=r.popupSize?.height,h=r.popupPosition?.top,d=r.popupPosition?.left;return(!c||c<0||c>s)&&(this.logger.verbose("08vfmo",this.correlationId),c=ls),(!l||l<0||l>a)&&(this.logger.verbose("09cxa0",this.correlationId),l=hs),(!h||h<0||h>a)&&(this.logger.verbose("1qh4wo",this.correlationId),h=Math.max(0,a/2-hs/2+i)),(!d||d<0||d>s)&&(this.logger.verbose("1sz3en",this.correlationId),d=Math.max(0,s/2-ls/2+n)),o.open(e,t,`width=${c}, height=${l}, top=${h}, left=${d}, scrollbars=yes`)}generatePopupName(e,t){return`${ds}.${this.config.auth.clientId}.${e.join("-")}.${t}.${this.correlationId}`}generateLogoutPopupName(e){const t=e.account&&e.account.homeAccountId;return`${ds}.${this.config.auth.clientId}.${t}.${this.correlationId}`}async waitForPopupResponse(e,t,r){return this.waitForPopupResponseHook?this.waitForPopupResponseHook(e,t,r):Ma(this.config.system.popupBridgeTimeout,this.logger,e,this.performanceClient)}}class Ml extends Xc{constructor(e,t,r,o,n,i,s,a,c,l){super(e,t,r,o,n,i,s,c,l),this.nativeStorage=a}async acquireToken(t){const r=await Fo(el,Zn,this.logger,this.performanceClient,this.correlationId)(t,e.InteractionType.Redirect,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);r.platformBroker=Rl(this.config,this.logger,this.correlationId,this.platformAuthProvider,t.authenticationScheme);const o=t=>{t.persisted&&(this.logger.verbose("0udvtt",this.correlationId),this.browserStorage.resetRequestCache(this.correlationId),this.eventHandler.emitEvent(Pc.RESTORE_FROM_BFCACHE,this.correlationId,e.InteractionType.Redirect))},n=this.getRedirectStartPage(t.redirectStartPage);this.logger.verbosePii(`0zao0a ${n}`,this.correlationId),this.browserStorage.setTemporaryCache(Rs,n,!0),window.addEventListener("pageshow",o);try{this.config.system.protocolMode===jr.EAR?await this.executeEarFlow(r):await this.executeCodeFlow(r)}catch(e){throw e instanceof Te&&(e.correlationId=this.correlationId),window.removeEventListener("pageshow",o),e}}async executeCodeFlow(e){const t=e.correlationId,r=Wc(Fs.acquireTokenRedirect,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled),o=await Fo(wl,ni,this.logger,this.performanceClient,t)(this.performanceClient,this.logger,t),n={...e,codeChallenge:o.challenge};this.browserStorage.cacheAuthorizeRequest(n,this.correlationId,o.verifier);try{if(n.httpMethod===m)return await this.executeCodeFlowWithPost(n);{const t=await Fo(this.createAuthCodeClient.bind(this),Vn,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:n.authority,requestAzureCloudOptions:n.azureCloudOptions,requestExtraQueryParameters:n.extraQueryParameters,account:n.account}),o=await Fo(ul,Oo,this.logger,this.performanceClient,e.correlationId)(this.config,t.authority,n,this.logger,this.performanceClient);return await this.initiateAuthRequest(o)}}catch(e){throw e instanceof Te&&(e.correlationId=this.correlationId,r.cacheFailedRequest(e)),e}}async executeEarFlow(e){const{correlationId:t,authority:r,azureCloudOptions:o,extraQueryParameters:n,account:i}=e,s=await Fo(Gc,Bn,this.logger,this.performanceClient,t)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,r,o,n,i),a=await Fo(ua,ai,this.logger,this.performanceClient,t)(),c=await Fo(wl,ni,this.logger,this.performanceClient,t)(this.performanceClient,this.logger,t),l={...e,earJwk:a,codeChallenge:c.challenge};this.browserStorage.cacheAuthorizeRequest(l,this.correlationId,c.verifier);return(await gl(document,this.config,s,l,this.logger,this.performanceClient)).submit(),new Promise(((e,t)=>{setTimeout((()=>{t(is(es,"","failed_to_redirect"))}),this.config.system.redirectNavigationTimeout)}))}async executeCodeFlowWithPost(e){const t=e.correlationId,r=await Fo(Gc,Bn,this.logger,this.performanceClient,t)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger);this.browserStorage.cacheAuthorizeRequest(e,this.correlationId);return(await pl(document,this.config,r,e,this.logger,this.performanceClient)).submit(),new Promise(((e,t)=>{setTimeout((()=>{t(is(es,"","failed_to_redirect"))}),this.config.system.redirectNavigationTimeout)}))}async handleRedirectPromise(e,t,r,o){const n=document.title;document.title="Microsoft Authentication";const i=Wc(Fs.handleRedirectPromise,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled),s=o?.navigateToLoginRequestUrl??!0;try{const[n,a]=this.getRedirectResponse(o?.hash||"");if(!n)return this.logger.info("1qmv0q",this.correlationId),this.browserStorage.resetRequestCache(this.correlationId),"back_forward"!==function(){if("undefined"==typeof window||void 0===window.performance||"function"!=typeof window.performance.getEntriesByType)return;const e=window.performance.getEntriesByType("navigation"),t=e.length?e[0]:void 0;return t?.type}()?r.event.errorCode="no_server_response":this.logger.verbose("1eqegq",this.correlationId),null;const c=this.browserStorage.getTemporaryCache(Rs,this.correlationId,!0)||"",l=pr(c,this.logger,this.correlationId);if(l===pr(window.location.href,this.logger,this.correlationId)&&s){this.logger.verbose("11yred",this.correlationId),c.indexOf("#")>-1&&_a(c);return await this.handleResponse(n,e,t,i)}if(!s)return this.logger.verbose("0v4sdv",this.correlationId),await this.handleResponse(n,e,t,i);if(!Ea()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(Os,a,!0);const r={apiId:Fs.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let o=!0;if(c)this.logger.verbose(`08jpy1 ${c}`,this.correlationId),o=await this.navigationClient.navigateInternal(c,r);else{const e=qa(this.correlationId);this.browserStorage.setTemporaryCache(Rs,e,!0),this.logger.warning("1dutq1",this.correlationId),o=await this.navigationClient.navigateInternal(e,r)}if(!o)return await this.handleResponse(n,e,t,i)}return null}catch(e){throw e instanceof Te&&(e.correlationId=this.correlationId,i.cacheFailedRequest(e)),e}finally{document.title=n}}getRedirectResponse(t){this.logger.verbose("1c5i8m",this.correlationId);let r=t;r||(r=this.config.auth.OIDCOptions.responseMode===F.QUERY?window.location.search:window.location.hash);let o=ur(r);if(o){try{rl(o,this.browserCrypto,e.InteractionType.Redirect,this.correlationId)}catch(e){return e instanceof Te&&this.logger.error(`0bkq6p ${e.errorCode} ${e.errorMessage}`,this.correlationId),[null,""]}return Sa(window),this.logger.verbose("00uvho",this.correlationId),[o,r]}const n=this.browserStorage.getTemporaryCache(Os,this.correlationId,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Os)),n&&(o=ur(n),o)?(this.logger.verbose("001671",this.correlationId),[o,n]):[null,""]}async handleResponse(e,t,r,o){if(!e.state)throw is(pi,t.correlationId);const{authority:n,azureCloudOptions:i,extraQueryParameters:s,account:a}=t;if(e.ear_jwe){const r=await Fo(Gc,Bn,this.logger,this.performanceClient,t.correlationId)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,n,i,s,a);return Fo(Il,Xn,this.logger,this.performanceClient,t.correlationId)(t,e,Fs.acquireTokenRedirect,this.config,r,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}const c=await Fo(this.createAuthCodeClient.bind(this),Vn,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:t.authority});return Fo(yl,ti,this.logger,this.performanceClient,t.correlationId)(t,e,r,Fs.acquireTokenRedirect,this.config,c,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async initiateAuthRequest(e){if(this.logger.verbose("0yaw2e",this.correlationId),e){this.logger.infoPii(`1luf83 ${e}`,this.correlationId);const t={apiId:Fs.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},r=this.config.auth.onRedirectNavigate;if("function"==typeof r){this.logger.verbose("1nehvl",this.correlationId);return!1!==r(e)?(this.logger.verbose("1a0jxh",this.correlationId),void await this.navigationClient.navigateExternal(e,t)):void this.logger.verbose("09k5h5",this.correlationId)}return this.logger.verbose("0klwf7",this.correlationId),void await this.navigationClient.navigateExternal(e,t)}throw this.logger.info("0rlh4e",this.correlationId),is(ui,this.correlationId)}async logout(t){this.logger.verbose("1rkurh",this.correlationId);const r=this.initializeLogoutRequest(t),o=Wc(Fs.logout,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled);try{this.eventHandler.emitEvent(Pc.LOGOUT_START,this.correlationId,e.InteractionType.Redirect,t),await Qc(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,r.account);const n={apiId:Fs.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},i=await Fo(this.createAuthCodeClient.bind(this),Vn,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:t&&t.authority,requestExtraQueryParameters:t?.extraQueryParameters,account:t&&t.account||void 0});if(i.authority.protocolMode===jr.OIDC)try{i.authority.endSessionEndpoint}catch{if(r.account?.homeAccountId)return void this.eventHandler.emitEvent(Pc.LOGOUT_SUCCESS,this.correlationId,e.InteractionType.Redirect,r)}r.state=on(this.browserCrypto,r.state||"",{interactionType:e.InteractionType.Redirect},r.correlationId);const s=i.getLogoutUri(r);r.account?.homeAccountId&&this.eventHandler.emitEvent(Pc.LOGOUT_SUCCESS,this.correlationId,e.InteractionType.Redirect,r);const a=this.config.auth.onRedirectNavigate;if("function"!=typeof a)return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0,Ps),void await this.navigationClient.navigateExternal(s,n);if(!1!==a(s))return this.logger.verbose("06v57e",this.correlationId),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0,Ps),void await this.navigationClient.navigateExternal(s,n);this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("0xqes1",this.correlationId)}catch(t){throw t instanceof Te&&(t.correlationId=this.correlationId,o.cacheFailedRequest(t)),this.eventHandler.emitEvent(Pc.LOGOUT_FAILURE,this.correlationId,e.InteractionType.Redirect,null,t),this.eventHandler.emitEvent(Pc.LOGOUT_END,this.correlationId,e.InteractionType.Redirect),t}this.eventHandler.emitEvent(Pc.LOGOUT_END,this.correlationId,e.InteractionType.Redirect)}getRedirectStartPage(e){const t=e||window.location.href,r=Er.getAbsoluteUrl(t,xa(),this.correlationId);return function(e,t,r){try{new URL(e)}catch(e){throw t?.error(`1lrjz7 ${e}`,r||""),Se(Me,r||"")}}(r,this.logger,this.correlationId),r}}async function xl(e,t,r,o){if(!t)throw r.info("1l7hyp",o),is(ui,o);return e.src=t,e}async function ql(e,t,r,o,n,i){if(!e.contentDocument)throw"No document associated with iframe!";return(await pl(e.contentDocument,t,r,o,n,i)).submit(),e}async function Nl(e,t,r,o,n,i){if(!e.contentDocument)throw"No document associated with iframe!";return(await gl(e.contentDocument,t,r,o,n,i)).submit(),e}function Ul(){const e=document.createElement("iframe");return e.className="msalSilentIframe",e.title="Microsoft Authentication",e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),e.setAttribute("allow","local-network-access *"),document.body.appendChild(e),e}function Ll(e){document.body===e.parentNode&&document.body.removeChild(e)}class Fl extends Xc{constructor(e,t,r,o,n,i,s,a,c,l,h,d){super(e,t,r,o,n,i,a,l,h),this.apiId=s,this.nativeStorage=c,this.waitForIframeResponseHook=d}async acquireToken(t){t.loginHint||t.sid||t.account&&t.account.username||this.logger.warning("1kl318",this.correlationId);const r={...t};r.prompt?r.prompt!==N.NONE&&r.prompt!==N.NO_SESSION&&(this.logger.warning(`0bmctg ${r.prompt} ${N.NONE}`,this.correlationId),r.prompt=N.NONE):r.prompt=N.NONE;const o=await Fo(el,Zn,this.logger,this.performanceClient,this.correlationId)(r,e.InteractionType.Silent,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);return o.platformBroker=Rl(this.config,this.logger,this.correlationId,this.platformAuthProvider,o.authenticationScheme),Ka(o.authority),this.config.system.protocolMode===jr.EAR?this.executeEarFlow(o):this.executeCodeFlow(o)}async executeCodeFlow(e){let t;const r=Wc(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled);try{return t=await Fo(this.createAuthCodeClient.bind(this),Vn,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:r,requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account}),await Fo(this.silentTokenHelper.bind(this),Wn,this.logger,this.performanceClient,e.correlationId)(t,e)}catch(o){if(o instanceof Te&&(o.correlationId=this.correlationId,r.cacheFailedRequest(o)),!(t&&o instanceof Te&&o.errorCode===cs))throw o;return this.performanceClient.addFields({retryError:o.errorCode},this.correlationId),await Fo(this.silentTokenHelper.bind(this),Wn,this.logger,this.performanceClient,this.correlationId)(t,e)}}async executeEarFlow(e){const{correlationId:t,authority:r,azureCloudOptions:o,extraQueryParameters:n,account:i}=e,s=await Fo(Gc,Bn,this.logger,this.performanceClient,t)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,r,o,n,i),a=await Fo(ua,ai,this.logger,this.performanceClient,t)(),c=await Fo(wl,ni,this.logger,this.performanceClient,t)(this.performanceClient,this.logger,t),l={...e,earJwk:a,codeChallenge:c.challenge},h=Ul(),d=this.config.auth.OIDCOptions.responseMode;let u;try{const r=Fo(this.waitForIframeResponse.bind(this),Qn,this.logger,this.performanceClient,t)(h,e);r.catch((()=>{})),await Fo(Nl,Gn,this.logger,this.performanceClient,t)(h,this.config,s,l,this.logger,this.performanceClient),u=await r}finally{Lo(Ll,oi,this.logger,this.performanceClient,t)(h)}const g=Lo(tl,ri,this.logger,this.performanceClient,t)(u,d,this.logger,this.correlationId);if(!g.ear_jwe&&g.code){const r=await Fo(this.createAuthCodeClient.bind(this),Vn,this.logger,this.performanceClient,t)({serverTelemetryManager:Wc(this.apiId,this.config.auth.clientId,t,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled),requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account,authority:s});return Fo(yl,ti,this.logger,this.performanceClient,t)(l,g,c.verifier,this.apiId,this.config,r,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}return Fo(Il,Xn,this.logger,this.performanceClient,t)(l,g,this.apiId,this.config,s,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async verifySso(t){const r={...t};r.prompt||(r.prompt=N.NONE);const o=await Fo(el,Zn,this.logger,this.performanceClient,this.correlationId)(r,e.InteractionType.Silent,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId),n=await Fo(this.createAuthCodeClient.bind(this),Vn,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:Wc(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled),requestAuthority:o.authority,requestAzureCloudOptions:o.azureCloudOptions,requestExtraQueryParameters:o.extraQueryParameters,account:o.account}),{serverParams:i}=await this.silentAuthorizeHelper(n,o),s=o.correlationId;return Pn(i,o.state,s),i.code?(this.logger.verbose("0kkkcj",s),!0):(this.logger.warning("0y34ti",s),!1)}logout(){return Promise.reject(is(_i,""))}async silentTokenHelper(e,t){const{serverParams:r,pkceCodes:o}=await this.silentAuthorizeHelper(e,t);return Fo(yl,ti,this.logger,this.performanceClient,t.correlationId)(t,r,o.verifier,this.apiId,this.config,e,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async silentAuthorizeHelper(e,t){const r=t.correlationId,o=await Fo(wl,ni,this.logger,this.performanceClient,r)(this.performanceClient,this.logger,r),n={...t,codeChallenge:o.challenge},i=Ul(),s=this.config.auth.OIDCOptions.responseMode;let a;try{const o=Fo(this.waitForIframeResponse.bind(this),Qn,this.logger,this.performanceClient,r)(i,t);if(o.catch((()=>{})),t.httpMethod===m)await Fo(ql,Gn,this.logger,this.performanceClient,r)(i,this.config,e.authority,n,this.logger,this.performanceClient);else{const t=await Fo(ul,Oo,this.logger,this.performanceClient,r)(this.config,e.authority,n,this.logger,this.performanceClient);await Fo(xl,Gn,this.logger,this.performanceClient,r)(i,t,this.logger,r)}a=await o}finally{Lo(Ll,oi,this.logger,this.performanceClient,r)(i)}return{serverParams:Lo(tl,ri,this.logger,this.performanceClient,r)(a,s,this.logger,this.correlationId),pkceCodes:o,silentRequest:n}}async waitForIframeResponse(e,t){return this.waitForIframeResponseHook?this.waitForIframeResponseHook(e,t):Ma(this.config.system.iframeBridgeTimeout,this.logger,t,this.performanceClient,this.config.experimental)}}class Hl extends Xc{async acquireToken(e){const t=await Fo(Vc,Jn,this.logger,this.performanceClient,e.correlationId)(e,this.config,this.performanceClient,this.logger,this.correlationId),r={...e,...t};e.redirectUri&&(r.redirectUri=Jc(e.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId));const o=Wc(Fs.acquireTokenSilent_silentFlow,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled),n=await this.createRefreshTokenClient({serverTelemetryManager:o,authorityUrl:r.authority,azureCloudOptions:r.azureCloudOptions,account:r.account});return Fo(n.acquireTokenByRefreshToken.bind(n),"refreshTokenClientAcquireTokenByRefreshToken",this.logger,this.performanceClient,e.correlationId)(r,Fs.acquireTokenSilent_silentFlow).catch((e=>{throw e.correlationId=this.correlationId,o.cacheFailedRequest(e),e}))}logout(){return Promise.reject(is(_i,""))}async createRefreshTokenClient(e){const t=await Fo(this.getClientConfiguration.bind(this),Yn,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:e.serverTelemetryManager,requestAuthority:e.authorityUrl,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account});return new bn(t,this.performanceClient)}}class Dl extends Tn{constructor(e,t){super(e,t),this.includeRedirectUri=!1}}class $l extends Xc{constructor(e,t,r,o,n,i,s,a,c,l){super(e,t,r,o,n,i,a,c,l),this.apiId=s}async acquireToken(t){if(!t.code)throw is(Hi,this.correlationId);const r=await Fo(el,Zn,this.logger,this.performanceClient,this.correlationId)(t,e.InteractionType.Silent,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId),o=Wc(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger,0,this.config.system.serverTelemetryEnabled);try{const e={...r,code:t.code},n=await Fo(this.getClientConfiguration.bind(this),Yn,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:r.authority,requestAzureCloudOptions:r.azureCloudOptions,requestExtraQueryParameters:r.extraQueryParameters,account:r.account}),i=new Dl(n,this.performanceClient);this.logger.verbose("1uic5e",this.correlationId);const s=new ol(i,this.browserStorage,e,this.logger,this.performanceClient);return await Fo(s.handleCodeResponseFromServer.bind(s),Mo,this.logger,this.performanceClient,this.correlationId)({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},r,this.apiId,!1)}catch(e){throw e instanceof Te&&(e.correlationId=this.correlationId,o.cacheFailedRequest(e)),e}}logout(){return Promise.reject(is(_i,""))}}function Kl(e,t,r,o){try{Da(e),Rn(r.auth.isMcp,o)}catch(e){throw t.end({success:!1},e,o.account),e}}class Bl{constructor(e){this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new Qa(this.logger,this.performanceClient):mr,this.eventHandler=new zc(this.logger),this.browserStorage=this.isBrowserEnvironment?new Lc(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler,vn(this.config.auth)):Hc(this.config.auth.clientId,this.logger,this.performanceClient,this.eventHandler);const t={cacheLocation:As.MemoryStorage,cacheRetentionDays:5};this.nativeInternalStorage=new Lc(this.config.auth.clientId,t,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler),this.activeSilentTokenRequests=new Map,this.trackStateChange=this.trackStateChange.bind(this),this.trackStateChangeWithMeasurement=this.trackStateChangeWithMeasurement.bind(this)}static async createController(e,t){const r=new Bl(e);return await r.initialize(t),r}trackStateChange(e,t){e&&("visibilitychange"===t.type?(this.logger.info("16v6hv",e),this.performanceClient.incrementFields({visibilityChangeCount:1},e)):"online"===t.type?(this.logger.info("0zirfd",e),this.performanceClient.incrementFields({onlineStatusChangeCount:1},e)):"offline"===t.type&&(this.logger.info("1xk9ef",e),this.performanceClient.incrementFields({onlineStatusChangeCount:1},e)))}async initialize(e){const t=this.getRequestCorrelationId(e);if(this.logger.trace("1f7joy",t),this.initialized)return void this.logger.info("061m5x",t);if(!this.isBrowserEnvironment)return this.logger.info("19fvpi",t),this.initialized=!0,void this.eventHandler.emitEvent(Pc.INITIALIZE_END,t);const r=this.config.system.allowPlatformBroker,o=this.performanceClient.startMeasurement(oc,t);if(this.eventHandler.emitEvent(Pc.INITIALIZE_START,t),this.logMultipleInstances(o,t),o.add({isMcp:this.config.auth.isMcp}),await Fo(this.browserStorage.initialize.bind(this.browserStorage),"initializeCache",this.logger,this.performanceClient,t)(t),r)try{this.platformAuthProvider=await Pl(this.logger,this.performanceClient,t,this.config.system.nativeBrokerHandshakeTimeout,this.config.experimental.allowPlatformBrokerWithDOM)}catch(e){this.logger.verbose(e,t)}this.config.cache.cacheLocation===As.LocalStorage&&this.eventHandler.subscribeCrossTab(),!this.config.system.navigatePopups&&await this.preGeneratePkceCodes(t),this.initialized=!0,this.eventHandler.emitEvent(Pc.INITIALIZE_END,t),o.end({allowPlatformBroker:r,success:!0})}async handleRedirectPromise(e){if(this.logger.verbose("02l8bm",""),Ha(this.initialized),this.isBrowserEnvironment){const t=e?.hash||"";let r=this.redirectResponse.get(t);return void 0===r?(r=this.handleRedirectPromiseInternal(e),this.redirectResponse.set(t,r),this.logger.verbose("1wn9kp","")):this.logger.verbose("0w0gm3",""),r}return this.logger.verbose("12xi63",""),null}async handleRedirectPromiseInternal(t){if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("0le6uv",""),null;const r=this.browserStorage.getInteractionInProgress()?.type;if(r===Ps)return this.logger.verbose("1ywcv2",""),this.browserStorage.setInteractionInProgress(!1),Promise.resolve(null);const o=this.getAllAccounts(),n=this.browserStorage.getCachedNativeRequest(),i=n&&!t?.hash;let s,a,c;try{if(i&&this.platformAuthProvider){const t=n?.correlationId||"";this.eventHandler.emitEvent(Pc.HANDLE_REDIRECT_START,t,e.InteractionType.Redirect),s=this.performanceClient.startMeasurement(tc,t),this.logger.trace("12v7is",t),s.add({isPlatformBrokerRequest:!0});const r=new cl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Fs.handleRedirectPromise,this.performanceClient,this.platformAuthProvider,n.accountId,this.nativeInternalStorage,n.correlationId);a=Fo(r.handleRedirectPromise.bind(r),"handleNativeRedirectPromise",this.logger,this.performanceClient,s.event.correlationId)()}else{const[r,o]=this.browserStorage.getCachedRequest("");c=r;const n=r.correlationId;this.eventHandler.emitEvent(Pc.HANDLE_REDIRECT_START,n,e.InteractionType.Redirect),s=this.performanceClient.startMeasurement(tc,n),this.logger.trace("0znzs5",n);const i=this.createRedirectClient(n);a=Fo(i.handleRedirectPromise.bind(i),"handleRedirectPromise",this.logger,this.performanceClient,s.event.correlationId)(r,o,s,t)}}catch(e){throw this.browserStorage.resetRequestCache(""),e}return a.then((t=>{if(t){this.browserStorage.resetRequestCache(t.correlationId),this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_SUCCESS,t.correlationId,e.InteractionType.Redirect,t),this.logger.verbose("0ui8f5",t.correlationId);o.length<this.getAllAccounts().length&&(this.eventHandler.emitEvent(Pc.LOGIN_SUCCESS,t.correlationId,e.InteractionType.Redirect,t.account),this.logger.verbose("16im3l",t.correlationId)),s.end({success:!0},void 0,t.account),this.verifySsoCapability(c,e.InteractionType.Redirect)}else s.event.errorCode?s.end({success:!1},void 0):s.discard();return this.eventHandler.emitEvent(Pc.HANDLE_REDIRECT_END,s.event.correlationId,e.InteractionType.Redirect),t})).catch((t=>{this.browserStorage.resetRequestCache(s.event.correlationId);const r=t;throw this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_FAILURE,s.event.correlationId,e.InteractionType.Redirect,null,r),this.eventHandler.emitEvent(Pc.HANDLE_REDIRECT_END,s.event.correlationId,e.InteractionType.Redirect),s.end({success:!1},r),t}))}async acquireTokenRedirect(t){const r=this.getRequestCorrelationId(t);this.logger.verbose("0os66p",r),$a(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0,Es);const o=this.performanceClient.startMeasurement(ec,r);o.add({scenarioId:t.scenarioId});const n=this.config.auth.onRedirectNavigate;this.config.auth.onRedirectNavigate=e=>{const r="function"==typeof n?n(e):void 0;return o.add({navigateCallbackResult:!1!==r}),o.event=o.end({success:!0},void 0,t.account)||o.event,r};try{let n;if(Rn(this.config.auth.isMcp,t),this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_START,r,e.InteractionType.Redirect,t),this.platformAuthProvider&&this.canUsePlatformBroker(t)){const e=new cl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Fs.acquireTokenRedirect,this.performanceClient,this.platformAuthProvider,this.getNativeAccountId(t),this.nativeInternalStorage,r);n=Fo(e.acquireTokenRedirect.bind(e),"nativeInteractionClientAcquireToken",this.logger,this.performanceClient,r)(t,o).catch((e=>{if(o.add({brokerErrorName:e.name,brokerErrorCode:e.errorCode}),e instanceof nl&&il(e)){this.platformAuthProvider=void 0;return this.createRedirectClient(r).acquireToken(t)}if(e instanceof Xo){this.logger.verbose("1ipyz4",r);return this.createRedirectClient(r).acquireToken(t)}throw e}))}else{n=this.createRedirectClient(r).acquireToken(t)}return await n}catch(n){throw this.browserStorage.resetRequestCache(r),2===o.event.status?this.performanceClient.startMeasurement(tc,r).end({success:!1},n,t.account):o.end({success:!1},n,t.account),this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_FAILURE,r,e.InteractionType.Redirect,null,n),n}}acquireTokenPopup(t){const r=this.getRequestCorrelationId(t),o=this.performanceClient.startMeasurement(Xa,r);o.add({scenarioId:t.scenarioId});try{this.logger.verbose("0ch87b",r),Kl(this.initialized,o,this.config,t),this.browserStorage.setInteractionInProgress(!0,Es,t.overrideInteractionInProgress,r)}catch(e){return Promise.reject(e)}const n=this.getAllAccounts();let i;this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_START,r,e.InteractionType.Popup,t);const s=this.getPreGeneratedPkceCodes(r);if(this.canUsePlatformBroker(t))o.add({isPlatformBrokerRequest:!0}),i=this.acquireTokenNative({...t,correlationId:r},Fs.acquireTokenPopup).then((e=>(o.end({success:!0,isNativeBroker:!0},void 0,e.account),e))).catch((e=>{if(o.add({brokerErrorName:e.name,brokerErrorCode:e.errorCode}),e instanceof nl&&il(e)){this.platformAuthProvider=void 0;return this.createPopupClient(r).acquireToken(t,s)}if(e instanceof Xo){this.logger.verbose("0yy5fw",r);return this.createPopupClient(r).acquireToken(t,s)}throw e}));else{i=this.createPopupClient(r).acquireToken(t,s)}return i.then((i=>{const s=n.length<this.getAllAccounts().length;return this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_SUCCESS,r,e.InteractionType.Popup,i),s&&this.eventHandler.emitEvent(Pc.LOGIN_SUCCESS,r,e.InteractionType.Popup,i.account),o.end({success:!0,accessTokenSize:i.accessToken.length,idTokenSize:i.idToken.length},void 0,i.account),this.verifySsoCapability(t,e.InteractionType.Popup),i})).catch((n=>(this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_FAILURE,r,e.InteractionType.Popup,null,n),o.end({success:!1},n,t.account),Promise.reject(n)))).finally((async()=>{this.browserStorage.setInteractionInProgress(!1),this.config.system.navigatePopups||await this.preGeneratePkceCodes(r)}))}trackStateChangeWithMeasurement(e){const t=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;t&&("visibilitychange"===e.type?(this.logger.info(`0yzimq ${t.event.name}`,t.event.correlationId),t.increment({visibilityChangeCount:1})):"online"===e.type?(this.logger.info(`1caf53 ${t.event.name}`,t.event.correlationId),t.increment({onlineStatusChangeCount:1})):"offline"===e.type&&(this.logger.info(`0fdyk7 ${t.event.name}`,t.event.correlationId),t.increment({onlineStatusChangeCount:1})))}addStateChangeListeners(e){document.addEventListener("visibilitychange",e),window.addEventListener("online",e),window.addEventListener("offline",e)}removeStateChangeListeners(e){document.removeEventListener("visibilitychange",e),window.removeEventListener("online",e),window.removeEventListener("offline",e)}getCachedSsoCapable(){try{const e=window.localStorage.getItem(fc);if(e){const t=JSON.parse(e);if(t&&"boolean"==typeof t.ssoCapable&&t.expiresOn&&Date.now()<t.expiresOn)return t.ssoCapable}}catch{}}verifySsoCapability(e,t){if(!this.config.auth.verifySSO)return;const r=fc;if(void 0!==this.getCachedSsoCapable())return void this.logger.verbose(`13poou ${t}`,"");const o=ha(),n=this.performanceClient.startMeasurement(sc,o);n.add({"ext.interactionType":t}),this.logger.verbose(`0pbr0i ${t}`,o),setTimeout((()=>{const i={...e,correlationId:o};this.createSilentIframeClient(o).verifySso(i).then((e=>{this.logger.verbose(`1gd1iv ${t} ${e}`,o);try{const t=JSON.stringify({ssoCapable:e,expiresOn:Date.now()+864e5});window.localStorage.setItem(r,t)}catch{this.logger.warning(`18lmoj ${t}`,o)}n.end({fromCache:!1,success:e},void 0)})).catch((e=>{this.logger.warning(`05g83w ${t} ${e.message}`,o);try{window.localStorage.removeItem(r)}catch{this.logger.warning(`0nlf9q ${t}`,o)}n.end({fromCache:!1,success:!1},e)}))}),0)}async ssoSilent(t){const r=this.getRequestCorrelationId(t),o={...t,correlationId:r};this.ssoSilentMeasurement=this.performanceClient.startMeasurement(rc,r),this.ssoSilentMeasurement?.add({scenarioId:t.scenarioId,ssoCapable:this.getCachedSsoCapable()}),Kl(this.initialized,this.ssoSilentMeasurement,this.config,o),this.ssoSilentMeasurement?.increment({visibilityChangeCount:0,onlineStatusChangeCount:0}),this.addStateChangeListeners(this.trackStateChangeWithMeasurement);const n=this.getAllAccounts();let i;if(this.logger.verbose("0w1b45",r),this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_START,r,e.InteractionType.Silent,o),this.canUsePlatformBroker(o))this.ssoSilentMeasurement?.add({isPlatformBrokerRequest:!0}),i=this.acquireTokenNative(o,Fs.ssoSilent).catch((e=>{if(this.ssoSilentMeasurement?.add({brokerErrorName:e.name,brokerErrorCode:e.errorCode}),e instanceof nl&&il(e)){this.platformAuthProvider=void 0;return this.createSilentIframeClient(o.correlationId).acquireToken(o)}throw e}));else{i=this.createSilentIframeClient(o.correlationId).acquireToken(o)}return i.then((t=>{const o=n.length<this.getAllAccounts().length;return this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_SUCCESS,r,e.InteractionType.Silent,t),o&&this.eventHandler.emitEvent(Pc.LOGIN_SUCCESS,r,e.InteractionType.Silent,t.account),this.ssoSilentMeasurement?.end({success:!0,isNativeBroker:t.fromPlatformBroker,accessTokenSize:t.accessToken.length,idTokenSize:t.idToken.length},void 0,t.account),t})).catch((o=>{throw this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_FAILURE,r,e.InteractionType.Silent,null,o),this.ssoSilentMeasurement?.end({success:!1},o,t.account),o})).finally((()=>{this.removeStateChangeListeners(this.trackStateChangeWithMeasurement)}))}async acquireTokenByCode(t){const r=this.getRequestCorrelationId(t);this.logger.trace("0ch6ga",r);const o=this.performanceClient.startMeasurement(Za,r);Kl(this.initialized,o,this.config,t),this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_START,r,e.InteractionType.Silent,t),o.add({scenarioId:t.scenarioId});try{if(t.code&&t.nativeAccountId)throw is($i,r);if(t.code){const n=t.code;let i=this.hybridAuthCodeResponses.get(n);return i?(this.logger.verbose("0qgp28",r),o.discard()):(this.logger.verbose("06eh73",r),i=this.acquireTokenByCodeAsync({...t,correlationId:r}).then((t=>(this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_SUCCESS,r,e.InteractionType.Silent,t),this.hybridAuthCodeResponses.delete(n),o.end({success:!0,accessTokenSize:t.accessToken.length,idTokenSize:t.idToken.length},void 0,t.account),t))).catch((t=>{throw this.hybridAuthCodeResponses.delete(n),this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_FAILURE,r,e.InteractionType.Silent,null,t),o.end({success:!1},t),t})),this.hybridAuthCodeResponses.set(n,i)),await i}if(t.nativeAccountId){if(this.canUsePlatformBroker(t,t.nativeAccountId)){o.add({isPlatformBrokerRequest:!0});const e=await this.acquireTokenNative({...t,correlationId:r},Fs.acquireTokenByCode,t.nativeAccountId).catch((e=>{throw o.add({brokerErrorName:e.name,brokerErrorCode:e.errorCode}),e instanceof nl&&il(e)&&(this.platformAuthProvider=void 0),e}));return o.end({success:!0},void 0,e.account),e}throw is(Bi,r)}throw is(Di,r)}catch(t){throw this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_FAILURE,r,e.InteractionType.Silent,null,t),o.end({success:!1},t),t}}async acquireTokenByCodeAsync(e){const t=this.getRequestCorrelationId(e);this.logger.trace("10d9hy",t),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement("acquireTokenByCodeAsync",t),this.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0,onlineStatusChangeCount:0}),this.addStateChangeListeners(this.trackStateChangeWithMeasurement);const r=this.createSilentAuthCodeClient(t);return await r.acquireToken(e).then((e=>(this.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:e.fromCache}),e))).catch((e=>{throw this.acquireTokenByCodeAsyncMeasurement?.end({success:!1},e),e})).finally((()=>{this.removeStateChangeListeners(this.trackStateChangeWithMeasurement)}))}async acquireTokenFromCache(e,t){switch(t){case js.Default:case js.AccessToken:case js.AccessTokenAndRefreshToken:const t=this.createSilentCacheClient(e.correlationId);return Fo(t.acquireToken.bind(t),"silentCacheClientAcquireToken",this.logger,this.performanceClient,e.correlationId)(e);default:throw Pe(vt,e.correlationId)}}async acquireTokenByRefreshToken(e,t){switch(t){case js.Default:case js.AccessTokenAndRefreshToken:case js.RefreshToken:case js.RefreshTokenAndNetwork:const t=this.createSilentRefreshClient(e.correlationId);return Fo(t.acquireToken.bind(t),"silentRefreshClientAcquireToken",this.logger,this.performanceClient,e.correlationId)(e);default:throw Pe(vt,e.correlationId)}}async acquireTokenBySilentIframe(e){const t=this.createSilentIframeClient(e.correlationId);return Fo(t.acquireToken.bind(t),"silentIframeClientAcquireToken",this.logger,this.performanceClient,e.correlationId)(e)}async logoutRedirect(e){const t=this.getRequestCorrelationId(e);$a(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0,Ps);return this.createRedirectClient(t).logout(e)}logoutPopup(e){try{const t=this.getRequestCorrelationId(e);Da(this.initialized),this.browserStorage.setInteractionInProgress(!0,Ps);return this.createPopupClient(t).logout(e).finally((()=>{this.browserStorage.setInteractionInProgress(!1)}))}catch(e){return Promise.reject(e)}}async clearCache(e){if(!this.isBrowserEnvironment)return;const t=this.getRequestCorrelationId(e);return this.createSilentCacheClient(t).logout(e)}getAllAccounts(e){return Dc(this.logger,this.browserStorage,this.isBrowserEnvironment,this.getRequestCorrelationId(),e)}getAccount(e){return $c(e,this.logger,this.browserStorage,this.getRequestCorrelationId())}setActiveAccount(e){Kc(e,this.browserStorage,this.getRequestCorrelationId())}getActiveAccount(){return Bc(this.browserStorage,this.getRequestCorrelationId())}async hydrateCache(e,t){this.logger.verbose("16jycr",e.correlationId);const r=Wr(e.account,e.cloudGraphHostName,e.msGraphHost);if(await this.browserStorage.setAccount(r,e.correlationId,br(e.idTokenClaims),Fs.hydrateCache),!e.fromPlatformBroker)return this.browserStorage.hydrateCache(e,t);{this.logger.verbose("1i5atf",e.correlationId);const r=wo(e.account.homeAccountId,e.account.environment,e.idToken,this.config.auth.clientId,e.tenantId),o=Co(e.account.homeAccountId,e.account.environment,e.accessToken,this.config.auth.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?po(e.expiresOn):0,e.extExpiresOn?po(e.extExpiresOn):0,ss,t.correlationId||"",void 0,e.tokenType,void 0,t.sshKid);t.resource&&(o.resource=t.resource);const n=br(e.idTokenClaims);await this.browserStorage.setIdTokenCredential(r,e.correlationId,n),await this.nativeInternalStorage.setAccessTokenCredential(o,e.correlationId,n)}}async acquireTokenNative(e,t,r,o){const n=this.getRequestCorrelationId(e);if(this.logger.trace("0b9y3p",n),!this.platformAuthProvider)throw is(Ji,n);const i=new cl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.platformAuthProvider,r||this.getNativeAccountId(e),this.nativeInternalStorage,n);return Fo(i.acquireToken.bind(i),zn,this.logger,this.performanceClient,n)(e,o)}canUsePlatformBroker(e,t){const r=this.getRequestCorrelationId(e);if(this.logger.trace("1n9lbl",r),!this.platformAuthProvider)return this.logger.trace("0vnu11",r),!1;if(!Rl(this.config,this.logger,r,this.platformAuthProvider,e.authenticationScheme))return this.logger.trace("0yoy1g",r),!1;if(e.prompt)switch(e.prompt){case N.NONE:case N.CONSENT:case N.LOGIN:this.logger.trace("0vdv8e",r);break;default:return this.logger.trace(`0pdzw6 ${e.prompt}`,r),!1}return!(!t&&!this.getNativeAccountId(e))||(this.logger.trace("16lbtk",r),!1)}getNativeAccountId(e){const t=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||(e.loginHint||e.sid?null:this.getActiveAccount());return t&&t.nativeAccountId||""}createPopupClient(e){return new Ol(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,e,this.platformAuthProvider,this.operatingContext.getResponseHandlers()?.waitForPopupResponse)}createRedirectClient(e){return new Ml(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,e,this.platformAuthProvider)}createSilentIframeClient(e){return new Fl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Fs.ssoSilent,this.performanceClient,this.nativeInternalStorage,e,this.platformAuthProvider,this.operatingContext.getResponseHandlers()?.waitForIframeResponse)}createSilentCacheClient(e){return new al(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,e,this.platformAuthProvider)}createSilentRefreshClient(e){return new Hl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,e,this.platformAuthProvider)}createSilentAuthCodeClient(e){return new $l(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Fs.acquireTokenByCode,this.performanceClient,e,this.platformAuthProvider)}addEventCallback(e,t){return this.eventHandler.addEventCallback(e,t)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return Fa(),this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,t){this.browserStorage.setWrapperMetadata(e,t)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(e){return e?.correlationId?e.correlationId:this.isBrowserEnvironment?ha():""}async loginRedirect(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("0lz9hf",t),this.acquireTokenRedirect({correlationId:t,...e||Ks})}loginPopup(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("0qw7v5",t),this.acquireTokenPopup({correlationId:t,...e||Ks})}async acquireTokenSilent(e){const t=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(Ya,t);r.add({cacheLookupPolicy:e.cacheLookupPolicy,scenarioId:e.scenarioId,ssoCapable:this.getCachedSsoCapable()}),Kl(this.initialized,r,this.config,e),this.logger.verbose("0x1c4s",t);const o=e.account||this.getActiveAccount();if(!o)throw is(Ei,t);return this.acquireTokenSilentDeduped(e,o,t).then((o=>(r.end({success:!0,fromCache:o.fromCache,accessTokenSize:o.accessToken.length,idTokenSize:o.idToken.length},void 0,o.account),{...o,state:e.state,correlationId:t}))).catch((e=>{throw e instanceof Te&&(e.correlationId=t),r.end({success:!1},e,o),e}))}async acquireTokenSilentDeduped(e,t,r){const o=dn(this.config.auth.clientId,{...e,authority:e.authority||this.config.auth.authority},t.homeAccountId),n=JSON.stringify(o),i=this.activeSilentTokenRequests.get(n);if(void 0===i){this.logger.verbose("0fcjbk",r),this.performanceClient.addFields({deduped:!1},r);const o=Fo(this.acquireTokenSilentAsync.bind(this),"acquireTokenSilentAsync",this.logger,this.performanceClient,r)({...e,correlationId:r},t);return this.activeSilentTokenRequests.set(n,o),o.finally((()=>{this.activeSilentTokenRequests.delete(n)}))}return this.logger.verbose("1yq7nb",r),this.performanceClient.addFields({deduped:!0},r),i}async acquireTokenSilentAsync(t,r){const o=e=>this.trackStateChange(t.correlationId,e);this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_START,t.correlationId,e.InteractionType.Silent,t),t.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0,onlineStatusChangeCount:0},t.correlationId),this.addStateChangeListeners(o);const n=await Fo(Yc,"initializeSilentRequest",this.logger,this.performanceClient,t.correlationId)(t,r,this.config,this.performanceClient,this.logger),i=t.cacheLookupPolicy||js.Default;return this.acquireTokenSilentNoIframe(n,i).catch((async e=>{const r=function(e,t){const r=!(e instanceof Xo&&e.subError!==Go),o=e.errorCode===cs||e.errorCode===vt,n=r&&o||e.errorCode===$o||e.errorCode===Bo,i=Js.includes(t);return n&&i}(e,i);if(r){const r=`${e.errorCode}${e.subError?`|${e.subError}`:""}`;if(this.performanceClient.addFields({silentRefreshReason:r},t.correlationId),this.activeIframeRequest){if(i!==js.Skip){const[t,r]=this.activeIframeRequest;this.logger.verbose(`1w8fso ${r}`,n.correlationId);const o=this.performanceClient.startMeasurement("awaitConcurrentIframe",n.correlationId);o.add({awaitIframeCorrelationId:r});const s=await t;if(o.end({success:s}),s)return this.logger.verbose(`0ywzzi ${r}`,n.correlationId),this.acquireTokenSilentNoIframe(n,i);throw this.logger.info(`17y14q ${r}`,n.correlationId),e}return this.logger.warning("1bd4p8",n.correlationId),Fo(this.acquireTokenBySilentIframe.bind(this),jn,this.logger,this.performanceClient,n.correlationId)(n)}{let e;return this.activeIframeRequest=[new Promise((t=>{e=t})),n.correlationId],this.logger.verbose("0rh08z",n.correlationId),Fo(this.acquireTokenBySilentIframe.bind(this),jn,this.logger,this.performanceClient,n.correlationId)(n).then((t=>(e(!0),t))).catch((t=>{throw e(!1),t})).finally((()=>{this.activeIframeRequest=void 0}))}}throw e})).then((r=>(this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_SUCCESS,t.correlationId,e.InteractionType.Silent,r),t.correlationId&&this.performanceClient.addFields({fromCache:r.fromCache,isNativeBroker:r.fromPlatformBroker},t.correlationId),r))).catch((r=>{throw this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_FAILURE,t.correlationId,e.InteractionType.Silent,null,r),r})).finally((()=>{this.removeStateChangeListeners(o)}))}async acquireTokenSilentNoIframe(t,r){return Rl(this.config,this.logger,t.correlationId,this.platformAuthProvider,t.authenticationScheme)&&t.account.nativeAccountId?(this.logger.verbose("0sczo4",t.correlationId),this.performanceClient.addFields({isPlatformBrokerRequest:!0},t.correlationId),this.acquireTokenNative(t,Fs.acquireTokenSilent_silentFlow,t.account.nativeAccountId,r).catch((async e=>{if(this.performanceClient.addFields({brokerErrorName:e.name,brokerErrorCode:e.errorCode},t.correlationId),e instanceof nl&&il(e))throw this.logger.verbose("07rkmb",t.correlationId),this.platformAuthProvider=void 0,Pe(vt,t.correlationId);throw e}))):(this.logger.verbose("0ox81t",t.correlationId),r===js.AccessToken&&this.logger.verbose("0fvwxe",t.correlationId),Fo(this.acquireTokenFromCache.bind(this),"acquireTokenFromCache",this.logger,this.performanceClient,t.correlationId)(t,r).catch((o=>{if(r===js.AccessToken)throw o;return this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_NETWORK_START,t.correlationId,e.InteractionType.Silent,t),Fo(this.acquireTokenByRefreshToken.bind(this),"acquireTokenByRefreshToken",this.logger,this.performanceClient,t.correlationId)(t,r)})))}async preGeneratePkceCodes(e){return this.logger.verbose("1x6uj6",e),this.pkceCode=await Fo(wl,ni,this.logger,this.performanceClient,e)(this.performanceClient,this.logger,e),Promise.resolve()}getPreGeneratedPkceCodes(e){const t=this.pkceCode?{...this.pkceCode}:void 0;return this.pkceCode=void 0,t?this.logger.verbose("12js1o",e):this.logger.verbose("1oe9ci",e),this.performanceClient.addFields({usePreGeneratedPkce:!!t},e),t}logMultipleInstances(e,t){const r=this.config.auth.clientId;if(!window)return;window.msal=window.msal||{},window.msal.clientIds=window.msal.clientIds||[];window.msal.clientIds.length>0&&this.logger.verbose("1qtz3l",t),window.msal.clientIds.push(r),function(e,t,r,o){const n=window.msal?.clientIds||[],i=n.length,s=n.filter((t=>t===e)).length;s>1&&r.warning("1e88vg",o),t.add({msalInstanceCount:i,sameClientIdInstanceCount:s})}(r,e,this.logger,t)}}class zl{static loggerCallback(t,r){switch(t){case e.LogLevel.Error:return void console.error(r);case e.LogLevel.Info:return void console.info(r);case e.LogLevel.Verbose:return void console.debug(r);case e.LogLevel.Warning:return void console.warn(r);default:return void console.log(r)}}constructor(t,r){let o;this.browserEnvironment="undefined"!=typeof window,this.config=Sl(t,this.browserEnvironment),this.responseHandlers=r;try{o=window[As.SessionStorage]}catch(e){}const n=o?.getItem(hc),i=o?.getItem(dc)?.toLowerCase(),s="true"===i||"false"!==i&&void 0,a={...this.config.system.loggerOptions},c=n&&Object.keys(e.LogLevel).includes(n)?e.LogLevel[n]:void 0;c&&(a.loggerCallback=zl.loggerCallback,a.logLevel=c),void 0!==s&&(a.piiLoggingEnabled=s),this.logger=new wr(a,Rc,Oc),this.available=!1}getConfig(){return this.config}getResponseHandlers(){return this.responseHandlers}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}class jl extends zl{getModuleName(){return jl.MODULE_NAME}getId(){return jl.ID}async initialize(e){return this.available="undefined"!=typeof window,this.available}}jl.MODULE_NAME="",jl.ID="StandardOperatingContext";const Jl="USER_INTERACTION_REQUIRED",Wl="USER_CANCEL",Gl="NO_NETWORK",Ql="TRANSIENT_ERROR",Vl="PERSISTENT_ERROR",Yl="DISABLED",Zl="ACCOUNT_UNAVAILABLE",Xl="NESTED_APP_AUTH_UNAVAILABLE";class eh{constructor(e,t,r,o){this.clientId=e,this.clientCapabilities=t,this.crypto=r,this.logger=o}toNaaTokenRequest(e){let t;t=void 0===e.extraQueryParameters?new Map:new Map(Object.entries(e.extraQueryParameters));const r=e.correlationId||this.crypto.createNewGuid(),o=nr(e.claims,this.clientCapabilities),n=e.scopes||f;return{platformBrokerId:e.account?.homeAccountId,clientId:this.clientId,authority:e.authority,resource:e.resource,scope:n.join(" "),correlationId:r,claims:_e.isEmptyObj(o)?void 0:o,state:e.state,authenticationScheme:e.authenticationScheme||X.BEARER,extraParameters:t}}fromNaaTokenResponse(e,t,r){if(!t.token.id_token||!t.token.access_token)throw Pe(rt,e.correlationId);const o=mo(r+(t.token.expires_in||0)),n=Tr(t.token.id_token,this.crypto.base64Decode,e.correlationId),i=this.fromNaaAccountInfo(t.account,t.token.id_token,n),s=t.token.scope||e.scope;return{authority:t.token.authority||i.environment,uniqueId:i.localAccountId,tenantId:i.tenantId,scopes:s.split(" "),account:i,idToken:t.token.id_token,idTokenClaims:n,accessToken:t.token.access_token,fromCache:!1,expiresOn:o,tokenType:e.authenticationScheme||X.BEARER,correlationId:e.correlationId,extExpiresOn:o,state:e.state}}fromNaaAccountInfo(e,t,r){const o=r||e.idTokenClaims,n=e.localAccountId||o?.oid||o?.sub||"",i=e.tenantId||zr(o)||"",s=e.homeAccountId||`${n}.${i}`,a=e.environment;if(!a)throw Pe(It,"");const c=o?.preferred_username||o?.upn,l=o?.emails?.[0]||null,h=e.username||c||l||"",d=e.name||o?.name||"",u=e.loginHint||o?.login_hint,g=new Map,p=Sr(s,n,i,e.platformBrokerId,o);g.set(i,p);return{homeAccountId:s,environment:a,tenantId:i,username:h,localAccountId:n,name:d,loginHint:u,idToken:t,idTokenClaims:o,nativeAccountId:e.platformBrokerId,tenantProfiles:g}}fromBridgeError(e){if(!function(e){return void 0!==e.status}(e))return new Te("unknown_error","","An unknown error occurred");switch(e.status){case Wl:return new Ee(Et,"");case Gl:return new Ee(_t,"");case Zl:return new Ee(wt,"");case Yl:return new Ee(Rt,"");case Xl:return new Ee(e.code||Rt,"",e.description);case Ql:case Vl:return new rn(e.code||"","",e.description);case Jl:return new Xo(e.code||"","",e.description);default:return new Te(e.code||"","",e.description)}}toAuthenticationResultFromCache(e,t,r,o,n){if(!t||!r)throw Pe(rt,n);const i=Tr(t.secret,this.crypto.base64Decode,n),s=r.target||o.scopes.join(" ");return{authority:r.environment||e.environment,uniqueId:e.localAccountId,tenantId:e.tenantId,scopes:s.split(" "),account:e,idToken:t.secret,idTokenClaims:i||{},accessToken:r.secret,fromCache:!0,expiresOn:mo(r.expiresOn),extExpiresOn:mo(r.extendedExpiresOn),tokenType:o.authenticationScheme||X.BEARER,correlationId:n,state:o.state}}}class th extends Te{constructor(e,t,r){super(e,t,r),Object.setPrototypeOf(this,th.prototype),this.name="NestedAppAuthError"}static createUnsupportedError(e){return new th("unsupported_method",e||"")}}class rh{constructor(e){this.operatingContext=e;const t=this.operatingContext.getBridgeProxy();if(void 0===t)throw new Error("unexpected: bridgeProxy is undefined");this.bridgeProxy=t,this.config=e.getConfig(),this.logger=this.operatingContext.getLogger(),this.performanceClient=this.config.telemetry.client,this.browserCrypto=e.isBrowserEnvironment()?new Qa(this.logger,this.performanceClient,!0):mr,this.eventHandler=new zc(this.logger),this.browserStorage=this.operatingContext.isBrowserEnvironment()?new Lc(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler,vn(this.config.auth)):Hc(this.config.auth.clientId,this.logger,this.performanceClient,this.eventHandler),this.nestedAppAuthAdapter=new eh(this.config.auth.clientId,this.config.auth.clientCapabilities,this.browserCrypto,this.logger);const r=this.bridgeProxy.getAccountContext();this.currentAccountContext=r||null}static async createController(e){const t=new rh(e);return Promise.resolve(t)}async initialize(e,t){const r=e?.correlationId||ha();return await this.browserStorage.initialize(r),Promise.resolve()}ensureValidRequest(e){return e?.correlationId?e:{...e,correlationId:this.browserCrypto.createNewGuid()}}async acquireTokenInteractive(t){const r=this.ensureValidRequest(t),o=r.correlationId||ha();this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_START,o,e.InteractionType.Popup,r);const n=this.performanceClient.startMeasurement(Xa,o);n.add({nestedAppAuthRequest:!0});try{Rn(this.config.auth.isMcp,r);const i=this.nestedAppAuthAdapter.toNaaTokenRequest(r),s=go(),a=await this.bridgeProxy.getTokenInteractive(i),c={...this.nestedAppAuthAdapter.fromNaaTokenResponse(i,a,s)};try{await this.hydrateCache(c,t)}catch(e){this.logger.warningPii(`1mwr91 ${e}`,o)}return this.currentAccountContext={homeAccountId:c.account.homeAccountId,environment:c.account.environment,tenantId:c.account.tenantId},this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_SUCCESS,o,e.InteractionType.Popup,c),n.add({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),n.end({success:!0,requestId:c.requestId},void 0,c.account),c}catch(r){const i=r instanceof Te?r:this.nestedAppAuthAdapter.fromBridgeError(r);throw this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_FAILURE,o,e.InteractionType.Popup,null,r),n.end({success:!1},r,t.account),i}}async acquireTokenSilentInternal(t){const r=this.ensureValidRequest(t),o=r.correlationId||ha();this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_START,o,e.InteractionType.Silent,r);const n=await this.acquireTokenFromCache(r);if(n)return this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_SUCCESS,o,e.InteractionType.Silent,n),n;const i=this.performanceClient.startMeasurement(rc,o);i.increment({visibilityChangeCount:0}),i.add({nestedAppAuthRequest:!0});try{Rn(this.config.auth.isMcp,r);const n=this.nestedAppAuthAdapter.toNaaTokenRequest(r);n.forceRefresh=r.forceRefresh;const s=go(),a=await this.bridgeProxy.getTokenSilent(n),c=this.nestedAppAuthAdapter.fromNaaTokenResponse(n,a,s);try{await this.hydrateCache(c,t)}catch(e){this.logger.warningPii(`1mwr91 ${e}`,o)}return this.currentAccountContext={homeAccountId:c.account.homeAccountId,environment:c.account.environment,tenantId:c.account.tenantId},this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_SUCCESS,o,e.InteractionType.Silent,c),i?.add({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),i?.end({success:!0,requestId:c.requestId},void 0,c.account),c}catch(r){const n=r instanceof Te?r:this.nestedAppAuthAdapter.fromBridgeError(r);throw this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_FAILURE,o,e.InteractionType.Silent,null,r),i?.end({success:!1},r,t.account),n}}async acquireTokenFromCache(t){const r=t.correlationId||ha(),o=this.performanceClient.startMeasurement(Ya,r);if(o?.add({nestedAppAuthRequest:!0}),t.claims)return this.logger.verbose("11t57w",r),null;if(t.forceRefresh)return this.logger.verbose("1ovnmo",r),null;let n=null;switch(t.cacheLookupPolicy||(t.cacheLookupPolicy=js.Default),t.cacheLookupPolicy){case js.Default:case js.AccessToken:case js.AccessTokenAndRefreshToken:n=await this.acquireTokenFromCacheInternal(t);break;default:return null}return n?(this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_SUCCESS,r,e.InteractionType.Silent,n),o.add({accessTokenSize:n.accessToken.length,idTokenSize:n.idToken.length}),o.end({success:!0},void 0,n.account),n):(this.logger.warning("1yb4fi",r),this.eventHandler.emitEvent(Pc.ACQUIRE_TOKEN_FAILURE,r,e.InteractionType.Silent,null),o.end({success:!1},void 0,t.account),null)}async acquireTokenFromCacheInternal(e){const t=this.bridgeProxy.getAccountContext()||this.currentAccountContext,r=e.correlationId||ha();let o=null;if(t&&(o=$c(t,this.logger,this.browserStorage,r)),!o)return this.logger.verbose("10qnr0",r),Promise.resolve(null);this.logger.verbose("1u7hux",r);const n={...e,correlationId:r,authority:e.authority||o.environment,scopes:e.scopes?.length?e.scopes:[...f]},i=this.browserStorage.getTokenKeys(),s=this.browserStorage.getAccessToken(o,n,i,o.tenantId);if(!s)return this.logger.verbose("03vm49",r),Promise.resolve(null);if(Io(s.cachedAt)||fo(s.expiresOn,this.config.system.tokenRenewalOffsetSeconds))return this.logger.verbose("18egye",r),Promise.resolve(null);if(n.resource){const e=n.resource,t=s.resource;if(!t||t!==e)return this.logger.verbose("0qraxd",r),Promise.resolve(null)}const a=this.browserStorage.getIdToken(o,n.correlationId,i,o.tenantId);return a?this.nestedAppAuthAdapter.toAuthenticationResultFromCache(o,a,s,n,n.correlationId):(this.logger.verbose("0d68kd",r),Promise.resolve(null))}async acquireTokenPopup(e){return this.acquireTokenInteractive(e)}acquireTokenRedirect(e){throw th.createUnsupportedError(e?.correlationId)}async acquireTokenSilent(e){return this.acquireTokenSilentInternal(e)}acquireTokenByCode(e){throw th.createUnsupportedError(e?.correlationId)}addEventCallback(e,t){return this.eventHandler.addEventCallback(e,t)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){throw th.createUnsupportedError()}removePerformanceCallback(e){throw th.createUnsupportedError()}getAllAccounts(e){return Dc(this.logger,this.browserStorage,this.isBrowserEnv(),ha(),e)}getAccount(e){return $c(e,this.logger,this.browserStorage,ha())}setActiveAccount(e){return Kc(e,this.browserStorage,ha())}getActiveAccount(){return Bc(this.browserStorage,ha())}handleRedirectPromise(e){return Promise.resolve(null)}loginPopup(e){return this.acquireTokenInteractive(e||Ks)}loginRedirect(e){throw th.createUnsupportedError(e?.correlationId)}logoutRedirect(e){throw th.createUnsupportedError(e?.correlationId)}logoutPopup(e){throw th.createUnsupportedError(e?.correlationId)}ssoSilent(e){return this.acquireTokenSilentInternal(e)}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,t){}setNavigationClient(e){this.logger.warning("1k8729","")}getConfiguration(){return this.config}isBrowserEnv(){return this.operatingContext.isBrowserEnvironment()}getBrowserCrypto(){return this.browserCrypto}getPerformanceClient(){throw th.createUnsupportedError()}getRedirectResponse(){throw th.createUnsupportedError()}async clearCache(e){throw th.createUnsupportedError(e?.correlationId)}async hydrateCache(e,t){this.logger.verbose("16jycr",e.correlationId);const r=Wr(e.account,e.cloudGraphHostName,e.msGraphHost);return await this.browserStorage.setAccount(r,e.correlationId,br(e.idTokenClaims),Fs.hydrateCache),this.browserStorage.hydrateCache(e,t)}}class oh{static async initializeNestedAppAuthBridge(){if(void 0===window)throw new Error("window is undefined");if(void 0===window.nestedAppAuthBridge)throw new Error("window.nestedAppAuthBridge is undefined");try{window.nestedAppAuthBridge.addEventListener("message",(e=>{const t="string"==typeof e?e:e.data,r=JSON.parse(t),o=oh.bridgeRequests.find((e=>e.requestId===r.requestId));void 0!==o&&(oh.bridgeRequests.splice(oh.bridgeRequests.indexOf(o),1),r.success?o.resolve(r):o.reject(r.error))}));const e=await new Promise(((e,t)=>{const r=oh.buildRequest("GetInitContext"),o={requestId:r.requestId,method:r.method,resolve:e,reject:t};oh.bridgeRequests.push(o),window.nestedAppAuthBridge.postMessage(JSON.stringify(r))}));return oh.validateBridgeResultOrThrow(e.initContext)}catch(e){throw window.console.log(e),e}}getTokenInteractive(e){return this.getToken("GetTokenPopup",e)}getTokenSilent(e){return this.getToken("GetToken",e)}async getToken(e,t){const r=await this.sendRequest(e,{tokenParams:t});return{token:oh.validateBridgeResultOrThrow(r.token),account:oh.validateBridgeResultOrThrow(r.account)}}getHostCapabilities(){return this.capabilities??null}getAccountContext(){return this.accountContext?this.accountContext:null}static buildRequest(e,t){return{messageType:"NestedAppAuthRequest",method:e,requestId:ha(),sendTime:Date.now(),clientLibrary:us,clientLibraryVersion:Oc,...t}}sendRequest(e,t){const r=oh.buildRequest(e,t);return new Promise(((e,t)=>{const o={requestId:r.requestId,method:r.method,resolve:e,reject:t};oh.bridgeRequests.push(o),window.nestedAppAuthBridge.postMessage(JSON.stringify(r))}))}static validateBridgeResultOrThrow(e){if(void 0===e){throw{status:Xl}}return e}constructor(e,t,r,o){this.sdkName=e,this.sdkVersion=t,this.accountContext=r,this.capabilities=o}static async create(){const e=await oh.initializeNestedAppAuthBridge();return new oh(e.sdkName,e.sdkVersion,e.accountContext,e.capabilities)}}oh.bridgeRequests=[];class nh extends zl{constructor(){super(...arguments),this.bridgeProxy=void 0,this.accountContext=null}getModuleName(){return nh.MODULE_NAME}getId(){return nh.ID}getBridgeProxy(){return this.bridgeProxy}async initialize(e){const t=e||"";try{if("undefined"!=typeof window){"function"==typeof window.__initializeNestedAppAuth&&await window.__initializeNestedAppAuth();const e=await oh.create();this.accountContext=e.getAccountContext(),this.bridgeProxy=e,this.available=void 0!==e}}catch(e){this.logger.infoPii(`1mdxyj ${e}`,t)}return this.logger.info(`12jy9a ${this.available}`,t),this.available}}nh.MODULE_NAME="",nh.ID="NestedAppOperatingContext";class ih{constructor(e,t){this.controller=t||new Bl(new jl(e,{waitForPopupResponse:this.waitForPopupResponse.bind(this),waitForIframeResponse:this.waitForIframeResponse.bind(this)}))}async waitForPopupResponse(e,t,r){const o=this.controller;return Ma(o.getConfiguration().system.popupBridgeTimeout,o.getLogger(),e,o.getPerformanceClient())}async waitForIframeResponse(e,t){const r=this.controller,o=r.getConfiguration();return Ma(o.system.iframeBridgeTimeout,r.getLogger(),t,r.getPerformanceClient(),o.experimental)}async initialize(e){return this.controller.initialize(e)}async acquireTokenPopup(e){return this.controller.acquireTokenPopup(e)}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e,t){return this.controller.addEventCallback(e,t)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}getAccount(e){return this.controller.getAccount(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,t){return this.controller.initializeWrapperLibrary(e,t)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(e,t){return this.controller.hydrateCache(e,t)}clearCache(e){return this.controller.clearCache(e)}}async function sh(e){const t=new ih(e);return await t.initialize(),t}const ah={initialize:()=>Promise.reject(ba(Ca,"")),acquireTokenPopup:()=>Promise.reject(ba(Ca,"")),acquireTokenRedirect:()=>Promise.reject(ba(Ca,"")),acquireTokenSilent:()=>Promise.reject(ba(Ca,"")),acquireTokenByCode:()=>Promise.reject(ba(Ca,"")),getAllAccounts:()=>[],getAccount:()=>null,handleRedirectPromise:()=>Promise.reject(ba(Ca,"")),loginPopup:()=>Promise.reject(ba(Ca,"")),loginRedirect:()=>Promise.reject(ba(Ca,"")),logoutRedirect:()=>Promise.reject(ba(Ca,"")),logoutPopup:()=>Promise.reject(ba(Ca,"")),ssoSilent:()=>Promise.reject(ba(Ca,"")),addEventCallback:()=>null,removeEventCallback:()=>{},addPerformanceCallback:()=>"",removePerformanceCallback:()=>!1,getLogger:()=>{throw ba(Ca,"")},setLogger:()=>{},setActiveAccount:()=>{},getActiveAccount:()=>null,initializeWrapperLibrary:()=>{},setNavigationClient:()=>{},getConfiguration:()=>{throw ba(Ca,"")},hydrateCache:()=>Promise.reject(ba(Ca,"")),clearCache:()=>Promise.reject(ba(Ca,""))};async function ch(e,t,r,o,n,i,s,a,c){if(n.verbose("0ke46k",r),e.account){const t=Wr(e.account);return await o.setAccount(t,r,br(a||{}),Fs.loadExternalTokens),t}if(!t&&!a)throw n.error("0hzcn4",r),is(Li,"");const l=Gr(t,s.authorityType,n,i,r,a),h=a?.tid,d=an(o,s,l,ss,r,a,t,s.getPreferredCache(),h,void 0,void 0,n,c);return await o.setAccount(d,r,br(a||{}),Fs.loadExternalTokens),d}async function lh(e,t,r,o,n,i,s,a,c){if(!e.id_token)return a.verbose("1pm7g1",i),null;a.verbose("168lyi",i);const l=wo(t,r,e.id_token,c,o);return await s.setIdTokenCredential(l,i,n),l}async function hh(e,t,r,o,n,i,s,a,c,l,h){if(!t.access_token)return l.verbose("1ckp9e",a),null;if(!t.expires_in)return l.error("15mzx8",a),null;if(!(t.scope||e.scopes&&e.scopes.length))return l.error("1h7xse",a),null;l.verbose("01kmxb",a);const d=t.scope?qt.fromString(t.scope,a):new qt(e.scopes,a),u=s.expiresOn||t.expires_in+go(),g=s.extendedExpiresOn||(t.ext_expires_in||t.expires_in)+go(),p=Co(r,o,t.access_token,h,n,d.printScopes(),u,g,ss,a);return await c.setAccessTokenCredential(p,a,i),p}async function dh(e,t,r,o,n,i,s,a,c){if(!e.refresh_token)return s.verbose("1l7um5",n),null;const l=e.refresh_token_expires_in?e.refresh_token_expires_in+go():void 0;c.addFields({extRtExpiresOnSeconds:l},n),s.verbose("0qy8ev",n);const h=vo(t,r,e.refresh_token,a,e.foci,void 0,l);return await i.setRefreshTokenCredential(h,n,o),h}function uh(){let e;try{e=window[As.SessionStorage];const t=e?.getItem(uc);if(1===Number(t))return Promise.resolve().then((function(){return fh}))}catch(e){}}function gh(){return"undefined"!=typeof window&&void 0!==window.performance&&"function"==typeof window.performance.now}function ph(e){if(e&&gh())return Math.round(window.performance.now()-e)}class mh{constructor(e,t){this.correlationId=t,this.measureName=mh.makeMeasureName(e,t),this.startMark=mh.makeStartMark(e,t),this.endMark=mh.makeEndMark(e,t)}static makeMeasureName(e,t){return`msal.measure.${e}.${t}`}static makeStartMark(e,t){return`msal.start.${e}.${t}`}static makeEndMark(e,t){return`msal.end.${e}.${t}`}static supportsBrowserPerformance(){return"undefined"!=typeof window&&void 0!==window.performance&&"function"==typeof window.performance.mark&&"function"==typeof window.performance.measure&&"function"==typeof window.performance.clearMarks&&"function"==typeof window.performance.clearMeasures&&"function"==typeof window.performance.getEntriesByName}static flushMeasurements(e,t){if(mh.supportsBrowserPerformance())try{t.forEach((t=>{const r=mh.makeMeasureName(t.name,e);window.performance.getEntriesByName(r,"measure").length>0&&(window.performance.clearMeasures(r),window.performance.clearMarks(mh.makeStartMark(r,e)),window.performance.clearMarks(mh.makeEndMark(r,e)))}))}catch(e){}}startMeasurement(){if(mh.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch(e){}}endMeasurement(){if(mh.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch(e){}}flushMeasurement(){if(mh.supportsBrowserPerformance())try{const e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){const t=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),t}}catch(e){}return null}}var fh=Object.freeze({__proto__:null,BrowserPerformanceMeasurement:mh});const yh=X,Ih=F,wh=N,Ch=ue,vh=f;e.ApiId=Fs,e.AuthError=Te,e.AuthErrorCodes=xn,e.AuthenticationHeaderParser=class{constructor(e){this.headers=e}getShrNonce(){const e=this.headers[T];if(e){const t=this.parseChallenges(e);if(t.nextnonce)return t.nextnonce;throw Se(je,"")}const t=this.headers[k];if(t){const e=this.parseChallenges(t);if(e.nonce)return e.nonce;throw Se(je,"")}throw Se(ze,"")}parseChallenges(e){const t=e.indexOf(" "),r=e.substr(t+1).split(","),o={};return r.forEach((e=>{const[t,r]=e.split("=");o[t]=unescape(r.replace(/['"]+/g,""))})),o}},e.AuthenticationScheme=yh,e.AzureCloudInstance=kr,e.BrowserAuthError=ns,e.BrowserAuthErrorCodes=rs,e.BrowserCacheLocation=As,e.BrowserConfigurationAuthError=Ta,e.BrowserConfigurationAuthErrorCodes=ka,e.BrowserPerformanceClient=class extends Kn{constructor(e,r){super(e.auth.clientId,e.auth.authority||`${t}`,new wr(e.system?.loggerOptions||{},Rc,Oc),Rc,Oc,e.telemetry?.application||{appName:"",appVersion:""},r)}generateId(){return ha()}getPageVisibility(){return document.visibilityState?.toString()||null}getOnlineStatus(){return"undefined"!=typeof navigator?navigator.onLine:null}deleteIncompleteSubMeasurements(e){uh()?.then((t=>{const r=this.eventsByCorrelationId.get(e.event.correlationId),o=r&&r.eventId===e.event.eventId,n=[];o&&r?.incompleteSubMeasurements&&r.incompleteSubMeasurements.forEach((e=>{n.push({...e})})),t.BrowserPerformanceMeasurement.flushMeasurements(e.event.correlationId,n)}))}startMeasurement(e,t){const r=this.getPageVisibility(),o=this.getOnlineStatus(),n=super.startMeasurement(e,t),i=gh()?window.performance.now():void 0,s=uh()?.then((t=>new t.BrowserPerformanceMeasurement(e,n.event.correlationId)));return s?.then((e=>e.startMeasurement())),{...n,end:(e,t,a)=>{const c=function(){if("undefined"==typeof window||!window.navigator)return{};const e="connection"in window.navigator?window.navigator.connection:void 0;return{effectiveType:e?.effectiveType,rtt:e?.rtt}}(),l=n.end({...e,startPageVisibility:r,startOnlineStatus:o,endPageVisibility:this.getPageVisibility(),durationMs:ph(i),networkEffectiveType:c.effectiveType,networkRtt:c.rtt},t,a);return s?.then((e=>e.endMeasurement())),this.deleteIncompleteSubMeasurements(n),l},discard:()=>{n.discard(),s?.then((e=>e.flushMeasurement())),this.deleteIncompleteSubMeasurements(n)}}}},e.BrowserPerformanceMeasurement=mh,e.BrowserRootPerformanceEvents=ac,e.BrowserUtils=ja,e.CacheLookupPolicy=js,e.ClientAuthError=Ee,e.ClientAuthErrorCodes=xt,e.ClientConfigurationError=Ae,e.ClientConfigurationErrorCodes=Ze,e.DEFAULT_IFRAME_TIMEOUT_MS=1e4,e.EventHandler=zc,e.EventMessageUtils=class{static getInteractionStatusFromEvent(t,r){switch(t.eventType){case Pc.ACQUIRE_TOKEN_START:if(t.interactionType===e.InteractionType.Redirect||t.interactionType===e.InteractionType.Popup)return $s.AcquireToken;break;case Pc.HANDLE_REDIRECT_START:return $s.HandleRedirect;case Pc.LOGOUT_START:return $s.Logout;case Pc.LOGOUT_END:if(r&&r!==$s.Logout)break;return $s.None;case Pc.HANDLE_REDIRECT_END:if(r&&r!==$s.HandleRedirect)break;return $s.None;case Pc.ACQUIRE_TOKEN_SUCCESS:case Pc.ACQUIRE_TOKEN_FAILURE:case Pc.RESTORE_FROM_BFCACHE:if(t.interactionType===e.InteractionType.Redirect||t.interactionType===e.InteractionType.Popup){if(r&&r!==$s.AcquireToken)break;return $s.None}}return null}},e.EventType=Pc,e.InteractionRequiredAuthError=Xo,e.InteractionRequiredAuthErrorCodes=Vo,e.InteractionStatus=$s,e.JsonWebTokenTypes=Ch,e.LocalStorage=_c,e.Logger=wr,e.MemoryStorage=Wa,e.NavigationClient=kl,e.OIDC_DEFAULT_SCOPES=vh,e.PromptValue=wh,e.ProtocolMode=jr,e.PublicClientApplication=ih,e.ResponseMode=Ih,e.ServerError=rn,e.SessionStorage=Ec,e.SignedHttpRequest=class{constructor(e,t){const r=t&&t.loggerOptions||{};this.logger=new wr(r,Rc,Oc),this.cryptoOps=new Qa(this.logger),this.popTokenGenerator=new Do(this.cryptoOps,new to),this.shrParameters=e}async generatePublicKeyThumbprint(){const{kid:e}=await this.popTokenGenerator.generateKid(this.shrParameters);return e}async signRequest(e,t,r){return this.popTokenGenerator.signPayload(e,t,this.shrParameters,r)}async removeKeys(e,t){return this.cryptoOps.removeTokenBindingKey(e,t)}},e.StubPerformanceClient=to,e.WrapperSKU={React:"@azure/msal-react",Angular:"@azure/msal-angular"},e.createNestablePublicClientApplication=async function(e,t,r){const o=new nh(e);if(await o.initialize(t),o.isAvailable()){const n=t||ha(),i=new rh(o),s=r?r(e,i):new ih(e,i);return await s.initialize({correlationId:n}),s}return sh(e)},e.createStandardPublicClientApplication=sh,e.enforceResourceParameter=Rn,e.isPlatformBrokerAvailable=async function(e,t,r,o){const n=new wr(t||{},Rc,Oc),i=r||new to;return"undefined"==typeof window?(n.trace("082ed3",o||ha()),!1):!!await Pl(n,i,o||ha(),void 0,e)},e.loadExternalTokens=async function(e,t,r,o,n=new to){Fa();const i=Sl(e,!0),s=t.correlationId||ha(),a=n.startMeasurement(ic,s);try{const c=r.id_token?Tr(r.id_token,ss,s):void 0,l=br(c||{}),h={protocolMode:i.system.protocolMode,knownAuthorities:i.auth.knownAuthorities,cloudDiscoveryMetadata:i.auth.cloudDiscoveryMetadata,authorityMetadata:i.auth.authorityMetadata},d=new wr(i.system.loggerOptions||{},Rc,Oc),u=new Qa(d,i.telemetry.client),g=new Lc(i.auth.clientId,i.cache,u,d,i.telemetry.client,new zc(d),vn(i.auth));await g.initialize(s);const p=t.authority||i.auth.authority,m=await kn(wn.generateAuthority(p,t.azureCloudOptions),i.system.networkClient,g,h,d,s,n),f=await Fo(ch,"loadAccount",d,n,s)(t,o.clientInfo||r.client_info||"",s,g,d,u,m,c,n),y=await Fo(lh,"loadIdToken",d,n,s)(r,f.homeAccountId,f.environment,f.realm,l,s,g,d,e.auth.clientId),I=await Fo(hh,"loadAccessToken",d,n,s)(t,r,f.homeAccountId,f.environment,f.realm,l,o,s,g,d,e.auth.clientId),w=await Fo(dh,"loadRefreshToken",d,n,s)(r,f.homeAccountId,f.environment,l,s,g,d,e.auth.clientId,n);return a.end({success:!0},void 0,Jr(f)),function(e,t,r,o){let n,i="",s=[],a=null;t?.accessToken&&(i=t.accessToken.secret,s=qt.fromString(t.accessToken.target,e.correlationId||"").asArray(),a=mo(t.accessToken.expiresOn),n=mo(t.accessToken.extendedExpiresOn));const c=t.account;return{authority:r.canonicalAuthority,uniqueId:t.account.localAccountId,tenantId:t.account.realm,scopes:s,account:Jr(c),idToken:t.idToken?.secret||"",idTokenClaims:o||{},accessToken:i,fromCache:!0,expiresOn:a,correlationId:e.correlationId||"",requestId:"",extExpiresOn:n,familyId:t.refreshToken?.familyId||"",tokenType:t?.accessToken?.tokenType||"",state:e.state||"",cloudGraphHostName:c.cloudGraphHostName||"",msGraphHost:c.msGraphHost||"",fromPlatformBroker:!1}}(t,{account:f,idToken:y,accessToken:I,refreshToken:w},m,c)}catch(e){throw a.end({success:!1},e),e}},e.stubbedPublicClientApplication=ah,e.version=Oc}));
|