@dovetail-v2/refine 0.0.27 → 0.0.28
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/dist/{MonacoYamlDiffEditor-b06840cc.js → MonacoYamlDiffEditor-b459d49b.js} +1 -1
- package/dist/{index-56189b86.js → index-432360ef.js} +417 -419
- package/dist/refine.js +4 -4
- package/dist/refine.umd.cjs +414 -416
- package/lib/src/App.js +2 -0
- package/lib/src/i18n.js +2 -6
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locales/index.d.ts +115 -2
- package/lib/src/locales/index.js +6 -2
- package/package.json +1 -1
|
@@ -337,7 +337,7 @@ const dovetail$1 = {
|
|
|
337
337
|
edit_resource: edit_resource$1,
|
|
338
338
|
status: status$1
|
|
339
339
|
};
|
|
340
|
-
const
|
|
340
|
+
const D2LocalesEN = {
|
|
341
341
|
dovetail: dovetail$1
|
|
342
342
|
};
|
|
343
343
|
const copy = "复制";
|
|
@@ -519,13 +519,14 @@ const dovetail = {
|
|
|
519
519
|
ingress_rule_type,
|
|
520
520
|
port
|
|
521
521
|
};
|
|
522
|
-
const
|
|
522
|
+
const D2LocalesZH = {
|
|
523
523
|
dovetail
|
|
524
524
|
};
|
|
525
|
-
const
|
|
526
|
-
"en-US":
|
|
527
|
-
"zh-CN":
|
|
525
|
+
const D2Locales = {
|
|
526
|
+
"en-US": D2LocalesEN,
|
|
527
|
+
"zh-CN": D2LocalesZH
|
|
528
528
|
};
|
|
529
|
+
const resources = D2Locales;
|
|
529
530
|
i18n.use(initReactI18next).init({
|
|
530
531
|
supportedLngs: ["en-US", "zh-CN"],
|
|
531
532
|
resources,
|
|
@@ -535,9 +536,6 @@ i18n.use(initReactI18next).init({
|
|
|
535
536
|
lng: "zh-CN",
|
|
536
537
|
nsSeparator: "."
|
|
537
538
|
});
|
|
538
|
-
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
539
|
-
__proto__: null
|
|
540
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
541
539
|
var jsxRuntime = { exports: {} };
|
|
542
540
|
var reactJsxRuntime_production_min = {};
|
|
543
541
|
/** @license React v16.14.0
|
|
@@ -1710,17 +1708,17 @@ lodash.exports;
|
|
|
1710
1708
|
return func.apply(thisArg, args);
|
|
1711
1709
|
}
|
|
1712
1710
|
function arrayAggregator(array, setter, iteratee, accumulator) {
|
|
1713
|
-
var
|
|
1714
|
-
while (++
|
|
1715
|
-
var value = array[
|
|
1711
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1712
|
+
while (++index < length) {
|
|
1713
|
+
var value = array[index];
|
|
1716
1714
|
setter(accumulator, value, iteratee(value), array);
|
|
1717
1715
|
}
|
|
1718
1716
|
return accumulator;
|
|
1719
1717
|
}
|
|
1720
1718
|
function arrayEach(array, iteratee) {
|
|
1721
|
-
var
|
|
1722
|
-
while (++
|
|
1723
|
-
if (iteratee(array[
|
|
1719
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1720
|
+
while (++index < length) {
|
|
1721
|
+
if (iteratee(array[index], index, array) === false) {
|
|
1724
1722
|
break;
|
|
1725
1723
|
}
|
|
1726
1724
|
}
|
|
@@ -1736,19 +1734,19 @@ lodash.exports;
|
|
|
1736
1734
|
return array;
|
|
1737
1735
|
}
|
|
1738
1736
|
function arrayEvery(array, predicate) {
|
|
1739
|
-
var
|
|
1740
|
-
while (++
|
|
1741
|
-
if (!predicate(array[
|
|
1737
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1738
|
+
while (++index < length) {
|
|
1739
|
+
if (!predicate(array[index], index, array)) {
|
|
1742
1740
|
return false;
|
|
1743
1741
|
}
|
|
1744
1742
|
}
|
|
1745
1743
|
return true;
|
|
1746
1744
|
}
|
|
1747
1745
|
function arrayFilter(array, predicate) {
|
|
1748
|
-
var
|
|
1749
|
-
while (++
|
|
1750
|
-
var value = array[
|
|
1751
|
-
if (predicate(value,
|
|
1746
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
1747
|
+
while (++index < length) {
|
|
1748
|
+
var value = array[index];
|
|
1749
|
+
if (predicate(value, index, array)) {
|
|
1752
1750
|
result[resIndex++] = value;
|
|
1753
1751
|
}
|
|
1754
1752
|
}
|
|
@@ -1759,35 +1757,35 @@ lodash.exports;
|
|
|
1759
1757
|
return !!length && baseIndexOf(array, value, 0) > -1;
|
|
1760
1758
|
}
|
|
1761
1759
|
function arrayIncludesWith(array, value, comparator) {
|
|
1762
|
-
var
|
|
1763
|
-
while (++
|
|
1764
|
-
if (comparator(value, array[
|
|
1760
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1761
|
+
while (++index < length) {
|
|
1762
|
+
if (comparator(value, array[index])) {
|
|
1765
1763
|
return true;
|
|
1766
1764
|
}
|
|
1767
1765
|
}
|
|
1768
1766
|
return false;
|
|
1769
1767
|
}
|
|
1770
1768
|
function arrayMap(array, iteratee) {
|
|
1771
|
-
var
|
|
1772
|
-
while (++
|
|
1773
|
-
result[
|
|
1769
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
1770
|
+
while (++index < length) {
|
|
1771
|
+
result[index] = iteratee(array[index], index, array);
|
|
1774
1772
|
}
|
|
1775
1773
|
return result;
|
|
1776
1774
|
}
|
|
1777
1775
|
function arrayPush(array, values) {
|
|
1778
|
-
var
|
|
1779
|
-
while (++
|
|
1780
|
-
array[offset +
|
|
1776
|
+
var index = -1, length = values.length, offset = array.length;
|
|
1777
|
+
while (++index < length) {
|
|
1778
|
+
array[offset + index] = values[index];
|
|
1781
1779
|
}
|
|
1782
1780
|
return array;
|
|
1783
1781
|
}
|
|
1784
1782
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
1785
|
-
var
|
|
1783
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1786
1784
|
if (initAccum && length) {
|
|
1787
|
-
accumulator = array[++
|
|
1785
|
+
accumulator = array[++index];
|
|
1788
1786
|
}
|
|
1789
|
-
while (++
|
|
1790
|
-
accumulator = iteratee(accumulator, array[
|
|
1787
|
+
while (++index < length) {
|
|
1788
|
+
accumulator = iteratee(accumulator, array[index], index, array);
|
|
1791
1789
|
}
|
|
1792
1790
|
return accumulator;
|
|
1793
1791
|
}
|
|
@@ -1802,9 +1800,9 @@ lodash.exports;
|
|
|
1802
1800
|
return accumulator;
|
|
1803
1801
|
}
|
|
1804
1802
|
function arraySome(array, predicate) {
|
|
1805
|
-
var
|
|
1806
|
-
while (++
|
|
1807
|
-
if (predicate(array[
|
|
1803
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1804
|
+
while (++index < length) {
|
|
1805
|
+
if (predicate(array[index], index, array)) {
|
|
1808
1806
|
return true;
|
|
1809
1807
|
}
|
|
1810
1808
|
}
|
|
@@ -1828,10 +1826,10 @@ lodash.exports;
|
|
|
1828
1826
|
return result;
|
|
1829
1827
|
}
|
|
1830
1828
|
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
1831
|
-
var length = array.length,
|
|
1832
|
-
while (fromRight ?
|
|
1833
|
-
if (predicate(array[
|
|
1834
|
-
return
|
|
1829
|
+
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
|
1830
|
+
while (fromRight ? index-- : ++index < length) {
|
|
1831
|
+
if (predicate(array[index], index, array)) {
|
|
1832
|
+
return index;
|
|
1835
1833
|
}
|
|
1836
1834
|
}
|
|
1837
1835
|
return -1;
|
|
@@ -1840,10 +1838,10 @@ lodash.exports;
|
|
|
1840
1838
|
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
|
1841
1839
|
}
|
|
1842
1840
|
function baseIndexOfWith(array, value, fromIndex, comparator) {
|
|
1843
|
-
var
|
|
1844
|
-
while (++
|
|
1845
|
-
if (comparator(array[
|
|
1846
|
-
return
|
|
1841
|
+
var index = fromIndex - 1, length = array.length;
|
|
1842
|
+
while (++index < length) {
|
|
1843
|
+
if (comparator(array[index], value)) {
|
|
1844
|
+
return index;
|
|
1847
1845
|
}
|
|
1848
1846
|
}
|
|
1849
1847
|
return -1;
|
|
@@ -1866,8 +1864,8 @@ lodash.exports;
|
|
|
1866
1864
|
};
|
|
1867
1865
|
}
|
|
1868
1866
|
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
1869
|
-
eachFunc(collection, function(value,
|
|
1870
|
-
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value,
|
|
1867
|
+
eachFunc(collection, function(value, index, collection2) {
|
|
1868
|
+
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection2);
|
|
1871
1869
|
});
|
|
1872
1870
|
return accumulator;
|
|
1873
1871
|
}
|
|
@@ -1880,9 +1878,9 @@ lodash.exports;
|
|
|
1880
1878
|
return array;
|
|
1881
1879
|
}
|
|
1882
1880
|
function baseSum(array, iteratee) {
|
|
1883
|
-
var result,
|
|
1884
|
-
while (++
|
|
1885
|
-
var current = iteratee(array[
|
|
1881
|
+
var result, index = -1, length = array.length;
|
|
1882
|
+
while (++index < length) {
|
|
1883
|
+
var current = iteratee(array[index]);
|
|
1886
1884
|
if (current !== undefined$1) {
|
|
1887
1885
|
result = result === undefined$1 ? current : result + current;
|
|
1888
1886
|
}
|
|
@@ -1890,9 +1888,9 @@ lodash.exports;
|
|
|
1890
1888
|
return result;
|
|
1891
1889
|
}
|
|
1892
1890
|
function baseTimes(n, iteratee) {
|
|
1893
|
-
var
|
|
1894
|
-
while (++
|
|
1895
|
-
result[
|
|
1891
|
+
var index = -1, result = Array(n);
|
|
1892
|
+
while (++index < n) {
|
|
1893
|
+
result[index] = iteratee(index);
|
|
1896
1894
|
}
|
|
1897
1895
|
return result;
|
|
1898
1896
|
}
|
|
@@ -1918,16 +1916,16 @@ lodash.exports;
|
|
|
1918
1916
|
return cache.has(key);
|
|
1919
1917
|
}
|
|
1920
1918
|
function charsStartIndex(strSymbols, chrSymbols) {
|
|
1921
|
-
var
|
|
1922
|
-
while (++
|
|
1919
|
+
var index = -1, length = strSymbols.length;
|
|
1920
|
+
while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {
|
|
1923
1921
|
}
|
|
1924
|
-
return
|
|
1922
|
+
return index;
|
|
1925
1923
|
}
|
|
1926
1924
|
function charsEndIndex(strSymbols, chrSymbols) {
|
|
1927
|
-
var
|
|
1928
|
-
while (
|
|
1925
|
+
var index = strSymbols.length;
|
|
1926
|
+
while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {
|
|
1929
1927
|
}
|
|
1930
|
-
return
|
|
1928
|
+
return index;
|
|
1931
1929
|
}
|
|
1932
1930
|
function countHolders(array, placeholder) {
|
|
1933
1931
|
var length = array.length, result = 0;
|
|
@@ -1960,9 +1958,9 @@ lodash.exports;
|
|
|
1960
1958
|
return result;
|
|
1961
1959
|
}
|
|
1962
1960
|
function mapToArray(map) {
|
|
1963
|
-
var
|
|
1961
|
+
var index = -1, result = Array(map.size);
|
|
1964
1962
|
map.forEach(function(value, key) {
|
|
1965
|
-
result[++
|
|
1963
|
+
result[++index] = [key, value];
|
|
1966
1964
|
});
|
|
1967
1965
|
return result;
|
|
1968
1966
|
}
|
|
@@ -1972,47 +1970,47 @@ lodash.exports;
|
|
|
1972
1970
|
};
|
|
1973
1971
|
}
|
|
1974
1972
|
function replaceHolders(array, placeholder) {
|
|
1975
|
-
var
|
|
1976
|
-
while (++
|
|
1977
|
-
var value = array[
|
|
1973
|
+
var index = -1, length = array.length, resIndex = 0, result = [];
|
|
1974
|
+
while (++index < length) {
|
|
1975
|
+
var value = array[index];
|
|
1978
1976
|
if (value === placeholder || value === PLACEHOLDER) {
|
|
1979
|
-
array[
|
|
1980
|
-
result[resIndex++] =
|
|
1977
|
+
array[index] = PLACEHOLDER;
|
|
1978
|
+
result[resIndex++] = index;
|
|
1981
1979
|
}
|
|
1982
1980
|
}
|
|
1983
1981
|
return result;
|
|
1984
1982
|
}
|
|
1985
1983
|
function setToArray(set) {
|
|
1986
|
-
var
|
|
1984
|
+
var index = -1, result = Array(set.size);
|
|
1987
1985
|
set.forEach(function(value) {
|
|
1988
|
-
result[++
|
|
1986
|
+
result[++index] = value;
|
|
1989
1987
|
});
|
|
1990
1988
|
return result;
|
|
1991
1989
|
}
|
|
1992
1990
|
function setToPairs(set) {
|
|
1993
|
-
var
|
|
1991
|
+
var index = -1, result = Array(set.size);
|
|
1994
1992
|
set.forEach(function(value) {
|
|
1995
|
-
result[++
|
|
1993
|
+
result[++index] = [value, value];
|
|
1996
1994
|
});
|
|
1997
1995
|
return result;
|
|
1998
1996
|
}
|
|
1999
1997
|
function strictIndexOf(array, value, fromIndex) {
|
|
2000
|
-
var
|
|
2001
|
-
while (++
|
|
2002
|
-
if (array[
|
|
2003
|
-
return
|
|
1998
|
+
var index = fromIndex - 1, length = array.length;
|
|
1999
|
+
while (++index < length) {
|
|
2000
|
+
if (array[index] === value) {
|
|
2001
|
+
return index;
|
|
2004
2002
|
}
|
|
2005
2003
|
}
|
|
2006
2004
|
return -1;
|
|
2007
2005
|
}
|
|
2008
2006
|
function strictLastIndexOf(array, value, fromIndex) {
|
|
2009
|
-
var
|
|
2010
|
-
while (
|
|
2011
|
-
if (array[
|
|
2012
|
-
return
|
|
2007
|
+
var index = fromIndex + 1;
|
|
2008
|
+
while (index--) {
|
|
2009
|
+
if (array[index] === value) {
|
|
2010
|
+
return index;
|
|
2013
2011
|
}
|
|
2014
2012
|
}
|
|
2015
|
-
return
|
|
2013
|
+
return index;
|
|
2016
2014
|
}
|
|
2017
2015
|
function stringSize(string) {
|
|
2018
2016
|
return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
|
|
@@ -2021,10 +2019,10 @@ lodash.exports;
|
|
|
2021
2019
|
return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
|
|
2022
2020
|
}
|
|
2023
2021
|
function trimmedEndIndex(string) {
|
|
2024
|
-
var
|
|
2025
|
-
while (
|
|
2022
|
+
var index = string.length;
|
|
2023
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
2026
2024
|
}
|
|
2027
|
-
return
|
|
2025
|
+
return index;
|
|
2028
2026
|
}
|
|
2029
2027
|
var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
|
|
2030
2028
|
function unicodeSize(string) {
|
|
@@ -2190,15 +2188,15 @@ lodash.exports;
|
|
|
2190
2188
|
return result2;
|
|
2191
2189
|
}
|
|
2192
2190
|
function lazyValue() {
|
|
2193
|
-
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start,
|
|
2191
|
+
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__);
|
|
2194
2192
|
if (!isArr || !isRight && arrLength == length && takeCount == length) {
|
|
2195
2193
|
return baseWrapperValue(array, this.__actions__);
|
|
2196
2194
|
}
|
|
2197
2195
|
var result2 = [];
|
|
2198
2196
|
outer:
|
|
2199
2197
|
while (length-- && resIndex < takeCount) {
|
|
2200
|
-
|
|
2201
|
-
var iterIndex = -1, value = array[
|
|
2198
|
+
index += dir;
|
|
2199
|
+
var iterIndex = -1, value = array[index];
|
|
2202
2200
|
while (++iterIndex < iterLength) {
|
|
2203
2201
|
var data2 = iteratees[iterIndex], iteratee2 = data2.iteratee, type2 = data2.type, computed = iteratee2(value);
|
|
2204
2202
|
if (type2 == LAZY_MAP_FLAG) {
|
|
@@ -2218,10 +2216,10 @@ lodash.exports;
|
|
|
2218
2216
|
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
|
|
2219
2217
|
LazyWrapper.prototype.constructor = LazyWrapper;
|
|
2220
2218
|
function Hash(entries) {
|
|
2221
|
-
var
|
|
2219
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
2222
2220
|
this.clear();
|
|
2223
|
-
while (++
|
|
2224
|
-
var entry = entries[
|
|
2221
|
+
while (++index < length) {
|
|
2222
|
+
var entry = entries[index];
|
|
2225
2223
|
this.set(entry[0], entry[1]);
|
|
2226
2224
|
}
|
|
2227
2225
|
}
|
|
@@ -2258,10 +2256,10 @@ lodash.exports;
|
|
|
2258
2256
|
Hash.prototype.has = hashHas;
|
|
2259
2257
|
Hash.prototype.set = hashSet;
|
|
2260
2258
|
function ListCache(entries) {
|
|
2261
|
-
var
|
|
2259
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
2262
2260
|
this.clear();
|
|
2263
|
-
while (++
|
|
2264
|
-
var entry = entries[
|
|
2261
|
+
while (++index < length) {
|
|
2262
|
+
var entry = entries[index];
|
|
2265
2263
|
this.set(entry[0], entry[1]);
|
|
2266
2264
|
}
|
|
2267
2265
|
}
|
|
@@ -2270,33 +2268,33 @@ lodash.exports;
|
|
|
2270
2268
|
this.size = 0;
|
|
2271
2269
|
}
|
|
2272
2270
|
function listCacheDelete(key) {
|
|
2273
|
-
var data2 = this.__data__,
|
|
2274
|
-
if (
|
|
2271
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
2272
|
+
if (index < 0) {
|
|
2275
2273
|
return false;
|
|
2276
2274
|
}
|
|
2277
2275
|
var lastIndex = data2.length - 1;
|
|
2278
|
-
if (
|
|
2276
|
+
if (index == lastIndex) {
|
|
2279
2277
|
data2.pop();
|
|
2280
2278
|
} else {
|
|
2281
|
-
splice.call(data2,
|
|
2279
|
+
splice.call(data2, index, 1);
|
|
2282
2280
|
}
|
|
2283
2281
|
--this.size;
|
|
2284
2282
|
return true;
|
|
2285
2283
|
}
|
|
2286
2284
|
function listCacheGet(key) {
|
|
2287
|
-
var data2 = this.__data__,
|
|
2288
|
-
return
|
|
2285
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
2286
|
+
return index < 0 ? undefined$1 : data2[index][1];
|
|
2289
2287
|
}
|
|
2290
2288
|
function listCacheHas(key) {
|
|
2291
2289
|
return assocIndexOf(this.__data__, key) > -1;
|
|
2292
2290
|
}
|
|
2293
2291
|
function listCacheSet(key, value) {
|
|
2294
|
-
var data2 = this.__data__,
|
|
2295
|
-
if (
|
|
2292
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
2293
|
+
if (index < 0) {
|
|
2296
2294
|
++this.size;
|
|
2297
2295
|
data2.push([key, value]);
|
|
2298
2296
|
} else {
|
|
2299
|
-
data2[
|
|
2297
|
+
data2[index][1] = value;
|
|
2300
2298
|
}
|
|
2301
2299
|
return this;
|
|
2302
2300
|
}
|
|
@@ -2306,10 +2304,10 @@ lodash.exports;
|
|
|
2306
2304
|
ListCache.prototype.has = listCacheHas;
|
|
2307
2305
|
ListCache.prototype.set = listCacheSet;
|
|
2308
2306
|
function MapCache(entries) {
|
|
2309
|
-
var
|
|
2307
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
2310
2308
|
this.clear();
|
|
2311
|
-
while (++
|
|
2312
|
-
var entry = entries[
|
|
2309
|
+
while (++index < length) {
|
|
2310
|
+
var entry = entries[index];
|
|
2313
2311
|
this.set(entry[0], entry[1]);
|
|
2314
2312
|
}
|
|
2315
2313
|
}
|
|
@@ -2344,10 +2342,10 @@ lodash.exports;
|
|
|
2344
2342
|
MapCache.prototype.has = mapCacheHas;
|
|
2345
2343
|
MapCache.prototype.set = mapCacheSet;
|
|
2346
2344
|
function SetCache(values2) {
|
|
2347
|
-
var
|
|
2345
|
+
var index = -1, length = values2 == null ? 0 : values2.length;
|
|
2348
2346
|
this.__data__ = new MapCache();
|
|
2349
|
-
while (++
|
|
2350
|
-
this.add(values2[
|
|
2347
|
+
while (++index < length) {
|
|
2348
|
+
this.add(values2[index]);
|
|
2351
2349
|
}
|
|
2352
2350
|
}
|
|
2353
2351
|
function setCacheAdd(value) {
|
|
@@ -2466,9 +2464,9 @@ lodash.exports;
|
|
|
2466
2464
|
}
|
|
2467
2465
|
}
|
|
2468
2466
|
function baseAt(object2, paths) {
|
|
2469
|
-
var
|
|
2470
|
-
while (++
|
|
2471
|
-
result2[
|
|
2467
|
+
var index = -1, length = paths.length, result2 = Array2(length), skip = object2 == null;
|
|
2468
|
+
while (++index < length) {
|
|
2469
|
+
result2[index] = skip ? undefined$1 : get2(object2, paths[index]);
|
|
2472
2470
|
}
|
|
2473
2471
|
return result2;
|
|
2474
2472
|
}
|
|
@@ -2572,7 +2570,7 @@ lodash.exports;
|
|
|
2572
2570
|
}, wait);
|
|
2573
2571
|
}
|
|
2574
2572
|
function baseDifference(array, values2, iteratee2, comparator) {
|
|
2575
|
-
var
|
|
2573
|
+
var index = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length;
|
|
2576
2574
|
if (!length) {
|
|
2577
2575
|
return result2;
|
|
2578
2576
|
}
|
|
@@ -2588,8 +2586,8 @@ lodash.exports;
|
|
|
2588
2586
|
values2 = new SetCache(values2);
|
|
2589
2587
|
}
|
|
2590
2588
|
outer:
|
|
2591
|
-
while (++
|
|
2592
|
-
var value = array[
|
|
2589
|
+
while (++index < length) {
|
|
2590
|
+
var value = array[index], computed = iteratee2 == null ? value : iteratee2(value);
|
|
2593
2591
|
value = comparator || value !== 0 ? value : 0;
|
|
2594
2592
|
if (isCommon && computed === computed) {
|
|
2595
2593
|
var valuesIndex = valuesLength;
|
|
@@ -2609,16 +2607,16 @@ lodash.exports;
|
|
|
2609
2607
|
var baseEachRight = createBaseEach(baseForOwnRight, true);
|
|
2610
2608
|
function baseEvery(collection, predicate) {
|
|
2611
2609
|
var result2 = true;
|
|
2612
|
-
baseEach(collection, function(value,
|
|
2613
|
-
result2 = !!predicate(value,
|
|
2610
|
+
baseEach(collection, function(value, index, collection2) {
|
|
2611
|
+
result2 = !!predicate(value, index, collection2);
|
|
2614
2612
|
return result2;
|
|
2615
2613
|
});
|
|
2616
2614
|
return result2;
|
|
2617
2615
|
}
|
|
2618
2616
|
function baseExtremum(array, iteratee2, comparator) {
|
|
2619
|
-
var
|
|
2620
|
-
while (++
|
|
2621
|
-
var value = array[
|
|
2617
|
+
var index = -1, length = array.length;
|
|
2618
|
+
while (++index < length) {
|
|
2619
|
+
var value = array[index], current = iteratee2(value);
|
|
2622
2620
|
if (current != null && (computed === undefined$1 ? current === current && !isSymbol(current) : comparator(current, computed))) {
|
|
2623
2621
|
var computed = current, result2 = value;
|
|
2624
2622
|
}
|
|
@@ -2643,19 +2641,19 @@ lodash.exports;
|
|
|
2643
2641
|
}
|
|
2644
2642
|
function baseFilter(collection, predicate) {
|
|
2645
2643
|
var result2 = [];
|
|
2646
|
-
baseEach(collection, function(value,
|
|
2647
|
-
if (predicate(value,
|
|
2644
|
+
baseEach(collection, function(value, index, collection2) {
|
|
2645
|
+
if (predicate(value, index, collection2)) {
|
|
2648
2646
|
result2.push(value);
|
|
2649
2647
|
}
|
|
2650
2648
|
});
|
|
2651
2649
|
return result2;
|
|
2652
2650
|
}
|
|
2653
2651
|
function baseFlatten(array, depth, predicate, isStrict, result2) {
|
|
2654
|
-
var
|
|
2652
|
+
var index = -1, length = array.length;
|
|
2655
2653
|
predicate || (predicate = isFlattenable);
|
|
2656
2654
|
result2 || (result2 = []);
|
|
2657
|
-
while (++
|
|
2658
|
-
var value = array[
|
|
2655
|
+
while (++index < length) {
|
|
2656
|
+
var value = array[index];
|
|
2659
2657
|
if (depth > 0 && predicate(value)) {
|
|
2660
2658
|
if (depth > 1) {
|
|
2661
2659
|
baseFlatten(value, depth - 1, predicate, isStrict, result2);
|
|
@@ -2683,11 +2681,11 @@ lodash.exports;
|
|
|
2683
2681
|
}
|
|
2684
2682
|
function baseGet(object2, path) {
|
|
2685
2683
|
path = castPath(path, object2);
|
|
2686
|
-
var
|
|
2687
|
-
while (object2 != null &&
|
|
2688
|
-
object2 = object2[toKey(path[
|
|
2684
|
+
var index = 0, length = path.length;
|
|
2685
|
+
while (object2 != null && index < length) {
|
|
2686
|
+
object2 = object2[toKey(path[index++])];
|
|
2689
2687
|
}
|
|
2690
|
-
return
|
|
2688
|
+
return index && index == length ? object2 : undefined$1;
|
|
2691
2689
|
}
|
|
2692
2690
|
function baseGetAllKeys(object2, keysFunc, symbolsFunc) {
|
|
2693
2691
|
var result2 = keysFunc(object2);
|
|
@@ -2722,10 +2720,10 @@ lodash.exports;
|
|
|
2722
2720
|
caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1;
|
|
2723
2721
|
}
|
|
2724
2722
|
array = arrays[0];
|
|
2725
|
-
var
|
|
2723
|
+
var index = -1, seen = caches[0];
|
|
2726
2724
|
outer:
|
|
2727
|
-
while (++
|
|
2728
|
-
var value = array[
|
|
2725
|
+
while (++index < length && result2.length < maxLength) {
|
|
2726
|
+
var value = array[index], computed = iteratee2 ? iteratee2(value) : value;
|
|
2729
2727
|
value = comparator || value !== 0 ? value : 0;
|
|
2730
2728
|
if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) {
|
|
2731
2729
|
othIndex = othLength;
|
|
@@ -2807,19 +2805,19 @@ lodash.exports;
|
|
|
2807
2805
|
return isObjectLike(value) && getTag(value) == mapTag;
|
|
2808
2806
|
}
|
|
2809
2807
|
function baseIsMatch(object2, source, matchData, customizer) {
|
|
2810
|
-
var
|
|
2808
|
+
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
2811
2809
|
if (object2 == null) {
|
|
2812
2810
|
return !length;
|
|
2813
2811
|
}
|
|
2814
2812
|
object2 = Object2(object2);
|
|
2815
|
-
while (
|
|
2816
|
-
var data2 = matchData[
|
|
2813
|
+
while (index--) {
|
|
2814
|
+
var data2 = matchData[index];
|
|
2817
2815
|
if (noCustomizer && data2[2] ? data2[1] !== object2[data2[0]] : !(data2[0] in object2)) {
|
|
2818
2816
|
return false;
|
|
2819
2817
|
}
|
|
2820
2818
|
}
|
|
2821
|
-
while (++
|
|
2822
|
-
data2 = matchData[
|
|
2819
|
+
while (++index < length) {
|
|
2820
|
+
data2 = matchData[index];
|
|
2823
2821
|
var key = data2[0], objValue = object2[key], srcValue = data2[1];
|
|
2824
2822
|
if (noCustomizer && data2[2]) {
|
|
2825
2823
|
if (objValue === undefined$1 && !(key in object2)) {
|
|
@@ -2893,9 +2891,9 @@ lodash.exports;
|
|
|
2893
2891
|
return value < other;
|
|
2894
2892
|
}
|
|
2895
2893
|
function baseMap(collection, iteratee2) {
|
|
2896
|
-
var
|
|
2894
|
+
var index = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
2897
2895
|
baseEach(collection, function(value, key, collection2) {
|
|
2898
|
-
result2[++
|
|
2896
|
+
result2[++index] = iteratee2(value, key, collection2);
|
|
2899
2897
|
});
|
|
2900
2898
|
return result2;
|
|
2901
2899
|
}
|
|
@@ -2998,13 +2996,13 @@ lodash.exports;
|
|
|
2998
2996
|
} else {
|
|
2999
2997
|
iteratees = [identity];
|
|
3000
2998
|
}
|
|
3001
|
-
var
|
|
2999
|
+
var index = -1;
|
|
3002
3000
|
iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
|
|
3003
3001
|
var result2 = baseMap(collection, function(value, key, collection2) {
|
|
3004
3002
|
var criteria = arrayMap(iteratees, function(iteratee2) {
|
|
3005
3003
|
return iteratee2(value);
|
|
3006
3004
|
});
|
|
3007
|
-
return { "criteria": criteria, "index": ++
|
|
3005
|
+
return { "criteria": criteria, "index": ++index, "value": value };
|
|
3008
3006
|
});
|
|
3009
3007
|
return baseSortBy(result2, function(object2, other) {
|
|
3010
3008
|
return compareMultiple(object2, other, orders);
|
|
@@ -3016,9 +3014,9 @@ lodash.exports;
|
|
|
3016
3014
|
});
|
|
3017
3015
|
}
|
|
3018
3016
|
function basePickBy(object2, paths, predicate) {
|
|
3019
|
-
var
|
|
3020
|
-
while (++
|
|
3021
|
-
var path = paths[
|
|
3017
|
+
var index = -1, length = paths.length, result2 = {};
|
|
3018
|
+
while (++index < length) {
|
|
3019
|
+
var path = paths[index], value = baseGet(object2, path);
|
|
3022
3020
|
if (predicate(value, path)) {
|
|
3023
3021
|
baseSet(result2, castPath(path, object2), value);
|
|
3024
3022
|
}
|
|
@@ -3031,15 +3029,15 @@ lodash.exports;
|
|
|
3031
3029
|
};
|
|
3032
3030
|
}
|
|
3033
3031
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
3034
|
-
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf,
|
|
3032
|
+
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index = -1, length = values2.length, seen = array;
|
|
3035
3033
|
if (array === values2) {
|
|
3036
3034
|
values2 = copyArray(values2);
|
|
3037
3035
|
}
|
|
3038
3036
|
if (iteratee2) {
|
|
3039
3037
|
seen = arrayMap(array, baseUnary(iteratee2));
|
|
3040
3038
|
}
|
|
3041
|
-
while (++
|
|
3042
|
-
var fromIndex = 0, value = values2[
|
|
3039
|
+
while (++index < length) {
|
|
3040
|
+
var fromIndex = 0, value = values2[index], computed = iteratee2 ? iteratee2(value) : value;
|
|
3043
3041
|
while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) {
|
|
3044
3042
|
if (seen !== array) {
|
|
3045
3043
|
splice.call(seen, fromIndex, 1);
|
|
@@ -3052,13 +3050,13 @@ lodash.exports;
|
|
|
3052
3050
|
function basePullAt(array, indexes) {
|
|
3053
3051
|
var length = array ? indexes.length : 0, lastIndex = length - 1;
|
|
3054
3052
|
while (length--) {
|
|
3055
|
-
var
|
|
3056
|
-
if (length == lastIndex ||
|
|
3057
|
-
var previous =
|
|
3058
|
-
if (isIndex(
|
|
3059
|
-
splice.call(array,
|
|
3053
|
+
var index = indexes[length];
|
|
3054
|
+
if (length == lastIndex || index !== previous) {
|
|
3055
|
+
var previous = index;
|
|
3056
|
+
if (isIndex(index)) {
|
|
3057
|
+
splice.call(array, index, 1);
|
|
3060
3058
|
} else {
|
|
3061
|
-
baseUnset(array,
|
|
3059
|
+
baseUnset(array, index);
|
|
3062
3060
|
}
|
|
3063
3061
|
}
|
|
3064
3062
|
}
|
|
@@ -3068,9 +3066,9 @@ lodash.exports;
|
|
|
3068
3066
|
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
|
3069
3067
|
}
|
|
3070
3068
|
function baseRange(start, end, step, fromRight) {
|
|
3071
|
-
var
|
|
3069
|
+
var index = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length);
|
|
3072
3070
|
while (length--) {
|
|
3073
|
-
result2[fromRight ? length : ++
|
|
3071
|
+
result2[fromRight ? length : ++index] = start;
|
|
3074
3072
|
start += step;
|
|
3075
3073
|
}
|
|
3076
3074
|
return result2;
|
|
@@ -3106,17 +3104,17 @@ lodash.exports;
|
|
|
3106
3104
|
return object2;
|
|
3107
3105
|
}
|
|
3108
3106
|
path = castPath(path, object2);
|
|
3109
|
-
var
|
|
3110
|
-
while (nested != null && ++
|
|
3111
|
-
var key = toKey(path[
|
|
3107
|
+
var index = -1, length = path.length, lastIndex = length - 1, nested = object2;
|
|
3108
|
+
while (nested != null && ++index < length) {
|
|
3109
|
+
var key = toKey(path[index]), newValue = value;
|
|
3112
3110
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
3113
3111
|
return object2;
|
|
3114
3112
|
}
|
|
3115
|
-
if (
|
|
3113
|
+
if (index != lastIndex) {
|
|
3116
3114
|
var objValue = nested[key];
|
|
3117
3115
|
newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
|
|
3118
3116
|
if (newValue === undefined$1) {
|
|
3119
|
-
newValue = isObject2(objValue) ? objValue : isIndex(path[
|
|
3117
|
+
newValue = isObject2(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
|
|
3120
3118
|
}
|
|
3121
3119
|
}
|
|
3122
3120
|
assignValue(nested, key, newValue);
|
|
@@ -3140,7 +3138,7 @@ lodash.exports;
|
|
|
3140
3138
|
return shuffleSelf(values(collection));
|
|
3141
3139
|
}
|
|
3142
3140
|
function baseSlice(array, start, end) {
|
|
3143
|
-
var
|
|
3141
|
+
var index = -1, length = array.length;
|
|
3144
3142
|
if (start < 0) {
|
|
3145
3143
|
start = -start > length ? 0 : length + start;
|
|
3146
3144
|
}
|
|
@@ -3151,15 +3149,15 @@ lodash.exports;
|
|
|
3151
3149
|
length = start > end ? 0 : end - start >>> 0;
|
|
3152
3150
|
start >>>= 0;
|
|
3153
3151
|
var result2 = Array2(length);
|
|
3154
|
-
while (++
|
|
3155
|
-
result2[
|
|
3152
|
+
while (++index < length) {
|
|
3153
|
+
result2[index] = array[index + start];
|
|
3156
3154
|
}
|
|
3157
3155
|
return result2;
|
|
3158
3156
|
}
|
|
3159
3157
|
function baseSome(collection, predicate) {
|
|
3160
3158
|
var result2;
|
|
3161
|
-
baseEach(collection, function(value,
|
|
3162
|
-
result2 = predicate(value,
|
|
3159
|
+
baseEach(collection, function(value, index, collection2) {
|
|
3160
|
+
result2 = predicate(value, index, collection2);
|
|
3163
3161
|
return !result2;
|
|
3164
3162
|
});
|
|
3165
3163
|
return !!result2;
|
|
@@ -3210,10 +3208,10 @@ lodash.exports;
|
|
|
3210
3208
|
return nativeMin(high, MAX_ARRAY_INDEX);
|
|
3211
3209
|
}
|
|
3212
3210
|
function baseSortedUniq(array, iteratee2) {
|
|
3213
|
-
var
|
|
3214
|
-
while (++
|
|
3215
|
-
var value = array[
|
|
3216
|
-
if (!
|
|
3211
|
+
var index = -1, length = array.length, resIndex = 0, result2 = [];
|
|
3212
|
+
while (++index < length) {
|
|
3213
|
+
var value = array[index], computed = iteratee2 ? iteratee2(value) : value;
|
|
3214
|
+
if (!index || !eq(computed, seen)) {
|
|
3217
3215
|
var seen = computed;
|
|
3218
3216
|
result2[resIndex++] = value === 0 ? 0 : value;
|
|
3219
3217
|
}
|
|
@@ -3243,7 +3241,7 @@ lodash.exports;
|
|
|
3243
3241
|
return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
|
|
3244
3242
|
}
|
|
3245
3243
|
function baseUniq(array, iteratee2, comparator) {
|
|
3246
|
-
var
|
|
3244
|
+
var index = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
|
|
3247
3245
|
if (comparator) {
|
|
3248
3246
|
isCommon = false;
|
|
3249
3247
|
includes2 = arrayIncludesWith;
|
|
@@ -3259,8 +3257,8 @@ lodash.exports;
|
|
|
3259
3257
|
seen = iteratee2 ? [] : result2;
|
|
3260
3258
|
}
|
|
3261
3259
|
outer:
|
|
3262
|
-
while (++
|
|
3263
|
-
var value = array[
|
|
3260
|
+
while (++index < length) {
|
|
3261
|
+
var value = array[index], computed = iteratee2 ? iteratee2(value) : value;
|
|
3264
3262
|
value = comparator || value !== 0 ? value : 0;
|
|
3265
3263
|
if (isCommon && computed === computed) {
|
|
3266
3264
|
var seenIndex = seen.length;
|
|
@@ -3291,10 +3289,10 @@ lodash.exports;
|
|
|
3291
3289
|
return baseSet(object2, path, updater(baseGet(object2, path)), customizer);
|
|
3292
3290
|
}
|
|
3293
3291
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
3294
|
-
var length = array.length,
|
|
3295
|
-
while ((fromRight ?
|
|
3292
|
+
var length = array.length, index = fromRight ? length : -1;
|
|
3293
|
+
while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {
|
|
3296
3294
|
}
|
|
3297
|
-
return isDrop ? baseSlice(array, fromRight ? 0 :
|
|
3295
|
+
return isDrop ? baseSlice(array, fromRight ? 0 : index, fromRight ? index + 1 : length) : baseSlice(array, fromRight ? index + 1 : 0, fromRight ? length : index);
|
|
3298
3296
|
}
|
|
3299
3297
|
function baseWrapperValue(value, actions) {
|
|
3300
3298
|
var result2 = value;
|
|
@@ -3310,22 +3308,22 @@ lodash.exports;
|
|
|
3310
3308
|
if (length < 2) {
|
|
3311
3309
|
return length ? baseUniq(arrays[0]) : [];
|
|
3312
3310
|
}
|
|
3313
|
-
var
|
|
3314
|
-
while (++
|
|
3315
|
-
var array = arrays[
|
|
3311
|
+
var index = -1, result2 = Array2(length);
|
|
3312
|
+
while (++index < length) {
|
|
3313
|
+
var array = arrays[index], othIndex = -1;
|
|
3316
3314
|
while (++othIndex < length) {
|
|
3317
|
-
if (othIndex !=
|
|
3318
|
-
result2[
|
|
3315
|
+
if (othIndex != index) {
|
|
3316
|
+
result2[index] = baseDifference(result2[index] || array, arrays[othIndex], iteratee2, comparator);
|
|
3319
3317
|
}
|
|
3320
3318
|
}
|
|
3321
3319
|
}
|
|
3322
3320
|
return baseUniq(baseFlatten(result2, 1), iteratee2, comparator);
|
|
3323
3321
|
}
|
|
3324
3322
|
function baseZipObject(props, values2, assignFunc) {
|
|
3325
|
-
var
|
|
3326
|
-
while (++
|
|
3327
|
-
var value =
|
|
3328
|
-
assignFunc(result2, props[
|
|
3323
|
+
var index = -1, length = props.length, valsLength = values2.length, result2 = {};
|
|
3324
|
+
while (++index < length) {
|
|
3325
|
+
var value = index < valsLength ? values2[index] : undefined$1;
|
|
3326
|
+
assignFunc(result2, props[index], value);
|
|
3329
3327
|
}
|
|
3330
3328
|
return result2;
|
|
3331
3329
|
}
|
|
@@ -3393,14 +3391,14 @@ lodash.exports;
|
|
|
3393
3391
|
return 0;
|
|
3394
3392
|
}
|
|
3395
3393
|
function compareMultiple(object2, other, orders) {
|
|
3396
|
-
var
|
|
3397
|
-
while (++
|
|
3398
|
-
var result2 = compareAscending(objCriteria[
|
|
3394
|
+
var index = -1, objCriteria = object2.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
|
3395
|
+
while (++index < length) {
|
|
3396
|
+
var result2 = compareAscending(objCriteria[index], othCriteria[index]);
|
|
3399
3397
|
if (result2) {
|
|
3400
|
-
if (
|
|
3398
|
+
if (index >= ordersLength) {
|
|
3401
3399
|
return result2;
|
|
3402
3400
|
}
|
|
3403
|
-
var order = orders[
|
|
3401
|
+
var order = orders[index];
|
|
3404
3402
|
return result2 * (order == "desc" ? -1 : 1);
|
|
3405
3403
|
}
|
|
3406
3404
|
}
|
|
@@ -3438,19 +3436,19 @@ lodash.exports;
|
|
|
3438
3436
|
return result2;
|
|
3439
3437
|
}
|
|
3440
3438
|
function copyArray(source, array) {
|
|
3441
|
-
var
|
|
3439
|
+
var index = -1, length = source.length;
|
|
3442
3440
|
array || (array = Array2(length));
|
|
3443
|
-
while (++
|
|
3444
|
-
array[
|
|
3441
|
+
while (++index < length) {
|
|
3442
|
+
array[index] = source[index];
|
|
3445
3443
|
}
|
|
3446
3444
|
return array;
|
|
3447
3445
|
}
|
|
3448
3446
|
function copyObject(source, props, object2, customizer) {
|
|
3449
3447
|
var isNew = !object2;
|
|
3450
3448
|
object2 || (object2 = {});
|
|
3451
|
-
var
|
|
3452
|
-
while (++
|
|
3453
|
-
var key = props[
|
|
3449
|
+
var index = -1, length = props.length;
|
|
3450
|
+
while (++index < length) {
|
|
3451
|
+
var key = props[index];
|
|
3454
3452
|
var newValue = customizer ? customizer(object2[key], source[key], key, object2, source) : undefined$1;
|
|
3455
3453
|
if (newValue === undefined$1) {
|
|
3456
3454
|
newValue = source[key];
|
|
@@ -3477,17 +3475,17 @@ lodash.exports;
|
|
|
3477
3475
|
}
|
|
3478
3476
|
function createAssigner(assigner) {
|
|
3479
3477
|
return baseRest(function(object2, sources) {
|
|
3480
|
-
var
|
|
3478
|
+
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined$1, guard = length > 2 ? sources[2] : undefined$1;
|
|
3481
3479
|
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined$1;
|
|
3482
3480
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
3483
3481
|
customizer = length < 3 ? undefined$1 : customizer;
|
|
3484
3482
|
length = 1;
|
|
3485
3483
|
}
|
|
3486
3484
|
object2 = Object2(object2);
|
|
3487
|
-
while (++
|
|
3488
|
-
var source = sources[
|
|
3485
|
+
while (++index < length) {
|
|
3486
|
+
var source = sources[index];
|
|
3489
3487
|
if (source) {
|
|
3490
|
-
assigner(object2, source,
|
|
3488
|
+
assigner(object2, source, index, customizer);
|
|
3491
3489
|
}
|
|
3492
3490
|
}
|
|
3493
3491
|
return object2;
|
|
@@ -3501,9 +3499,9 @@ lodash.exports;
|
|
|
3501
3499
|
if (!isArrayLike(collection)) {
|
|
3502
3500
|
return eachFunc(collection, iteratee2);
|
|
3503
3501
|
}
|
|
3504
|
-
var length = collection.length,
|
|
3505
|
-
while (fromRight ?
|
|
3506
|
-
if (iteratee2(iterable[
|
|
3502
|
+
var length = collection.length, index = fromRight ? length : -1, iterable = Object2(collection);
|
|
3503
|
+
while (fromRight ? index-- : ++index < length) {
|
|
3504
|
+
if (iteratee2(iterable[index], index, iterable) === false) {
|
|
3507
3505
|
break;
|
|
3508
3506
|
}
|
|
3509
3507
|
}
|
|
@@ -3512,9 +3510,9 @@ lodash.exports;
|
|
|
3512
3510
|
}
|
|
3513
3511
|
function createBaseFor(fromRight) {
|
|
3514
3512
|
return function(object2, iteratee2, keysFunc) {
|
|
3515
|
-
var
|
|
3513
|
+
var index = -1, iterable = Object2(object2), props = keysFunc(object2), length = props.length;
|
|
3516
3514
|
while (length--) {
|
|
3517
|
-
var key = props[fromRight ? length : ++
|
|
3515
|
+
var key = props[fromRight ? length : ++index];
|
|
3518
3516
|
if (iteratee2(iterable[key], key, iterable) === false) {
|
|
3519
3517
|
break;
|
|
3520
3518
|
}
|
|
@@ -3572,9 +3570,9 @@ lodash.exports;
|
|
|
3572
3570
|
function createCurry(func, bitmask, arity) {
|
|
3573
3571
|
var Ctor = createCtor(func);
|
|
3574
3572
|
function wrapper() {
|
|
3575
|
-
var length = arguments.length, args = Array2(length),
|
|
3576
|
-
while (
|
|
3577
|
-
args[
|
|
3573
|
+
var length = arguments.length, args = Array2(length), index = length, placeholder = getHolder(wrapper);
|
|
3574
|
+
while (index--) {
|
|
3575
|
+
args[index] = arguments[index];
|
|
3578
3576
|
}
|
|
3579
3577
|
var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder);
|
|
3580
3578
|
length -= holders.length;
|
|
@@ -3607,18 +3605,18 @@ lodash.exports;
|
|
|
3607
3605
|
return iteratee2(iterable[key], key, iterable);
|
|
3608
3606
|
};
|
|
3609
3607
|
}
|
|
3610
|
-
var
|
|
3611
|
-
return
|
|
3608
|
+
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
3609
|
+
return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined$1;
|
|
3612
3610
|
};
|
|
3613
3611
|
}
|
|
3614
3612
|
function createFlow(fromRight) {
|
|
3615
3613
|
return flatRest(function(funcs) {
|
|
3616
|
-
var length = funcs.length,
|
|
3614
|
+
var length = funcs.length, index = length, prereq = LodashWrapper.prototype.thru;
|
|
3617
3615
|
if (fromRight) {
|
|
3618
3616
|
funcs.reverse();
|
|
3619
3617
|
}
|
|
3620
|
-
while (
|
|
3621
|
-
var func = funcs[
|
|
3618
|
+
while (index--) {
|
|
3619
|
+
var func = funcs[index];
|
|
3622
3620
|
if (typeof func != "function") {
|
|
3623
3621
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
3624
3622
|
}
|
|
@@ -3626,9 +3624,9 @@ lodash.exports;
|
|
|
3626
3624
|
var wrapper = new LodashWrapper([], true);
|
|
3627
3625
|
}
|
|
3628
3626
|
}
|
|
3629
|
-
|
|
3630
|
-
while (++
|
|
3631
|
-
func = funcs[
|
|
3627
|
+
index = wrapper ? index : length;
|
|
3628
|
+
while (++index < length) {
|
|
3629
|
+
func = funcs[index];
|
|
3632
3630
|
var funcName = getFuncName(func), data2 = funcName == "wrapper" ? getData(func) : undefined$1;
|
|
3633
3631
|
if (data2 && isLaziable(data2[0]) && data2[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data2[4].length && data2[9] == 1) {
|
|
3634
3632
|
wrapper = wrapper[getFuncName(data2[0])].apply(wrapper, data2[3]);
|
|
@@ -3641,9 +3639,9 @@ lodash.exports;
|
|
|
3641
3639
|
if (wrapper && args.length == 1 && isArray(value)) {
|
|
3642
3640
|
return wrapper.plant(value).value();
|
|
3643
3641
|
}
|
|
3644
|
-
var
|
|
3645
|
-
while (++
|
|
3646
|
-
result2 = funcs[
|
|
3642
|
+
var index2 = 0, result2 = length ? funcs[index2].apply(this, args) : value;
|
|
3643
|
+
while (++index2 < length) {
|
|
3644
|
+
result2 = funcs[index2].call(this, result2);
|
|
3647
3645
|
}
|
|
3648
3646
|
return result2;
|
|
3649
3647
|
};
|
|
@@ -3652,9 +3650,9 @@ lodash.exports;
|
|
|
3652
3650
|
function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
|
|
3653
3651
|
var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined$1 : createCtor(func);
|
|
3654
3652
|
function wrapper() {
|
|
3655
|
-
var length = arguments.length, args = Array2(length),
|
|
3656
|
-
while (
|
|
3657
|
-
args[
|
|
3653
|
+
var length = arguments.length, args = Array2(length), index = length;
|
|
3654
|
+
while (index--) {
|
|
3655
|
+
args[index] = arguments[index];
|
|
3658
3656
|
}
|
|
3659
3657
|
if (isCurried) {
|
|
3660
3658
|
var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder);
|
|
@@ -3922,13 +3920,13 @@ lodash.exports;
|
|
|
3922
3920
|
if (arrStacked && othStacked) {
|
|
3923
3921
|
return arrStacked == other && othStacked == array;
|
|
3924
3922
|
}
|
|
3925
|
-
var
|
|
3923
|
+
var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined$1;
|
|
3926
3924
|
stack.set(array, other);
|
|
3927
3925
|
stack.set(other, array);
|
|
3928
|
-
while (++
|
|
3929
|
-
var arrValue = array[
|
|
3926
|
+
while (++index < arrLength) {
|
|
3927
|
+
var arrValue = array[index], othValue = other[index];
|
|
3930
3928
|
if (customizer) {
|
|
3931
|
-
var compared = isPartial ? customizer(othValue, arrValue,
|
|
3929
|
+
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
3932
3930
|
}
|
|
3933
3931
|
if (compared !== undefined$1) {
|
|
3934
3932
|
if (compared) {
|
|
@@ -4006,9 +4004,9 @@ lodash.exports;
|
|
|
4006
4004
|
if (objLength != othLength && !isPartial) {
|
|
4007
4005
|
return false;
|
|
4008
4006
|
}
|
|
4009
|
-
var
|
|
4010
|
-
while (
|
|
4011
|
-
var key = objProps[
|
|
4007
|
+
var index = objLength;
|
|
4008
|
+
while (index--) {
|
|
4009
|
+
var key = objProps[index];
|
|
4012
4010
|
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
|
4013
4011
|
return false;
|
|
4014
4012
|
}
|
|
@@ -4022,8 +4020,8 @@ lodash.exports;
|
|
|
4022
4020
|
stack.set(object2, other);
|
|
4023
4021
|
stack.set(other, object2);
|
|
4024
4022
|
var skipCtor = isPartial;
|
|
4025
|
-
while (++
|
|
4026
|
-
key = objProps[
|
|
4023
|
+
while (++index < objLength) {
|
|
4024
|
+
key = objProps[index];
|
|
4027
4025
|
var objValue = object2[key], othValue = other[key];
|
|
4028
4026
|
if (customizer) {
|
|
4029
4027
|
var compared = isPartial ? customizer(othValue, objValue, key, other, object2, stack) : customizer(objValue, othValue, key, object2, other, stack);
|
|
@@ -4147,9 +4145,9 @@ lodash.exports;
|
|
|
4147
4145
|
};
|
|
4148
4146
|
}
|
|
4149
4147
|
function getView(start, end, transforms) {
|
|
4150
|
-
var
|
|
4151
|
-
while (++
|
|
4152
|
-
var data2 = transforms[
|
|
4148
|
+
var index = -1, length = transforms.length;
|
|
4149
|
+
while (++index < length) {
|
|
4150
|
+
var data2 = transforms[index], size2 = data2.size;
|
|
4153
4151
|
switch (data2.type) {
|
|
4154
4152
|
case "drop":
|
|
4155
4153
|
start += size2;
|
|
@@ -4173,15 +4171,15 @@ lodash.exports;
|
|
|
4173
4171
|
}
|
|
4174
4172
|
function hasPath(object2, path, hasFunc) {
|
|
4175
4173
|
path = castPath(path, object2);
|
|
4176
|
-
var
|
|
4177
|
-
while (++
|
|
4178
|
-
var key = toKey(path[
|
|
4174
|
+
var index = -1, length = path.length, result2 = false;
|
|
4175
|
+
while (++index < length) {
|
|
4176
|
+
var key = toKey(path[index]);
|
|
4179
4177
|
if (!(result2 = object2 != null && hasFunc(object2, key))) {
|
|
4180
4178
|
break;
|
|
4181
4179
|
}
|
|
4182
4180
|
object2 = object2[key];
|
|
4183
4181
|
}
|
|
4184
|
-
if (result2 || ++
|
|
4182
|
+
if (result2 || ++index != length) {
|
|
4185
4183
|
return result2;
|
|
4186
4184
|
}
|
|
4187
4185
|
length = object2 == null ? 0 : object2.length;
|
|
@@ -4249,13 +4247,13 @@ lodash.exports;
|
|
|
4249
4247
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
4250
4248
|
return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
4251
4249
|
}
|
|
4252
|
-
function isIterateeCall(value,
|
|
4250
|
+
function isIterateeCall(value, index, object2) {
|
|
4253
4251
|
if (!isObject2(object2)) {
|
|
4254
4252
|
return false;
|
|
4255
4253
|
}
|
|
4256
|
-
var type2 = typeof
|
|
4257
|
-
if (type2 == "number" ? isArrayLike(object2) && isIndex(
|
|
4258
|
-
return eq(object2[
|
|
4254
|
+
var type2 = typeof index;
|
|
4255
|
+
if (type2 == "number" ? isArrayLike(object2) && isIndex(index, object2.length) : type2 == "string" && index in object2) {
|
|
4256
|
+
return eq(object2[index], value);
|
|
4259
4257
|
}
|
|
4260
4258
|
return false;
|
|
4261
4259
|
}
|
|
@@ -4364,14 +4362,14 @@ lodash.exports;
|
|
|
4364
4362
|
function overRest(func, start, transform2) {
|
|
4365
4363
|
start = nativeMax(start === undefined$1 ? func.length - 1 : start, 0);
|
|
4366
4364
|
return function() {
|
|
4367
|
-
var args = arguments,
|
|
4368
|
-
while (++
|
|
4369
|
-
array[
|
|
4365
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array2(length);
|
|
4366
|
+
while (++index < length) {
|
|
4367
|
+
array[index] = args[start + index];
|
|
4370
4368
|
}
|
|
4371
|
-
|
|
4369
|
+
index = -1;
|
|
4372
4370
|
var otherArgs = Array2(start + 1);
|
|
4373
|
-
while (++
|
|
4374
|
-
otherArgs[
|
|
4371
|
+
while (++index < start) {
|
|
4372
|
+
otherArgs[index] = args[index];
|
|
4375
4373
|
}
|
|
4376
4374
|
otherArgs[start] = transform2(array);
|
|
4377
4375
|
return apply(func, this, otherArgs);
|
|
@@ -4383,8 +4381,8 @@ lodash.exports;
|
|
|
4383
4381
|
function reorder(array, indexes) {
|
|
4384
4382
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
4385
4383
|
while (length--) {
|
|
4386
|
-
var
|
|
4387
|
-
array[length] = isIndex(
|
|
4384
|
+
var index = indexes[length];
|
|
4385
|
+
array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined$1;
|
|
4388
4386
|
}
|
|
4389
4387
|
return array;
|
|
4390
4388
|
}
|
|
@@ -4422,12 +4420,12 @@ lodash.exports;
|
|
|
4422
4420
|
};
|
|
4423
4421
|
}
|
|
4424
4422
|
function shuffleSelf(array, size2) {
|
|
4425
|
-
var
|
|
4423
|
+
var index = -1, length = array.length, lastIndex = length - 1;
|
|
4426
4424
|
size2 = size2 === undefined$1 ? length : size2;
|
|
4427
|
-
while (++
|
|
4428
|
-
var rand = baseRandom(
|
|
4429
|
-
array[rand] = array[
|
|
4430
|
-
array[
|
|
4425
|
+
while (++index < size2) {
|
|
4426
|
+
var rand = baseRandom(index, lastIndex), value = array[rand];
|
|
4427
|
+
array[rand] = array[index];
|
|
4428
|
+
array[index] = value;
|
|
4431
4429
|
}
|
|
4432
4430
|
array.length = size2;
|
|
4433
4431
|
return array;
|
|
@@ -4491,16 +4489,16 @@ lodash.exports;
|
|
|
4491
4489
|
if (!length || size2 < 1) {
|
|
4492
4490
|
return [];
|
|
4493
4491
|
}
|
|
4494
|
-
var
|
|
4495
|
-
while (
|
|
4496
|
-
result2[resIndex++] = baseSlice(array,
|
|
4492
|
+
var index = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2));
|
|
4493
|
+
while (index < length) {
|
|
4494
|
+
result2[resIndex++] = baseSlice(array, index, index += size2);
|
|
4497
4495
|
}
|
|
4498
4496
|
return result2;
|
|
4499
4497
|
}
|
|
4500
4498
|
function compact(array) {
|
|
4501
|
-
var
|
|
4502
|
-
while (++
|
|
4503
|
-
var value = array[
|
|
4499
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = [];
|
|
4500
|
+
while (++index < length) {
|
|
4501
|
+
var value = array[index];
|
|
4504
4502
|
if (value) {
|
|
4505
4503
|
result2[resIndex++] = value;
|
|
4506
4504
|
}
|
|
@@ -4512,9 +4510,9 @@ lodash.exports;
|
|
|
4512
4510
|
if (!length) {
|
|
4513
4511
|
return [];
|
|
4514
4512
|
}
|
|
4515
|
-
var args = Array2(length - 1), array = arguments[0],
|
|
4516
|
-
while (
|
|
4517
|
-
args[
|
|
4513
|
+
var args = Array2(length - 1), array = arguments[0], index = length;
|
|
4514
|
+
while (index--) {
|
|
4515
|
+
args[index - 1] = arguments[index];
|
|
4518
4516
|
}
|
|
4519
4517
|
return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
|
|
4520
4518
|
}
|
|
@@ -4574,23 +4572,23 @@ lodash.exports;
|
|
|
4574
4572
|
if (!length) {
|
|
4575
4573
|
return -1;
|
|
4576
4574
|
}
|
|
4577
|
-
var
|
|
4578
|
-
if (
|
|
4579
|
-
|
|
4575
|
+
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
4576
|
+
if (index < 0) {
|
|
4577
|
+
index = nativeMax(length + index, 0);
|
|
4580
4578
|
}
|
|
4581
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
|
4579
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index);
|
|
4582
4580
|
}
|
|
4583
4581
|
function findLastIndex(array, predicate, fromIndex) {
|
|
4584
4582
|
var length = array == null ? 0 : array.length;
|
|
4585
4583
|
if (!length) {
|
|
4586
4584
|
return -1;
|
|
4587
4585
|
}
|
|
4588
|
-
var
|
|
4586
|
+
var index = length - 1;
|
|
4589
4587
|
if (fromIndex !== undefined$1) {
|
|
4590
|
-
|
|
4591
|
-
|
|
4588
|
+
index = toInteger(fromIndex);
|
|
4589
|
+
index = fromIndex < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
|
|
4592
4590
|
}
|
|
4593
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
|
4591
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index, true);
|
|
4594
4592
|
}
|
|
4595
4593
|
function flatten2(array) {
|
|
4596
4594
|
var length = array == null ? 0 : array.length;
|
|
@@ -4609,9 +4607,9 @@ lodash.exports;
|
|
|
4609
4607
|
return baseFlatten(array, depth);
|
|
4610
4608
|
}
|
|
4611
4609
|
function fromPairs(pairs) {
|
|
4612
|
-
var
|
|
4613
|
-
while (++
|
|
4614
|
-
var pair = pairs[
|
|
4610
|
+
var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
|
4611
|
+
while (++index < length) {
|
|
4612
|
+
var pair = pairs[index];
|
|
4615
4613
|
result2[pair[0]] = pair[1];
|
|
4616
4614
|
}
|
|
4617
4615
|
return result2;
|
|
@@ -4624,11 +4622,11 @@ lodash.exports;
|
|
|
4624
4622
|
if (!length) {
|
|
4625
4623
|
return -1;
|
|
4626
4624
|
}
|
|
4627
|
-
var
|
|
4628
|
-
if (
|
|
4629
|
-
|
|
4625
|
+
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
4626
|
+
if (index < 0) {
|
|
4627
|
+
index = nativeMax(length + index, 0);
|
|
4630
4628
|
}
|
|
4631
|
-
return baseIndexOf(array, value,
|
|
4629
|
+
return baseIndexOf(array, value, index);
|
|
4632
4630
|
}
|
|
4633
4631
|
function initial(array) {
|
|
4634
4632
|
var length = array == null ? 0 : array.length;
|
|
@@ -4667,12 +4665,12 @@ lodash.exports;
|
|
|
4667
4665
|
if (!length) {
|
|
4668
4666
|
return -1;
|
|
4669
4667
|
}
|
|
4670
|
-
var
|
|
4668
|
+
var index = length;
|
|
4671
4669
|
if (fromIndex !== undefined$1) {
|
|
4672
|
-
|
|
4673
|
-
|
|
4670
|
+
index = toInteger(fromIndex);
|
|
4671
|
+
index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
|
|
4674
4672
|
}
|
|
4675
|
-
return value === value ? strictLastIndexOf(array, value,
|
|
4673
|
+
return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true);
|
|
4676
4674
|
}
|
|
4677
4675
|
function nth(array, n) {
|
|
4678
4676
|
return array && array.length ? baseNth(array, toInteger(n)) : undefined$1;
|
|
@@ -4689,8 +4687,8 @@ lodash.exports;
|
|
|
4689
4687
|
}
|
|
4690
4688
|
var pullAt = flatRest(function(array, indexes) {
|
|
4691
4689
|
var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
|
|
4692
|
-
basePullAt(array, arrayMap(indexes, function(
|
|
4693
|
-
return isIndex(
|
|
4690
|
+
basePullAt(array, arrayMap(indexes, function(index) {
|
|
4691
|
+
return isIndex(index, length) ? +index : index;
|
|
4694
4692
|
}).sort(compareAscending));
|
|
4695
4693
|
return result2;
|
|
4696
4694
|
});
|
|
@@ -4699,13 +4697,13 @@ lodash.exports;
|
|
|
4699
4697
|
if (!(array && array.length)) {
|
|
4700
4698
|
return result2;
|
|
4701
4699
|
}
|
|
4702
|
-
var
|
|
4700
|
+
var index = -1, indexes = [], length = array.length;
|
|
4703
4701
|
predicate = getIteratee(predicate, 3);
|
|
4704
|
-
while (++
|
|
4705
|
-
var value = array[
|
|
4706
|
-
if (predicate(value,
|
|
4702
|
+
while (++index < length) {
|
|
4703
|
+
var value = array[index];
|
|
4704
|
+
if (predicate(value, index, array)) {
|
|
4707
4705
|
result2.push(value);
|
|
4708
|
-
indexes.push(
|
|
4706
|
+
indexes.push(index);
|
|
4709
4707
|
}
|
|
4710
4708
|
}
|
|
4711
4709
|
basePullAt(array, indexes);
|
|
@@ -4737,9 +4735,9 @@ lodash.exports;
|
|
|
4737
4735
|
function sortedIndexOf(array, value) {
|
|
4738
4736
|
var length = array == null ? 0 : array.length;
|
|
4739
4737
|
if (length) {
|
|
4740
|
-
var
|
|
4741
|
-
if (
|
|
4742
|
-
return
|
|
4738
|
+
var index = baseSortedIndex(array, value);
|
|
4739
|
+
if (index < length && eq(array[index], value)) {
|
|
4740
|
+
return index;
|
|
4743
4741
|
}
|
|
4744
4742
|
}
|
|
4745
4743
|
return -1;
|
|
@@ -4753,9 +4751,9 @@ lodash.exports;
|
|
|
4753
4751
|
function sortedLastIndexOf(array, value) {
|
|
4754
4752
|
var length = array == null ? 0 : array.length;
|
|
4755
4753
|
if (length) {
|
|
4756
|
-
var
|
|
4757
|
-
if (eq(array[
|
|
4758
|
-
return
|
|
4754
|
+
var index = baseSortedIndex(array, value, true) - 1;
|
|
4755
|
+
if (eq(array[index], value)) {
|
|
4756
|
+
return index;
|
|
4759
4757
|
}
|
|
4760
4758
|
}
|
|
4761
4759
|
return -1;
|
|
@@ -4828,8 +4826,8 @@ lodash.exports;
|
|
|
4828
4826
|
return true;
|
|
4829
4827
|
}
|
|
4830
4828
|
});
|
|
4831
|
-
return baseTimes(length, function(
|
|
4832
|
-
return arrayMap(array, baseProperty(
|
|
4829
|
+
return baseTimes(length, function(index) {
|
|
4830
|
+
return arrayMap(array, baseProperty(index));
|
|
4833
4831
|
});
|
|
4834
4832
|
}
|
|
4835
4833
|
function unzipWith(array, iteratee2) {
|
|
@@ -5014,9 +5012,9 @@ lodash.exports;
|
|
|
5014
5012
|
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
5015
5013
|
}
|
|
5016
5014
|
var invokeMap = baseRest(function(collection, path, args) {
|
|
5017
|
-
var
|
|
5015
|
+
var index = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
5018
5016
|
baseEach(collection, function(value) {
|
|
5019
|
-
result2[++
|
|
5017
|
+
result2[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
|
|
5020
5018
|
});
|
|
5021
5019
|
return result2;
|
|
5022
5020
|
});
|
|
@@ -5302,9 +5300,9 @@ lodash.exports;
|
|
|
5302
5300
|
transforms = transforms.length == 1 && isArray(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
|
|
5303
5301
|
var funcsLength = transforms.length;
|
|
5304
5302
|
return baseRest(function(args) {
|
|
5305
|
-
var
|
|
5306
|
-
while (++
|
|
5307
|
-
args[
|
|
5303
|
+
var index = -1, length = nativeMin(args.length, funcsLength);
|
|
5304
|
+
while (++index < length) {
|
|
5305
|
+
args[index] = transforms[index].call(this, args[index]);
|
|
5308
5306
|
}
|
|
5309
5307
|
return apply(func, this, args);
|
|
5310
5308
|
});
|
|
@@ -5619,14 +5617,14 @@ lodash.exports;
|
|
|
5619
5617
|
}
|
|
5620
5618
|
var defaults = baseRest(function(object2, sources) {
|
|
5621
5619
|
object2 = Object2(object2);
|
|
5622
|
-
var
|
|
5620
|
+
var index = -1;
|
|
5623
5621
|
var length = sources.length;
|
|
5624
5622
|
var guard = length > 2 ? sources[2] : undefined$1;
|
|
5625
5623
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
5626
5624
|
length = 1;
|
|
5627
5625
|
}
|
|
5628
|
-
while (++
|
|
5629
|
-
var source = sources[
|
|
5626
|
+
while (++index < length) {
|
|
5627
|
+
var source = sources[index];
|
|
5630
5628
|
var props = keysIn(source);
|
|
5631
5629
|
var propsIndex = -1;
|
|
5632
5630
|
var propsLength = props.length;
|
|
@@ -5764,15 +5762,15 @@ lodash.exports;
|
|
|
5764
5762
|
}
|
|
5765
5763
|
function result(object2, path, defaultValue) {
|
|
5766
5764
|
path = castPath(path, object2);
|
|
5767
|
-
var
|
|
5765
|
+
var index = -1, length = path.length;
|
|
5768
5766
|
if (!length) {
|
|
5769
5767
|
length = 1;
|
|
5770
5768
|
object2 = undefined$1;
|
|
5771
5769
|
}
|
|
5772
|
-
while (++
|
|
5773
|
-
var value = object2 == null ? undefined$1 : object2[toKey(path[
|
|
5770
|
+
while (++index < length) {
|
|
5771
|
+
var value = object2 == null ? undefined$1 : object2[toKey(path[index])];
|
|
5774
5772
|
if (value === undefined$1) {
|
|
5775
|
-
|
|
5773
|
+
index = length;
|
|
5776
5774
|
value = defaultValue;
|
|
5777
5775
|
}
|
|
5778
5776
|
object2 = isFunction(value) ? value.call(object2) : value;
|
|
@@ -5801,8 +5799,8 @@ lodash.exports;
|
|
|
5801
5799
|
accumulator = {};
|
|
5802
5800
|
}
|
|
5803
5801
|
}
|
|
5804
|
-
(isArrLike ? arrayEach : baseForOwn)(object2, function(value,
|
|
5805
|
-
return iteratee2(accumulator, value,
|
|
5802
|
+
(isArrLike ? arrayEach : baseForOwn)(object2, function(value, index, object3) {
|
|
5803
|
+
return iteratee2(accumulator, value, index, object3);
|
|
5806
5804
|
});
|
|
5807
5805
|
return accumulator;
|
|
5808
5806
|
}
|
|
@@ -5884,9 +5882,9 @@ lodash.exports;
|
|
|
5884
5882
|
}
|
|
5885
5883
|
return baseRandom(lower, upper);
|
|
5886
5884
|
}
|
|
5887
|
-
var camelCase = createCompounder(function(result2, word,
|
|
5885
|
+
var camelCase = createCompounder(function(result2, word, index) {
|
|
5888
5886
|
word = word.toLowerCase();
|
|
5889
|
-
return result2 + (
|
|
5887
|
+
return result2 + (index ? capitalize(word) : word);
|
|
5890
5888
|
});
|
|
5891
5889
|
function capitalize(string) {
|
|
5892
5890
|
return upperFirst(toString(string).toLowerCase());
|
|
@@ -5912,11 +5910,11 @@ lodash.exports;
|
|
|
5912
5910
|
string = toString(string);
|
|
5913
5911
|
return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string;
|
|
5914
5912
|
}
|
|
5915
|
-
var kebabCase = createCompounder(function(result2, word,
|
|
5916
|
-
return result2 + (
|
|
5913
|
+
var kebabCase = createCompounder(function(result2, word, index) {
|
|
5914
|
+
return result2 + (index ? "-" : "") + word.toLowerCase();
|
|
5917
5915
|
});
|
|
5918
|
-
var lowerCase = createCompounder(function(result2, word,
|
|
5919
|
-
return result2 + (
|
|
5916
|
+
var lowerCase = createCompounder(function(result2, word, index) {
|
|
5917
|
+
return result2 + (index ? " " : "") + word.toLowerCase();
|
|
5920
5918
|
});
|
|
5921
5919
|
var lowerFirst = createCaseFirst("toLowerCase");
|
|
5922
5920
|
function pad(string, length, chars) {
|
|
@@ -5961,8 +5959,8 @@ lodash.exports;
|
|
|
5961
5959
|
var args = arguments, string = toString(args[0]);
|
|
5962
5960
|
return args.length < 3 ? string : string.replace(args[1], args[2]);
|
|
5963
5961
|
}
|
|
5964
|
-
var snakeCase = createCompounder(function(result2, word,
|
|
5965
|
-
return result2 + (
|
|
5962
|
+
var snakeCase = createCompounder(function(result2, word, index) {
|
|
5963
|
+
return result2 + (index ? "_" : "") + word.toLowerCase();
|
|
5966
5964
|
});
|
|
5967
5965
|
function split(string, separator, limit) {
|
|
5968
5966
|
if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) {
|
|
@@ -5981,8 +5979,8 @@ lodash.exports;
|
|
|
5981
5979
|
}
|
|
5982
5980
|
return string.split(separator, limit);
|
|
5983
5981
|
}
|
|
5984
|
-
var startCase = createCompounder(function(result2, word,
|
|
5985
|
-
return result2 + (
|
|
5982
|
+
var startCase = createCompounder(function(result2, word, index) {
|
|
5983
|
+
return result2 + (index ? " " : "") + upperFirst(word);
|
|
5986
5984
|
});
|
|
5987
5985
|
function startsWith(string, target, position) {
|
|
5988
5986
|
string = toString(string);
|
|
@@ -5998,7 +5996,7 @@ lodash.exports;
|
|
|
5998
5996
|
string = toString(string);
|
|
5999
5997
|
options = assignInWith({}, options, settings, customDefaultsAssignIn);
|
|
6000
5998
|
var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
6001
|
-
var isEscaping, isEvaluating,
|
|
5999
|
+
var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
6002
6000
|
var reDelimiters = RegExp2(
|
|
6003
6001
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
6004
6002
|
"g"
|
|
@@ -6006,7 +6004,7 @@ lodash.exports;
|
|
|
6006
6004
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
|
6007
6005
|
string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
|
6008
6006
|
interpolateValue || (interpolateValue = esTemplateValue);
|
|
6009
|
-
source += string.slice(
|
|
6007
|
+
source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
|
|
6010
6008
|
if (escapeValue) {
|
|
6011
6009
|
isEscaping = true;
|
|
6012
6010
|
source += "' +\n__e(" + escapeValue + ") +\n'";
|
|
@@ -6018,7 +6016,7 @@ lodash.exports;
|
|
|
6018
6016
|
if (interpolateValue) {
|
|
6019
6017
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
|
6020
6018
|
}
|
|
6021
|
-
|
|
6019
|
+
index = offset + match.length;
|
|
6022
6020
|
return match;
|
|
6023
6021
|
});
|
|
6024
6022
|
source += "';\n";
|
|
@@ -6118,9 +6116,9 @@ lodash.exports;
|
|
|
6118
6116
|
result2 = result2.slice(0, newEnd === undefined$1 ? end : newEnd);
|
|
6119
6117
|
}
|
|
6120
6118
|
} else if (string.indexOf(baseToString(separator), end) != end) {
|
|
6121
|
-
var
|
|
6122
|
-
if (
|
|
6123
|
-
result2 = result2.slice(0,
|
|
6119
|
+
var index = result2.lastIndexOf(separator);
|
|
6120
|
+
if (index > -1) {
|
|
6121
|
+
result2 = result2.slice(0, index);
|
|
6124
6122
|
}
|
|
6125
6123
|
}
|
|
6126
6124
|
return result2 + omission;
|
|
@@ -6129,8 +6127,8 @@ lodash.exports;
|
|
|
6129
6127
|
string = toString(string);
|
|
6130
6128
|
return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
|
|
6131
6129
|
}
|
|
6132
|
-
var upperCase = createCompounder(function(result2, word,
|
|
6133
|
-
return result2 + (
|
|
6130
|
+
var upperCase = createCompounder(function(result2, word, index) {
|
|
6131
|
+
return result2 + (index ? " " : "") + word.toUpperCase();
|
|
6134
6132
|
});
|
|
6135
6133
|
var upperFirst = createCaseFirst("toUpperCase");
|
|
6136
6134
|
function words(string, pattern, guard) {
|
|
@@ -6164,9 +6162,9 @@ lodash.exports;
|
|
|
6164
6162
|
return [toIteratee(pair[0]), pair[1]];
|
|
6165
6163
|
});
|
|
6166
6164
|
return baseRest(function(args) {
|
|
6167
|
-
var
|
|
6168
|
-
while (++
|
|
6169
|
-
var pair = pairs[
|
|
6165
|
+
var index = -1;
|
|
6166
|
+
while (++index < length) {
|
|
6167
|
+
var pair = pairs[index];
|
|
6170
6168
|
if (apply(pair[0], this, args)) {
|
|
6171
6169
|
return apply(pair[1], this, args);
|
|
6172
6170
|
}
|
|
@@ -6282,12 +6280,12 @@ lodash.exports;
|
|
|
6282
6280
|
if (n < 1 || n > MAX_SAFE_INTEGER) {
|
|
6283
6281
|
return [];
|
|
6284
6282
|
}
|
|
6285
|
-
var
|
|
6283
|
+
var index = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH);
|
|
6286
6284
|
iteratee2 = getIteratee(iteratee2);
|
|
6287
6285
|
n -= MAX_ARRAY_LENGTH;
|
|
6288
6286
|
var result2 = baseTimes(length, iteratee2);
|
|
6289
|
-
while (++
|
|
6290
|
-
iteratee2(
|
|
6287
|
+
while (++index < n) {
|
|
6288
|
+
iteratee2(index);
|
|
6291
6289
|
}
|
|
6292
6290
|
return result2;
|
|
6293
6291
|
}
|
|
@@ -6659,10 +6657,10 @@ lodash.exports;
|
|
|
6659
6657
|
arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
|
|
6660
6658
|
lodash2[methodName].placeholder = lodash2;
|
|
6661
6659
|
});
|
|
6662
|
-
arrayEach(["drop", "take"], function(methodName,
|
|
6660
|
+
arrayEach(["drop", "take"], function(methodName, index) {
|
|
6663
6661
|
LazyWrapper.prototype[methodName] = function(n) {
|
|
6664
6662
|
n = n === undefined$1 ? 1 : nativeMax(toInteger(n), 0);
|
|
6665
|
-
var result2 = this.__filtered__ && !
|
|
6663
|
+
var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone();
|
|
6666
6664
|
if (result2.__filtered__) {
|
|
6667
6665
|
result2.__takeCount__ = nativeMin(n, result2.__takeCount__);
|
|
6668
6666
|
} else {
|
|
@@ -6677,8 +6675,8 @@ lodash.exports;
|
|
|
6677
6675
|
return this.reverse()[methodName](n).reverse();
|
|
6678
6676
|
};
|
|
6679
6677
|
});
|
|
6680
|
-
arrayEach(["filter", "map", "takeWhile"], function(methodName,
|
|
6681
|
-
var type2 =
|
|
6678
|
+
arrayEach(["filter", "map", "takeWhile"], function(methodName, index) {
|
|
6679
|
+
var type2 = index + 1, isFilter = type2 == LAZY_FILTER_FLAG || type2 == LAZY_WHILE_FLAG;
|
|
6682
6680
|
LazyWrapper.prototype[methodName] = function(iteratee2) {
|
|
6683
6681
|
var result2 = this.clone();
|
|
6684
6682
|
result2.__iteratees__.push({
|
|
@@ -6689,14 +6687,14 @@ lodash.exports;
|
|
|
6689
6687
|
return result2;
|
|
6690
6688
|
};
|
|
6691
6689
|
});
|
|
6692
|
-
arrayEach(["head", "last"], function(methodName,
|
|
6693
|
-
var takeName = "take" + (
|
|
6690
|
+
arrayEach(["head", "last"], function(methodName, index) {
|
|
6691
|
+
var takeName = "take" + (index ? "Right" : "");
|
|
6694
6692
|
LazyWrapper.prototype[methodName] = function() {
|
|
6695
6693
|
return this[takeName](1).value()[0];
|
|
6696
6694
|
};
|
|
6697
6695
|
});
|
|
6698
|
-
arrayEach(["initial", "tail"], function(methodName,
|
|
6699
|
-
var dropName = "drop" + (
|
|
6696
|
+
arrayEach(["initial", "tail"], function(methodName, index) {
|
|
6697
|
+
var dropName = "drop" + (index ? "" : "Right");
|
|
6700
6698
|
LazyWrapper.prototype[methodName] = function() {
|
|
6701
6699
|
return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
|
|
6702
6700
|
};
|
|
@@ -7456,9 +7454,9 @@ function KeyValueListWidget(props) {
|
|
|
7456
7454
|
[props]
|
|
7457
7455
|
);
|
|
7458
7456
|
const onRemove = useCallback(
|
|
7459
|
-
(
|
|
7457
|
+
(index) => {
|
|
7460
7458
|
const result = [...items];
|
|
7461
|
-
result.splice(
|
|
7459
|
+
result.splice(index, 1);
|
|
7462
7460
|
onChange(result);
|
|
7463
7461
|
},
|
|
7464
7462
|
[onChange, items]
|
|
@@ -7467,28 +7465,28 @@ function KeyValueListWidget(props) {
|
|
|
7467
7465
|
onChange([...items, { key: "", value: "" }]);
|
|
7468
7466
|
}, [onChange, items]);
|
|
7469
7467
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
7470
|
-
items.map((item,
|
|
7468
|
+
items.map((item, index) => {
|
|
7471
7469
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
7472
7470
|
KeyValueInput,
|
|
7473
7471
|
{
|
|
7474
7472
|
item,
|
|
7475
7473
|
onChange: (newItem) => {
|
|
7476
7474
|
const temp = [...items];
|
|
7477
|
-
temp.splice(
|
|
7475
|
+
temp.splice(index, 1, newItem);
|
|
7478
7476
|
onChange(temp);
|
|
7479
7477
|
},
|
|
7480
7478
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
7481
7479
|
kit.button,
|
|
7482
7480
|
{
|
|
7483
7481
|
onClick: () => {
|
|
7484
|
-
onRemove(
|
|
7482
|
+
onRemove(index);
|
|
7485
7483
|
},
|
|
7486
7484
|
danger: true,
|
|
7487
7485
|
children: "Remove"
|
|
7488
7486
|
}
|
|
7489
7487
|
)
|
|
7490
7488
|
},
|
|
7491
|
-
|
|
7489
|
+
index
|
|
7492
7490
|
);
|
|
7493
7491
|
}),
|
|
7494
7492
|
/* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", onClick: onAdd, children: "Add" }) })
|
|
@@ -9585,14 +9583,14 @@ function generate(node, key, rootProps) {
|
|
|
9585
9583
|
if (!rootProps) {
|
|
9586
9584
|
return React__default.createElement(node.tag, _objectSpread$1({
|
|
9587
9585
|
key
|
|
9588
|
-
}, normalizeAttrs(node.attrs)), (node.children || []).map(function(child,
|
|
9589
|
-
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(
|
|
9586
|
+
}, normalizeAttrs(node.attrs)), (node.children || []).map(function(child, index) {
|
|
9587
|
+
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
9590
9588
|
}));
|
|
9591
9589
|
}
|
|
9592
9590
|
return React__default.createElement(node.tag, _objectSpread$1(_objectSpread$1({
|
|
9593
9591
|
key
|
|
9594
|
-
}, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function(child,
|
|
9595
|
-
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(
|
|
9592
|
+
}, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function(child, index) {
|
|
9593
|
+
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
9596
9594
|
}));
|
|
9597
9595
|
}
|
|
9598
9596
|
function getSecondaryColor(primaryColor) {
|
|
@@ -9801,8 +9799,8 @@ function FormErrorAlert(props) {
|
|
|
9801
9799
|
return errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9802
9800
|
kit.alert,
|
|
9803
9801
|
{
|
|
9804
|
-
message: errorMsgs.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: errorMsgs.map((errorMsg,
|
|
9805
|
-
|
|
9802
|
+
message: errorMsgs.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: errorMsgs.map((errorMsg, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
|
|
9803
|
+
index + 1 + ". ",
|
|
9806
9804
|
" ",
|
|
9807
9805
|
errorMsg
|
|
9808
9806
|
] }, errorMsg)) }) : first(errorMsgs),
|
|
@@ -9861,7 +9859,7 @@ const ErrorMsgStyle = "eh2qjnl";
|
|
|
9861
9859
|
const ErrorWrapperStyle = "e19q2bnp";
|
|
9862
9860
|
const YamlEditorStyle = "y16u5v3w";
|
|
9863
9861
|
const MonacoYamlEditor$2 = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$1));
|
|
9864
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
9862
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-b459d49b.js"));
|
|
9865
9863
|
const YamlEditorComponent = forwardRef(
|
|
9866
9864
|
function YamlEditorComponent2(props, ref) {
|
|
9867
9865
|
const {
|
|
@@ -10056,8 +10054,8 @@ const YamlEditorComponent = forwardRef(
|
|
|
10056
10054
|
] }),
|
|
10057
10055
|
errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { className: ErrorWrapperStyle, size: 8, align: "start", children: [
|
|
10058
10056
|
/* @__PURE__ */ jsxRuntimeExports.jsx(XmarkFailedSeriousWarningFill16RedIcon, { className: ErrorIconStyle }),
|
|
10059
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorMsgs.map((errorMsg,
|
|
10060
|
-
errorMsgs.length > 1 ? `${
|
|
10057
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorMsgs.map((errorMsg, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: ErrorMsgStyle, children: [
|
|
10058
|
+
errorMsgs.length > 1 ? `${index + 1}. ` : "",
|
|
10061
10059
|
errorMsg
|
|
10062
10060
|
] }, errorMsg)) })
|
|
10063
10061
|
] }) : void 0
|
|
@@ -10794,10 +10792,10 @@ const ImageNames = ({
|
|
|
10794
10792
|
children: value[0]
|
|
10795
10793
|
}), value.length > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tooltip, {
|
|
10796
10794
|
title: /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {
|
|
10797
|
-
children: value.slice(1).map((name2,
|
|
10795
|
+
children: value.slice(1).map((name2, index) => {
|
|
10798
10796
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
10799
10797
|
children: name2
|
|
10800
|
-
},
|
|
10798
|
+
}, index);
|
|
10801
10799
|
})
|
|
10802
10800
|
}),
|
|
10803
10801
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
@@ -11809,10 +11807,10 @@ const ShowContent = (props) => {
|
|
|
11809
11807
|
});
|
|
11810
11808
|
const groups = (showConfig.groups || []).concat([{
|
|
11811
11809
|
fields: LABELS_ANNOTATIONS_GROUP_FIELDS
|
|
11812
|
-
}]).map((group,
|
|
11810
|
+
}]).map((group, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(kit.row, {
|
|
11813
11811
|
gutter: [24, 16],
|
|
11814
11812
|
children: renderFields(group.fields)
|
|
11815
|
-
},
|
|
11813
|
+
}, index));
|
|
11816
11814
|
const tabs = /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabs, {
|
|
11817
11815
|
className: TabsStyle,
|
|
11818
11816
|
children: (showConfig.tabs || []).map((field) => {
|
|
@@ -14449,10 +14447,10 @@ function requireReactDomServer_browser_development() {
|
|
|
14449
14447
|
}
|
|
14450
14448
|
var escape;
|
|
14451
14449
|
var html = "";
|
|
14452
|
-
var
|
|
14450
|
+
var index;
|
|
14453
14451
|
var lastIndex = 0;
|
|
14454
|
-
for (
|
|
14455
|
-
switch (str.charCodeAt(
|
|
14452
|
+
for (index = match.index; index < str.length; index++) {
|
|
14453
|
+
switch (str.charCodeAt(index)) {
|
|
14456
14454
|
case 34:
|
|
14457
14455
|
escape = """;
|
|
14458
14456
|
break;
|
|
@@ -14471,13 +14469,13 @@ function requireReactDomServer_browser_development() {
|
|
|
14471
14469
|
default:
|
|
14472
14470
|
continue;
|
|
14473
14471
|
}
|
|
14474
|
-
if (lastIndex !==
|
|
14475
|
-
html += str.substring(lastIndex,
|
|
14472
|
+
if (lastIndex !== index) {
|
|
14473
|
+
html += str.substring(lastIndex, index);
|
|
14476
14474
|
}
|
|
14477
|
-
lastIndex =
|
|
14475
|
+
lastIndex = index + 1;
|
|
14478
14476
|
html += escape;
|
|
14479
14477
|
}
|
|
14480
|
-
return lastIndex !==
|
|
14478
|
+
return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
|
|
14481
14479
|
}
|
|
14482
14480
|
function escapeTextForBrowser(text) {
|
|
14483
14481
|
if (typeof text === "boolean" || typeof text === "number") {
|
|
@@ -16340,39 +16338,39 @@ function requireReactDomServer_browser_development() {
|
|
|
16340
16338
|
}
|
|
16341
16339
|
};
|
|
16342
16340
|
_proto.pushProvider = function pushProvider(provider) {
|
|
16343
|
-
var
|
|
16341
|
+
var index = ++this.contextIndex;
|
|
16344
16342
|
var context = provider.type._context;
|
|
16345
16343
|
var threadID = this.threadID;
|
|
16346
16344
|
validateContextBounds(context, threadID);
|
|
16347
16345
|
var previousValue = context[threadID];
|
|
16348
|
-
this.contextStack[
|
|
16349
|
-
this.contextValueStack[
|
|
16346
|
+
this.contextStack[index] = context;
|
|
16347
|
+
this.contextValueStack[index] = previousValue;
|
|
16350
16348
|
{
|
|
16351
|
-
this.contextProviderStack[
|
|
16349
|
+
this.contextProviderStack[index] = provider;
|
|
16352
16350
|
}
|
|
16353
16351
|
context[threadID] = provider.props.value;
|
|
16354
16352
|
};
|
|
16355
16353
|
_proto.popProvider = function popProvider(provider) {
|
|
16356
|
-
var
|
|
16354
|
+
var index = this.contextIndex;
|
|
16357
16355
|
{
|
|
16358
|
-
if (
|
|
16356
|
+
if (index < 0 || provider !== this.contextProviderStack[index]) {
|
|
16359
16357
|
error("Unexpected pop.");
|
|
16360
16358
|
}
|
|
16361
16359
|
}
|
|
16362
|
-
var context = this.contextStack[
|
|
16363
|
-
var previousValue = this.contextValueStack[
|
|
16364
|
-
this.contextStack[
|
|
16365
|
-
this.contextValueStack[
|
|
16360
|
+
var context = this.contextStack[index];
|
|
16361
|
+
var previousValue = this.contextValueStack[index];
|
|
16362
|
+
this.contextStack[index] = null;
|
|
16363
|
+
this.contextValueStack[index] = null;
|
|
16366
16364
|
{
|
|
16367
|
-
this.contextProviderStack[
|
|
16365
|
+
this.contextProviderStack[index] = null;
|
|
16368
16366
|
}
|
|
16369
16367
|
this.contextIndex--;
|
|
16370
16368
|
context[this.threadID] = previousValue;
|
|
16371
16369
|
};
|
|
16372
16370
|
_proto.clearProviders = function clearProviders() {
|
|
16373
|
-
for (var
|
|
16374
|
-
var context = this.contextStack[
|
|
16375
|
-
var previousValue = this.contextValueStack[
|
|
16371
|
+
for (var index = this.contextIndex; index >= 0; index--) {
|
|
16372
|
+
var context = this.contextStack[index];
|
|
16373
|
+
var previousValue = this.contextValueStack[index];
|
|
16376
16374
|
context[this.threadID] = previousValue;
|
|
16377
16375
|
}
|
|
16378
16376
|
};
|
|
@@ -16991,15 +16989,15 @@ const escapeTextForHtml = (inputString) => inputString.replace(/[&<>"']/gm, (str
|
|
|
16991
16989
|
return "'";
|
|
16992
16990
|
}
|
|
16993
16991
|
});
|
|
16994
|
-
const LogViewerRow = memo(({ index
|
|
16992
|
+
const LogViewerRow = memo(({ index, style, data: data2, ansiUp }) => {
|
|
16995
16993
|
const { parsedData, searchedWordIndexes, rowInFocus } = data2;
|
|
16996
16994
|
const context = useContext(LogViewerContext);
|
|
16997
|
-
const getData = (
|
|
16998
|
-
const getRowIndex = (
|
|
16995
|
+
const getData = (index2) => parsedData ? parsedData[index2] : null;
|
|
16996
|
+
const getRowIndex = (index2) => index2 + LOGGER_LINE_NUMBER_INDEX_DELTA;
|
|
16999
16997
|
const handleHighlight = (matchCounter) => {
|
|
17000
|
-
const searchedWordResult = searchedWordIndexes.filter((searchedWord) => searchedWord.rowIndex ===
|
|
16998
|
+
const searchedWordResult = searchedWordIndexes.filter((searchedWord) => searchedWord.rowIndex === index);
|
|
17001
16999
|
if (searchedWordResult.length !== 0) {
|
|
17002
|
-
if (rowInFocus.rowIndex ===
|
|
17000
|
+
if (rowInFocus.rowIndex === index && rowInFocus.matchIndex === matchCounter) {
|
|
17003
17001
|
return styles$1.modifiers.current;
|
|
17004
17002
|
}
|
|
17005
17003
|
return styles$1.modifiers.match;
|
|
@@ -17007,7 +17005,7 @@ const LogViewerRow = memo(({ index: index2, style, data: data2, ansiUp }) => {
|
|
|
17007
17005
|
return "";
|
|
17008
17006
|
};
|
|
17009
17007
|
const getFormattedData = () => {
|
|
17010
|
-
const rowText = getData(
|
|
17008
|
+
const rowText = getData(index);
|
|
17011
17009
|
let matchCounter = 0;
|
|
17012
17010
|
if (context.searchedInput) {
|
|
17013
17011
|
const splitAnsiString = splitAnsi(rowText);
|
|
@@ -17036,7 +17034,7 @@ const LogViewerRow = memo(({ index: index2, style, data: data2, ansiUp }) => {
|
|
|
17036
17034
|
return React__default.createElement(
|
|
17037
17035
|
"div",
|
|
17038
17036
|
{ style, className: css(styles$1.logViewerListItem) },
|
|
17039
|
-
React__default.createElement("span", { className: css(styles$1.logViewerIndex) }, getRowIndex(
|
|
17037
|
+
React__default.createElement("span", { className: css(styles$1.logViewerIndex) }, getRowIndex(index)),
|
|
17040
17038
|
React__default.createElement("span", { className: css(styles$1.logViewerText), style: { width: "fit-content" }, dangerouslySetInnerHTML: { __html: ansiUp.ansi_to_html(getFormattedData()) } })
|
|
17041
17039
|
);
|
|
17042
17040
|
});
|
|
@@ -17126,7 +17124,7 @@ function requestTimeout(callback, delay) {
|
|
|
17126
17124
|
return timeoutID;
|
|
17127
17125
|
}
|
|
17128
17126
|
const IS_SCROLLING_DEBOUNCE_INTERVAL = 150;
|
|
17129
|
-
const defaultItemKey = (
|
|
17127
|
+
const defaultItemKey = (index, _data) => index;
|
|
17130
17128
|
let devWarningsTagName = null;
|
|
17131
17129
|
if (process.env.NODE_ENV !== "production") {
|
|
17132
17130
|
if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
|
|
@@ -17163,16 +17161,16 @@ function createListComponent({ getItemOffset, getEstimatedTotalSize: getEstimate
|
|
|
17163
17161
|
scrollOffsetToBottom,
|
|
17164
17162
|
scrollUpdateWasRequested
|
|
17165
17163
|
}));
|
|
17166
|
-
this._getItemStyle = (
|
|
17164
|
+
this._getItemStyle = (index) => {
|
|
17167
17165
|
const { itemSize } = this.props;
|
|
17168
17166
|
const itemStyleCache = this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize);
|
|
17169
17167
|
let style;
|
|
17170
|
-
if (itemStyleCache.hasOwnProperty(
|
|
17171
|
-
style = itemStyleCache[
|
|
17168
|
+
if (itemStyleCache.hasOwnProperty(index)) {
|
|
17169
|
+
style = itemStyleCache[index];
|
|
17172
17170
|
} else {
|
|
17173
|
-
const offset = getItemOffset(this.props,
|
|
17174
|
-
const size = getItemSize(this.props,
|
|
17175
|
-
itemStyleCache[
|
|
17171
|
+
const offset = getItemOffset(this.props, index, this._instanceProps);
|
|
17172
|
+
const size = getItemSize(this.props, index, this._instanceProps);
|
|
17173
|
+
itemStyleCache[index] = style = {
|
|
17176
17174
|
position: "absolute",
|
|
17177
17175
|
top: offset,
|
|
17178
17176
|
height: size
|
|
@@ -17238,11 +17236,11 @@ function createListComponent({ getItemOffset, getEstimatedTotalSize: getEstimate
|
|
|
17238
17236
|
};
|
|
17239
17237
|
}, this._resetIsScrollingDebounced);
|
|
17240
17238
|
}
|
|
17241
|
-
scrollToItem(
|
|
17239
|
+
scrollToItem(index, align = "auto") {
|
|
17242
17240
|
const { itemCount } = this.props;
|
|
17243
17241
|
const { scrollOffset } = this.state;
|
|
17244
|
-
|
|
17245
|
-
this.scrollTo(getOffsetForIndexAndAlignment(this.props,
|
|
17242
|
+
index = Math.max(0, Math.min(index, itemCount - 1));
|
|
17243
|
+
this.scrollTo(getOffsetForIndexAndAlignment(this.props, index, align, scrollOffset, this._instanceProps));
|
|
17246
17244
|
}
|
|
17247
17245
|
scrollToBottom() {
|
|
17248
17246
|
const outerRef = this._outerRef;
|
|
@@ -17301,13 +17299,13 @@ function createListComponent({ getItemOffset, getEstimatedTotalSize: getEstimate
|
|
|
17301
17299
|
const [startIndex, stopIndex] = this._getRangeToRender();
|
|
17302
17300
|
const items = [];
|
|
17303
17301
|
if (itemCount > 0) {
|
|
17304
|
-
for (let
|
|
17302
|
+
for (let index = startIndex; index <= stopIndex; index++) {
|
|
17305
17303
|
items.push(createElement(children, {
|
|
17306
17304
|
data: itemData,
|
|
17307
|
-
key: itemKey(
|
|
17308
|
-
index
|
|
17305
|
+
key: itemKey(index, itemData),
|
|
17306
|
+
index,
|
|
17309
17307
|
isScrolling: useIsScrolling ? isScrolling : void 0,
|
|
17310
|
-
style: this._getItemStyle(
|
|
17308
|
+
style: this._getItemStyle(index),
|
|
17311
17309
|
ansiUp
|
|
17312
17310
|
}));
|
|
17313
17311
|
}
|
|
@@ -17380,16 +17378,16 @@ const validateSharedProps = ({ children, innerTagName, outerTagName }, { instanc
|
|
|
17380
17378
|
}
|
|
17381
17379
|
};
|
|
17382
17380
|
const DEFAULT_ESTIMATED_ITEM_SIZE = 50;
|
|
17383
|
-
const getItemMetadata = (props,
|
|
17381
|
+
const getItemMetadata = (props, index, instanceProps) => {
|
|
17384
17382
|
const { itemSize } = props;
|
|
17385
17383
|
const { itemMetadataMap, lastMeasuredIndex } = instanceProps;
|
|
17386
|
-
if (
|
|
17384
|
+
if (index > lastMeasuredIndex) {
|
|
17387
17385
|
let offset = 0;
|
|
17388
17386
|
if (lastMeasuredIndex >= 0) {
|
|
17389
17387
|
const itemMetadata = itemMetadataMap[lastMeasuredIndex];
|
|
17390
17388
|
offset = itemMetadata.offset + itemMetadata.size;
|
|
17391
17389
|
}
|
|
17392
|
-
for (let i = lastMeasuredIndex + 1; i <=
|
|
17390
|
+
for (let i = lastMeasuredIndex + 1; i <= index; i++) {
|
|
17393
17391
|
const size = typeof itemSize === "number" ? itemSize : itemSize(i);
|
|
17394
17392
|
itemMetadataMap[i] = {
|
|
17395
17393
|
offset,
|
|
@@ -17397,9 +17395,9 @@ const getItemMetadata = (props, index2, instanceProps) => {
|
|
|
17397
17395
|
};
|
|
17398
17396
|
offset += size;
|
|
17399
17397
|
}
|
|
17400
|
-
instanceProps.lastMeasuredIndex =
|
|
17398
|
+
instanceProps.lastMeasuredIndex = index;
|
|
17401
17399
|
}
|
|
17402
|
-
return itemMetadataMap[
|
|
17400
|
+
return itemMetadataMap[index];
|
|
17403
17401
|
};
|
|
17404
17402
|
const findNearestItem = (props, instanceProps, offset) => {
|
|
17405
17403
|
const { itemMetadataMap, lastMeasuredIndex } = instanceProps;
|
|
@@ -17428,14 +17426,14 @@ const findNearestItemBinarySearch = (props, instanceProps, high, low, offset) =>
|
|
|
17428
17426
|
return 0;
|
|
17429
17427
|
}
|
|
17430
17428
|
};
|
|
17431
|
-
const findNearestItemExponentialSearch = (props, instanceProps,
|
|
17429
|
+
const findNearestItemExponentialSearch = (props, instanceProps, index, offset) => {
|
|
17432
17430
|
const { itemCount } = props;
|
|
17433
17431
|
let interval = 1;
|
|
17434
|
-
while (
|
|
17435
|
-
|
|
17432
|
+
while (index < itemCount && getItemMetadata(props, index, instanceProps).offset < offset) {
|
|
17433
|
+
index += interval;
|
|
17436
17434
|
interval *= 2;
|
|
17437
17435
|
}
|
|
17438
|
-
return findNearestItemBinarySearch(props, instanceProps, Math.min(
|
|
17436
|
+
return findNearestItemBinarySearch(props, instanceProps, Math.min(index, itemCount - 1), Math.floor(index / 2), offset);
|
|
17439
17437
|
};
|
|
17440
17438
|
const getEstimatedTotalSize = ({ itemCount }, { itemMetadataMap, estimatedItemSize, lastMeasuredIndex }) => {
|
|
17441
17439
|
let totalSizeOfMeasuredItems = 0;
|
|
@@ -17451,13 +17449,13 @@ const getEstimatedTotalSize = ({ itemCount }, { itemMetadataMap, estimatedItemSi
|
|
|
17451
17449
|
return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
|
|
17452
17450
|
};
|
|
17453
17451
|
const VariableSizeList = createListComponent({
|
|
17454
|
-
getItemOffset: (props,
|
|
17455
|
-
getItemSize: (props,
|
|
17452
|
+
getItemOffset: (props, index, instanceProps) => getItemMetadata(props, index, instanceProps).offset,
|
|
17453
|
+
getItemSize: (props, index, instanceProps) => instanceProps.itemMetadataMap[index].size,
|
|
17456
17454
|
getEstimatedTotalSize,
|
|
17457
|
-
getOffsetForIndexAndAlignment: (props,
|
|
17455
|
+
getOffsetForIndexAndAlignment: (props, index, align, scrollOffset, instanceProps) => {
|
|
17458
17456
|
const { height } = props;
|
|
17459
17457
|
const size = height;
|
|
17460
|
-
const itemMetadata = getItemMetadata(props,
|
|
17458
|
+
const itemMetadata = getItemMetadata(props, index, instanceProps);
|
|
17461
17459
|
const estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);
|
|
17462
17460
|
const maxOffset = Math.max(0, Math.min(estimatedTotalSize - size, itemMetadata.offset));
|
|
17463
17461
|
const minOffset = Math.max(0, itemMetadata.offset - size + itemMetadata.size);
|
|
@@ -17507,8 +17505,8 @@ const VariableSizeList = createListComponent({
|
|
|
17507
17505
|
estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE,
|
|
17508
17506
|
lastMeasuredIndex: -1
|
|
17509
17507
|
};
|
|
17510
|
-
instance.resetAfterIndex = (
|
|
17511
|
-
instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex,
|
|
17508
|
+
instance.resetAfterIndex = (index, shouldForceUpdate = true) => {
|
|
17509
|
+
instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index - 1);
|
|
17512
17510
|
instance._getItemStyleCache(-1);
|
|
17513
17511
|
if (shouldForceUpdate) {
|
|
17514
17512
|
instance.forceUpdate();
|
|
@@ -19330,7 +19328,7 @@ export {
|
|
|
19330
19328
|
AgeColumnRenderer as A,
|
|
19331
19329
|
Breadcrumb as B,
|
|
19332
19330
|
CommonSorter as C,
|
|
19333
|
-
|
|
19331
|
+
D2Locales as D,
|
|
19334
19332
|
PodContainersTable as E,
|
|
19335
19333
|
WorkloadDropdown as F,
|
|
19336
19334
|
CreateButton as G,
|
|
@@ -19427,8 +19425,8 @@ export {
|
|
|
19427
19425
|
NodeNameColumnRenderer as e,
|
|
19428
19426
|
RestartCountColumnRenderer as f,
|
|
19429
19427
|
CompletionsCountColumnRenderer as g,
|
|
19430
|
-
|
|
19431
|
-
|
|
19428
|
+
DurationColumnRenderer as h,
|
|
19429
|
+
ServiceTypeColumnRenderer as i,
|
|
19432
19430
|
jsxRuntimeExports as j,
|
|
19433
19431
|
IngressDefaultBackendColumnRenderer as k,
|
|
19434
19432
|
ColumnKeys as l,
|