@dereekb/util 13.22.0 → 13.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { symmetricDifference } from 'extra-set';
2
2
  import { BaseError } from 'make-error';
3
3
 
4
- function _array_like_to_array$B(arr, len) {
4
+ function _array_like_to_array$C(arr, len) {
5
5
  if (len == null || len > arr.length) len = arr.length;
6
6
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7
7
  return arr2;
8
8
  }
9
9
  function _array_without_holes$n(arr) {
10
- if (Array.isArray(arr)) return _array_like_to_array$B(arr);
10
+ if (Array.isArray(arr)) return _array_like_to_array$C(arr);
11
11
  }
12
12
  function _iterable_to_array$n(iter) {
13
13
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -16,19 +16,19 @@ function _non_iterable_spread$n() {
16
16
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17
17
  }
18
18
  function _to_consumable_array$n(arr) {
19
- return _array_without_holes$n(arr) || _iterable_to_array$n(arr) || _unsupported_iterable_to_array$B(arr) || _non_iterable_spread$n();
19
+ return _array_without_holes$n(arr) || _iterable_to_array$n(arr) || _unsupported_iterable_to_array$C(arr) || _non_iterable_spread$n();
20
20
  }
21
- function _type_of$m(obj) {
21
+ function _type_of$n(obj) {
22
22
  "@swc/helpers - typeof";
23
23
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
24
24
  }
25
- function _unsupported_iterable_to_array$B(o, minLen) {
25
+ function _unsupported_iterable_to_array$C(o, minLen) {
26
26
  if (!o) return;
27
- if (typeof o === "string") return _array_like_to_array$B(o, minLen);
27
+ if (typeof o === "string") return _array_like_to_array$C(o, minLen);
28
28
  var n = Object.prototype.toString.call(o).slice(8, -1);
29
29
  if (n === "Object" && o.constructor) n = o.constructor.name;
30
30
  if (n === "Map" || n === "Set") return Array.from(n);
31
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$B(o, minLen);
31
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$C(o, minLen);
32
32
  }
33
33
  // MARK: Functions
34
34
  /**
@@ -124,7 +124,7 @@ function _unsupported_iterable_to_array$B(o, minLen) {
124
124
  var result;
125
125
  if (typeof values === 'string') {
126
126
  result = treatStringAsIterable;
127
- } else if (values != null && (typeof values === "undefined" ? "undefined" : _type_of$m(values)) === 'object' && Symbol.iterator in values) {
127
+ } else if (values != null && (typeof values === "undefined" ? "undefined" : _type_of$n(values)) === 'object' && Symbol.iterator in values) {
128
128
  result = true;
129
129
  } else {
130
130
  result = false;
@@ -411,13 +411,13 @@ function _unsupported_iterable_to_array$B(o, minLen) {
411
411
  return result;
412
412
  }
413
413
 
414
- function _array_like_to_array$A(arr, len) {
414
+ function _array_like_to_array$B(arr, len) {
415
415
  if (len == null || len > arr.length) len = arr.length;
416
416
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
417
417
  return arr2;
418
418
  }
419
419
  function _array_without_holes$m(arr) {
420
- if (Array.isArray(arr)) return _array_like_to_array$A(arr);
420
+ if (Array.isArray(arr)) return _array_like_to_array$B(arr);
421
421
  }
422
422
  function _iterable_to_array$m(iter) {
423
423
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -426,15 +426,15 @@ function _non_iterable_spread$m() {
426
426
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
427
427
  }
428
428
  function _to_consumable_array$m(arr) {
429
- return _array_without_holes$m(arr) || _iterable_to_array$m(arr) || _unsupported_iterable_to_array$A(arr) || _non_iterable_spread$m();
429
+ return _array_without_holes$m(arr) || _iterable_to_array$m(arr) || _unsupported_iterable_to_array$B(arr) || _non_iterable_spread$m();
430
430
  }
431
- function _unsupported_iterable_to_array$A(o, minLen) {
431
+ function _unsupported_iterable_to_array$B(o, minLen) {
432
432
  if (!o) return;
433
- if (typeof o === "string") return _array_like_to_array$A(o, minLen);
433
+ if (typeof o === "string") return _array_like_to_array$B(o, minLen);
434
434
  var n = Object.prototype.toString.call(o).slice(8, -1);
435
435
  if (n === "Object" && o.constructor) n = o.constructor.name;
436
436
  if (n === "Map" || n === "Set") return Array.from(n);
437
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$A(o, minLen);
437
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$B(o, minLen);
438
438
  }
439
439
  // MARK: Functions
440
440
  /**
@@ -885,13 +885,13 @@ function _unsupported_iterable_to_array$A(o, minLen) {
885
885
  return readKeysSetFunction(readKey)(values);
886
886
  }
887
887
 
888
- function _array_like_to_array$z(arr, len) {
888
+ function _array_like_to_array$A(arr, len) {
889
889
  if (len == null || len > arr.length) len = arr.length;
890
890
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
891
891
  return arr2;
892
892
  }
893
893
  function _array_without_holes$l(arr) {
894
- if (Array.isArray(arr)) return _array_like_to_array$z(arr);
894
+ if (Array.isArray(arr)) return _array_like_to_array$A(arr);
895
895
  }
896
896
  function _iterable_to_array$l(iter) {
897
897
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -900,15 +900,15 @@ function _non_iterable_spread$l() {
900
900
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
901
901
  }
902
902
  function _to_consumable_array$l(arr) {
903
- return _array_without_holes$l(arr) || _iterable_to_array$l(arr) || _unsupported_iterable_to_array$z(arr) || _non_iterable_spread$l();
903
+ return _array_without_holes$l(arr) || _iterable_to_array$l(arr) || _unsupported_iterable_to_array$A(arr) || _non_iterable_spread$l();
904
904
  }
905
- function _unsupported_iterable_to_array$z(o, minLen) {
905
+ function _unsupported_iterable_to_array$A(o, minLen) {
906
906
  if (!o) return;
907
- if (typeof o === "string") return _array_like_to_array$z(o, minLen);
907
+ if (typeof o === "string") return _array_like_to_array$A(o, minLen);
908
908
  var n = Object.prototype.toString.call(o).slice(8, -1);
909
909
  if (n === "Object" && o.constructor) n = o.constructor.name;
910
910
  if (n === "Map" || n === "Set") return Array.from(n);
911
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$z(o, minLen);
911
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$A(o, minLen);
912
912
  }
913
913
  /**
914
914
  * Converts an {@link IterableOrValue} into a Set. Strings are treated as single values rather than character iterables.
@@ -1442,13 +1442,13 @@ function _unsupported_iterable_to_array$z(o, minLen) {
1442
1442
  return a && b ? a.size === b.size && setContainsAllValues(a, b, true) : a == b;
1443
1443
  }
1444
1444
 
1445
- function _array_like_to_array$y(arr, len) {
1445
+ function _array_like_to_array$z(arr, len) {
1446
1446
  if (len == null || len > arr.length) len = arr.length;
1447
1447
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1448
1448
  return arr2;
1449
1449
  }
1450
1450
  function _array_without_holes$k(arr) {
1451
- if (Array.isArray(arr)) return _array_like_to_array$y(arr);
1451
+ if (Array.isArray(arr)) return _array_like_to_array$z(arr);
1452
1452
  }
1453
1453
  function _iterable_to_array$k(iter) {
1454
1454
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -1457,15 +1457,15 @@ function _non_iterable_spread$k() {
1457
1457
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1458
1458
  }
1459
1459
  function _to_consumable_array$k(arr) {
1460
- return _array_without_holes$k(arr) || _iterable_to_array$k(arr) || _unsupported_iterable_to_array$y(arr) || _non_iterable_spread$k();
1460
+ return _array_without_holes$k(arr) || _iterable_to_array$k(arr) || _unsupported_iterable_to_array$z(arr) || _non_iterable_spread$k();
1461
1461
  }
1462
- function _unsupported_iterable_to_array$y(o, minLen) {
1462
+ function _unsupported_iterable_to_array$z(o, minLen) {
1463
1463
  if (!o) return;
1464
- if (typeof o === "string") return _array_like_to_array$y(o, minLen);
1464
+ if (typeof o === "string") return _array_like_to_array$z(o, minLen);
1465
1465
  var n = Object.prototype.toString.call(o).slice(8, -1);
1466
1466
  if (n === "Object" && o.constructor) n = o.constructor.name;
1467
1467
  if (n === "Map" || n === "Set") return Array.from(n);
1468
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$y(o, minLen);
1468
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$z(o, minLen);
1469
1469
  }
1470
1470
  /**
1471
1471
  * Inverts the output of an arbitrary boolean-returning function.
@@ -1536,7 +1536,7 @@ function _unsupported_iterable_to_array$y(o, minLen) {
1536
1536
  return arrayDecisionFunction(decision, mode)(values);
1537
1537
  }
1538
1538
 
1539
- function _define_property$n(obj, key, value) {
1539
+ function _define_property$o(obj, key, value) {
1540
1540
  if (key in obj) {
1541
1541
  Object.defineProperty(obj, key, {
1542
1542
  value: value,
@@ -1559,7 +1559,7 @@ function _object_spread$g(target) {
1559
1559
  }));
1560
1560
  }
1561
1561
  ownKeys.forEach(function(key) {
1562
- _define_property$n(target, key, source[key]);
1562
+ _define_property$o(target, key, source[key]);
1563
1563
  });
1564
1564
  }
1565
1565
  return target;
@@ -1628,7 +1628,7 @@ function objectHasKeys(obj, keys, mode) {
1628
1628
  return _object_spread$g({}, input);
1629
1629
  }
1630
1630
 
1631
- function _type_of$l(obj) {
1631
+ function _type_of$m(obj) {
1632
1632
  "@swc/helpers - typeof";
1633
1633
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1634
1634
  }
@@ -1684,7 +1684,7 @@ function _type_of$l(obj) {
1684
1684
  if (isIterable(value, true)) {
1685
1685
  result = !isEmptyIterable(value);
1686
1686
  } else if (isNotNullOrEmptyString(value)) {
1687
- result = (typeof value === "undefined" ? "undefined" : _type_of$l(value)) === 'object' ? !objectHasNoKeys(value) : true;
1687
+ result = (typeof value === "undefined" ? "undefined" : _type_of$m(value)) === 'object' ? !objectHasNoKeys(value) : true;
1688
1688
  } else {
1689
1689
  result = false;
1690
1690
  }
@@ -2109,13 +2109,13 @@ function chainMapFunction(a, b) {
2109
2109
  } : a;
2110
2110
  }
2111
2111
 
2112
- function _array_like_to_array$x(arr, len) {
2112
+ function _array_like_to_array$y(arr, len) {
2113
2113
  if (len == null || len > arr.length) len = arr.length;
2114
2114
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2115
2115
  return arr2;
2116
2116
  }
2117
2117
  function _array_without_holes$j(arr) {
2118
- if (Array.isArray(arr)) return _array_like_to_array$x(arr);
2118
+ if (Array.isArray(arr)) return _array_like_to_array$y(arr);
2119
2119
  }
2120
2120
  function _iterable_to_array$j(iter) {
2121
2121
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -2124,15 +2124,15 @@ function _non_iterable_spread$j() {
2124
2124
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2125
2125
  }
2126
2126
  function _to_consumable_array$j(arr) {
2127
- return _array_without_holes$j(arr) || _iterable_to_array$j(arr) || _unsupported_iterable_to_array$x(arr) || _non_iterable_spread$j();
2127
+ return _array_without_holes$j(arr) || _iterable_to_array$j(arr) || _unsupported_iterable_to_array$y(arr) || _non_iterable_spread$j();
2128
2128
  }
2129
- function _unsupported_iterable_to_array$x(o, minLen) {
2129
+ function _unsupported_iterable_to_array$y(o, minLen) {
2130
2130
  if (!o) return;
2131
- if (typeof o === "string") return _array_like_to_array$x(o, minLen);
2131
+ if (typeof o === "string") return _array_like_to_array$y(o, minLen);
2132
2132
  var n = Object.prototype.toString.call(o).slice(8, -1);
2133
2133
  if (n === "Object" && o.constructor) n = o.constructor.name;
2134
2134
  if (n === "Map" || n === "Set") return Array.from(n);
2135
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$x(o, minLen);
2135
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$y(o, minLen);
2136
2136
  }
2137
2137
  /**
2138
2138
  * Concatenates multiple arrays and returns only unique values.
@@ -2309,12 +2309,12 @@ function allowValueOnceFilter(inputReadKey) {
2309
2309
  return fn;
2310
2310
  }
2311
2311
 
2312
- function _class_call_check$b(instance, Constructor) {
2312
+ function _class_call_check$c(instance, Constructor) {
2313
2313
  if (!(instance instanceof Constructor)) {
2314
2314
  throw new TypeError("Cannot call a class as a function");
2315
2315
  }
2316
2316
  }
2317
- function _define_property$m(obj, key, value) {
2317
+ function _define_property$n(obj, key, value) {
2318
2318
  if (key in obj) {
2319
2319
  Object.defineProperty(obj, key, {
2320
2320
  value: value,
@@ -2327,7 +2327,7 @@ function _define_property$m(obj, key, value) {
2327
2327
  }
2328
2328
  return obj;
2329
2329
  }
2330
- function _type_of$k(obj) {
2330
+ function _type_of$l(obj) {
2331
2331
  "@swc/helpers - typeof";
2332
2332
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
2333
2333
  }
@@ -2476,7 +2476,7 @@ function readModelKey(input) {
2476
2476
  var key;
2477
2477
  if (typeof input === 'string') {
2478
2478
  key = input;
2479
- } else if (input != null && (typeof input === "undefined" ? "undefined" : _type_of$k(input)) === 'object') {
2479
+ } else if (input != null && (typeof input === "undefined" ? "undefined" : _type_of$l(input)) === 'object') {
2480
2480
  // typeof null === 'object', so guard against null before passing to `read`.
2481
2481
  key = read(input);
2482
2482
  }
@@ -2585,19 +2585,19 @@ function readModelKey(input) {
2585
2585
  *
2586
2586
  * @deprecated Use {@link UniqueModel} instead.
2587
2587
  */ var AbstractUniqueModel = function AbstractUniqueModel(template) {
2588
- _class_call_check$b(this, AbstractUniqueModel);
2589
- _define_property$m(this, "id", void 0);
2588
+ _class_call_check$c(this, AbstractUniqueModel);
2589
+ _define_property$n(this, "id", void 0);
2590
2590
  this.id = template.id;
2591
2591
  }
2592
2592
  ;
2593
2593
 
2594
- function _array_like_to_array$w(arr, len) {
2594
+ function _array_like_to_array$x(arr, len) {
2595
2595
  if (len == null || len > arr.length) len = arr.length;
2596
2596
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2597
2597
  return arr2;
2598
2598
  }
2599
2599
  function _array_without_holes$i(arr) {
2600
- if (Array.isArray(arr)) return _array_like_to_array$w(arr);
2600
+ if (Array.isArray(arr)) return _array_like_to_array$x(arr);
2601
2601
  }
2602
2602
  function _iterable_to_array$i(iter) {
2603
2603
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -2606,15 +2606,15 @@ function _non_iterable_spread$i() {
2606
2606
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2607
2607
  }
2608
2608
  function _to_consumable_array$i(arr) {
2609
- return _array_without_holes$i(arr) || _iterable_to_array$i(arr) || _unsupported_iterable_to_array$w(arr) || _non_iterable_spread$i();
2609
+ return _array_without_holes$i(arr) || _iterable_to_array$i(arr) || _unsupported_iterable_to_array$x(arr) || _non_iterable_spread$i();
2610
2610
  }
2611
- function _unsupported_iterable_to_array$w(o, minLen) {
2611
+ function _unsupported_iterable_to_array$x(o, minLen) {
2612
2612
  if (!o) return;
2613
- if (typeof o === "string") return _array_like_to_array$w(o, minLen);
2613
+ if (typeof o === "string") return _array_like_to_array$x(o, minLen);
2614
2614
  var n = Object.prototype.toString.call(o).slice(8, -1);
2615
2615
  if (n === "Object" && o.constructor) n = o.constructor.name;
2616
2616
  if (n === "Map" || n === "Set") return Array.from(n);
2617
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$w(o, minLen);
2617
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$x(o, minLen);
2618
2618
  }
2619
2619
  /**
2620
2620
  * Wraps a key reading function to ensure that empty string keys are not used in boolean key arrays.
@@ -2721,15 +2721,15 @@ function _unsupported_iterable_to_array$w(o, minLen) {
2721
2721
  return x || undefined;
2722
2722
  });
2723
2723
 
2724
- function _array_like_to_array$v(arr, len) {
2724
+ function _array_like_to_array$w(arr, len) {
2725
2725
  if (len == null || len > arr.length) len = arr.length;
2726
2726
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2727
2727
  return arr2;
2728
2728
  }
2729
2729
  function _array_without_holes$h(arr) {
2730
- if (Array.isArray(arr)) return _array_like_to_array$v(arr);
2730
+ if (Array.isArray(arr)) return _array_like_to_array$w(arr);
2731
2731
  }
2732
- function _class_call_check$a(instance, Constructor) {
2732
+ function _class_call_check$b(instance, Constructor) {
2733
2733
  if (!(instance instanceof Constructor)) {
2734
2734
  throw new TypeError("Cannot call a class as a function");
2735
2735
  }
@@ -2747,7 +2747,7 @@ function _create_class$7(Constructor, protoProps, staticProps) {
2747
2747
  if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
2748
2748
  return Constructor;
2749
2749
  }
2750
- function _define_property$l(obj, key, value) {
2750
+ function _define_property$m(obj, key, value) {
2751
2751
  if (key in obj) {
2752
2752
  Object.defineProperty(obj, key, {
2753
2753
  value: value,
@@ -2767,15 +2767,15 @@ function _non_iterable_spread$h() {
2767
2767
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2768
2768
  }
2769
2769
  function _to_consumable_array$h(arr) {
2770
- return _array_without_holes$h(arr) || _iterable_to_array$h(arr) || _unsupported_iterable_to_array$v(arr) || _non_iterable_spread$h();
2770
+ return _array_without_holes$h(arr) || _iterable_to_array$h(arr) || _unsupported_iterable_to_array$w(arr) || _non_iterable_spread$h();
2771
2771
  }
2772
- function _unsupported_iterable_to_array$v(o, minLen) {
2772
+ function _unsupported_iterable_to_array$w(o, minLen) {
2773
2773
  if (!o) return;
2774
- if (typeof o === "string") return _array_like_to_array$v(o, minLen);
2774
+ if (typeof o === "string") return _array_like_to_array$w(o, minLen);
2775
2775
  var n = Object.prototype.toString.call(o).slice(8, -1);
2776
2776
  if (n === "Object" && o.constructor) n = o.constructor.name;
2777
2777
  if (n === "Map" || n === "Set") return Array.from(n);
2778
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$v(o, minLen);
2778
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$w(o, minLen);
2779
2779
  }
2780
2780
  /**
2781
2781
  * Set that is implemented internally using a Map, and input values have their keys read.
@@ -2784,9 +2784,9 @@ function _unsupported_iterable_to_array$v(o, minLen) {
2784
2784
  */ var HashSet = /*#__PURE__*/ function() {
2785
2785
  function HashSet(config, values) {
2786
2786
  var _this = this;
2787
- _class_call_check$a(this, HashSet);
2788
- _define_property$l(this, "_map", new Map());
2789
- _define_property$l(this, "_config", void 0);
2787
+ _class_call_check$b(this, HashSet);
2788
+ _define_property$m(this, "_map", new Map());
2789
+ _define_property$m(this, "_config", void 0);
2790
2790
  this._config = config;
2791
2791
  if (values) {
2792
2792
  values.forEach(function(x) {
@@ -2971,13 +2971,13 @@ function _unsupported_iterable_to_array$v(o, minLen) {
2971
2971
  }
2972
2972
  ();
2973
2973
 
2974
- function _array_like_to_array$u(arr, len) {
2974
+ function _array_like_to_array$v(arr, len) {
2975
2975
  if (len == null || len > arr.length) len = arr.length;
2976
2976
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2977
2977
  return arr2;
2978
2978
  }
2979
2979
  function _array_without_holes$g(arr) {
2980
- if (Array.isArray(arr)) return _array_like_to_array$u(arr);
2980
+ if (Array.isArray(arr)) return _array_like_to_array$v(arr);
2981
2981
  }
2982
2982
  function _iterable_to_array$g(iter) {
2983
2983
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -2986,15 +2986,15 @@ function _non_iterable_spread$g() {
2986
2986
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2987
2987
  }
2988
2988
  function _to_consumable_array$g(arr) {
2989
- return _array_without_holes$g(arr) || _iterable_to_array$g(arr) || _unsupported_iterable_to_array$u(arr) || _non_iterable_spread$g();
2989
+ return _array_without_holes$g(arr) || _iterable_to_array$g(arr) || _unsupported_iterable_to_array$v(arr) || _non_iterable_spread$g();
2990
2990
  }
2991
- function _unsupported_iterable_to_array$u(o, minLen) {
2991
+ function _unsupported_iterable_to_array$v(o, minLen) {
2992
2992
  if (!o) return;
2993
- if (typeof o === "string") return _array_like_to_array$u(o, minLen);
2993
+ if (typeof o === "string") return _array_like_to_array$v(o, minLen);
2994
2994
  var n = Object.prototype.toString.call(o).slice(8, -1);
2995
2995
  if (n === "Object" && o.constructor) n = o.constructor.name;
2996
2996
  if (n === "Map" || n === "Set") return Array.from(n);
2997
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$u(o, minLen);
2997
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$v(o, minLen);
2998
2998
  }
2999
2999
  var SORT_VALUE_LESS_THAN = -1;
3000
3000
  var SORT_VALUE_GREATER_THAN = 1;
@@ -3148,21 +3148,21 @@ function reverseCompareFn(compareFn) {
3148
3148
  };
3149
3149
  }
3150
3150
 
3151
- function _array_like_to_array$t(arr, len) {
3151
+ function _array_like_to_array$u(arr, len) {
3152
3152
  if (len == null || len > arr.length) len = arr.length;
3153
3153
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3154
3154
  return arr2;
3155
3155
  }
3156
- function _array_with_holes$l(arr) {
3156
+ function _array_with_holes$m(arr) {
3157
3157
  if (Array.isArray(arr)) return arr;
3158
3158
  }
3159
3159
  function _array_without_holes$f(arr) {
3160
- if (Array.isArray(arr)) return _array_like_to_array$t(arr);
3160
+ if (Array.isArray(arr)) return _array_like_to_array$u(arr);
3161
3161
  }
3162
3162
  function _iterable_to_array$f(iter) {
3163
3163
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
3164
3164
  }
3165
- function _iterable_to_array_limit$l(arr, i) {
3165
+ function _iterable_to_array_limit$m(arr, i) {
3166
3166
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3167
3167
  if (_i == null) return;
3168
3168
  var _arr = [];
@@ -3186,25 +3186,25 @@ function _iterable_to_array_limit$l(arr, i) {
3186
3186
  }
3187
3187
  return _arr;
3188
3188
  }
3189
- function _non_iterable_rest$l() {
3189
+ function _non_iterable_rest$m() {
3190
3190
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3191
3191
  }
3192
3192
  function _non_iterable_spread$f() {
3193
3193
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3194
3194
  }
3195
- function _sliced_to_array$l(arr, i) {
3196
- return _array_with_holes$l(arr) || _iterable_to_array_limit$l(arr, i) || _unsupported_iterable_to_array$t(arr, i) || _non_iterable_rest$l();
3195
+ function _sliced_to_array$m(arr, i) {
3196
+ return _array_with_holes$m(arr) || _iterable_to_array_limit$m(arr, i) || _unsupported_iterable_to_array$u(arr, i) || _non_iterable_rest$m();
3197
3197
  }
3198
3198
  function _to_consumable_array$f(arr) {
3199
- return _array_without_holes$f(arr) || _iterable_to_array$f(arr) || _unsupported_iterable_to_array$t(arr) || _non_iterable_spread$f();
3199
+ return _array_without_holes$f(arr) || _iterable_to_array$f(arr) || _unsupported_iterable_to_array$u(arr) || _non_iterable_spread$f();
3200
3200
  }
3201
- function _unsupported_iterable_to_array$t(o, minLen) {
3201
+ function _unsupported_iterable_to_array$u(o, minLen) {
3202
3202
  if (!o) return;
3203
- if (typeof o === "string") return _array_like_to_array$t(o, minLen);
3203
+ if (typeof o === "string") return _array_like_to_array$u(o, minLen);
3204
3204
  var n = Object.prototype.toString.call(o).slice(8, -1);
3205
3205
  if (n === "Object" && o.constructor) n = o.constructor.name;
3206
3206
  if (n === "Map" || n === "Set") return Array.from(n);
3207
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$t(o, minLen);
3207
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$u(o, minLen);
3208
3208
  }
3209
3209
  /**
3210
3210
  * Splits the input array into batches of a maximum size. Each batch carries its zero-based index as `.i`.
@@ -3364,7 +3364,7 @@ function _unsupported_iterable_to_array$t(o, minLen) {
3364
3364
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3365
3365
  try {
3366
3366
  for(var _iterator = pairs.pairs[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3367
- var _step_value = _sliced_to_array$l(_step.value, 2), aa = _step_value[0], bb = _step_value[1];
3367
+ var _step_value = _sliced_to_array$m(_step.value, 2), aa = _step_value[0], bb = _step_value[1];
3368
3368
  // If any item is not the same, break.
3369
3369
  if (!isEqual(aa, bb)) {
3370
3370
  areDifferent = true;
@@ -3478,15 +3478,15 @@ function makeValuesGroupMap(values, groupKeyFn) {
3478
3478
  return map;
3479
3479
  }
3480
3480
 
3481
- function _array_like_to_array$s(arr, len) {
3481
+ function _array_like_to_array$t(arr, len) {
3482
3482
  if (len == null || len > arr.length) len = arr.length;
3483
3483
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3484
3484
  return arr2;
3485
3485
  }
3486
- function _array_with_holes$k(arr) {
3486
+ function _array_with_holes$l(arr) {
3487
3487
  if (Array.isArray(arr)) return arr;
3488
3488
  }
3489
- function _iterable_to_array_limit$k(arr, i) {
3489
+ function _iterable_to_array_limit$l(arr, i) {
3490
3490
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3491
3491
  if (_i == null) return;
3492
3492
  var _arr = [];
@@ -3510,19 +3510,19 @@ function _iterable_to_array_limit$k(arr, i) {
3510
3510
  }
3511
3511
  return _arr;
3512
3512
  }
3513
- function _non_iterable_rest$k() {
3513
+ function _non_iterable_rest$l() {
3514
3514
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3515
3515
  }
3516
- function _sliced_to_array$k(arr, i) {
3517
- return _array_with_holes$k(arr) || _iterable_to_array_limit$k(arr, i) || _unsupported_iterable_to_array$s(arr, i) || _non_iterable_rest$k();
3516
+ function _sliced_to_array$l(arr, i) {
3517
+ return _array_with_holes$l(arr) || _iterable_to_array_limit$l(arr, i) || _unsupported_iterable_to_array$t(arr, i) || _non_iterable_rest$l();
3518
3518
  }
3519
- function _unsupported_iterable_to_array$s(o, minLen) {
3519
+ function _unsupported_iterable_to_array$t(o, minLen) {
3520
3520
  if (!o) return;
3521
- if (typeof o === "string") return _array_like_to_array$s(o, minLen);
3521
+ if (typeof o === "string") return _array_like_to_array$t(o, minLen);
3522
3522
  var n = Object.prototype.toString.call(o).slice(8, -1);
3523
3523
  if (n === "Object" && o.constructor) n = o.constructor.name;
3524
3524
  if (n === "Map" || n === "Set") return Array.from(n);
3525
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$s(o, minLen);
3525
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$t(o, minLen);
3526
3526
  }
3527
3527
  /**
3528
3528
  * Combines multiple Maps into a single Map. Later maps override earlier values for the same key.
@@ -3578,7 +3578,7 @@ function _unsupported_iterable_to_array$s(o, minLen) {
3578
3578
  */ function expandArrayValueTuples(values) {
3579
3579
  var tuples = [];
3580
3580
  values.forEach(function(param) {
3581
- var _param = _sliced_to_array$k(param, 2), key = _param[0], _$values = _param[1];
3581
+ var _param = _sliced_to_array$l(param, 2), key = _param[0], _$values = _param[1];
3582
3582
  useIterableOrValue(_$values, function(value) {
3583
3583
  tuples.push([
3584
3584
  key,
@@ -3930,7 +3930,7 @@ function isNonClassFunction(x) {
3930
3930
  return type != null && type !== 'class';
3931
3931
  }
3932
3932
 
3933
- function _type_of$j(obj) {
3933
+ function _type_of$k(obj) {
3934
3934
  "@swc/helpers - typeof";
3935
3935
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
3936
3936
  }
@@ -4001,7 +4001,7 @@ function getValueFromGetter(input, args) {
4001
4001
  *
4002
4002
  * @__NO_SIDE_EFFECTS__
4003
4003
  */ function asObjectCopyFactory(input, copyFunction) {
4004
- return (typeof input === "undefined" ? "undefined" : _type_of$j(input)) === 'object' ? objectCopyFactory(input, copyFunction) : asGetter(input);
4004
+ return (typeof input === "undefined" ? "undefined" : _type_of$k(input)) === 'object' ? objectCopyFactory(input, copyFunction) : asGetter(input);
4005
4005
  }
4006
4006
  /**
4007
4007
  * Wraps the input value in a Getter function that always returns it.
@@ -4202,7 +4202,7 @@ function makeWithFactoryInput(factory, input) {
4202
4202
  return Math.max(Math.min(input, max), min);
4203
4203
  }
4204
4204
 
4205
- function _type_of$i(obj) {
4205
+ function _type_of$j(obj) {
4206
4206
  "@swc/helpers - typeof";
4207
4207
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
4208
4208
  }
@@ -4249,7 +4249,7 @@ function _type_of$i(obj) {
4249
4249
  * @dbxUtilTags number, parse, convert, coerce, string, normalize
4250
4250
  */ function asNumber(input) {
4251
4251
  var value;
4252
- switch(typeof input === "undefined" ? "undefined" : _type_of$i(input)){
4252
+ switch(typeof input === "undefined" ? "undefined" : _type_of$j(input)){
4253
4253
  case 'number':
4254
4254
  value = input;
4255
4255
  break;
@@ -4388,7 +4388,7 @@ function _type_of$i(obj) {
4388
4388
  return Math.log(y) / Math.log(x);
4389
4389
  }
4390
4390
 
4391
- function _type_of$h(obj) {
4391
+ function _type_of$i(obj) {
4392
4392
  "@swc/helpers - typeof";
4393
4393
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
4394
4394
  }
@@ -4570,7 +4570,7 @@ function _type_of$h(obj) {
4570
4570
  }
4571
4571
  var fn = function fn(input) {
4572
4572
  var value;
4573
- switch(typeof input === "undefined" ? "undefined" : _type_of$h(input)){
4573
+ switch(typeof input === "undefined" ? "undefined" : _type_of$i(input)){
4574
4574
  case 'number':
4575
4575
  value = input;
4576
4576
  break;
@@ -7125,17 +7125,17 @@ function caseInsensitiveString(input) {
7125
7125
  };
7126
7126
  }
7127
7127
 
7128
- function _assert_this_initialized$4(self) {
7128
+ function _assert_this_initialized$5(self) {
7129
7129
  if (self === void 0) {
7130
7130
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
7131
7131
  }
7132
7132
  return self;
7133
7133
  }
7134
- function _call_super$4(_this, derived, args) {
7135
- derived = _get_prototype_of$4(derived);
7136
- return _possible_constructor_return$4(_this, _is_native_reflect_construct$4() ? Reflect.construct(derived, args || [], _get_prototype_of$4(_this).constructor) : derived.apply(_this, args));
7134
+ function _call_super$5(_this, derived, args) {
7135
+ derived = _get_prototype_of$5(derived);
7136
+ return _possible_constructor_return$5(_this, _is_native_reflect_construct$5() ? Reflect.construct(derived, args || [], _get_prototype_of$5(_this).constructor) : derived.apply(_this, args));
7137
7137
  }
7138
- function _class_call_check$9(instance, Constructor) {
7138
+ function _class_call_check$a(instance, Constructor) {
7139
7139
  if (!(instance instanceof Constructor)) {
7140
7140
  throw new TypeError("Cannot call a class as a function");
7141
7141
  }
@@ -7153,7 +7153,7 @@ function _create_class$6(Constructor, protoProps, staticProps) {
7153
7153
  if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
7154
7154
  return Constructor;
7155
7155
  }
7156
- function _define_property$k(obj, key, value) {
7156
+ function _define_property$l(obj, key, value) {
7157
7157
  if (key in obj) {
7158
7158
  Object.defineProperty(obj, key, {
7159
7159
  value: value,
@@ -7166,13 +7166,13 @@ function _define_property$k(obj, key, value) {
7166
7166
  }
7167
7167
  return obj;
7168
7168
  }
7169
- function _get_prototype_of$4(o) {
7170
- _get_prototype_of$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
7169
+ function _get_prototype_of$5(o) {
7170
+ _get_prototype_of$5 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
7171
7171
  return o.__proto__ || Object.getPrototypeOf(o);
7172
7172
  };
7173
- return _get_prototype_of$4(o);
7173
+ return _get_prototype_of$5(o);
7174
7174
  }
7175
- function _inherits$5(subClass, superClass) {
7175
+ function _inherits$6(subClass, superClass) {
7176
7176
  if (typeof superClass !== "function" && superClass !== null) {
7177
7177
  throw new TypeError("Super expression must either be null or a function");
7178
7178
  }
@@ -7183,30 +7183,30 @@ function _inherits$5(subClass, superClass) {
7183
7183
  configurable: true
7184
7184
  }
7185
7185
  });
7186
- if (superClass) _set_prototype_of$5(subClass, superClass);
7186
+ if (superClass) _set_prototype_of$6(subClass, superClass);
7187
7187
  }
7188
- function _possible_constructor_return$4(self, call) {
7189
- if (call && (_type_of$g(call) === "object" || typeof call === "function")) {
7188
+ function _possible_constructor_return$5(self, call) {
7189
+ if (call && (_type_of$h(call) === "object" || typeof call === "function")) {
7190
7190
  return call;
7191
7191
  }
7192
- return _assert_this_initialized$4(self);
7192
+ return _assert_this_initialized$5(self);
7193
7193
  }
7194
- function _set_prototype_of$5(o, p) {
7195
- _set_prototype_of$5 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7194
+ function _set_prototype_of$6(o, p) {
7195
+ _set_prototype_of$6 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7196
7196
  o.__proto__ = p;
7197
7197
  return o;
7198
7198
  };
7199
- return _set_prototype_of$5(o, p);
7199
+ return _set_prototype_of$6(o, p);
7200
7200
  }
7201
- function _type_of$g(obj) {
7201
+ function _type_of$h(obj) {
7202
7202
  "@swc/helpers - typeof";
7203
7203
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
7204
7204
  }
7205
- function _is_native_reflect_construct$4() {
7205
+ function _is_native_reflect_construct$5() {
7206
7206
  try {
7207
7207
  var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
7208
7208
  } catch (_) {}
7209
- return (_is_native_reflect_construct$4 = function() {
7209
+ return (_is_native_reflect_construct$5 = function() {
7210
7210
  return !!result;
7211
7211
  })();
7212
7212
  }
@@ -7217,13 +7217,13 @@ function _is_native_reflect_construct$4() {
7217
7217
  * Error thrown when an assertion fails.
7218
7218
  * Extends BaseError and implements ReadableError interface.
7219
7219
  */ var AssertionError = /*#__PURE__*/ function(BaseError) {
7220
- _inherits$5(AssertionError, BaseError);
7220
+ _inherits$6(AssertionError, BaseError);
7221
7221
  function AssertionError(error, message) {
7222
- _class_call_check$9(this, AssertionError);
7222
+ _class_call_check$a(this, AssertionError);
7223
7223
  var _this;
7224
- _this = _call_super$4(this, AssertionError, [
7224
+ _this = _call_super$5(this, AssertionError, [
7225
7225
  message
7226
- ]), _define_property$k(_this, "code", ASSERTION_ERROR_CODE), _define_property$k(_this, "_target", void 0), _define_property$k(_this, "_property", void 0);
7226
+ ]), _define_property$l(_this, "code", ASSERTION_ERROR_CODE), _define_property$l(_this, "_target", void 0), _define_property$l(_this, "_property", void 0);
7227
7227
  _this.name = 'AssertionError';
7228
7228
  _this._target = error.target;
7229
7229
  _this._property = error.propertyKey;
@@ -7257,7 +7257,7 @@ function _is_native_reflect_construct$4() {
7257
7257
  * Handler for assertion issues that builds and throws appropriate errors.
7258
7258
  */ var AssertionIssueHandler = /*#__PURE__*/ function() {
7259
7259
  function AssertionIssueHandler() {
7260
- _class_call_check$9(this, AssertionIssueHandler);
7260
+ _class_call_check$a(this, AssertionIssueHandler);
7261
7261
  }
7262
7262
  _create_class$6(AssertionIssueHandler, [
7263
7263
  {
@@ -7310,7 +7310,7 @@ function _is_native_reflect_construct$4() {
7310
7310
  * TODO: Allow changing, if needed.
7311
7311
  */ var ASSERTION_HANDLER = new AssertionIssueHandler();
7312
7312
 
7313
- function _class_call_check$8(instance, Constructor) {
7313
+ function _class_call_check$9(instance, Constructor) {
7314
7314
  if (!(instance instanceof Constructor)) {
7315
7315
  throw new TypeError("Cannot call a class as a function");
7316
7316
  }
@@ -7328,7 +7328,7 @@ function _create_class$5(Constructor, protoProps, staticProps) {
7328
7328
  if (staticProps) _defineProperties$5(Constructor, staticProps);
7329
7329
  return Constructor;
7330
7330
  }
7331
- function _define_property$j(obj, key, value) {
7331
+ function _define_property$k(obj, key, value) {
7332
7332
  if (key in obj) {
7333
7333
  Object.defineProperty(obj, key, {
7334
7334
  value: value,
@@ -7351,7 +7351,7 @@ function _object_spread$f(target) {
7351
7351
  }));
7352
7352
  }
7353
7353
  ownKeys.forEach(function(key) {
7354
- _define_property$j(target, key, source[key]);
7354
+ _define_property$k(target, key, source[key]);
7355
7355
  });
7356
7356
  }
7357
7357
  return target;
@@ -7363,7 +7363,7 @@ function _object_spread$f(target) {
7363
7363
  * Used to build TypeScript decorator functions that enforce assertions on property setters.
7364
7364
  */ var PropertyDescriptorUtility = /*#__PURE__*/ function() {
7365
7365
  function PropertyDescriptorUtility() {
7366
- _class_call_check$8(this, PropertyDescriptorUtility);
7366
+ _class_call_check$9(this, PropertyDescriptorUtility);
7367
7367
  }
7368
7368
  _create_class$5(PropertyDescriptorUtility, null, [
7369
7369
  {
@@ -7474,6 +7474,16 @@ function _object_spread$f(target) {
7474
7474
  }, options, DEFAULT_OPTIONS);
7475
7475
  }
7476
7476
 
7477
+ /**
7478
+ * URL query parameter used to request client-side impersonation ("view as another user").
7479
+ *
7480
+ * When present on an in-app URL (e.g. `/app/dashboard?imp=<uid>`), the value is the
7481
+ * {@link AuthUserIdentifier} of the user to impersonate. It is read by the client-side impersonation
7482
+ * trigger (to begin/end impersonation) and by URL-decoding tooling (to resolve `{authUid}` model-key
7483
+ * placeholders to the impersonated user). Impersonation is client-side only — it never escalates
7484
+ * server-side privileges.
7485
+ */ var IMPERSONATION_URL_QUERY_PARAM = 'imp';
7486
+
7477
7487
  /**
7478
7488
  * Auth role for an account that has signed the terms of service.
7479
7489
  */ var AUTH_TOS_SIGNED_ROLE = 'tos';
@@ -7544,15 +7554,15 @@ function _object_spread$f(target) {
7544
7554
  * @returns The inverted filter function, or the original if invert is false
7545
7555
  */ var invertFilter = invertBooleanReturnFunction;
7546
7556
 
7547
- function _array_like_to_array$r(arr, len) {
7557
+ function _array_like_to_array$s(arr, len) {
7548
7558
  if (len == null || len > arr.length) len = arr.length;
7549
7559
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7550
7560
  return arr2;
7551
7561
  }
7552
- function _array_with_holes$j(arr) {
7562
+ function _array_with_holes$k(arr) {
7553
7563
  if (Array.isArray(arr)) return arr;
7554
7564
  }
7555
- function _iterable_to_array_limit$j(arr, i) {
7565
+ function _iterable_to_array_limit$k(arr, i) {
7556
7566
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
7557
7567
  if (_i == null) return;
7558
7568
  var _arr = [];
@@ -7576,23 +7586,23 @@ function _iterable_to_array_limit$j(arr, i) {
7576
7586
  }
7577
7587
  return _arr;
7578
7588
  }
7579
- function _non_iterable_rest$j() {
7589
+ function _non_iterable_rest$k() {
7580
7590
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7581
7591
  }
7582
- function _sliced_to_array$j(arr, i) {
7583
- return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$r(arr, i) || _non_iterable_rest$j();
7592
+ function _sliced_to_array$k(arr, i) {
7593
+ return _array_with_holes$k(arr) || _iterable_to_array_limit$k(arr, i) || _unsupported_iterable_to_array$s(arr, i) || _non_iterable_rest$k();
7584
7594
  }
7585
- function _type_of$f(obj) {
7595
+ function _type_of$g(obj) {
7586
7596
  "@swc/helpers - typeof";
7587
7597
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
7588
7598
  }
7589
- function _unsupported_iterable_to_array$r(o, minLen) {
7599
+ function _unsupported_iterable_to_array$s(o, minLen) {
7590
7600
  if (!o) return;
7591
- if (typeof o === "string") return _array_like_to_array$r(o, minLen);
7601
+ if (typeof o === "string") return _array_like_to_array$s(o, minLen);
7592
7602
  var n = Object.prototype.toString.call(o).slice(8, -1);
7593
7603
  if (n === "Object" && o.constructor) n = o.constructor.name;
7594
7604
  if (n === "Map" || n === "Set") return Array.from(n);
7595
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$r(o, minLen);
7605
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$s(o, minLen);
7596
7606
  }
7597
7607
  /**
7598
7608
  * Iterates over filtered key/value tuples of an object and invokes a callback for each.
@@ -7720,7 +7730,7 @@ function _unsupported_iterable_to_array$r(o, minLen) {
7720
7730
  * @param input - Enum value or filter object.
7721
7731
  * @returns Normalized filter object.
7722
7732
  */ function filterKeyValueTuplesInputToFilter(input) {
7723
- return (typeof input === "undefined" ? "undefined" : _type_of$f(input)) === 'object' ? input : {
7733
+ return (typeof input === "undefined" ? "undefined" : _type_of$g(input)) === 'object' ? input : {
7724
7734
  valueFilter: input
7725
7735
  };
7726
7736
  }
@@ -7754,43 +7764,43 @@ function _unsupported_iterable_to_array$r(o, minLen) {
7754
7764
  switch(type){
7755
7765
  case KeyValueTypleValueFilter.UNDEFINED:
7756
7766
  filterFn = function filterFn(param) {
7757
- var _param = _sliced_to_array$j(param, 2), x = _param[1];
7767
+ var _param = _sliced_to_array$k(param, 2), x = _param[1];
7758
7768
  return x !== undefined;
7759
7769
  };
7760
7770
  break;
7761
7771
  case KeyValueTypleValueFilter.NULL:
7762
7772
  filterFn = function filterFn(param) {
7763
- var _param = _sliced_to_array$j(param, 2), x = _param[1];
7773
+ var _param = _sliced_to_array$k(param, 2), x = _param[1];
7764
7774
  return x != null;
7765
7775
  };
7766
7776
  break;
7767
7777
  case KeyValueTypleValueFilter.FALSY:
7768
7778
  filterFn = function filterFn(param) {
7769
- var _param = _sliced_to_array$j(param, 2), x = _param[1];
7779
+ var _param = _sliced_to_array$k(param, 2), x = _param[1];
7770
7780
  return Boolean(x);
7771
7781
  };
7772
7782
  break;
7773
7783
  case KeyValueTypleValueFilter.EMPTY:
7774
7784
  filterFn = function filterFn(param) {
7775
- var _param = _sliced_to_array$j(param, 2), x = _param[1];
7785
+ var _param = _sliced_to_array$k(param, 2), x = _param[1];
7776
7786
  return hasValueOrNotEmpty(x);
7777
7787
  };
7778
7788
  break;
7779
7789
  case KeyValueTypleValueFilter.EMPTY_STRICT:
7780
7790
  filterFn = function filterFn(param) {
7781
- var _param = _sliced_to_array$j(param, 2), x = _param[1];
7791
+ var _param = _sliced_to_array$k(param, 2), x = _param[1];
7782
7792
  return hasValueOrNotEmptyObject(x);
7783
7793
  };
7784
7794
  break;
7785
7795
  case KeyValueTypleValueFilter.FALSY_AND_EMPTY:
7786
7796
  filterFn = function filterFn(param) {
7787
- var _param = _sliced_to_array$j(param, 2), x = _param[1];
7797
+ var _param = _sliced_to_array$k(param, 2), x = _param[1];
7788
7798
  return Boolean(x) && hasValueOrNotEmpty(x);
7789
7799
  };
7790
7800
  break;
7791
7801
  case KeyValueTypleValueFilter.FALSY_AND_EMPTY_STRICT:
7792
7802
  filterFn = function filterFn(param) {
7793
- var _param = _sliced_to_array$j(param, 2), x = _param[1];
7803
+ var _param = _sliced_to_array$k(param, 2), x = _param[1];
7794
7804
  return Boolean(x) && hasValueOrNotEmptyObject(x);
7795
7805
  };
7796
7806
  break;
@@ -7897,15 +7907,15 @@ function cachedGetter(factory) {
7897
7907
  };
7898
7908
  }
7899
7909
 
7900
- function _array_like_to_array$q(arr, len) {
7910
+ function _array_like_to_array$r(arr, len) {
7901
7911
  if (len == null || len > arr.length) len = arr.length;
7902
7912
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7903
7913
  return arr2;
7904
7914
  }
7905
- function _array_with_holes$i(arr) {
7915
+ function _array_with_holes$j(arr) {
7906
7916
  if (Array.isArray(arr)) return arr;
7907
7917
  }
7908
- function _define_property$i(obj, key, value) {
7918
+ function _define_property$j(obj, key, value) {
7909
7919
  if (key in obj) {
7910
7920
  Object.defineProperty(obj, key, {
7911
7921
  value: value,
@@ -7918,7 +7928,7 @@ function _define_property$i(obj, key, value) {
7918
7928
  }
7919
7929
  return obj;
7920
7930
  }
7921
- function _iterable_to_array_limit$i(arr, i) {
7931
+ function _iterable_to_array_limit$j(arr, i) {
7922
7932
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
7923
7933
  if (_i == null) return;
7924
7934
  var _arr = [];
@@ -7942,7 +7952,7 @@ function _iterable_to_array_limit$i(arr, i) {
7942
7952
  }
7943
7953
  return _arr;
7944
7954
  }
7945
- function _non_iterable_rest$i() {
7955
+ function _non_iterable_rest$j() {
7946
7956
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7947
7957
  }
7948
7958
  function _object_spread$e(target) {
@@ -7955,25 +7965,25 @@ function _object_spread$e(target) {
7955
7965
  }));
7956
7966
  }
7957
7967
  ownKeys.forEach(function(key) {
7958
- _define_property$i(target, key, source[key]);
7968
+ _define_property$j(target, key, source[key]);
7959
7969
  });
7960
7970
  }
7961
7971
  return target;
7962
7972
  }
7963
- function _sliced_to_array$i(arr, i) {
7964
- return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$q(arr, i) || _non_iterable_rest$i();
7973
+ function _sliced_to_array$j(arr, i) {
7974
+ return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$r(arr, i) || _non_iterable_rest$j();
7965
7975
  }
7966
- function _type_of$e(obj) {
7976
+ function _type_of$f(obj) {
7967
7977
  "@swc/helpers - typeof";
7968
7978
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
7969
7979
  }
7970
- function _unsupported_iterable_to_array$q(o, minLen) {
7980
+ function _unsupported_iterable_to_array$r(o, minLen) {
7971
7981
  if (!o) return;
7972
- if (typeof o === "string") return _array_like_to_array$q(o, minLen);
7982
+ if (typeof o === "string") return _array_like_to_array$r(o, minLen);
7973
7983
  var n = Object.prototype.toString.call(o).slice(8, -1);
7974
7984
  if (n === "Object" && o.constructor) n = o.constructor.name;
7975
7985
  if (n === "Map" || n === "Set") return Array.from(n);
7976
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$q(o, minLen);
7986
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$r(o, minLen);
7977
7987
  }
7978
7988
  /**
7979
7989
  * Creates a reusable {@link StripObjectFunction} that filters values from an object and returns
@@ -8349,7 +8359,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
8349
8359
  filter: filter,
8350
8360
  // eslint-disable-next-line @typescript-eslint/max-params
8351
8361
  forEach: function forEach(param, i, obj, context) {
8352
- var _param = _sliced_to_array$i(param, 1), key = _param[0];
8362
+ var _param = _sliced_to_array$j(param, 1), key = _param[0];
8353
8363
  context.keys.push(key);
8354
8364
  }
8355
8365
  });
@@ -8488,7 +8498,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
8488
8498
  var forEachFn = forEachKeyValueOnPOJOFunction({
8489
8499
  filter: filter,
8490
8500
  forEach: function forEach(param, i, object) {
8491
- var _param = _sliced_to_array$i(param, 1), key = _param[0];
8501
+ var _param = _sliced_to_array$j(param, 1), key = _param[0];
8492
8502
  delete object[key];
8493
8503
  }
8494
8504
  });
@@ -8568,12 +8578,12 @@ function _unsupported_iterable_to_array$q(o, minLen) {
8568
8578
  var input = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : KeyValueTypleValueFilter.UNDEFINED;
8569
8579
  var _ref;
8570
8580
  var filter = input;
8571
- var copy = (_ref = (typeof input === "undefined" ? "undefined" : _type_of$e(input)) === 'object' ? input.copy : true) !== null && _ref !== void 0 ? _ref : true;
8581
+ var copy = (_ref = (typeof input === "undefined" ? "undefined" : _type_of$f(input)) === 'object' ? input.copy : true) !== null && _ref !== void 0 ? _ref : true;
8572
8582
  var assignEachValueToTarget = forEachKeyValueOnPOJOFunction({
8573
8583
  filter: filter,
8574
8584
  // eslint-disable-next-line @typescript-eslint/max-params
8575
8585
  forEach: function forEach(param, i, object, target) {
8576
- var _param = _sliced_to_array$i(param, 2), key = _param[0], value = _param[1];
8586
+ var _param = _sliced_to_array$j(param, 2), key = _param[0], value = _param[1];
8577
8587
  target[key] = value;
8578
8588
  }
8579
8589
  });
@@ -8643,7 +8653,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
8643
8653
  filter: filter,
8644
8654
  // eslint-disable-next-line @typescript-eslint/max-params
8645
8655
  forEach: function forEach(param, i, obj, context) {
8646
- var _param = _sliced_to_array$i(param, 2), value = _param[1];
8656
+ var _param = _sliced_to_array$j(param, 2), value = _param[1];
8647
8657
  context.values.push(value);
8648
8658
  }
8649
8659
  });
@@ -8688,7 +8698,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
8688
8698
  var invertFilter = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
8689
8699
  var keysSet = new Set(keysToFilter);
8690
8700
  var filterFn = invertBooleanReturnFunction(function(param) {
8691
- var _param = _sliced_to_array$i(param, 1), key = _param[0];
8701
+ var _param = _sliced_to_array$j(param, 1), key = _param[0];
8692
8702
  return keysSet.has(key);
8693
8703
  }, invertFilter);
8694
8704
  return filterTuplesOnPOJOFunction(filterFn);
@@ -8916,15 +8926,15 @@ function isInSetDecisionFunction(set, inputReadValue) {
8916
8926
  return input == null ? input : new Set(asArray(input));
8917
8927
  }
8918
8928
 
8919
- function _array_like_to_array$p(arr, len) {
8929
+ function _array_like_to_array$q(arr, len) {
8920
8930
  if (len == null || len > arr.length) len = arr.length;
8921
8931
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
8922
8932
  return arr2;
8923
8933
  }
8924
- function _array_with_holes$h(arr) {
8934
+ function _array_with_holes$i(arr) {
8925
8935
  if (Array.isArray(arr)) return arr;
8926
8936
  }
8927
- function _iterable_to_array_limit$h(arr, i) {
8937
+ function _iterable_to_array_limit$i(arr, i) {
8928
8938
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
8929
8939
  if (_i == null) return;
8930
8940
  var _arr = [];
@@ -8948,23 +8958,23 @@ function _iterable_to_array_limit$h(arr, i) {
8948
8958
  }
8949
8959
  return _arr;
8950
8960
  }
8951
- function _non_iterable_rest$h() {
8961
+ function _non_iterable_rest$i() {
8952
8962
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8953
8963
  }
8954
- function _sliced_to_array$h(arr, i) {
8955
- return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$p(arr, i) || _non_iterable_rest$h();
8964
+ function _sliced_to_array$i(arr, i) {
8965
+ return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$q(arr, i) || _non_iterable_rest$i();
8956
8966
  }
8957
- function _type_of$d(obj) {
8967
+ function _type_of$e(obj) {
8958
8968
  "@swc/helpers - typeof";
8959
8969
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
8960
8970
  }
8961
- function _unsupported_iterable_to_array$p(o, minLen) {
8971
+ function _unsupported_iterable_to_array$q(o, minLen) {
8962
8972
  if (!o) return;
8963
- if (typeof o === "string") return _array_like_to_array$p(o, minLen);
8973
+ if (typeof o === "string") return _array_like_to_array$q(o, minLen);
8964
8974
  var n = Object.prototype.toString.call(o).slice(8, -1);
8965
8975
  if (n === "Object" && o.constructor) n = o.constructor.name;
8966
8976
  if (n === "Map" || n === "Set") return Array.from(n);
8967
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$p(o, minLen);
8977
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$q(o, minLen);
8968
8978
  }
8969
8979
  var DEFAULT_AUTH_ROLE_CLAIMS_CLAIM_VALUE = 1;
8970
8980
  var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
@@ -9006,7 +9016,7 @@ var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
9006
9016
  var inverse = (_inputEntry_inverse = inputEntry.inverse) !== null && _inputEntry_inverse !== void 0 ? _inputEntry_inverse : false;
9007
9017
  // since checking uses equivalence, the objects will never match equivalence via the === properly.
9008
9018
  // AuthRoleClaimsFactoryConfigEntryEncodeOptions is likely to be used for these cases unknownways, but this will help avoid unexpected errors.
9009
- if ((typeof expectedValue === "undefined" ? "undefined" : _type_of$d(expectedValue)) === 'object') {
9019
+ if ((typeof expectedValue === "undefined" ? "undefined" : _type_of$e(expectedValue)) === 'object') {
9010
9020
  throw new TypeError("failed decoding claims. Expected value to be a string or number. Object isn't supported with simple claims.");
9011
9021
  }
9012
9022
  if (inverse) {
@@ -9063,7 +9073,7 @@ var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
9063
9073
  var claims = {};
9064
9074
  // iterate by each claim value to build the claims.
9065
9075
  tuples.forEach(function(param) {
9066
- var _param = _sliced_to_array$h(param, 2), claimsKey = _param[0], entry = _param[1];
9076
+ var _param = _sliced_to_array$i(param, 2), claimsKey = _param[0], entry = _param[1];
9067
9077
  var _entry_encodeValueFromRoles;
9068
9078
  var claimsValue = (_entry_encodeValueFromRoles = entry.encodeValueFromRoles(roles)) !== null && _entry_encodeValueFromRoles !== void 0 ? _entry_encodeValueFromRoles : defaultEmptyValue;
9069
9079
  claims[claimsKey] = claimsValue;
@@ -9073,7 +9083,7 @@ var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
9073
9083
  var forEachKeyValueAddToSet = forEachKeyValueOnPOJOFunction({
9074
9084
  // eslint-disable-next-line @typescript-eslint/max-params
9075
9085
  forEach: function forEach(param, i, claims, roles) {
9076
- var _param = _sliced_to_array$h(param, 2), claimsKey = _param[0], value = _param[1];
9086
+ var _param = _sliced_to_array$i(param, 2), claimsKey = _param[0], value = _param[1];
9077
9087
  var entry = authRoleMap.get(claimsKey);
9078
9088
  if (entry != null) {
9079
9089
  var decodedRoles = entry.decodeRolesFromValue(value);
@@ -9087,7 +9097,7 @@ var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
9087
9097
  return roles;
9088
9098
  };
9089
9099
  var claimKeys = tuples.map(function(param) {
9090
- var _param = _sliced_to_array$h(param, 1), key = _param[0];
9100
+ var _param = _sliced_to_array$i(param, 1), key = _param[0];
9091
9101
  return key;
9092
9102
  });
9093
9103
  var copyClaims = function copyClaims(source) {
@@ -9125,19 +9135,7 @@ var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
9125
9135
  });
9126
9136
  }
9127
9137
 
9128
- /**
9129
- * Standard "out-of-band" OAuth 2.0 redirect URI URN.
9130
- *
9131
- * Defined by RFC 6749 §1.3 / draft-ietf-oauth-native-apps. Used by native and CLI clients that
9132
- * have no HTTP server to receive the redirect — the authorization server displays the
9133
- * authorization code on a final page and the user pastes it back into the application.
9134
- *
9135
- * Many providers have deprecated this in favor of loopback redirects (e.g.
9136
- * `http://127.0.0.1:<port>/callback`), but it remains in use as a fallback for tools that cannot
9137
- * bind a local port.
9138
- */ var OAUTH_OOB_REDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob';
9139
-
9140
- function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
9138
+ function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
9141
9139
  try {
9142
9140
  var info = gen[key](arg);
9143
9141
  var value = info.value;
@@ -9151,22 +9149,22 @@ function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
9151
9149
  Promise.resolve(value).then(_next, _throw);
9152
9150
  }
9153
9151
  }
9154
- function _async_to_generator$d(fn) {
9152
+ function _async_to_generator$e(fn) {
9155
9153
  return function() {
9156
9154
  var self = this, args = arguments;
9157
9155
  return new Promise(function(resolve, reject) {
9158
9156
  var gen = fn.apply(self, args);
9159
9157
  function _next(value) {
9160
- asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "next", value);
9158
+ asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "next", value);
9161
9159
  }
9162
9160
  function _throw(err) {
9163
- asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "throw", err);
9161
+ asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "throw", err);
9164
9162
  }
9165
9163
  _next(undefined);
9166
9164
  });
9167
9165
  };
9168
9166
  }
9169
- function _ts_generator$d(thisArg, body) {
9167
+ function _ts_generator$e(thisArg, body) {
9170
9168
  var f, y, t, _ = {
9171
9169
  label: 0,
9172
9170
  sent: function() {
@@ -9280,9 +9278,9 @@ function _ts_generator$d(thisArg, body) {
9280
9278
  * @param verifier - The code verifier string to hash.
9281
9279
  * @returns A base64url-encoded SHA-256 hash of the verifier.
9282
9280
  */ function generatePkceCodeChallenge(verifier) {
9283
- return _async_to_generator$d(function() {
9281
+ return _async_to_generator$e(function() {
9284
9282
  var encoder, data, digest;
9285
- return _ts_generator$d(this, function(_state) {
9283
+ return _ts_generator$e(this, function(_state) {
9286
9284
  switch(_state.label){
9287
9285
  case 0:
9288
9286
  encoder = new TextEncoder();
@@ -9308,6 +9306,587 @@ function base64UrlEncode(bytes) {
9308
9306
  return btoa(binString).replaceAll('+', '-').replaceAll('/', '_').replace(/=+$/, '');
9309
9307
  }
9310
9308
 
9309
+ function _array_like_to_array$p(arr, len) {
9310
+ if (len == null || len > arr.length) len = arr.length;
9311
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
9312
+ return arr2;
9313
+ }
9314
+ function _array_with_holes$h(arr) {
9315
+ if (Array.isArray(arr)) return arr;
9316
+ }
9317
+ function _assert_this_initialized$4(self) {
9318
+ if (self === void 0) {
9319
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9320
+ }
9321
+ return self;
9322
+ }
9323
+ function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
9324
+ try {
9325
+ var info = gen[key](arg);
9326
+ var value = info.value;
9327
+ } catch (error) {
9328
+ reject(error);
9329
+ return;
9330
+ }
9331
+ if (info.done) {
9332
+ resolve(value);
9333
+ } else {
9334
+ Promise.resolve(value).then(_next, _throw);
9335
+ }
9336
+ }
9337
+ function _async_to_generator$d(fn) {
9338
+ return function() {
9339
+ var self = this, args = arguments;
9340
+ return new Promise(function(resolve, reject) {
9341
+ var gen = fn.apply(self, args);
9342
+ function _next(value) {
9343
+ asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "next", value);
9344
+ }
9345
+ function _throw(err) {
9346
+ asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "throw", err);
9347
+ }
9348
+ _next(undefined);
9349
+ });
9350
+ };
9351
+ }
9352
+ function _call_super$4(_this, derived, args) {
9353
+ derived = _get_prototype_of$4(derived);
9354
+ return _possible_constructor_return$4(_this, _is_native_reflect_construct$4() ? Reflect.construct(derived, args || [], _get_prototype_of$4(_this).constructor) : derived.apply(_this, args));
9355
+ }
9356
+ function _class_call_check$8(instance, Constructor) {
9357
+ if (!(instance instanceof Constructor)) {
9358
+ throw new TypeError("Cannot call a class as a function");
9359
+ }
9360
+ }
9361
+ function _define_property$i(obj, key, value) {
9362
+ if (key in obj) {
9363
+ Object.defineProperty(obj, key, {
9364
+ value: value,
9365
+ enumerable: true,
9366
+ configurable: true,
9367
+ writable: true
9368
+ });
9369
+ } else {
9370
+ obj[key] = value;
9371
+ }
9372
+ return obj;
9373
+ }
9374
+ function _get_prototype_of$4(o) {
9375
+ _get_prototype_of$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
9376
+ return o.__proto__ || Object.getPrototypeOf(o);
9377
+ };
9378
+ return _get_prototype_of$4(o);
9379
+ }
9380
+ function _inherits$5(subClass, superClass) {
9381
+ if (typeof superClass !== "function" && superClass !== null) {
9382
+ throw new TypeError("Super expression must either be null or a function");
9383
+ }
9384
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
9385
+ constructor: {
9386
+ value: subClass,
9387
+ writable: true,
9388
+ configurable: true
9389
+ }
9390
+ });
9391
+ if (superClass) _set_prototype_of$5(subClass, superClass);
9392
+ }
9393
+ function _iterable_to_array_limit$h(arr, i) {
9394
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
9395
+ if (_i == null) return;
9396
+ var _arr = [];
9397
+ var _n = true;
9398
+ var _d = false;
9399
+ var _s, _e;
9400
+ try {
9401
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
9402
+ _arr.push(_s.value);
9403
+ if (i && _arr.length === i) break;
9404
+ }
9405
+ } catch (err) {
9406
+ _d = true;
9407
+ _e = err;
9408
+ } finally{
9409
+ try {
9410
+ if (!_n && _i["return"] != null) _i["return"]();
9411
+ } finally{
9412
+ if (_d) throw _e;
9413
+ }
9414
+ }
9415
+ return _arr;
9416
+ }
9417
+ function _non_iterable_rest$h() {
9418
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
9419
+ }
9420
+ function _possible_constructor_return$4(self, call) {
9421
+ if (call && (_type_of$d(call) === "object" || typeof call === "function")) {
9422
+ return call;
9423
+ }
9424
+ return _assert_this_initialized$4(self);
9425
+ }
9426
+ function _set_prototype_of$5(o, p) {
9427
+ _set_prototype_of$5 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9428
+ o.__proto__ = p;
9429
+ return o;
9430
+ };
9431
+ return _set_prototype_of$5(o, p);
9432
+ }
9433
+ function _sliced_to_array$h(arr, i) {
9434
+ return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$p(arr, i) || _non_iterable_rest$h();
9435
+ }
9436
+ function _type_of$d(obj) {
9437
+ "@swc/helpers - typeof";
9438
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
9439
+ }
9440
+ function _unsupported_iterable_to_array$p(o, minLen) {
9441
+ if (!o) return;
9442
+ if (typeof o === "string") return _array_like_to_array$p(o, minLen);
9443
+ var n = Object.prototype.toString.call(o).slice(8, -1);
9444
+ if (n === "Object" && o.constructor) n = o.constructor.name;
9445
+ if (n === "Map" || n === "Set") return Array.from(n);
9446
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$p(o, minLen);
9447
+ }
9448
+ function _is_native_reflect_construct$4() {
9449
+ try {
9450
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
9451
+ } catch (_) {}
9452
+ return (_is_native_reflect_construct$4 = function() {
9453
+ return !!result;
9454
+ })();
9455
+ }
9456
+ function _ts_generator$d(thisArg, body) {
9457
+ var f, y, t, _ = {
9458
+ label: 0,
9459
+ sent: function() {
9460
+ if (t[0] & 1) throw t[1];
9461
+ return t[1];
9462
+ },
9463
+ trys: [],
9464
+ ops: []
9465
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
9466
+ return d(g, "next", {
9467
+ value: verb(0)
9468
+ }), d(g, "throw", {
9469
+ value: verb(1)
9470
+ }), d(g, "return", {
9471
+ value: verb(2)
9472
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
9473
+ value: function() {
9474
+ return this;
9475
+ }
9476
+ }), g;
9477
+ function verb(n) {
9478
+ return function(v) {
9479
+ return step([
9480
+ n,
9481
+ v
9482
+ ]);
9483
+ };
9484
+ }
9485
+ function step(op) {
9486
+ if (f) throw new TypeError("Generator is already executing.");
9487
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
9488
+ 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;
9489
+ if (y = 0, t) op = [
9490
+ op[0] & 2,
9491
+ t.value
9492
+ ];
9493
+ switch(op[0]){
9494
+ case 0:
9495
+ case 1:
9496
+ t = op;
9497
+ break;
9498
+ case 4:
9499
+ _.label++;
9500
+ return {
9501
+ value: op[1],
9502
+ done: false
9503
+ };
9504
+ case 5:
9505
+ _.label++;
9506
+ y = op[1];
9507
+ op = [
9508
+ 0
9509
+ ];
9510
+ continue;
9511
+ case 7:
9512
+ op = _.ops.pop();
9513
+ _.trys.pop();
9514
+ continue;
9515
+ default:
9516
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
9517
+ _ = 0;
9518
+ continue;
9519
+ }
9520
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
9521
+ _.label = op[1];
9522
+ break;
9523
+ }
9524
+ if (op[0] === 6 && _.label < t[1]) {
9525
+ _.label = t[1];
9526
+ t = op;
9527
+ break;
9528
+ }
9529
+ if (t && _.label < t[2]) {
9530
+ _.label = t[2];
9531
+ _.ops.push(op);
9532
+ break;
9533
+ }
9534
+ if (t[2]) _.ops.pop();
9535
+ _.trys.pop();
9536
+ continue;
9537
+ }
9538
+ op = body.call(thisArg, _);
9539
+ } catch (e) {
9540
+ op = [
9541
+ 6,
9542
+ e
9543
+ ];
9544
+ y = 0;
9545
+ } finally{
9546
+ f = t = 0;
9547
+ }
9548
+ if (op[0] & 5) throw op[1];
9549
+ return {
9550
+ value: op[0] ? op[1] : void 0,
9551
+ done: true
9552
+ };
9553
+ }
9554
+ }
9555
+ /**
9556
+ * Standard "out-of-band" OAuth 2.0 redirect URI URN.
9557
+ *
9558
+ * Defined by RFC 6749 §1.3 / draft-ietf-oauth-native-apps. Used by native and CLI clients that
9559
+ * have no HTTP server to receive the redirect — the authorization server displays the
9560
+ * authorization code on a final page and the user pastes it back into the application.
9561
+ *
9562
+ * Many providers have deprecated this in favor of loopback redirects (e.g.
9563
+ * `http://127.0.0.1:<port>/callback`), but it remains in use as a fallback for tools that cannot
9564
+ * bind a local port.
9565
+ */ var OAUTH_OOB_REDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob';
9566
+ /**
9567
+ * Default OAuth scope requested by an OIDC relying party when no explicit scope list is provided.
9568
+ *
9569
+ * `openid` is the one scope every OpenID Connect flow must request to receive an ID token.
9570
+ */ var DEFAULT_OIDC_RELYING_PARTY_SCOPE = 'openid';
9571
+ /**
9572
+ * Error raised by the OIDC relying-party layer (pure helpers here + the network protocol functions
9573
+ * in `@dereekb/util/oidc`). Carries a stable {@link OidcRelyingPartyErrorCode} so environment shells
9574
+ * (CLI, browser) can branch on or re-wrap it without string-matching messages.
9575
+ */ var OidcRelyingPartyError = /*#__PURE__*/ function(BaseError) {
9576
+ _inherits$5(OidcRelyingPartyError, BaseError);
9577
+ function OidcRelyingPartyError(input) {
9578
+ _class_call_check$8(this, OidcRelyingPartyError);
9579
+ var _this;
9580
+ _this = _call_super$4(this, OidcRelyingPartyError, [
9581
+ input.message
9582
+ ]), _define_property$i(_this, "code", void 0), _define_property$i(_this, "_error", void 0);
9583
+ _this.code = input.code;
9584
+ _this._error = input._error;
9585
+ return _this;
9586
+ }
9587
+ return OidcRelyingPartyError;
9588
+ }(BaseError);
9589
+ // MARK: Discovery Candidates
9590
+ /**
9591
+ * Builds the ordered list of `.well-known/openid-configuration` URLs probed when discovering OIDC
9592
+ * metadata.
9593
+ *
9594
+ * 1. `<issuer>/.well-known/openid-configuration` (OpenID Connect Discovery 1.0).
9595
+ * 2. `<issuer-origin>/.well-known/openid-configuration` (host-rooted; matches projects that
9596
+ * mount the discovery controller at the API/dev-server root rather than under the issuer
9597
+ * sub-path — e.g. demo's `OidcWellKnownController`).
9598
+ * 3. `<fallbackBaseUrl>/.well-known/openid-configuration` when supplied and not already covered.
9599
+ *
9600
+ * Exported so diagnostic surfaces (e.g. a CLI `doctor`) can show the exact URLs the discovery step
9601
+ * tried — without re-implementing the candidate ordering.
9602
+ *
9603
+ * @param input - The discovery request.
9604
+ * @param input.issuer - The OIDC issuer URL whose `.well-known/openid-configuration` is fetched first.
9605
+ * @param input.fallbackBaseUrl - Optional sibling base URL appended after the issuer-prefixed and origin-rooted candidates.
9606
+ * @returns The candidate URL list in probe order, de-duplicated.
9607
+ *
9608
+ * @__NO_SIDE_EFFECTS__
9609
+ */ function buildOidcDiscoveryCandidates(input) {
9610
+ var candidates = [
9611
+ "".concat(trimSlash(input.issuer), "/.well-known/openid-configuration")
9612
+ ];
9613
+ try {
9614
+ var originCandidate = "".concat(new URL(input.issuer).origin, "/.well-known/openid-configuration");
9615
+ if (!candidates.includes(originCandidate)) {
9616
+ candidates.push(originCandidate);
9617
+ }
9618
+ } catch (unused) {
9619
+ // Issuer URL didn't parse — skip the origin-rooted candidate and let the explicit fallback handle it.
9620
+ }
9621
+ if (input.fallbackBaseUrl) {
9622
+ var fallbackCandidate = "".concat(trimSlash(input.fallbackBaseUrl), "/.well-known/openid-configuration");
9623
+ if (!candidates.includes(fallbackCandidate)) {
9624
+ candidates.push(fallbackCandidate);
9625
+ }
9626
+ }
9627
+ return candidates;
9628
+ }
9629
+ /**
9630
+ * Returns the input URL string with a single trailing slash removed, if present.
9631
+ *
9632
+ * @param url - The URL string to trim.
9633
+ * @returns The URL without a trailing slash.
9634
+ *
9635
+ * @__NO_SIDE_EFFECTS__
9636
+ */ function trimSlash(url) {
9637
+ return url.endsWith('/') ? url.slice(0, -1) : url;
9638
+ }
9639
+ /**
9640
+ * Builds the authorization URL the user opens in a browser to start the PKCE flow.
9641
+ *
9642
+ * The user-facing endpoint is the discovered `authorizationEndpoint` (typically `/oidc/auth`)
9643
+ * with its origin optionally rebased. The rebase origin is the first non-empty value among
9644
+ * `appClientUrl` → `oidcIssuer` origin → `apiBaseUrl` origin. In a typical single-host
9645
+ * deployment all three resolve to the same origin and the rebase is a no-op; in a split-host
9646
+ * setup (frontend dev server proxying `/oidc/**` to the API) `appClientUrl` redirects the user
9647
+ * through the frontend. When none of the three is provided, the discovered endpoint is used
9648
+ * unchanged.
9649
+ *
9650
+ * Always lands at the actual authorization endpoint so oidc-provider can create an interaction
9651
+ * and redirect to the app login page with a `uid`.
9652
+ *
9653
+ * @param input - The authorization URL inputs.
9654
+ * @param input.authorizationEndpoint - The authorization endpoint discovered from OIDC metadata.
9655
+ * @param input.appClientUrl - Optional client origin to rebase the authorization endpoint onto. Takes precedence over `oidcIssuer` and `apiBaseUrl`.
9656
+ * @param input.oidcIssuer - Optional OIDC issuer URL; falls back to its origin as the rebase target when `appClientUrl` is missing.
9657
+ * @param input.apiBaseUrl - Optional API base URL; falls back to its origin as the rebase target when neither `appClientUrl` nor `oidcIssuer` is set.
9658
+ * @param input.clientId - The OAuth client ID.
9659
+ * @param input.redirectUri - The redirect URI registered with the OAuth client.
9660
+ * @param input.scopes - Space-separated scope list. Defaults to {@link DEFAULT_OIDC_RELYING_PARTY_SCOPE}.
9661
+ * @param input.state - The opaque OAuth state token used for CSRF protection.
9662
+ * @param input.codeChallenge - The PKCE code challenge derived from the verifier.
9663
+ * @returns The full authorization URL with all OAuth params merged in.
9664
+ * @throws {OidcRelyingPartyError} When `requestedSessionTtlSeconds` is provided but is not a positive integer.
9665
+ *
9666
+ * @__NO_SIDE_EFFECTS__
9667
+ */ function buildAuthorizationUrl(input) {
9668
+ var _input_scopes;
9669
+ var resolvedScope = (_input_scopes = input.scopes) !== null && _input_scopes !== void 0 ? _input_scopes : DEFAULT_OIDC_RELYING_PARTY_SCOPE;
9670
+ var authParams = {
9671
+ response_type: 'code',
9672
+ client_id: input.clientId,
9673
+ redirect_uri: input.redirectUri,
9674
+ scope: resolvedScope,
9675
+ code_challenge: input.codeChallenge,
9676
+ code_challenge_method: 'S256',
9677
+ state: input.state
9678
+ };
9679
+ // oidc-provider's check_scope middleware silently strips `offline_access` unless the
9680
+ // auth request also includes `prompt=consent`. Auto-add it so refresh tokens are
9681
+ // actually issued whenever offline access is requested.
9682
+ if (resolvedScope.split(/\s+/).includes('offline_access')) {
9683
+ authParams.prompt = 'consent';
9684
+ }
9685
+ if (input.requestedSessionTtlSeconds != null) {
9686
+ if (!Number.isInteger(input.requestedSessionTtlSeconds) || input.requestedSessionTtlSeconds <= 0) {
9687
+ throw new OidcRelyingPartyError({
9688
+ message: "requestedSessionTtlSeconds must be a positive integer (got ".concat(input.requestedSessionTtlSeconds, ")."),
9689
+ code: 'INVALID_SESSION_TTL'
9690
+ });
9691
+ }
9692
+ authParams.dbx_session_ttl = String(input.requestedSessionTtlSeconds);
9693
+ }
9694
+ var rebaseOrigin = resolveAuthorizationRebaseOrigin({
9695
+ appClientUrl: input.appClientUrl,
9696
+ oidcIssuer: input.oidcIssuer,
9697
+ apiBaseUrl: input.apiBaseUrl
9698
+ });
9699
+ var endpoint = rebaseOrigin ? rebaseUrlOrigin({
9700
+ url: input.authorizationEndpoint,
9701
+ originUrl: rebaseOrigin
9702
+ }) : input.authorizationEndpoint;
9703
+ // Merge into the existing query string (preserving any params already on the endpoint) so
9704
+ // a pre-baked endpoint like `/oidc/auth?source=cli` survives unchanged.
9705
+ var url = new URL(endpoint);
9706
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
9707
+ try {
9708
+ for(var _iterator = Object.entries(authParams)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
9709
+ var _step_value = _sliced_to_array$h(_step.value, 2), key = _step_value[0], value = _step_value[1];
9710
+ url.searchParams.set(key, value);
9711
+ }
9712
+ } catch (err) {
9713
+ _didIteratorError = true;
9714
+ _iteratorError = err;
9715
+ } finally{
9716
+ try {
9717
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
9718
+ _iterator.return();
9719
+ }
9720
+ } finally{
9721
+ if (_didIteratorError) {
9722
+ throw _iteratorError;
9723
+ }
9724
+ }
9725
+ }
9726
+ return url.toString();
9727
+ }
9728
+ /**
9729
+ * Picks the origin used to rebase the discovered authorization endpoint, in priority order:
9730
+ * 1. `appClientUrl` (verbatim — the explicit override)
9731
+ * 2. `oidcIssuer` (parsed `origin`, e.g. `https://api.example.com/oidc` → `https://api.example.com`)
9732
+ * 3. `apiBaseUrl` (parsed `origin`, e.g. `https://api.example.com/api` → `https://api.example.com`)
9733
+ *
9734
+ * Returns `undefined` when none is set or every candidate fails to parse; the caller should then
9735
+ * use the discovered endpoint unchanged.
9736
+ *
9737
+ * @param input - The candidate URLs in priority order.
9738
+ * @returns The selected origin, or `undefined` when no candidate yields one.
9739
+ */ function resolveAuthorizationRebaseOrigin(input) {
9740
+ var result;
9741
+ if (input.appClientUrl) {
9742
+ result = input.appClientUrl;
9743
+ } else {
9744
+ var _input_oidcIssuer;
9745
+ var fallbackSource = (_input_oidcIssuer = input.oidcIssuer) !== null && _input_oidcIssuer !== void 0 ? _input_oidcIssuer : input.apiBaseUrl;
9746
+ if (fallbackSource) {
9747
+ try {
9748
+ result = new URL(fallbackSource).origin;
9749
+ } catch (unused) {
9750
+ // Fall through with result undefined
9751
+ }
9752
+ }
9753
+ }
9754
+ return result;
9755
+ }
9756
+ /**
9757
+ * Returns `url` with its origin replaced by the origin of `originUrl`. The path and search of
9758
+ * `url` are preserved. When `originUrl` is empty/missing or either URL fails to parse, returns
9759
+ * `url` unchanged.
9760
+ *
9761
+ * @param input - The rebase inputs.
9762
+ * @param input.url - The URL whose path/search should be preserved.
9763
+ * @param input.originUrl - The origin to rebase `url` onto.
9764
+ * @returns The rebased URL string, or `input.url` unchanged when rebasing isn't possible.
9765
+ */ function rebaseUrlOrigin(input) {
9766
+ var result = input.url;
9767
+ if (input.originUrl) {
9768
+ try {
9769
+ var parsedUrl = new URL(input.url);
9770
+ var parsedOrigin = new URL(input.originUrl);
9771
+ parsedUrl.protocol = parsedOrigin.protocol;
9772
+ parsedUrl.host = parsedOrigin.host;
9773
+ result = parsedUrl.toString();
9774
+ } catch (unused) {
9775
+ // Fall through with the original url unchanged
9776
+ }
9777
+ }
9778
+ return result;
9779
+ }
9780
+ /**
9781
+ * Generates a fresh PKCE code verifier and the matching SHA-256 code challenge.
9782
+ *
9783
+ * @returns A {@link PkceMaterial} pair consisting of the random `codeVerifier` and its derived `codeChallenge`.
9784
+ */ function generatePkceMaterial() {
9785
+ return _async_to_generator$d(function() {
9786
+ var codeVerifier, codeChallenge;
9787
+ return _ts_generator$d(this, function(_state) {
9788
+ switch(_state.label){
9789
+ case 0:
9790
+ codeVerifier = generatePkceCodeVerifier();
9791
+ return [
9792
+ 4,
9793
+ generatePkceCodeChallenge(codeVerifier)
9794
+ ];
9795
+ case 1:
9796
+ codeChallenge = _state.sent();
9797
+ return [
9798
+ 2,
9799
+ {
9800
+ codeVerifier: codeVerifier,
9801
+ codeChallenge: codeChallenge
9802
+ }
9803
+ ];
9804
+ }
9805
+ });
9806
+ })();
9807
+ }
9808
+ /**
9809
+ * Generates a random URL-safe state value for the OAuth state parameter.
9810
+ *
9811
+ * @returns A 32-character hex string derived from 16 random bytes.
9812
+ */ function generateOAuthState() {
9813
+ var bytes = new Uint8Array(16);
9814
+ crypto.getRandomValues(bytes);
9815
+ return Array.from(bytes, function(b) {
9816
+ return b.toString(16).padStart(2, '0');
9817
+ }).join('');
9818
+ }
9819
+ /**
9820
+ * Parses an authorization code out of a redirect URL or a bare code string.
9821
+ *
9822
+ * Validates the `state` parameter when an expected value is provided.
9823
+ *
9824
+ * @param input - The parse inputs.
9825
+ * @param input.url - The redirect URL or bare authorization code.
9826
+ * @param input.expectedState - Optional state value to assert against `state` when present in the URL.
9827
+ * @returns The {@link ParsedAuthorizationRedirect} containing `code` and (when present) `state`.
9828
+ * @throws {OidcRelyingPartyError} When `url` is empty, when the URL contains no `code` parameter, or when `expectedState` does not match the URL's `state`.
9829
+ */ function parseAuthorizationRedirect(input) {
9830
+ var trimmed = input.url.trim();
9831
+ if (!trimmed) {
9832
+ throw new OidcRelyingPartyError({
9833
+ message: 'No code or redirect URL was provided.',
9834
+ code: 'AUTH_NO_CODE'
9835
+ });
9836
+ }
9837
+ var isUrl = trimmed.startsWith('http://') || trimmed.startsWith('https://') || trimmed.startsWith('urn:');
9838
+ return isUrl ? parseUrlRedirect(trimmed, input.expectedState) : {
9839
+ code: trimmed
9840
+ };
9841
+ }
9842
+ function parseRedirectUrlOrThrow(trimmed) {
9843
+ var url;
9844
+ try {
9845
+ // Native URL doesn't parse all urn: schemes — handle the urn:ietf paste case explicitly
9846
+ url = trimmed.startsWith('urn:') ? new URL("https://placeholder.invalid?".concat(trimmed.split('?').slice(1).join('?'))) : new URL(trimmed);
9847
+ } catch (unused) {
9848
+ throw new OidcRelyingPartyError({
9849
+ message: 'Could not parse redirect URL',
9850
+ code: 'AUTH_REDIRECT_PARSE_FAILED'
9851
+ });
9852
+ }
9853
+ return url;
9854
+ }
9855
+ function throwForUrlMissingCode(url) {
9856
+ var errorParam = url.searchParams.get('error');
9857
+ if (errorParam) {
9858
+ var errorDescription = url.searchParams.get('error_description');
9859
+ var descriptionSuffix = errorDescription ? " (".concat(errorDescription, ")") : '';
9860
+ throw new OidcRelyingPartyError({
9861
+ message: "Authorization server returned an error: ".concat(errorParam).concat(descriptionSuffix),
9862
+ code: 'AUTH_PROVIDER_ERROR'
9863
+ });
9864
+ }
9865
+ throw new OidcRelyingPartyError({
9866
+ message: 'No `code` parameter found in the redirect URL.',
9867
+ code: 'AUTH_NO_CODE'
9868
+ });
9869
+ }
9870
+ function parseUrlRedirect(trimmed, expectedState) {
9871
+ var _url_searchParams_get;
9872
+ var url = parseRedirectUrlOrThrow(trimmed);
9873
+ var code = url.searchParams.get('code');
9874
+ if (!code) {
9875
+ throwForUrlMissingCode(url);
9876
+ }
9877
+ var state = (_url_searchParams_get = url.searchParams.get('state')) !== null && _url_searchParams_get !== void 0 ? _url_searchParams_get : undefined;
9878
+ if (expectedState && state !== expectedState) {
9879
+ throw new OidcRelyingPartyError({
9880
+ message: 'OAuth state mismatch — possible CSRF or stale flow.',
9881
+ code: 'INVALID_STATE'
9882
+ });
9883
+ }
9884
+ return {
9885
+ code: code,
9886
+ state: state
9887
+ };
9888
+ }
9889
+
9311
9890
  function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
9312
9891
  try {
9313
9892
  var info = gen[key](arg);
@@ -25588,4 +26167,4 @@ function classifyRemainingSegments(config) {
25588
26167
  ];
25589
26168
  }
25590
26169
 
25591
- export { ALL_DOUBLE_SLASHES_REGEX, ALL_SLASHES_REGEX, ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX, ALL_TIME_UNITS, APPLICATION_FILE_EXTENSION_TO_MIME_TYPES_RECORD, APPLICATION_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, ASSERTION_ERROR_CODE, ASSERTION_HANDLER, AUTH_ADMIN_ROLE, AUTH_ONBOARDED_ROLE, AUTH_TOS_SIGNED_ROLE, AUTH_USER_ROLE, AbstractUniqueModel, Assert, AssertMax, AssertMin, AssertionError, AssertionIssueHandler, BooleanStringKeyArrayUtility, CANONICAL_KINDS, CATCH_ALL_HANDLE_RESULT_KEY, COMMA_JOINER, COMMA_STRING_SPLIT_JOIN, CSV_MIME_TYPE, CUT_VALUE_TO_ZERO_PRECISION, DASH_CHARACTER_PREFIX_INSTANCE, DATE_NOW_VALUE, DAYS_IN_WEEK, DAYS_IN_YEAR, DEFAULT_AUTH_ROLE_CLAIMS_CLAIM_VALUE, DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE, DEFAULT_CUT_STRING_END_TEXT, DEFAULT_ENCRYPTED_FIELD_PREFIX, DEFAULT_LAT_LNG_STRING_VALUE, DEFAULT_NAME_TO_INITIALS_MAX_INITIALS, DEFAULT_NAME_TO_INITIALS_MIN_INITIALS, DEFAULT_NUMBER_STRING_DENCODER_64_NEGATIVE_PREFIX, DEFAULT_RANDOM_EMAIL_FACTORY_CONFIG, DEFAULT_RANDOM_PHONE_NUMBER_FACTORY_CONFIG, DEFAULT_READABLE_ERROR_CODE, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTERS, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTER_REPLACEMENT, DEFAULT_SLASH_PATH_PATH_MATCHER_NON_MATCHING_FILL_VALUE, DEFAULT_UNKNOWN_MODEL_TYPE_STRING, DOCUMENT_FILE_EXTENSION_TO_MIME_TYPES_RECORD, DOCUMENT_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, DOCX_MIME_TYPE, DOLLAR_AMOUNT_PRECISION, DOLLAR_AMOUNT_STRING_REGEX, DataDoesNotExistError, DataIsExpiredError, Day, DestroyFunctionObject, E164PHONE_NUMBER_REGEX, E164PHONE_NUMBER_WITH_EXTENSION_REGEX, E164PHONE_NUMBER_WITH_OPTIONAL_EXTENSION_REGEX, ExploreTreeVisitNodeDecision, FINAL_PAGE, FIRST_PAGE, FRACTIONAL_HOURS_PRECISION_FUNCTION, FlattenTreeAddNodeDecision, FullStorageObject, GIF_MIME_TYPE, HAS_PORT_NUMBER_REGEX, HAS_WEBSITE_DOMAIN_NAME_REGEX, HEIF_MIME_TYPE, HEX_PATTERN, HOURS_IN_DAY, HOUR_OF_DAY_MAXMIMUM, HOUR_OF_DAY_MINIUMUM, HTML_MIME_TYPE, HTTP_OR_HTTPS_REGEX, HashSet, IMAGE_FILE_EXTENSION_TO_MIME_TYPES_RECORD, IMAGE_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, ISO8601_DAY_STRING_REGEX, ISO8601_DAY_STRING_START_REGEX, ISO_8601_DATE_STRING_REGEX, JPEG_MIME_TYPE, JPEG_MIME_TYPES, JPG_MIME_TYPE, JSON_MIME_TYPE, KeyValueTypleValueFilter, LAT_LNG_PATTERN, LAT_LNG_PATTERN_MAX_PRECISION, LAT_LONG_100KM_PRECISION, LAT_LONG_100M_PRECISION, LAT_LONG_10CM_PRECISION, LAT_LONG_10KM_PRECISION, LAT_LONG_10M_PRECISION, LAT_LONG_1CM_PRECISION, LAT_LONG_1KM_PRECISION, LAT_LONG_1MM_PRECISION, LAT_LONG_1M_PRECISION, LAT_LONG_GRAINS_OF_SAND_PRECISION, LEADING_SLASHES_REGEX, MAP_IDENTITY, MARKDOWN_MIME_TYPE, MAX_BITWISE_SET_SIZE, MAX_LATITUDE_VALUE, MAX_LONGITUDE_VALUE, MINUTES_IN_DAY, MINUTES_IN_HOUR, MINUTE_OF_DAY_MAXMIMUM, MINUTE_OF_DAY_MINIUMUM, MIN_LATITUDE_VALUE, MIN_LONGITUDE_VALUE, MONTH_DAY_SLASH_DATE_STRING_REGEX, MS_IN_DAY, MS_IN_HOUR, MS_IN_MINUTE, MS_IN_SECOND, MS_IN_WEEK, MemoryStorageInstance, ModelRelationUtility, NOOP_MODIFIER, NUMBER_STRING_DENCODER_64, NUMBER_STRING_DENCODER_64_DIGITS, OAUTH_OOB_REDIRECT_URI, PDF_ENCRYPT_MARKER, PDF_EOF_MARKER, PDF_HEADER, PDF_MIME_TYPE, PHONE_EXTENSION_NUMBER_REGEX, PJPEG_MIME_TYPE, PNG_MIME_TYPE, PRIMATIVE_KEY_DENCODER_VALUE, PropertyDescriptorUtility, RAW_MIME_TYPE, REGEX_SPECIAL_CHARACTERS, REGEX_SPECIAL_CHARACTERS_SET, RelationChange, SECONDS_IN_DAY, SECONDS_IN_HOUR, SECONDS_IN_MINUTE, SHARED_MEMORY_STORAGE, SLASH_PATH_FILE_TYPE_SEPARATOR, SLASH_PATH_SEPARATOR, SORT_VALUE_EQUAL, SORT_VALUE_GREATER_THAN, SORT_VALUE_LESS_THAN, SPACE_JOINER, SPACE_STRING_SPLIT_JOIN, SPLIT_STRING_TREE_NODE_ROOT_VALUE, SVG_MIME_TYPE, ServerErrorResponse, SetDeltaChange, SimpleStorageObject, SlashPathPathMatcherPartCode, StorageObject, StorageObjectUtility, StoredDataError, SyncState, TIFF_MIME_TYPE, TIME_UNIT_LABEL_MAP, TIME_UNIT_SHORT_LABEL_MAP, TOTAL_LATITUDE_RANGE, TOTAL_LONGITUDE_RANGE, TOTAL_SPAN_OF_LONGITUDE, TRAILING_FILE_TYPE_SEPARATORS_REGEX, TRAILING_SLASHES_REGEX, TXT_MIME_TYPE, TimeAM, TimerCancelledError, TypedServiceRegistryInstance, UNLOADED_PAGE, UNSET_INDEX_NUMBER, US_STATE_CODE_STRING_REGEX, UTC_DATE_STRING_REGEX, UTC_TIMEZONE_STRING, UTF_8_START_CHARACTER, UTF_PRIVATE_USAGE_AREA_START, UnauthorizedServerErrorResponse, WEBP_MIME_TYPE, WEBSITE_TLD_DETECTION_REGEX, WEB_PROTOCOL_PREFIX_REGEX, XLSX_MIME_TYPE, XML_MIME_TYPE, YAML_MIME_TYPE, ZIP_CODE_STRING_REGEX, ZIP_FILE_MIME_TYPE, addHttpToUrl, addLatLngPoints, addMilliseconds, addModifiers, addPlusPrefixToNumber, addPrefix, addPrefixFunction, addSuffix, addSuffixFunction, addToSet, addToSetCopy, addToSplitStringTree, addTrailingSlash, allFalsyOrEmptyKeys, allIndexesInIndexRange, allKeyValueTuples, allMaybeSoKeys, allNonUndefinedKeys, allObjectsAreEqual, allValuesAreMaybeNot, allValuesAreNotMaybe, allowValueOnceFilter, applicationFileExtensionForMimeType, applyBestFit, applySplitStringTreeWithMultipleValues, applyToMultipleFields, approximateTimerEndDate, areEqualContext, areEqualPOJOValues, areEqualPOJOValuesUsingPojoFilter, arrayContainsDuplicateValue, arrayContentsDiffer, arrayDecision, arrayDecisionFunction, arrayFactory, arrayInputFactory, arrayToLowercase, arrayToMap, arrayToObject, arrayToUppercase, asArray, asDecisionFunction, asGetter, asIndexRangeCheckFunctionConfig, asIterable, asMinuteOfDay, asNonEmptyArray, asNumber, asObjectCopyFactory, asPromise, asSet, assignValuesToPOJO, assignValuesToPOJOFunction, authClaims, authRoleClaimsService, authRolesSetHasRoles, baseWebsiteUrl, batch, batchCalc, bitwiseObjectDencoder, bitwiseObjectEncoder, bitwiseObjectdecoder, bitwiseSetDecoder, bitwiseSetDencoder, booleanFactory, booleanKeyArrayUtility, boundNumber, boundNumberFunction, boundToRectangle, breadthFirstExploreTreeTraversalFactoryFunction, bufferHasValidPdfMarkings, build, buildCanonicalFilename, cachedGetter, calculateExpirationDate, camelOrPascalToScreamingSnake, capLatValue, capitalizeFirstLetter, caseInsensitiveFilterByIndexOfDecisionFactory, caseInsensitiveString, catchAllHandlerKey, chainMapFunction, chainMapSameFunctions, characterPrefixSuffixInstance, checkAnyHaveExpired, checkAtleastOneNotExpired, classifySpecFile, coerceToEmailParticipants, combineMaps, compareEqualityWithValueFromItemsFunction, compareEqualityWithValueFromItemsFunctionFactory, compareFnOrder, compareStrings, compareStringsNumeric, compareWithMappedValuesFunction, computeNextFractionalHour, computeNextFreeIndexFunction, computeNextFreeIndexOnSortedValuesFunction, concatArrays, concatArraysUnique, containsAllStringsAnyCase, containsAllValues, containsAnyStringAnyCase, containsAnyValue, containsAnyValueFromSet, containsNoValueFromSet, containsNoneOfValue, containsStringAnyCase, convertEmailParticipantStringToParticipant, convertMaybeToArray, convertMaybeToNonEmptyArray, convertParticipantToEmailParticipantString, convertTimeDuration, convertToArray, copyArray, copyField, copyLatLngBound, copyLatLngPoint, copyObject, copySetAndDo, countAllInNestedArray, countPOJOKeys, countPOJOKeysFunction, cronExpressionRepeatingEveryNMinutes, cssClassesSet, cssTokenVar, cssVariableVar, cutString, cutStringFunction, cutToPrecision, cutValueToInteger, cutValueToPrecision, cutValueToPrecisionFunction, dateFromDateOrTimeMillisecondsNumber, dateFromDateOrTimeSecondsNumber, dateFromLogicalDate, dateFromMinuteOfDay, dateOrMillisecondsToDate, dateToHoursAndMinutes, dateToMinuteOfDay, dayOfWeek, daysOfWeekArray, daysOfWeekFromEnabledDays, daysOfWeekNameFunction, daysOfWeekNameMap, decisionFunction, decodeHashedValues, decodeHashedValuesWithDecodeMap, decodeModelKeyTypePair, decodeRadix36Number, defaultFilterFromPOJOFunctionNoCopy, defaultForwardFunctionFactory, defaultLatLngPoint, defaultLatLngString, dencodeBitwiseSet, depthFirstExploreTreeTraversalFactoryFunction, diffLatLngBoundPoints, diffLatLngPoints, documentFileExtensionForMimeType, dollarAmountString, dollarAmountStringWithUnitFunction, e164PhoneNumberExtensionPair, e164PhoneNumberFromE164PhoneNumberExtensionPair, enabledDaysFromDaysOfWeek, encodeBitwiseSet, encodeModelKeyTypePair, encodeRadix36Number, errorMessageContainsString, errorMessageContainsStringFunction, escapeStringCharactersFunction, escapeStringForRegex, excludeValues, excludeValuesFromArray, excludeValuesFromSet, existsInIterable, expandArrayMapTuples, expandArrayValueTuples, expandFlattenTreeFunction, expandIndexSet, expandSlashPathPathMatcherPartToDecisionFunctions, expandTreeFunction, expandTrees, expirationDetails, exploreTreeFunction, exponentialPromiseRateLimiter, extendLatLngBound, fileExtensionForMimeType, filterAndMapFunction, filterEmptyArrayValues, filterEmptyPojoValues, filterFalsyAndEmptyValues, filterFromIterable, filterFromPOJO, filterFromPOJOFunction, filterKeyValueTupleFunction, filterKeyValueTuples, filterKeyValueTuplesFunction, filterKeyValueTuplesInputToFilter, filterKeysOnPOJOFunction, filterMaybeArrayFunction, filterMaybeArrayValues, filterNullAndUndefinedValues, filterOnlyUndefinedValues, filterTuplesOnPOJOFunction, filterUndefinedValues, filterUniqueByIndex, filterUniqueCaseInsensitiveStrings, filterUniqueFunction, filterUniqueTransform, filterUniqueValues, filterValuesByDistance, filterValuesByDistanceNoOrder, filterValuesToSet, filterValuesUsingSet, filteredPage, findAllCharacterOccurences, findAllCharacterOccurencesFunction, findBest, findBestIndexMatch, findBestIndexMatchFunction, findBestIndexSetPair, findBestSplitStringTreeChildMatch, findBestSplitStringTreeChildMatchPath, findBestSplitStringTreeMatch, findBestSplitStringTreeMatchPath, findFirstCharacterOccurence, findInIterable, findIndexOfFirstDuplicateValue, findItemsByIndex, findNext, findPOJOKeys, findPOJOKeysFunction, findStringsRegexString, findToIndexSet, findValuesFrom, firstAndLastCharacterOccurrence, firstAndLastValue, firstValue, firstValueFromIterable, fitToIndexRangeFunction, fixExtraQueryParameters, fixMultiSlashesInSlashPath, flattenArray, flattenArrayOrValueArray, flattenArrayToSet, flattenArrayUnique, flattenArrayUniqueCaseInsensitiveStrings, flattenObject, flattenTree, flattenTreeToArray, flattenTreeToArrayFunction, flattenWhitespace, forEachInIterable, forEachKeyValue, forEachKeyValueOnPOJOFunction, forEachWithArray, forwardFunction, fractionalHoursToMinutes, generateIfDoesNotExist, generatePkceCodeChallenge, generatePkceCodeVerifier, getArrayNextIndex, getBaseLog, getDayOffset, getDayTomorrow, getDayYesterday, getDaysOfWeekNames, getFunctionType, getNextDay, getNextPageNumber, getOverlappingRectangle, getPageNumber, getPreviousDay, getValueFromGetter, groupValues, handlerBindAccessor, handlerConfigurerFactory, handlerFactory, handlerMappedSetFunction, handlerMappedSetFunctionFactory, handlerSetFunction, hasDifferentStringsNoCase, hasDifferentValues, hasHttpPrefix, hasNonNullValue, hasPortNumber, hasSameTimezone, hasSameValues, hasValueFunction, hasValueOrNotEmpty, hasValueOrNotEmptyObject, hasWebsiteDomain, hasWebsiteTopLevelDomain, hashSetForIndexed, hashStringToNumber, hourToFractionalHour, hoursAndMinutesToString, hoursAndMinutesToTimeUnit, idBatchFactory, imageFileExtensionForMimeType, inMemoryAsyncKeyedValueCache, inMemoryAsyncValueCache, incrementingNumberFactory, indexDeltaGroup, indexDeltaGroupFunction, indexRange, indexRangeCheckFunction, indexRangeCheckReaderFunction, indexRangeForArray, indexRangeOverlapsIndexRange, indexRangeOverlapsIndexRangeFunction, indexRangeReaderPairFactory, indexRefMap, indexedValuesArrayAccessorFactory, insertIntoBooleanKeyArray, invertBooleanReturnFunction, invertDecision, invertFilter, invertMaybeBoolean, invertStringRecord, isAllowed, isClassLikeType, isCompleteUnitedStatesAddress, isConsideredUtcTimezoneString, isDate, isDefaultLatLngPoint, isDefaultLatLngPointValue, isDefaultReadableError, isDefinedAndNotFalse, isDollarAmountString, isE164PhoneNumber, isE164PhoneNumberWithExtension, isEmptyIterable, isEqualContext, isEqualDate, isEqualToValueDecisionFunction, isEvenNumber, isExpired, isFalseBooleanKeyArray, isFinalPage, isGetter, isHex, isHexWithByteLength, isHourOfDay, isISO8601DateString, isISO8601DayString, isISO8601DayStringStart, isInAllowedDaysOfWeekSet, isInNumberBoundFunction, isInSetDecisionFunction, isIndexNumberInIndexRange, isIndexNumberInIndexRangeFunction, isIndexRangeInIndexRange, isIndexRangeInIndexRangeFunction, isIterable, isKnownHttpWebsiteProtocol, isLatLngBound, isLatLngBoundWithinLatLngBound, isLatLngPoint, isLatLngPointWithinLatLngBound, isLatLngString, isLogicalDateStringCode, isMapIdentityFunction, isMaybeNot, isMaybeNotOrTrue, isMaybeSo, isMinuteOfDay, isModelKey, isMonthDaySlashDate, isNonClassFunction, isNotFalse, isNotNullOrEmptyString, isNumberDivisibleBy, isObjectWithConstructor, isOddNumber, isPast, isPdfPasswordProtected, isPromise, isPromiseLike, isSameLatLngBound, isSameLatLngPoint, isSameNonNullValue, isSameVector, isSelectedDecisionFunctionFactory, isSelectedIndexDecisionFunction, isServerError, isSlashPathFile, isSlashPathFolder, isSlashPathTypedFile, isStandardInternetAccessibleWebsiteUrl, isStringOrTrue, isThrottled, isTrueBooleanKeyArray, isUTCDateString, isUnderThreshold, isUniqueKeyedFunction, isUsStateCodeString, isValidLatLngPoint, isValidLatitude, isValidLongitude, isValidNumberBound, isValidPhoneExtensionNumber, isValidSlashPath, isWebsiteUrl, isWebsiteUrlWithPrefix, isWithinLatLngBoundFunction, isolateSlashPath, isolateSlashPathFunction, isolateWebsitePathFunction, itemCountForBatchIndex, iterableToArray, iterableToMap, iterableToSet, iterablesAreSetEquivalent, iterate, iterateFilteredPages, joinHostAndPort, joinStrings, joinStringsInstance, joinStringsWithCommas, joinStringsWithSpaces, keepCharactersAfterFirstCharacterOccurence, keepCharactersAfterFirstCharacterOccurenceFunction, keepFromSetCopy, keepValuesFromArray, keepValuesFromSet, keyValueMapFactory, labeledValueMap, lastValue, latLngBound, latLngBoundCenterPoint, latLngBoundEastBound, latLngBoundFromInput, latLngBoundFullyWrapsMap, latLngBoundFunction, latLngBoundNorthBound, latLngBoundNorthEastPoint, latLngBoundNorthWestPoint, latLngBoundOverlapsLatLngBound, latLngBoundSouthBound, latLngBoundSouthEastPoint, latLngBoundSouthWestPoint, latLngBoundStrictlyWrapsMap, latLngBoundTuple, latLngBoundTupleFunction, latLngBoundWestBound, latLngBoundWrapsMap, latLngDataPointFunction, latLngPoint, latLngPointFromString, latLngPointFunction, latLngPointPrecisionFunction, latLngString, latLngStringFunction, latLngTuple, latLngTupleFunction, limitArray, lonLatTuple, lowercaseFirstLetter, mailToUrlString, makeBestFit, makeCopyModelFieldFunction, makeDateMonthForMonthOfYear, makeDefaultNonConcurrentTaskKeyFactory, makeGetter, makeHandler, makeHashDecodeMap, makeKeyPairs, makeModelConversionFieldValuesFunction, makeModelMap, makeModelMapFunctions, makeMultiModelKeyMap, makeTimer, makeValuesGroupMap, makeWithFactory, makeWithFactoryInput, mapArrayFunction, mapFunctionOutput, mapFunctionOutputPair, mapGetter, mapGetterFactory, mapIdentityFunction, mapIterable, mapKeysIntersectionObjectToArray, mapMaybeFunction, mapObjectKeysFunction, mapObjectKeysToLowercase, mapObjectMap, mapObjectMapFunction, mapObjectToTargetObject, mapPromiseOrValue, mapToObject, mapToTuples, mapValuesToSet, mappedUseAsyncFunction, mappedUseFunction, mapsHaveSameKeys, maybeMergeModelModifiers, maybeMergeModifiers, maybeModifierMapToFunction, maybeSet, memoizeAsyncKeyedValueCache, memoizeAsyncValueCache, mergeArrays, mergeArraysIntoArray, mergeAsyncKeyedValueCaches, mergeAsyncValueCaches, mergeFilterFunctions, mergeModifiers, mergeObjects, mergeObjectsFunction, mergeSlashPaths, messageFromError, millisecondsToMinutes, millisecondsToMinutesAndSeconds, millisecondsToTimeUnit, mimeTypeForApplicationFileExtension, mimeTypeForDocumentFileExtension, mimeTypeForFileExtension, mimeTypeForImageFileExtension, minAndMaxFunction, minAndMaxIndex, minAndMaxIndexFunction, minAndMaxIndexItemsFunction, minAndMaxNumber, minutesToFractionalHours, minutesToHoursAndMinutes, modelFieldConversions, modelFieldMapFunction, modelFieldMapFunctions, modelTypeDataPairFactory, modifier, modifierMapToFunction, modifyModelMapFunction, modifyModelMapFunctions, monthDaySlashDateToDateString, monthOfYearFromDate, monthOfYearFromDateMonth, monthOfYearFromUTCDate, multiKeyValueMapFactory, multiValueMapBuilder, nameToInitials, nameToInitialsFactory, neMostLatLngPoint, nearestDivisibleValues, noop, numberStringDencoder, numberStringDencoderDecodedNumberValueFunction, numberStringDencoderEncodedStringValueFunction, numberStringDencoderFunction, objectCopyFactory, objectDeltaArrayCompressor, objectFieldEqualityChecker, objectFlatMergeMatrix, objectHasKey, objectHasKeys, objectHasNoKeys, objectIsEmpty, objectKeyEqualityComparatorFunction, objectKeysEqualityComparatorFunction, objectMergeMatrix, objectToMap, overlapsLatLngBoundFunction, overrideInObject, overrideInObjectFunctionFactory, padStartFunction, pairGroupValues, parseISO8601DayStringToUTCDate, partialServerError, MAP_IDENTITY as passThrough, percentNumberFromDecimal, percentNumberToDecimal, performAsyncTask, performAsyncTasks, performBatchLoop, performMakeLoop, performTaskCountLoop, performTaskLoop, performTasksFromFactoryInParallelFunction, performTasksInParallel, performTasksInParallelFunction, pickOneRandomly, poll, primativeKeyDencoder, primativeKeyDencoderMap, primativeKeyStringDencoder, primativeValuesDelta, promiseReference, protectedFactory, pushArrayItemsIntoArray, pushElementOntoArray, pushItemOrArrayItemsIntoArray, randomArrayFactory, randomArrayIndex, randomBoolean, randomEmailFactory, randomFromArrayFactory, randomLatLngFactory, randomLatLngFromCenterFactory, randomNumber, randomNumberFactory, randomPhoneNumberFactory, randomPickFactory, range, rangedIndexedValuesArrayAccessorFactory, rangedIndexedValuesArrayAccessorInfoFactory, readBooleanKeySafetyWrap, readDomainFromEmailAddress, readDomainsFromEmailAddresses, readEmailDomainFromUrlOrEmailAddress, readIndexNumber, readKeysFrom, readKeysFromFilterUniqueFunctionAdditionalKeys, readKeysFromFilterUniqueFunctionAdditionalKeysInput, readKeysFunction, readKeysSetFrom, readKeysSetFunction, readKeysToMap, readModelKey, readModelKeyFromObject, readModelKeys, readModelKeysFromObjects, readMultipleKeysToMap, readPortNumber, readUniqueModelKey, readWebsiteProtocol, readableError, readableStreamToBase64, readableStreamToBuffer, readableStreamToStringFunction, recommendBucketsForGroup, recommendSpecPath, rectangleOverlapsRectangle, reduceBooleansFn, reduceBooleansWithAnd, reduceBooleansWithAndFn, reduceBooleansWithOr, reduceBooleansWithOrFn, reduceNumbers, reduceNumbersFn, reduceNumbersWithAdd, reduceNumbersWithAddFn, reduceNumbersWithMax, reduceNumbersWithMaxFn, reduceNumbersWithMin, reduceNumbersWithMinFn, removeByKeyFromBooleanKeyArray, removeCharactersAfterFirstCharacterOccurence, removeCharactersAfterFirstCharacterOccurenceFunction, removeExtensionFromPhoneNumber, removeFirstMatchingSuffix, removeFromBooleanKeyArray, removeFromSet, removeFromSetCopy, removeHttpFromUrl, removeModelsWithKey, removeModelsWithSameKey, removeModifiers, removeSuffix, removeTrailingFileTypeSeparators, removeTrailingSlashes, removeValuesAtIndexesFromArrayCopy, removeWebProtocolPrefix, repeatString, replaceCharacterAtIndexIf, replaceCharacterAtIndexWith, replaceInvalidFilePathTypeSeparatorsInSlashPath, replaceInvalidFilePathTypeSeparatorsInSlashPathFunction, replaceLastCharacterIf, replaceLastCharacterIfIsFunction, replaceMultipleFilePathsInSlashPath, replaceStringsFunction, requireModelKey, resetPeriodPromiseRateLimiter, restoreOrder, restoreOrderWithValues, reverseCompareFn, roundNumberToStepFunction, roundNumberUpToStep, roundToPrecision, roundToPrecisionFunction, roundingFunction, runAsyncTaskForValue, runAsyncTasksForValues, runNamedAsyncTasks, runNamedAsyncTasksFunction, safeCompareEquality, safeEqualityComparatorFunction, safeFindBestIndexMatch, screamingSnakeToCamelCase, searchStringFilterFunction, secondsToMinutesAndSeconds, selectiveFieldEncryptor, separateValues, separateValuesToSets, sequentialIncrementingNumberStringModelIdFactory, serverError, setContainsAllValues, setContainsAnyValue, setContainsNoneOfValue, setDeltaChangeKeys, setDeltaFunction, setHasValueFunction, setIncludes, setIncludesFunction, setKeysOnMap, setWebProtocolPrefix, setsAreEquivalent, simpleSortValuesFunctionWithSortRef, simplifyWhitespace, slashPathDetails, slashPathDirectoryTree, slashPathFactory, slashPathFolder, slashPathFolderFactory, slashPathInvalidError, slashPathName, slashPathParts, slashPathPathMatcher, slashPathPathMatcherConfig, slashPathStartTypeFactory, slashPathSubPathMatcher, slashPathType, slashPathValidationFactory, sliceIndexRangeFunction, sliceStringFunction, sortAscendingIndexNumberRefFunction, sortByIndexAscendingCompareFunction, sortByIndexRangeAscendingCompareFunction, sortByLabelFunction, sortByNumberFunction, sortByStringFunction, sortCompareNumberFunction, sortNumbersAscendingFunction, sortValues, sortValuesFunctionOrMapIdentityWithSortRef, sortValuesFunctionWithSortRef, spaceSeparatedCssClasses, splitCommaSeparatedString, splitCommaSeparatedStringToSet, splitFront, splitJoinNameString, splitJoinRemainder, splitStringAtFirstCharacterOccurence, splitStringAtFirstCharacterOccurenceFunction, splitStringAtIndex, splitStringTreeFactory, startOfDayForSystemDateInUTC, startOfDayForUTCDateInUTC, stepsFromIndex, stepsFromIndexFunction, stringCharactersToIndexRecord, stringContains, stringFactoryFromFactory, stringFromDateFactory, stringFromTimeFactory, stringSplitJoinInstance, stringToBoolean, stringToLowercaseFunction, stringToUppercaseFunction, stringTrimFunction, stripObject, stripObjectFunction, sumOfIntegersBetween, swMostLatLngPoint, symmetricDifferenceArray, symmetricDifferenceArrayBetweenSets, symmetricDifferenceWithModels, takeFront, takeLast, takeValuesFromIterable, telUrlString, telUrlStringForE164PhoneNumberPair, terminatingFactoryFromArray, throwKeyIsRequired, timeDurationToHoursAndMinutes, timeDurationToMilliseconds, timePeriodCounter, timeUnitToMilliseconds, toAbsoluteSlashPathStartType, toCaseInsensitiveStringArray, toMinuteOfDay, toModelFieldConversions, toModelMapFunctions, toReadableError, toRelativeSlashPathStartType, toggleInSet, toggleInSetCopy, toggleTimerRunning, transformNumberFunction, transformNumberFunctionConfig, transformStringFunction, transformStringFunctionConfig, transformStrings, trimArray, trueOrFalseString, tryConvertToE164PhoneNumber, tryWithPromiseFactoriesFunction, typedServiceRegistry, unique, uniqueCaseInsensitiveStrings, uniqueCaseInsensitiveStringsSet, uniqueKeys, uniqueModels, unitedStatesAddressString, unixDateTimeSecondsNumberForNow, unixDateTimeSecondsNumberFromDate, unixDateTimeSecondsNumberFromDateOrTimeNumber, unixDateTimeSecondsNumberToDate, unixMillisecondsNumberToDate, updateMaybeValue, urlWithoutParameters, useAsync, useCallback, useContextFunction, useIterableOrValue, useModelOrKey, usePromise, useValue, validLatLngPoint, validLatLngPointFunction, valueAtIndex, valuesAreBothNullishOrEquivalent, valuesFromPOJO, valuesFromPOJOFunction, vectorMinimumSizeResizeFunction, vectorsAreEqual, waitForMs, websiteDomainAndPathPair, websiteDomainAndPathPairFromWebsiteUrl, websitePathAndQueryPair, websitePathFromWebsiteDomainAndPath, websitePathFromWebsiteUrl, websiteUrlDetails, websiteUrlFromPaths, wrapIndexRangeFunction, wrapLatLngPoint, wrapLngValue, wrapMapFunctionOutput, wrapNumberFunction, wrapTuples, wrapUseAsyncFunction, wrapUseFunction };
26170
+ export { ALL_DOUBLE_SLASHES_REGEX, ALL_SLASHES_REGEX, ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX, ALL_TIME_UNITS, APPLICATION_FILE_EXTENSION_TO_MIME_TYPES_RECORD, APPLICATION_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, ASSERTION_ERROR_CODE, ASSERTION_HANDLER, AUTH_ADMIN_ROLE, AUTH_ONBOARDED_ROLE, AUTH_TOS_SIGNED_ROLE, AUTH_USER_ROLE, AbstractUniqueModel, Assert, AssertMax, AssertMin, AssertionError, AssertionIssueHandler, BooleanStringKeyArrayUtility, CANONICAL_KINDS, CATCH_ALL_HANDLE_RESULT_KEY, COMMA_JOINER, COMMA_STRING_SPLIT_JOIN, CSV_MIME_TYPE, CUT_VALUE_TO_ZERO_PRECISION, DASH_CHARACTER_PREFIX_INSTANCE, DATE_NOW_VALUE, DAYS_IN_WEEK, DAYS_IN_YEAR, DEFAULT_AUTH_ROLE_CLAIMS_CLAIM_VALUE, DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE, DEFAULT_CUT_STRING_END_TEXT, DEFAULT_ENCRYPTED_FIELD_PREFIX, DEFAULT_LAT_LNG_STRING_VALUE, DEFAULT_NAME_TO_INITIALS_MAX_INITIALS, DEFAULT_NAME_TO_INITIALS_MIN_INITIALS, DEFAULT_NUMBER_STRING_DENCODER_64_NEGATIVE_PREFIX, DEFAULT_OIDC_RELYING_PARTY_SCOPE, DEFAULT_RANDOM_EMAIL_FACTORY_CONFIG, DEFAULT_RANDOM_PHONE_NUMBER_FACTORY_CONFIG, DEFAULT_READABLE_ERROR_CODE, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTERS, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTER_REPLACEMENT, DEFAULT_SLASH_PATH_PATH_MATCHER_NON_MATCHING_FILL_VALUE, DEFAULT_UNKNOWN_MODEL_TYPE_STRING, DOCUMENT_FILE_EXTENSION_TO_MIME_TYPES_RECORD, DOCUMENT_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, DOCX_MIME_TYPE, DOLLAR_AMOUNT_PRECISION, DOLLAR_AMOUNT_STRING_REGEX, DataDoesNotExistError, DataIsExpiredError, Day, DestroyFunctionObject, E164PHONE_NUMBER_REGEX, E164PHONE_NUMBER_WITH_EXTENSION_REGEX, E164PHONE_NUMBER_WITH_OPTIONAL_EXTENSION_REGEX, ExploreTreeVisitNodeDecision, FINAL_PAGE, FIRST_PAGE, FRACTIONAL_HOURS_PRECISION_FUNCTION, FlattenTreeAddNodeDecision, FullStorageObject, GIF_MIME_TYPE, HAS_PORT_NUMBER_REGEX, HAS_WEBSITE_DOMAIN_NAME_REGEX, HEIF_MIME_TYPE, HEX_PATTERN, HOURS_IN_DAY, HOUR_OF_DAY_MAXMIMUM, HOUR_OF_DAY_MINIUMUM, HTML_MIME_TYPE, HTTP_OR_HTTPS_REGEX, HashSet, IMAGE_FILE_EXTENSION_TO_MIME_TYPES_RECORD, IMAGE_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, IMPERSONATION_URL_QUERY_PARAM, ISO8601_DAY_STRING_REGEX, ISO8601_DAY_STRING_START_REGEX, ISO_8601_DATE_STRING_REGEX, JPEG_MIME_TYPE, JPEG_MIME_TYPES, JPG_MIME_TYPE, JSON_MIME_TYPE, KeyValueTypleValueFilter, LAT_LNG_PATTERN, LAT_LNG_PATTERN_MAX_PRECISION, LAT_LONG_100KM_PRECISION, LAT_LONG_100M_PRECISION, LAT_LONG_10CM_PRECISION, LAT_LONG_10KM_PRECISION, LAT_LONG_10M_PRECISION, LAT_LONG_1CM_PRECISION, LAT_LONG_1KM_PRECISION, LAT_LONG_1MM_PRECISION, LAT_LONG_1M_PRECISION, LAT_LONG_GRAINS_OF_SAND_PRECISION, LEADING_SLASHES_REGEX, MAP_IDENTITY, MARKDOWN_MIME_TYPE, MAX_BITWISE_SET_SIZE, MAX_LATITUDE_VALUE, MAX_LONGITUDE_VALUE, MINUTES_IN_DAY, MINUTES_IN_HOUR, MINUTE_OF_DAY_MAXMIMUM, MINUTE_OF_DAY_MINIUMUM, MIN_LATITUDE_VALUE, MIN_LONGITUDE_VALUE, MONTH_DAY_SLASH_DATE_STRING_REGEX, MS_IN_DAY, MS_IN_HOUR, MS_IN_MINUTE, MS_IN_SECOND, MS_IN_WEEK, MemoryStorageInstance, ModelRelationUtility, NOOP_MODIFIER, NUMBER_STRING_DENCODER_64, NUMBER_STRING_DENCODER_64_DIGITS, OAUTH_OOB_REDIRECT_URI, OidcRelyingPartyError, PDF_ENCRYPT_MARKER, PDF_EOF_MARKER, PDF_HEADER, PDF_MIME_TYPE, PHONE_EXTENSION_NUMBER_REGEX, PJPEG_MIME_TYPE, PNG_MIME_TYPE, PRIMATIVE_KEY_DENCODER_VALUE, PropertyDescriptorUtility, RAW_MIME_TYPE, REGEX_SPECIAL_CHARACTERS, REGEX_SPECIAL_CHARACTERS_SET, RelationChange, SECONDS_IN_DAY, SECONDS_IN_HOUR, SECONDS_IN_MINUTE, SHARED_MEMORY_STORAGE, SLASH_PATH_FILE_TYPE_SEPARATOR, SLASH_PATH_SEPARATOR, SORT_VALUE_EQUAL, SORT_VALUE_GREATER_THAN, SORT_VALUE_LESS_THAN, SPACE_JOINER, SPACE_STRING_SPLIT_JOIN, SPLIT_STRING_TREE_NODE_ROOT_VALUE, SVG_MIME_TYPE, ServerErrorResponse, SetDeltaChange, SimpleStorageObject, SlashPathPathMatcherPartCode, StorageObject, StorageObjectUtility, StoredDataError, SyncState, TIFF_MIME_TYPE, TIME_UNIT_LABEL_MAP, TIME_UNIT_SHORT_LABEL_MAP, TOTAL_LATITUDE_RANGE, TOTAL_LONGITUDE_RANGE, TOTAL_SPAN_OF_LONGITUDE, TRAILING_FILE_TYPE_SEPARATORS_REGEX, TRAILING_SLASHES_REGEX, TXT_MIME_TYPE, TimeAM, TimerCancelledError, TypedServiceRegistryInstance, UNLOADED_PAGE, UNSET_INDEX_NUMBER, US_STATE_CODE_STRING_REGEX, UTC_DATE_STRING_REGEX, UTC_TIMEZONE_STRING, UTF_8_START_CHARACTER, UTF_PRIVATE_USAGE_AREA_START, UnauthorizedServerErrorResponse, WEBP_MIME_TYPE, WEBSITE_TLD_DETECTION_REGEX, WEB_PROTOCOL_PREFIX_REGEX, XLSX_MIME_TYPE, XML_MIME_TYPE, YAML_MIME_TYPE, ZIP_CODE_STRING_REGEX, ZIP_FILE_MIME_TYPE, addHttpToUrl, addLatLngPoints, addMilliseconds, addModifiers, addPlusPrefixToNumber, addPrefix, addPrefixFunction, addSuffix, addSuffixFunction, addToSet, addToSetCopy, addToSplitStringTree, addTrailingSlash, allFalsyOrEmptyKeys, allIndexesInIndexRange, allKeyValueTuples, allMaybeSoKeys, allNonUndefinedKeys, allObjectsAreEqual, allValuesAreMaybeNot, allValuesAreNotMaybe, allowValueOnceFilter, applicationFileExtensionForMimeType, applyBestFit, applySplitStringTreeWithMultipleValues, applyToMultipleFields, approximateTimerEndDate, areEqualContext, areEqualPOJOValues, areEqualPOJOValuesUsingPojoFilter, arrayContainsDuplicateValue, arrayContentsDiffer, arrayDecision, arrayDecisionFunction, arrayFactory, arrayInputFactory, arrayToLowercase, arrayToMap, arrayToObject, arrayToUppercase, asArray, asDecisionFunction, asGetter, asIndexRangeCheckFunctionConfig, asIterable, asMinuteOfDay, asNonEmptyArray, asNumber, asObjectCopyFactory, asPromise, asSet, assignValuesToPOJO, assignValuesToPOJOFunction, authClaims, authRoleClaimsService, authRolesSetHasRoles, baseWebsiteUrl, batch, batchCalc, bitwiseObjectDencoder, bitwiseObjectEncoder, bitwiseObjectdecoder, bitwiseSetDecoder, bitwiseSetDencoder, booleanFactory, booleanKeyArrayUtility, boundNumber, boundNumberFunction, boundToRectangle, breadthFirstExploreTreeTraversalFactoryFunction, bufferHasValidPdfMarkings, build, buildAuthorizationUrl, buildCanonicalFilename, buildOidcDiscoveryCandidates, cachedGetter, calculateExpirationDate, camelOrPascalToScreamingSnake, capLatValue, capitalizeFirstLetter, caseInsensitiveFilterByIndexOfDecisionFactory, caseInsensitiveString, catchAllHandlerKey, chainMapFunction, chainMapSameFunctions, characterPrefixSuffixInstance, checkAnyHaveExpired, checkAtleastOneNotExpired, classifySpecFile, coerceToEmailParticipants, combineMaps, compareEqualityWithValueFromItemsFunction, compareEqualityWithValueFromItemsFunctionFactory, compareFnOrder, compareStrings, compareStringsNumeric, compareWithMappedValuesFunction, computeNextFractionalHour, computeNextFreeIndexFunction, computeNextFreeIndexOnSortedValuesFunction, concatArrays, concatArraysUnique, containsAllStringsAnyCase, containsAllValues, containsAnyStringAnyCase, containsAnyValue, containsAnyValueFromSet, containsNoValueFromSet, containsNoneOfValue, containsStringAnyCase, convertEmailParticipantStringToParticipant, convertMaybeToArray, convertMaybeToNonEmptyArray, convertParticipantToEmailParticipantString, convertTimeDuration, convertToArray, copyArray, copyField, copyLatLngBound, copyLatLngPoint, copyObject, copySetAndDo, countAllInNestedArray, countPOJOKeys, countPOJOKeysFunction, cronExpressionRepeatingEveryNMinutes, cssClassesSet, cssTokenVar, cssVariableVar, cutString, cutStringFunction, cutToPrecision, cutValueToInteger, cutValueToPrecision, cutValueToPrecisionFunction, dateFromDateOrTimeMillisecondsNumber, dateFromDateOrTimeSecondsNumber, dateFromLogicalDate, dateFromMinuteOfDay, dateOrMillisecondsToDate, dateToHoursAndMinutes, dateToMinuteOfDay, dayOfWeek, daysOfWeekArray, daysOfWeekFromEnabledDays, daysOfWeekNameFunction, daysOfWeekNameMap, decisionFunction, decodeHashedValues, decodeHashedValuesWithDecodeMap, decodeModelKeyTypePair, decodeRadix36Number, defaultFilterFromPOJOFunctionNoCopy, defaultForwardFunctionFactory, defaultLatLngPoint, defaultLatLngString, dencodeBitwiseSet, depthFirstExploreTreeTraversalFactoryFunction, diffLatLngBoundPoints, diffLatLngPoints, documentFileExtensionForMimeType, dollarAmountString, dollarAmountStringWithUnitFunction, e164PhoneNumberExtensionPair, e164PhoneNumberFromE164PhoneNumberExtensionPair, enabledDaysFromDaysOfWeek, encodeBitwiseSet, encodeModelKeyTypePair, encodeRadix36Number, errorMessageContainsString, errorMessageContainsStringFunction, escapeStringCharactersFunction, escapeStringForRegex, excludeValues, excludeValuesFromArray, excludeValuesFromSet, existsInIterable, expandArrayMapTuples, expandArrayValueTuples, expandFlattenTreeFunction, expandIndexSet, expandSlashPathPathMatcherPartToDecisionFunctions, expandTreeFunction, expandTrees, expirationDetails, exploreTreeFunction, exponentialPromiseRateLimiter, extendLatLngBound, fileExtensionForMimeType, filterAndMapFunction, filterEmptyArrayValues, filterEmptyPojoValues, filterFalsyAndEmptyValues, filterFromIterable, filterFromPOJO, filterFromPOJOFunction, filterKeyValueTupleFunction, filterKeyValueTuples, filterKeyValueTuplesFunction, filterKeyValueTuplesInputToFilter, filterKeysOnPOJOFunction, filterMaybeArrayFunction, filterMaybeArrayValues, filterNullAndUndefinedValues, filterOnlyUndefinedValues, filterTuplesOnPOJOFunction, filterUndefinedValues, filterUniqueByIndex, filterUniqueCaseInsensitiveStrings, filterUniqueFunction, filterUniqueTransform, filterUniqueValues, filterValuesByDistance, filterValuesByDistanceNoOrder, filterValuesToSet, filterValuesUsingSet, filteredPage, findAllCharacterOccurences, findAllCharacterOccurencesFunction, findBest, findBestIndexMatch, findBestIndexMatchFunction, findBestIndexSetPair, findBestSplitStringTreeChildMatch, findBestSplitStringTreeChildMatchPath, findBestSplitStringTreeMatch, findBestSplitStringTreeMatchPath, findFirstCharacterOccurence, findInIterable, findIndexOfFirstDuplicateValue, findItemsByIndex, findNext, findPOJOKeys, findPOJOKeysFunction, findStringsRegexString, findToIndexSet, findValuesFrom, firstAndLastCharacterOccurrence, firstAndLastValue, firstValue, firstValueFromIterable, fitToIndexRangeFunction, fixExtraQueryParameters, fixMultiSlashesInSlashPath, flattenArray, flattenArrayOrValueArray, flattenArrayToSet, flattenArrayUnique, flattenArrayUniqueCaseInsensitiveStrings, flattenObject, flattenTree, flattenTreeToArray, flattenTreeToArrayFunction, flattenWhitespace, forEachInIterable, forEachKeyValue, forEachKeyValueOnPOJOFunction, forEachWithArray, forwardFunction, fractionalHoursToMinutes, generateIfDoesNotExist, generateOAuthState, generatePkceCodeChallenge, generatePkceCodeVerifier, generatePkceMaterial, getArrayNextIndex, getBaseLog, getDayOffset, getDayTomorrow, getDayYesterday, getDaysOfWeekNames, getFunctionType, getNextDay, getNextPageNumber, getOverlappingRectangle, getPageNumber, getPreviousDay, getValueFromGetter, groupValues, handlerBindAccessor, handlerConfigurerFactory, handlerFactory, handlerMappedSetFunction, handlerMappedSetFunctionFactory, handlerSetFunction, hasDifferentStringsNoCase, hasDifferentValues, hasHttpPrefix, hasNonNullValue, hasPortNumber, hasSameTimezone, hasSameValues, hasValueFunction, hasValueOrNotEmpty, hasValueOrNotEmptyObject, hasWebsiteDomain, hasWebsiteTopLevelDomain, hashSetForIndexed, hashStringToNumber, hourToFractionalHour, hoursAndMinutesToString, hoursAndMinutesToTimeUnit, idBatchFactory, imageFileExtensionForMimeType, inMemoryAsyncKeyedValueCache, inMemoryAsyncValueCache, incrementingNumberFactory, indexDeltaGroup, indexDeltaGroupFunction, indexRange, indexRangeCheckFunction, indexRangeCheckReaderFunction, indexRangeForArray, indexRangeOverlapsIndexRange, indexRangeOverlapsIndexRangeFunction, indexRangeReaderPairFactory, indexRefMap, indexedValuesArrayAccessorFactory, insertIntoBooleanKeyArray, invertBooleanReturnFunction, invertDecision, invertFilter, invertMaybeBoolean, invertStringRecord, isAllowed, isClassLikeType, isCompleteUnitedStatesAddress, isConsideredUtcTimezoneString, isDate, isDefaultLatLngPoint, isDefaultLatLngPointValue, isDefaultReadableError, isDefinedAndNotFalse, isDollarAmountString, isE164PhoneNumber, isE164PhoneNumberWithExtension, isEmptyIterable, isEqualContext, isEqualDate, isEqualToValueDecisionFunction, isEvenNumber, isExpired, isFalseBooleanKeyArray, isFinalPage, isGetter, isHex, isHexWithByteLength, isHourOfDay, isISO8601DateString, isISO8601DayString, isISO8601DayStringStart, isInAllowedDaysOfWeekSet, isInNumberBoundFunction, isInSetDecisionFunction, isIndexNumberInIndexRange, isIndexNumberInIndexRangeFunction, isIndexRangeInIndexRange, isIndexRangeInIndexRangeFunction, isIterable, isKnownHttpWebsiteProtocol, isLatLngBound, isLatLngBoundWithinLatLngBound, isLatLngPoint, isLatLngPointWithinLatLngBound, isLatLngString, isLogicalDateStringCode, isMapIdentityFunction, isMaybeNot, isMaybeNotOrTrue, isMaybeSo, isMinuteOfDay, isModelKey, isMonthDaySlashDate, isNonClassFunction, isNotFalse, isNotNullOrEmptyString, isNumberDivisibleBy, isObjectWithConstructor, isOddNumber, isPast, isPdfPasswordProtected, isPromise, isPromiseLike, isSameLatLngBound, isSameLatLngPoint, isSameNonNullValue, isSameVector, isSelectedDecisionFunctionFactory, isSelectedIndexDecisionFunction, isServerError, isSlashPathFile, isSlashPathFolder, isSlashPathTypedFile, isStandardInternetAccessibleWebsiteUrl, isStringOrTrue, isThrottled, isTrueBooleanKeyArray, isUTCDateString, isUnderThreshold, isUniqueKeyedFunction, isUsStateCodeString, isValidLatLngPoint, isValidLatitude, isValidLongitude, isValidNumberBound, isValidPhoneExtensionNumber, isValidSlashPath, isWebsiteUrl, isWebsiteUrlWithPrefix, isWithinLatLngBoundFunction, isolateSlashPath, isolateSlashPathFunction, isolateWebsitePathFunction, itemCountForBatchIndex, iterableToArray, iterableToMap, iterableToSet, iterablesAreSetEquivalent, iterate, iterateFilteredPages, joinHostAndPort, joinStrings, joinStringsInstance, joinStringsWithCommas, joinStringsWithSpaces, keepCharactersAfterFirstCharacterOccurence, keepCharactersAfterFirstCharacterOccurenceFunction, keepFromSetCopy, keepValuesFromArray, keepValuesFromSet, keyValueMapFactory, labeledValueMap, lastValue, latLngBound, latLngBoundCenterPoint, latLngBoundEastBound, latLngBoundFromInput, latLngBoundFullyWrapsMap, latLngBoundFunction, latLngBoundNorthBound, latLngBoundNorthEastPoint, latLngBoundNorthWestPoint, latLngBoundOverlapsLatLngBound, latLngBoundSouthBound, latLngBoundSouthEastPoint, latLngBoundSouthWestPoint, latLngBoundStrictlyWrapsMap, latLngBoundTuple, latLngBoundTupleFunction, latLngBoundWestBound, latLngBoundWrapsMap, latLngDataPointFunction, latLngPoint, latLngPointFromString, latLngPointFunction, latLngPointPrecisionFunction, latLngString, latLngStringFunction, latLngTuple, latLngTupleFunction, limitArray, lonLatTuple, lowercaseFirstLetter, mailToUrlString, makeBestFit, makeCopyModelFieldFunction, makeDateMonthForMonthOfYear, makeDefaultNonConcurrentTaskKeyFactory, makeGetter, makeHandler, makeHashDecodeMap, makeKeyPairs, makeModelConversionFieldValuesFunction, makeModelMap, makeModelMapFunctions, makeMultiModelKeyMap, makeTimer, makeValuesGroupMap, makeWithFactory, makeWithFactoryInput, mapArrayFunction, mapFunctionOutput, mapFunctionOutputPair, mapGetter, mapGetterFactory, mapIdentityFunction, mapIterable, mapKeysIntersectionObjectToArray, mapMaybeFunction, mapObjectKeysFunction, mapObjectKeysToLowercase, mapObjectMap, mapObjectMapFunction, mapObjectToTargetObject, mapPromiseOrValue, mapToObject, mapToTuples, mapValuesToSet, mappedUseAsyncFunction, mappedUseFunction, mapsHaveSameKeys, maybeMergeModelModifiers, maybeMergeModifiers, maybeModifierMapToFunction, maybeSet, memoizeAsyncKeyedValueCache, memoizeAsyncValueCache, mergeArrays, mergeArraysIntoArray, mergeAsyncKeyedValueCaches, mergeAsyncValueCaches, mergeFilterFunctions, mergeModifiers, mergeObjects, mergeObjectsFunction, mergeSlashPaths, messageFromError, millisecondsToMinutes, millisecondsToMinutesAndSeconds, millisecondsToTimeUnit, mimeTypeForApplicationFileExtension, mimeTypeForDocumentFileExtension, mimeTypeForFileExtension, mimeTypeForImageFileExtension, minAndMaxFunction, minAndMaxIndex, minAndMaxIndexFunction, minAndMaxIndexItemsFunction, minAndMaxNumber, minutesToFractionalHours, minutesToHoursAndMinutes, modelFieldConversions, modelFieldMapFunction, modelFieldMapFunctions, modelTypeDataPairFactory, modifier, modifierMapToFunction, modifyModelMapFunction, modifyModelMapFunctions, monthDaySlashDateToDateString, monthOfYearFromDate, monthOfYearFromDateMonth, monthOfYearFromUTCDate, multiKeyValueMapFactory, multiValueMapBuilder, nameToInitials, nameToInitialsFactory, neMostLatLngPoint, nearestDivisibleValues, noop, numberStringDencoder, numberStringDencoderDecodedNumberValueFunction, numberStringDencoderEncodedStringValueFunction, numberStringDencoderFunction, objectCopyFactory, objectDeltaArrayCompressor, objectFieldEqualityChecker, objectFlatMergeMatrix, objectHasKey, objectHasKeys, objectHasNoKeys, objectIsEmpty, objectKeyEqualityComparatorFunction, objectKeysEqualityComparatorFunction, objectMergeMatrix, objectToMap, overlapsLatLngBoundFunction, overrideInObject, overrideInObjectFunctionFactory, padStartFunction, pairGroupValues, parseAuthorizationRedirect, parseISO8601DayStringToUTCDate, partialServerError, MAP_IDENTITY as passThrough, percentNumberFromDecimal, percentNumberToDecimal, performAsyncTask, performAsyncTasks, performBatchLoop, performMakeLoop, performTaskCountLoop, performTaskLoop, performTasksFromFactoryInParallelFunction, performTasksInParallel, performTasksInParallelFunction, pickOneRandomly, poll, primativeKeyDencoder, primativeKeyDencoderMap, primativeKeyStringDencoder, primativeValuesDelta, promiseReference, protectedFactory, pushArrayItemsIntoArray, pushElementOntoArray, pushItemOrArrayItemsIntoArray, randomArrayFactory, randomArrayIndex, randomBoolean, randomEmailFactory, randomFromArrayFactory, randomLatLngFactory, randomLatLngFromCenterFactory, randomNumber, randomNumberFactory, randomPhoneNumberFactory, randomPickFactory, range, rangedIndexedValuesArrayAccessorFactory, rangedIndexedValuesArrayAccessorInfoFactory, readBooleanKeySafetyWrap, readDomainFromEmailAddress, readDomainsFromEmailAddresses, readEmailDomainFromUrlOrEmailAddress, readIndexNumber, readKeysFrom, readKeysFromFilterUniqueFunctionAdditionalKeys, readKeysFromFilterUniqueFunctionAdditionalKeysInput, readKeysFunction, readKeysSetFrom, readKeysSetFunction, readKeysToMap, readModelKey, readModelKeyFromObject, readModelKeys, readModelKeysFromObjects, readMultipleKeysToMap, readPortNumber, readUniqueModelKey, readWebsiteProtocol, readableError, readableStreamToBase64, readableStreamToBuffer, readableStreamToStringFunction, recommendBucketsForGroup, recommendSpecPath, rectangleOverlapsRectangle, reduceBooleansFn, reduceBooleansWithAnd, reduceBooleansWithAndFn, reduceBooleansWithOr, reduceBooleansWithOrFn, reduceNumbers, reduceNumbersFn, reduceNumbersWithAdd, reduceNumbersWithAddFn, reduceNumbersWithMax, reduceNumbersWithMaxFn, reduceNumbersWithMin, reduceNumbersWithMinFn, removeByKeyFromBooleanKeyArray, removeCharactersAfterFirstCharacterOccurence, removeCharactersAfterFirstCharacterOccurenceFunction, removeExtensionFromPhoneNumber, removeFirstMatchingSuffix, removeFromBooleanKeyArray, removeFromSet, removeFromSetCopy, removeHttpFromUrl, removeModelsWithKey, removeModelsWithSameKey, removeModifiers, removeSuffix, removeTrailingFileTypeSeparators, removeTrailingSlashes, removeValuesAtIndexesFromArrayCopy, removeWebProtocolPrefix, repeatString, replaceCharacterAtIndexIf, replaceCharacterAtIndexWith, replaceInvalidFilePathTypeSeparatorsInSlashPath, replaceInvalidFilePathTypeSeparatorsInSlashPathFunction, replaceLastCharacterIf, replaceLastCharacterIfIsFunction, replaceMultipleFilePathsInSlashPath, replaceStringsFunction, requireModelKey, resetPeriodPromiseRateLimiter, restoreOrder, restoreOrderWithValues, reverseCompareFn, roundNumberToStepFunction, roundNumberUpToStep, roundToPrecision, roundToPrecisionFunction, roundingFunction, runAsyncTaskForValue, runAsyncTasksForValues, runNamedAsyncTasks, runNamedAsyncTasksFunction, safeCompareEquality, safeEqualityComparatorFunction, safeFindBestIndexMatch, screamingSnakeToCamelCase, searchStringFilterFunction, secondsToMinutesAndSeconds, selectiveFieldEncryptor, separateValues, separateValuesToSets, sequentialIncrementingNumberStringModelIdFactory, serverError, setContainsAllValues, setContainsAnyValue, setContainsNoneOfValue, setDeltaChangeKeys, setDeltaFunction, setHasValueFunction, setIncludes, setIncludesFunction, setKeysOnMap, setWebProtocolPrefix, setsAreEquivalent, simpleSortValuesFunctionWithSortRef, simplifyWhitespace, slashPathDetails, slashPathDirectoryTree, slashPathFactory, slashPathFolder, slashPathFolderFactory, slashPathInvalidError, slashPathName, slashPathParts, slashPathPathMatcher, slashPathPathMatcherConfig, slashPathStartTypeFactory, slashPathSubPathMatcher, slashPathType, slashPathValidationFactory, sliceIndexRangeFunction, sliceStringFunction, sortAscendingIndexNumberRefFunction, sortByIndexAscendingCompareFunction, sortByIndexRangeAscendingCompareFunction, sortByLabelFunction, sortByNumberFunction, sortByStringFunction, sortCompareNumberFunction, sortNumbersAscendingFunction, sortValues, sortValuesFunctionOrMapIdentityWithSortRef, sortValuesFunctionWithSortRef, spaceSeparatedCssClasses, splitCommaSeparatedString, splitCommaSeparatedStringToSet, splitFront, splitJoinNameString, splitJoinRemainder, splitStringAtFirstCharacterOccurence, splitStringAtFirstCharacterOccurenceFunction, splitStringAtIndex, splitStringTreeFactory, startOfDayForSystemDateInUTC, startOfDayForUTCDateInUTC, stepsFromIndex, stepsFromIndexFunction, stringCharactersToIndexRecord, stringContains, stringFactoryFromFactory, stringFromDateFactory, stringFromTimeFactory, stringSplitJoinInstance, stringToBoolean, stringToLowercaseFunction, stringToUppercaseFunction, stringTrimFunction, stripObject, stripObjectFunction, sumOfIntegersBetween, swMostLatLngPoint, symmetricDifferenceArray, symmetricDifferenceArrayBetweenSets, symmetricDifferenceWithModels, takeFront, takeLast, takeValuesFromIterable, telUrlString, telUrlStringForE164PhoneNumberPair, terminatingFactoryFromArray, throwKeyIsRequired, timeDurationToHoursAndMinutes, timeDurationToMilliseconds, timePeriodCounter, timeUnitToMilliseconds, toAbsoluteSlashPathStartType, toCaseInsensitiveStringArray, toMinuteOfDay, toModelFieldConversions, toModelMapFunctions, toReadableError, toRelativeSlashPathStartType, toggleInSet, toggleInSetCopy, toggleTimerRunning, transformNumberFunction, transformNumberFunctionConfig, transformStringFunction, transformStringFunctionConfig, transformStrings, trimArray, trimSlash, trueOrFalseString, tryConvertToE164PhoneNumber, tryWithPromiseFactoriesFunction, typedServiceRegistry, unique, uniqueCaseInsensitiveStrings, uniqueCaseInsensitiveStringsSet, uniqueKeys, uniqueModels, unitedStatesAddressString, unixDateTimeSecondsNumberForNow, unixDateTimeSecondsNumberFromDate, unixDateTimeSecondsNumberFromDateOrTimeNumber, unixDateTimeSecondsNumberToDate, unixMillisecondsNumberToDate, updateMaybeValue, urlWithoutParameters, useAsync, useCallback, useContextFunction, useIterableOrValue, useModelOrKey, usePromise, useValue, validLatLngPoint, validLatLngPointFunction, valueAtIndex, valuesAreBothNullishOrEquivalent, valuesFromPOJO, valuesFromPOJOFunction, vectorMinimumSizeResizeFunction, vectorsAreEqual, waitForMs, websiteDomainAndPathPair, websiteDomainAndPathPairFromWebsiteUrl, websitePathAndQueryPair, websitePathFromWebsiteDomainAndPath, websitePathFromWebsiteUrl, websiteUrlDetails, websiteUrlFromPaths, wrapIndexRangeFunction, wrapLatLngPoint, wrapLngValue, wrapMapFunctionOutput, wrapNumberFunction, wrapTuples, wrapUseAsyncFunction, wrapUseFunction };