@cccsaurora/clue-ui 1.0.1-dev.55 → 1.0.1

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.
Files changed (180) hide show
  1. package/ActionForm-WIj7BfD5.js +340 -0
  2. package/AnnotationPreview-DWRDhxUB.js +140 -0
  3. package/ClueEnrichContext-CbJVBm4w.js +397 -0
  4. package/FlexOne-BXWFOd1T.js +6 -0
  5. package/_Map-DXNg_Z-q.js +54 -0
  6. package/_MapCache-Cu25RRDU.js +129 -0
  7. package/_Uint8Array-DlJCtTvG.js +102 -0
  8. package/_baseAssignValue-CUmzp727.js +20 -0
  9. package/_baseClone-BlMmRXeX.js +208 -0
  10. package/_baseExtremum-P_0akmCi.js +27 -0
  11. package/_baseFlatten-CN7vDNEQ.js +72 -0
  12. package/_baseGet-Dgf6_xCm.js +80 -0
  13. package/_baseIsEqual-Cpjtfb3Q.js +173 -0
  14. package/_baseIteratee-CP1bocOX.js +95 -0
  15. package/_baseSlice-M5RKzt1A.js +10 -0
  16. package/_baseSum-wEbgNeUs.js +10 -0
  17. package/_baseUniq-tMFmk80M.js +61 -0
  18. package/_commonjsHelpers-C6fGbg64.js +6 -0
  19. package/_createAggregator-B4Cav8ZM.js +53 -0
  20. package/_getPrototype-CHAFQYL_.js +5 -0
  21. package/_getTag-BV_UoLYG.js +90 -0
  22. package/cloneDeep-BPVpFBzJ.js +8 -0
  23. package/components/AnnotationBody.js +34 -49
  24. package/components/AnnotationDetailPopover.js +30 -36
  25. package/components/AnnotationDetails.js +94 -109
  26. package/components/AnnotationEntry.js +52 -55
  27. package/components/AnnotationPreview.js +5 -5
  28. package/components/ClassificationChip.js +23 -44
  29. package/components/CountBadge.js +26 -31
  30. package/components/EnrichedCard.js +92 -104
  31. package/components/EnrichedChip.js +109 -134
  32. package/components/EnrichedTypography.js +110 -136
  33. package/components/ErrorBoundary.js +24 -28
  34. package/components/RetryFailedEnrichments.js +9 -10
  35. package/components/SourcePicker.js +49 -57
  36. package/components/actions/ActionForm.js +4 -4
  37. package/components/actions/ExecutePopover.js +50 -64
  38. package/components/actions/ResultModal.js +34 -37
  39. package/components/actions/form/schemaAdapter.js +20 -39
  40. package/components/display/graph/ExpandMoreButton.js +10 -10
  41. package/components/display/graph/elements/NodeCard.js +76 -92
  42. package/components/display/graph/elements/NodeTag.js +13 -15
  43. package/components/display/graph/index.js +200 -258
  44. package/components/display/graph/visualizations/Leaf.js +69 -88
  45. package/components/display/graph/visualizations/cloud/index.js +81 -98
  46. package/components/display/graph/visualizations/icons/BaseIcon.js +21 -26
  47. package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
  48. package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
  49. package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
  50. package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
  51. package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
  52. package/components/display/graph/visualizations/icons/index.js +13 -14
  53. package/components/display/graph/visualizations/panels/NodePanel.js +8 -10
  54. package/components/display/graph/visualizations/tree/BundleLine.js +81 -108
  55. package/components/display/graph/visualizations/tree/Triangle.js +13 -13
  56. package/components/display/graph/visualizations/tree/index.js +305 -407
  57. package/components/display/icons/Iconified.js +12 -27
  58. package/components/display/json/index.js +4 -4
  59. package/components/display/markdown/DynamicTabs.js +17 -22
  60. package/components/display/markdown/index.js +5674 -8531
  61. package/components/display/markdown/markdownPlugins/tabs.js +1 -1
  62. package/components/enrichment/EnrichPopover.js +47 -55
  63. package/components/fetchers/Fetcher.js +95 -123
  64. package/components/fetchers/PreviewModal.js +17 -20
  65. package/components/fetchers/StatusChip.js +18 -22
  66. package/components/group/Entry.js +11 -13
  67. package/components/group/Group.js +10 -13
  68. package/components/group/GroupControl.js +65 -76
  69. package/components/stats/QueryStatus.js +28 -37
  70. package/countBy-DOutsa_w.js +8 -0
  71. package/data/event.js +4 -6
  72. package/database/index.js +2 -2
  73. package/debounce-DryYcbJ4.js +56 -0
  74. package/get-Bow1vKwx.js +8 -0
  75. package/groupBy-BheQYl6f.js +8 -0
  76. package/hooks/ClueActionContext.js +6 -6
  77. package/hooks/ClueComponentContext.js +23 -29
  78. package/hooks/ClueConfigProvider.js +12 -14
  79. package/hooks/ClueDatabaseContext.js +13 -19
  80. package/hooks/ClueEnrichContext.js +8 -8
  81. package/hooks/ClueFetcherContext.js +46 -74
  82. package/hooks/ClueGroupContext.js +14 -17
  83. package/hooks/CluePopupContext.js +5 -5
  84. package/hooks/ClueProvider.js +10 -12
  85. package/hooks/selectors.js +11 -22
  86. package/hooks/useAnnotations.js +32 -48
  87. package/hooks/useClue.js +4 -6
  88. package/hooks/useClueActions.js +3 -3
  89. package/hooks/useClueConfig.js +5 -5
  90. package/hooks/useClueTypeConfig.js +3 -3
  91. package/hooks/useComparator.js +435 -722
  92. package/hooks/useErrors.js +18 -22
  93. package/hooks/useMyHighlights.js +36 -66
  94. package/hooks/useMyLocalStorage.js +43 -63
  95. package/iconify-BBckr5AQ.js +1263 -0
  96. package/icons/Action.js +49 -66
  97. package/icons/Assessment.js +68 -84
  98. package/icons/Context.js +61 -75
  99. package/icons/Opinion.js +65 -77
  100. package/icons/iconMap.js +2 -2
  101. package/identity-ByMq8VxU.js +6 -0
  102. package/index-4YFAh_sa.js +358 -0
  103. package/index-E7g8cRyW.js +568 -0
  104. package/index-HuYhutsd.js +975 -0
  105. package/index-WvFmjbxF.js +12734 -0
  106. package/index-p5_wX7q1.js +11729 -0
  107. package/isEmpty-g47Qir2A.js +21 -0
  108. package/isNil-CjWwlQS3.js +6 -0
  109. package/isObject-B53jY8Qg.js +7 -0
  110. package/isObjectLike-BatpeCIi.js +29 -0
  111. package/isSymbol-C3_SC0Qp.js +8 -0
  112. package/isUndefined-DiNCDKoz.js +10 -0
  113. package/last-7CdUxN0r.js +7 -0
  114. package/main.js +68 -68
  115. package/package.json +1 -1
  116. package/sortBy-ITdmD17L.js +79 -0
  117. package/sumBy-DxJUU2E8.js +8 -0
  118. package/tabs-CgADNA57.js +195 -0
  119. package/text/Frequency.js +23 -42
  120. package/toFinite-BMy6GObD.js +14 -0
  121. package/toNumber-YVhnnJv4.js +31 -0
  122. package/useClueTypeConfig-BQ33EiyB.js +2273 -0
  123. package/utils/chain.js +64 -91
  124. package/utils/classificationParser.js +254 -504
  125. package/utils/constants.js +10 -35
  126. package/utils/graph.js +45 -72
  127. package/utils/hashUtil.js +7 -7
  128. package/utils/line.js +81 -131
  129. package/utils/loggerUtil.js +3 -5
  130. package/utils/sessionStorage.js +29 -41
  131. package/utils/utils.js +9 -9
  132. package/utils/window.js +10 -21
  133. package/utils-C_RX5uMP.js +2704 -0
  134. package/ActionForm-c5hLIfQ-.js +0 -436
  135. package/AnnotationPreview-BvNpZOP0.js +0 -188
  136. package/ClueEnrichContext-m-4vn9rz.js +0 -518
  137. package/FlexOne-BSYAhhtG.js +0 -9
  138. package/_Map-kgDsDYxq.js +0 -64
  139. package/_MapCache-DabaaWfq.js +0 -161
  140. package/_Uint8Array-BlVVH1tp.js +0 -129
  141. package/_baseAssignValue-CNbcU6Nb.js +0 -25
  142. package/_baseClone-D3a8Pa4T.js +0 -284
  143. package/_baseExtremum-B1o1zHjR.js +0 -33
  144. package/_baseFlatten-D4huXoEI.js +0 -92
  145. package/_baseGet-BSK_nnoz.js +0 -109
  146. package/_baseIsEqual-B5xLoweL.js +0 -238
  147. package/_baseIteratee-p6Nj07-n.js +0 -126
  148. package/_baseSlice-GAv_YFTT.js +0 -20
  149. package/_baseSum-D0WC1dN0.js +0 -13
  150. package/_baseUniq-CpupKWcL.js +0 -89
  151. package/_commonjsHelpers-CUmg6egw.js +0 -6
  152. package/_createAggregator-BpVy5xMi.js +0 -63
  153. package/_getPrototype-D1LAdQKO.js +0 -5
  154. package/_getTag-D3ToyefI.js +0 -126
  155. package/cloneDeep-CjP5k9zW.js +0 -8
  156. package/countBy-C69WslUA.js +0 -14
  157. package/debounce-bV0h5FC5.js +0 -92
  158. package/get-D3C3lEU3.js +0 -8
  159. package/groupBy-DC2oOuBN.js +0 -14
  160. package/iconify-CXMreGTg.js +0 -1782
  161. package/identity-CPGTqrE4.js +0 -6
  162. package/index-BDVjGvMI.js +0 -696
  163. package/index-BDrtH5ec.js +0 -465
  164. package/index-BbPn6-Mw.js +0 -15750
  165. package/index-C9lySIVX.js +0 -1172
  166. package/index-Dn2NHyXg.js +0 -17654
  167. package/isEmpty-BQkZubqU.js +0 -29
  168. package/isNil-CIubwp4T.js +0 -6
  169. package/isObject-FTY-5JQX.js +0 -7
  170. package/isObjectLike-OAgjjZye.js +0 -48
  171. package/isSymbol-Xd2FsJyp.js +0 -8
  172. package/isUndefined-CE8h73dH.js +0 -10
  173. package/last-CUCl67Im.js +0 -7
  174. package/sortBy-B-UKp4GT.js +0 -100
  175. package/sumBy-MYkDPHZL.js +0 -8
  176. package/tabs-xGuUGsJd.js +0 -254
  177. package/toFinite-Bc55msYj.js +0 -16
  178. package/toNumber-DPxy1FBy.js +0 -39
  179. package/useClueTypeConfig-D4zcy8Gr.js +0 -3184
  180. package/utils-CxIhC2xH.js +0 -4182
@@ -1,63 +0,0 @@
1
- import { k as keys } from "./_Uint8Array-BlVVH1tp.js";
2
- import { i as isArrayLike } from "./_getTag-D3ToyefI.js";
3
- import { b as baseIteratee } from "./_baseIteratee-p6Nj07-n.js";
4
- import { i as isArray } from "./_Map-kgDsDYxq.js";
5
- function arrayAggregator(array, setter, iteratee, accumulator) {
6
- var index = -1, length = array == null ? 0 : array.length;
7
- while (++index < length) {
8
- var value = array[index];
9
- setter(accumulator, value, iteratee(value), array);
10
- }
11
- return accumulator;
12
- }
13
- function createBaseFor(fromRight) {
14
- return function(object, iteratee, keysFunc) {
15
- var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
16
- while (length--) {
17
- var key = props[++index];
18
- if (iteratee(iterable[key], key, iterable) === false) {
19
- break;
20
- }
21
- }
22
- return object;
23
- };
24
- }
25
- var baseFor = createBaseFor();
26
- function baseForOwn(object, iteratee) {
27
- return object && baseFor(object, iteratee, keys);
28
- }
29
- function createBaseEach(eachFunc, fromRight) {
30
- return function(collection, iteratee) {
31
- if (collection == null) {
32
- return collection;
33
- }
34
- if (!isArrayLike(collection)) {
35
- return eachFunc(collection, iteratee);
36
- }
37
- var length = collection.length, index = -1, iterable = Object(collection);
38
- while (++index < length) {
39
- if (iteratee(iterable[index], index, iterable) === false) {
40
- break;
41
- }
42
- }
43
- return collection;
44
- };
45
- }
46
- var baseEach = createBaseEach(baseForOwn);
47
- function baseAggregator(collection, setter, iteratee, accumulator) {
48
- baseEach(collection, function(value, key, collection2) {
49
- setter(accumulator, value, iteratee(value), collection2);
50
- });
51
- return accumulator;
52
- }
53
- function createAggregator(setter, initializer) {
54
- return function(collection, iteratee) {
55
- var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = {};
56
- return func(collection, setter, baseIteratee(iteratee), accumulator);
57
- };
58
- }
59
- export {
60
- baseForOwn as a,
61
- baseEach as b,
62
- createAggregator as c
63
- };
@@ -1,5 +0,0 @@
1
- import { o as overArg } from "./_getTag-D3ToyefI.js";
2
- var getPrototype = overArg(Object.getPrototypeOf, Object);
3
- export {
4
- getPrototype as g
5
- };
@@ -1,126 +0,0 @@
1
- import { g as getNative, a as isFunction, t as toSource, M as Map } from "./_Map-kgDsDYxq.js";
2
- import { r as root, i as isObjectLike, b as baseGetTag, f as freeGlobal } from "./isObjectLike-OAgjjZye.js";
3
- var WeakMap = getNative(root, "WeakMap");
4
- var MAX_SAFE_INTEGER = 9007199254740991;
5
- function isLength(value) {
6
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
7
- }
8
- function isArrayLike(value) {
9
- return value != null && isLength(value.length) && !isFunction(value);
10
- }
11
- var objectProto$2 = Object.prototype;
12
- function isPrototype(value) {
13
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$2;
14
- return value === proto;
15
- }
16
- var argsTag$1 = "[object Arguments]";
17
- function baseIsArguments(value) {
18
- return isObjectLike(value) && baseGetTag(value) == argsTag$1;
19
- }
20
- var objectProto$1 = Object.prototype;
21
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
22
- var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
23
- var isArguments = baseIsArguments(/* @__PURE__ */ function() {
24
- return arguments;
25
- }()) ? baseIsArguments : function(value) {
26
- return isObjectLike(value) && hasOwnProperty$1.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
27
- };
28
- function stubFalse() {
29
- return false;
30
- }
31
- var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
32
- var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
33
- var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
34
- var Buffer = moduleExports$1 ? root.Buffer : void 0;
35
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
36
- var isBuffer = nativeIsBuffer || stubFalse;
37
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag$1 = "[object Map]", numberTag = "[object Number]", objectTag$1 = "[object Object]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag = "[object String]", weakMapTag$1 = "[object WeakMap]";
38
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
39
- var typedArrayTags = {};
40
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
41
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag$1] = typedArrayTags[numberTag] = typedArrayTags[objectTag$1] = typedArrayTags[regexpTag] = typedArrayTags[setTag$1] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag$1] = false;
42
- function baseIsTypedArray(value) {
43
- return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
44
- }
45
- function baseUnary(func) {
46
- return function(value) {
47
- return func(value);
48
- };
49
- }
50
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
51
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
52
- var moduleExports = freeModule && freeModule.exports === freeExports;
53
- var freeProcess = moduleExports && freeGlobal.process;
54
- var nodeUtil = function() {
55
- try {
56
- var types = freeModule && freeModule.require && freeModule.require("util").types;
57
- if (types) {
58
- return types;
59
- }
60
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
61
- } catch (e) {
62
- }
63
- }();
64
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
65
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
66
- function overArg(func, transform) {
67
- return function(arg) {
68
- return func(transform(arg));
69
- };
70
- }
71
- var nativeKeys = overArg(Object.keys, Object);
72
- var objectProto = Object.prototype;
73
- var hasOwnProperty = objectProto.hasOwnProperty;
74
- function baseKeys(object) {
75
- if (!isPrototype(object)) {
76
- return nativeKeys(object);
77
- }
78
- var result = [];
79
- for (var key in Object(object)) {
80
- if (hasOwnProperty.call(object, key) && key != "constructor") {
81
- result.push(key);
82
- }
83
- }
84
- return result;
85
- }
86
- var DataView = getNative(root, "DataView");
87
- var Promise$1 = getNative(root, "Promise");
88
- var Set = getNative(root, "Set");
89
- var mapTag = "[object Map]", objectTag = "[object Object]", promiseTag = "[object Promise]", setTag = "[object Set]", weakMapTag = "[object WeakMap]";
90
- var dataViewTag = "[object DataView]";
91
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
92
- var getTag = baseGetTag;
93
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
94
- getTag = function(value) {
95
- var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
96
- if (ctorString) {
97
- switch (ctorString) {
98
- case dataViewCtorString:
99
- return dataViewTag;
100
- case mapCtorString:
101
- return mapTag;
102
- case promiseCtorString:
103
- return promiseTag;
104
- case setCtorString:
105
- return setTag;
106
- case weakMapCtorString:
107
- return weakMapTag;
108
- }
109
- }
110
- return result;
111
- };
112
- }
113
- export {
114
- Set as S,
115
- isBuffer as a,
116
- isTypedArray as b,
117
- isArguments as c,
118
- isPrototype as d,
119
- baseKeys as e,
120
- baseUnary as f,
121
- getTag as g,
122
- isLength as h,
123
- isArrayLike as i,
124
- nodeUtil as n,
125
- overArg as o
126
- };
@@ -1,8 +0,0 @@
1
- import { b as baseClone } from "./_baseClone-D3a8Pa4T.js";
2
- var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
3
- function cloneDeep(value) {
4
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
5
- }
6
- export {
7
- cloneDeep as c
8
- };
@@ -1,14 +0,0 @@
1
- import { b as baseAssignValue } from "./_baseAssignValue-CNbcU6Nb.js";
2
- import { c as createAggregator } from "./_createAggregator-BpVy5xMi.js";
3
- var objectProto = Object.prototype;
4
- var hasOwnProperty = objectProto.hasOwnProperty;
5
- var countBy = createAggregator(function(result, value, key) {
6
- if (hasOwnProperty.call(result, key)) {
7
- ++result[key];
8
- } else {
9
- baseAssignValue(result, key, 1);
10
- }
11
- });
12
- export {
13
- countBy as c
14
- };
@@ -1,92 +0,0 @@
1
- import { i as isObject } from "./isObject-FTY-5JQX.js";
2
- import { r as root } from "./isObjectLike-OAgjjZye.js";
3
- import { t as toNumber } from "./toNumber-DPxy1FBy.js";
4
- var now = function() {
5
- return root.Date.now();
6
- };
7
- var FUNC_ERROR_TEXT = "Expected a function";
8
- var nativeMax = Math.max, nativeMin = Math.min;
9
- function debounce(func, wait, options) {
10
- var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
11
- if (typeof func != "function") {
12
- throw new TypeError(FUNC_ERROR_TEXT);
13
- }
14
- wait = toNumber(wait) || 0;
15
- if (isObject(options)) {
16
- leading = !!options.leading;
17
- maxing = "maxWait" in options;
18
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
19
- trailing = "trailing" in options ? !!options.trailing : trailing;
20
- }
21
- function invokeFunc(time) {
22
- var args = lastArgs, thisArg = lastThis;
23
- lastArgs = lastThis = void 0;
24
- lastInvokeTime = time;
25
- result = func.apply(thisArg, args);
26
- return result;
27
- }
28
- function leadingEdge(time) {
29
- lastInvokeTime = time;
30
- timerId = setTimeout(timerExpired, wait);
31
- return leading ? invokeFunc(time) : result;
32
- }
33
- function remainingWait(time) {
34
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
35
- return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
36
- }
37
- function shouldInvoke(time) {
38
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
39
- return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
40
- }
41
- function timerExpired() {
42
- var time = now();
43
- if (shouldInvoke(time)) {
44
- return trailingEdge(time);
45
- }
46
- timerId = setTimeout(timerExpired, remainingWait(time));
47
- }
48
- function trailingEdge(time) {
49
- timerId = void 0;
50
- if (trailing && lastArgs) {
51
- return invokeFunc(time);
52
- }
53
- lastArgs = lastThis = void 0;
54
- return result;
55
- }
56
- function cancel() {
57
- if (timerId !== void 0) {
58
- clearTimeout(timerId);
59
- }
60
- lastInvokeTime = 0;
61
- lastArgs = lastCallTime = lastThis = timerId = void 0;
62
- }
63
- function flush() {
64
- return timerId === void 0 ? result : trailingEdge(now());
65
- }
66
- function debounced() {
67
- var time = now(), isInvoking = shouldInvoke(time);
68
- lastArgs = arguments;
69
- lastThis = this;
70
- lastCallTime = time;
71
- if (isInvoking) {
72
- if (timerId === void 0) {
73
- return leadingEdge(lastCallTime);
74
- }
75
- if (maxing) {
76
- clearTimeout(timerId);
77
- timerId = setTimeout(timerExpired, wait);
78
- return invokeFunc(lastCallTime);
79
- }
80
- }
81
- if (timerId === void 0) {
82
- timerId = setTimeout(timerExpired, wait);
83
- }
84
- return result;
85
- }
86
- debounced.cancel = cancel;
87
- debounced.flush = flush;
88
- return debounced;
89
- }
90
- export {
91
- debounce as d
92
- };
package/get-D3C3lEU3.js DELETED
@@ -1,8 +0,0 @@
1
- import { b as baseGet } from "./_baseGet-BSK_nnoz.js";
2
- function get(object, path, defaultValue) {
3
- var result = object == null ? void 0 : baseGet(object, path);
4
- return result === void 0 ? defaultValue : result;
5
- }
6
- export {
7
- get as g
8
- };
@@ -1,14 +0,0 @@
1
- import { b as baseAssignValue } from "./_baseAssignValue-CNbcU6Nb.js";
2
- import { c as createAggregator } from "./_createAggregator-BpVy5xMi.js";
3
- var objectProto = Object.prototype;
4
- var hasOwnProperty = objectProto.hasOwnProperty;
5
- var groupBy = createAggregator(function(result, value, key) {
6
- if (hasOwnProperty.call(result, key)) {
7
- result[key].push(value);
8
- } else {
9
- baseAssignValue(result, key, [value]);
10
- }
11
- });
12
- export {
13
- groupBy as g
14
- };