@auth0/auth0-spa-js 1.22.1 → 1.22.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.
@@ -256,16 +256,16 @@
256
256
  var classofRaw = function(it) {
257
257
  return stringSlice$3(toString$1(it), 8, -1);
258
258
  };
259
- var Object$5 = global_1.Object;
259
+ var $Object$4 = Object;
260
260
  var split = functionUncurryThis("".split);
261
261
  var indexedObject = fails((function() {
262
- return !Object$5("z").propertyIsEnumerable(0);
262
+ return !$Object$4("z").propertyIsEnumerable(0);
263
263
  })) ? function(it) {
264
- return classofRaw(it) == "String" ? split(it, "") : Object$5(it);
265
- } : Object$5;
266
- var TypeError$g = global_1.TypeError;
264
+ return classofRaw(it) == "String" ? split(it, "") : $Object$4(it);
265
+ } : $Object$4;
266
+ var $TypeError$c = TypeError;
267
267
  var requireObjectCoercible = function(it) {
268
- if (it == undefined) throw TypeError$g("Can't call method on " + it);
268
+ if (it == undefined) throw $TypeError$c("Can't call method on " + it);
269
269
  return it;
270
270
  };
271
271
  var toIndexedObject = function(it) {
@@ -307,37 +307,37 @@
307
307
  return !String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && engineV8Version && engineV8Version < 41;
308
308
  }));
309
309
  var useSymbolAsUid = nativeSymbol && !Symbol.sham && typeof Symbol.iterator == "symbol";
310
- var Object$4 = global_1.Object;
310
+ var $Object$3 = Object;
311
311
  var isSymbol = useSymbolAsUid ? function(it) {
312
312
  return typeof it == "symbol";
313
313
  } : function(it) {
314
314
  var $Symbol = getBuiltIn("Symbol");
315
- return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$4(it));
315
+ return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$3(it));
316
316
  };
317
- var String$4 = global_1.String;
317
+ var $String$3 = String;
318
318
  var tryToString = function(argument) {
319
319
  try {
320
- return String$4(argument);
320
+ return $String$3(argument);
321
321
  } catch (error) {
322
322
  return "Object";
323
323
  }
324
324
  };
325
- var TypeError$f = global_1.TypeError;
325
+ var $TypeError$b = TypeError;
326
326
  var aCallable = function(argument) {
327
327
  if (isCallable(argument)) return argument;
328
- throw TypeError$f(tryToString(argument) + " is not a function");
328
+ throw $TypeError$b(tryToString(argument) + " is not a function");
329
329
  };
330
330
  var getMethod = function(V, P) {
331
331
  var func = V[P];
332
332
  return func == null ? undefined : aCallable(func);
333
333
  };
334
- var TypeError$e = global_1.TypeError;
334
+ var $TypeError$a = TypeError;
335
335
  var ordinaryToPrimitive = function(input, pref) {
336
336
  var fn, val;
337
337
  if (pref === "string" && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
338
338
  if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
339
339
  if (pref !== "string" && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
340
- throw TypeError$e("Can't convert object to primitive value");
340
+ throw $TypeError$a("Can't convert object to primitive value");
341
341
  };
342
342
  var defineProperty$7 = Object.defineProperty;
343
343
  var defineGlobalProperty = function(key, value) {
@@ -359,16 +359,16 @@
359
359
  (module.exports = function(key, value) {
360
360
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
361
361
  })("versions", []).push({
362
- version: "3.22.6",
362
+ version: "3.24.0",
363
363
  mode: "global",
364
364
  copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)",
365
- license: "https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",
365
+ license: "https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE",
366
366
  source: "https://github.com/zloirock/core-js"
367
367
  });
368
368
  }));
369
- var Object$3 = global_1.Object;
369
+ var $Object$2 = Object;
370
370
  var toObject = function(argument) {
371
- return Object$3(requireObjectCoercible(argument));
371
+ return $Object$2(requireObjectCoercible(argument));
372
372
  };
373
373
  var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
374
374
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
@@ -397,7 +397,7 @@
397
397
  }
398
398
  return WellKnownSymbolsStore$1[name];
399
399
  };
400
- var TypeError$d = global_1.TypeError;
400
+ var $TypeError$9 = TypeError;
401
401
  var TO_PRIMITIVE = wellKnownSymbol("toPrimitive");
402
402
  var toPrimitive = function(input, pref) {
403
403
  if (!isObject(input) || isSymbol(input)) return input;
@@ -407,7 +407,7 @@
407
407
  if (pref === undefined) pref = "default";
408
408
  result = functionCall(exoticToPrim, input, pref);
409
409
  if (!isObject(result) || isSymbol(result)) return result;
410
- throw TypeError$d("Can't convert object to primitive value");
410
+ throw $TypeError$9("Can't convert object to primitive value");
411
411
  }
412
412
  if (pref === undefined) pref = "number";
413
413
  return ordinaryToPrimitive(input, pref);
@@ -446,13 +446,13 @@
446
446
  writable: false
447
447
  }).prototype != 42;
448
448
  }));
449
- var String$3 = global_1.String;
450
- var TypeError$c = global_1.TypeError;
449
+ var $String$2 = String;
450
+ var $TypeError$8 = TypeError;
451
451
  var anObject = function(argument) {
452
452
  if (isObject(argument)) return argument;
453
- throw TypeError$c(String$3(argument) + " is not an object");
453
+ throw $TypeError$8($String$2(argument) + " is not an object");
454
454
  };
455
- var TypeError$b = global_1.TypeError;
455
+ var $TypeError$7 = TypeError;
456
456
  var $defineProperty$1 = Object.defineProperty;
457
457
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
458
458
  var ENUMERABLE = "enumerable";
@@ -481,7 +481,7 @@
481
481
  if (ie8DomDefine) try {
482
482
  return $defineProperty$1(O, P, Attributes);
483
483
  } catch (error) {}
484
- if ("get" in Attributes || "set" in Attributes) throw TypeError$b("Accessors not supported");
484
+ if ("get" in Attributes || "set" in Attributes) throw $TypeError$7("Accessors not supported");
485
485
  if ("value" in Attributes) O[P] = Attributes.value;
486
486
  return O;
487
487
  };
@@ -519,7 +519,7 @@
519
519
  };
520
520
  var hiddenKeys$1 = {};
521
521
  var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
522
- var TypeError$a = global_1.TypeError;
522
+ var TypeError$3 = global_1.TypeError;
523
523
  var WeakMap = global_1.WeakMap;
524
524
  var set, get, has;
525
525
  var enforce = function(it) {
@@ -529,7 +529,7 @@
529
529
  return function(it) {
530
530
  var state;
531
531
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
532
- throw TypeError$a("Incompatible receiver, " + TYPE + " required");
532
+ throw TypeError$3("Incompatible receiver, " + TYPE + " required");
533
533
  }
534
534
  return state;
535
535
  };
@@ -540,7 +540,7 @@
540
540
  var wmhas = functionUncurryThis(store.has);
541
541
  var wmset = functionUncurryThis(store.set);
542
542
  set = function(it, metadata) {
543
- if (wmhas(store, it)) throw new TypeError$a(OBJECT_ALREADY_INITIALIZED);
543
+ if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
544
544
  metadata.facade = it;
545
545
  wmset(store, it, metadata);
546
546
  return metadata;
@@ -555,7 +555,7 @@
555
555
  var STATE = sharedKey("state");
556
556
  hiddenKeys$1[STATE] = true;
557
557
  set = function(it, metadata) {
558
- if (hasOwnProperty_1(it, STATE)) throw new TypeError$a(OBJECT_ALREADY_INITIALIZED);
558
+ if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
559
559
  metadata.facade = it;
560
560
  createNonEnumerableProperty(it, STATE, metadata);
561
561
  return metadata;
@@ -592,23 +592,23 @@
592
592
  if (options && options.getter) name = "get " + name;
593
593
  if (options && options.setter) name = "set " + name;
594
594
  if (!hasOwnProperty_1(value, "name") || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
595
- defineProperty(value, "name", {
595
+ if (descriptors) defineProperty(value, "name", {
596
596
  value: name,
597
597
  configurable: true
598
- });
598
+ }); else value.name = name;
599
599
  }
600
600
  if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, "arity") && value.length !== options.arity) {
601
601
  defineProperty(value, "length", {
602
602
  value: options.arity
603
603
  });
604
604
  }
605
- if (options && hasOwnProperty_1(options, "constructor") && options.constructor) {
606
- if (descriptors) try {
607
- defineProperty(value, "prototype", {
605
+ try {
606
+ if (options && hasOwnProperty_1(options, "constructor") && options.constructor) {
607
+ if (descriptors) defineProperty(value, "prototype", {
608
608
  writable: false
609
609
  });
610
- } catch (error) {}
611
- } else value.prototype = undefined;
610
+ } else if (value.prototype) value.prototype = undefined;
611
+ } catch (error) {}
612
612
  var state = enforceInternalState(value);
613
613
  if (!hasOwnProperty_1(state, "source")) {
614
614
  state.source = TEMPLATE.join(typeof name == "string" ? name : "");
@@ -627,8 +627,15 @@
627
627
  if (options.global) {
628
628
  if (simple) O[key] = value; else defineGlobalProperty(key, value);
629
629
  } else {
630
- if (!options.unsafe) delete O[key]; else if (O[key]) simple = true;
631
- if (simple) O[key] = value; else createNonEnumerableProperty(O, key, value);
630
+ try {
631
+ if (!options.unsafe) delete O[key]; else if (O[key]) simple = true;
632
+ } catch (error) {}
633
+ if (simple) O[key] = value; else objectDefineProperty.f(O, key, {
634
+ value: value,
635
+ enumerable: false,
636
+ configurable: !options.nonConfigurable,
637
+ writable: !options.nonWritable
638
+ });
632
639
  }
633
640
  return O;
634
641
  };
@@ -763,7 +770,7 @@
763
770
  test[TO_STRING_TAG$3] = "z";
764
771
  var toStringTagSupport = String(test) === "[object z]";
765
772
  var TO_STRING_TAG$2 = wellKnownSymbol("toStringTag");
766
- var Object$2 = global_1.Object;
773
+ var $Object$1 = Object;
767
774
  var CORRECT_ARGUMENTS = classofRaw(function() {
768
775
  return arguments;
769
776
  }()) == "Arguments";
@@ -774,22 +781,22 @@
774
781
  };
775
782
  var classof = toStringTagSupport ? classofRaw : function(it) {
776
783
  var O, tag, result;
777
- return it === undefined ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = Object$2(it), TO_STRING_TAG$2)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) == "Object" && isCallable(O.callee) ? "Arguments" : result;
784
+ return it === undefined ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$2)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) == "Object" && isCallable(O.callee) ? "Arguments" : result;
778
785
  };
779
- var String$2 = global_1.String;
786
+ var $String$1 = String;
780
787
  var toString_1 = function(argument) {
781
788
  if (classof(argument) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
782
- return String$2(argument);
789
+ return $String$1(argument);
783
790
  };
784
791
  var MATCH$1 = wellKnownSymbol("match");
785
792
  var isRegexp = function(it) {
786
793
  var isRegExp;
787
794
  return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == "RegExp");
788
795
  };
789
- var TypeError$9 = global_1.TypeError;
796
+ var $TypeError$6 = TypeError;
790
797
  var notARegexp = function(it) {
791
798
  if (isRegexp(it)) {
792
- throw TypeError$9("The method doesn't accept regular expressions");
799
+ throw $TypeError$6("The method doesn't accept regular expressions");
793
800
  }
794
801
  return it;
795
802
  };
@@ -835,6 +842,12 @@
835
842
  var isArray$1 = Array.isArray || function isArray(argument) {
836
843
  return classofRaw(argument) == "Array";
837
844
  };
845
+ var $TypeError$5 = TypeError;
846
+ var MAX_SAFE_INTEGER = 9007199254740991;
847
+ var doesNotExceedSafeInteger = function(it) {
848
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$5("Maximum allowed index exceeded");
849
+ return it;
850
+ };
838
851
  var createProperty = function(object, key, value) {
839
852
  var propertyKey = toPropertyKey(key);
840
853
  if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value)); else object[propertyKey] = value;
@@ -876,17 +889,17 @@
876
889
  })) || called;
877
890
  })) ? isConstructorLegacy : isConstructorModern;
878
891
  var SPECIES$3 = wellKnownSymbol("species");
879
- var Array$3 = global_1.Array;
892
+ var $Array$2 = Array;
880
893
  var arraySpeciesConstructor = function(originalArray) {
881
894
  var C;
882
895
  if (isArray$1(originalArray)) {
883
896
  C = originalArray.constructor;
884
- if (isConstructor(C) && (C === Array$3 || isArray$1(C.prototype))) C = undefined; else if (isObject(C)) {
897
+ if (isConstructor(C) && (C === $Array$2 || isArray$1(C.prototype))) C = undefined; else if (isObject(C)) {
885
898
  C = C[SPECIES$3];
886
899
  if (C === null) C = undefined;
887
900
  }
888
901
  }
889
- return C === undefined ? Array$3 : C;
902
+ return C === undefined ? $Array$2 : C;
890
903
  };
891
904
  var arraySpeciesCreate = function(originalArray, length) {
892
905
  return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
@@ -905,9 +918,6 @@
905
918
  }));
906
919
  };
907
920
  var IS_CONCAT_SPREADABLE = wellKnownSymbol("isConcatSpreadable");
908
- var MAX_SAFE_INTEGER = 9007199254740991;
909
- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = "Maximum allowed index exceeded";
910
- var TypeError$8 = global_1.TypeError;
911
921
  var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails((function() {
912
922
  var array = [];
913
923
  array[IS_CONCAT_SPREADABLE] = false;
@@ -935,10 +945,10 @@
935
945
  E = i === -1 ? O : arguments[i];
936
946
  if (isConcatSpreadable(E)) {
937
947
  len = lengthOfArrayLike(E);
938
- if (n + len > MAX_SAFE_INTEGER) throw TypeError$8(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
948
+ doesNotExceedSafeInteger(n + len);
939
949
  for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
940
950
  } else {
941
- if (n >= MAX_SAFE_INTEGER) throw TypeError$8(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
951
+ doesNotExceedSafeInteger(n + 1);
942
952
  createProperty(A, n++, E);
943
953
  }
944
954
  }
@@ -1021,13 +1031,13 @@
1021
1031
  } else result = NullProtoObject();
1022
1032
  return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
1023
1033
  };
1024
- var Array$2 = global_1.Array;
1034
+ var $Array$1 = Array;
1025
1035
  var max = Math.max;
1026
1036
  var arraySliceSimple = function(O, start, end) {
1027
1037
  var length = lengthOfArrayLike(O);
1028
1038
  var k = toAbsoluteIndex(start, length);
1029
1039
  var fin = toAbsoluteIndex(end === undefined ? length : end, length);
1030
- var result = Array$2(max(fin - k, 0));
1040
+ var result = $Array$1(max(fin - k, 0));
1031
1041
  for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
1032
1042
  result.length = n;
1033
1043
  return result;
@@ -1151,11 +1161,11 @@
1151
1161
  var SYMBOL = "Symbol";
1152
1162
  var PROTOTYPE = "prototype";
1153
1163
  var setInternalState$3 = internalState.set;
1154
- var getInternalState$2 = internalState.getterFor(SYMBOL);
1164
+ var getInternalState$3 = internalState.getterFor(SYMBOL);
1155
1165
  var ObjectPrototype$2 = Object[PROTOTYPE];
1156
1166
  var $Symbol = global_1.Symbol;
1157
1167
  var SymbolPrototype$1 = $Symbol && $Symbol[PROTOTYPE];
1158
- var TypeError$7 = global_1.TypeError;
1168
+ var TypeError$2 = global_1.TypeError;
1159
1169
  var QObject = global_1.QObject;
1160
1170
  var nativeGetOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1161
1171
  var nativeDefineProperty = objectDefineProperty.f;
@@ -1260,7 +1270,7 @@
1260
1270
  };
1261
1271
  if (!nativeSymbol) {
1262
1272
  $Symbol = function Symbol() {
1263
- if (objectIsPrototypeOf(SymbolPrototype$1, this)) throw TypeError$7("Symbol is not a constructor");
1273
+ if (objectIsPrototypeOf(SymbolPrototype$1, this)) throw TypeError$2("Symbol is not a constructor");
1264
1274
  var description = !arguments.length || arguments[0] === undefined ? undefined : toString_1(arguments[0]);
1265
1275
  var tag = uid(description);
1266
1276
  var setter = function(value) {
@@ -1276,7 +1286,7 @@
1276
1286
  };
1277
1287
  SymbolPrototype$1 = $Symbol[PROTOTYPE];
1278
1288
  defineBuiltIn(SymbolPrototype$1, "toString", (function toString() {
1279
- return getInternalState$2(this).tag;
1289
+ return getInternalState$3(this).tag;
1280
1290
  }));
1281
1291
  defineBuiltIn($Symbol, "withoutSetter", (function(description) {
1282
1292
  return wrap(uid(description), description);
@@ -1294,7 +1304,7 @@
1294
1304
  nativeDefineProperty(SymbolPrototype$1, "description", {
1295
1305
  configurable: true,
1296
1306
  get: function description() {
1297
- return getInternalState$2(this).description;
1307
+ return getInternalState$3(this).description;
1298
1308
  }
1299
1309
  });
1300
1310
  {
@@ -1534,16 +1544,16 @@
1534
1544
  return Object.getPrototypeOf(new F) !== F.prototype;
1535
1545
  }));
1536
1546
  var IE_PROTO = sharedKey("IE_PROTO");
1537
- var Object$1 = global_1.Object;
1538
- var ObjectPrototype$1 = Object$1.prototype;
1539
- var objectGetPrototypeOf = correctPrototypeGetter ? Object$1.getPrototypeOf : function(O) {
1547
+ var $Object = Object;
1548
+ var ObjectPrototype$1 = $Object.prototype;
1549
+ var objectGetPrototypeOf = correctPrototypeGetter ? $Object.getPrototypeOf : function(O) {
1540
1550
  var object = toObject(O);
1541
1551
  if (hasOwnProperty_1(object, IE_PROTO)) return object[IE_PROTO];
1542
1552
  var constructor = object.constructor;
1543
1553
  if (isCallable(constructor) && object instanceof constructor) {
1544
1554
  return constructor.prototype;
1545
1555
  }
1546
- return object instanceof Object$1 ? ObjectPrototype$1 : null;
1556
+ return object instanceof $Object ? ObjectPrototype$1 : null;
1547
1557
  };
1548
1558
  var ITERATOR$4 = wellKnownSymbol("iterator");
1549
1559
  var BUGGY_SAFARI_ITERATORS$1 = false;
@@ -1583,11 +1593,11 @@
1583
1593
  iterators[TO_STRING_TAG] = returnThis$1;
1584
1594
  return IteratorConstructor;
1585
1595
  };
1586
- var String$1 = global_1.String;
1587
- var TypeError$6 = global_1.TypeError;
1596
+ var $String = String;
1597
+ var $TypeError$4 = TypeError;
1588
1598
  var aPossiblePrototype = function(argument) {
1589
1599
  if (typeof argument == "object" || isCallable(argument)) return argument;
1590
- throw TypeError$6("Can't set " + String$1(argument) + " as a prototype");
1600
+ throw $TypeError$4("Can't set " + $String(argument) + " as a prototype");
1591
1601
  };
1592
1602
  var objectSetPrototypeOf = Object.setPrototypeOf || ("__proto__" in {} ? function() {
1593
1603
  var CORRECT_SETTER = false;
@@ -1698,7 +1708,7 @@
1698
1708
  var charAt = stringMultibyte.charAt;
1699
1709
  var STRING_ITERATOR = "String Iterator";
1700
1710
  var setInternalState$2 = internalState.set;
1701
- var getInternalState$1 = internalState.getterFor(STRING_ITERATOR);
1711
+ var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
1702
1712
  defineIterator(String, "String", (function(iterated) {
1703
1713
  setInternalState$2(this, {
1704
1714
  type: STRING_ITERATOR,
@@ -1706,7 +1716,7 @@
1706
1716
  index: 0
1707
1717
  });
1708
1718
  }), (function next() {
1709
- var state = getInternalState$1(this);
1719
+ var state = getInternalState$2(this);
1710
1720
  var string = state.string;
1711
1721
  var index = state.index;
1712
1722
  var point;
@@ -1756,13 +1766,13 @@
1756
1766
  var getIteratorMethod = function(it) {
1757
1767
  if (it != undefined) return getMethod(it, ITERATOR$1) || getMethod(it, "@@iterator") || iterators[classof(it)];
1758
1768
  };
1759
- var TypeError$5 = global_1.TypeError;
1769
+ var $TypeError$3 = TypeError;
1760
1770
  var getIterator = function(argument, usingIterator) {
1761
1771
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
1762
1772
  if (aCallable(iteratorMethod)) return anObject(functionCall(iteratorMethod, argument));
1763
- throw TypeError$5(tryToString(argument) + " is not iterable");
1773
+ throw $TypeError$3(tryToString(argument) + " is not iterable");
1764
1774
  };
1765
- var Array$1 = global_1.Array;
1775
+ var $Array = Array;
1766
1776
  var arrayFrom = function from(arrayLike) {
1767
1777
  var O = toObject(arrayLike);
1768
1778
  var IS_CONSTRUCTOR = isConstructor(this);
@@ -1773,7 +1783,7 @@
1773
1783
  var iteratorMethod = getIteratorMethod(O);
1774
1784
  var index = 0;
1775
1785
  var length, result, step, iterator, next, value;
1776
- if (iteratorMethod && !(this == Array$1 && isArrayIteratorMethod(iteratorMethod))) {
1786
+ if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
1777
1787
  iterator = getIterator(O, iteratorMethod);
1778
1788
  next = iterator.next;
1779
1789
  result = IS_CONSTRUCTOR ? new this : [];
@@ -1783,7 +1793,7 @@
1783
1793
  }
1784
1794
  } else {
1785
1795
  length = lengthOfArrayLike(O);
1786
- result = IS_CONSTRUCTOR ? new this(length) : Array$1(length);
1796
+ result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
1787
1797
  for (;length > index; index++) {
1788
1798
  value = mapping ? mapfn(O[index], index) : O[index];
1789
1799
  createProperty(result, index, value);
@@ -1844,6 +1854,8 @@
1844
1854
  path.Array.from;
1845
1855
  var arrayBufferNative = typeof ArrayBuffer != "undefined" && typeof DataView != "undefined";
1846
1856
  var defineProperty$3 = objectDefineProperty.f;
1857
+ var enforceInternalState = internalState.enforce;
1858
+ var getInternalState$1 = internalState.get;
1847
1859
  var Int8Array$1 = global_1.Int8Array;
1848
1860
  var Int8ArrayPrototype = Int8Array$1 && Int8Array$1.prototype;
1849
1861
  var Uint8ClampedArray = global_1.Uint8ClampedArray;
@@ -1851,10 +1863,10 @@
1851
1863
  var TypedArray = Int8Array$1 && objectGetPrototypeOf(Int8Array$1);
1852
1864
  var TypedArrayPrototype = Int8ArrayPrototype && objectGetPrototypeOf(Int8ArrayPrototype);
1853
1865
  var ObjectPrototype = Object.prototype;
1854
- var TypeError$4 = global_1.TypeError;
1866
+ var TypeError$1 = global_1.TypeError;
1855
1867
  var TO_STRING_TAG = wellKnownSymbol("toStringTag");
1856
1868
  var TYPED_ARRAY_TAG = uid("TYPED_ARRAY_TAG");
1857
- var TYPED_ARRAY_CONSTRUCTOR$1 = uid("TYPED_ARRAY_CONSTRUCTOR");
1869
+ var TYPED_ARRAY_CONSTRUCTOR = "TypedArrayConstructor";
1858
1870
  var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== "Opera";
1859
1871
  var TYPED_ARRAY_TAG_REQUIRED = false;
1860
1872
  var NAME, Constructor, Prototype;
@@ -1878,6 +1890,12 @@
1878
1890
  var klass = classof(it);
1879
1891
  return klass === "DataView" || hasOwnProperty_1(TypedArrayConstructorsList, klass) || hasOwnProperty_1(BigIntArrayConstructorsList, klass);
1880
1892
  };
1893
+ var getTypedArrayConstructor$1 = function(it) {
1894
+ var proto = objectGetPrototypeOf(it);
1895
+ if (!isObject(proto)) return;
1896
+ var state = getInternalState$1(proto);
1897
+ return state && hasOwnProperty_1(state, TYPED_ARRAY_CONSTRUCTOR) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor$1(proto);
1898
+ };
1881
1899
  var isTypedArray = function(it) {
1882
1900
  if (!isObject(it)) return false;
1883
1901
  var klass = classof(it);
@@ -1885,11 +1903,11 @@
1885
1903
  };
1886
1904
  var aTypedArray$1 = function(it) {
1887
1905
  if (isTypedArray(it)) return it;
1888
- throw TypeError$4("Target is not a typed array");
1906
+ throw TypeError$1("Target is not a typed array");
1889
1907
  };
1890
1908
  var aTypedArrayConstructor$1 = function(C) {
1891
1909
  if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
1892
- throw TypeError$4(tryToString(C) + " is not a typed array constructor");
1910
+ throw TypeError$1(tryToString(C) + " is not a typed array constructor");
1893
1911
  };
1894
1912
  var exportTypedArrayMethod$1 = function(KEY, property, forced, options) {
1895
1913
  if (!descriptors) return;
@@ -1933,16 +1951,16 @@
1933
1951
  for (NAME in TypedArrayConstructorsList) {
1934
1952
  Constructor = global_1[NAME];
1935
1953
  Prototype = Constructor && Constructor.prototype;
1936
- if (Prototype) createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR$1, Constructor); else NATIVE_ARRAY_BUFFER_VIEWS = false;
1954
+ if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor; else NATIVE_ARRAY_BUFFER_VIEWS = false;
1937
1955
  }
1938
1956
  for (NAME in BigIntArrayConstructorsList) {
1939
1957
  Constructor = global_1[NAME];
1940
1958
  Prototype = Constructor && Constructor.prototype;
1941
- if (Prototype) createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR$1, Constructor);
1959
+ if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
1942
1960
  }
1943
1961
  if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
1944
1962
  TypedArray = function TypedArray() {
1945
- throw TypeError$4("Incorrect invocation");
1963
+ throw TypeError$1("Incorrect invocation");
1946
1964
  };
1947
1965
  if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
1948
1966
  if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
@@ -1970,21 +1988,21 @@
1970
1988
  }
1971
1989
  var arrayBufferViewCore = {
1972
1990
  NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,
1973
- TYPED_ARRAY_CONSTRUCTOR: TYPED_ARRAY_CONSTRUCTOR$1,
1974
1991
  TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG,
1975
1992
  aTypedArray: aTypedArray$1,
1976
1993
  aTypedArrayConstructor: aTypedArrayConstructor$1,
1977
1994
  exportTypedArrayMethod: exportTypedArrayMethod$1,
1978
1995
  exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
1996
+ getTypedArrayConstructor: getTypedArrayConstructor$1,
1979
1997
  isView: isView,
1980
1998
  isTypedArray: isTypedArray,
1981
1999
  TypedArray: TypedArray,
1982
2000
  TypedArrayPrototype: TypedArrayPrototype
1983
2001
  };
1984
- var TypeError$3 = global_1.TypeError;
2002
+ var $TypeError$2 = TypeError;
1985
2003
  var aConstructor = function(argument) {
1986
2004
  if (isConstructor(argument)) return argument;
1987
- throw TypeError$3(tryToString(argument) + " is not a constructor");
2005
+ throw $TypeError$2(tryToString(argument) + " is not a constructor");
1988
2006
  };
1989
2007
  var SPECIES$1 = wellKnownSymbol("species");
1990
2008
  var speciesConstructor = function(O, defaultConstructor) {
@@ -1992,10 +2010,10 @@
1992
2010
  var S;
1993
2011
  return C === undefined || (S = anObject(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
1994
2012
  };
1995
- var TYPED_ARRAY_CONSTRUCTOR = arrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
1996
2013
  var aTypedArrayConstructor = arrayBufferViewCore.aTypedArrayConstructor;
2014
+ var getTypedArrayConstructor = arrayBufferViewCore.getTypedArrayConstructor;
1997
2015
  var typedArraySpeciesConstructor = function(originalArray) {
1998
- return aTypedArrayConstructor(speciesConstructor(originalArray, originalArray[TYPED_ARRAY_CONSTRUCTOR]));
2016
+ return aTypedArrayConstructor(speciesConstructor(originalArray, getTypedArrayConstructor(originalArray)));
1999
2017
  };
2000
2018
  var aTypedArray = arrayBufferViewCore.aTypedArray;
2001
2019
  var exportTypedArrayMethod = arrayBufferViewCore.exportTypedArrayMethod;
@@ -2187,7 +2205,7 @@
2187
2205
  internalMetadata.fastKey;
2188
2206
  internalMetadata.getWeakData;
2189
2207
  internalMetadata.onFreeze;
2190
- var TypeError$2 = global_1.TypeError;
2208
+ var $TypeError$1 = TypeError;
2191
2209
  var Result = function(stopped, result) {
2192
2210
  this.stopped = stopped;
2193
2211
  this.result = result;
@@ -2196,6 +2214,7 @@
2196
2214
  var iterate = function(iterable, unboundFunction, options) {
2197
2215
  var that = options && options.that;
2198
2216
  var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2217
+ var IS_RECORD = !!(options && options.IS_RECORD);
2199
2218
  var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2200
2219
  var INTERRUPTED = !!(options && options.INTERRUPTED);
2201
2220
  var fn = functionBindContext(unboundFunction, that);
@@ -2211,11 +2230,13 @@
2211
2230
  }
2212
2231
  return INTERRUPTED ? fn(value, stop) : fn(value);
2213
2232
  };
2214
- if (IS_ITERATOR) {
2233
+ if (IS_RECORD) {
2234
+ iterator = iterable.iterator;
2235
+ } else if (IS_ITERATOR) {
2215
2236
  iterator = iterable;
2216
2237
  } else {
2217
2238
  iterFn = getIteratorMethod(iterable);
2218
- if (!iterFn) throw TypeError$2(tryToString(iterable) + " is not iterable");
2239
+ if (!iterFn) throw $TypeError$1(tryToString(iterable) + " is not iterable");
2219
2240
  if (isArrayIteratorMethod(iterFn)) {
2220
2241
  for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2221
2242
  result = callFn(iterable[index]);
@@ -2225,7 +2246,7 @@
2225
2246
  }
2226
2247
  iterator = getIterator(iterable, iterFn);
2227
2248
  }
2228
- next = iterator.next;
2249
+ next = IS_RECORD ? iterable.next : iterator.next;
2229
2250
  while (!(step = functionCall(next, iterator)).done) {
2230
2251
  try {
2231
2252
  result = callFn(step.value);
@@ -2236,10 +2257,10 @@
2236
2257
  }
2237
2258
  return new Result(false);
2238
2259
  };
2239
- var TypeError$1 = global_1.TypeError;
2260
+ var $TypeError = TypeError;
2240
2261
  var anInstance = function(it, Prototype) {
2241
2262
  if (objectIsPrototypeOf(Prototype, it)) return it;
2242
- throw TypeError$1("Incorrect invocation");
2263
+ throw $TypeError("Incorrect invocation");
2243
2264
  };
2244
2265
  var inheritIfRequired = function($this, dummy, Wrapper) {
2245
2266
  var NewTarget, NewTargetPrototype;
@@ -2776,10 +2797,10 @@
2776
2797
  return Buffer.from(a.buffer, a.byteOffset, a.byteLength).toString("utf-8");
2777
2798
  }
2778
2799
  function u(a) {
2779
- var c = URL.createObjectURL(new Blob([ a ], {
2780
- type: "text/plain;charset=UTF-8"
2781
- }));
2782
2800
  try {
2801
+ var c = URL.createObjectURL(new Blob([ a ], {
2802
+ type: "text/plain;charset=UTF-8"
2803
+ }));
2783
2804
  var f = new XMLHttpRequest;
2784
2805
  f.open("GET", c, !1);
2785
2806
  f.send();
@@ -2787,7 +2808,7 @@
2787
2808
  } catch (e) {
2788
2809
  return q(a);
2789
2810
  } finally {
2790
- URL.revokeObjectURL(c);
2811
+ c && URL.revokeObjectURL(c);
2791
2812
  }
2792
2813
  }
2793
2814
  function q(a) {
@@ -3591,7 +3612,7 @@
3591
3612
  exports.default = SuperTokensLock;
3592
3613
  }));
3593
3614
  var Lock = unwrapExports(browserTabsLock);
3594
- var version = "1.22.1";
3615
+ var version = "1.22.4";
3595
3616
  var DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS = 60;
3596
3617
  var DEFAULT_POPUP_CONFIG_OPTIONS = {
3597
3618
  timeoutInSeconds: DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS
@@ -4622,8 +4643,12 @@
4622
4643
  }
4623
4644
  esCookie_5(key, JSON.stringify(value), cookieAttributes);
4624
4645
  },
4625
- remove: function(key) {
4626
- esCookie_6(key);
4646
+ remove: function(key, options) {
4647
+ var cookieAttributes = {};
4648
+ if (options === null || options === void 0 ? void 0 : options.cookieDomain) {
4649
+ cookieAttributes.domain = options.cookieDomain;
4650
+ }
4651
+ esCookie_6(key, cookieAttributes);
4627
4652
  }
4628
4653
  };
4629
4654
  var LEGACY_PREFIX = "_legacy_";
@@ -4648,9 +4673,14 @@
4648
4673
  esCookie_5("".concat(LEGACY_PREFIX).concat(key), JSON.stringify(value), cookieAttributes);
4649
4674
  CookieStorage.save(key, value, options);
4650
4675
  },
4651
- remove: function(key) {
4652
- CookieStorage.remove(key);
4653
- CookieStorage.remove("".concat(LEGACY_PREFIX).concat(key));
4676
+ remove: function(key, options) {
4677
+ var cookieAttributes = {};
4678
+ if (options === null || options === void 0 ? void 0 : options.cookieDomain) {
4679
+ cookieAttributes.domain = options.cookieDomain;
4680
+ }
4681
+ esCookie_6(key, cookieAttributes);
4682
+ CookieStorage.remove(key, options);
4683
+ CookieStorage.remove("".concat(LEGACY_PREFIX).concat(key), options);
4654
4684
  }
4655
4685
  };
4656
4686
  var SessionStorage = {
@@ -4863,23 +4893,42 @@
4863
4893
  options.auth0Client;
4864
4894
  options.authorizeTimeoutInSeconds;
4865
4895
  options.cacheLocation;
4896
+ options.cache;
4866
4897
  options.client_id;
4867
4898
  options.domain;
4868
4899
  options.issuer;
4869
4900
  options.leeway;
4870
4901
  options.max_age;
4902
+ options.nowProvider;
4871
4903
  options.redirect_uri;
4872
4904
  options.scope;
4873
4905
  options.useRefreshTokens;
4906
+ options.useRefreshTokensFallback;
4874
4907
  options.useCookiesForTransactions;
4875
4908
  options.useFormData;
4876
- var customParams = __rest(options, [ "advancedOptions", "audience", "auth0Client", "authorizeTimeoutInSeconds", "cacheLocation", "client_id", "domain", "issuer", "leeway", "max_age", "redirect_uri", "scope", "useRefreshTokens", "useCookiesForTransactions", "useFormData" ]);
4909
+ var customParams = __rest(options, [ "advancedOptions", "audience", "auth0Client", "authorizeTimeoutInSeconds", "cacheLocation", "cache", "client_id", "domain", "issuer", "leeway", "max_age", "nowProvider", "redirect_uri", "scope", "useRefreshTokens", "useRefreshTokensFallback", "useCookiesForTransactions", "useFormData" ]);
4877
4910
  return customParams;
4878
4911
  };
4879
4912
  var Auth0Client = function() {
4880
4913
  function Auth0Client(options) {
4914
+ var _this = this;
4881
4915
  var _a, _b;
4882
4916
  this.options = options;
4917
+ this._releaseLockOnPageHide = function() {
4918
+ return __awaiter(_this, void 0, void 0, (function() {
4919
+ return __generator(this, (function(_a) {
4920
+ switch (_a.label) {
4921
+ case 0:
4922
+ return [ 4, lock.releaseLock(GET_TOKEN_SILENTLY_LOCK_KEY) ];
4923
+
4924
+ case 1:
4925
+ _a.sent();
4926
+ window.removeEventListener("pagehide", this._releaseLockOnPageHide);
4927
+ return [ 2 ];
4928
+ }
4929
+ }));
4930
+ }));
4931
+ };
4883
4932
  typeof window !== "undefined" && validateCrypto();
4884
4933
  if (options.cache && options.cacheLocation) {
4885
4934
  console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`.");
@@ -4988,7 +5037,9 @@
4988
5037
  cookieDomain: this.options.cookieDomain
4989
5038
  });
4990
5039
  } else {
4991
- this.cookieStorage.remove(this.orgHintCookieName);
5040
+ this.cookieStorage.remove(this.orgHintCookieName, {
5041
+ cookieDomain: this.options.cookieDomain
5042
+ });
4992
5043
  }
4993
5044
  };
4994
5045
  Auth0Client.prototype.buildAuthorizeUrl = function(options) {
@@ -5346,6 +5397,7 @@
5346
5397
 
5347
5398
  case 4:
5348
5399
  _b.trys.push([ 4, , 12, 14 ]);
5400
+ window.addEventListener("pagehide", this._releaseLockOnPageHide);
5349
5401
  if (!!ignoreCache) return [ 3, 6 ];
5350
5402
  return [ 4, this._getEntryFromCache({
5351
5403
  scope: getTokenOptions.scope,
@@ -5407,6 +5459,7 @@
5407
5459
 
5408
5460
  case 13:
5409
5461
  _b.sent();
5462
+ window.removeEventListener("pagehide", this._releaseLockOnPageHide);
5410
5463
  return [ 7 ];
5411
5464
 
5412
5465
  case 14:
@@ -5492,8 +5545,12 @@
5492
5545
  throw new Error("It is invalid to set both the `federated` and `localOnly` options to `true`");
5493
5546
  }
5494
5547
  var postCacheClear = function() {
5495
- _this.cookieStorage.remove(_this.orgHintCookieName);
5496
- _this.cookieStorage.remove(_this.isAuthenticatedCookieName);
5548
+ _this.cookieStorage.remove(_this.orgHintCookieName, {
5549
+ cookieDomain: _this.options.cookieDomain
5550
+ });
5551
+ _this.cookieStorage.remove(_this.isAuthenticatedCookieName, {
5552
+ cookieDomain: _this.options.cookieDomain
5553
+ });
5497
5554
  if (localOnly) {
5498
5555
  return;
5499
5556
  }