@cccsaurora/clue-ui 1.0.1 → 1.1.0-dev.10

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