@cccsaurora/clue-ui 1.2.3 → 1.2.4-dev.278

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 (188) hide show
  1. package/ActionForm-BdW0Za1y.js +5956 -0
  2. package/AnnotationDetails-BHZFzyt-.js +175 -0
  3. package/AnnotationPreview-DGoyoxRb.js +188 -0
  4. package/ClueEnrichContext-CJEJxrgs.js +541 -0
  5. package/FlexOne-BSYAhhtG.js +9 -0
  6. package/_MapCache-WmuDdwuH.js +222 -0
  7. package/_Uint8Array-B7JqpgFX.js +128 -0
  8. package/_baseAssignValue-CGTuELqU.js +25 -0
  9. package/_baseClone-CkNrTyhm.js +283 -0
  10. package/_baseExtremum-kob8QXyt.js +18 -0
  11. package/_baseFlatten-jIR_sN_-.js +92 -0
  12. package/_baseGet-Bx3A4Qfp.js +108 -0
  13. package/_baseIsEqual-C5OTWzTk.js +208 -0
  14. package/_baseIteratee-avi7MX2o.js +126 -0
  15. package/_baseSlice-GAv_YFTT.js +20 -0
  16. package/_baseSum-D0WC1dN0.js +13 -0
  17. package/_baseUniq-BI9GIHMF.js +115 -0
  18. package/_commonjsHelpers-DWwsNxpa.js +8 -0
  19. package/_createAggregator-QD8MzKwe.js +63 -0
  20. package/_getPrototype-CU0j_POw.js +5 -0
  21. package/_getTag-Ckxxfr88.js +126 -0
  22. package/_isIterateeCall-Ds3sw2SF.js +17 -0
  23. package/_setToArray-CaPKQhcz.js +33 -0
  24. package/cloneDeep-DJrLSw8W.js +8 -0
  25. package/components/AnnotationBody.js +49 -35
  26. package/components/AnnotationDetailPopover.js +36 -30
  27. package/components/AnnotationDetails.js +7 -7
  28. package/components/AnnotationEntry.js +35 -35
  29. package/components/AnnotationPreview.js +5 -5
  30. package/components/ClassificationChip.js +44 -23
  31. package/components/CountBadge.js +31 -26
  32. package/components/EnrichedCard.js +110 -97
  33. package/components/EnrichedChip.js +130 -105
  34. package/components/EnrichedTypography.js +133 -107
  35. package/components/ErrorBoundary.js +28 -24
  36. package/components/RetryFailedEnrichments.js +10 -9
  37. package/components/SourcePicker.js +57 -49
  38. package/components/actions/ActionForm.js +4 -4
  39. package/components/actions/ExecutePopover.js +75 -59
  40. package/components/actions/ResultModal.js +4 -4
  41. package/components/actions/form/schemaAdapter.js +39 -23
  42. package/components/actions/formats/FileResult.js +86 -59
  43. package/components/actions/formats/index.js +21 -10
  44. package/components/display/graph/ExpandMoreButton.js +10 -10
  45. package/components/display/graph/elements/NodeCard.js +111 -91
  46. package/components/display/graph/elements/NodeTag.js +15 -13
  47. package/components/display/graph/index.js +261 -202
  48. package/components/display/graph/visualizations/Leaf.js +88 -69
  49. package/components/display/graph/visualizations/cloud/index.js +98 -81
  50. package/components/display/graph/visualizations/icons/BaseIcon.js +26 -21
  51. package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
  52. package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
  53. package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
  54. package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
  55. package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
  56. package/components/display/graph/visualizations/icons/index.js +14 -13
  57. package/components/display/graph/visualizations/panels/NodePanel.js +10 -8
  58. package/components/display/graph/visualizations/tree/BundleLine.js +108 -81
  59. package/components/display/graph/visualizations/tree/Triangle.js +13 -13
  60. package/components/display/graph/visualizations/tree/index.js +408 -306
  61. package/components/display/icons/Iconified.js +27 -12
  62. package/components/display/json/index.js +4 -4
  63. package/components/display/markdown/index.js +8678 -5770
  64. package/components/enrichment/EnrichPopover.js +54 -46
  65. package/components/fetchers/Fetcher.js +158 -119
  66. package/components/fetchers/PreviewModal.js +20 -17
  67. package/components/fetchers/StatusChip.js +21 -17
  68. package/components/group/Entry.js +13 -11
  69. package/components/group/Group.js +13 -10
  70. package/components/group/GroupControl.js +76 -65
  71. package/components/stats/QueryStatus.js +43 -33
  72. package/countBy-c6S3dvSW.js +14 -0
  73. package/data/event.js +6 -4
  74. package/database/index.js +2 -2
  75. package/debounce-bV0h5FC5.js +92 -0
  76. package/en/translation.json +1 -1
  77. package/fr/translation.json +1 -1
  78. package/get-DSsNkRQs.js +8 -0
  79. package/groupBy-xqz-n0Vd.js +14 -0
  80. package/hooks/ClueActionContext.js +6 -6
  81. package/hooks/ClueComponentContext.js +29 -23
  82. package/hooks/ClueConfigProvider.js +14 -12
  83. package/hooks/ClueDatabaseContext.js +19 -13
  84. package/hooks/ClueEnrichContext.js +8 -8
  85. package/hooks/ClueFetcherContext.js +83 -56
  86. package/hooks/ClueGroupContext.js +17 -14
  87. package/hooks/CluePopupContext.js +5 -5
  88. package/hooks/ClueProvider.js +12 -10
  89. package/hooks/selectors.js +7 -7
  90. package/hooks/useActionResult.d.ts +1 -0
  91. package/hooks/useActionResult.js +4 -2
  92. package/hooks/useAnnotations.js +47 -31
  93. package/hooks/useClue.js +6 -4
  94. package/hooks/useClueActions.js +3 -3
  95. package/hooks/useClueConfig.js +6 -4
  96. package/hooks/useClueTypeConfig.js +3 -3
  97. package/hooks/useComparator.js +722 -435
  98. package/hooks/useErrors.js +22 -18
  99. package/hooks/useFetcherResult.d.ts +1 -0
  100. package/hooks/useFetcherResult.js +33 -24
  101. package/hooks/useMyHighlights.js +66 -36
  102. package/hooks/useMyLocalStorage.js +66 -37
  103. package/iconify-CXMreGTg.js +1782 -0
  104. package/icons/Action.js +66 -49
  105. package/icons/Assessment.js +85 -69
  106. package/icons/Context.js +77 -63
  107. package/icons/Opinion.js +76 -60
  108. package/icons/iconMap.js +2 -2
  109. package/identity-CPGTqrE4.js +6 -0
  110. package/index-AMfoEg_6.js +696 -0
  111. package/index-B6C2a_Lg.js +1172 -0
  112. package/index-C12gPw2W.js +17698 -0
  113. package/index-DCKkHTvx.js +15750 -0
  114. package/index-JcKyZeoY.js +465 -0
  115. package/isNil-CIubwp4T.js +6 -0
  116. package/isObject-FTY-5JQX.js +7 -0
  117. package/isObjectLike-OAgjjZye.js +48 -0
  118. package/isSymbol-Xd2FsJyp.js +8 -0
  119. package/last-CUCl67Im.js +7 -0
  120. package/main.js +60 -60
  121. package/maxBy-IKHzFrCS.js +8 -0
  122. package/package.json +1 -1
  123. package/sortBy-DfSj8IoJ.js +96 -0
  124. package/sumBy-D-hb_NY-.js +8 -0
  125. package/text/Frequency.js +42 -23
  126. package/toFinite-Bc55msYj.js +16 -0
  127. package/toNumber-DPxy1FBy.js +39 -0
  128. package/types/WithActionData.d.ts +2 -1
  129. package/useClueTypeConfig-Z1LFp01b.js +3289 -0
  130. package/utils/chain.js +92 -65
  131. package/utils/classificationParser.js +519 -256
  132. package/utils/constants.js +35 -10
  133. package/utils/graph.js +72 -45
  134. package/utils/hashUtil.js +7 -7
  135. package/utils/line.js +131 -81
  136. package/utils/loggerUtil.js +5 -3
  137. package/utils/sessionStorage.js +41 -27
  138. package/utils/time.js +423 -423
  139. package/utils/utils.js +9 -9
  140. package/utils/window.js +21 -10
  141. package/utils-HmNPuoDB.js +199 -0
  142. package/ActionForm-DlOXqMUx.js +0 -4460
  143. package/AnnotationDetails-Bk-p0F6h.js +0 -160
  144. package/AnnotationPreview-jzZvkCxJ.js +0 -140
  145. package/ClueEnrichContext-KqRuuWNS.js +0 -418
  146. package/FlexOne-BXWFOd1T.js +0 -6
  147. package/_MapCache-BiTi0iqu.js +0 -180
  148. package/_Uint8Array-BQNOM9Rr.js +0 -101
  149. package/_baseAssignValue-CNMLQZco.js +0 -20
  150. package/_baseClone-BnT-6pyM.js +0 -207
  151. package/_baseExtremum-Ca2EHgy2.js +0 -16
  152. package/_baseFlatten-Bfr_Molw.js +0 -72
  153. package/_baseGet-DSZygzyq.js +0 -79
  154. package/_baseIsEqual-VgvaAFZG.js +0 -147
  155. package/_baseIteratee-Dbfsw5z8.js +0 -95
  156. package/_baseSlice-M5RKzt1A.js +0 -10
  157. package/_baseSum-wEbgNeUs.js +0 -10
  158. package/_baseUniq-BJcj69PL.js +0 -79
  159. package/_commonjsHelpers-DaMA6jEr.js +0 -8
  160. package/_createAggregator-k3TuAnxT.js +0 -53
  161. package/_getPrototype-Cr1Mk7BC.js +0 -5
  162. package/_getTag-CK2Sffaq.js +0 -90
  163. package/_isIterateeCall-DkJP7Rbx.js +0 -13
  164. package/_setToArray-C7yMOeww.js +0 -29
  165. package/cloneDeep-CF8TtLHr.js +0 -8
  166. package/countBy-CdYegFSu.js +0 -8
  167. package/debounce-DryYcbJ4.js +0 -56
  168. package/get-CH7kz5Ix.js +0 -8
  169. package/groupBy-br8xmD2R.js +0 -8
  170. package/iconify-BBckr5AQ.js +0 -1263
  171. package/identity-ByMq8VxU.js +0 -6
  172. package/index-BHAe_V9n.js +0 -12768
  173. package/index-BK-zfYhR.js +0 -358
  174. package/index-CA5CUNZO.js +0 -975
  175. package/index-Dj5C04IX.js +0 -568
  176. package/index-p5_wX7q1.js +0 -11729
  177. package/isNil-CjWwlQS3.js +0 -6
  178. package/isObject-B53jY8Qg.js +0 -7
  179. package/isObjectLike-BatpeCIi.js +0 -29
  180. package/isSymbol-C3_SC0Qp.js +0 -8
  181. package/last-7CdUxN0r.js +0 -7
  182. package/maxBy-Bc0dYHcO.js +0 -8
  183. package/sortBy-DY2JBf9n.js +0 -75
  184. package/sumBy-DuMASLPd.js +0 -8
  185. package/toFinite-BMy6GObD.js +0 -14
  186. package/toNumber-YVhnnJv4.js +0 -31
  187. package/useClueTypeConfig-Ct9Ygter.js +0 -2292
  188. package/utils-DmwSUrum.js +0 -129
@@ -0,0 +1,92 @@
1
+ import { d as defineProperty } from "./_baseAssignValue-CGTuELqU.js";
2
+ import { i as identity } from "./identity-CPGTqrE4.js";
3
+ import { a as arrayPush } from "./_Uint8Array-B7JqpgFX.js";
4
+ import { S as Symbol$1 } from "./isObjectLike-OAgjjZye.js";
5
+ import { d as isArguments } from "./_getTag-Ckxxfr88.js";
6
+ import { i as isArray } from "./_MapCache-WmuDdwuH.js";
7
+ function apply(func, thisArg, args) {
8
+ switch (args.length) {
9
+ case 0:
10
+ return func.call(thisArg);
11
+ case 1:
12
+ return func.call(thisArg, args[0]);
13
+ case 2:
14
+ return func.call(thisArg, args[0], args[1]);
15
+ case 3:
16
+ return func.call(thisArg, args[0], args[1], args[2]);
17
+ }
18
+ return func.apply(thisArg, args);
19
+ }
20
+ var HOT_COUNT = 800, HOT_SPAN = 16;
21
+ var nativeNow = Date.now;
22
+ function shortOut(func) {
23
+ var count = 0, lastCalled = 0;
24
+ return function() {
25
+ var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
26
+ lastCalled = stamp;
27
+ if (remaining > 0) {
28
+ if (++count >= HOT_COUNT) {
29
+ return arguments[0];
30
+ }
31
+ } else {
32
+ count = 0;
33
+ }
34
+ return func.apply(void 0, arguments);
35
+ };
36
+ }
37
+ function constant(value) {
38
+ return function() {
39
+ return value;
40
+ };
41
+ }
42
+ var baseSetToString = !defineProperty ? identity : function(func, string) {
43
+ return defineProperty(func, "toString", {
44
+ "configurable": true,
45
+ "enumerable": false,
46
+ "value": constant(string),
47
+ "writable": true
48
+ });
49
+ };
50
+ var setToString = shortOut(baseSetToString);
51
+ var nativeMax = Math.max;
52
+ function overRest(func, start, transform) {
53
+ start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
54
+ return function() {
55
+ var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
56
+ while (++index < length) {
57
+ array[index] = args[start + index];
58
+ }
59
+ index = -1;
60
+ var otherArgs = Array(start + 1);
61
+ while (++index < start) {
62
+ otherArgs[index] = args[index];
63
+ }
64
+ otherArgs[start] = transform(array);
65
+ return apply(func, this, otherArgs);
66
+ };
67
+ }
68
+ var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
69
+ function isFlattenable(value) {
70
+ return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
71
+ }
72
+ function baseFlatten(array, depth, predicate, isStrict, result) {
73
+ var index = -1, length = array.length;
74
+ predicate || (predicate = isFlattenable);
75
+ result || (result = []);
76
+ while (++index < length) {
77
+ var value = array[index];
78
+ if (predicate(value)) {
79
+ {
80
+ arrayPush(result, value);
81
+ }
82
+ } else {
83
+ result[result.length] = value;
84
+ }
85
+ }
86
+ return result;
87
+ }
88
+ export {
89
+ baseFlatten as b,
90
+ overRest as o,
91
+ setToString as s
92
+ };
@@ -0,0 +1,108 @@
1
+ import { i as isArray, M as MapCache } from "./_MapCache-WmuDdwuH.js";
2
+ import { i as isSymbol } from "./isSymbol-Xd2FsJyp.js";
3
+ import { S as Symbol$1 } from "./isObjectLike-OAgjjZye.js";
4
+ function arrayMap(array, iteratee) {
5
+ var index = -1, length = array == null ? 0 : array.length, result = Array(length);
6
+ while (++index < length) {
7
+ result[index] = iteratee(array[index], index, array);
8
+ }
9
+ return result;
10
+ }
11
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
12
+ function baseToString(value) {
13
+ if (typeof value == "string") {
14
+ return value;
15
+ }
16
+ if (isArray(value)) {
17
+ return arrayMap(value, baseToString) + "";
18
+ }
19
+ if (isSymbol(value)) {
20
+ return symbolToString ? symbolToString.call(value) : "";
21
+ }
22
+ var result = value + "";
23
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
24
+ }
25
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
26
+ function isKey(value, object) {
27
+ if (isArray(value)) {
28
+ return false;
29
+ }
30
+ var type = typeof value;
31
+ if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) {
32
+ return true;
33
+ }
34
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
35
+ }
36
+ var FUNC_ERROR_TEXT = "Expected a function";
37
+ function memoize(func, resolver) {
38
+ if (typeof func != "function" || resolver != null && typeof resolver != "function") {
39
+ throw new TypeError(FUNC_ERROR_TEXT);
40
+ }
41
+ var memoized = function() {
42
+ var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
43
+ if (cache.has(key)) {
44
+ return cache.get(key);
45
+ }
46
+ var result = func.apply(this, args);
47
+ memoized.cache = cache.set(key, result) || cache;
48
+ return result;
49
+ };
50
+ memoized.cache = new (memoize.Cache || MapCache)();
51
+ return memoized;
52
+ }
53
+ memoize.Cache = MapCache;
54
+ var MAX_MEMOIZE_SIZE = 500;
55
+ function memoizeCapped(func) {
56
+ var result = memoize(func, function(key) {
57
+ if (cache.size === MAX_MEMOIZE_SIZE) {
58
+ cache.clear();
59
+ }
60
+ return key;
61
+ });
62
+ var cache = result.cache;
63
+ return result;
64
+ }
65
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
66
+ var reEscapeChar = /\\(\\)?/g;
67
+ var stringToPath = memoizeCapped(function(string) {
68
+ var result = [];
69
+ if (string.charCodeAt(0) === 46) {
70
+ result.push("");
71
+ }
72
+ string.replace(rePropName, function(match, number, quote, subString) {
73
+ result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
74
+ });
75
+ return result;
76
+ });
77
+ function toString(value) {
78
+ return value == null ? "" : baseToString(value);
79
+ }
80
+ function castPath(value, object) {
81
+ if (isArray(value)) {
82
+ return value;
83
+ }
84
+ return isKey(value, object) ? [value] : stringToPath(toString(value));
85
+ }
86
+ function toKey(value) {
87
+ if (typeof value == "string" || isSymbol(value)) {
88
+ return value;
89
+ }
90
+ var result = value + "";
91
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
92
+ }
93
+ function baseGet(object, path) {
94
+ path = castPath(path, object);
95
+ var index = 0, length = path.length;
96
+ while (object != null && index < length) {
97
+ object = object[toKey(path[index++])];
98
+ }
99
+ return index && index == length ? object : void 0;
100
+ }
101
+ export {
102
+ arrayMap as a,
103
+ baseGet as b,
104
+ castPath as c,
105
+ toString as d,
106
+ isKey as i,
107
+ toKey as t
108
+ };
@@ -0,0 +1,208 @@
1
+ import { U as Uint8Array, g as getAllKeys, S as Stack } from "./_Uint8Array-B7JqpgFX.js";
2
+ import { S as SetCache, c as cacheHas, s as setToArray } from "./_setToArray-CaPKQhcz.js";
3
+ import { S as Symbol$1, i as isObjectLike } from "./isObjectLike-OAgjjZye.js";
4
+ import { e as eq, i as isArray } from "./_MapCache-WmuDdwuH.js";
5
+ import { g as getTag, a as isBuffer, c as isTypedArray } from "./_getTag-Ckxxfr88.js";
6
+ function arraySome(array, predicate) {
7
+ var index = -1, length = array == null ? 0 : array.length;
8
+ while (++index < length) {
9
+ if (predicate(array[index], index, array)) {
10
+ return true;
11
+ }
12
+ }
13
+ return false;
14
+ }
15
+ var COMPARE_PARTIAL_FLAG$3 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
16
+ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
17
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, arrLength = array.length, othLength = other.length;
18
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
19
+ return false;
20
+ }
21
+ var arrStacked = stack.get(array);
22
+ var othStacked = stack.get(other);
23
+ if (arrStacked && othStacked) {
24
+ return arrStacked == other && othStacked == array;
25
+ }
26
+ var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
27
+ stack.set(array, other);
28
+ stack.set(other, array);
29
+ while (++index < arrLength) {
30
+ var arrValue = array[index], othValue = other[index];
31
+ if (customizer) {
32
+ var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
33
+ }
34
+ if (compared !== void 0) {
35
+ if (compared) {
36
+ continue;
37
+ }
38
+ result = false;
39
+ break;
40
+ }
41
+ if (seen) {
42
+ if (!arraySome(other, function(othValue2, othIndex) {
43
+ if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
44
+ return seen.push(othIndex);
45
+ }
46
+ })) {
47
+ result = false;
48
+ break;
49
+ }
50
+ } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
51
+ result = false;
52
+ break;
53
+ }
54
+ }
55
+ stack["delete"](array);
56
+ stack["delete"](other);
57
+ return result;
58
+ }
59
+ function mapToArray(map) {
60
+ var index = -1, result = Array(map.size);
61
+ map.forEach(function(value, key) {
62
+ result[++index] = [key, value];
63
+ });
64
+ return result;
65
+ }
66
+ var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
67
+ var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
68
+ var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
69
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
70
+ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
71
+ switch (tag) {
72
+ case dataViewTag:
73
+ if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
74
+ return false;
75
+ }
76
+ object = object.buffer;
77
+ other = other.buffer;
78
+ case arrayBufferTag:
79
+ if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
80
+ return false;
81
+ }
82
+ return true;
83
+ case boolTag:
84
+ case dateTag:
85
+ case numberTag:
86
+ return eq(+object, +other);
87
+ case errorTag:
88
+ return object.name == other.name && object.message == other.message;
89
+ case regexpTag:
90
+ case stringTag:
91
+ return object == other + "";
92
+ case mapTag:
93
+ var convert = mapToArray;
94
+ case setTag:
95
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
96
+ convert || (convert = setToArray);
97
+ if (object.size != other.size && !isPartial) {
98
+ return false;
99
+ }
100
+ var stacked = stack.get(object);
101
+ if (stacked) {
102
+ return stacked == other;
103
+ }
104
+ bitmask |= COMPARE_UNORDERED_FLAG;
105
+ stack.set(object, other);
106
+ var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
107
+ stack["delete"](object);
108
+ return result;
109
+ case symbolTag:
110
+ if (symbolValueOf) {
111
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
112
+ }
113
+ }
114
+ return false;
115
+ }
116
+ var COMPARE_PARTIAL_FLAG$1 = 1;
117
+ var objectProto$1 = Object.prototype;
118
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
119
+ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
120
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
121
+ if (objLength != othLength && !isPartial) {
122
+ return false;
123
+ }
124
+ var index = objLength;
125
+ while (index--) {
126
+ var key = objProps[index];
127
+ if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
128
+ return false;
129
+ }
130
+ }
131
+ var objStacked = stack.get(object);
132
+ var othStacked = stack.get(other);
133
+ if (objStacked && othStacked) {
134
+ return objStacked == other && othStacked == object;
135
+ }
136
+ var result = true;
137
+ stack.set(object, other);
138
+ stack.set(other, object);
139
+ var skipCtor = isPartial;
140
+ while (++index < objLength) {
141
+ key = objProps[index];
142
+ var objValue = object[key], othValue = other[key];
143
+ if (customizer) {
144
+ var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
145
+ }
146
+ if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
147
+ result = false;
148
+ break;
149
+ }
150
+ skipCtor || (skipCtor = key == "constructor");
151
+ }
152
+ if (result && !skipCtor) {
153
+ var objCtor = object.constructor, othCtor = other.constructor;
154
+ if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
155
+ result = false;
156
+ }
157
+ }
158
+ stack["delete"](object);
159
+ stack["delete"](other);
160
+ return result;
161
+ }
162
+ var COMPARE_PARTIAL_FLAG = 1;
163
+ var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
164
+ var objectProto = Object.prototype;
165
+ var hasOwnProperty = objectProto.hasOwnProperty;
166
+ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
167
+ var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
168
+ objTag = objTag == argsTag ? objectTag : objTag;
169
+ othTag = othTag == argsTag ? objectTag : othTag;
170
+ var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
171
+ if (isSameTag && isBuffer(object)) {
172
+ if (!isBuffer(other)) {
173
+ return false;
174
+ }
175
+ objIsArr = true;
176
+ objIsObj = false;
177
+ }
178
+ if (isSameTag && !objIsObj) {
179
+ stack || (stack = new Stack());
180
+ return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
181
+ }
182
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
183
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
184
+ if (objIsWrapped || othIsWrapped) {
185
+ var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
186
+ stack || (stack = new Stack());
187
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
188
+ }
189
+ }
190
+ if (!isSameTag) {
191
+ return false;
192
+ }
193
+ stack || (stack = new Stack());
194
+ return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
195
+ }
196
+ function baseIsEqual(value, other, bitmask, customizer, stack) {
197
+ if (value === other) {
198
+ return true;
199
+ }
200
+ if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
201
+ return value !== value && other !== other;
202
+ }
203
+ return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
204
+ }
205
+ export {
206
+ baseIsEqual as b,
207
+ mapToArray as m
208
+ };
@@ -0,0 +1,126 @@
1
+ import { S as Stack, k as keys, i as isIndex } from "./_Uint8Array-B7JqpgFX.js";
2
+ import { b as baseIsEqual } from "./_baseIsEqual-C5OTWzTk.js";
3
+ import { i as isObject } from "./isObject-FTY-5JQX.js";
4
+ import { g as get } from "./get-DSsNkRQs.js";
5
+ import { c as castPath, t as toKey, i as isKey, b as baseGet } from "./_baseGet-Bx3A4Qfp.js";
6
+ import { h as isLength, d as isArguments } from "./_getTag-Ckxxfr88.js";
7
+ import { i as isArray } from "./_MapCache-WmuDdwuH.js";
8
+ import { i as identity } from "./identity-CPGTqrE4.js";
9
+ var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
10
+ function baseIsMatch(object, source, matchData, customizer) {
11
+ var index = matchData.length, length = index;
12
+ if (object == null) {
13
+ return !length;
14
+ }
15
+ object = Object(object);
16
+ while (index--) {
17
+ var data = matchData[index];
18
+ if (data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
19
+ return false;
20
+ }
21
+ }
22
+ while (++index < length) {
23
+ data = matchData[index];
24
+ var key = data[0], objValue = object[key], srcValue = data[1];
25
+ if (data[2]) {
26
+ if (objValue === void 0 && !(key in object)) {
27
+ return false;
28
+ }
29
+ } else {
30
+ var stack = new Stack();
31
+ var result;
32
+ if (!(result === void 0 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
33
+ return false;
34
+ }
35
+ }
36
+ }
37
+ return true;
38
+ }
39
+ function isStrictComparable(value) {
40
+ return value === value && !isObject(value);
41
+ }
42
+ function getMatchData(object) {
43
+ var result = keys(object), length = result.length;
44
+ while (length--) {
45
+ var key = result[length], value = object[key];
46
+ result[length] = [key, value, isStrictComparable(value)];
47
+ }
48
+ return result;
49
+ }
50
+ function matchesStrictComparable(key, srcValue) {
51
+ return function(object) {
52
+ if (object == null) {
53
+ return false;
54
+ }
55
+ return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
56
+ };
57
+ }
58
+ function baseMatches(source) {
59
+ var matchData = getMatchData(source);
60
+ if (matchData.length == 1 && matchData[0][2]) {
61
+ return matchesStrictComparable(matchData[0][0], matchData[0][1]);
62
+ }
63
+ return function(object) {
64
+ return object === source || baseIsMatch(object, source, matchData);
65
+ };
66
+ }
67
+ function baseHasIn(object, key) {
68
+ return object != null && key in Object(object);
69
+ }
70
+ function hasPath(object, path, hasFunc) {
71
+ path = castPath(path, object);
72
+ var index = -1, length = path.length, result = false;
73
+ while (++index < length) {
74
+ var key = toKey(path[index]);
75
+ if (!(result = object != null && hasFunc(object, key))) {
76
+ break;
77
+ }
78
+ object = object[key];
79
+ }
80
+ if (result || ++index != length) {
81
+ return result;
82
+ }
83
+ length = object == null ? 0 : object.length;
84
+ return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
85
+ }
86
+ function hasIn(object, path) {
87
+ return object != null && hasPath(object, path, baseHasIn);
88
+ }
89
+ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
90
+ function baseMatchesProperty(path, srcValue) {
91
+ if (isKey(path) && isStrictComparable(srcValue)) {
92
+ return matchesStrictComparable(toKey(path), srcValue);
93
+ }
94
+ return function(object) {
95
+ var objValue = get(object, path);
96
+ return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
97
+ };
98
+ }
99
+ function baseProperty(key) {
100
+ return function(object) {
101
+ return object == null ? void 0 : object[key];
102
+ };
103
+ }
104
+ function basePropertyDeep(path) {
105
+ return function(object) {
106
+ return baseGet(object, path);
107
+ };
108
+ }
109
+ function property(path) {
110
+ return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
111
+ }
112
+ function baseIteratee(value) {
113
+ if (typeof value == "function") {
114
+ return value;
115
+ }
116
+ if (value == null) {
117
+ return identity;
118
+ }
119
+ if (typeof value == "object") {
120
+ return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
121
+ }
122
+ return property(value);
123
+ }
124
+ export {
125
+ baseIteratee as b
126
+ };
@@ -0,0 +1,20 @@
1
+ function baseSlice(array, start, end) {
2
+ var index = -1, length = array.length;
3
+ if (start < 0) {
4
+ start = -start > length ? 0 : length + start;
5
+ }
6
+ end = end > length ? length : end;
7
+ if (end < 0) {
8
+ end += length;
9
+ }
10
+ length = start > end ? 0 : end - start >>> 0;
11
+ start >>>= 0;
12
+ var result = Array(length);
13
+ while (++index < length) {
14
+ result[index] = array[index + start];
15
+ }
16
+ return result;
17
+ }
18
+ export {
19
+ baseSlice as b
20
+ };
@@ -0,0 +1,13 @@
1
+ function baseSum(array, iteratee) {
2
+ var result, index = -1, length = array.length;
3
+ while (++index < length) {
4
+ var current = iteratee(array[index]);
5
+ if (current !== void 0) {
6
+ result = result === void 0 ? current : result + current;
7
+ }
8
+ }
9
+ return result;
10
+ }
11
+ export {
12
+ baseSum as b
13
+ };
@@ -0,0 +1,115 @@
1
+ import { i as isArrayLike, a as isBuffer, c as isTypedArray, d as isArguments, g as getTag, e as isPrototype, f as baseKeys, S as Set } from "./_getTag-Ckxxfr88.js";
2
+ import { i as isArray } from "./_MapCache-WmuDdwuH.js";
3
+ import { s as setToArray, S as SetCache, c as cacheHas } from "./_setToArray-CaPKQhcz.js";
4
+ function noop() {
5
+ }
6
+ function baseFindIndex(array, predicate, fromIndex, fromRight) {
7
+ var length = array.length, index = fromIndex + -1;
8
+ while (++index < length) {
9
+ if (predicate(array[index], index, array)) {
10
+ return index;
11
+ }
12
+ }
13
+ return -1;
14
+ }
15
+ function baseIsNaN(value) {
16
+ return value !== value;
17
+ }
18
+ function strictIndexOf(array, value, fromIndex) {
19
+ var index = fromIndex - 1, length = array.length;
20
+ while (++index < length) {
21
+ if (array[index] === value) {
22
+ return index;
23
+ }
24
+ }
25
+ return -1;
26
+ }
27
+ function baseIndexOf(array, value, fromIndex) {
28
+ return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
29
+ }
30
+ function arrayIncludes(array, value) {
31
+ var length = array == null ? 0 : array.length;
32
+ return !!length && baseIndexOf(array, value, 0) > -1;
33
+ }
34
+ function arrayIncludesWith(array, value, comparator) {
35
+ var index = -1, length = array == null ? 0 : array.length;
36
+ while (++index < length) {
37
+ if (comparator(value, array[index])) {
38
+ return true;
39
+ }
40
+ }
41
+ return false;
42
+ }
43
+ var mapTag = "[object Map]", setTag = "[object Set]";
44
+ var objectProto = Object.prototype;
45
+ var hasOwnProperty = objectProto.hasOwnProperty;
46
+ function isEmpty(value) {
47
+ if (value == null) {
48
+ return true;
49
+ }
50
+ if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) {
51
+ return !value.length;
52
+ }
53
+ var tag = getTag(value);
54
+ if (tag == mapTag || tag == setTag) {
55
+ return !value.size;
56
+ }
57
+ if (isPrototype(value)) {
58
+ return !baseKeys(value).length;
59
+ }
60
+ for (var key in value) {
61
+ if (hasOwnProperty.call(value, key)) {
62
+ return false;
63
+ }
64
+ }
65
+ return true;
66
+ }
67
+ var INFINITY = 1 / 0;
68
+ var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function(values) {
69
+ return new Set(values);
70
+ };
71
+ var LARGE_ARRAY_SIZE = 200;
72
+ function baseUniq(array, iteratee, comparator) {
73
+ var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result;
74
+ if (comparator) {
75
+ isCommon = false;
76
+ includes = arrayIncludesWith;
77
+ } else if (length >= LARGE_ARRAY_SIZE) {
78
+ var set = iteratee ? null : createSet(array);
79
+ if (set) {
80
+ return setToArray(set);
81
+ }
82
+ isCommon = false;
83
+ includes = cacheHas;
84
+ seen = new SetCache();
85
+ } else {
86
+ seen = iteratee ? [] : result;
87
+ }
88
+ outer:
89
+ while (++index < length) {
90
+ var value = array[index], computed = iteratee ? iteratee(value) : value;
91
+ value = comparator || value !== 0 ? value : 0;
92
+ if (isCommon && computed === computed) {
93
+ var seenIndex = seen.length;
94
+ while (seenIndex--) {
95
+ if (seen[seenIndex] === computed) {
96
+ continue outer;
97
+ }
98
+ }
99
+ if (iteratee) {
100
+ seen.push(computed);
101
+ }
102
+ result.push(value);
103
+ } else if (!includes(seen, computed, comparator)) {
104
+ if (seen !== result) {
105
+ seen.push(computed);
106
+ }
107
+ result.push(value);
108
+ }
109
+ }
110
+ return result;
111
+ }
112
+ export {
113
+ baseUniq as b,
114
+ isEmpty as i
115
+ };
@@ -0,0 +1,8 @@
1
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
2
+ function getDefaultExportFromCjs(x) {
3
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
4
+ }
5
+ export {
6
+ commonjsGlobal as c,
7
+ getDefaultExportFromCjs as g
8
+ };