@gooddata/util 11.68.0-alpha.1 → 11.68.0-alpha.11
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/LICENSE +1 -1
- package/NOTICE +179 -0
- package/esm/_/_assignValue.d.ts +12 -0
- package/esm/_/_assignValue.d.ts.map +1 -0
- package/esm/_/_assignValue.js +49 -0
- package/esm/_/_baseAssignValue.d.ts +41 -0
- package/esm/_/_baseAssignValue.d.ts.map +1 -0
- package/esm/_/_baseAssignValue.js +48 -0
- package/esm/_/_baseClone.d.ts +28 -0
- package/esm/_/_baseClone.d.ts.map +1 -0
- package/esm/_/_baseClone.js +229 -0
- package/esm/_/_baseDifference.d.ts +18 -0
- package/esm/_/_baseDifference.d.ts.map +1 -0
- package/esm/_/_baseDifference.js +79 -0
- package/esm/_/_baseEach.d.ts +11 -0
- package/esm/_/_baseEach.d.ts.map +1 -0
- package/esm/_/_baseEach.js +62 -0
- package/esm/_/_baseExtremum.d.ts +15 -0
- package/esm/_/_baseExtremum.d.ts.map +1 -0
- package/esm/_/_baseExtremum.js +64 -0
- package/esm/_/_baseGet.d.ts +10 -0
- package/esm/_/_baseGet.d.ts.map +1 -0
- package/esm/_/_baseGet.js +50 -0
- package/esm/_/_baseGetTag.d.ts +9 -0
- package/esm/_/_baseGetTag.d.ts.map +1 -0
- package/esm/_/_baseGetTag.js +48 -0
- package/esm/_/_baseIntersection.d.ts +19 -0
- package/esm/_/_baseIntersection.d.ts.map +1 -0
- package/esm/_/_baseIntersection.js +91 -0
- package/esm/_/_baseIsEqual.d.ts +34 -0
- package/esm/_/_baseIsEqual.d.ts.map +1 -0
- package/esm/_/_baseIsEqual.js +278 -0
- package/esm/_/_baseIsMatch.d.ts +13 -0
- package/esm/_/_baseIsMatch.d.ts.map +1 -0
- package/esm/_/_baseIsMatch.js +67 -0
- package/esm/_/_baseIteratee.d.ts +15 -0
- package/esm/_/_baseIteratee.d.ts.map +1 -0
- package/esm/_/_baseIteratee.js +65 -0
- package/esm/_/_baseKeys.d.ts +12 -0
- package/esm/_/_baseKeys.d.ts.map +1 -0
- package/esm/_/_baseKeys.js +46 -0
- package/esm/_/_baseMatches.d.ts +10 -0
- package/esm/_/_baseMatches.d.ts.map +1 -0
- package/esm/_/_baseMatches.js +50 -0
- package/esm/_/_baseMatchesProperty.d.ts +11 -0
- package/esm/_/_baseMatchesProperty.d.ts.map +1 -0
- package/esm/_/_baseMatchesProperty.js +59 -0
- package/esm/_/_baseMerge.d.ts +19 -0
- package/esm/_/_baseMerge.d.ts.map +1 -0
- package/esm/_/_baseMerge.js +146 -0
- package/esm/_/_baseOrderBy.d.ts +11 -0
- package/esm/_/_baseOrderBy.d.ts.map +1 -0
- package/esm/_/_baseOrderBy.js +70 -0
- package/esm/_/_basePickBy.d.ts +14 -0
- package/esm/_/_basePickBy.d.ts.map +1 -0
- package/esm/_/_basePickBy.js +57 -0
- package/esm/_/_baseSet.d.ts +13 -0
- package/esm/_/_baseSet.d.ts.map +1 -0
- package/esm/_/_baseSet.js +74 -0
- package/esm/_/_baseSlice.d.ts +45 -0
- package/esm/_/_baseSlice.d.ts.map +1 -0
- package/esm/_/_baseSlice.js +30 -0
- package/esm/_/_baseSum.d.ts +42 -0
- package/esm/_/_baseSum.d.ts.map +1 -0
- package/esm/_/_baseSum.js +21 -0
- package/esm/_/_baseUniq.d.ts +43 -0
- package/esm/_/_baseUniq.d.ts.map +1 -0
- package/esm/_/_baseUniq.js +57 -0
- package/esm/_/_baseUnset.d.ts +13 -0
- package/esm/_/_baseUnset.d.ts.map +1 -0
- package/esm/_/_baseUnset.js +62 -0
- package/esm/_/_castPath.d.ts +10 -0
- package/esm/_/_castPath.d.ts.map +1 -0
- package/esm/_/_castPath.js +48 -0
- package/esm/_/_cloneArrayBuffer.d.ts +39 -0
- package/esm/_/_cloneArrayBuffer.d.ts.map +1 -0
- package/esm/_/_cloneArrayBuffer.js +45 -0
- package/esm/_/_cloneTypedArray.d.ts +10 -0
- package/esm/_/_cloneTypedArray.d.ts.map +1 -0
- package/esm/_/_cloneTypedArray.js +50 -0
- package/esm/_/_compareAscending.d.ts +12 -0
- package/esm/_/_compareAscending.d.ts.map +1 -0
- package/esm/_/_compareAscending.js +78 -0
- package/esm/_/_createCompounder.d.ts +11 -0
- package/esm/_/_createCompounder.d.ts.map +1 -0
- package/esm/_/_createCompounder.js +47 -0
- package/esm/_/_flattenArrayLikeObjects.d.ts +11 -0
- package/esm/_/_flattenArrayLikeObjects.d.ts.map +1 -0
- package/esm/_/_flattenArrayLikeObjects.js +55 -0
- package/esm/_/_getAllKeys.d.ts +9 -0
- package/esm/_/_getAllKeys.d.ts.map +1 -0
- package/esm/_/_getAllKeys.js +43 -0
- package/esm/_/_getAllKeysIn.d.ts +12 -0
- package/esm/_/_getAllKeysIn.d.ts.map +1 -0
- package/esm/_/_getAllKeysIn.js +59 -0
- package/esm/_/_getMatchData.d.ts +16 -0
- package/esm/_/_getMatchData.d.ts.map +1 -0
- package/esm/_/_getMatchData.js +46 -0
- package/esm/_/_getRawTag.d.ts +43 -0
- package/esm/_/_getRawTag.d.ts.map +1 -0
- package/esm/_/_getRawTag.js +65 -0
- package/esm/_/_hasPath.d.ts +13 -0
- package/esm/_/_hasPath.d.ts.map +1 -0
- package/esm/_/_hasPath.js +70 -0
- package/esm/_/_initCloneObject.d.ts +10 -0
- package/esm/_/_initCloneObject.d.ts.map +1 -0
- package/esm/_/_initCloneObject.js +48 -0
- package/esm/_/_isIndex.d.ts +11 -0
- package/esm/_/_isIndex.d.ts.map +1 -0
- package/esm/_/_isIndex.js +51 -0
- package/esm/_/_isIterateeCall.d.ts +13 -0
- package/esm/_/_isIterateeCall.d.ts.map +1 -0
- package/esm/_/_isIterateeCall.js +55 -0
- package/esm/_/_isKey.d.ts +12 -0
- package/esm/_/_isKey.d.ts.map +1 -0
- package/esm/_/_isKey.js +58 -0
- package/esm/_/_isPrototype.d.ts +39 -0
- package/esm/_/_isPrototype.d.ts.map +1 -0
- package/esm/_/_isPrototype.js +43 -0
- package/esm/_/_isStrictComparable.d.ts +9 -0
- package/esm/_/_isStrictComparable.d.ts.map +1 -0
- package/esm/_/_isStrictComparable.js +42 -0
- package/esm/_/_matchesStrictComparable.d.ts +41 -0
- package/esm/_/_matchesStrictComparable.d.ts.map +1 -0
- package/esm/_/_matchesStrictComparable.js +50 -0
- package/esm/_/_stringToPath.d.ts +10 -0
- package/esm/_/_stringToPath.d.ts.map +1 -0
- package/esm/_/_stringToPath.js +64 -0
- package/esm/_/_toKey.d.ts +9 -0
- package/esm/_/_toKey.d.ts.map +1 -0
- package/esm/_/_toKey.js +46 -0
- package/esm/_/_unicode.d.ts +27 -0
- package/esm/_/_unicode.d.ts.map +1 -0
- package/esm/_/_unicode.js +120 -0
- package/esm/_/assignIn.d.ts +35 -0
- package/esm/_/assignIn.d.ts.map +1 -0
- package/esm/_/assignIn.js +50 -0
- package/esm/_/bindAll.d.ts +16 -0
- package/esm/_/bindAll.d.ts.map +1 -0
- package/esm/_/bindAll.js +88 -0
- package/esm/_/camelCase.d.ts +10 -0
- package/esm/_/camelCase.d.ts.map +1 -0
- package/esm/_/camelCase.js +45 -0
- package/esm/_/capitalize.d.ts +9 -0
- package/esm/_/capitalize.d.ts.map +1 -0
- package/esm/_/capitalize.js +43 -0
- package/esm/_/chunk.d.ts +15 -0
- package/esm/_/chunk.d.ts.map +1 -0
- package/esm/_/chunk.js +61 -0
- package/esm/_/clamp.d.ts +17 -0
- package/esm/_/clamp.d.ts.map +1 -0
- package/esm/_/clamp.js +56 -0
- package/esm/_/clone.d.ts +12 -0
- package/esm/_/clone.d.ts.map +1 -0
- package/esm/_/clone.js +45 -0
- package/esm/_/cloneDeep.d.ts +14 -0
- package/esm/_/cloneDeep.d.ts.map +1 -0
- package/esm/_/cloneDeep.js +47 -0
- package/esm/_/cloneDeepWith.d.ts +18 -0
- package/esm/_/cloneDeepWith.d.ts.map +1 -0
- package/esm/_/cloneDeepWith.js +36 -0
- package/esm/_/compact.d.ts +46 -0
- package/esm/_/compact.d.ts.map +1 -0
- package/esm/_/compact.js +23 -0
- package/esm/_/constant.d.ts +39 -0
- package/esm/_/constant.d.ts.map +1 -0
- package/esm/_/constant.js +43 -0
- package/esm/_/debounce.d.ts +70 -0
- package/esm/_/debounce.d.ts.map +1 -0
- package/esm/_/debounce.js +136 -0
- package/esm/_/deburr.d.ts +10 -0
- package/esm/_/deburr.d.ts.map +1 -0
- package/esm/_/deburr.js +243 -0
- package/esm/_/defaults.d.ts +36 -0
- package/esm/_/defaults.d.ts.map +1 -0
- package/esm/_/defaults.js +51 -0
- package/esm/_/difference.d.ts +14 -0
- package/esm/_/difference.d.ts.map +1 -0
- package/esm/_/difference.js +46 -0
- package/esm/_/differenceBy.d.ts +39 -0
- package/esm/_/differenceBy.d.ts.map +1 -0
- package/esm/_/differenceBy.js +40 -0
- package/esm/_/differenceWith.d.ts +27 -0
- package/esm/_/differenceWith.d.ts.map +1 -0
- package/esm/_/differenceWith.js +39 -0
- package/esm/_/dropRightWhile.d.ts +13 -0
- package/esm/_/dropRightWhile.d.ts.map +1 -0
- package/esm/_/dropRightWhile.js +54 -0
- package/esm/_/eq.d.ts +41 -0
- package/esm/_/eq.d.ts.map +1 -0
- package/esm/_/eq.js +43 -0
- package/esm/_/escape.d.ts +13 -0
- package/esm/_/escape.d.ts.map +1 -0
- package/esm/_/escape.js +56 -0
- package/esm/_/escapeRegExp.d.ts +12 -0
- package/esm/_/escapeRegExp.d.ts.map +1 -0
- package/esm/_/escapeRegExp.js +47 -0
- package/esm/_/findKey.d.ts +14 -0
- package/esm/_/findKey.d.ts.map +1 -0
- package/esm/_/findKey.js +58 -0
- package/esm/_/findLastIndex.d.ts +16 -0
- package/esm/_/findLastIndex.d.ts.map +1 -0
- package/esm/_/findLastIndex.js +67 -0
- package/esm/_/get.d.ts +78 -0
- package/esm/_/get.d.ts.map +1 -0
- package/esm/_/get.js +36 -0
- package/esm/_/groupBy.d.ts +19 -0
- package/esm/_/groupBy.d.ts.map +1 -0
- package/esm/_/groupBy.js +49 -0
- package/esm/_/has.d.ts +23 -0
- package/esm/_/has.d.ts.map +1 -0
- package/esm/_/has.js +35 -0
- package/esm/_/inRange.d.ts +14 -0
- package/esm/_/inRange.d.ts.map +1 -0
- package/esm/_/inRange.js +51 -0
- package/esm/_/initial.d.ts +11 -0
- package/esm/_/initial.d.ts.map +1 -0
- package/esm/_/initial.js +44 -0
- package/esm/_/intersection.d.ts +13 -0
- package/esm/_/intersection.d.ts.map +1 -0
- package/esm/_/intersection.js +45 -0
- package/esm/_/intersectionBy.d.ts +32 -0
- package/esm/_/intersectionBy.d.ts.map +1 -0
- package/esm/_/intersectionBy.js +41 -0
- package/esm/_/intersectionWith.d.ts +28 -0
- package/esm/_/intersectionWith.d.ts.map +1 -0
- package/esm/_/intersectionWith.js +38 -0
- package/esm/_/invert.d.ts +14 -0
- package/esm/_/invert.d.ts.map +1 -0
- package/esm/_/invert.js +55 -0
- package/esm/_/isArguments.d.ts +9 -0
- package/esm/_/isArguments.d.ts.map +1 -0
- package/esm/_/isArguments.js +45 -0
- package/esm/_/isArray.d.ts +61 -0
- package/esm/_/isArray.d.ts.map +1 -0
- package/esm/_/isArray.js +62 -0
- package/esm/_/isArrayLike.d.ts +25 -0
- package/esm/_/isArrayLike.d.ts.map +1 -0
- package/esm/_/isArrayLike.js +35 -0
- package/esm/_/isEmpty.d.ts +49 -0
- package/esm/_/isEmpty.d.ts.map +1 -0
- package/esm/_/isEmpty.js +57 -0
- package/esm/_/isEqual.d.ts +15 -0
- package/esm/_/isEqual.d.ts.map +1 -0
- package/esm/_/isEqual.js +48 -0
- package/esm/_/isError.d.ts +11 -0
- package/esm/_/isError.d.ts.map +1 -0
- package/esm/_/isError.js +57 -0
- package/esm/_/isLength.d.ts +41 -0
- package/esm/_/isLength.d.ts.map +1 -0
- package/esm/_/isLength.js +43 -0
- package/esm/_/isObject.d.ts +40 -0
- package/esm/_/isObject.d.ts.map +1 -0
- package/esm/_/isObject.js +42 -0
- package/esm/_/isObjectLike.d.ts +40 -0
- package/esm/_/isObjectLike.d.ts.map +1 -0
- package/esm/_/isObjectLike.js +42 -0
- package/esm/_/isPlainObject.d.ts +10 -0
- package/esm/_/isPlainObject.d.ts.map +1 -0
- package/esm/_/isPlainObject.js +58 -0
- package/esm/_/isSymbol.d.ts +9 -0
- package/esm/_/isSymbol.d.ts.map +1 -0
- package/esm/_/isSymbol.js +45 -0
- package/esm/_/isTypedArray.d.ts +43 -0
- package/esm/_/isTypedArray.d.ts.map +1 -0
- package/esm/_/isTypedArray.js +45 -0
- package/esm/_/kebabCase.d.ts +9 -0
- package/esm/_/kebabCase.d.ts.map +1 -0
- package/esm/_/kebabCase.js +40 -0
- package/esm/_/keyBy.d.ts +17 -0
- package/esm/_/keyBy.d.ts.map +1 -0
- package/esm/_/keyBy.js +43 -0
- package/esm/_/keys.d.ts +11 -0
- package/esm/_/keys.d.ts.map +1 -0
- package/esm/_/keys.js +60 -0
- package/esm/_/keysIn.d.ts +10 -0
- package/esm/_/keysIn.d.ts.map +1 -0
- package/esm/_/keysIn.js +54 -0
- package/esm/_/mapValues.d.ts +63 -0
- package/esm/_/mapValues.d.ts.map +1 -0
- package/esm/_/mapValues.js +47 -0
- package/esm/_/max.d.ts +16 -0
- package/esm/_/max.d.ts.map +1 -0
- package/esm/_/max.js +37 -0
- package/esm/_/memoize.d.ts +89 -0
- package/esm/_/memoize.d.ts.map +1 -0
- package/esm/_/memoize.js +36 -0
- package/esm/_/merge.d.ts +32 -0
- package/esm/_/merge.d.ts.map +1 -0
- package/esm/_/merge.js +45 -0
- package/esm/_/mergeWith.d.ts +34 -0
- package/esm/_/mergeWith.d.ts.map +1 -0
- package/esm/_/mergeWith.js +50 -0
- package/esm/_/min.d.ts +16 -0
- package/esm/_/min.d.ts.map +1 -0
- package/esm/_/min.js +37 -0
- package/esm/_/negate.d.ts +41 -0
- package/esm/_/negate.d.ts.map +1 -0
- package/esm/_/negate.js +48 -0
- package/esm/_/omit.d.ts +27 -0
- package/esm/_/omit.d.ts.map +1 -0
- package/esm/_/omit.js +76 -0
- package/esm/_/omitBy.d.ts +21 -0
- package/esm/_/omitBy.d.ts.map +1 -0
- package/esm/_/omitBy.js +37 -0
- package/esm/_/partial.d.ts +87 -0
- package/esm/_/partial.d.ts.map +1 -0
- package/esm/_/partial.js +30 -0
- package/esm/_/partition.d.ts +23 -0
- package/esm/_/partition.d.ts.map +1 -0
- package/esm/_/partition.js +42 -0
- package/esm/_/pick.d.ts +18 -0
- package/esm/_/pick.d.ts.map +1 -0
- package/esm/_/pick.js +48 -0
- package/esm/_/pickBy.d.ts +21 -0
- package/esm/_/pickBy.d.ts.map +1 -0
- package/esm/_/pickBy.js +36 -0
- package/esm/_/range.d.ts +24 -0
- package/esm/_/range.d.ts.map +1 -0
- package/esm/_/range.js +56 -0
- package/esm/_/reduce.d.ts +37 -0
- package/esm/_/reduce.d.ts.map +1 -0
- package/esm/_/reduce.js +48 -0
- package/esm/_/set.d.ts +25 -0
- package/esm/_/set.d.ts.map +1 -0
- package/esm/_/set.js +35 -0
- package/esm/_/sortBy.d.ts +17 -0
- package/esm/_/sortBy.d.ts.map +1 -0
- package/esm/_/sortBy.js +46 -0
- package/esm/_/sumBy.d.ts +14 -0
- package/esm/_/sumBy.d.ts.map +1 -0
- package/esm/_/sumBy.js +47 -0
- package/esm/_/tail.d.ts +15 -0
- package/esm/_/tail.d.ts.map +1 -0
- package/esm/_/tail.js +36 -0
- package/esm/_/throttle.d.ts +76 -0
- package/esm/_/throttle.d.ts.map +1 -0
- package/esm/_/throttle.js +45 -0
- package/esm/_/times.d.ts +17 -0
- package/esm/_/times.d.ts.map +1 -0
- package/esm/_/times.js +57 -0
- package/esm/_/toFinite.d.ts +10 -0
- package/esm/_/toFinite.d.ts.map +1 -0
- package/esm/_/toFinite.js +50 -0
- package/esm/_/toInteger.d.ts +11 -0
- package/esm/_/toInteger.d.ts.map +1 -0
- package/esm/_/toInteger.js +46 -0
- package/esm/_/toNumber.d.ts +11 -0
- package/esm/_/toNumber.d.ts.map +1 -0
- package/esm/_/toNumber.js +69 -0
- package/esm/_/toString.d.ts +11 -0
- package/esm/_/toString.d.ts.map +1 -0
- package/esm/_/toString.js +57 -0
- package/esm/_/types.d.ts +181 -0
- package/esm/_/types.d.ts.map +1 -0
- package/esm/_/types.js +2 -0
- package/esm/_/unescape.d.ts +13 -0
- package/esm/_/unescape.d.ts.map +1 -0
- package/esm/_/unescape.js +56 -0
- package/esm/_/union.d.ts +11 -0
- package/esm/_/union.d.ts.map +1 -0
- package/esm/_/union.js +44 -0
- package/esm/_/unionBy.d.ts +34 -0
- package/esm/_/unionBy.d.ts.map +1 -0
- package/esm/_/unionBy.js +42 -0
- package/esm/_/uniq.d.ts +12 -0
- package/esm/_/uniq.d.ts.map +1 -0
- package/esm/_/uniq.js +47 -0
- package/esm/_/uniqBy.d.ts +13 -0
- package/esm/_/uniqBy.d.ts.map +1 -0
- package/esm/_/uniqBy.js +49 -0
- package/esm/_/uniqWith.d.ts +14 -0
- package/esm/_/uniqWith.d.ts.map +1 -0
- package/esm/_/uniqWith.js +59 -0
- package/esm/_/update.d.ts +17 -0
- package/esm/_/update.d.ts.map +1 -0
- package/esm/_/update.js +55 -0
- package/esm/_/updateWith.d.ts +23 -0
- package/esm/_/updateWith.d.ts.map +1 -0
- package/esm/_/updateWith.js +41 -0
- package/esm/_/upperFirst.d.ts +10 -0
- package/esm/_/upperFirst.d.ts.map +1 -0
- package/esm/_/upperFirst.js +46 -0
- package/esm/_/without.d.ts +15 -0
- package/esm/_/without.d.ts.map +1 -0
- package/esm/_/without.js +47 -0
- package/esm/_/words.d.ts +9 -0
- package/esm/_/words.d.ts.map +1 -0
- package/esm/_/words.js +50 -0
- package/esm/_/zip.d.ts +28 -0
- package/esm/_/zip.d.ts.map +1 -0
- package/esm/_/zip.js +38 -0
- package/esm/index.d.ts +69 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +69 -0
- package/esm/util.d.ts +1870 -67
- package/package.json +5 -4
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Portions of this file are derived from Lodash.
|
|
3
|
+
* https://github.com/lodash/lodash
|
|
4
|
+
*
|
|
5
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
6
|
+
*
|
|
7
|
+
* Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
8
|
+
* DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
9
|
+
*
|
|
10
|
+
* Modifications Copyright (c) 2026 GoodData Corporation
|
|
11
|
+
*
|
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
13
|
+
* a copy of this software and associated documentation files (the
|
|
14
|
+
* "Software"), to deal in the Software without restriction, including
|
|
15
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
16
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
17
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
18
|
+
* the following conditions:
|
|
19
|
+
*
|
|
20
|
+
* The above copyright notice and this permission notice shall be
|
|
21
|
+
* included in all copies or substantial portions of the Software.
|
|
22
|
+
*
|
|
23
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
24
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
25
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
26
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
27
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
28
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
29
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Creates a function that returns `value`, by reference, on every call, ignoring its arguments and `this`.
|
|
33
|
+
*
|
|
34
|
+
* @param value - The value to return from the new function.
|
|
35
|
+
* @returns Returns the new constant function.
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export declare function _constant<T>(value: T): () => T;
|
|
39
|
+
//# sourceMappingURL=constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/_/constant.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,CAI9C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
/*!
|
|
3
|
+
* Portions of this file are derived from Lodash.
|
|
4
|
+
* https://github.com/lodash/lodash
|
|
5
|
+
*
|
|
6
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
7
|
+
*
|
|
8
|
+
* Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
9
|
+
* DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
10
|
+
*
|
|
11
|
+
* Modifications Copyright (c) 2026 GoodData Corporation
|
|
12
|
+
*
|
|
13
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
14
|
+
* a copy of this software and associated documentation files (the
|
|
15
|
+
* "Software"), to deal in the Software without restriction, including
|
|
16
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
17
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
18
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
19
|
+
* the following conditions:
|
|
20
|
+
*
|
|
21
|
+
* The above copyright notice and this permission notice shall be
|
|
22
|
+
* included in all copies or substantial portions of the Software.
|
|
23
|
+
*
|
|
24
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
25
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
26
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
27
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
28
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
29
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
30
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Creates a function that returns `value`, by reference, on every call, ignoring its arguments and `this`.
|
|
34
|
+
*
|
|
35
|
+
* @param value - The value to return from the new function.
|
|
36
|
+
* @returns Returns the new constant function.
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export function _constant(value) {
|
|
40
|
+
return function () {
|
|
41
|
+
return value;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for `_debounce`.
|
|
3
|
+
*
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export type _DebounceSettings = {
|
|
7
|
+
/** Invoke on the leading edge of the timeout. */
|
|
8
|
+
leading?: boolean | undefined;
|
|
9
|
+
/** The maximum time the function is allowed to be delayed before it is invoked. */
|
|
10
|
+
maxWait?: number | undefined;
|
|
11
|
+
/** Invoke on the trailing edge of the timeout. Defaults to `true`. */
|
|
12
|
+
trailing?: boolean | undefined;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* {@link _DebounceSettings} with `leading` switched on, which guarantees a result on every call.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export type _DebounceSettingsLeading = _DebounceSettings & {
|
|
20
|
+
leading: true;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* A debounced function: calling it applies the debounce rules and returns the result of the last
|
|
24
|
+
* invocation, or `undefined` before the first one.
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export type _DebouncedFunc<T extends (...args: any[]) => any> = {
|
|
29
|
+
(...args: Parameters<T>): ReturnType<T> | undefined;
|
|
30
|
+
/** Throws away any pending invocation. */
|
|
31
|
+
cancel(): void;
|
|
32
|
+
/** Invokes a pending invocation immediately and returns its result, else returns the last result. */
|
|
33
|
+
flush(): ReturnType<T> | undefined;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* A debounced function created with `leading: true`, so a call always has a result.
|
|
37
|
+
*
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
export type _DebouncedFuncLeading<T extends (...args: any[]) => any> = {
|
|
41
|
+
(...args: Parameters<T>): ReturnType<T>;
|
|
42
|
+
flush(): ReturnType<T>;
|
|
43
|
+
} & _DebouncedFunc<T>;
|
|
44
|
+
/**
|
|
45
|
+
* Creates a debounced function that delays invoking `func` until after `wait` milliseconds have elapsed
|
|
46
|
+
* since the last time the debounced function was invoked. The debounced function comes with a `cancel`
|
|
47
|
+
* method to cancel delayed `func` invocations and a `flush` method to immediately invoke them. Provide
|
|
48
|
+
* `options` to indicate whether `func` should be invoked on the leading and/or trailing edge of the
|
|
49
|
+
* `wait` timeout. The `func` is invoked with the last arguments provided to the debounced function.
|
|
50
|
+
* Subsequent calls to the debounced function return the result of the last `func` invocation.
|
|
51
|
+
*
|
|
52
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is invoked on the trailing edge of
|
|
53
|
+
* the timeout only if the debounced function is invoked more than once during the `wait` timeout.
|
|
54
|
+
*
|
|
55
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred until the next tick, similar
|
|
56
|
+
* to `setTimeout` with a timeout of `0`.
|
|
57
|
+
*
|
|
58
|
+
* @param func - The function to debounce.
|
|
59
|
+
* @param wait - The number of milliseconds to delay.
|
|
60
|
+
* @param options - The options object.
|
|
61
|
+
* @returns Returns the new debounced function.
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
export declare function _debounce<T extends (...args: any) => any>(func: T, wait: number | undefined, options: _DebounceSettingsLeading): _DebouncedFuncLeading<T>;
|
|
65
|
+
/**
|
|
66
|
+
* @see _debounce
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
export declare function _debounce<T extends (...args: any) => any>(func: T, wait?: number, options?: _DebounceSettings): _DebouncedFunc<T>;
|
|
70
|
+
//# sourceMappingURL=debounce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../src/_/debounce.ts"],"names":[],"mappings":"AAmCA;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,iDAAiD;IACjD,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,mFAAmF;IACnF,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,sEAAsE;IACtE,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,GAAG;IACvD,OAAO,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF;;;;;GAKG;AAEH,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,IAAI;IAC5D,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IACpD,0CAA0C;IAC1C,MAAM,IAAI,IAAI,CAAC;IACf,qGAAqG;IACrG,KAAK,IAAI,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF;;;;GAIG;AAGH,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,IAAI;IACnE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;IACxC,KAAK,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;CAC1B,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;AAEtB;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,wBAAgB,SAAS,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EACrD,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,wBAAwB,GAClC,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAC5B;;;GAGG;AAEH,wBAAgB,SAAS,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EACrD,IAAI,EAAE,CAAC,EACP,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,iBAAiB,GAC5B,cAAc,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
/*!
|
|
3
|
+
* Portions of this file are derived from Lodash.
|
|
4
|
+
* https://github.com/lodash/lodash
|
|
5
|
+
*
|
|
6
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
7
|
+
*
|
|
8
|
+
* Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
9
|
+
* DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
10
|
+
*
|
|
11
|
+
* Modifications Copyright (c) 2026 GoodData Corporation
|
|
12
|
+
*
|
|
13
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
14
|
+
* a copy of this software and associated documentation files (the
|
|
15
|
+
* "Software"), to deal in the Software without restriction, including
|
|
16
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
17
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
18
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
19
|
+
* the following conditions:
|
|
20
|
+
*
|
|
21
|
+
* The above copyright notice and this permission notice shall be
|
|
22
|
+
* included in all copies or substantial portions of the Software.
|
|
23
|
+
*
|
|
24
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
25
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
26
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
27
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
28
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
29
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
30
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
31
|
+
*/
|
|
32
|
+
import { _isObject } from "./isObject.js";
|
|
33
|
+
// oxlint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
|
+
export function _debounce(func, wait, options) {
|
|
35
|
+
if (typeof func !== "function") {
|
|
36
|
+
throw new TypeError("Expected a function");
|
|
37
|
+
}
|
|
38
|
+
const delay = Number(wait) || 0;
|
|
39
|
+
const settings = _isObject(options) ? options : {};
|
|
40
|
+
const leading = !!settings.leading;
|
|
41
|
+
const maxing = "maxWait" in settings;
|
|
42
|
+
const maxWait = maxing ? Math.max(Number(settings.maxWait) || 0, delay) : 0;
|
|
43
|
+
const trailing = "trailing" in settings ? !!settings.trailing : true;
|
|
44
|
+
let lastArgs;
|
|
45
|
+
let lastThis;
|
|
46
|
+
let lastCallTime;
|
|
47
|
+
let lastInvokeTime = 0;
|
|
48
|
+
let timerId;
|
|
49
|
+
let result;
|
|
50
|
+
function invokeFunc(time) {
|
|
51
|
+
const args = lastArgs;
|
|
52
|
+
const thisArg = lastThis;
|
|
53
|
+
lastArgs = lastThis = undefined;
|
|
54
|
+
lastInvokeTime = time;
|
|
55
|
+
const value = func.apply(thisArg, args);
|
|
56
|
+
result = value;
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
function leadingEdge(time) {
|
|
60
|
+
// reset any `maxWait` timer and start the timer for the trailing edge
|
|
61
|
+
lastInvokeTime = time;
|
|
62
|
+
timerId = setTimeout(timerExpired, delay);
|
|
63
|
+
return leading ? invokeFunc(time) : result;
|
|
64
|
+
}
|
|
65
|
+
function remainingWait(time) {
|
|
66
|
+
const timeSinceLastCall = time - lastCallTime;
|
|
67
|
+
const timeSinceLastInvoke = time - lastInvokeTime;
|
|
68
|
+
const timeWaiting = delay - timeSinceLastCall;
|
|
69
|
+
return maxing ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
70
|
+
}
|
|
71
|
+
function shouldInvoke(time) {
|
|
72
|
+
if (lastCallTime === undefined) {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
const timeSinceLastCall = time - lastCallTime;
|
|
76
|
+
const timeSinceLastInvoke = time - lastInvokeTime;
|
|
77
|
+
// activity has stopped and this is the trailing edge, the system clock went backwards, or the
|
|
78
|
+
// `maxWait` limit was hit
|
|
79
|
+
return (timeSinceLastCall >= delay || timeSinceLastCall < 0 || (maxing && timeSinceLastInvoke >= maxWait));
|
|
80
|
+
}
|
|
81
|
+
function timerExpired() {
|
|
82
|
+
const time = Date.now();
|
|
83
|
+
if (shouldInvoke(time)) {
|
|
84
|
+
trailingEdge(time);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
// restart the timer for what is left of the wait
|
|
88
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
89
|
+
}
|
|
90
|
+
function trailingEdge(time) {
|
|
91
|
+
timerId = undefined;
|
|
92
|
+
// only invoke if there are `lastArgs`, which means `func` has been debounced at least once
|
|
93
|
+
if (trailing && lastArgs) {
|
|
94
|
+
return invokeFunc(time);
|
|
95
|
+
}
|
|
96
|
+
lastArgs = lastThis = undefined;
|
|
97
|
+
return result;
|
|
98
|
+
}
|
|
99
|
+
function cancel() {
|
|
100
|
+
if (timerId !== undefined) {
|
|
101
|
+
clearTimeout(timerId);
|
|
102
|
+
}
|
|
103
|
+
lastInvokeTime = 0;
|
|
104
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
105
|
+
}
|
|
106
|
+
function flush() {
|
|
107
|
+
return timerId === undefined ? result : trailingEdge(Date.now());
|
|
108
|
+
}
|
|
109
|
+
function debounced(...args) {
|
|
110
|
+
const time = Date.now();
|
|
111
|
+
const isInvoking = shouldInvoke(time);
|
|
112
|
+
lastArgs = args;
|
|
113
|
+
// the `this` of the latest call has to be kept for the deferred invocation
|
|
114
|
+
// oxlint-disable-next-line @typescript-eslint/no-this-alias
|
|
115
|
+
lastThis = this;
|
|
116
|
+
lastCallTime = time;
|
|
117
|
+
if (isInvoking) {
|
|
118
|
+
if (timerId === undefined) {
|
|
119
|
+
return leadingEdge(lastCallTime);
|
|
120
|
+
}
|
|
121
|
+
if (maxing) {
|
|
122
|
+
// handle invocations in a tight loop
|
|
123
|
+
clearTimeout(timerId);
|
|
124
|
+
timerId = setTimeout(timerExpired, delay);
|
|
125
|
+
return invokeFunc(lastCallTime);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if (timerId === undefined) {
|
|
129
|
+
timerId = setTimeout(timerExpired, delay);
|
|
130
|
+
}
|
|
131
|
+
return result;
|
|
132
|
+
}
|
|
133
|
+
debounced.cancel = cancel;
|
|
134
|
+
debounced.flush = flush;
|
|
135
|
+
return debounced;
|
|
136
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deburrs `string` by converting Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and
|
|
3
|
+
* removing combining diacritical marks.
|
|
4
|
+
*
|
|
5
|
+
* @param string - The string to deburr.
|
|
6
|
+
* @returns Returns the deburred string.
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare function _deburr(string?: string): string;
|
|
10
|
+
//# sourceMappingURL=deburr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deburr.d.ts","sourceRoot":"","sources":["../../src/_/deburr.ts"],"names":[],"mappings":"AA6OA;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAI/C"}
|
package/esm/_/deburr.js
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
/*!
|
|
3
|
+
* Portions of this file are derived from Lodash.
|
|
4
|
+
* https://github.com/lodash/lodash
|
|
5
|
+
*
|
|
6
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
7
|
+
*
|
|
8
|
+
* Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
9
|
+
* DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
10
|
+
*
|
|
11
|
+
* Modifications Copyright (c) 2026 GoodData Corporation
|
|
12
|
+
*
|
|
13
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
14
|
+
* a copy of this software and associated documentation files (the
|
|
15
|
+
* "Software"), to deal in the Software without restriction, including
|
|
16
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
17
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
18
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
19
|
+
* the following conditions:
|
|
20
|
+
*
|
|
21
|
+
* The above copyright notice and this permission notice shall be
|
|
22
|
+
* included in all copies or substantial portions of the Software.
|
|
23
|
+
*
|
|
24
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
25
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
26
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
27
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
28
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
29
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
30
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
31
|
+
*/
|
|
32
|
+
import { _toString } from "./toString.js";
|
|
33
|
+
/** Used to match Latin Unicode letters (excluding mathematical operators). */
|
|
34
|
+
const RE_LATIN = /[\xc0-\xd6\xd8-\xf6\xf8-\xffĀ-ſ]/g;
|
|
35
|
+
/** Used to match combining diacritical marks and combining diacritical marks for symbols. */
|
|
36
|
+
const RE_COMBO_MARK = /[̀-ͯ︠-︯⃐-]/g;
|
|
37
|
+
/** Used to map Latin Unicode letters to basic Latin letters. */
|
|
38
|
+
const DEBURRED_LETTERS = {
|
|
39
|
+
// Latin-1 Supplement block.
|
|
40
|
+
"\xc0": "A",
|
|
41
|
+
"\xc1": "A",
|
|
42
|
+
"\xc2": "A",
|
|
43
|
+
"\xc3": "A",
|
|
44
|
+
"\xc4": "A",
|
|
45
|
+
"\xc5": "A",
|
|
46
|
+
"\xe0": "a",
|
|
47
|
+
"\xe1": "a",
|
|
48
|
+
"\xe2": "a",
|
|
49
|
+
"\xe3": "a",
|
|
50
|
+
"\xe4": "a",
|
|
51
|
+
"\xe5": "a",
|
|
52
|
+
"\xc7": "C",
|
|
53
|
+
"\xe7": "c",
|
|
54
|
+
"\xd0": "D",
|
|
55
|
+
"\xf0": "d",
|
|
56
|
+
"\xc8": "E",
|
|
57
|
+
"\xc9": "E",
|
|
58
|
+
"\xca": "E",
|
|
59
|
+
"\xcb": "E",
|
|
60
|
+
"\xe8": "e",
|
|
61
|
+
"\xe9": "e",
|
|
62
|
+
"\xea": "e",
|
|
63
|
+
"\xeb": "e",
|
|
64
|
+
"\xcc": "I",
|
|
65
|
+
"\xcd": "I",
|
|
66
|
+
"\xce": "I",
|
|
67
|
+
"\xcf": "I",
|
|
68
|
+
"\xec": "i",
|
|
69
|
+
"\xed": "i",
|
|
70
|
+
"\xee": "i",
|
|
71
|
+
"\xef": "i",
|
|
72
|
+
"\xd1": "N",
|
|
73
|
+
"\xf1": "n",
|
|
74
|
+
"\xd2": "O",
|
|
75
|
+
"\xd3": "O",
|
|
76
|
+
"\xd4": "O",
|
|
77
|
+
"\xd5": "O",
|
|
78
|
+
"\xd6": "O",
|
|
79
|
+
"\xd8": "O",
|
|
80
|
+
"\xf2": "o",
|
|
81
|
+
"\xf3": "o",
|
|
82
|
+
"\xf4": "o",
|
|
83
|
+
"\xf5": "o",
|
|
84
|
+
"\xf6": "o",
|
|
85
|
+
"\xf8": "o",
|
|
86
|
+
"\xd9": "U",
|
|
87
|
+
"\xda": "U",
|
|
88
|
+
"\xdb": "U",
|
|
89
|
+
"\xdc": "U",
|
|
90
|
+
"\xf9": "u",
|
|
91
|
+
"\xfa": "u",
|
|
92
|
+
"\xfb": "u",
|
|
93
|
+
"\xfc": "u",
|
|
94
|
+
"\xdd": "Y",
|
|
95
|
+
"\xfd": "y",
|
|
96
|
+
"\xff": "y",
|
|
97
|
+
"\xc6": "Ae",
|
|
98
|
+
"\xe6": "ae",
|
|
99
|
+
"\xde": "Th",
|
|
100
|
+
"\xfe": "th",
|
|
101
|
+
"\xdf": "ss",
|
|
102
|
+
// Latin Extended-A block.
|
|
103
|
+
Ā: "A",
|
|
104
|
+
Ă: "A",
|
|
105
|
+
Ą: "A",
|
|
106
|
+
ā: "a",
|
|
107
|
+
ă: "a",
|
|
108
|
+
ą: "a",
|
|
109
|
+
Ć: "C",
|
|
110
|
+
Ĉ: "C",
|
|
111
|
+
Ċ: "C",
|
|
112
|
+
Č: "C",
|
|
113
|
+
ć: "c",
|
|
114
|
+
ĉ: "c",
|
|
115
|
+
ċ: "c",
|
|
116
|
+
č: "c",
|
|
117
|
+
Ď: "D",
|
|
118
|
+
Đ: "D",
|
|
119
|
+
ď: "d",
|
|
120
|
+
đ: "d",
|
|
121
|
+
Ē: "E",
|
|
122
|
+
Ĕ: "E",
|
|
123
|
+
Ė: "E",
|
|
124
|
+
Ę: "E",
|
|
125
|
+
Ě: "E",
|
|
126
|
+
ē: "e",
|
|
127
|
+
ĕ: "e",
|
|
128
|
+
ė: "e",
|
|
129
|
+
ę: "e",
|
|
130
|
+
ě: "e",
|
|
131
|
+
Ĝ: "G",
|
|
132
|
+
Ğ: "G",
|
|
133
|
+
Ġ: "G",
|
|
134
|
+
Ģ: "G",
|
|
135
|
+
ĝ: "g",
|
|
136
|
+
ğ: "g",
|
|
137
|
+
ġ: "g",
|
|
138
|
+
ģ: "g",
|
|
139
|
+
Ĥ: "H",
|
|
140
|
+
Ħ: "H",
|
|
141
|
+
ĥ: "h",
|
|
142
|
+
ħ: "h",
|
|
143
|
+
Ĩ: "I",
|
|
144
|
+
Ī: "I",
|
|
145
|
+
Ĭ: "I",
|
|
146
|
+
Į: "I",
|
|
147
|
+
İ: "I",
|
|
148
|
+
ĩ: "i",
|
|
149
|
+
ī: "i",
|
|
150
|
+
ĭ: "i",
|
|
151
|
+
į: "i",
|
|
152
|
+
ı: "i",
|
|
153
|
+
Ĵ: "J",
|
|
154
|
+
ĵ: "j",
|
|
155
|
+
Ķ: "K",
|
|
156
|
+
ķ: "k",
|
|
157
|
+
ĸ: "k",
|
|
158
|
+
Ĺ: "L",
|
|
159
|
+
Ļ: "L",
|
|
160
|
+
Ľ: "L",
|
|
161
|
+
Ŀ: "L",
|
|
162
|
+
Ł: "L",
|
|
163
|
+
ĺ: "l",
|
|
164
|
+
ļ: "l",
|
|
165
|
+
ľ: "l",
|
|
166
|
+
ŀ: "l",
|
|
167
|
+
ł: "l",
|
|
168
|
+
Ń: "N",
|
|
169
|
+
Ņ: "N",
|
|
170
|
+
Ň: "N",
|
|
171
|
+
Ŋ: "N",
|
|
172
|
+
ń: "n",
|
|
173
|
+
ņ: "n",
|
|
174
|
+
ň: "n",
|
|
175
|
+
ŋ: "n",
|
|
176
|
+
Ō: "O",
|
|
177
|
+
Ŏ: "O",
|
|
178
|
+
Ő: "O",
|
|
179
|
+
ō: "o",
|
|
180
|
+
ŏ: "o",
|
|
181
|
+
ő: "o",
|
|
182
|
+
Ŕ: "R",
|
|
183
|
+
Ŗ: "R",
|
|
184
|
+
Ř: "R",
|
|
185
|
+
ŕ: "r",
|
|
186
|
+
ŗ: "r",
|
|
187
|
+
ř: "r",
|
|
188
|
+
Ś: "S",
|
|
189
|
+
Ŝ: "S",
|
|
190
|
+
Ş: "S",
|
|
191
|
+
Š: "S",
|
|
192
|
+
ś: "s",
|
|
193
|
+
ŝ: "s",
|
|
194
|
+
ş: "s",
|
|
195
|
+
š: "s",
|
|
196
|
+
Ţ: "T",
|
|
197
|
+
Ť: "T",
|
|
198
|
+
Ŧ: "T",
|
|
199
|
+
ţ: "t",
|
|
200
|
+
ť: "t",
|
|
201
|
+
ŧ: "t",
|
|
202
|
+
Ũ: "U",
|
|
203
|
+
Ū: "U",
|
|
204
|
+
Ŭ: "U",
|
|
205
|
+
Ů: "U",
|
|
206
|
+
Ű: "U",
|
|
207
|
+
Ų: "U",
|
|
208
|
+
ũ: "u",
|
|
209
|
+
ū: "u",
|
|
210
|
+
ŭ: "u",
|
|
211
|
+
ů: "u",
|
|
212
|
+
ű: "u",
|
|
213
|
+
ų: "u",
|
|
214
|
+
Ŵ: "W",
|
|
215
|
+
ŵ: "w",
|
|
216
|
+
Ŷ: "Y",
|
|
217
|
+
ŷ: "y",
|
|
218
|
+
Ÿ: "Y",
|
|
219
|
+
Ź: "Z",
|
|
220
|
+
Ż: "Z",
|
|
221
|
+
Ž: "Z",
|
|
222
|
+
ź: "z",
|
|
223
|
+
ż: "z",
|
|
224
|
+
ž: "z",
|
|
225
|
+
IJ: "IJ",
|
|
226
|
+
ij: "ij",
|
|
227
|
+
Œ: "Oe",
|
|
228
|
+
œ: "oe",
|
|
229
|
+
ʼn: "'n",
|
|
230
|
+
ſ: "s",
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Deburrs `string` by converting Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and
|
|
234
|
+
* removing combining diacritical marks.
|
|
235
|
+
*
|
|
236
|
+
* @param string - The string to deburr.
|
|
237
|
+
* @returns Returns the deburred string.
|
|
238
|
+
* @internal
|
|
239
|
+
*/
|
|
240
|
+
export function _deburr(string) {
|
|
241
|
+
const text = _toString(string);
|
|
242
|
+
return text.replace(RE_LATIN, (letter) => DEBURRED_LETTERS[letter] ?? letter).replace(RE_COMBO_MARK, "");
|
|
243
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assigns own and inherited enumerable string keyed properties of source objects to the destination object
|
|
3
|
+
* for all destination properties that resolve to `undefined`. Source objects are applied from left to
|
|
4
|
+
* right, so once a property is set, additional values of the same property are ignored. A value inherited
|
|
5
|
+
* from `Object.prototype`, such as `toString`, counts as missing too. Sources are copied by plain
|
|
6
|
+
* assignment, a nullish destination becomes a new object and a primitive one is boxed.
|
|
7
|
+
*
|
|
8
|
+
* **Note:** This method mutates `object`.
|
|
9
|
+
*
|
|
10
|
+
* @param object - The destination object.
|
|
11
|
+
* @param sources - The source objects.
|
|
12
|
+
* @returns Returns `object`.
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare function _defaults<TObject, TSource>(object: TObject, source: TSource): NonNullable<TSource & TObject>;
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export declare function _defaults<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): NonNullable<TSource2 & TSource1 & TObject>;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare function _defaults<TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3): NonNullable<TSource3 & TSource2 & TSource1 & TObject>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare function _defaults<TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): NonNullable<TSource4 & TSource3 & TSource2 & TSource1 & TObject>;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export declare function _defaults<TObject>(object: TObject): NonNullable<TObject>;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
export declare function _defaults(object: any, ...sources: any[]): any;
|
|
36
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/_/defaults.ts"],"names":[],"mappings":"AAyCA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC;AAC9G;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EACjD,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,QAAQ,GAClB,WAAW,CAAC,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC;AAC9C;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAC3D,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,QAAQ,GAClB,WAAW,CAAC,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC;AACzD;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EACrE,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,QAAQ,GAClB,WAAW,CAAC,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC;AACpE;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAC1E;;GAEG;AAEH,wBAAgB,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
/*!
|
|
3
|
+
* Portions of this file are derived from Lodash.
|
|
4
|
+
* https://github.com/lodash/lodash
|
|
5
|
+
*
|
|
6
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
7
|
+
*
|
|
8
|
+
* Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
9
|
+
* DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
10
|
+
*
|
|
11
|
+
* Modifications Copyright (c) 2026 GoodData Corporation
|
|
12
|
+
*
|
|
13
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
14
|
+
* a copy of this software and associated documentation files (the
|
|
15
|
+
* "Software"), to deal in the Software without restriction, including
|
|
16
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
17
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
18
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
19
|
+
* the following conditions:
|
|
20
|
+
*
|
|
21
|
+
* The above copyright notice and this permission notice shall be
|
|
22
|
+
* included in all copies or substantial portions of the Software.
|
|
23
|
+
*
|
|
24
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
25
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
26
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
27
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
28
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
29
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
30
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
31
|
+
*/
|
|
32
|
+
import { _isIterateeCall } from "./_isIterateeCall.js";
|
|
33
|
+
import { _eq } from "./eq.js";
|
|
34
|
+
import { _keysIn } from "./keysIn.js";
|
|
35
|
+
const objectProto = Object.prototype;
|
|
36
|
+
export function _defaults(object, ...sources) {
|
|
37
|
+
const target = Object(object);
|
|
38
|
+
// when called as an iteratee, e.g. by `reduce`, only the value is a source, not the index and collection
|
|
39
|
+
const length = sources.length > 2 && _isIterateeCall(sources[0], sources[1], sources[2]) ? 1 : sources.length;
|
|
40
|
+
for (let index = 0; index < length; index++) {
|
|
41
|
+
const source = sources[index];
|
|
42
|
+
const from = Object(source);
|
|
43
|
+
for (const key of _keysIn(source)) {
|
|
44
|
+
const value = target[key];
|
|
45
|
+
if (value === undefined || (_eq(value, objectProto[key]) && !Object.hasOwn(target, key))) {
|
|
46
|
+
target[key] = from[key];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return target;
|
|
51
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { _List } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Creates an array of `array` values not included in the other given arrays using SameValueZero for equality
|
|
4
|
+
* comparisons. The order and references of result values are determined by the first array. Only array-like
|
|
5
|
+
* objects are inspected: any other first argument yields an empty array and any other exclusion argument is
|
|
6
|
+
* skipped.
|
|
7
|
+
*
|
|
8
|
+
* @param array - The array to inspect.
|
|
9
|
+
* @param values - The arrays of values to exclude.
|
|
10
|
+
* @returns Returns the new array of filtered values.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare function _difference<T>(array: _List<T> | null | undefined, ...values: _List<T>[]): T[];
|
|
14
|
+
//# sourceMappingURL=difference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"difference.d.ts","sourceRoot":"","sources":["../../src/_/difference.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAE7F"}
|