@dereekb/dbx-cli 13.12.0 → 13.12.2

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.cjs.js CHANGED
@@ -17,13 +17,13 @@ var tsMorph = require('ts-morph');
17
17
  var node_url = require('node:url');
18
18
 
19
19
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
20
- function _array_like_to_array$10(arr, len) {
20
+ function _array_like_to_array$11(arr, len) {
21
21
  if (len == null || len > arr.length) len = arr.length;
22
22
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
23
23
  return arr2;
24
24
  }
25
25
  function _array_without_holes$Y(arr) {
26
- if (Array.isArray(arr)) return _array_like_to_array$10(arr);
26
+ if (Array.isArray(arr)) return _array_like_to_array$11(arr);
27
27
  }
28
28
  function _assert_this_initialized(self) {
29
29
  if (self === void 0) {
@@ -183,19 +183,19 @@ function _set_prototype_of(o, p) {
183
183
  return _set_prototype_of(o, p);
184
184
  }
185
185
  function _to_consumable_array$Y(arr) {
186
- return _array_without_holes$Y(arr) || _iterable_to_array$Y(arr) || _unsupported_iterable_to_array$10(arr) || _non_iterable_spread$Y();
186
+ return _array_without_holes$Y(arr) || _iterable_to_array$Y(arr) || _unsupported_iterable_to_array$11(arr) || _non_iterable_spread$Y();
187
187
  }
188
188
  function _type_of$2(obj) {
189
189
  "@swc/helpers - typeof";
190
190
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
191
191
  }
192
- function _unsupported_iterable_to_array$10(o, minLen) {
192
+ function _unsupported_iterable_to_array$11(o, minLen) {
193
193
  if (!o) return;
194
- if (typeof o === "string") return _array_like_to_array$10(o, minLen);
194
+ if (typeof o === "string") return _array_like_to_array$11(o, minLen);
195
195
  var n = Object.prototype.toString.call(o).slice(8, -1);
196
196
  if (n === "Object" && o.constructor) n = o.constructor.name;
197
197
  if (n === "Map" || n === "Set") return Array.from(n);
198
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$10(o, minLen);
198
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$11(o, minLen);
199
199
  }
200
200
  function _wrap_native_super(Class) {
201
201
  var _cache = typeof Map === "function" ? new Map() : undefined;
@@ -737,13 +737,13 @@ function stringifyEnvelope(value) {
737
737
  return result;
738
738
  }
739
739
 
740
- function _array_like_to_array$$(arr, len) {
740
+ function _array_like_to_array$10(arr, len) {
741
741
  if (len == null || len > arr.length) len = arr.length;
742
742
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
743
743
  return arr2;
744
744
  }
745
745
  function _array_without_holes$X(arr) {
746
- if (Array.isArray(arr)) return _array_like_to_array$$(arr);
746
+ if (Array.isArray(arr)) return _array_like_to_array$10(arr);
747
747
  }
748
748
  function asyncGeneratorStep$1e(gen, resolve, reject, _next, _throw, key, arg) {
749
749
  try {
@@ -828,19 +828,19 @@ function _object_spread_props$r(target, source) {
828
828
  return target;
829
829
  }
830
830
  function _to_consumable_array$X(arr) {
831
- return _array_without_holes$X(arr) || _iterable_to_array$X(arr) || _unsupported_iterable_to_array$$(arr) || _non_iterable_spread$X();
831
+ return _array_without_holes$X(arr) || _iterable_to_array$X(arr) || _unsupported_iterable_to_array$10(arr) || _non_iterable_spread$X();
832
832
  }
833
833
  function _type_of$1(obj) {
834
834
  "@swc/helpers - typeof";
835
835
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
836
836
  }
837
- function _unsupported_iterable_to_array$$(o, minLen) {
837
+ function _unsupported_iterable_to_array$10(o, minLen) {
838
838
  if (!o) return;
839
- if (typeof o === "string") return _array_like_to_array$$(o, minLen);
839
+ if (typeof o === "string") return _array_like_to_array$10(o, minLen);
840
840
  var n = Object.prototype.toString.call(o).slice(8, -1);
841
841
  if (n === "Object" && o.constructor) n = o.constructor.name;
842
842
  if (n === "Map" || n === "Set") return Array.from(n);
843
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$$(o, minLen);
843
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$10(o, minLen);
844
844
  }
845
845
  function _ts_generator$1e(thisArg, body) {
846
846
  var f, y, t, _ = {
@@ -1725,21 +1725,21 @@ function _ts_generator$1c(thisArg, body) {
1725
1725
  };
1726
1726
  }
1727
1727
 
1728
- function _array_like_to_array$_(arr, len) {
1728
+ function _array_like_to_array$$(arr, len) {
1729
1729
  if (len == null || len > arr.length) len = arr.length;
1730
1730
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1731
1731
  return arr2;
1732
1732
  }
1733
- function _array_with_holes$f(arr) {
1733
+ function _array_with_holes$g(arr) {
1734
1734
  if (Array.isArray(arr)) return arr;
1735
1735
  }
1736
1736
  function _array_without_holes$W(arr) {
1737
- if (Array.isArray(arr)) return _array_like_to_array$_(arr);
1737
+ if (Array.isArray(arr)) return _array_like_to_array$$(arr);
1738
1738
  }
1739
1739
  function _iterable_to_array$W(iter) {
1740
1740
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1741
1741
  }
1742
- function _iterable_to_array_limit$f(arr, i) {
1742
+ function _iterable_to_array_limit$g(arr, i) {
1743
1743
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1744
1744
  if (_i == null) return;
1745
1745
  var _arr = [];
@@ -1763,25 +1763,25 @@ function _iterable_to_array_limit$f(arr, i) {
1763
1763
  }
1764
1764
  return _arr;
1765
1765
  }
1766
- function _non_iterable_rest$f() {
1766
+ function _non_iterable_rest$g() {
1767
1767
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1768
1768
  }
1769
1769
  function _non_iterable_spread$W() {
1770
1770
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1771
1771
  }
1772
- function _sliced_to_array$f(arr, i) {
1773
- return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$_(arr, i) || _non_iterable_rest$f();
1772
+ function _sliced_to_array$g(arr, i) {
1773
+ return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$$(arr, i) || _non_iterable_rest$g();
1774
1774
  }
1775
1775
  function _to_consumable_array$W(arr) {
1776
- return _array_without_holes$W(arr) || _iterable_to_array$W(arr) || _unsupported_iterable_to_array$_(arr) || _non_iterable_spread$W();
1776
+ return _array_without_holes$W(arr) || _iterable_to_array$W(arr) || _unsupported_iterable_to_array$$(arr) || _non_iterable_spread$W();
1777
1777
  }
1778
- function _unsupported_iterable_to_array$_(o, minLen) {
1778
+ function _unsupported_iterable_to_array$$(o, minLen) {
1779
1779
  if (!o) return;
1780
- if (typeof o === "string") return _array_like_to_array$_(o, minLen);
1780
+ if (typeof o === "string") return _array_like_to_array$$(o, minLen);
1781
1781
  var n = Object.prototype.toString.call(o).slice(8, -1);
1782
1782
  if (n === "Object" && o.constructor) n = o.constructor.name;
1783
1783
  if (n === "Map" || n === "Set") return Array.from(n);
1784
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$_(o, minLen);
1784
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$$(o, minLen);
1785
1785
  }
1786
1786
  /**
1787
1787
  * Default name of the parent command that groups all registered action specs.
@@ -1837,7 +1837,7 @@ function _unsupported_iterable_to_array$_(o, minLen) {
1837
1837
  }
1838
1838
  }
1839
1839
  var sortedModels = _to_consumable_array$W(byModel.entries()).sort(function(param, param1) {
1840
- var _param = _sliced_to_array$f(param, 1), a = _param[0], _param1 = _sliced_to_array$f(param1, 1), b = _param1[0];
1840
+ var _param = _sliced_to_array$g(param, 1), a = _param[0], _param1 = _sliced_to_array$g(param1, 1), b = _param1[0];
1841
1841
  return a.localeCompare(b);
1842
1842
  });
1843
1843
  result = [
@@ -1868,7 +1868,7 @@ function _unsupported_iterable_to_array$_(o, minLen) {
1868
1868
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
1869
1869
  try {
1870
1870
  var _loop = function() {
1871
- var _step_value = _sliced_to_array$f(_step1.value, 2), model = _step_value[0], modelSpecs = _step_value[1];
1871
+ var _step_value = _sliced_to_array$g(_step1.value, 2), model = _step_value[0], modelSpecs = _step_value[1];
1872
1872
  yargs.command({
1873
1873
  command: "".concat(model, " <action>"),
1874
1874
  describe: "Composite actions scoped to model '".concat(model, "' (").concat(modelSpecs.length, ")."),
@@ -1926,16 +1926,16 @@ function _unsupported_iterable_to_array$_(o, minLen) {
1926
1926
  return result;
1927
1927
  }
1928
1928
 
1929
- function _array_like_to_array$Z(arr, len) {
1929
+ function _array_like_to_array$_(arr, len) {
1930
1930
  if (len == null || len > arr.length) len = arr.length;
1931
1931
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1932
1932
  return arr2;
1933
1933
  }
1934
- function _array_with_holes$e(arr) {
1934
+ function _array_with_holes$f(arr) {
1935
1935
  if (Array.isArray(arr)) return arr;
1936
1936
  }
1937
1937
  function _array_without_holes$V(arr) {
1938
- if (Array.isArray(arr)) return _array_like_to_array$Z(arr);
1938
+ if (Array.isArray(arr)) return _array_like_to_array$_(arr);
1939
1939
  }
1940
1940
  function asyncGeneratorStep$1b(gen, resolve, reject, _next, _throw, key, arg) {
1941
1941
  try {
@@ -1982,7 +1982,7 @@ function _define_property$I(obj, key, value) {
1982
1982
  function _iterable_to_array$V(iter) {
1983
1983
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1984
1984
  }
1985
- function _iterable_to_array_limit$e(arr, i) {
1985
+ function _iterable_to_array_limit$f(arr, i) {
1986
1986
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1987
1987
  if (_i == null) return;
1988
1988
  var _arr = [];
@@ -2006,7 +2006,7 @@ function _iterable_to_array_limit$e(arr, i) {
2006
2006
  }
2007
2007
  return _arr;
2008
2008
  }
2009
- function _non_iterable_rest$e() {
2009
+ function _non_iterable_rest$f() {
2010
2010
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2011
2011
  }
2012
2012
  function _non_iterable_spread$V() {
@@ -2046,19 +2046,19 @@ function _object_spread_props$q(target, source) {
2046
2046
  }
2047
2047
  return target;
2048
2048
  }
2049
- function _sliced_to_array$e(arr, i) {
2050
- return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$Z(arr, i) || _non_iterable_rest$e();
2049
+ function _sliced_to_array$f(arr, i) {
2050
+ return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$_(arr, i) || _non_iterable_rest$f();
2051
2051
  }
2052
2052
  function _to_consumable_array$V(arr) {
2053
- return _array_without_holes$V(arr) || _iterable_to_array$V(arr) || _unsupported_iterable_to_array$Z(arr) || _non_iterable_spread$V();
2053
+ return _array_without_holes$V(arr) || _iterable_to_array$V(arr) || _unsupported_iterable_to_array$_(arr) || _non_iterable_spread$V();
2054
2054
  }
2055
- function _unsupported_iterable_to_array$Z(o, minLen) {
2055
+ function _unsupported_iterable_to_array$_(o, minLen) {
2056
2056
  if (!o) return;
2057
- if (typeof o === "string") return _array_like_to_array$Z(o, minLen);
2057
+ if (typeof o === "string") return _array_like_to_array$_(o, minLen);
2058
2058
  var n = Object.prototype.toString.call(o).slice(8, -1);
2059
2059
  if (n === "Object" && o.constructor) n = o.constructor.name;
2060
2060
  if (n === "Map" || n === "Set") return Array.from(n);
2061
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$Z(o, minLen);
2061
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$_(o, minLen);
2062
2062
  }
2063
2063
  function _ts_generator$1b(thisArg, body) {
2064
2064
  var f, y, t, _ = {
@@ -2222,7 +2222,7 @@ function _runItemTasks(input) {
2222
2222
  return [
2223
2223
  2,
2224
2224
  performResult.results.map(function(param) {
2225
- var _param = _sliced_to_array$e(param, 2), output = _param[1];
2225
+ var _param = _sliced_to_array$f(param, 2), output = _param[1];
2226
2226
  return output;
2227
2227
  })
2228
2228
  ];
@@ -3384,12 +3384,12 @@ function _ts_generator$18(thisArg, body) {
3384
3384
  })
3385
3385
  };
3386
3386
 
3387
- function _array_like_to_array$Y(arr, len) {
3387
+ function _array_like_to_array$Z(arr, len) {
3388
3388
  if (len == null || len > arr.length) len = arr.length;
3389
3389
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3390
3390
  return arr2;
3391
3391
  }
3392
- function _array_with_holes$d(arr) {
3392
+ function _array_with_holes$e(arr) {
3393
3393
  if (Array.isArray(arr)) return arr;
3394
3394
  }
3395
3395
  function _instanceof$m(left, right) {
@@ -3400,7 +3400,7 @@ function _instanceof$m(left, right) {
3400
3400
  return left instanceof right;
3401
3401
  }
3402
3402
  }
3403
- function _iterable_to_array_limit$d(arr, i) {
3403
+ function _iterable_to_array_limit$e(arr, i) {
3404
3404
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3405
3405
  if (_i == null) return;
3406
3406
  var _arr = [];
@@ -3424,23 +3424,23 @@ function _iterable_to_array_limit$d(arr, i) {
3424
3424
  }
3425
3425
  return _arr;
3426
3426
  }
3427
- function _non_iterable_rest$d() {
3427
+ function _non_iterable_rest$e() {
3428
3428
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3429
3429
  }
3430
- function _sliced_to_array$d(arr, i) {
3431
- return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$Y(arr, i) || _non_iterable_rest$d();
3430
+ function _sliced_to_array$e(arr, i) {
3431
+ return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$Z(arr, i) || _non_iterable_rest$e();
3432
3432
  }
3433
3433
  function _type_of(obj) {
3434
3434
  "@swc/helpers - typeof";
3435
3435
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
3436
3436
  }
3437
- function _unsupported_iterable_to_array$Y(o, minLen) {
3437
+ function _unsupported_iterable_to_array$Z(o, minLen) {
3438
3438
  if (!o) return;
3439
- if (typeof o === "string") return _array_like_to_array$Y(o, minLen);
3439
+ if (typeof o === "string") return _array_like_to_array$Z(o, minLen);
3440
3440
  var n = Object.prototype.toString.call(o).slice(8, -1);
3441
3441
  if (n === "Object" && o.constructor) n = o.constructor.name;
3442
3442
  if (n === "Map" || n === "Set") return Array.from(n);
3443
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$Y(o, minLen);
3443
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$Z(o, minLen);
3444
3444
  }
3445
3445
  /**
3446
3446
  * Resolves the manifest entry for `modelType`. Lookup tries
@@ -3533,7 +3533,7 @@ function rewriteWithFields(value, fields) {
3533
3533
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
3534
3534
  try {
3535
3535
  for(var _iterator1 = Object.entries(value)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
3536
- var _step_value = _sliced_to_array$d(_step1.value, 2), key = _step_value[0], raw = _step_value[1];
3536
+ var _step_value = _sliced_to_array$e(_step1.value, 2), key = _step_value[0], raw = _step_value[1];
3537
3537
  var field1 = fieldByName.get(key);
3538
3538
  if (field1) {
3539
3539
  var longKey = field1.longName.length > 0 ? field1.longName : key;
@@ -3593,13 +3593,13 @@ function isPlainObject(value) {
3593
3593
  return result;
3594
3594
  }
3595
3595
 
3596
- function _array_like_to_array$X(arr, len) {
3596
+ function _array_like_to_array$Y(arr, len) {
3597
3597
  if (len == null || len > arr.length) len = arr.length;
3598
3598
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3599
3599
  return arr2;
3600
3600
  }
3601
3601
  function _array_without_holes$U(arr) {
3602
- if (Array.isArray(arr)) return _array_like_to_array$X(arr);
3602
+ if (Array.isArray(arr)) return _array_like_to_array$Y(arr);
3603
3603
  }
3604
3604
  function _iterable_to_array$U(iter) {
3605
3605
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -3608,15 +3608,15 @@ function _non_iterable_spread$U() {
3608
3608
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3609
3609
  }
3610
3610
  function _to_consumable_array$U(arr) {
3611
- return _array_without_holes$U(arr) || _iterable_to_array$U(arr) || _unsupported_iterable_to_array$X(arr) || _non_iterable_spread$U();
3611
+ return _array_without_holes$U(arr) || _iterable_to_array$U(arr) || _unsupported_iterable_to_array$Y(arr) || _non_iterable_spread$U();
3612
3612
  }
3613
- function _unsupported_iterable_to_array$X(o, minLen) {
3613
+ function _unsupported_iterable_to_array$Y(o, minLen) {
3614
3614
  if (!o) return;
3615
- if (typeof o === "string") return _array_like_to_array$X(o, minLen);
3615
+ if (typeof o === "string") return _array_like_to_array$Y(o, minLen);
3616
3616
  var n = Object.prototype.toString.call(o).slice(8, -1);
3617
3617
  if (n === "Object" && o.constructor) n = o.constructor.name;
3618
3618
  if (n === "Map" || n === "Set") return Array.from(n);
3619
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$X(o, minLen);
3619
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$Y(o, minLen);
3620
3620
  }
3621
3621
  /**
3622
3622
  * Default command name for the model-decode command. Top-level so it stays
@@ -3785,21 +3785,21 @@ function renderAncestorLine(ancestor) {
3785
3785
  return ancestor.modelName ? "- ".concat(ancestor.modelName, " — prefix ").concat(ancestor.prefix, ", id ").concat(ancestor.id) : "- <unknown> — prefix ".concat(ancestor.prefix, ", id ").concat(ancestor.id);
3786
3786
  }
3787
3787
 
3788
- function _array_like_to_array$W(arr, len) {
3788
+ function _array_like_to_array$X(arr, len) {
3789
3789
  if (len == null || len > arr.length) len = arr.length;
3790
3790
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3791
3791
  return arr2;
3792
3792
  }
3793
- function _array_with_holes$c(arr) {
3793
+ function _array_with_holes$d(arr) {
3794
3794
  if (Array.isArray(arr)) return arr;
3795
3795
  }
3796
3796
  function _array_without_holes$T(arr) {
3797
- if (Array.isArray(arr)) return _array_like_to_array$W(arr);
3797
+ if (Array.isArray(arr)) return _array_like_to_array$X(arr);
3798
3798
  }
3799
3799
  function _iterable_to_array$T(iter) {
3800
3800
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
3801
3801
  }
3802
- function _iterable_to_array_limit$c(arr, i) {
3802
+ function _iterable_to_array_limit$d(arr, i) {
3803
3803
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3804
3804
  if (_i == null) return;
3805
3805
  var _arr = [];
@@ -3823,25 +3823,25 @@ function _iterable_to_array_limit$c(arr, i) {
3823
3823
  }
3824
3824
  return _arr;
3825
3825
  }
3826
- function _non_iterable_rest$c() {
3826
+ function _non_iterable_rest$d() {
3827
3827
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3828
3828
  }
3829
3829
  function _non_iterable_spread$T() {
3830
3830
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3831
3831
  }
3832
- function _sliced_to_array$c(arr, i) {
3833
- return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$W(arr, i) || _non_iterable_rest$c();
3832
+ function _sliced_to_array$d(arr, i) {
3833
+ return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$X(arr, i) || _non_iterable_rest$d();
3834
3834
  }
3835
3835
  function _to_consumable_array$T(arr) {
3836
- return _array_without_holes$T(arr) || _iterable_to_array$T(arr) || _unsupported_iterable_to_array$W(arr) || _non_iterable_spread$T();
3836
+ return _array_without_holes$T(arr) || _iterable_to_array$T(arr) || _unsupported_iterable_to_array$X(arr) || _non_iterable_spread$T();
3837
3837
  }
3838
- function _unsupported_iterable_to_array$W(o, minLen) {
3838
+ function _unsupported_iterable_to_array$X(o, minLen) {
3839
3839
  if (!o) return;
3840
- if (typeof o === "string") return _array_like_to_array$W(o, minLen);
3840
+ if (typeof o === "string") return _array_like_to_array$X(o, minLen);
3841
3841
  var n = Object.prototype.toString.call(o).slice(8, -1);
3842
3842
  if (n === "Object" && o.constructor) n = o.constructor.name;
3843
3843
  if (n === "Map" || n === "Set") return Array.from(n);
3844
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$W(o, minLen);
3844
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$X(o, minLen);
3845
3845
  }
3846
3846
  /**
3847
3847
  * Parses the positionals for the top-level `get <modelOrKey> [key]` command into a
@@ -4009,7 +4009,7 @@ function inferModelTypeFromKeys(keys, manifest) {
4009
4009
  code: 'INVALID_ARGUMENT'
4010
4010
  });
4011
4011
  }
4012
- var _decodedTypes = _sliced_to_array$c(decodedTypes, 1), modelType = _decodedTypes[0];
4012
+ var _decodedTypes = _sliced_to_array$d(decodedTypes, 1), modelType = _decodedTypes[0];
4013
4013
  return {
4014
4014
  modelType: modelType,
4015
4015
  keys: keys
@@ -5693,12 +5693,12 @@ function trimSlash(url) {
5693
5693
  return url.endsWith('/') ? url.slice(0, -1) : url;
5694
5694
  }
5695
5695
 
5696
- function _array_like_to_array$V(arr, len) {
5696
+ function _array_like_to_array$W(arr, len) {
5697
5697
  if (len == null || len > arr.length) len = arr.length;
5698
5698
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5699
5699
  return arr2;
5700
5700
  }
5701
- function _array_with_holes$b(arr) {
5701
+ function _array_with_holes$c(arr) {
5702
5702
  if (Array.isArray(arr)) return arr;
5703
5703
  }
5704
5704
  function asyncGeneratorStep$12(gen, resolve, reject, _next, _throw, key, arg) {
@@ -5730,7 +5730,7 @@ function _async_to_generator$12(fn) {
5730
5730
  });
5731
5731
  };
5732
5732
  }
5733
- function _iterable_to_array_limit$b(arr, i) {
5733
+ function _iterable_to_array_limit$c(arr, i) {
5734
5734
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
5735
5735
  if (_i == null) return;
5736
5736
  var _arr = [];
@@ -5754,19 +5754,19 @@ function _iterable_to_array_limit$b(arr, i) {
5754
5754
  }
5755
5755
  return _arr;
5756
5756
  }
5757
- function _non_iterable_rest$b() {
5757
+ function _non_iterable_rest$c() {
5758
5758
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5759
5759
  }
5760
- function _sliced_to_array$b(arr, i) {
5761
- return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$V(arr, i) || _non_iterable_rest$b();
5760
+ function _sliced_to_array$c(arr, i) {
5761
+ return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$W(arr, i) || _non_iterable_rest$c();
5762
5762
  }
5763
- function _unsupported_iterable_to_array$V(o, minLen) {
5763
+ function _unsupported_iterable_to_array$W(o, minLen) {
5764
5764
  if (!o) return;
5765
- if (typeof o === "string") return _array_like_to_array$V(o, minLen);
5765
+ if (typeof o === "string") return _array_like_to_array$W(o, minLen);
5766
5766
  var n = Object.prototype.toString.call(o).slice(8, -1);
5767
5767
  if (n === "Object" && o.constructor) n = o.constructor.name;
5768
5768
  if (n === "Map" || n === "Set") return Array.from(n);
5769
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$V(o, minLen);
5769
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$W(o, minLen);
5770
5770
  }
5771
5771
  function _ts_generator$12(thisArg, body) {
5772
5772
  var f, y, t, _ = {
@@ -5939,7 +5939,7 @@ function _ts_generator$12(thisArg, body) {
5939
5939
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
5940
5940
  try {
5941
5941
  for(var _iterator = Object.entries(authParams)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
5942
- var _step_value = _sliced_to_array$b(_step.value, 2), key = _step_value[0], value = _step_value[1];
5942
+ var _step_value = _sliced_to_array$c(_step.value, 2), key = _step_value[0], value = _step_value[1];
5943
5943
  url.searchParams.set(key, value);
5944
5944
  }
5945
5945
  } catch (err) {
@@ -7130,13 +7130,13 @@ function resolveAuthSetupPrompt(input) {
7130
7130
  };
7131
7131
  }
7132
7132
 
7133
- function _array_like_to_array$U(arr, len) {
7133
+ function _array_like_to_array$V(arr, len) {
7134
7134
  if (len == null || len > arr.length) len = arr.length;
7135
7135
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7136
7136
  return arr2;
7137
7137
  }
7138
7138
  function _array_without_holes$S(arr) {
7139
- if (Array.isArray(arr)) return _array_like_to_array$U(arr);
7139
+ if (Array.isArray(arr)) return _array_like_to_array$V(arr);
7140
7140
  }
7141
7141
  function asyncGeneratorStep$10(gen, resolve, reject, _next, _throw, key, arg) {
7142
7142
  try {
@@ -7210,15 +7210,15 @@ function _object_spread$C(target) {
7210
7210
  return target;
7211
7211
  }
7212
7212
  function _to_consumable_array$S(arr) {
7213
- return _array_without_holes$S(arr) || _iterable_to_array$S(arr) || _unsupported_iterable_to_array$U(arr) || _non_iterable_spread$S();
7213
+ return _array_without_holes$S(arr) || _iterable_to_array$S(arr) || _unsupported_iterable_to_array$V(arr) || _non_iterable_spread$S();
7214
7214
  }
7215
- function _unsupported_iterable_to_array$U(o, minLen) {
7215
+ function _unsupported_iterable_to_array$V(o, minLen) {
7216
7216
  if (!o) return;
7217
- if (typeof o === "string") return _array_like_to_array$U(o, minLen);
7217
+ if (typeof o === "string") return _array_like_to_array$V(o, minLen);
7218
7218
  var n = Object.prototype.toString.call(o).slice(8, -1);
7219
7219
  if (n === "Object" && o.constructor) n = o.constructor.name;
7220
7220
  if (n === "Map" || n === "Set") return Array.from(n);
7221
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$U(o, minLen);
7221
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$V(o, minLen);
7222
7222
  }
7223
7223
  function _ts_generator$10(thisArg, body) {
7224
7224
  var f, y, t, _ = {
@@ -7844,12 +7844,12 @@ function _ts_generator$10(thisArg, body) {
7844
7844
  };
7845
7845
  }
7846
7846
 
7847
- function _array_like_to_array$T(arr, len) {
7847
+ function _array_like_to_array$U(arr, len) {
7848
7848
  if (len == null || len > arr.length) len = arr.length;
7849
7849
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7850
7850
  return arr2;
7851
7851
  }
7852
- function _array_with_holes$a(arr) {
7852
+ function _array_with_holes$b(arr) {
7853
7853
  if (Array.isArray(arr)) return arr;
7854
7854
  }
7855
7855
  function asyncGeneratorStep$$(gen, resolve, reject, _next, _throw, key, arg) {
@@ -7902,7 +7902,7 @@ function _instanceof$j(left, right) {
7902
7902
  return left instanceof right;
7903
7903
  }
7904
7904
  }
7905
- function _iterable_to_array_limit$a(arr, i) {
7905
+ function _iterable_to_array_limit$b(arr, i) {
7906
7906
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
7907
7907
  if (_i == null) return;
7908
7908
  var _arr = [];
@@ -7926,7 +7926,7 @@ function _iterable_to_array_limit$a(arr, i) {
7926
7926
  }
7927
7927
  return _arr;
7928
7928
  }
7929
- function _non_iterable_rest$a() {
7929
+ function _non_iterable_rest$b() {
7930
7930
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7931
7931
  }
7932
7932
  function _object_spread$B(target) {
@@ -7963,16 +7963,16 @@ function _object_spread_props$m(target, source) {
7963
7963
  }
7964
7964
  return target;
7965
7965
  }
7966
- function _sliced_to_array$a(arr, i) {
7967
- return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$T(arr, i) || _non_iterable_rest$a();
7966
+ function _sliced_to_array$b(arr, i) {
7967
+ return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$U(arr, i) || _non_iterable_rest$b();
7968
7968
  }
7969
- function _unsupported_iterable_to_array$T(o, minLen) {
7969
+ function _unsupported_iterable_to_array$U(o, minLen) {
7970
7970
  if (!o) return;
7971
- if (typeof o === "string") return _array_like_to_array$T(o, minLen);
7971
+ if (typeof o === "string") return _array_like_to_array$U(o, minLen);
7972
7972
  var n = Object.prototype.toString.call(o).slice(8, -1);
7973
7973
  if (n === "Object" && o.constructor) n = o.constructor.name;
7974
7974
  if (n === "Map" || n === "Set") return Array.from(n);
7975
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$T(o, minLen);
7975
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$U(o, minLen);
7976
7976
  }
7977
7977
  function _ts_generator$$(thisArg, body) {
7978
7978
  var f, y, t, _ = {
@@ -8134,7 +8134,7 @@ function resolveEnvWithDefault(input) {
8134
8134
  outputResult({
8135
8135
  activeEnv: config.activeEnv,
8136
8136
  envs: Object.entries(envs).map(function(param) {
8137
- var _param = _sliced_to_array$a(param, 2), name = _param[0], env = _param[1];
8137
+ var _param = _sliced_to_array$b(param, 2), name = _param[0], env = _param[1];
8138
8138
  var _ref;
8139
8139
  var resolved = resolveEnvWithDefault({
8140
8140
  name: name,
@@ -8435,13 +8435,13 @@ function resolveEnvWithDefault(input) {
8435
8435
  };
8436
8436
  }
8437
8437
 
8438
- function _array_like_to_array$S(arr, len) {
8438
+ function _array_like_to_array$T(arr, len) {
8439
8439
  if (len == null || len > arr.length) len = arr.length;
8440
8440
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
8441
8441
  return arr2;
8442
8442
  }
8443
8443
  function _array_without_holes$R(arr) {
8444
- if (Array.isArray(arr)) return _array_like_to_array$S(arr);
8444
+ if (Array.isArray(arr)) return _array_like_to_array$T(arr);
8445
8445
  }
8446
8446
  function _iterable_to_array$R(iter) {
8447
8447
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -8450,15 +8450,15 @@ function _non_iterable_spread$R() {
8450
8450
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8451
8451
  }
8452
8452
  function _to_consumable_array$R(arr) {
8453
- return _array_without_holes$R(arr) || _iterable_to_array$R(arr) || _unsupported_iterable_to_array$S(arr) || _non_iterable_spread$R();
8453
+ return _array_without_holes$R(arr) || _iterable_to_array$R(arr) || _unsupported_iterable_to_array$T(arr) || _non_iterable_spread$R();
8454
8454
  }
8455
- function _unsupported_iterable_to_array$S(o, minLen) {
8455
+ function _unsupported_iterable_to_array$T(o, minLen) {
8456
8456
  if (!o) return;
8457
- if (typeof o === "string") return _array_like_to_array$S(o, minLen);
8457
+ if (typeof o === "string") return _array_like_to_array$T(o, minLen);
8458
8458
  var n = Object.prototype.toString.call(o).slice(8, -1);
8459
8459
  if (n === "Object" && o.constructor) n = o.constructor.name;
8460
8460
  if (n === "Map" || n === "Set") return Array.from(n);
8461
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$S(o, minLen);
8461
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$T(o, minLen);
8462
8462
  }
8463
8463
  /**
8464
8464
  * Glosses for the closed `@dbxModelRead` enum surfaced on each model entry.
@@ -9811,13 +9811,13 @@ function resolveCallbacks(input) {
9811
9811
  };
9812
9812
  }
9813
9813
 
9814
- function _array_like_to_array$R(arr, len) {
9814
+ function _array_like_to_array$S(arr, len) {
9815
9815
  if (len == null || len > arr.length) len = arr.length;
9816
9816
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
9817
9817
  return arr2;
9818
9818
  }
9819
9819
  function _array_without_holes$Q(arr) {
9820
- if (Array.isArray(arr)) return _array_like_to_array$R(arr);
9820
+ if (Array.isArray(arr)) return _array_like_to_array$S(arr);
9821
9821
  }
9822
9822
  function asyncGeneratorStep$X(gen, resolve, reject, _next, _throw, key, arg) {
9823
9823
  try {
@@ -9855,15 +9855,15 @@ function _non_iterable_spread$Q() {
9855
9855
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
9856
9856
  }
9857
9857
  function _to_consumable_array$Q(arr) {
9858
- return _array_without_holes$Q(arr) || _iterable_to_array$Q(arr) || _unsupported_iterable_to_array$R(arr) || _non_iterable_spread$Q();
9858
+ return _array_without_holes$Q(arr) || _iterable_to_array$Q(arr) || _unsupported_iterable_to_array$S(arr) || _non_iterable_spread$Q();
9859
9859
  }
9860
- function _unsupported_iterable_to_array$R(o, minLen) {
9860
+ function _unsupported_iterable_to_array$S(o, minLen) {
9861
9861
  if (!o) return;
9862
- if (typeof o === "string") return _array_like_to_array$R(o, minLen);
9862
+ if (typeof o === "string") return _array_like_to_array$S(o, minLen);
9863
9863
  var n = Object.prototype.toString.call(o).slice(8, -1);
9864
9864
  if (n === "Object" && o.constructor) n = o.constructor.name;
9865
9865
  if (n === "Map" || n === "Set") return Array.from(n);
9866
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$R(o, minLen);
9866
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$S(o, minLen);
9867
9867
  }
9868
9868
  function _ts_generator$X(thisArg, body) {
9869
9869
  var f, y, t, _ = {
@@ -10178,16 +10178,16 @@ function commandName(cmd) {
10178
10178
  return result;
10179
10179
  }
10180
10180
 
10181
- function _array_like_to_array$Q(arr, len) {
10181
+ function _array_like_to_array$R(arr, len) {
10182
10182
  if (len == null || len > arr.length) len = arr.length;
10183
10183
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
10184
10184
  return arr2;
10185
10185
  }
10186
- function _array_with_holes$9(arr) {
10186
+ function _array_with_holes$a(arr) {
10187
10187
  if (Array.isArray(arr)) return arr;
10188
10188
  }
10189
10189
  function _array_without_holes$P(arr) {
10190
- if (Array.isArray(arr)) return _array_like_to_array$Q(arr);
10190
+ if (Array.isArray(arr)) return _array_like_to_array$R(arr);
10191
10191
  }
10192
10192
  function asyncGeneratorStep$W(gen, resolve, reject, _next, _throw, key, arg) {
10193
10193
  try {
@@ -10242,7 +10242,7 @@ function _instanceof$i(left, right) {
10242
10242
  function _iterable_to_array$P(iter) {
10243
10243
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
10244
10244
  }
10245
- function _iterable_to_array_limit$9(arr, i) {
10245
+ function _iterable_to_array_limit$a(arr, i) {
10246
10246
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
10247
10247
  if (_i == null) return;
10248
10248
  var _arr = [];
@@ -10266,7 +10266,7 @@ function _iterable_to_array_limit$9(arr, i) {
10266
10266
  }
10267
10267
  return _arr;
10268
10268
  }
10269
- function _non_iterable_rest$9() {
10269
+ function _non_iterable_rest$a() {
10270
10270
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
10271
10271
  }
10272
10272
  function _non_iterable_spread$P() {
@@ -10306,19 +10306,19 @@ function _object_spread_props$j(target, source) {
10306
10306
  }
10307
10307
  return target;
10308
10308
  }
10309
- function _sliced_to_array$9(arr, i) {
10310
- return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$Q(arr, i) || _non_iterable_rest$9();
10309
+ function _sliced_to_array$a(arr, i) {
10310
+ return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$R(arr, i) || _non_iterable_rest$a();
10311
10311
  }
10312
10312
  function _to_consumable_array$P(arr) {
10313
- return _array_without_holes$P(arr) || _iterable_to_array$P(arr) || _unsupported_iterable_to_array$Q(arr) || _non_iterable_spread$P();
10313
+ return _array_without_holes$P(arr) || _iterable_to_array$P(arr) || _unsupported_iterable_to_array$R(arr) || _non_iterable_spread$P();
10314
10314
  }
10315
- function _unsupported_iterable_to_array$Q(o, minLen) {
10315
+ function _unsupported_iterable_to_array$R(o, minLen) {
10316
10316
  if (!o) return;
10317
- if (typeof o === "string") return _array_like_to_array$Q(o, minLen);
10317
+ if (typeof o === "string") return _array_like_to_array$R(o, minLen);
10318
10318
  var n = Object.prototype.toString.call(o).slice(8, -1);
10319
10319
  if (n === "Object" && o.constructor) n = o.constructor.name;
10320
10320
  if (n === "Map" || n === "Set") return Array.from(n);
10321
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$Q(o, minLen);
10321
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$R(o, minLen);
10322
10322
  }
10323
10323
  function _ts_generator$W(thisArg, body) {
10324
10324
  var f, y, t, _ = {
@@ -10508,7 +10508,7 @@ var DATA_HELP_FLAG = '--data-help';
10508
10508
  var hideOnFocus = focusHelp ? (_ref4 = options === null || options === void 0 ? void 0 : options.hiddenWhenFocused) !== null && _ref4 !== void 0 ? _ref4 : STANDARD_GLOBAL_OPTION_NAMES : [];
10509
10509
  var modelCommandName = (_ref5 = options === null || options === void 0 ? void 0 : options.modelCommandName) !== null && _ref5 !== void 0 ? _ref5 : DEFAULT_MANIFEST_MODEL_COMMAND_NAME;
10510
10510
  var sortedModels = _to_consumable_array$P(byModel.entries()).sort(function(param, param1) {
10511
- var _param = _sliced_to_array$9(param, 1), a = _param[0], _param1 = _sliced_to_array$9(param1, 1), b = _param1[0];
10511
+ var _param = _sliced_to_array$a(param, 1), a = _param[0], _param1 = _sliced_to_array$a(param1, 1), b = _param1[0];
10512
10512
  return a.localeCompare(b);
10513
10513
  });
10514
10514
  var context = {
@@ -10525,7 +10525,7 @@ var DATA_HELP_FLAG = '--data-help';
10525
10525
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
10526
10526
  try {
10527
10527
  for(var _iterator = sortedModels[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
10528
- var _step_value = _sliced_to_array$9(_step.value, 2), model = _step_value[0], entries = _step_value[1];
10528
+ var _step_value = _sliced_to_array$a(_step.value, 2), model = _step_value[0], entries = _step_value[1];
10529
10529
  yargs.command(buildModelCommand(model, entries, context));
10530
10530
  }
10531
10531
  } catch (err) {
@@ -11495,13 +11495,13 @@ var DEFAULT_READ_FILE$f = function DEFAULT_READ_FILE(path) {
11495
11495
  })();
11496
11496
  }
11497
11497
 
11498
- function _array_like_to_array$P(arr, len) {
11498
+ function _array_like_to_array$Q(arr, len) {
11499
11499
  if (len == null || len > arr.length) len = arr.length;
11500
11500
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
11501
11501
  return arr2;
11502
11502
  }
11503
11503
  function _array_without_holes$O(arr) {
11504
- if (Array.isArray(arr)) return _array_like_to_array$P(arr);
11504
+ if (Array.isArray(arr)) return _array_like_to_array$Q(arr);
11505
11505
  }
11506
11506
  function _iterable_to_array$O(iter) {
11507
11507
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -11510,15 +11510,15 @@ function _non_iterable_spread$O() {
11510
11510
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11511
11511
  }
11512
11512
  function _to_consumable_array$O(arr) {
11513
- return _array_without_holes$O(arr) || _iterable_to_array$O(arr) || _unsupported_iterable_to_array$P(arr) || _non_iterable_spread$O();
11513
+ return _array_without_holes$O(arr) || _iterable_to_array$O(arr) || _unsupported_iterable_to_array$Q(arr) || _non_iterable_spread$O();
11514
11514
  }
11515
- function _unsupported_iterable_to_array$P(o, minLen) {
11515
+ function _unsupported_iterable_to_array$Q(o, minLen) {
11516
11516
  if (!o) return;
11517
- if (typeof o === "string") return _array_like_to_array$P(o, minLen);
11517
+ if (typeof o === "string") return _array_like_to_array$Q(o, minLen);
11518
11518
  var n = Object.prototype.toString.call(o).slice(8, -1);
11519
11519
  if (n === "Object" && o.constructor) n = o.constructor.name;
11520
11520
  if (n === "Map" || n === "Set") return Array.from(n);
11521
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$P(o, minLen);
11521
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$Q(o, minLen);
11522
11522
  }
11523
11523
  /**
11524
11524
  * Semantic-types registry wrapper.
@@ -13120,13 +13120,13 @@ var FORM_FIELDS = [
13120
13120
  }
13121
13121
  ];
13122
13122
 
13123
- function _array_like_to_array$O(arr, len) {
13123
+ function _array_like_to_array$P(arr, len) {
13124
13124
  if (len == null || len > arr.length) len = arr.length;
13125
13125
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
13126
13126
  return arr2;
13127
13127
  }
13128
13128
  function _array_without_holes$N(arr) {
13129
- if (Array.isArray(arr)) return _array_like_to_array$O(arr);
13129
+ if (Array.isArray(arr)) return _array_like_to_array$P(arr);
13130
13130
  }
13131
13131
  function _define_property$w(obj, key, value) {
13132
13132
  if (key in obj) {
@@ -13163,15 +13163,15 @@ function _object_spread$w(target) {
13163
13163
  return target;
13164
13164
  }
13165
13165
  function _to_consumable_array$N(arr) {
13166
- return _array_without_holes$N(arr) || _iterable_to_array$N(arr) || _unsupported_iterable_to_array$O(arr) || _non_iterable_spread$N();
13166
+ return _array_without_holes$N(arr) || _iterable_to_array$N(arr) || _unsupported_iterable_to_array$P(arr) || _non_iterable_spread$N();
13167
13167
  }
13168
- function _unsupported_iterable_to_array$O(o, minLen) {
13168
+ function _unsupported_iterable_to_array$P(o, minLen) {
13169
13169
  if (!o) return;
13170
- if (typeof o === "string") return _array_like_to_array$O(o, minLen);
13170
+ if (typeof o === "string") return _array_like_to_array$P(o, minLen);
13171
13171
  var n = Object.prototype.toString.call(o).slice(8, -1);
13172
13172
  if (n === "Object" && o.constructor) n = o.constructor.name;
13173
13173
  if (n === "Map" || n === "Set") return Array.from(n);
13174
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$O(o, minLen);
13174
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$P(o, minLen);
13175
13175
  }
13176
13176
  /**
13177
13177
  * Actions runtime registry wrapper.
@@ -13407,13 +13407,13 @@ function pushInto$b(map, key, entry) {
13407
13407
  }
13408
13408
  }
13409
13409
 
13410
- function _array_like_to_array$N(arr, len) {
13410
+ function _array_like_to_array$O(arr, len) {
13411
13411
  if (len == null || len > arr.length) len = arr.length;
13412
13412
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
13413
13413
  return arr2;
13414
13414
  }
13415
13415
  function _array_without_holes$M(arr) {
13416
- if (Array.isArray(arr)) return _array_like_to_array$N(arr);
13416
+ if (Array.isArray(arr)) return _array_like_to_array$O(arr);
13417
13417
  }
13418
13418
  function _iterable_to_array$M(iter) {
13419
13419
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -13422,15 +13422,15 @@ function _non_iterable_spread$M() {
13422
13422
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13423
13423
  }
13424
13424
  function _to_consumable_array$M(arr) {
13425
- return _array_without_holes$M(arr) || _iterable_to_array$M(arr) || _unsupported_iterable_to_array$N(arr) || _non_iterable_spread$M();
13425
+ return _array_without_holes$M(arr) || _iterable_to_array$M(arr) || _unsupported_iterable_to_array$O(arr) || _non_iterable_spread$M();
13426
13426
  }
13427
- function _unsupported_iterable_to_array$N(o, minLen) {
13427
+ function _unsupported_iterable_to_array$O(o, minLen) {
13428
13428
  if (!o) return;
13429
- if (typeof o === "string") return _array_like_to_array$N(o, minLen);
13429
+ if (typeof o === "string") return _array_like_to_array$O(o, minLen);
13430
13430
  var n = Object.prototype.toString.call(o).slice(8, -1);
13431
13431
  if (n === "Object" && o.constructor) n = o.constructor.name;
13432
13432
  if (n === "Map" || n === "Set") return Array.from(n);
13433
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$N(o, minLen);
13433
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$O(o, minLen);
13434
13434
  }
13435
13435
  /**
13436
13436
  * UI components runtime registry wrapper.
@@ -13625,21 +13625,21 @@ function splitSelectorTokens(selector) {
13625
13625
  return out;
13626
13626
  }
13627
13627
 
13628
- function _array_like_to_array$M(arr, len) {
13628
+ function _array_like_to_array$N(arr, len) {
13629
13629
  if (len == null || len > arr.length) len = arr.length;
13630
13630
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
13631
13631
  return arr2;
13632
13632
  }
13633
- function _array_with_holes$8(arr) {
13633
+ function _array_with_holes$9(arr) {
13634
13634
  if (Array.isArray(arr)) return arr;
13635
13635
  }
13636
13636
  function _array_without_holes$L(arr) {
13637
- if (Array.isArray(arr)) return _array_like_to_array$M(arr);
13637
+ if (Array.isArray(arr)) return _array_like_to_array$N(arr);
13638
13638
  }
13639
13639
  function _iterable_to_array$L(iter) {
13640
13640
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
13641
13641
  }
13642
- function _iterable_to_array_limit$8(arr, i) {
13642
+ function _iterable_to_array_limit$9(arr, i) {
13643
13643
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
13644
13644
  if (_i == null) return;
13645
13645
  var _arr = [];
@@ -13663,25 +13663,25 @@ function _iterable_to_array_limit$8(arr, i) {
13663
13663
  }
13664
13664
  return _arr;
13665
13665
  }
13666
- function _non_iterable_rest$8() {
13666
+ function _non_iterable_rest$9() {
13667
13667
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13668
13668
  }
13669
13669
  function _non_iterable_spread$L() {
13670
13670
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13671
13671
  }
13672
- function _sliced_to_array$8(arr, i) {
13673
- return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$M(arr, i) || _non_iterable_rest$8();
13672
+ function _sliced_to_array$9(arr, i) {
13673
+ return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$N(arr, i) || _non_iterable_rest$9();
13674
13674
  }
13675
13675
  function _to_consumable_array$L(arr) {
13676
- return _array_without_holes$L(arr) || _iterable_to_array$L(arr) || _unsupported_iterable_to_array$M(arr) || _non_iterable_spread$L();
13676
+ return _array_without_holes$L(arr) || _iterable_to_array$L(arr) || _unsupported_iterable_to_array$N(arr) || _non_iterable_spread$L();
13677
13677
  }
13678
- function _unsupported_iterable_to_array$M(o, minLen) {
13678
+ function _unsupported_iterable_to_array$N(o, minLen) {
13679
13679
  if (!o) return;
13680
- if (typeof o === "string") return _array_like_to_array$M(o, minLen);
13680
+ if (typeof o === "string") return _array_like_to_array$N(o, minLen);
13681
13681
  var n = Object.prototype.toString.call(o).slice(8, -1);
13682
13682
  if (n === "Object" && o.constructor) n = o.constructor.name;
13683
13683
  if (n === "Map" || n === "Set") return Array.from(n);
13684
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$M(o, minLen);
13684
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$N(o, minLen);
13685
13685
  }
13686
13686
  /**
13687
13687
  * CSS-utility-class runtime registry wrapper.
@@ -14172,7 +14172,7 @@ function freezeBuckets$1(map) {
14172
14172
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
14173
14173
  try {
14174
14174
  for(var _iterator = map[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
14175
- var _step_value = _sliced_to_array$8(_step.value, 2), key = _step_value[0], list = _step_value[1];
14175
+ var _step_value = _sliced_to_array$9(_step.value, 2), key = _step_value[0], list = _step_value[1];
14176
14176
  out.set(key, _to_consumable_array$L(list));
14177
14177
  }
14178
14178
  } catch (err) {
@@ -14192,13 +14192,13 @@ function freezeBuckets$1(map) {
14192
14192
  return out;
14193
14193
  }
14194
14194
 
14195
- function _array_like_to_array$L(arr, len) {
14195
+ function _array_like_to_array$M(arr, len) {
14196
14196
  if (len == null || len > arr.length) len = arr.length;
14197
14197
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
14198
14198
  return arr2;
14199
14199
  }
14200
14200
  function _array_without_holes$K(arr) {
14201
- if (Array.isArray(arr)) return _array_like_to_array$L(arr);
14201
+ if (Array.isArray(arr)) return _array_like_to_array$M(arr);
14202
14202
  }
14203
14203
  function _define_property$v(obj, key, value) {
14204
14204
  if (key in obj) {
@@ -14254,15 +14254,15 @@ function _object_spread_props$i(target, source) {
14254
14254
  return target;
14255
14255
  }
14256
14256
  function _to_consumable_array$K(arr) {
14257
- return _array_without_holes$K(arr) || _iterable_to_array$K(arr) || _unsupported_iterable_to_array$L(arr) || _non_iterable_spread$K();
14257
+ return _array_without_holes$K(arr) || _iterable_to_array$K(arr) || _unsupported_iterable_to_array$M(arr) || _non_iterable_spread$K();
14258
14258
  }
14259
- function _unsupported_iterable_to_array$L(o, minLen) {
14259
+ function _unsupported_iterable_to_array$M(o, minLen) {
14260
14260
  if (!o) return;
14261
- if (typeof o === "string") return _array_like_to_array$L(o, minLen);
14261
+ if (typeof o === "string") return _array_like_to_array$M(o, minLen);
14262
14262
  var n = Object.prototype.toString.call(o).slice(8, -1);
14263
14263
  if (n === "Object" && o.constructor) n = o.constructor.name;
14264
14264
  if (n === "Map" || n === "Set") return Array.from(n);
14265
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$L(o, minLen);
14265
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$M(o, minLen);
14266
14266
  }
14267
14267
  /**
14268
14268
  * Forge-fields runtime registry wrapper.
@@ -14554,13 +14554,13 @@ function toConfigRecord(properties) {
14554
14554
  return out;
14555
14555
  }
14556
14556
 
14557
- function _array_like_to_array$K(arr, len) {
14557
+ function _array_like_to_array$L(arr, len) {
14558
14558
  if (len == null || len > arr.length) len = arr.length;
14559
14559
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
14560
14560
  return arr2;
14561
14561
  }
14562
14562
  function _array_without_holes$J(arr) {
14563
- if (Array.isArray(arr)) return _array_like_to_array$K(arr);
14563
+ if (Array.isArray(arr)) return _array_like_to_array$L(arr);
14564
14564
  }
14565
14565
  function _iterable_to_array$J(iter) {
14566
14566
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -14569,15 +14569,15 @@ function _non_iterable_spread$J() {
14569
14569
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
14570
14570
  }
14571
14571
  function _to_consumable_array$J(arr) {
14572
- return _array_without_holes$J(arr) || _iterable_to_array$J(arr) || _unsupported_iterable_to_array$K(arr) || _non_iterable_spread$J();
14572
+ return _array_without_holes$J(arr) || _iterable_to_array$J(arr) || _unsupported_iterable_to_array$L(arr) || _non_iterable_spread$J();
14573
14573
  }
14574
- function _unsupported_iterable_to_array$K(o, minLen) {
14574
+ function _unsupported_iterable_to_array$L(o, minLen) {
14575
14575
  if (!o) return;
14576
- if (typeof o === "string") return _array_like_to_array$K(o, minLen);
14576
+ if (typeof o === "string") return _array_like_to_array$L(o, minLen);
14577
14577
  var n = Object.prototype.toString.call(o).slice(8, -1);
14578
14578
  if (n === "Object" && o.constructor) n = o.constructor.name;
14579
14579
  if (n === "Map" || n === "Set") return Array.from(n);
14580
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$K(o, minLen);
14580
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$L(o, minLen);
14581
14581
  }
14582
14582
  /**
14583
14583
  * Pipes runtime registry wrapper.
@@ -14744,13 +14744,13 @@ function pushInto$7(map, key, entry) {
14744
14744
  }
14745
14745
  }
14746
14746
 
14747
- function _array_like_to_array$J(arr, len) {
14747
+ function _array_like_to_array$K(arr, len) {
14748
14748
  if (len == null || len > arr.length) len = arr.length;
14749
14749
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
14750
14750
  return arr2;
14751
14751
  }
14752
14752
  function _array_without_holes$I(arr) {
14753
- if (Array.isArray(arr)) return _array_like_to_array$J(arr);
14753
+ if (Array.isArray(arr)) return _array_like_to_array$K(arr);
14754
14754
  }
14755
14755
  function _iterable_to_array$I(iter) {
14756
14756
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -14759,15 +14759,15 @@ function _non_iterable_spread$I() {
14759
14759
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
14760
14760
  }
14761
14761
  function _to_consumable_array$I(arr) {
14762
- return _array_without_holes$I(arr) || _iterable_to_array$I(arr) || _unsupported_iterable_to_array$J(arr) || _non_iterable_spread$I();
14762
+ return _array_without_holes$I(arr) || _iterable_to_array$I(arr) || _unsupported_iterable_to_array$K(arr) || _non_iterable_spread$I();
14763
14763
  }
14764
- function _unsupported_iterable_to_array$J(o, minLen) {
14764
+ function _unsupported_iterable_to_array$K(o, minLen) {
14765
14765
  if (!o) return;
14766
- if (typeof o === "string") return _array_like_to_array$J(o, minLen);
14766
+ if (typeof o === "string") return _array_like_to_array$K(o, minLen);
14767
14767
  var n = Object.prototype.toString.call(o).slice(8, -1);
14768
14768
  if (n === "Object" && o.constructor) n = o.constructor.name;
14769
14769
  if (n === "Map" || n === "Set") return Array.from(n);
14770
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$J(o, minLen);
14770
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$K(o, minLen);
14771
14771
  }
14772
14772
  /**
14773
14773
  * Utils runtime registry wrapper.
@@ -14962,21 +14962,21 @@ function pushInto$6(map, key, entry) {
14962
14962
  }
14963
14963
  }
14964
14964
 
14965
- function _array_like_to_array$I(arr, len) {
14965
+ function _array_like_to_array$J(arr, len) {
14966
14966
  if (len == null || len > arr.length) len = arr.length;
14967
14967
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
14968
14968
  return arr2;
14969
14969
  }
14970
- function _array_with_holes$7(arr) {
14970
+ function _array_with_holes$8(arr) {
14971
14971
  if (Array.isArray(arr)) return arr;
14972
14972
  }
14973
14973
  function _array_without_holes$H(arr) {
14974
- if (Array.isArray(arr)) return _array_like_to_array$I(arr);
14974
+ if (Array.isArray(arr)) return _array_like_to_array$J(arr);
14975
14975
  }
14976
14976
  function _iterable_to_array$H(iter) {
14977
14977
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
14978
14978
  }
14979
- function _iterable_to_array_limit$7(arr, i) {
14979
+ function _iterable_to_array_limit$8(arr, i) {
14980
14980
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
14981
14981
  if (_i == null) return;
14982
14982
  var _arr = [];
@@ -15000,25 +15000,25 @@ function _iterable_to_array_limit$7(arr, i) {
15000
15000
  }
15001
15001
  return _arr;
15002
15002
  }
15003
- function _non_iterable_rest$7() {
15003
+ function _non_iterable_rest$8() {
15004
15004
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15005
15005
  }
15006
15006
  function _non_iterable_spread$H() {
15007
15007
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15008
15008
  }
15009
- function _sliced_to_array$7(arr, i) {
15010
- return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$I(arr, i) || _non_iterable_rest$7();
15009
+ function _sliced_to_array$8(arr, i) {
15010
+ return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$J(arr, i) || _non_iterable_rest$8();
15011
15011
  }
15012
15012
  function _to_consumable_array$H(arr) {
15013
- return _array_without_holes$H(arr) || _iterable_to_array$H(arr) || _unsupported_iterable_to_array$I(arr) || _non_iterable_spread$H();
15013
+ return _array_without_holes$H(arr) || _iterable_to_array$H(arr) || _unsupported_iterable_to_array$J(arr) || _non_iterable_spread$H();
15014
15014
  }
15015
- function _unsupported_iterable_to_array$I(o, minLen) {
15015
+ function _unsupported_iterable_to_array$J(o, minLen) {
15016
15016
  if (!o) return;
15017
- if (typeof o === "string") return _array_like_to_array$I(o, minLen);
15017
+ if (typeof o === "string") return _array_like_to_array$J(o, minLen);
15018
15018
  var n = Object.prototype.toString.call(o).slice(8, -1);
15019
15019
  if (n === "Object" && o.constructor) n = o.constructor.name;
15020
15020
  if (n === "Map" || n === "Set") return Array.from(n);
15021
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$I(o, minLen);
15021
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$J(o, minLen);
15022
15022
  }
15023
15023
  /**
15024
15024
  * Tokens runtime registry wrapper.
@@ -15277,7 +15277,7 @@ function freezeBuckets(map) {
15277
15277
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
15278
15278
  try {
15279
15279
  for(var _iterator = map[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
15280
- var _step_value = _sliced_to_array$7(_step.value, 2), key = _step_value[0], list = _step_value[1];
15280
+ var _step_value = _sliced_to_array$8(_step.value, 2), key = _step_value[0], list = _step_value[1];
15281
15281
  out.set(key, _to_consumable_array$H(list));
15282
15282
  }
15283
15283
  } catch (err) {
@@ -15297,13 +15297,13 @@ function freezeBuckets(map) {
15297
15297
  return out;
15298
15298
  }
15299
15299
 
15300
- function _array_like_to_array$H(arr, len) {
15300
+ function _array_like_to_array$I(arr, len) {
15301
15301
  if (len == null || len > arr.length) len = arr.length;
15302
15302
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15303
15303
  return arr2;
15304
15304
  }
15305
15305
  function _array_without_holes$G(arr) {
15306
- if (Array.isArray(arr)) return _array_like_to_array$H(arr);
15306
+ if (Array.isArray(arr)) return _array_like_to_array$I(arr);
15307
15307
  }
15308
15308
  function _iterable_to_array$G(iter) {
15309
15309
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -15312,15 +15312,15 @@ function _non_iterable_spread$G() {
15312
15312
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15313
15313
  }
15314
15314
  function _to_consumable_array$G(arr) {
15315
- return _array_without_holes$G(arr) || _iterable_to_array$G(arr) || _unsupported_iterable_to_array$H(arr) || _non_iterable_spread$G();
15315
+ return _array_without_holes$G(arr) || _iterable_to_array$G(arr) || _unsupported_iterable_to_array$I(arr) || _non_iterable_spread$G();
15316
15316
  }
15317
- function _unsupported_iterable_to_array$H(o, minLen) {
15317
+ function _unsupported_iterable_to_array$I(o, minLen) {
15318
15318
  if (!o) return;
15319
- if (typeof o === "string") return _array_like_to_array$H(o, minLen);
15319
+ if (typeof o === "string") return _array_like_to_array$I(o, minLen);
15320
15320
  var n = Object.prototype.toString.call(o).slice(8, -1);
15321
15321
  if (n === "Object" && o.constructor) n = o.constructor.name;
15322
15322
  if (n === "Map" || n === "Set") return Array.from(n);
15323
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$H(o, minLen);
15323
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$I(o, minLen);
15324
15324
  }
15325
15325
  /**
15326
15326
  * Model-snapshot-fields runtime registry wrapper.
@@ -15517,13 +15517,13 @@ function pushInto$4(map, key, entry) {
15517
15517
  }
15518
15518
  }
15519
15519
 
15520
- function _array_like_to_array$G(arr, len) {
15520
+ function _array_like_to_array$H(arr, len) {
15521
15521
  if (len == null || len > arr.length) len = arr.length;
15522
15522
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15523
15523
  return arr2;
15524
15524
  }
15525
15525
  function _array_without_holes$F(arr) {
15526
- if (Array.isArray(arr)) return _array_like_to_array$G(arr);
15526
+ if (Array.isArray(arr)) return _array_like_to_array$H(arr);
15527
15527
  }
15528
15528
  function _iterable_to_array$F(iter) {
15529
15529
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -15532,15 +15532,15 @@ function _non_iterable_spread$F() {
15532
15532
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15533
15533
  }
15534
15534
  function _to_consumable_array$F(arr) {
15535
- return _array_without_holes$F(arr) || _iterable_to_array$F(arr) || _unsupported_iterable_to_array$G(arr) || _non_iterable_spread$F();
15535
+ return _array_without_holes$F(arr) || _iterable_to_array$F(arr) || _unsupported_iterable_to_array$H(arr) || _non_iterable_spread$F();
15536
15536
  }
15537
- function _unsupported_iterable_to_array$G(o, minLen) {
15537
+ function _unsupported_iterable_to_array$H(o, minLen) {
15538
15538
  if (!o) return;
15539
- if (typeof o === "string") return _array_like_to_array$G(o, minLen);
15539
+ if (typeof o === "string") return _array_like_to_array$H(o, minLen);
15540
15540
  var n = Object.prototype.toString.call(o).slice(8, -1);
15541
15541
  if (n === "Object" && o.constructor) n = o.constructor.name;
15542
15542
  if (n === "Map" || n === "Set") return Array.from(n);
15543
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$G(o, minLen);
15543
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$H(o, minLen);
15544
15544
  }
15545
15545
  /**
15546
15546
  * dbx-docs-ui-examples runtime registry wrapper.
@@ -15671,13 +15671,13 @@ function sortedKeys(map) {
15671
15671
  });
15672
15672
  }
15673
15673
 
15674
- function _array_like_to_array$F(arr, len) {
15674
+ function _array_like_to_array$G(arr, len) {
15675
15675
  if (len == null || len > arr.length) len = arr.length;
15676
15676
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15677
15677
  return arr2;
15678
15678
  }
15679
15679
  function _array_without_holes$E(arr) {
15680
- if (Array.isArray(arr)) return _array_like_to_array$F(arr);
15680
+ if (Array.isArray(arr)) return _array_like_to_array$G(arr);
15681
15681
  }
15682
15682
  function _iterable_to_array$E(iter) {
15683
15683
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -15686,15 +15686,15 @@ function _non_iterable_spread$E() {
15686
15686
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15687
15687
  }
15688
15688
  function _to_consumable_array$E(arr) {
15689
- return _array_without_holes$E(arr) || _iterable_to_array$E(arr) || _unsupported_iterable_to_array$F(arr) || _non_iterable_spread$E();
15689
+ return _array_without_holes$E(arr) || _iterable_to_array$E(arr) || _unsupported_iterable_to_array$G(arr) || _non_iterable_spread$E();
15690
15690
  }
15691
- function _unsupported_iterable_to_array$F(o, minLen) {
15691
+ function _unsupported_iterable_to_array$G(o, minLen) {
15692
15692
  if (!o) return;
15693
- if (typeof o === "string") return _array_like_to_array$F(o, minLen);
15693
+ if (typeof o === "string") return _array_like_to_array$G(o, minLen);
15694
15694
  var n = Object.prototype.toString.call(o).slice(8, -1);
15695
15695
  if (n === "Object" && o.constructor) n = o.constructor.name;
15696
15696
  if (n === "Map" || n === "Set") return Array.from(n);
15697
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$F(o, minLen);
15697
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$G(o, minLen);
15698
15698
  }
15699
15699
  /**
15700
15700
  * Filters runtime registry wrapper.
@@ -15886,13 +15886,13 @@ function stripSelectorBrackets(selector) {
15886
15886
  return selector.startsWith('[') && selector.endsWith(']') ? selector.slice(1, -1) : selector;
15887
15887
  }
15888
15888
 
15889
- function _array_like_to_array$E(arr, len) {
15889
+ function _array_like_to_array$F(arr, len) {
15890
15890
  if (len == null || len > arr.length) len = arr.length;
15891
15891
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15892
15892
  return arr2;
15893
15893
  }
15894
15894
  function _array_without_holes$D(arr) {
15895
- if (Array.isArray(arr)) return _array_like_to_array$E(arr);
15895
+ if (Array.isArray(arr)) return _array_like_to_array$F(arr);
15896
15896
  }
15897
15897
  function _iterable_to_array$D(iter) {
15898
15898
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -15901,15 +15901,15 @@ function _non_iterable_spread$D() {
15901
15901
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15902
15902
  }
15903
15903
  function _to_consumable_array$D(arr) {
15904
- return _array_without_holes$D(arr) || _iterable_to_array$D(arr) || _unsupported_iterable_to_array$E(arr) || _non_iterable_spread$D();
15904
+ return _array_without_holes$D(arr) || _iterable_to_array$D(arr) || _unsupported_iterable_to_array$F(arr) || _non_iterable_spread$D();
15905
15905
  }
15906
- function _unsupported_iterable_to_array$E(o, minLen) {
15906
+ function _unsupported_iterable_to_array$F(o, minLen) {
15907
15907
  if (!o) return;
15908
- if (typeof o === "string") return _array_like_to_array$E(o, minLen);
15908
+ if (typeof o === "string") return _array_like_to_array$F(o, minLen);
15909
15909
  var n = Object.prototype.toString.call(o).slice(8, -1);
15910
15910
  if (n === "Object" && o.constructor) n = o.constructor.name;
15911
15911
  if (n === "Map" || n === "Set") return Array.from(n);
15912
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$E(o, minLen);
15912
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$F(o, minLen);
15913
15913
  }
15914
15914
  /**
15915
15915
  * Auth runtime registry wrapper.
@@ -16191,21 +16191,21 @@ function indexApps(apps) {
16191
16191
  };
16192
16192
  }
16193
16193
 
16194
- function _array_like_to_array$D(arr, len) {
16194
+ function _array_like_to_array$E(arr, len) {
16195
16195
  if (len == null || len > arr.length) len = arr.length;
16196
16196
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
16197
16197
  return arr2;
16198
16198
  }
16199
- function _array_with_holes$6(arr) {
16199
+ function _array_with_holes$7(arr) {
16200
16200
  if (Array.isArray(arr)) return arr;
16201
16201
  }
16202
16202
  function _array_without_holes$C(arr) {
16203
- if (Array.isArray(arr)) return _array_like_to_array$D(arr);
16203
+ if (Array.isArray(arr)) return _array_like_to_array$E(arr);
16204
16204
  }
16205
16205
  function _iterable_to_array$C(iter) {
16206
16206
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
16207
16207
  }
16208
- function _iterable_to_array_limit$6(arr, i) {
16208
+ function _iterable_to_array_limit$7(arr, i) {
16209
16209
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
16210
16210
  if (_i == null) return;
16211
16211
  var _arr = [];
@@ -16229,25 +16229,25 @@ function _iterable_to_array_limit$6(arr, i) {
16229
16229
  }
16230
16230
  return _arr;
16231
16231
  }
16232
- function _non_iterable_rest$6() {
16232
+ function _non_iterable_rest$7() {
16233
16233
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
16234
16234
  }
16235
16235
  function _non_iterable_spread$C() {
16236
16236
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
16237
16237
  }
16238
- function _sliced_to_array$6(arr, i) {
16239
- return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$D(arr, i) || _non_iterable_rest$6();
16238
+ function _sliced_to_array$7(arr, i) {
16239
+ return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$E(arr, i) || _non_iterable_rest$7();
16240
16240
  }
16241
16241
  function _to_consumable_array$C(arr) {
16242
- return _array_without_holes$C(arr) || _iterable_to_array$C(arr) || _unsupported_iterable_to_array$D(arr) || _non_iterable_spread$C();
16242
+ return _array_without_holes$C(arr) || _iterable_to_array$C(arr) || _unsupported_iterable_to_array$E(arr) || _non_iterable_spread$C();
16243
16243
  }
16244
- function _unsupported_iterable_to_array$D(o, minLen) {
16244
+ function _unsupported_iterable_to_array$E(o, minLen) {
16245
16245
  if (!o) return;
16246
- if (typeof o === "string") return _array_like_to_array$D(o, minLen);
16246
+ if (typeof o === "string") return _array_like_to_array$E(o, minLen);
16247
16247
  var n = Object.prototype.toString.call(o).slice(8, -1);
16248
16248
  if (n === "Object" && o.constructor) n = o.constructor.name;
16249
16249
  if (n === "Map" || n === "Set") return Array.from(n);
16250
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$D(o, minLen);
16250
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$E(o, minLen);
16251
16251
  }
16252
16252
  var UTIL_ROLE_PATH = 'packages/util/src/lib/auth/auth.role.ts';
16253
16253
  var STORAGE_CLAIM_PATH = 'packages/firebase/src/lib/model/storagefile/storagefile.upload.claims.ts';
@@ -16370,7 +16370,7 @@ var DEMO_CLAIMS_PATH = 'components/demo-firebase/src/lib/auth/claims.ts';
16370
16370
  */ var BUILTIN_AUTH_SCOPES = firebase.CALL_MODEL_OIDC_SCOPES.map(function(scope) {
16371
16371
  var _Object_entries_find;
16372
16372
  var callType = ((_Object_entries_find = Object.entries(firebase.CALL_MODEL_OIDC_SCOPE_FOR_CALL_TYPE).find(function(param) {
16373
- var _param = _sliced_to_array$6(param, 2), s = _param[1];
16373
+ var _param = _sliced_to_array$7(param, 2), s = _param[1];
16374
16374
  return s === scope;
16375
16375
  })) !== null && _Object_entries_find !== void 0 ? _Object_entries_find : [])[0];
16376
16376
  var result = {
@@ -20820,13 +20820,13 @@ function identifierName(node) {
20820
20820
  return result;
20821
20821
  }
20822
20822
 
20823
- function _array_like_to_array$C(arr, len) {
20823
+ function _array_like_to_array$D(arr, len) {
20824
20824
  if (len == null || len > arr.length) len = arr.length;
20825
20825
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
20826
20826
  return arr2;
20827
20827
  }
20828
20828
  function _array_without_holes$B(arr) {
20829
- if (Array.isArray(arr)) return _array_like_to_array$C(arr);
20829
+ if (Array.isArray(arr)) return _array_like_to_array$D(arr);
20830
20830
  }
20831
20831
  function _iterable_to_array$B(iter) {
20832
20832
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -20835,15 +20835,15 @@ function _non_iterable_spread$B() {
20835
20835
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
20836
20836
  }
20837
20837
  function _to_consumable_array$B(arr) {
20838
- return _array_without_holes$B(arr) || _iterable_to_array$B(arr) || _unsupported_iterable_to_array$C(arr) || _non_iterable_spread$B();
20838
+ return _array_without_holes$B(arr) || _iterable_to_array$B(arr) || _unsupported_iterable_to_array$D(arr) || _non_iterable_spread$B();
20839
20839
  }
20840
- function _unsupported_iterable_to_array$C(o, minLen) {
20840
+ function _unsupported_iterable_to_array$D(o, minLen) {
20841
20841
  if (!o) return;
20842
- if (typeof o === "string") return _array_like_to_array$C(o, minLen);
20842
+ if (typeof o === "string") return _array_like_to_array$D(o, minLen);
20843
20843
  var n = Object.prototype.toString.call(o).slice(8, -1);
20844
20844
  if (n === "Object" && o.constructor) n = o.constructor.name;
20845
20845
  if (n === "Map" || n === "Set") return Array.from(n);
20846
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$C(o, minLen);
20846
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$D(o, minLen);
20847
20847
  }
20848
20848
  var CONTAINER_SUFFIX = 'FirestoreCollections';
20849
20849
  var MODEL_NAME_RE = /\b([A-Z][A-Za-z0-9]*)FirestoreCollection(?:Factory|Group)?\b/g;
@@ -20980,13 +20980,13 @@ function extractGroupModelNames(text) {
20980
20980
  });
20981
20981
  }
20982
20982
 
20983
- function _array_like_to_array$B(arr, len) {
20983
+ function _array_like_to_array$C(arr, len) {
20984
20984
  if (len == null || len > arr.length) len = arr.length;
20985
20985
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
20986
20986
  return arr2;
20987
20987
  }
20988
20988
  function _array_without_holes$A(arr) {
20989
- if (Array.isArray(arr)) return _array_like_to_array$B(arr);
20989
+ if (Array.isArray(arr)) return _array_like_to_array$C(arr);
20990
20990
  }
20991
20991
  function _iterable_to_array$A(iter) {
20992
20992
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -20995,15 +20995,15 @@ function _non_iterable_spread$A() {
20995
20995
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
20996
20996
  }
20997
20997
  function _to_consumable_array$A(arr) {
20998
- return _array_without_holes$A(arr) || _iterable_to_array$A(arr) || _unsupported_iterable_to_array$B(arr) || _non_iterable_spread$A();
20998
+ return _array_without_holes$A(arr) || _iterable_to_array$A(arr) || _unsupported_iterable_to_array$C(arr) || _non_iterable_spread$A();
20999
20999
  }
21000
- function _unsupported_iterable_to_array$B(o, minLen) {
21000
+ function _unsupported_iterable_to_array$C(o, minLen) {
21001
21001
  if (!o) return;
21002
- if (typeof o === "string") return _array_like_to_array$B(o, minLen);
21002
+ if (typeof o === "string") return _array_like_to_array$C(o, minLen);
21003
21003
  var n = Object.prototype.toString.call(o).slice(8, -1);
21004
21004
  if (n === "Object" && o.constructor) n = o.constructor.name;
21005
21005
  if (n === "Map" || n === "Set") return Array.from(n);
21006
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$B(o, minLen);
21006
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$C(o, minLen);
21007
21007
  }
21008
21008
  // MARK: Tagged-doc detection
21009
21009
  /**
@@ -21847,13 +21847,13 @@ function detectKind(fn) {
21847
21847
  return result;
21848
21848
  }
21849
21849
 
21850
- function _array_like_to_array$A(arr, len) {
21850
+ function _array_like_to_array$B(arr, len) {
21851
21851
  if (len == null || len > arr.length) len = arr.length;
21852
21852
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
21853
21853
  return arr2;
21854
21854
  }
21855
21855
  function _array_without_holes$z(arr) {
21856
- if (Array.isArray(arr)) return _array_like_to_array$A(arr);
21856
+ if (Array.isArray(arr)) return _array_like_to_array$B(arr);
21857
21857
  }
21858
21858
  function asyncGeneratorStep$T(gen, resolve, reject, _next, _throw, key, arg) {
21859
21859
  try {
@@ -21946,15 +21946,15 @@ function _object_spread_props$g(target, source) {
21946
21946
  return target;
21947
21947
  }
21948
21948
  function _to_consumable_array$z(arr) {
21949
- return _array_without_holes$z(arr) || _iterable_to_array$z(arr) || _unsupported_iterable_to_array$A(arr) || _non_iterable_spread$z();
21949
+ return _array_without_holes$z(arr) || _iterable_to_array$z(arr) || _unsupported_iterable_to_array$B(arr) || _non_iterable_spread$z();
21950
21950
  }
21951
- function _unsupported_iterable_to_array$A(o, minLen) {
21951
+ function _unsupported_iterable_to_array$B(o, minLen) {
21952
21952
  if (!o) return;
21953
- if (typeof o === "string") return _array_like_to_array$A(o, minLen);
21953
+ if (typeof o === "string") return _array_like_to_array$B(o, minLen);
21954
21954
  var n = Object.prototype.toString.call(o).slice(8, -1);
21955
21955
  if (n === "Object" && o.constructor) n = o.constructor.name;
21956
21956
  if (n === "Map" || n === "Set") return Array.from(n);
21957
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$A(o, minLen);
21957
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$B(o, minLen);
21958
21958
  }
21959
21959
  function _ts_generator$T(thisArg, body) {
21960
21960
  var f, y, t, _ = {
@@ -22844,13 +22844,13 @@ function collectIfSourceFile(name, full, out) {
22844
22844
  })();
22845
22845
  }
22846
22846
 
22847
- function _array_like_to_array$z(arr, len) {
22847
+ function _array_like_to_array$A(arr, len) {
22848
22848
  if (len == null || len > arr.length) len = arr.length;
22849
22849
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
22850
22850
  return arr2;
22851
22851
  }
22852
22852
  function _array_without_holes$y(arr) {
22853
- if (Array.isArray(arr)) return _array_like_to_array$z(arr);
22853
+ if (Array.isArray(arr)) return _array_like_to_array$A(arr);
22854
22854
  }
22855
22855
  function asyncGeneratorStep$S(gen, resolve, reject, _next, _throw, key, arg) {
22856
22856
  try {
@@ -22896,15 +22896,15 @@ function _non_iterable_spread$y() {
22896
22896
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22897
22897
  }
22898
22898
  function _to_consumable_array$y(arr) {
22899
- return _array_without_holes$y(arr) || _iterable_to_array$y(arr) || _unsupported_iterable_to_array$z(arr) || _non_iterable_spread$y();
22899
+ return _array_without_holes$y(arr) || _iterable_to_array$y(arr) || _unsupported_iterable_to_array$A(arr) || _non_iterable_spread$y();
22900
22900
  }
22901
- function _unsupported_iterable_to_array$z(o, minLen) {
22901
+ function _unsupported_iterable_to_array$A(o, minLen) {
22902
22902
  if (!o) return;
22903
- if (typeof o === "string") return _array_like_to_array$z(o, minLen);
22903
+ if (typeof o === "string") return _array_like_to_array$A(o, minLen);
22904
22904
  var n = Object.prototype.toString.call(o).slice(8, -1);
22905
22905
  if (n === "Object" && o.constructor) n = o.constructor.name;
22906
22906
  if (n === "Map" || n === "Set") return Array.from(n);
22907
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$z(o, minLen);
22907
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$A(o, minLen);
22908
22908
  }
22909
22909
  function _ts_generator$S(thisArg, body) {
22910
22910
  var f, y, t, _ = {
@@ -23378,15 +23378,15 @@ function buildCatalog(input) {
23378
23378
  * and the CLI agree on the discovery path.
23379
23379
  */ var SCAN_CONFIG_FILENAME$1 = 'dbx-mcp.scan.json';
23380
23380
 
23381
- function _array_like_to_array$y(arr, len) {
23381
+ function _array_like_to_array$z(arr, len) {
23382
23382
  if (len == null || len > arr.length) len = arr.length;
23383
23383
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
23384
23384
  return arr2;
23385
23385
  }
23386
- function _array_with_holes$5(arr) {
23386
+ function _array_with_holes$6(arr) {
23387
23387
  if (Array.isArray(arr)) return arr;
23388
23388
  }
23389
- function _iterable_to_array_limit$5(arr, i) {
23389
+ function _iterable_to_array_limit$6(arr, i) {
23390
23390
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
23391
23391
  if (_i == null) return;
23392
23392
  var _arr = [];
@@ -23410,19 +23410,19 @@ function _iterable_to_array_limit$5(arr, i) {
23410
23410
  }
23411
23411
  return _arr;
23412
23412
  }
23413
- function _non_iterable_rest$5() {
23413
+ function _non_iterable_rest$6() {
23414
23414
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23415
23415
  }
23416
- function _sliced_to_array$5(arr, i) {
23417
- return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$y(arr, i) || _non_iterable_rest$5();
23416
+ function _sliced_to_array$6(arr, i) {
23417
+ return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$z(arr, i) || _non_iterable_rest$6();
23418
23418
  }
23419
- function _unsupported_iterable_to_array$y(o, minLen) {
23419
+ function _unsupported_iterable_to_array$z(o, minLen) {
23420
23420
  if (!o) return;
23421
- if (typeof o === "string") return _array_like_to_array$y(o, minLen);
23421
+ if (typeof o === "string") return _array_like_to_array$z(o, minLen);
23422
23422
  var n = Object.prototype.toString.call(o).slice(8, -1);
23423
23423
  if (n === "Object" && o.constructor) n = o.constructor.name;
23424
23424
  if (n === "Map" || n === "Set") return Array.from(n);
23425
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$y(o, minLen);
23425
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$z(o, minLen);
23426
23426
  }
23427
23427
  var SEMANTIC_TYPE_MARKER = 'semanticType';
23428
23428
  var SEMANTIC_TOPIC_TAG = 'semanticTopic';
@@ -23925,7 +23925,7 @@ function buildEntryFromInterface(input) {
23925
23925
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
23926
23926
  try {
23927
23927
  for(var _iterator = sourceFile.getExportedDeclarations()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
23928
- var _step_value = _sliced_to_array$5(_step.value, 1), name = _step_value[0];
23928
+ var _step_value = _sliced_to_array$6(_step.value, 1), name = _step_value[0];
23929
23929
  names.add(name);
23930
23930
  }
23931
23931
  } catch (err) {
@@ -24891,13 +24891,13 @@ function parseJsonString(raw) {
24891
24891
  return new RegExp("^".concat(body, "$"));
24892
24892
  }
24893
24893
 
24894
- function _array_like_to_array$x(arr, len) {
24894
+ function _array_like_to_array$y(arr, len) {
24895
24895
  if (len == null || len > arr.length) len = arr.length;
24896
24896
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
24897
24897
  return arr2;
24898
24898
  }
24899
24899
  function _array_without_holes$x(arr) {
24900
- if (Array.isArray(arr)) return _array_like_to_array$x(arr);
24900
+ if (Array.isArray(arr)) return _array_like_to_array$y(arr);
24901
24901
  }
24902
24902
  function asyncGeneratorStep$Q(gen, resolve, reject, _next, _throw, key, arg) {
24903
24903
  try {
@@ -24971,15 +24971,15 @@ function _object_spread$q(target) {
24971
24971
  return target;
24972
24972
  }
24973
24973
  function _to_consumable_array$x(arr) {
24974
- return _array_without_holes$x(arr) || _iterable_to_array$x(arr) || _unsupported_iterable_to_array$x(arr) || _non_iterable_spread$x();
24974
+ return _array_without_holes$x(arr) || _iterable_to_array$x(arr) || _unsupported_iterable_to_array$y(arr) || _non_iterable_spread$x();
24975
24975
  }
24976
- function _unsupported_iterable_to_array$x(o, minLen) {
24976
+ function _unsupported_iterable_to_array$y(o, minLen) {
24977
24977
  if (!o) return;
24978
- if (typeof o === "string") return _array_like_to_array$x(o, minLen);
24978
+ if (typeof o === "string") return _array_like_to_array$y(o, minLen);
24979
24979
  var n = Object.prototype.toString.call(o).slice(8, -1);
24980
24980
  if (n === "Object" && o.constructor) n = o.constructor.name;
24981
24981
  if (n === "Map" || n === "Set") return Array.from(n);
24982
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$x(o, minLen);
24982
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$y(o, minLen);
24983
24983
  }
24984
24984
  function _ts_generator$Q(thisArg, body) {
24985
24985
  var f, y, t, _ = {
@@ -26922,13 +26922,13 @@ function extractOutputs$2(decl) {
26922
26922
  * the filters CLI does not have to import from a sibling scan config module.
26923
26923
  */ var FILTERS_SCAN_CONFIG_FILENAME = 'dbx-mcp.scan.json';
26924
26924
 
26925
- function _array_like_to_array$w(arr, len) {
26925
+ function _array_like_to_array$x(arr, len) {
26926
26926
  if (len == null || len > arr.length) len = arr.length;
26927
26927
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
26928
26928
  return arr2;
26929
26929
  }
26930
26930
  function _array_without_holes$w(arr) {
26931
- if (Array.isArray(arr)) return _array_like_to_array$w(arr);
26931
+ if (Array.isArray(arr)) return _array_like_to_array$x(arr);
26932
26932
  }
26933
26933
  function asyncGeneratorStep$O(gen, resolve, reject, _next, _throw, key, arg) {
26934
26934
  try {
@@ -27002,15 +27002,15 @@ function _object_spread$m(target) {
27002
27002
  return target;
27003
27003
  }
27004
27004
  function _to_consumable_array$w(arr) {
27005
- return _array_without_holes$w(arr) || _iterable_to_array$w(arr) || _unsupported_iterable_to_array$w(arr) || _non_iterable_spread$w();
27005
+ return _array_without_holes$w(arr) || _iterable_to_array$w(arr) || _unsupported_iterable_to_array$x(arr) || _non_iterable_spread$w();
27006
27006
  }
27007
- function _unsupported_iterable_to_array$w(o, minLen) {
27007
+ function _unsupported_iterable_to_array$x(o, minLen) {
27008
27008
  if (!o) return;
27009
- if (typeof o === "string") return _array_like_to_array$w(o, minLen);
27009
+ if (typeof o === "string") return _array_like_to_array$x(o, minLen);
27010
27010
  var n = Object.prototype.toString.call(o).slice(8, -1);
27011
27011
  if (n === "Object" && o.constructor) n = o.constructor.name;
27012
27012
  if (n === "Map" || n === "Set") return Array.from(n);
27013
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$w(o, minLen);
27013
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$x(o, minLen);
27014
27014
  }
27015
27015
  function _ts_generator$O(thisArg, body) {
27016
27016
  var f, y, t, _ = {
@@ -28882,13 +28882,13 @@ function readMethodDescription(method) {
28882
28882
  * Filename the loader looks for at `${projectRoot}/`.
28883
28883
  */ var ACTIONS_SCAN_CONFIG_FILENAME = 'dbx-mcp.scan.json';
28884
28884
 
28885
- function _array_like_to_array$v(arr, len) {
28885
+ function _array_like_to_array$w(arr, len) {
28886
28886
  if (len == null || len > arr.length) len = arr.length;
28887
28887
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
28888
28888
  return arr2;
28889
28889
  }
28890
28890
  function _array_without_holes$v(arr) {
28891
- if (Array.isArray(arr)) return _array_like_to_array$v(arr);
28891
+ if (Array.isArray(arr)) return _array_like_to_array$w(arr);
28892
28892
  }
28893
28893
  function asyncGeneratorStep$L(gen, resolve, reject, _next, _throw, key, arg) {
28894
28894
  try {
@@ -28962,15 +28962,15 @@ function _object_spread$j(target) {
28962
28962
  return target;
28963
28963
  }
28964
28964
  function _to_consumable_array$v(arr) {
28965
- return _array_without_holes$v(arr) || _iterable_to_array$v(arr) || _unsupported_iterable_to_array$v(arr) || _non_iterable_spread$v();
28965
+ return _array_without_holes$v(arr) || _iterable_to_array$v(arr) || _unsupported_iterable_to_array$w(arr) || _non_iterable_spread$v();
28966
28966
  }
28967
- function _unsupported_iterable_to_array$v(o, minLen) {
28967
+ function _unsupported_iterable_to_array$w(o, minLen) {
28968
28968
  if (!o) return;
28969
- if (typeof o === "string") return _array_like_to_array$v(o, minLen);
28969
+ if (typeof o === "string") return _array_like_to_array$w(o, minLen);
28970
28970
  var n = Object.prototype.toString.call(o).slice(8, -1);
28971
28971
  if (n === "Object" && o.constructor) n = o.constructor.name;
28972
28972
  if (n === "Map" || n === "Set") return Array.from(n);
28973
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$v(o, minLen);
28973
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$w(o, minLen);
28974
28974
  }
28975
28975
  function _ts_generator$L(thisArg, body) {
28976
28976
  var f, y, t, _ = {
@@ -29465,6 +29465,14 @@ function formatExtractWarning$7(warning) {
29465
29465
  return result;
29466
29466
  }
29467
29467
 
29468
+ function _array_like_to_array$v(arr, len) {
29469
+ if (len == null || len > arr.length) len = arr.length;
29470
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
29471
+ return arr2;
29472
+ }
29473
+ function _array_with_holes$5(arr) {
29474
+ if (Array.isArray(arr)) return arr;
29475
+ }
29468
29476
  function _define_property$i(obj, key, value) {
29469
29477
  if (key in obj) {
29470
29478
  Object.defineProperty(obj, key, {
@@ -29478,6 +29486,33 @@ function _define_property$i(obj, key, value) {
29478
29486
  }
29479
29487
  return obj;
29480
29488
  }
29489
+ function _iterable_to_array_limit$5(arr, i) {
29490
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
29491
+ if (_i == null) return;
29492
+ var _arr = [];
29493
+ var _n = true;
29494
+ var _d = false;
29495
+ var _s, _e;
29496
+ try {
29497
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
29498
+ _arr.push(_s.value);
29499
+ if (i && _arr.length === i) break;
29500
+ }
29501
+ } catch (err) {
29502
+ _d = true;
29503
+ _e = err;
29504
+ } finally{
29505
+ try {
29506
+ if (!_n && _i["return"] != null) _i["return"]();
29507
+ } finally{
29508
+ if (_d) throw _e;
29509
+ }
29510
+ }
29511
+ return _arr;
29512
+ }
29513
+ function _non_iterable_rest$5() {
29514
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
29515
+ }
29481
29516
  function _object_spread$i(target) {
29482
29517
  for(var i = 1; i < arguments.length; i++){
29483
29518
  var source = arguments[i] != null ? arguments[i] : {};
@@ -29512,6 +29547,17 @@ function _object_spread_props$c(target, source) {
29512
29547
  }
29513
29548
  return target;
29514
29549
  }
29550
+ function _sliced_to_array$5(arr, i) {
29551
+ return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$v(arr, i) || _non_iterable_rest$5();
29552
+ }
29553
+ function _unsupported_iterable_to_array$v(o, minLen) {
29554
+ if (!o) return;
29555
+ if (typeof o === "string") return _array_like_to_array$v(o, minLen);
29556
+ var n = Object.prototype.toString.call(o).slice(8, -1);
29557
+ if (n === "Object" && o.constructor) n = o.constructor.name;
29558
+ if (n === "Map" || n === "Set") return Array.from(n);
29559
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$v(o, minLen);
29560
+ }
29515
29561
  // MARK: Tag names
29516
29562
  var AUTH_CLAIMS_APP_TAG = 'dbxAuthClaimsApp';
29517
29563
  var AUTH_CLAIMS_SERVICE_TAG = 'dbxAuthClaimsService';
@@ -29530,6 +29576,11 @@ var AUTH_ROLE_CLAIMS_SERVICE_FN = 'authRoleClaimsService';
29530
29576
  */ function extractAuthEntries(input) {
29531
29577
  var project = input.project, knownRoles = input.knownRoles;
29532
29578
  var warnings = [];
29579
+ // Resolve role constants declared in the scanned source itself — downstream
29580
+ // apps define their own role consts in their `claims.ts`. Built-ins win on
29581
+ // conflict so an app can never shadow a `@dereekb/util` role string.
29582
+ var localRoleConsts = collectLocalRoleConsts(project);
29583
+ var mergedKnownRoles = mergeKnownRoles(knownRoles, localRoleConsts.scalars);
29533
29584
  var taggedAppDecls = collectTaggedAppDecls(project, warnings);
29534
29585
  var serviceMappings = collectServiceMappings(project, warnings, taggedAppDecls);
29535
29586
  var apps = [];
@@ -29546,7 +29597,8 @@ var AUTH_ROLE_CLAIMS_SERVICE_FN = 'authRoleClaimsService';
29546
29597
  interfaceName: tagged.interfaceName,
29547
29598
  filePath: tagged.filePath,
29548
29599
  service: serviceForApp,
29549
- knownRoles: knownRoles,
29600
+ knownRoles: mergedKnownRoles,
29601
+ localArrayRoles: localRoleConsts.arrays,
29550
29602
  warnings: warnings
29551
29603
  });
29552
29604
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
@@ -30026,6 +30078,16 @@ function readRoleAtom(node) {
30026
30078
  text: node.getText(),
30027
30079
  resolvable: false
30028
30080
  };
30081
+ } else if (tsMorph.Node.isSpreadElement(node)) {
30082
+ // `...ALL_ADMIN_ROLES` — carry the spread source through as an unresolved
30083
+ // const so the array-aggregate resolver can flatten it later.
30084
+ var inner = node.getExpression();
30085
+ if (tsMorph.Node.isIdentifier(inner)) {
30086
+ result = {
30087
+ text: inner.getText(),
30088
+ resolvable: false
30089
+ };
30090
+ }
30029
30091
  }
30030
30092
  return result;
30031
30093
  }
@@ -30157,7 +30219,7 @@ function collectPropertySignaturesFromTypeNode(typeNode, sink) {
30157
30219
  }
30158
30220
  }
30159
30221
  function buildClaimFromProperty(input) {
30160
- var property = input.property, app = input.app, interfaceName = input.interfaceName, filePath = input.filePath, service = input.service, knownRoles = input.knownRoles, warnings = input.warnings;
30222
+ var property = input.property, app = input.app, interfaceName = input.interfaceName, filePath = input.filePath, service = input.service, knownRoles = input.knownRoles, localArrayRoles = input.localArrayRoles, warnings = input.warnings;
30161
30223
  var tagState = readPropertyTagState(property.getJsDocs());
30162
30224
  var result;
30163
30225
  if (tagState.hasMarker) {
@@ -30185,6 +30247,7 @@ function buildClaimFromProperty(input) {
30185
30247
  mapping: parsed.mapping,
30186
30248
  unresolvedRoleConsts: parsed.unresolvedRoleConsts,
30187
30249
  knownRoles: knownRoles,
30250
+ localArrayRoles: localArrayRoles,
30188
30251
  app: app,
30189
30252
  key: key,
30190
30253
  filePath: filePath,
@@ -30206,7 +30269,7 @@ function buildClaimFromProperty(input) {
30206
30269
  return result;
30207
30270
  }
30208
30271
  function resolveMappingRoles(input) {
30209
- var mapping = input.mapping, knownRoles = input.knownRoles, app = input.app, key = input.key, filePath = input.filePath, line = input.line, warnings = input.warnings;
30272
+ var mapping = input.mapping, knownRoles = input.knownRoles, localArrayRoles = input.localArrayRoles, app = input.app, key = input.key, filePath = input.filePath, line = input.line, warnings = input.warnings;
30210
30273
  var resolved = [];
30211
30274
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
30212
30275
  try {
@@ -30215,15 +30278,45 @@ function resolveMappingRoles(input) {
30215
30278
  if (knownRoles.has(role)) {
30216
30279
  resolved.push(knownRoles.get(role));
30217
30280
  } else if (input.unresolvedRoleConsts.includes(role)) {
30218
- warnings.push({
30219
- kind: 'unresolved-role-const',
30220
- app: app,
30221
- key: key,
30222
- constName: role,
30223
- filePath: filePath,
30224
- line: line
30281
+ // Not a scalar const — try resolving it as a project-local array-aggregate
30282
+ // const (e.g. `ALL_ADMIN_ROLES = [...]`) before treating it as unresolved.
30283
+ var aggregate = resolveRoleConstByName(role, {
30284
+ knownRoles: knownRoles,
30285
+ localArrayRoles: localArrayRoles,
30286
+ seen: new Set()
30225
30287
  });
30226
- resolved.push(role);
30288
+ if (aggregate.unresolved.length === 0) {
30289
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
30290
+ try {
30291
+ for(var _iterator1 = aggregate.roles[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
30292
+ var aggregateRole = _step1.value;
30293
+ resolved.push(aggregateRole);
30294
+ }
30295
+ } catch (err) {
30296
+ _didIteratorError1 = true;
30297
+ _iteratorError1 = err;
30298
+ } finally{
30299
+ try {
30300
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
30301
+ _iterator1.return();
30302
+ }
30303
+ } finally{
30304
+ if (_didIteratorError1) {
30305
+ throw _iteratorError1;
30306
+ }
30307
+ }
30308
+ }
30309
+ } else {
30310
+ warnings.push({
30311
+ kind: 'unresolved-role-const',
30312
+ app: app,
30313
+ key: key,
30314
+ constName: role,
30315
+ filePath: filePath,
30316
+ line: line
30317
+ });
30318
+ resolved.push(role);
30319
+ }
30227
30320
  } else {
30228
30321
  resolved.push(role);
30229
30322
  }
@@ -30246,6 +30339,293 @@ function resolveMappingRoles(input) {
30246
30339
  roles: resolved
30247
30340
  });
30248
30341
  }
30342
+ /**
30343
+ * Walks every source file in the project for exported variable statements
30344
+ * whose declaration initializer is a string literal or an array literal,
30345
+ * building the {@link LocalRoleConsts} maps used to resolve app-defined role
30346
+ * constants. Purely syntactic — only initializer AST nodes are read.
30347
+ *
30348
+ * @param project - The ts-morph project to scan.
30349
+ * @returns The collected scalar and array role-const maps.
30350
+ */ function collectLocalRoleConsts(project) {
30351
+ var scalars = new Map();
30352
+ var arrays = new Map();
30353
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
30354
+ try {
30355
+ for(var _iterator = project.getSourceFiles()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
30356
+ var sourceFile = _step.value;
30357
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
30358
+ try {
30359
+ for(var _iterator1 = sourceFile.getVariableStatements()[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
30360
+ var stmt = _step1.value;
30361
+ if (!stmt.isExported()) continue;
30362
+ var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
30363
+ try {
30364
+ for(var _iterator2 = stmt.getDeclarations()[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
30365
+ var decl = _step2.value;
30366
+ var initializer = decl.getInitializer();
30367
+ var name = decl.getName();
30368
+ if (initializer === undefined) continue;
30369
+ if (tsMorph.Node.isStringLiteral(initializer) || tsMorph.Node.isNoSubstitutionTemplateLiteral(initializer)) {
30370
+ if (!scalars.has(name)) scalars.set(name, initializer.getLiteralText());
30371
+ } else if (tsMorph.Node.isArrayLiteralExpression(initializer) && !arrays.has(name)) arrays.set(name, initializer);
30372
+ }
30373
+ } catch (err) {
30374
+ _didIteratorError2 = true;
30375
+ _iteratorError2 = err;
30376
+ } finally{
30377
+ try {
30378
+ if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
30379
+ _iterator2.return();
30380
+ }
30381
+ } finally{
30382
+ if (_didIteratorError2) {
30383
+ throw _iteratorError2;
30384
+ }
30385
+ }
30386
+ }
30387
+ }
30388
+ } catch (err) {
30389
+ _didIteratorError1 = true;
30390
+ _iteratorError1 = err;
30391
+ } finally{
30392
+ try {
30393
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
30394
+ _iterator1.return();
30395
+ }
30396
+ } finally{
30397
+ if (_didIteratorError1) {
30398
+ throw _iteratorError1;
30399
+ }
30400
+ }
30401
+ }
30402
+ }
30403
+ } catch (err) {
30404
+ _didIteratorError = true;
30405
+ _iteratorError = err;
30406
+ } finally{
30407
+ try {
30408
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30409
+ _iterator.return();
30410
+ }
30411
+ } finally{
30412
+ if (_didIteratorError) {
30413
+ throw _iteratorError;
30414
+ }
30415
+ }
30416
+ }
30417
+ return {
30418
+ scalars: scalars,
30419
+ arrays: arrays
30420
+ };
30421
+ }
30422
+ /**
30423
+ * Merges the project-local scalar role consts under the built-in map so the
30424
+ * built-ins always win on conflict (a downstream file can never redefine a
30425
+ * `@dereekb/util` role string).
30426
+ *
30427
+ * @param builtins - The built-in `constName → role` map supplied by the caller.
30428
+ * @param localScalars - Project-local string-literal role consts.
30429
+ * @returns The merged map with built-ins taking precedence.
30430
+ */ function mergeKnownRoles(builtins, localScalars) {
30431
+ var out = new Map();
30432
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
30433
+ try {
30434
+ for(var _iterator = localScalars[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
30435
+ var _step_value = _sliced_to_array$5(_step.value, 2), name = _step_value[0], role = _step_value[1];
30436
+ out.set(name, role);
30437
+ }
30438
+ } catch (err) {
30439
+ _didIteratorError = true;
30440
+ _iteratorError = err;
30441
+ } finally{
30442
+ try {
30443
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30444
+ _iterator.return();
30445
+ }
30446
+ } finally{
30447
+ if (_didIteratorError) {
30448
+ throw _iteratorError;
30449
+ }
30450
+ }
30451
+ }
30452
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
30453
+ try {
30454
+ for(var _iterator1 = builtins[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
30455
+ var _step_value1 = _sliced_to_array$5(_step1.value, 2), name1 = _step_value1[0], role1 = _step_value1[1];
30456
+ out.set(name1, role1);
30457
+ }
30458
+ } catch (err) {
30459
+ _didIteratorError1 = true;
30460
+ _iteratorError1 = err;
30461
+ } finally{
30462
+ try {
30463
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
30464
+ _iterator1.return();
30465
+ }
30466
+ } finally{
30467
+ if (_didIteratorError1) {
30468
+ throw _iteratorError1;
30469
+ }
30470
+ }
30471
+ }
30472
+ return out;
30473
+ }
30474
+ var EMPTY_ROLE_CONST_RESOLUTION = {
30475
+ roles: [],
30476
+ unresolved: []
30477
+ };
30478
+ /**
30479
+ * Resolves a role-constant name to its role string(s). Scalar consts resolve
30480
+ * via `knownRoles`; array-aggregate consts are flattened recursively. A name
30481
+ * that matches neither (e.g. imported from another package with no literal in
30482
+ * scope) is reported in `unresolved`. Stays syntactic — no type checker.
30483
+ *
30484
+ * @param name - The role-constant identifier text.
30485
+ * @param ctx - The resolution context (known roles, local arrays, cycle guard).
30486
+ * @returns The resolved roles and any unresolved const names.
30487
+ */ function resolveRoleConstByName(name, ctx) {
30488
+ var result;
30489
+ var scalar = ctx.knownRoles.get(name);
30490
+ if (scalar !== undefined) {
30491
+ result = {
30492
+ roles: [
30493
+ scalar
30494
+ ],
30495
+ unresolved: []
30496
+ };
30497
+ } else {
30498
+ var arrayExpr = ctx.localArrayRoles.get(name);
30499
+ if (arrayExpr === undefined) {
30500
+ result = {
30501
+ roles: [],
30502
+ unresolved: [
30503
+ name
30504
+ ]
30505
+ };
30506
+ } else if (ctx.seen.has(name)) {
30507
+ result = EMPTY_ROLE_CONST_RESOLUTION; // cycle — stop without re-flagging
30508
+ } else {
30509
+ var nextSeen = new Set(ctx.seen);
30510
+ nextSeen.add(name);
30511
+ result = resolveRoleArrayLiteral(arrayExpr, _object_spread_props$c(_object_spread$i({}, ctx), {
30512
+ seen: nextSeen
30513
+ }));
30514
+ }
30515
+ }
30516
+ return result;
30517
+ }
30518
+ /**
30519
+ * Flattens an array-literal role aggregate into resolved role strings,
30520
+ * recursing through identifier elements and spreads of other array consts.
30521
+ *
30522
+ * @param arrayExpr - The array literal to flatten.
30523
+ * @param ctx - The resolution context.
30524
+ * @returns The flattened roles and any unresolved const names.
30525
+ */ function resolveRoleArrayLiteral(arrayExpr, ctx) {
30526
+ var roles = [];
30527
+ var unresolved = [];
30528
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
30529
+ try {
30530
+ for(var _iterator = arrayExpr.getElements()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
30531
+ var element = _step.value;
30532
+ var elementResult = resolveRoleArrayElement(element, ctx);
30533
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
30534
+ try {
30535
+ for(var _iterator1 = elementResult.roles[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
30536
+ var role = _step1.value;
30537
+ roles.push(role);
30538
+ }
30539
+ } catch (err) {
30540
+ _didIteratorError1 = true;
30541
+ _iteratorError1 = err;
30542
+ } finally{
30543
+ try {
30544
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
30545
+ _iterator1.return();
30546
+ }
30547
+ } finally{
30548
+ if (_didIteratorError1) {
30549
+ throw _iteratorError1;
30550
+ }
30551
+ }
30552
+ }
30553
+ var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
30554
+ try {
30555
+ for(var _iterator2 = elementResult.unresolved[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
30556
+ var name = _step2.value;
30557
+ unresolved.push(name);
30558
+ }
30559
+ } catch (err) {
30560
+ _didIteratorError2 = true;
30561
+ _iteratorError2 = err;
30562
+ } finally{
30563
+ try {
30564
+ if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
30565
+ _iterator2.return();
30566
+ }
30567
+ } finally{
30568
+ if (_didIteratorError2) {
30569
+ throw _iteratorError2;
30570
+ }
30571
+ }
30572
+ }
30573
+ }
30574
+ } catch (err) {
30575
+ _didIteratorError = true;
30576
+ _iteratorError = err;
30577
+ } finally{
30578
+ try {
30579
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30580
+ _iterator.return();
30581
+ }
30582
+ } finally{
30583
+ if (_didIteratorError) {
30584
+ throw _iteratorError;
30585
+ }
30586
+ }
30587
+ }
30588
+ return {
30589
+ roles: roles,
30590
+ unresolved: unresolved
30591
+ };
30592
+ }
30593
+ /**
30594
+ * Resolves a single element of a role array literal: a string literal yields
30595
+ * its value, an identifier resolves via {@link resolveRoleConstByName}, and a
30596
+ * spread flattens its identifier or inline-array source.
30597
+ *
30598
+ * @param element - The array element node.
30599
+ * @param ctx - The resolution context.
30600
+ * @returns The resolved roles and any unresolved const names for this element.
30601
+ */ function resolveRoleArrayElement(element, ctx) {
30602
+ var result = EMPTY_ROLE_CONST_RESOLUTION;
30603
+ if (tsMorph.Node.isStringLiteral(element) || tsMorph.Node.isNoSubstitutionTemplateLiteral(element)) {
30604
+ result = {
30605
+ roles: [
30606
+ element.getLiteralText()
30607
+ ],
30608
+ unresolved: []
30609
+ };
30610
+ } else if (tsMorph.Node.isIdentifier(element)) {
30611
+ result = resolveRoleConstByName(element.getText(), ctx);
30612
+ } else if (tsMorph.Node.isSpreadElement(element)) {
30613
+ var inner = element.getExpression();
30614
+ if (tsMorph.Node.isIdentifier(inner)) {
30615
+ result = resolveRoleConstByName(inner.getText(), ctx);
30616
+ } else if (tsMorph.Node.isArrayLiteralExpression(inner)) {
30617
+ result = resolveRoleArrayLiteral(inner, ctx);
30618
+ } else {
30619
+ result = {
30620
+ roles: [],
30621
+ unresolved: [
30622
+ inner.getText()
30623
+ ]
30624
+ };
30625
+ }
30626
+ }
30627
+ return result;
30628
+ }
30249
30629
  function readPropertyTagState(jsDocs) {
30250
30630
  var summaries = [];
30251
30631
  var tags = [];