@microsoft/office-js
Version:
Office JavaScript APIs
122 lines (114 loc) • 1.04 MB
JavaScript
var BrowserAuth =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ({
/***/ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js":
/*!******************************************************************!*\
!*** ./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js ***!
\******************************************************************/
/*! exports provided: __assign, __awaiter, __extends, __generator, __read, __spread */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__assign\", function() { return __assign; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__awaiter\", function() { return __awaiter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__extends\", function() { return __extends; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__generator\", function() { return __generator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__read\", function() { return __read; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__spread\", function() { return __spread; });\n/*! @azure/msal-browser v2.19.0 2021-11-02 */\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nfunction __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nfunction __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\n\n\n\n\n//# sourceURL=webpack://BrowserAuth/./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js?");
/***/ }),
/***/ "./node_modules/@azure/msal-browser/dist/app/ClientApplication.js":
/*!************************************************************************!*\
!*** ./node_modules/@azure/msal-browser/dist/app/ClientApplication.js ***!
\************************************************************************/
/*! exports provided: ClientApplication */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ClientApplication\", function() { return ClientApplication; });\n/* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ \"./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js\");\n/* harmony import */ var _crypto_CryptoOps_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../crypto/CryptoOps.js */ \"./node_modules/@azure/msal-browser/dist/crypto/CryptoOps.js\");\n/* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @azure/msal-common */ \"./node_modules/@azure/msal-common/dist/index.js\");\n/* harmony import */ var _cache_BrowserCacheManager_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../cache/BrowserCacheManager.js */ \"./node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.js\");\n/* harmony import */ var _config_Configuration_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config/Configuration.js */ \"./node_modules/@azure/msal-browser/dist/config/Configuration.js\");\n/* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ \"./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js\");\n/* harmony import */ var _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/BrowserUtils.js */ \"./node_modules/@azure/msal-browser/dist/utils/BrowserUtils.js\");\n/* harmony import */ var _packageMetadata_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../packageMetadata.js */ \"./node_modules/@azure/msal-browser/dist/packageMetadata.js\");\n/* harmony import */ var _event_EventType_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../event/EventType.js */ \"./node_modules/@azure/msal-browser/dist/event/EventType.js\");\n/* harmony import */ var _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../error/BrowserConfigurationAuthError.js */ \"./node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js\");\n/* harmony import */ var _event_EventHandler_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../event/EventHandler.js */ \"./node_modules/@azure/msal-browser/dist/event/EventHandler.js\");\n/* harmony import */ var _interaction_client_PopupClient_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../interaction_client/PopupClient.js */ \"./node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.js\");\n/* harmony import */ var _interaction_client_RedirectClient_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../interaction_client/RedirectClient.js */ \"./node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.js\");\n/* harmony import */ var _interaction_client_SilentIframeClient_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../interaction_client/SilentIframeClient.js */ \"./node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.js\");\n/* harmony import */ var _interaction_client_SilentRefreshClient_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../interaction_client/SilentRefreshClient.js */ \"./node_modules/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.js\");\n/* harmony import */ var _cache_TokenCache_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../cache/TokenCache.js */ \"./node_modules/@azure/msal-browser/dist/cache/TokenCache.js\");\n/*! @azure/msal-browser v2.19.0 2021-11-02 */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar ClientApplication = /** @class */ (function () {\r\n /**\r\n * @constructor\r\n * Constructor for the PublicClientApplication used to instantiate the PublicClientApplication object\r\n *\r\n * Important attributes in the Configuration object for auth are:\r\n * - clientID: the application ID of your application. You can obtain one by registering your application with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview\r\n * - authority: the authority URL for your application.\r\n * - redirect_uri: the uri of your application registered in the portal.\r\n *\r\n * In Azure AD, authority is a URL indicating the Azure active directory that MSAL uses to obtain tokens.\r\n * It is of the form https://login.microsoftonline.com/{Enter_the_Tenant_Info_Here}\r\n * If your application supports Accounts in one organizational directory, replace \"Enter_the_Tenant_Info_Here\" value with the Tenant Id or Tenant name (for example, contoso.microsoft.com).\r\n * If your application supports Accounts in any organizational directory, replace \"Enter_the_Tenant_Info_Here\" value with organizations.\r\n * If your application supports Accounts in any organizational directory and personal Microsoft accounts, replace \"Enter_the_Tenant_Info_Here\" value with common.\r\n * To restrict support to Personal Microsoft accounts only, replace \"Enter_the_Tenant_Info_Here\" value with consumers.\r\n *\r\n * In Azure B2C, authority is of the form https://{instance}/tfp/{tenant}/{policyName}/\r\n * Full B2C functionality will be available in this library in future versions.\r\n *\r\n * @param configuration Object for the MSAL PublicClientApplication instance\r\n */\r\n function ClientApplication(configuration) {\r\n /*\r\n * If loaded in an environment where window is not available,\r\n * set internal flag to false so that further requests fail.\r\n * This is to support server-side rendering environments.\r\n */\r\n this.isBrowserEnvironment = typeof window !== \"undefined\";\r\n // Set the configuration.\r\n this.config = Object(_config_Configuration_js__WEBPACK_IMPORTED_MODULE_4__[\"buildConfiguration\"])(configuration, this.isBrowserEnvironment);\r\n // Initialize logger\r\n this.logger = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__[\"Logger\"](this.config.system.loggerOptions, _packageMetadata_js__WEBPACK_IMPORTED_MODULE_7__[\"name\"], _packageMetadata_js__WEBPACK_IMPORTED_MODULE_7__[\"version\"]);\r\n // Initialize the network module class.\r\n this.networkClient = this.config.system.networkClient;\r\n // Initialize the navigation client class.\r\n this.navigationClient = this.config.system.navigationClient;\r\n // Initialize redirectResponse Map\r\n this.redirectResponse = new Map();\r\n // Initialize the crypto class.\r\n this.browserCrypto = this.isBrowserEnvironment ? new _crypto_CryptoOps_js__WEBPACK_IMPORTED_MODULE_1__[\"CryptoOps\"](this.logger) : _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__[\"DEFAULT_CRYPTO_IMPLEMENTATION\"];\r\n this.eventHandler = new _event_EventHandler_js__WEBPACK_IMPORTED_MODULE_10__[\"EventHandler\"](this.logger, this.browserCrypto);\r\n // Initialize the browser storage class.\r\n this.browserStorage = this.isBrowserEnvironment ?\r\n new _cache_BrowserCacheManager_js__WEBPACK_IMPORTED_MODULE_3__[\"BrowserCacheManager\"](this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger) :\r\n Object(_cache_BrowserCacheManager_js__WEBPACK_IMPORTED_MODULE_3__[\"DEFAULT_BROWSER_CACHE_MANAGER\"])(this.config.auth.clientId, this.logger);\r\n // Initialize the token cache\r\n this.tokenCache = new _cache_TokenCache_js__WEBPACK_IMPORTED_MODULE_15__[\"TokenCache\"](this.config, this.browserStorage, this.logger, this.browserCrypto);\r\n }\r\n // #region Redirect Flow\r\n /**\r\n * Event handler function which allows users to fire events after the PublicClientApplication object\r\n * has loaded during redirect flows. This should be invoked on all page loads involved in redirect\r\n * auth flows.\r\n * @param hash Hash to process. Defaults to the current value of window.location.hash. Only needs to be provided explicitly if the response to be handled is not contained in the current value.\r\n * @returns Token response or null. If the return value is null, then no auth redirect was detected.\r\n */\r\n ClientApplication.prototype.handleRedirectPromise = function (hash) {\r\n return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function () {\r\n var loggedInAccounts, redirectResponseKey, response, correlationId, redirectClient;\r\n var _this = this;\r\n return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_a) {\r\n this.logger.verbose(\"handleRedirectPromise called\");\r\n loggedInAccounts = this.getAllAccounts();\r\n if (this.isBrowserEnvironment) {\r\n redirectResponseKey = hash || _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__[\"Constants\"].EMPTY_STRING;\r\n response = this.redirectResponse.get(redirectResponseKey);\r\n if (typeof response === \"undefined\") {\r\n this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].HANDLE_REDIRECT_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect);\r\n this.logger.verbose(\"handleRedirectPromise has been called for the first time, storing the promise\");\r\n correlationId = this.browserStorage.getTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"TemporaryCacheKeys\"].CORRELATION_ID, true) || \"\";\r\n redirectClient = new _interaction_client_RedirectClient_js__WEBPACK_IMPORTED_MODULE_12__[\"RedirectClient\"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, correlationId);\r\n response = redirectClient.handleRedirectPromise(hash)\r\n .then(function (result) {\r\n if (result) {\r\n // Emit login event if number of accounts change\r\n var isLoggingIn = loggedInAccounts.length < _this.getAllAccounts().length;\r\n if (isLoggingIn) {\r\n _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].LOGIN_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect, result);\r\n _this.logger.verbose(\"handleRedirectResponse returned result, login success\");\r\n }\r\n else {\r\n _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].ACQUIRE_TOKEN_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect, result);\r\n _this.logger.verbose(\"handleRedirectResponse returned result, acquire token success\");\r\n }\r\n }\r\n _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].HANDLE_REDIRECT_END, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect);\r\n return result;\r\n })\r\n .catch(function (e) {\r\n // Emit login event if there is an account\r\n if (loggedInAccounts.length > 0) {\r\n _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].ACQUIRE_TOKEN_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect, null, e);\r\n }\r\n else {\r\n _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].LOGIN_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect, null, e);\r\n }\r\n _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].HANDLE_REDIRECT_END, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect);\r\n throw e;\r\n });\r\n this.redirectResponse.set(redirectResponseKey, response);\r\n }\r\n else {\r\n this.logger.verbose(\"handleRedirectPromise has been called previously, returning the result from the first call\");\r\n }\r\n return [2 /*return*/, response];\r\n }\r\n this.logger.verbose(\"handleRedirectPromise returns null, not browser environment\");\r\n return [2 /*return*/, null];\r\n });\r\n });\r\n };\r\n /**\r\n * Use when you want to obtain an access_token for your API by redirecting the user's browser window to the authorization endpoint. This function redirects\r\n * the page, so any code that follows this function will not execute.\r\n *\r\n * IMPORTANT: It is NOT recommended to have code that is dependent on the resolution of the Promise. This function will navigate away from the current\r\n * browser window. It currently returns a Promise in order to reflect the asynchronous nature of the code running in this function.\r\n *\r\n * @param request\r\n */\r\n ClientApplication.prototype.acquireTokenRedirect = function (request) {\r\n return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function () {\r\n var isLoggedIn, redirectClient;\r\n var _this = this;\r\n return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_a) {\r\n // Preflight request\r\n this.preflightBrowserEnvironmentCheck(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect);\r\n this.logger.verbose(\"acquireTokenRedirect called\");\r\n isLoggedIn = this.getAllAccounts().length > 0;\r\n if (isLoggedIn) {\r\n this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].ACQUIRE_TOKEN_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect, request);\r\n }\r\n else {\r\n this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].LOGIN_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect, request);\r\n }\r\n redirectClient = new _interaction_client_RedirectClient_js__WEBPACK_IMPORTED_MODULE_12__[\"RedirectClient\"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, request.correlationId);\r\n return [2 /*return*/, redirectClient.acquireToken(request).catch(function (e) {\r\n // If logged in, emit acquire token events\r\n if (isLoggedIn) {\r\n _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].ACQUIRE_TOKEN_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect, null, e);\r\n }\r\n else {\r\n _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].LOGIN_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect, null, e);\r\n }\r\n throw e;\r\n })];\r\n });\r\n });\r\n };\r\n // #endregion\r\n // #region Popup Flow\r\n /**\r\n * Use when you want to obtain an access_token for your API via opening a popup window in the user's browser\r\n *\r\n * @param request\r\n *\r\n * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.\r\n */\r\n ClientApplication.prototype.acquireTokenPopup = function (request) {\r\n var _this = this;\r\n try {\r\n this.preflightBrowserEnvironmentCheck(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Popup);\r\n this.logger.verbose(\"acquireTokenPopup called\", request.correlationId);\r\n }\r\n catch (e) {\r\n // Since this function is syncronous we need to reject\r\n return Promise.reject(e);\r\n }\r\n // If logged in, emit acquire token events\r\n var loggedInAccounts = this.getAllAccounts();\r\n if (loggedInAccounts.length > 0) {\r\n this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].ACQUIRE_TOKEN_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Popup, request);\r\n }\r\n else {\r\n this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].LOGIN_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Popup, request);\r\n }\r\n var popupClient = new _interaction_client_PopupClient_js__WEBPACK_IMPORTED_MODULE_11__[\"PopupClient\"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, request.correlationId);\r\n return popupClient.acquireToken(request).then(function (result) {\r\n // If logged in, emit acquire token events\r\n var isLoggingIn = loggedInAccounts.length < _this.getAllAccounts().length;\r\n if (isLoggingIn) {\r\n _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].LOGIN_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Popup, result);\r\n }\r\n else {\r\n _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].ACQUIRE_TOKEN_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Popup, result);\r\n }\r\n return result;\r\n }).catch(function (e) {\r\n if (loggedInAccounts.length > 0) {\r\n _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].ACQUIRE_TOKEN_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Popup, null, e);\r\n }\r\n else {\r\n _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].LOGIN_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Popup, null, e);\r\n }\r\n // Since this function is syncronous we need to reject\r\n return Promise.reject(e);\r\n });\r\n };\r\n // #endregion\r\n // #region Silent Flow\r\n /**\r\n * This function uses a hidden iframe to fetch an authorization code from the eSTS. There are cases where this may not work:\r\n * - Any browser using a form of Intelligent Tracking Prevention\r\n * - If there is not an established session with the service\r\n *\r\n * In these cases, the request must be done inside a popup or full frame redirect.\r\n *\r\n * For the cases where interaction is required, you cannot send a request with prompt=none.\r\n *\r\n * If your refresh token has expired, you can use this function to fetch a new set of tokens silently as long as\r\n * you session on the server still exists.\r\n * @param request {@link SsoSilentRequest}\r\n *\r\n * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.\r\n */\r\n ClientApplication.prototype.ssoSilent = function (request) {\r\n return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function () {\r\n var silentIframeClient, silentTokenResult, e_1;\r\n return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n this.preflightBrowserEnvironmentCheck(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Silent);\r\n this.logger.verbose(\"ssoSilent called\", request.correlationId);\r\n this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].SSO_SILENT_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Silent, request);\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n silentIframeClient = new _interaction_client_SilentIframeClient_js__WEBPACK_IMPORTED_MODULE_13__[\"SilentIframeClient\"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"ApiId\"].ssoSilent, request.correlationId);\r\n return [4 /*yield*/, silentIframeClient.acquireToken(request)];\r\n case 2:\r\n silentTokenResult = _a.sent();\r\n this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].SSO_SILENT_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Silent, silentTokenResult);\r\n return [2 /*return*/, silentTokenResult];\r\n case 3:\r\n e_1 = _a.sent();\r\n this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].SSO_SILENT_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Silent, null, e_1);\r\n throw e_1;\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n /**\r\n * Use this function to obtain a token before every call to the API / resource provider\r\n *\r\n * MSAL return's a cached token when available\r\n * Or it send's a request to the STS to obtain a new token using a refresh token.\r\n *\r\n * @param {@link SilentRequest}\r\n *\r\n * To renew idToken, please pass clientId as the only scope in the Authentication Parameters\r\n * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.\r\n */\r\n ClientApplication.prototype.acquireTokenByRefreshToken = function (request) {\r\n return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function () {\r\n var silentRefreshClient;\r\n var _this = this;\r\n return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_a) {\r\n this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__[\"EventType\"].ACQUIRE_TOKEN_NETWORK_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Silent, request);\r\n // block the reload if it occurred inside a hidden iframe\r\n _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__[\"BrowserUtils\"].blockReloadInHiddenIframes();\r\n silentRefreshClient = new _interaction_client_SilentRefreshClient_js__WEBPACK_IMPORTED_MODULE_14__[\"SilentRefreshClient\"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, request.correlationId);\r\n return [2 /*return*/, silentRefreshClient.acquireToken(request).catch(function (e) {\r\n var isServerError = e instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__[\"ServerError\"];\r\n var isInteractionRequiredError = e instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__[\"InteractionRequiredAuthError\"];\r\n var isInvalidGrantError = (e.errorCode === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"BrowserConstants\"].INVALID_GRANT_ERROR);\r\n if (isServerError && isInvalidGrantError && !isInteractionRequiredError) {\r\n _this.logger.verbose(\"Refresh token expired or invalid, attempting acquire token by iframe\", request.correlationId);\r\n var silentIframeClient = new _interaction_client_SilentIframeClient_js__WEBPACK_IMPORTED_MODULE_13__[\"SilentIframeClient\"](_this.config, _this.browserStorage, _this.browserCrypto, _this.logger, _this.eventHandler, _this.navigationClient, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"ApiId\"].acquireTokenSilent_authCode, request.correlationId);\r\n return silentIframeClient.acquireToken(request);\r\n }\r\n throw e;\r\n })];\r\n });\r\n });\r\n };\r\n // #endregion\r\n // #region Logout\r\n /**\r\n * Deprecated logout function. Use logoutRedirect or logoutPopup instead\r\n * @param logoutRequest\r\n * @deprecated\r\n */\r\n ClientApplication.prototype.logout = function (logoutRequest) {\r\n return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function () {\r\n return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_a) {\r\n this.logger.warning(\"logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.\");\r\n return [2 /*return*/, this.logoutRedirect(logoutRequest)];\r\n });\r\n });\r\n };\r\n /**\r\n * Use to log out the current user, and redirect the user to the postLogoutRedirectUri.\r\n * Default behaviour is to redirect the user to `window.location.href`.\r\n * @param logoutRequest\r\n */\r\n ClientApplication.prototype.logoutRedirect = function (logoutRequest) {\r\n return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function () {\r\n var redirectClient;\r\n return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_a) {\r\n this.preflightBrowserEnvironmentCheck(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect);\r\n redirectClient = new _interaction_client_RedirectClient_js__WEBPACK_IMPORTED_MODULE_12__[\"RedirectClient\"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, logoutRequest === null || logoutRequest === void 0 ? void 0 : logoutRequest.correlationId);\r\n return [2 /*return*/, redirectClient.logout(logoutRequest)];\r\n });\r\n });\r\n };\r\n /**\r\n * Clears local cache for the current user then opens a popup window prompting the user to sign-out of the server\r\n * @param logoutRequest\r\n */\r\n ClientApplication.prototype.logoutPopup = function (logoutRequest) {\r\n try {\r\n this.preflightBrowserEnvironmentCheck(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Popup);\r\n var popupClient = new _interaction_client_PopupClient_js__WEBPACK_IMPORTED_MODULE_11__[\"PopupClient\"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, logoutRequest === null || logoutRequest === void 0 ? void 0 : logoutRequest.correlationId);\r\n return popupClient.logout(logoutRequest);\r\n }\r\n catch (e) {\r\n // Since this function is syncronous we need to reject\r\n return Promise.reject(e);\r\n }\r\n };\r\n // #endregion\r\n // #region Account APIs\r\n /**\r\n * Returns all accounts that MSAL currently has data for.\r\n * (the account object is created at the time of successful login)\r\n * or empty array when no accounts are found\r\n * @returns Array of account objects in cache\r\n */\r\n ClientApplication.prototype.getAllAccounts = function () {\r\n this.logger.verbose(\"getAllAccounts called\");\r\n return this.isBrowserEnvironment ? this.browserStorage.getAllAccounts() : [];\r\n };\r\n /**\r\n * Returns the signed in account matching username.\r\n * (the account object is created at the time of successful login)\r\n * or null when no matching account is found.\r\n * This API is provided for convenience but getAccountById should be used for best reliability\r\n * @param userName\r\n * @returns The account object stored in MSAL\r\n */\r\n ClientApplication.prototype.getAccountByUsername = function (userName) {\r\n var allAccounts = this.getAllAccounts();\r\n if (!_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__[\"StringUtils\"].isEmpty(userName) && allAccounts && allAccounts.length) {\r\n this.logger.verbose(\"Account matching username found, returning\");\r\n this.logger.verbosePii(\"Returning signed-in accounts matching username: \" + userName);\r\n return allAccounts.filter(function (accountObj) { return accountObj.username.toLowerCase() === userName.toLowerCase(); })[0] || null;\r\n }\r\n else {\r\n this.logger.verbose(\"getAccountByUsername: No matching account found, returning null\");\r\n return null;\r\n }\r\n };\r\n /**\r\n * Returns the signed in account matching homeAccountId.\r\n * (the account object is created at the time of successful login)\r\n * or null when no matching account is found\r\n * @param homeAccountId\r\n * @returns The account object stored in MSAL\r\n */\r\n ClientApplication.prototype.getAccountByHomeId = function (homeAccountId) {\r\n var allAccounts = this.getAllAccounts();\r\n if (!_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__[\"StringUtils\"].isEmpty(homeAccountId) && allAccounts && allAccounts.length) {\r\n this.logger.verbose(\"Account matching homeAccountId found, returning\");\r\n this.logger.verbosePii(\"Returning signed-in accounts matching homeAccountId: \" + homeAccountId);\r\n return allAccounts.filter(function (accountObj) { return accountObj.homeAccountId === homeAccountId; })[0] || null;\r\n }\r\n else {\r\n this.logger.verbose(\"getAccountByHomeId: No matching account found, returning null\");\r\n return null;\r\n }\r\n };\r\n /**\r\n * Returns the signed in account matching localAccountId.\r\n * (the account object is created at the time of successful login)\r\n * or null when no matching account is found\r\n * @param localAccountId\r\n * @returns The account object stored in MSAL\r\n */\r\n ClientApplication.prototype.getAccountByLocalId = function (localAccountId) {\r\n var allAccounts = this.getAllAccounts();\r\n if (!_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__[\"StringUtils\"].isEmpty(localAccountId) && allAccounts && allAccounts.length) {\r\n this.logger.verbose(\"Account matching localAccountId found, returning\");\r\n this.logger.verbosePii(\"Returning signed-in accounts matching localAccountId: \" + localAccountId);\r\n return allAccounts.filter(function (accountObj) { return accountObj.localAccountId === localAccountId; })[0] || null;\r\n }\r\n else {\r\n this.logger.verbose(\"getAccountByLocalId: No matching account found, returning null\");\r\n return null;\r\n }\r\n };\r\n /**\r\n * Sets the account to use as the active account. If no account is passed to the acquireToken APIs, then MSAL will use this active account.\r\n * @param account\r\n */\r\n ClientApplication.prototype.setActiveAccount = function (account) {\r\n this.browserStorage.setActiveAccount(account);\r\n };\r\n /**\r\n * Gets the currently active account\r\n */\r\n ClientApplication.prototype.getActiveAccount = function () {\r\n return this.browserStorage.getActiveAccount();\r\n };\r\n // #endregion\r\n // #region Helpers\r\n /**\r\n * Helper to validate app environment before making an auth request\r\n * * @param interactionType\r\n */\r\n ClientApplication.prototype.preflightBrowserEnvironmentCheck = function (interactionType) {\r\n this.logger.verbose(\"preflightBrowserEnvironmentCheck started\");\r\n // Block request if not in browser environment\r\n _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__[\"BrowserUtils\"].blockNonBrowserEnvironment(this.isBrowserEnvironment);\r\n // Block redirects if in an iframe\r\n _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__[\"BrowserUtils\"].blockRedirectInIframe(interactionType, this.config.system.allowRedirectInIframe);\r\n // Block auth requests inside a hidden iframe\r\n _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__[\"BrowserUtils\"].blockReloadInHiddenIframes();\r\n // Block redirectUri opened in a popup from calling MSAL APIs\r\n _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__[\"BrowserUtils\"].blockAcquireTokenInPopups();\r\n // Block redirects if memory storage is enabled but storeAuthStateInCookie is not\r\n if (interactionType === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"InteractionType\"].Redirect &&\r\n this.config.cache.cacheLocation === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__[\"BrowserCacheLocation\"].MemoryStorage &&\r\n !this.config.cache.storeAuthStateInCookie) {\r\n throw _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_9__[\"BrowserConfigurationAuthError\"].createInMemoryRedirectUnavailableError();\r\n }\r\n };\r\n /**\r\n * Adds event callbacks to array\r\n * @param callback\r\n */\r\n ClientApplication.prototype.addEventCallback = function (callback) {\r\n return this.eventHandler.addEventCallback(callback);\r\n };\r\n /**\r\n * Removes callback with provided id from callback array\r\n * @param callbackId\r\n */\r\n ClientApplication.prototype.removeEventCallback = function (callbackId) {\r\n this.eventHandler.removeEventCallback(callbackId);\r\n };\r\n /**\r\n * Adds event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window\r\n */\r\n ClientApplication.prototype.enableAccountStorageEvents = function () {\r\n this.eventHandler.enableAccountStorageEvents();\r\n };\r\n /**\r\n * Removes event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window\r\n */\r\n ClientApplication.prototype.disableAccountStorageEvents = function () {\r\n this.eventHandler.disableAccountStorageEvents();\r\n };\r\n /**\r\n * Gets the token cache for the application.\r\n */\r\n ClientApplication.prototype.getTokenCache = function () {\r\n return this.tokenCache;\r\n };\r\n /**\r\n * Returns the logger instance\r\n */\r\n ClientApplication.prototype.getLogger = function () {\r\n return this.logger;\r\n };\r\n /**\r\n * Replaces the default logger set in configurations with new Logger with new configurations\r\n * @param logger Logger instance\r\n */\r\n ClientApplication.prototype.setLogger = function (logger) {\r\n this.logger = logger;\r\n };\r\n /**\r\n * Called by wrapper libraries (Angular & React) to set SKU and Version passed down to telemetry, logger, etc.\r\n * @param sku\r\n * @param version\r\n */\r\n ClientApplication.prototype.initializeWrapperLibrary = function (sku, version) {\r\n // Validate the SKU passed in is one we expect\r\n this.browserStorage.setWrapperMetadata(sku, version);\r\n };\r\n /**\r\n * Sets navigation client\r\n * @param navigationClient\r\n */\r\n ClientApplication.prototype.setNavigationClient = function (navigationClient) {\r\n this.navigationClient = navigationClient;\r\n };\r\n /**\r\n * Returns the configuration object\r\n */\r\n ClientApplication.prototype.getConfiguration = function () {\r\n return this.config;\r\n };\r\n return ClientApplication;\r\n}());\n\n\n\n\n//# sourceURL=webpack://BrowserAuth/./node_modules/@azure/msal-browser/dist/app/ClientApplication.js?");
/***/ }),
/***/ "./node_modules/@azure/msal-browser/dist/app/IPublicClientApplication.js":
/*!*******************************************************************************!*\
!*** ./node_modules/@azure/msal-browser/dist/app/IPublicClientApplication.js ***!
\*******************************************************************************/
/*! exports provided: stubbedPublicClientApplication */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"stubbedPublicClientApplication\", function() { return stubbedPublicClientApplication; });\n/* harmony import */ var _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../error/BrowserConfigurationAuthError.js */ \"./node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js\");\n/*! @azure/msal-browser v2.19.0 2021-11-02 */\n\n\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar stubbedPublicClientApplication = {\r\n acquireTokenPopup: function () {\r\n return Promise.reject(_error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__[\"BrowserConfigurationAuthError\"].createStubPcaInstanceCalledError());\r\n },\r\n acquir