@cccsaurora/clue-ui 1.0.4 → 1.1.0-dev.100

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 (201) hide show
  1. package/ActionForm-ByeOzpc4.js +555 -0
  2. package/AnnotationDetails-DknbKDyl.js +175 -0
  3. package/AnnotationPreview-CQwKs8se.js +188 -0
  4. package/ClueEnrichContext-6NJfXpUB.js +536 -0
  5. package/FlexOne-BSYAhhtG.js +9 -0
  6. package/_Map-kgDsDYxq.js +64 -0
  7. package/_MapCache-DabaaWfq.js +161 -0
  8. package/_Uint8Array-BlVVH1tp.js +129 -0
  9. package/_baseAssignValue-CNbcU6Nb.js +25 -0
  10. package/_baseClone-D3a8Pa4T.js +284 -0
  11. package/_baseExtremum-B1o1zHjR.js +33 -0
  12. package/_baseFlatten-D4huXoEI.js +92 -0
  13. package/_baseGet-BSK_nnoz.js +109 -0
  14. package/_baseIsEqual-B5xLoweL.js +238 -0
  15. package/_baseIteratee-p6Nj07-n.js +126 -0
  16. package/_baseSlice-GAv_YFTT.js +20 -0
  17. package/_baseSum-D0WC1dN0.js +13 -0
  18. package/_baseUniq-CpupKWcL.js +89 -0
  19. package/_commonjsHelpers-DWwsNxpa.js +8 -0
  20. package/_createAggregator-BpVy5xMi.js +63 -0
  21. package/_getPrototype-D1LAdQKO.js +5 -0
  22. package/_getTag-D3ToyefI.js +126 -0
  23. package/api/lookup/index.d.ts +1 -1
  24. package/api/lookup/types.d.ts +2 -2
  25. package/api/lookup/types_detection.d.ts +2 -2
  26. package/cloneDeep-CjP5k9zW.js +8 -0
  27. package/components/AnnotationBody.js +49 -34
  28. package/components/AnnotationDetailPopover.js +36 -30
  29. package/components/AnnotationDetails.js +6 -6
  30. package/components/AnnotationEntry.js +50 -47
  31. package/components/AnnotationPreview.js +5 -5
  32. package/components/ClassificationChip.d.ts +2 -1
  33. package/components/ClassificationChip.js +44 -23
  34. package/components/CountBadge.js +31 -26
  35. package/components/EnrichedCard.js +110 -92
  36. package/components/EnrichedChip.js +130 -111
  37. package/components/EnrichedTypography.d.ts +1 -1
  38. package/components/EnrichedTypography.js +133 -112
  39. package/components/ErrorBoundary.js +28 -24
  40. package/components/RetryFailedEnrichments.js +10 -9
  41. package/components/SourcePicker.js +57 -49
  42. package/components/actions/ActionForm.js +4 -4
  43. package/components/actions/ExecutePopover.js +64 -50
  44. package/components/actions/ResultModal.js +12 -41
  45. package/components/actions/form/schemaAdapter.js +40 -20
  46. package/components/display/graph/ExpandMoreButton.js +10 -10
  47. package/components/display/graph/elements/NodeCard.js +114 -76
  48. package/components/display/graph/elements/NodeTag.js +15 -13
  49. package/components/display/graph/index.js +267 -210
  50. package/components/display/graph/visualizations/Leaf.js +88 -69
  51. package/components/display/graph/visualizations/cloud/index.js +98 -81
  52. package/components/display/graph/visualizations/icons/BaseIcon.js +26 -21
  53. package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
  54. package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
  55. package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
  56. package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
  57. package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
  58. package/components/display/graph/visualizations/icons/index.js +14 -13
  59. package/components/display/graph/visualizations/panels/NodePanel.js +10 -8
  60. package/components/display/graph/visualizations/tree/BundleLine.js +108 -81
  61. package/components/display/graph/visualizations/tree/Triangle.js +13 -13
  62. package/components/display/graph/visualizations/tree/index.js +407 -305
  63. package/components/display/icons/Iconified.js +27 -12
  64. package/components/display/json/index.js +4 -4
  65. package/components/display/markdown/index.js +8696 -5668
  66. package/components/enrichment/EnrichPopover.js +55 -47
  67. package/components/fetchers/Fetcher.js +123 -95
  68. package/components/fetchers/PreviewModal.js +20 -17
  69. package/components/fetchers/StatusChip.js +21 -18
  70. package/components/group/Entry.js +13 -11
  71. package/components/group/Group.js +13 -10
  72. package/components/group/GroupControl.js +78 -66
  73. package/components/stats/QueryStatus.js +44 -31
  74. package/countBy-C69WslUA.js +14 -0
  75. package/data/event.js +6 -4
  76. package/database/index.js +2 -2
  77. package/debounce-bV0h5FC5.js +92 -0
  78. package/en/translation.json +39 -59
  79. package/fr/translation.json +37 -56
  80. package/get-D3C3lEU3.js +8 -0
  81. package/groupBy-DC2oOuBN.js +14 -0
  82. package/hooks/ClueActionContext.d.ts +26 -0
  83. package/hooks/ClueActionContext.js +8 -7
  84. package/hooks/ClueComponentContext.js +29 -23
  85. package/hooks/ClueConfigProvider.js +14 -12
  86. package/hooks/ClueDatabaseContext.js +19 -13
  87. package/hooks/ClueEnrichContext.js +8 -8
  88. package/hooks/ClueEnrichProps.d.ts +3 -1
  89. package/hooks/ClueFetcherContext.js +74 -46
  90. package/hooks/ClueGroupContext.js +17 -14
  91. package/hooks/CluePopupContext.js +5 -5
  92. package/hooks/ClueProvider.js +12 -10
  93. package/hooks/selectors.d.ts +4 -5
  94. package/hooks/selectors.js +21 -11
  95. package/hooks/useActionResult.d.ts +14 -0
  96. package/hooks/useActionResult.js +5 -0
  97. package/hooks/useAnnotations.js +45 -29
  98. package/hooks/useClue.js +6 -4
  99. package/hooks/useClueActions.d.ts +1 -1
  100. package/hooks/useClueActions.js +3 -3
  101. package/hooks/useClueConfig.d.ts +2 -1
  102. package/hooks/useClueConfig.js +6 -6
  103. package/hooks/useClueTypeConfig.js +3 -3
  104. package/hooks/useComparator.js +722 -435
  105. package/hooks/useErrors.js +22 -18
  106. package/hooks/useMyHighlights.js +66 -36
  107. package/hooks/useMyLocalStorage.d.ts +4 -3
  108. package/hooks/useMyLocalStorage.js +66 -46
  109. package/iconify-CXMreGTg.js +1782 -0
  110. package/icons/Action.js +66 -49
  111. package/icons/Assessment.js +84 -68
  112. package/icons/Context.js +78 -61
  113. package/icons/Opinion.js +77 -65
  114. package/icons/iconMap.js +2 -2
  115. package/identity-CPGTqrE4.js +6 -0
  116. package/index-BDVjGvMI.js +696 -0
  117. package/index-BbPn6-Mw.js +15750 -0
  118. package/index-Bi21Wb23.js +465 -0
  119. package/index-C3lkTD69.js +1172 -0
  120. package/index-CC12Ux-9.js +17654 -0
  121. package/isEmpty-BQkZubqU.js +29 -0
  122. package/isNil-CIubwp4T.js +6 -0
  123. package/isObject-FTY-5JQX.js +7 -0
  124. package/isObjectLike-OAgjjZye.js +48 -0
  125. package/isSymbol-Xd2FsJyp.js +8 -0
  126. package/last-CUCl67Im.js +7 -0
  127. package/main.js +62 -62
  128. package/package.json +3 -3
  129. package/sortBy-B-UKp4GT.js +100 -0
  130. package/sumBy-MYkDPHZL.js +8 -0
  131. package/text/Frequency.js +42 -23
  132. package/toFinite-Bc55msYj.js +16 -0
  133. package/toNumber-DPxy1FBy.js +39 -0
  134. package/types/RunningActionData.d.ts +4 -3
  135. package/types/action.d.ts +10 -1
  136. package/useClueTypeConfig-XvGvIw2S.js +3201 -0
  137. package/utils/chain.js +91 -64
  138. package/utils/classificationParser.js +519 -256
  139. package/utils/constants.js +35 -10
  140. package/utils/graph.js +72 -45
  141. package/utils/hashUtil.js +7 -7
  142. package/utils/line.js +131 -81
  143. package/utils/loggerUtil.d.ts +1 -1
  144. package/utils/loggerUtil.js +6 -4
  145. package/utils/sessionStorage.js +41 -29
  146. package/utils/time.d.ts +3 -0
  147. package/utils/time.js +536 -0
  148. package/utils/utils.js +10 -9
  149. package/utils/window.js +21 -10
  150. package/utils-7OtvGnmf.js +200 -0
  151. package/ActionForm-Sw7D-KOE.js +0 -340
  152. package/AnnotationDetails-BoX61_IF.js +0 -160
  153. package/AnnotationPreview-dYinoSA9.js +0 -140
  154. package/ClueEnrichContext-CvCIPOMC.js +0 -412
  155. package/FlexOne-BXWFOd1T.js +0 -6
  156. package/_Map-DXNg_Z-q.js +0 -54
  157. package/_MapCache-Cu25RRDU.js +0 -129
  158. package/_Uint8Array-DlJCtTvG.js +0 -102
  159. package/_baseAssignValue-CUmzp727.js +0 -20
  160. package/_baseClone-BlMmRXeX.js +0 -208
  161. package/_baseExtremum-P_0akmCi.js +0 -27
  162. package/_baseFlatten-CN7vDNEQ.js +0 -72
  163. package/_baseGet-Dgf6_xCm.js +0 -80
  164. package/_baseIsEqual-Cpjtfb3Q.js +0 -173
  165. package/_baseIteratee-CP1bocOX.js +0 -95
  166. package/_baseSlice-M5RKzt1A.js +0 -10
  167. package/_baseSum-wEbgNeUs.js +0 -10
  168. package/_baseUniq-tMFmk80M.js +0 -61
  169. package/_commonjsHelpers-C6fGbg64.js +0 -6
  170. package/_createAggregator-B4Cav8ZM.js +0 -53
  171. package/_getPrototype-CHAFQYL_.js +0 -5
  172. package/_getTag-BV_UoLYG.js +0 -90
  173. package/cloneDeep-BPVpFBzJ.js +0 -8
  174. package/components/display/markdown/DynamicTabs.d.ts +0 -8
  175. package/components/display/markdown/DynamicTabs.js +0 -21
  176. package/components/display/markdown/markdownPlugins/tabs.d.ts +0 -3
  177. package/components/display/markdown/markdownPlugins/tabs.js +0 -4
  178. package/countBy-DOutsa_w.js +0 -8
  179. package/debounce-DryYcbJ4.js +0 -56
  180. package/get-Bow1vKwx.js +0 -8
  181. package/groupBy-BheQYl6f.js +0 -8
  182. package/iconify-BBckr5AQ.js +0 -1263
  183. package/identity-ByMq8VxU.js +0 -6
  184. package/index-CnaCBNrd.js +0 -358
  185. package/index-E7g8cRyW.js +0 -568
  186. package/index-V7wwd05F.js +0 -975
  187. package/index-p5_wX7q1.js +0 -11729
  188. package/index-pQg5VUAZ.js +0 -12734
  189. package/isEmpty-g47Qir2A.js +0 -21
  190. package/isNil-CjWwlQS3.js +0 -6
  191. package/isObject-B53jY8Qg.js +0 -7
  192. package/isObjectLike-BatpeCIi.js +0 -29
  193. package/isSymbol-C3_SC0Qp.js +0 -8
  194. package/last-7CdUxN0r.js +0 -7
  195. package/sortBy-ITdmD17L.js +0 -79
  196. package/sumBy-DxJUU2E8.js +0 -8
  197. package/tabs-CgADNA57.js +0 -195
  198. package/toFinite-BMy6GObD.js +0 -14
  199. package/toNumber-YVhnnJv4.js +0 -31
  200. package/useClueTypeConfig-CneP98N_.js +0 -2260
  201. package/utils-CD0rFIFU.js +0 -2704
@@ -1,412 +0,0 @@
1
- import { jsx as vt } from "react/jsx-runtime";
2
- import { a as xt } from "./iconify-BBckr5AQ.js";
3
- import { u as Dt, a as Et, p as ot } from "./useClueTypeConfig-CneP98N_.js";
4
- import { clueDebugLogger as G } from "./utils/loggerUtil.js";
5
- import { b as It } from "./_baseSlice-M5RKzt1A.js";
6
- import { t as Ct } from "./toFinite-BMy6GObD.js";
7
- import { d as gt } from "./debounce-DryYcbJ4.js";
8
- import { g as ct } from "./groupBy-BheQYl6f.js";
9
- import { b as lt } from "./_baseUniq-tMFmk80M.js";
10
- import { b as $t } from "./_baseIteratee-CP1bocOX.js";
11
- import { useContext as Ot, useState as H, useMemo as K, useCallback as g, useRef as bt, useEffect as q } from "react";
12
- import { c as jt } from "./index-E7g8cRyW.js";
13
- import { ClueDatabaseContext as Pt } from "./hooks/ClueDatabaseContext.js";
14
- import Mt from "./hooks/useClueConfig.js";
15
- function qt(e) {
16
- var s = Ct(e), p = s % 1;
17
- return s === s ? p ? s - p : s : 0;
18
- }
19
- var At = Math.ceil, Bt = Math.max;
20
- function Rt(e, s, p) {
21
- s === void 0 ? s = 1 : s = Bt(qt(s), 0);
22
- var l = e == null ? 0 : e.length;
23
- if (!l || s < 1)
24
- return [];
25
- for (var h = 0, v = 0, O = Array(At(l / s)); h < l; )
26
- O[v++] = It(e, h, h += s);
27
- return O;
28
- }
29
- function at(e) {
30
- return e && e.length ? lt(e) : [];
31
- }
32
- function Vt(e, s) {
33
- return e && e.length ? lt(e, $t(s)) : [];
34
- }
35
- let J;
36
- const Ut = new Uint8Array(16);
37
- function Wt() {
38
- if (!J && (J = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !J))
39
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
40
- return J(Ut);
41
- }
42
- const d = [];
43
- for (let e = 0; e < 256; ++e)
44
- d.push((e + 256).toString(16).slice(1));
45
- function Ft(e, s = 0) {
46
- return d[e[s + 0]] + d[e[s + 1]] + d[e[s + 2]] + d[e[s + 3]] + "-" + d[e[s + 4]] + d[e[s + 5]] + "-" + d[e[s + 6]] + d[e[s + 7]] + "-" + d[e[s + 8]] + d[e[s + 9]] + "-" + d[e[s + 10]] + d[e[s + 11]] + d[e[s + 12]] + d[e[s + 13]] + d[e[s + 14]] + d[e[s + 15]];
47
- }
48
- const Ht = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ut = {
49
- randomUUID: Ht
50
- };
51
- function $(e, s, p) {
52
- if (ut.randomUUID && !e)
53
- return ut.randomUUID();
54
- e = e || {};
55
- const l = e.random || (e.rng || Wt)();
56
- return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, Ft(l);
57
- }
58
- const Jt = jt(null), ee = ({
59
- children: e,
60
- classification: s,
61
- baseURL: p,
62
- getToken: l,
63
- onNetworkCall: h,
64
- pickSources: v,
65
- chunkSize: O = 15,
66
- maxRequestCount: Q = 4,
67
- defaultTimeout: A = 5,
68
- enabled: B = !0,
69
- ready: ft = !1,
70
- publicIconify: S = !0,
71
- skipConfigCall: X = !1,
72
- customIconify: R,
73
- debugLogging: x = !0
74
- }) => {
75
- var st, nt, it, rt;
76
- const I = Mt(), i = Ot(Pt), [Y, dt] = H(null), w = K(
77
- () => {
78
- var t, n;
79
- return Y ?? s ?? ((n = (t = I.config) == null ? void 0 : t.c12nDef) == null ? void 0 : n.RESTRICTED);
80
- },
81
- [s, (nt = (st = I.config) == null ? void 0 : st.c12nDef) == null ? void 0 : nt.RESTRICTED, Y]
82
- ), Z = g(
83
- (t) => {
84
- var n;
85
- return dt(t((n = I.config) == null ? void 0 : n.c12nDef));
86
- },
87
- [(it = I.config) == null ? void 0 : it.c12nDef]
88
- ), [C, pt] = H(ft), b = bt(0), [D, mt] = H([]), { availableSources: j, typesDetection: V } = Dt(
89
- B && C,
90
- p,
91
- x,
92
- l,
93
- h
94
- );
95
- q(() => {
96
- if (X || !B || !C)
97
- return;
98
- const t = {}, n = l == null ? void 0 : l();
99
- n && (t.Authorization = `Bearer ${n}`);
100
- let u = { baseURL: p, headers: t };
101
- h && (u = h(u)), Et.configs.get(u).then(I.setConfig);
102
- }, [p, h, X, C]);
103
- const [z, N] = H(R);
104
- q(() => {
105
- R && N(R);
106
- }, [R]), q(() => {
107
- if (S)
108
- return;
109
- let t = z ?? void 0 ?? (p == null ? void 0 : p.replace(/^[^.]+/, "icons"));
110
- !t && typeof window < "u" && window && !window.location.origin.includes("localhost") && (t = window.location.protocol + "//" + window.location.origin.replace(/^[^.]+/, "icons")), t && (G(`Using ${t} for iconify`, x), xt("", {
111
- resources: [t]
112
- }));
113
- }, [p, z, x, S]);
114
- const U = g(
115
- async (t) => {
116
- const n = [];
117
- for (const c of t) {
118
- const { latency: o, source: f, type: r, value: y, items: a, error: m } = c;
119
- m && n.push({
120
- id: $(),
121
- source: f,
122
- type: r,
123
- value: y,
124
- annotations: [],
125
- classification: w,
126
- latency: o,
127
- count: 0,
128
- error: m
129
- });
130
- for (const E of a) {
131
- const { classification: P, count: M, link: F, annotations: yt } = E;
132
- await i.selectors.find({ selector: { type: r, value: y, source: f, classification: P } }).incrementalRemove();
133
- const _ = {
134
- id: $(),
135
- source: f,
136
- type: r,
137
- value: y,
138
- annotations: yt,
139
- classification: P,
140
- latency: o,
141
- count: M,
142
- link: F,
143
- error: m
144
- };
145
- n.some((wt) => wt.id === _.id) && (_.id = $()), n.push(_);
146
- }
147
- }
148
- const u = await i.selectors.bulkInsert(n);
149
- u.error.length > 0 && (console.warn("Errors on upsert:"), u.error.forEach((c) => console.warn(c.documentId, c.validationErrors ?? c.status)));
150
- },
151
- [i, w]
152
- ), T = g(
153
- async (t, n, u = {}) => {
154
- var E, P;
155
- if (!t || !n)
156
- return console.error(`Type (${t}) or value (${n}) is empty, returning empty response`), {};
157
- const c = (v == null ? void 0 : v(D, j, [{ type: t, value: n, classification: u.classification }])) ?? D, o = {
158
- timeout: A,
159
- force: !1,
160
- includeRaw: !1,
161
- noCache: !1,
162
- classification: w,
163
- sources: c,
164
- ...u
165
- }, f = {}, r = l == null ? void 0 : l();
166
- r && (f.Authorization = `Bearer ${r}`);
167
- let y = { baseURL: p, headers: f };
168
- h && (y = h(y));
169
- const a = {
170
- type: t,
171
- value: n,
172
- classification: o.classification
173
- };
174
- let m = await ((E = i.status) == null ? void 0 : E.findOne({ selector: { ...a } }).exec());
175
- m ? await m.incrementalPatch({ status: "in-progress" }) : m = await ((P = i.status) == null ? void 0 : P.insert({
176
- id: $(),
177
- type: a.type,
178
- value: a.value,
179
- classification: a.classification ?? w,
180
- status: "in-progress"
181
- }));
182
- try {
183
- const M = await ot([a], o.sources, o, y), F = Object.values(Object.values(M)[0])[0];
184
- return await (m == null ? void 0 : m.incrementalPatch({ status: "complete" })), await U(Object.values(F)), F;
185
- } catch (M) {
186
- return console.error(M), {};
187
- }
188
- },
189
- [
190
- U,
191
- j,
192
- p,
193
- i,
194
- w,
195
- A,
196
- l,
197
- h,
198
- v,
199
- D
200
- ]
201
- ), W = g(
202
- async (t, n) => {
203
- const u = (v == null ? void 0 : v(D, j, t)) ?? D, c = {
204
- timeout: A,
205
- includeRaw: !1,
206
- noCache: !1,
207
- classification: w,
208
- sources: u,
209
- ...n
210
- }, o = {}, f = l == null ? void 0 : l();
211
- f && (o.Authorization = `Bearer ${f}`);
212
- let r = { baseURL: p, headers: o };
213
- h && (r = h(r));
214
- const y = [];
215
- for (const a of t) {
216
- const m = { type: a.type, value: a.value, classification: c.classification };
217
- let E = await i.status.findOne({
218
- selector: m
219
- }).incrementalPatch({
220
- status: "in-progress"
221
- });
222
- E || (E = await i.status.insert({
223
- id: $(),
224
- ...m,
225
- status: "in-progress",
226
- sources: c.sources
227
- })), y.push(E.toMutableJSON());
228
- }
229
- try {
230
- const a = await ot(t, c.sources, c, r), m = Object.values(a).flatMap(Object.values).flatMap(Object.values);
231
- return await U(m), a;
232
- } catch (a) {
233
- return console.error(a), {};
234
- } finally {
235
- i.status.bulkUpsert(
236
- Vt(y, (a) => a.id).map((a) => (a.status = "complete", a))
237
- );
238
- }
239
- },
240
- [
241
- v,
242
- D,
243
- j,
244
- A,
245
- w,
246
- l,
247
- p,
248
- h,
249
- i,
250
- U
251
- ]
252
- ), L = g(async () => {
253
- const t = await i.selectors.find({ selector: { error: { $exists: !0 } } }).exec(), n = ct(t, "classification"), u = [];
254
- for (const [c, o] of Object.entries(n)) {
255
- const f = ct(o, (r) => `${r.type}:${r.value}`);
256
- Object.values(f).forEach((r) => {
257
- u.push({
258
- id: $(),
259
- type: r[0].type,
260
- value: r[0].value,
261
- classification: c,
262
- sources: at(r.map((y) => y.source)).sort(),
263
- status: "pending"
264
- });
265
- });
266
- }
267
- await i.status.bulkInsert(u), await i.selectors.bulkRemove(t);
268
- }, [i]), k = K(
269
- () => gt(
270
- async () => {
271
- if (i != null && i.status) {
272
- if (i.status.closed) {
273
- console.warn("Status database is closed, will not enrich");
274
- return;
275
- }
276
- } else return;
277
- const t = await i.status.find({ selector: { status: "pending" } }).update({ $set: { status: "in-progress" } });
278
- if (t.length < 1)
279
- return;
280
- const n = Rt(t, O);
281
- G(
282
- `Enriching ${t.length} selectors in ${n.length} chunks of ${O}.`,
283
- x
284
- ), await Promise.all(
285
- // For performance reasons, we chunk the requests. This will allow us to take advantage of parellelization in the
286
- // backend, both on the pod level and kubernetes level
287
- n.map(async (u) => {
288
- let c = null;
289
- if (b.current <= Q)
290
- b.current += 1;
291
- else {
292
- let o = Date.now();
293
- await new Promise((f) => {
294
- c = setInterval(() => {
295
- G(
296
- `Waiting on ${b.current} existing requests to complete (total delay: ${Date.now() - o}ms)`,
297
- x
298
- ), b.current < Q && f();
299
- }, 400);
300
- }).finally(() => {
301
- b.current += 1, clearInterval(c);
302
- });
303
- }
304
- try {
305
- const o = {}, f = at(u.flatMap((r) => r.sources ?? []));
306
- f.length > 0 && (o.sources = f), await W(
307
- u.map((r) => r.toSelector()),
308
- o
309
- ), await i.status.findByIds(u.map((r) => r.id)).update({ $set: { status: "complete" } });
310
- } catch (o) {
311
- console.error(o);
312
- } finally {
313
- b.current -= 1, c && clearInterval(c);
314
- }
315
- })
316
- );
317
- },
318
- 200,
319
- { maxWait: 500, leading: !1 }
320
- ),
321
- [W, O, i, x, Q]
322
- );
323
- q(() => {
324
- }, [i, x]), q(() => {
325
- if (!B || !C || !(i != null && i.status))
326
- return;
327
- const t = i.status.find({
328
- selector: {
329
- status: "pending"
330
- }
331
- }).$.subscribe(() => k());
332
- return () => {
333
- try {
334
- t == null || t.unsubscribe();
335
- } catch (n) {
336
- console.warn(n);
337
- }
338
- };
339
- }, [B, C, i, x, k]);
340
- const tt = g(
341
- async (t, n, u) => {
342
- if (!t)
343
- throw new Error("Type cannot be null");
344
- if (!n)
345
- throw new Error("Value cannot be null");
346
- const c = { type: t, value: n, classification: u ?? w };
347
- let o = await i.status.findOne({
348
- selector: c
349
- }).exec();
350
- return o || (o = await i.status.queueInsert({
351
- id: $(),
352
- ...c,
353
- status: "pending"
354
- })), o;
355
- },
356
- [w, i]
357
- ), et = g(
358
- (t) => {
359
- var f, r;
360
- if (!t)
361
- return null;
362
- const n = Object.entries(V), u = (f = n.find(([y, a]) => a.exec(t))) == null ? void 0 : f[0];
363
- if (u)
364
- return u;
365
- const c = t.toLowerCase(), o = (r = n.find(([y, a]) => a.exec(c))) == null ? void 0 : r[0];
366
- return o || null;
367
- },
368
- [V]
369
- ), ht = K(
370
- () => {
371
- var t;
372
- return {
373
- bulkEnrich: W,
374
- enrich: T,
375
- enrichFailedEnrichments: L,
376
- sources: D,
377
- setSources: mt,
378
- typesDetection: V,
379
- availableSources: j,
380
- guessType: et,
381
- queueEnrich: tt,
382
- setCustomIconify: N,
383
- setDefaultClassification: Z,
384
- setReady: pt,
385
- defaultClassification: w,
386
- ready: C && !!i && !!((t = I.config) != null && t.c12nDef)
387
- };
388
- },
389
- [
390
- W,
391
- T,
392
- L,
393
- D,
394
- V,
395
- j,
396
- et,
397
- tt,
398
- Z,
399
- w,
400
- C,
401
- i,
402
- (rt = I.config) == null ? void 0 : rt.c12nDef
403
- ]
404
- );
405
- return /* @__PURE__ */ vt(Jt.Provider, { value: ht, children: e });
406
- };
407
- export {
408
- Jt as C,
409
- ee as a,
410
- Vt as b,
411
- at as u
412
- };
@@ -1,6 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { memo as r } from "react";
3
- const t = ({ children: e = null }) => /* @__PURE__ */ o("div", { style: { flex: 1 }, children: e }), n = r(t);
4
- export {
5
- n as F
6
- };
package/_Map-DXNg_Z-q.js DELETED
@@ -1,54 +0,0 @@
1
- import { b as i, r as o } from "./isObjectLike-BatpeCIi.js";
2
- import { i as c } from "./isObject-B53jY8Qg.js";
3
- var k = Array.isArray, s = "[object AsyncFunction]", u = "[object Function]", f = "[object GeneratorFunction]", p = "[object Proxy]";
4
- function y(r) {
5
- if (!c(r))
6
- return !1;
7
- var t = i(r);
8
- return t == u || t == f || t == s || t == p;
9
- }
10
- var e = o["__core-js_shared__"], a = function() {
11
- var r = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
12
- return r ? "Symbol(src)_1." + r : "";
13
- }();
14
- function g(r) {
15
- return !!a && a in r;
16
- }
17
- var v = Function.prototype, b = v.toString;
18
- function l(r) {
19
- if (r != null) {
20
- try {
21
- return b.call(r);
22
- } catch {
23
- }
24
- try {
25
- return r + "";
26
- } catch {
27
- }
28
- }
29
- return "";
30
- }
31
- var j = /[\\^$.*+?()[\]{}|]/g, P = /^\[object .+?Constructor\]$/, T = Function.prototype, $ = Object.prototype, d = T.toString, h = $.hasOwnProperty, O = RegExp(
32
- "^" + d.call(h).replace(j, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
33
- );
34
- function S(r) {
35
- if (!c(r) || g(r))
36
- return !1;
37
- var t = y(r) ? O : P;
38
- return t.test(l(r));
39
- }
40
- function _(r, t) {
41
- return r == null ? void 0 : r[t];
42
- }
43
- function m(r, t) {
44
- var n = _(r, t);
45
- return S(n) ? n : void 0;
46
- }
47
- var A = m(o, "Map");
48
- export {
49
- A as M,
50
- y as a,
51
- m as g,
52
- k as i,
53
- l as t
54
- };
@@ -1,129 +0,0 @@
1
- import { g as p, M as l } from "./_Map-DXNg_Z-q.js";
2
- function c(t, e) {
3
- return t === e || t !== t && e !== e;
4
- }
5
- var s = p(Object, "create");
6
- function u() {
7
- this.__data__ = s ? s(null) : {}, this.size = 0;
8
- }
9
- function d(t) {
10
- var e = this.has(t) && delete this.__data__[t];
11
- return this.size -= e ? 1 : 0, e;
12
- }
13
- var f = "__lodash_hash_undefined__", v = Object.prototype, g = v.hasOwnProperty;
14
- function C(t) {
15
- var e = this.__data__;
16
- if (s) {
17
- var a = e[t];
18
- return a === f ? void 0 : a;
19
- }
20
- return g.call(e, t) ? e[t] : void 0;
21
- }
22
- var y = Object.prototype, z = y.hasOwnProperty;
23
- function m(t) {
24
- var e = this.__data__;
25
- return s ? e[t] !== void 0 : z.call(e, t);
26
- }
27
- var w = "__lodash_hash_undefined__";
28
- function b(t, e) {
29
- var a = this.__data__;
30
- return this.size += this.has(t) ? 0 : 1, a[t] = s && e === void 0 ? w : e, this;
31
- }
32
- function n(t) {
33
- var e = -1, a = t == null ? 0 : t.length;
34
- for (this.clear(); ++e < a; ) {
35
- var r = t[e];
36
- this.set(r[0], r[1]);
37
- }
38
- }
39
- n.prototype.clear = u;
40
- n.prototype.delete = d;
41
- n.prototype.get = C;
42
- n.prototype.has = m;
43
- n.prototype.set = b;
44
- function x() {
45
- this.__data__ = [], this.size = 0;
46
- }
47
- function o(t, e) {
48
- for (var a = t.length; a--; )
49
- if (c(t[a][0], e))
50
- return a;
51
- return -1;
52
- }
53
- var D = Array.prototype, H = D.splice;
54
- function O(t) {
55
- var e = this.__data__, a = o(e, t);
56
- if (a < 0)
57
- return !1;
58
- var r = e.length - 1;
59
- return a == r ? e.pop() : H.call(e, a, 1), --this.size, !0;
60
- }
61
- function P(t) {
62
- var e = this.__data__, a = o(e, t);
63
- return a < 0 ? void 0 : e[a][1];
64
- }
65
- function j(t) {
66
- return o(this.__data__, t) > -1;
67
- }
68
- function M(t, e) {
69
- var a = this.__data__, r = o(a, t);
70
- return r < 0 ? (++this.size, a.push([t, e])) : a[r][1] = e, this;
71
- }
72
- function i(t) {
73
- var e = -1, a = t == null ? 0 : t.length;
74
- for (this.clear(); ++e < a; ) {
75
- var r = t[e];
76
- this.set(r[0], r[1]);
77
- }
78
- }
79
- i.prototype.clear = x;
80
- i.prototype.delete = O;
81
- i.prototype.get = P;
82
- i.prototype.has = j;
83
- i.prototype.set = M;
84
- function N() {
85
- this.size = 0, this.__data__ = {
86
- hash: new n(),
87
- map: new (l || i)(),
88
- string: new n()
89
- };
90
- }
91
- function S(t) {
92
- var e = typeof t;
93
- return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
94
- }
95
- function _(t, e) {
96
- var a = t.__data__;
97
- return S(e) ? a[typeof e == "string" ? "string" : "hash"] : a.map;
98
- }
99
- function E(t) {
100
- var e = _(this, t).delete(t);
101
- return this.size -= e ? 1 : 0, e;
102
- }
103
- function I(t) {
104
- return _(this, t).get(t);
105
- }
106
- function A(t) {
107
- return _(this, t).has(t);
108
- }
109
- function G(t, e) {
110
- var a = _(this, t), r = a.size;
111
- return a.set(t, e), this.size += a.size == r ? 0 : 1, this;
112
- }
113
- function h(t) {
114
- var e = -1, a = t == null ? 0 : t.length;
115
- for (this.clear(); ++e < a; ) {
116
- var r = t[e];
117
- this.set(r[0], r[1]);
118
- }
119
- }
120
- h.prototype.clear = N;
121
- h.prototype.delete = E;
122
- h.prototype.get = I;
123
- h.prototype.has = A;
124
- h.prototype.set = G;
125
- export {
126
- i as L,
127
- h as M,
128
- c as e
129
- };
@@ -1,102 +0,0 @@
1
- import { L as _, M as l } from "./_MapCache-Cu25RRDU.js";
2
- import { i as h, M as y } from "./_Map-DXNg_Z-q.js";
3
- import { c as d, a as m, b as A, e as g, i as b } from "./_getTag-BV_UoLYG.js";
4
- import { r as v } from "./isObjectLike-BatpeCIi.js";
5
- var w = 9007199254740991, z = /^(?:0|[1-9]\d*)$/;
6
- function S(t, e) {
7
- var r = typeof t;
8
- return e = e ?? w, !!e && (r == "number" || r != "symbol" && z.test(t)) && t > -1 && t % 1 == 0 && t < e;
9
- }
10
- function I(t, e) {
11
- for (var r = -1, s = Array(t); ++r < t; )
12
- s[r] = e(r);
13
- return s;
14
- }
15
- var O = Object.prototype, x = O.hasOwnProperty;
16
- function E(t, e) {
17
- var r = h(t), s = !r && d(t), a = !r && !s && m(t), i = !r && !s && !a && A(t), o = r || s || a || i, u = o ? I(t.length, String) : [], c = u.length;
18
- for (var n in t)
19
- (e || x.call(t, n)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
20
- (n == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
21
- a && (n == "offset" || n == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
22
- i && (n == "buffer" || n == "byteLength" || n == "byteOffset") || // Skip index properties.
23
- S(n, c))) && u.push(n);
24
- return u;
25
- }
26
- function L(t) {
27
- return b(t) ? E(t) : g(t);
28
- }
29
- function P(t, e) {
30
- for (var r = -1, s = e.length, a = t.length; ++r < s; )
31
- t[a + r] = e[r];
32
- return t;
33
- }
34
- function G() {
35
- this.__data__ = new _(), this.size = 0;
36
- }
37
- function M(t) {
38
- var e = this.__data__, r = e.delete(t);
39
- return this.size = e.size, r;
40
- }
41
- function K(t) {
42
- return this.__data__.get(t);
43
- }
44
- function R(t) {
45
- return this.__data__.has(t);
46
- }
47
- var T = 200;
48
- function U(t, e) {
49
- var r = this.__data__;
50
- if (r instanceof _) {
51
- var s = r.__data__;
52
- if (!y || s.length < T - 1)
53
- return s.push([t, e]), this.size = ++r.size, this;
54
- r = this.__data__ = new l(s);
55
- }
56
- return r.set(t, e), this.size = r.size, this;
57
- }
58
- function f(t) {
59
- var e = this.__data__ = new _(t);
60
- this.size = e.size;
61
- }
62
- f.prototype.clear = G;
63
- f.prototype.delete = M;
64
- f.prototype.get = K;
65
- f.prototype.has = R;
66
- f.prototype.set = U;
67
- function C(t, e) {
68
- for (var r = -1, s = t == null ? 0 : t.length, a = 0, i = []; ++r < s; ) {
69
- var o = t[r];
70
- e(o, r, t) && (i[a++] = o);
71
- }
72
- return i;
73
- }
74
- function k() {
75
- return [];
76
- }
77
- var B = Object.prototype, F = B.propertyIsEnumerable, p = Object.getOwnPropertySymbols, $ = p ? function(t) {
78
- return t == null ? [] : (t = Object(t), C(p(t), function(e) {
79
- return F.call(t, e);
80
- }));
81
- } : k;
82
- function D(t, e, r) {
83
- var s = e(t);
84
- return h(t) ? s : P(s, r(t));
85
- }
86
- function Z(t) {
87
- return D(t, L, $);
88
- }
89
- var q = v.Uint8Array;
90
- export {
91
- f as S,
92
- q as U,
93
- P as a,
94
- C as b,
95
- E as c,
96
- $ as d,
97
- D as e,
98
- Z as g,
99
- S as i,
100
- L as k,
101
- k as s
102
- };