@auth0/auth0-spa-js 1.22.4 → 1.22.5

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.
@@ -263,9 +263,12 @@
263
263
  })) ? function(it) {
264
264
  return classofRaw(it) == "String" ? split(it, "") : $Object$4(it);
265
265
  } : $Object$4;
266
+ var isNullOrUndefined = function(it) {
267
+ return it === null || it === undefined;
268
+ };
266
269
  var $TypeError$c = TypeError;
267
270
  var requireObjectCoercible = function(it) {
268
- if (it == undefined) throw $TypeError$c("Can't call method on " + it);
271
+ if (isNullOrUndefined(it)) throw $TypeError$c("Can't call method on " + it);
269
272
  return it;
270
273
  };
271
274
  var toIndexedObject = function(it) {
@@ -274,7 +277,11 @@
274
277
  var isCallable = function(argument) {
275
278
  return typeof argument == "function";
276
279
  };
277
- var isObject = function(it) {
280
+ var documentAll = typeof document == "object" && document.all;
281
+ var SPECIAL_DOCUMENT_ALL = typeof documentAll == "undefined" && documentAll !== undefined;
282
+ var isObject = SPECIAL_DOCUMENT_ALL ? function(it) {
283
+ return typeof it == "object" ? it !== null : isCallable(it) || it === documentAll;
284
+ } : function(it) {
278
285
  return typeof it == "object" ? it !== null : isCallable(it);
279
286
  };
280
287
  var aFunction = function(argument) {
@@ -302,11 +309,11 @@
302
309
  }
303
310
  }
304
311
  var engineV8Version = version$1;
305
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails((function() {
312
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails((function() {
306
313
  var symbol = Symbol();
307
314
  return !String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && engineV8Version && engineV8Version < 41;
308
315
  }));
309
- var useSymbolAsUid = nativeSymbol && !Symbol.sham && typeof Symbol.iterator == "symbol";
316
+ var useSymbolAsUid = symbolConstructorDetection && !Symbol.sham && typeof Symbol.iterator == "symbol";
310
317
  var $Object$3 = Object;
311
318
  var isSymbol = useSymbolAsUid ? function(it) {
312
319
  return typeof it == "symbol";
@@ -329,7 +336,7 @@
329
336
  };
330
337
  var getMethod = function(V, P) {
331
338
  var func = V[P];
332
- return func == null ? undefined : aCallable(func);
339
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
333
340
  };
334
341
  var $TypeError$a = TypeError;
335
342
  var ordinaryToPrimitive = function(input, pref) {
@@ -359,10 +366,10 @@
359
366
  (module.exports = function(key, value) {
360
367
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
361
368
  })("versions", []).push({
362
- version: "3.24.0",
369
+ version: "3.25.1",
363
370
  mode: "global",
364
371
  copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)",
365
- license: "https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE",
372
+ license: "https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE",
366
373
  source: "https://github.com/zloirock/core-js"
367
374
  });
368
375
  }));
@@ -385,9 +392,9 @@
385
392
  var symbolFor = Symbol$1 && Symbol$1["for"];
386
393
  var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
387
394
  var wellKnownSymbol = function(name) {
388
- if (!hasOwnProperty_1(WellKnownSymbolsStore$1, name) || !(nativeSymbol || typeof WellKnownSymbolsStore$1[name] == "string")) {
395
+ if (!hasOwnProperty_1(WellKnownSymbolsStore$1, name) || !(symbolConstructorDetection || typeof WellKnownSymbolsStore$1[name] == "string")) {
389
396
  var description = "Symbol." + name;
390
- if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
397
+ if (symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)) {
391
398
  WellKnownSymbolsStore$1[name] = Symbol$1[name];
392
399
  } else if (useSymbolAsUid && symbolFor) {
393
400
  WellKnownSymbolsStore$1[name] = symbolFor(description);
@@ -512,7 +519,7 @@
512
519
  }
513
520
  var inspectSource = sharedStore.inspectSource;
514
521
  var WeakMap$1 = global_1.WeakMap;
515
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
522
+ var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
516
523
  var keys = shared("keys");
517
524
  var sharedKey = function(key) {
518
525
  return keys[key] || (keys[key] = uid(key));
@@ -534,13 +541,13 @@
534
541
  return state;
535
542
  };
536
543
  };
537
- if (nativeWeakMap || sharedStore.state) {
544
+ if (weakMapBasicDetection || sharedStore.state) {
538
545
  var store = sharedStore.state || (sharedStore.state = new WeakMap);
539
546
  var wmget = functionUncurryThis(store.get);
540
547
  var wmhas = functionUncurryThis(store.has);
541
548
  var wmset = functionUncurryThis(store.set);
542
549
  set = function(it, metadata) {
543
- if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
550
+ if (wmhas(store, it)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);
544
551
  metadata.facade = it;
545
552
  wmset(store, it, metadata);
546
553
  return metadata;
@@ -555,7 +562,7 @@
555
562
  var STATE = sharedKey("state");
556
563
  hiddenKeys$1[STATE] = true;
557
564
  set = function(it, metadata) {
558
- if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
565
+ if (hasOwnProperty_1(it, STATE)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);
559
566
  metadata.facade = it;
560
567
  createNonEnumerableProperty(it, STATE, metadata);
561
568
  return metadata;
@@ -814,7 +821,7 @@
814
821
  return false;
815
822
  };
816
823
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
817
- var un$StartsWith = functionUncurryThis("".startsWith);
824
+ var nativeStartsWith = functionUncurryThis("".startsWith);
818
825
  var stringSlice$2 = functionUncurryThis("".slice);
819
826
  var min = Math.min;
820
827
  var CORRECT_IS_REGEXP_LOGIC = correctIsRegexpLogic("startsWith");
@@ -832,7 +839,7 @@
832
839
  notARegexp(searchString);
833
840
  var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
834
841
  var search = toString_1(searchString);
835
- return un$StartsWith ? un$StartsWith(that, search, index) : stringSlice$2(that, index, index + search.length) === search;
842
+ return nativeStartsWith ? nativeStartsWith(that, search, index) : stringSlice$2(that, index, index + search.length) === search;
836
843
  }
837
844
  });
838
845
  var entryUnbind = function(CONSTRUCTOR, METHOD) {
@@ -1063,7 +1070,7 @@
1063
1070
  };
1064
1071
  var path = global_1;
1065
1072
  var defineProperty$6 = objectDefineProperty.f;
1066
- var defineWellKnownSymbol = function(NAME) {
1073
+ var wellKnownSymbolDefine = function(NAME) {
1067
1074
  var Symbol = path.Symbol || (path.Symbol = {});
1068
1075
  if (!hasOwnProperty_1(Symbol, NAME)) defineProperty$6(Symbol, NAME, {
1069
1076
  value: wellKnownSymbolWrapped.f(NAME)
@@ -1268,7 +1275,7 @@
1268
1275
  }));
1269
1276
  return result;
1270
1277
  };
1271
- if (!nativeSymbol) {
1278
+ if (!symbolConstructorDetection) {
1272
1279
  $Symbol = function Symbol() {
1273
1280
  if (objectIsPrototypeOf(SymbolPrototype$1, this)) throw TypeError$2("Symbol is not a constructor");
1274
1281
  var description = !arguments.length || arguments[0] === undefined ? undefined : toString_1(arguments[0]);
@@ -1318,18 +1325,18 @@
1318
1325
  global: true,
1319
1326
  constructor: true,
1320
1327
  wrap: true,
1321
- forced: !nativeSymbol,
1322
- sham: !nativeSymbol
1328
+ forced: !symbolConstructorDetection,
1329
+ sham: !symbolConstructorDetection
1323
1330
  }, {
1324
1331
  Symbol: $Symbol
1325
1332
  });
1326
1333
  $forEach(objectKeys(WellKnownSymbolsStore), (function(name) {
1327
- defineWellKnownSymbol(name);
1334
+ wellKnownSymbolDefine(name);
1328
1335
  }));
1329
1336
  _export({
1330
1337
  target: SYMBOL,
1331
1338
  stat: true,
1332
- forced: !nativeSymbol
1339
+ forced: !symbolConstructorDetection
1333
1340
  }, {
1334
1341
  useSetter: function() {
1335
1342
  USE_SETTER = true;
@@ -1341,7 +1348,7 @@
1341
1348
  _export({
1342
1349
  target: "Object",
1343
1350
  stat: true,
1344
- forced: !nativeSymbol,
1351
+ forced: !symbolConstructorDetection,
1345
1352
  sham: !descriptors
1346
1353
  }, {
1347
1354
  create: $create,
@@ -1352,20 +1359,20 @@
1352
1359
  _export({
1353
1360
  target: "Object",
1354
1361
  stat: true,
1355
- forced: !nativeSymbol
1362
+ forced: !symbolConstructorDetection
1356
1363
  }, {
1357
1364
  getOwnPropertyNames: $getOwnPropertyNames
1358
1365
  });
1359
1366
  symbolDefineToPrimitive();
1360
1367
  setToStringTag($Symbol, SYMBOL);
1361
1368
  hiddenKeys$1[HIDDEN] = true;
1362
- var nativeSymbolRegistry = nativeSymbol && !!Symbol["for"] && !!Symbol.keyFor;
1369
+ var symbolRegistryDetection = symbolConstructorDetection && !!Symbol["for"] && !!Symbol.keyFor;
1363
1370
  var StringToSymbolRegistry = shared("string-to-symbol-registry");
1364
1371
  var SymbolToStringRegistry$1 = shared("symbol-to-string-registry");
1365
1372
  _export({
1366
1373
  target: "Symbol",
1367
1374
  stat: true,
1368
- forced: !nativeSymbolRegistry
1375
+ forced: !symbolRegistryDetection
1369
1376
  }, {
1370
1377
  for: function(key) {
1371
1378
  var string = toString_1(key);
@@ -1380,7 +1387,7 @@
1380
1387
  _export({
1381
1388
  target: "Symbol",
1382
1389
  stat: true,
1383
- forced: !nativeSymbolRegistry
1390
+ forced: !symbolRegistryDetection
1384
1391
  }, {
1385
1392
  keyFor: function keyFor(sym) {
1386
1393
  if (!isSymbol(sym)) throw TypeError(tryToString(sym) + " is not a symbol");
@@ -1403,7 +1410,7 @@
1403
1410
  var tester = /[\uD800-\uDFFF]/g;
1404
1411
  var low = /^[\uD800-\uDBFF]$/;
1405
1412
  var hi = /^[\uDC00-\uDFFF]$/;
1406
- var WRONG_SYMBOLS_CONVERSION = !nativeSymbol || fails((function() {
1413
+ var WRONG_SYMBOLS_CONVERSION = !symbolConstructorDetection || fails((function() {
1407
1414
  var symbol = getBuiltIn("Symbol")();
1408
1415
  return $stringify([ symbol ]) != "[null]" || $stringify({
1409
1416
  a: symbol
@@ -1445,7 +1452,7 @@
1445
1452
  }
1446
1453
  });
1447
1454
  }
1448
- var FORCED$1 = !nativeSymbol || fails((function() {
1455
+ var FORCED$1 = !symbolConstructorDetection || fails((function() {
1449
1456
  objectGetOwnPropertySymbols.f(1);
1450
1457
  }));
1451
1458
  _export({
@@ -1458,7 +1465,7 @@
1458
1465
  return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : [];
1459
1466
  }
1460
1467
  });
1461
- defineWellKnownSymbol("asyncIterator");
1468
+ wellKnownSymbolDefine("asyncIterator");
1462
1469
  var defineProperty$4 = objectDefineProperty.f;
1463
1470
  var NativeSymbol = global_1.Symbol;
1464
1471
  var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
@@ -1474,17 +1481,17 @@
1474
1481
  SymbolWrapper.prototype = SymbolPrototype;
1475
1482
  SymbolPrototype.constructor = SymbolWrapper;
1476
1483
  var NATIVE_SYMBOL = String(NativeSymbol("test")) == "Symbol(test)";
1477
- var symbolToString = functionUncurryThis(SymbolPrototype.toString);
1478
- var symbolValueOf = functionUncurryThis(SymbolPrototype.valueOf);
1484
+ var thisSymbolValue = functionUncurryThis(SymbolPrototype.valueOf);
1485
+ var symbolDescriptiveString = functionUncurryThis(SymbolPrototype.toString);
1479
1486
  var regexp = /^Symbol\((.*)\)[^)]+$/;
1480
1487
  var replace = functionUncurryThis("".replace);
1481
1488
  var stringSlice$1 = functionUncurryThis("".slice);
1482
1489
  defineProperty$4(SymbolPrototype, "description", {
1483
1490
  configurable: true,
1484
1491
  get: function description() {
1485
- var symbol = symbolValueOf(this);
1486
- var string = symbolToString(symbol);
1492
+ var symbol = thisSymbolValue(this);
1487
1493
  if (hasOwnProperty_1(EmptyStringDescriptionStore, symbol)) return "";
1494
+ var string = symbolDescriptiveString(symbol);
1488
1495
  var desc = NATIVE_SYMBOL ? stringSlice$1(string, 7, -1) : replace(string, regexp, "$1");
1489
1496
  return desc === "" ? undefined : desc;
1490
1497
  }
@@ -1497,20 +1504,20 @@
1497
1504
  Symbol: SymbolWrapper
1498
1505
  });
1499
1506
  }
1500
- defineWellKnownSymbol("hasInstance");
1501
- defineWellKnownSymbol("isConcatSpreadable");
1502
- defineWellKnownSymbol("iterator");
1503
- defineWellKnownSymbol("match");
1504
- defineWellKnownSymbol("matchAll");
1505
- defineWellKnownSymbol("replace");
1506
- defineWellKnownSymbol("search");
1507
- defineWellKnownSymbol("species");
1508
- defineWellKnownSymbol("split");
1509
- defineWellKnownSymbol("toPrimitive");
1507
+ wellKnownSymbolDefine("hasInstance");
1508
+ wellKnownSymbolDefine("isConcatSpreadable");
1509
+ wellKnownSymbolDefine("iterator");
1510
+ wellKnownSymbolDefine("match");
1511
+ wellKnownSymbolDefine("matchAll");
1512
+ wellKnownSymbolDefine("replace");
1513
+ wellKnownSymbolDefine("search");
1514
+ wellKnownSymbolDefine("species");
1515
+ wellKnownSymbolDefine("split");
1516
+ wellKnownSymbolDefine("toPrimitive");
1510
1517
  symbolDefineToPrimitive();
1511
- defineWellKnownSymbol("toStringTag");
1518
+ wellKnownSymbolDefine("toStringTag");
1512
1519
  setToStringTag(getBuiltIn("Symbol"), "Symbol");
1513
- defineWellKnownSymbol("unscopables");
1520
+ wellKnownSymbolDefine("unscopables");
1514
1521
  setToStringTag(global_1.JSON, "JSON", true);
1515
1522
  setToStringTag(Math, "Math", true);
1516
1523
  _export({
@@ -1565,7 +1572,7 @@
1565
1572
  if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1566
1573
  }
1567
1574
  }
1568
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails((function() {
1575
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails((function() {
1569
1576
  var test = {};
1570
1577
  return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
1571
1578
  }));
@@ -1584,7 +1591,7 @@
1584
1591
  var returnThis$1 = function() {
1585
1592
  return this;
1586
1593
  };
1587
- var createIteratorConstructor = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1594
+ var iteratorCreateConstructor = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1588
1595
  var TO_STRING_TAG = NAME + " Iterator";
1589
1596
  IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, {
1590
1597
  next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next)
@@ -1626,8 +1633,8 @@
1626
1633
  var returnThis = function() {
1627
1634
  return this;
1628
1635
  };
1629
- var defineIterator = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1630
- createIteratorConstructor(IteratorConstructor, NAME, next);
1636
+ var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1637
+ iteratorCreateConstructor(IteratorConstructor, NAME, next);
1631
1638
  var getIterationMethod = function(KIND) {
1632
1639
  if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1633
1640
  if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
@@ -1705,11 +1712,17 @@
1705
1712
  iterators[NAME] = defaultIterator;
1706
1713
  return methods;
1707
1714
  };
1715
+ var createIterResultObject = function(value, done) {
1716
+ return {
1717
+ value: value,
1718
+ done: done
1719
+ };
1720
+ };
1708
1721
  var charAt = stringMultibyte.charAt;
1709
1722
  var STRING_ITERATOR = "String Iterator";
1710
1723
  var setInternalState$2 = internalState.set;
1711
1724
  var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
1712
- defineIterator(String, "String", (function(iterated) {
1725
+ iteratorDefine(String, "String", (function(iterated) {
1713
1726
  setInternalState$2(this, {
1714
1727
  type: STRING_ITERATOR,
1715
1728
  string: toString_1(iterated),
@@ -1720,16 +1733,10 @@
1720
1733
  var string = state.string;
1721
1734
  var index = state.index;
1722
1735
  var point;
1723
- if (index >= string.length) return {
1724
- value: undefined,
1725
- done: true
1726
- };
1736
+ if (index >= string.length) return createIterResultObject(undefined, true);
1727
1737
  point = charAt(string, index);
1728
1738
  state.index += point.length;
1729
- return {
1730
- value: point,
1731
- done: false
1732
- };
1739
+ return createIterResultObject(point, false);
1733
1740
  }));
1734
1741
  var iteratorClose = function(iterator, kind, value) {
1735
1742
  var innerResult, innerError;
@@ -1764,7 +1771,7 @@
1764
1771
  };
1765
1772
  var ITERATOR$1 = wellKnownSymbol("iterator");
1766
1773
  var getIteratorMethod = function(it) {
1767
- if (it != undefined) return getMethod(it, ITERATOR$1) || getMethod(it, "@@iterator") || iterators[classof(it)];
1774
+ if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR$1) || getMethod(it, "@@iterator") || iterators[classof(it)];
1768
1775
  };
1769
1776
  var $TypeError$3 = TypeError;
1770
1777
  var getIterator = function(argument, usingIterator) {
@@ -1852,7 +1859,7 @@
1852
1859
  from: arrayFrom
1853
1860
  });
1854
1861
  path.Array.from;
1855
- var arrayBufferNative = typeof ArrayBuffer != "undefined" && typeof DataView != "undefined";
1862
+ var arrayBufferBasicDetection = typeof ArrayBuffer != "undefined" && typeof DataView != "undefined";
1856
1863
  var defineProperty$3 = objectDefineProperty.f;
1857
1864
  var enforceInternalState = internalState.enforce;
1858
1865
  var getInternalState$1 = internalState.get;
@@ -1867,7 +1874,7 @@
1867
1874
  var TO_STRING_TAG = wellKnownSymbol("toStringTag");
1868
1875
  var TYPED_ARRAY_TAG = uid("TYPED_ARRAY_TAG");
1869
1876
  var TYPED_ARRAY_CONSTRUCTOR = "TypedArrayConstructor";
1870
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== "Opera";
1877
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== "Opera";
1871
1878
  var TYPED_ARRAY_TAG_REQUIRED = false;
1872
1879
  var NAME, Constructor, Prototype;
1873
1880
  var TypedArrayConstructorsList = {
@@ -2008,7 +2015,7 @@
2008
2015
  var speciesConstructor = function(O, defaultConstructor) {
2009
2016
  var C = anObject(O).constructor;
2010
2017
  var S;
2011
- return C === undefined || (S = anObject(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
2018
+ return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
2012
2019
  };
2013
2020
  var aTypedArrayConstructor = arrayBufferViewCore.aTypedArrayConstructor;
2014
2021
  var getTypedArrayConstructor = arrayBufferViewCore.getTypedArrayConstructor;
@@ -2071,7 +2078,7 @@
2071
2078
  var ARRAY_ITERATOR = "Array Iterator";
2072
2079
  var setInternalState$1 = internalState.set;
2073
2080
  var getInternalState = internalState.getterFor(ARRAY_ITERATOR);
2074
- defineIterator(Array, "Array", (function(iterated, kind) {
2081
+ iteratorDefine(Array, "Array", (function(iterated, kind) {
2075
2082
  setInternalState$1(this, {
2076
2083
  type: ARRAY_ITERATOR,
2077
2084
  target: toIndexedObject(iterated),
@@ -2085,23 +2092,11 @@
2085
2092
  var index = state.index++;
2086
2093
  if (!target || index >= target.length) {
2087
2094
  state.target = undefined;
2088
- return {
2089
- value: undefined,
2090
- done: true
2091
- };
2095
+ return createIterResultObject(undefined, true);
2092
2096
  }
2093
- if (kind == "keys") return {
2094
- value: index,
2095
- done: false
2096
- };
2097
- if (kind == "values") return {
2098
- value: target[index],
2099
- done: false
2100
- };
2101
- return {
2102
- value: [ index, target[index] ],
2103
- done: false
2104
- };
2097
+ if (kind == "keys") return createIterResultObject(index, false);
2098
+ if (kind == "values") return createIterResultObject(target[index], false);
2099
+ return createIterResultObject([ index, target[index] ], false);
2105
2100
  }), "values");
2106
2101
  var values = iterators.Arguments = iterators.Array;
2107
2102
  addToUnscopables("keys");
@@ -2316,7 +2311,7 @@
2316
2311
  Constructor = wrapper((function(dummy, iterable) {
2317
2312
  anInstance(dummy, NativePrototype);
2318
2313
  var that = inheritIfRequired(new NativeConstructor, dummy, Constructor);
2319
- if (iterable != undefined) iterate(iterable, that[ADDER], {
2314
+ if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], {
2320
2315
  that: that,
2321
2316
  AS_ENTRIES: IS_MAP
2322
2317
  });
@@ -2376,7 +2371,7 @@
2376
2371
  size: 0
2377
2372
  });
2378
2373
  if (!descriptors) that.size = 0;
2379
- if (iterable != undefined) iterate(iterable, that[ADDER], {
2374
+ if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], {
2380
2375
  that: that,
2381
2376
  AS_ENTRIES: IS_MAP
2382
2377
  });
@@ -2483,7 +2478,7 @@
2483
2478
  var ITERATOR_NAME = CONSTRUCTOR_NAME + " Iterator";
2484
2479
  var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
2485
2480
  var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
2486
- defineIterator(Constructor, CONSTRUCTOR_NAME, (function(iterated, kind) {
2481
+ iteratorDefine(Constructor, CONSTRUCTOR_NAME, (function(iterated, kind) {
2487
2482
  setInternalState(this, {
2488
2483
  type: ITERATOR_NAME,
2489
2484
  target: iterated,
@@ -2498,23 +2493,11 @@
2498
2493
  while (entry && entry.removed) entry = entry.previous;
2499
2494
  if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
2500
2495
  state.target = undefined;
2501
- return {
2502
- value: undefined,
2503
- done: true
2504
- };
2496
+ return createIterResultObject(undefined, true);
2505
2497
  }
2506
- if (kind == "keys") return {
2507
- value: entry.key,
2508
- done: false
2509
- };
2510
- if (kind == "values") return {
2511
- value: entry.value,
2512
- done: false
2513
- };
2514
- return {
2515
- value: [ entry.key, entry.value ],
2516
- done: false
2517
- };
2498
+ if (kind == "keys") return createIterResultObject(entry.key, false);
2499
+ if (kind == "values") return createIterResultObject(entry.value, false);
2500
+ return createIterResultObject([ entry.key, entry.value ], false);
2518
2501
  }), IS_MAP ? "entries" : "values", !IS_MAP, true);
2519
2502
  setSpecies(CONSTRUCTOR_NAME);
2520
2503
  }
@@ -2783,114 +2766,110 @@
2783
2766
  globalNS.Promise.allSettled = allSettled;
2784
2767
  }
2785
2768
  }
2786
- (function(l) {
2787
- function m() {}
2788
- function k(a, c) {
2789
- a = void 0 === a ? "utf-8" : a;
2790
- c = void 0 === c ? {
2791
- fatal: !1
2792
- } : c;
2793
- if (-1 === r.indexOf(a.toLowerCase())) throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('" + a + "') is invalid.");
2794
- if (c.fatal) throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.");
2795
- }
2796
- function t(a) {
2797
- return Buffer.from(a.buffer, a.byteOffset, a.byteLength).toString("utf-8");
2798
- }
2799
- function u(a) {
2800
- try {
2801
- var c = URL.createObjectURL(new Blob([ a ], {
2802
- type: "text/plain;charset=UTF-8"
2803
- }));
2804
- var f = new XMLHttpRequest;
2805
- f.open("GET", c, !1);
2806
- f.send();
2807
- return f.responseText;
2808
- } catch (e) {
2809
- return q(a);
2810
- } finally {
2811
- c && URL.revokeObjectURL(c);
2812
- }
2813
- }
2814
- function q(a) {
2815
- for (var c = 0, f = Math.min(65536, a.length + 1), e = new Uint16Array(f), h = [], d = 0; ;) {
2816
- var b = c < a.length;
2817
- if (!b || d >= f - 1) {
2818
- h.push(String.fromCharCode.apply(null, e.subarray(0, d)));
2819
- if (!b) return h.join("");
2820
- a = a.subarray(c);
2821
- d = c = 0;
2769
+ (function(scope) {
2770
+ function B(r, e) {
2771
+ var f;
2772
+ return r instanceof Buffer ? f = r : f = Buffer.from(r.buffer, r.byteOffset, r.byteLength),
2773
+ f.toString(e);
2774
+ }
2775
+ var w = function(r) {
2776
+ return Buffer.from(r);
2777
+ };
2778
+ function h(r) {
2779
+ for (var e = 0, f = Math.min(256 * 256, r.length + 1), n = new Uint16Array(f), i = [], o = 0; ;) {
2780
+ var t = e < r.length;
2781
+ if (!t || o >= f - 1) {
2782
+ var s = n.subarray(0, o), m = s;
2783
+ if (i.push(String.fromCharCode.apply(null, m)), !t) return i.join("");
2784
+ r = r.subarray(e), e = 0, o = 0;
2822
2785
  }
2823
- b = a[c++];
2824
- if (0 === (b & 128)) e[d++] = b; else if (192 === (b & 224)) {
2825
- var g = a[c++] & 63;
2826
- e[d++] = (b & 31) << 6 | g;
2827
- } else if (224 === (b & 240)) {
2828
- g = a[c++] & 63;
2829
- var n = a[c++] & 63;
2830
- e[d++] = (b & 31) << 12 | g << 6 | n;
2831
- } else if (240 === (b & 248)) {
2832
- g = a[c++] & 63;
2833
- n = a[c++] & 63;
2834
- var v = a[c++] & 63;
2835
- b = (b & 7) << 18 | g << 12 | n << 6 | v;
2836
- 65535 < b && (b -= 65536, e[d++] = b >>> 10 & 1023 | 55296, b = 56320 | b & 1023);
2837
- e[d++] = b;
2786
+ var a = r[e++];
2787
+ if ((a & 128) === 0) n[o++] = a; else if ((a & 224) === 192) {
2788
+ var d = r[e++] & 63;
2789
+ n[o++] = (a & 31) << 6 | d;
2790
+ } else if ((a & 240) === 224) {
2791
+ var d = r[e++] & 63, l = r[e++] & 63;
2792
+ n[o++] = (a & 31) << 12 | d << 6 | l;
2793
+ } else if ((a & 248) === 240) {
2794
+ var d = r[e++] & 63, l = r[e++] & 63, R = r[e++] & 63, c = (a & 7) << 18 | d << 12 | l << 6 | R;
2795
+ c > 65535 && (c -= 65536, n[o++] = c >>> 10 & 1023 | 55296, c = 56320 | c & 1023),
2796
+ n[o++] = c;
2838
2797
  }
2839
2798
  }
2840
2799
  }
2841
- if (l.TextEncoder && l.TextDecoder) return !1;
2842
- var r = [ "utf-8", "utf8", "unicode-1-1-utf-8" ];
2843
- Object.defineProperty(m.prototype, "encoding", {
2844
- value: "utf-8"
2845
- });
2846
- m.prototype.encode = function(a, c) {
2847
- c = void 0 === c ? {
2848
- stream: !1
2849
- } : c;
2850
- if (c.stream) throw Error("Failed to encode: the 'stream' option is unsupported.");
2851
- c = 0;
2852
- for (var f = a.length, e = 0, h = Math.max(32, f + (f >>> 1) + 7), d = new Uint8Array(h >>> 3 << 3); c < f; ) {
2853
- var b = a.charCodeAt(c++);
2854
- if (55296 <= b && 56319 >= b) {
2855
- if (c < f) {
2856
- var g = a.charCodeAt(c);
2857
- 56320 === (g & 64512) && (++c, b = ((b & 1023) << 10) + (g & 1023) + 65536);
2800
+ function F(r) {
2801
+ for (var e = 0, f = r.length, n = 0, i = Math.max(32, f + (f >>> 1) + 7), o = new Uint8Array(i >>> 3 << 3); e < f; ) {
2802
+ var t = r.charCodeAt(e++);
2803
+ if (t >= 55296 && t <= 56319) {
2804
+ if (e < f) {
2805
+ var s = r.charCodeAt(e);
2806
+ (s & 64512) === 56320 && (++e, t = ((t & 1023) << 10) + (s & 1023) + 65536);
2858
2807
  }
2859
- if (55296 <= b && 56319 >= b) continue;
2808
+ if (t >= 55296 && t <= 56319) continue;
2860
2809
  }
2861
- e + 4 > d.length && (h += 8, h *= 1 + c / a.length * 2, h = h >>> 3 << 3, g = new Uint8Array(h),
2862
- g.set(d), d = g);
2863
- if (0 === (b & 4294967168)) d[e++] = b; else {
2864
- if (0 === (b & 4294965248)) d[e++] = b >>> 6 & 31 | 192; else if (0 === (b & 4294901760)) d[e++] = b >>> 12 & 15 | 224,
2865
- d[e++] = b >>> 6 & 63 | 128; else if (0 === (b & 4292870144)) d[e++] = b >>> 18 & 7 | 240,
2866
- d[e++] = b >>> 12 & 63 | 128, d[e++] = b >>> 6 & 63 | 128; else continue;
2867
- d[e++] = b & 63 | 128;
2810
+ if (n + 4 > o.length) {
2811
+ i += 8, i *= 1 + e / r.length * 2, i = i >>> 3 << 3;
2812
+ var m = new Uint8Array(i);
2813
+ m.set(o), o = m;
2868
2814
  }
2815
+ if ((t & 4294967168) === 0) {
2816
+ o[n++] = t;
2817
+ continue;
2818
+ } else if ((t & 4294965248) === 0) o[n++] = t >>> 6 & 31 | 192; else if ((t & 4294901760) === 0) o[n++] = t >>> 12 & 15 | 224,
2819
+ o[n++] = t >>> 6 & 63 | 128; else if ((t & 4292870144) === 0) o[n++] = t >>> 18 & 7 | 240,
2820
+ o[n++] = t >>> 12 & 63 | 128, o[n++] = t >>> 6 & 63 | 128; else continue;
2821
+ o[n++] = t & 63 | 128;
2869
2822
  }
2870
- return d.slice ? d.slice(0, e) : d.subarray(0, e);
2823
+ return o.slice ? o.slice(0, n) : o.subarray(0, n);
2824
+ }
2825
+ var u = "Failed to ", p = function(r, e, f) {
2826
+ if (r) throw new Error("".concat(u).concat(e, ": the '").concat(f, "' option is unsupported."));
2871
2827
  };
2872
- Object.defineProperty(k.prototype, "encoding", {
2873
- value: "utf-8"
2874
- });
2875
- Object.defineProperty(k.prototype, "fatal", {
2876
- value: !1
2877
- });
2878
- Object.defineProperty(k.prototype, "ignoreBOM", {
2879
- value: !1
2828
+ var x = typeof Buffer == "function" && Buffer.from;
2829
+ var A = x ? w : F;
2830
+ function v() {
2831
+ this.encoding = "utf-8";
2832
+ }
2833
+ v.prototype.encode = function(r, e) {
2834
+ return p(e && e.stream, "encode", "stream"), A(r);
2835
+ };
2836
+ function U(r) {
2837
+ var e;
2838
+ try {
2839
+ var f = new Blob([ r ], {
2840
+ type: "text/plain;charset=UTF-8"
2841
+ });
2842
+ e = URL.createObjectURL(f);
2843
+ var n = new XMLHttpRequest;
2844
+ return n.open("GET", e, !1), n.send(), n.responseText;
2845
+ } finally {
2846
+ e && URL.revokeObjectURL(e);
2847
+ }
2848
+ }
2849
+ var O = !x && typeof Blob == "function" && typeof URL == "function" && typeof URL.createObjectURL == "function", S = [ "utf-8", "utf8", "unicode-1-1-utf-8" ], T = h;
2850
+ x ? T = B : O && (T = function(r) {
2851
+ try {
2852
+ return U(r);
2853
+ } catch (e) {
2854
+ return h(r);
2855
+ }
2880
2856
  });
2881
- var p = q;
2882
- "function" === typeof Buffer && Buffer.from ? p = t : "function" === typeof Blob && "function" === typeof URL && "function" === typeof URL.createObjectURL && (p = u);
2883
- k.prototype.decode = function(a, c) {
2884
- c = void 0 === c ? {
2885
- stream: !1
2886
- } : c;
2887
- if (c.stream) throw Error("Failed to decode: the 'stream' option is unsupported.");
2888
- a = a instanceof Uint8Array ? a : a.buffer instanceof ArrayBuffer ? new Uint8Array(a.buffer) : new Uint8Array(a);
2889
- return p(a);
2857
+ var y = "construct 'TextDecoder'", E = "".concat(u, " ").concat(y, ": the ");
2858
+ function g(r, e) {
2859
+ p(e && e.fatal, y, "fatal"), r = r || "utf-8";
2860
+ var f;
2861
+ if (x ? f = Buffer.isEncoding(r) : f = S.indexOf(r.toLowerCase()) !== -1, !f) throw new RangeError("".concat(E, " encoding label provided ('").concat(r, "') is invalid."));
2862
+ this.encoding = r, this.fatal = !1, this.ignoreBOM = !1;
2863
+ }
2864
+ g.prototype.decode = function(r, e) {
2865
+ p(e && e.stream, "decode", "stream");
2866
+ var f;
2867
+ return r instanceof Uint8Array ? f = r : r.buffer instanceof ArrayBuffer ? f = new Uint8Array(r.buffer) : f = new Uint8Array(r),
2868
+ T(f, this.encoding);
2890
2869
  };
2891
- l.TextEncoder = m;
2892
- l.TextDecoder = k;
2893
- })("undefined" !== typeof window ? window : "undefined" !== typeof commonjsGlobal ? commonjsGlobal : commonjsGlobal);
2870
+ scope.TextEncoder = scope.TextEncoder || v;
2871
+ scope.TextDecoder = scope.TextDecoder || g;
2872
+ })(typeof window !== "undefined" ? window : typeof commonjsGlobal !== "undefined" ? commonjsGlobal : commonjsGlobal);
2894
2873
  (function(factory) {
2895
2874
  factory();
2896
2875
  })((function() {
@@ -3612,7 +3591,7 @@
3612
3591
  exports.default = SuperTokensLock;
3613
3592
  }));
3614
3593
  var Lock = unwrapExports(browserTabsLock);
3615
- var version = "1.22.4";
3594
+ var version = "1.22.5";
3616
3595
  var DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS = 60;
3617
3596
  var DEFAULT_POPUP_CONFIG_OPTIONS = {
3618
3597
  timeoutInSeconds: DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS
@@ -5344,20 +5323,27 @@
5344
5323
  options = {};
5345
5324
  }
5346
5325
  return __awaiter(this, void 0, void 0, (function() {
5347
- var _a, ignoreCache, getTokenOptions;
5326
+ var _a, ignoreCache, getTokenOptions, result;
5348
5327
  var _this = this;
5349
5328
  return __generator(this, (function(_b) {
5350
- _a = __assign(__assign({
5351
- audience: this.options.audience,
5352
- ignoreCache: false
5353
- }, options), {
5354
- scope: getUniqueScopes(this.defaultScope, this.scope, options.scope)
5355
- }), ignoreCache = _a.ignoreCache, getTokenOptions = __rest(_a, [ "ignoreCache" ]);
5356
- return [ 2, singlePromise((function() {
5357
- return _this._getTokenSilently(__assign({
5358
- ignoreCache: ignoreCache
5359
- }, getTokenOptions));
5360
- }), "".concat(this.options.client_id, "::").concat(getTokenOptions.audience, "::").concat(getTokenOptions.scope)) ];
5329
+ switch (_b.label) {
5330
+ case 0:
5331
+ _a = __assign(__assign({
5332
+ audience: this.options.audience,
5333
+ ignoreCache: false
5334
+ }, options), {
5335
+ scope: getUniqueScopes(this.defaultScope, this.scope, options.scope)
5336
+ }), ignoreCache = _a.ignoreCache, getTokenOptions = __rest(_a, [ "ignoreCache" ]);
5337
+ return [ 4, singlePromise((function() {
5338
+ return _this._getTokenSilently(__assign({
5339
+ ignoreCache: ignoreCache
5340
+ }, getTokenOptions));
5341
+ }), "".concat(this.options.client_id, "::").concat(getTokenOptions.audience, "::").concat(getTokenOptions.scope)) ];
5342
+
5343
+ case 1:
5344
+ result = _b.sent();
5345
+ return [ 2, options.detailedResponse ? result : result.access_token ];
5346
+ }
5361
5347
  }));
5362
5348
  }));
5363
5349
  };
@@ -5375,8 +5361,7 @@
5375
5361
  return [ 4, this._getEntryFromCache({
5376
5362
  scope: getTokenOptions.scope,
5377
5363
  audience: getTokenOptions.audience || "default",
5378
- client_id: this.options.client_id,
5379
- getDetailedEntry: options.detailedResponse
5364
+ client_id: this.options.client_id
5380
5365
  }) ];
5381
5366
 
5382
5367
  case 1:
@@ -5402,8 +5387,7 @@
5402
5387
  return [ 4, this._getEntryFromCache({
5403
5388
  scope: getTokenOptions.scope,
5404
5389
  audience: getTokenOptions.audience || "default",
5405
- client_id: this.options.client_id,
5406
- getDetailedEntry: options.detailedResponse
5390
+ client_id: this.options.client_id
5407
5391
  }) ];
5408
5392
 
5409
5393
  case 5:
@@ -5440,19 +5424,16 @@
5440
5424
  daysUntilExpire: this.sessionCheckExpiryDays,
5441
5425
  cookieDomain: this.options.cookieDomain
5442
5426
  });
5443
- if (options.detailedResponse) {
5444
- id_token = authResult.id_token, access_token = authResult.access_token, oauthTokenScope = authResult.oauthTokenScope,
5445
- expires_in = authResult.expires_in;
5446
- return [ 2, __assign(__assign({
5447
- id_token: id_token,
5448
- access_token: access_token
5449
- }, oauthTokenScope ? {
5450
- scope: oauthTokenScope
5451
- } : null), {
5452
- expires_in: expires_in
5453
- }) ];
5454
- }
5455
- return [ 2, authResult.access_token ];
5427
+ id_token = authResult.id_token, access_token = authResult.access_token, oauthTokenScope = authResult.oauthTokenScope,
5428
+ expires_in = authResult.expires_in;
5429
+ return [ 2, __assign(__assign({
5430
+ id_token: id_token,
5431
+ access_token: access_token
5432
+ }, oauthTokenScope ? {
5433
+ scope: oauthTokenScope
5434
+ } : null), {
5435
+ expires_in: expires_in
5436
+ }) ];
5456
5437
 
5457
5438
  case 12:
5458
5439
  return [ 4, lock.releaseLock(GET_TOKEN_SILENTLY_LOCK_KEY) ];
@@ -5729,11 +5710,11 @@
5729
5710
  }));
5730
5711
  };
5731
5712
  Auth0Client.prototype._getEntryFromCache = function(_a) {
5732
- var scope = _a.scope, audience = _a.audience, client_id = _a.client_id, _b = _a.getDetailedEntry, getDetailedEntry = _b === void 0 ? false : _b;
5713
+ var scope = _a.scope, audience = _a.audience, client_id = _a.client_id;
5733
5714
  return __awaiter(this, void 0, void 0, (function() {
5734
5715
  var entry, id_token, access_token, oauthTokenScope, expires_in;
5735
- return __generator(this, (function(_c) {
5736
- switch (_c.label) {
5716
+ return __generator(this, (function(_b) {
5717
+ switch (_b.label) {
5737
5718
  case 0:
5738
5719
  return [ 4, this.cacheManager.get(new CacheKey({
5739
5720
  scope: scope,
@@ -5742,21 +5723,18 @@
5742
5723
  }), 60) ];
5743
5724
 
5744
5725
  case 1:
5745
- entry = _c.sent();
5726
+ entry = _b.sent();
5746
5727
  if (entry && entry.access_token) {
5747
- if (getDetailedEntry) {
5748
- id_token = entry.id_token, access_token = entry.access_token, oauthTokenScope = entry.oauthTokenScope,
5749
- expires_in = entry.expires_in;
5750
- return [ 2, __assign(__assign({
5751
- id_token: id_token,
5752
- access_token: access_token
5753
- }, oauthTokenScope ? {
5754
- scope: oauthTokenScope
5755
- } : null), {
5756
- expires_in: expires_in
5757
- }) ];
5758
- }
5759
- return [ 2, entry.access_token ];
5728
+ id_token = entry.id_token, access_token = entry.access_token, oauthTokenScope = entry.oauthTokenScope,
5729
+ expires_in = entry.expires_in;
5730
+ return [ 2, __assign(__assign({
5731
+ id_token: id_token,
5732
+ access_token: access_token
5733
+ }, oauthTokenScope ? {
5734
+ scope: oauthTokenScope
5735
+ } : null), {
5736
+ expires_in: expires_in
5737
+ }) ];
5760
5738
  }
5761
5739
  return [ 2 ];
5762
5740
  }